@charset "UTF-8";
/* ===========================================================================
   /faq/ — the question categories as a rail
   ---------------------------------------------------------------------------
   Owner, 16 Nov 2026: make it tabbed.

   WHAT WAS THERE. Eight category blocks stacked down the page, thirty
   questions in all, so a reader after one answer about payment scrolled past
   twenty-six others to reach it. The arrangement was also
   vinyasayogaacademy.com's: checked against their faq.php the same day, their
   FAQ carries the same eight categories, in the same order, under the same
   names — Location and Transportation, Food and Accommodation, Health and
   Security, About The Course, Certification, General Questions, Payment,
   Weather In Rishikesh.

   WHAT IT IS NOW. A rail of eight categories beside one panel of questions.
   Radios and labels; no JavaScript, because INP is this site's measured Core
   Web Vitals bottleneck and a tab set that costs no script cannot add to it.
   Arrow-key navigation and the focus ring come with the radio group for free.

   NOT a copy of the reference the owner sent either: that is a green pill rail
   under a centred heading with a gold rule. This is the site's own language —
   a hairline rail, a red bar on the one you are reading, and a left-aligned
   masthead like every other page.

   NOTHING IS HIDDEN FROM A CRAWLER. All eight panels stay in the DOM; the
   inactive ones are display:none, exactly as a closed <details> is. The
   FAQPage JSON-LD at the top of this page repeats every question and answer
   and the two still agree.
   =========================================================================== */

/* the legend/label text that only a screen reader needs */
.ryp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------------------
   1. THE FRAME
   --------------------------------------------------------------------------- */
.faqs .faq-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(1.25rem, 1rem + 1.2vw, 2rem);
    width: 100%;
}
@media (min-width: 62rem) {
    .faqs .faq-tabs {
        grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
        column-gap: clamp(2rem, 1.2rem + 3vw, 4rem);
        align-items: start;
    }
    .faqs .faq-rail   { grid-column: 1; }
    .faqs .faq-panels { grid-column: 2; }
    /* the rail follows you down a long category */
    .faqs .faq-rail { position: sticky; top: 7rem; }
}

/* The radios do the work and are never seen. Not display:none and not
   visibility:hidden — either would take them out of the tab order and the tab
   set would stop working for anyone on a keyboard. */
.faqs .faq-tab-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    appearance: none;
}

/* ---------------------------------------------------------------------------
   2. THE RAIL
   ---------------------------------------------------------------------------
   Each entry is an <h2> wrapping a <label>, so the category name is a heading
   AND the control, and exists once in the document rather than once in a rail
   and again over a panel.
   --------------------------------------------------------------------------- */
.faqs .faq-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    padding: 0;
    border-top: 2px solid var(--ryp-red);
}
.faqs .faq-rail .faq-category-heading {
    /* MEASURED: the theme makes .faq-category-heading a FLEX container (it
       used to hold an icon beside the text). Left alone, the <label> inside
       became a flex item and shrank to its own text -- the headings were all
       256px but the labels came out 245, 197, 185, 145... so the hairline
       under each one was a different length and the rail read as a staircase.
       display:block puts the label back in normal flow, where it fills. */
    display: block;
    margin: 0;
    padding: 0;
    font: inherit;
    border: 0;
}
.faqs .faq-tab {
    display: flex;
    align-items: center;
    gap: .625rem;
    min-height: 48px;                 /* a touch target, not just a line */
    padding: .6875rem .75rem;
    border-bottom: 1px solid rgba(26, 26, 26, .12);
    border-left: 2px solid transparent;
    cursor: pointer;
    font-family: "Figtree", system-ui, sans-serif;
    font-weight: 500;
    font-size: .9375rem;
    line-height: 1.3;
    color: var(--ryp-ink-soft);
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
    -webkit-tap-highlight-color: transparent;
}
.faqs .faq-tab .faq-cat-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    /* the icons were drawn for the old teal; brand red, measured against the
       same chain used in site.css for the travel icons */
    filter: brightness(0) saturate(100%) invert(22%) sepia(81%) saturate(5000%)
            hue-rotate(356deg) brightness(92%) contrast(97%);
    opacity: .45;
    transition: opacity 180ms ease;
}
.faqs .faq-tab:hover { color: var(--ryp-ink); background: rgba(222, 42, 29, .04); }

/* -- the one you are reading --------------------------------------------- */
.faqs #faq-cat-1:checked ~ .faq-rail .faq-category-heading:nth-child(1) .faq-tab,
.faqs #faq-cat-2:checked ~ .faq-rail .faq-category-heading:nth-child(2) .faq-tab,
.faqs #faq-cat-3:checked ~ .faq-rail .faq-category-heading:nth-child(3) .faq-tab,
.faqs #faq-cat-4:checked ~ .faq-rail .faq-category-heading:nth-child(4) .faq-tab,
.faqs #faq-cat-5:checked ~ .faq-rail .faq-category-heading:nth-child(5) .faq-tab,
.faqs #faq-cat-6:checked ~ .faq-rail .faq-category-heading:nth-child(6) .faq-tab,
.faqs #faq-cat-7:checked ~ .faq-rail .faq-category-heading:nth-child(7) .faq-tab,
.faqs #faq-cat-8:checked ~ .faq-rail .faq-category-heading:nth-child(8) .faq-tab {
    background: var(--ryp-red-tint);
    border-left-color: var(--ryp-red);
    color: var(--ryp-ink);
    font-weight: 600;
}
.faqs #faq-cat-1:checked ~ .faq-rail .faq-category-heading:nth-child(1) .faq-cat-icon,
.faqs #faq-cat-2:checked ~ .faq-rail .faq-category-heading:nth-child(2) .faq-cat-icon,
.faqs #faq-cat-3:checked ~ .faq-rail .faq-category-heading:nth-child(3) .faq-cat-icon,
.faqs #faq-cat-4:checked ~ .faq-rail .faq-category-heading:nth-child(4) .faq-cat-icon,
.faqs #faq-cat-5:checked ~ .faq-rail .faq-category-heading:nth-child(5) .faq-cat-icon,
.faqs #faq-cat-6:checked ~ .faq-rail .faq-category-heading:nth-child(6) .faq-cat-icon,
.faqs #faq-cat-7:checked ~ .faq-rail .faq-category-heading:nth-child(7) .faq-cat-icon,
.faqs #faq-cat-8:checked ~ .faq-rail .faq-category-heading:nth-child(8) .faq-cat-icon { opacity: 1; }

/* -- the keyboard ---------------------------------------------------------
   The radio is invisible, so its focus ring has to be drawn on the label.
   Without these eight rules a keyboard user moves through the categories with
   nothing on screen telling them where they are. */
.faqs #faq-cat-1:focus-visible ~ .faq-rail .faq-category-heading:nth-child(1) .faq-tab,
.faqs #faq-cat-2:focus-visible ~ .faq-rail .faq-category-heading:nth-child(2) .faq-tab,
.faqs #faq-cat-3:focus-visible ~ .faq-rail .faq-category-heading:nth-child(3) .faq-tab,
.faqs #faq-cat-4:focus-visible ~ .faq-rail .faq-category-heading:nth-child(4) .faq-tab,
.faqs #faq-cat-5:focus-visible ~ .faq-rail .faq-category-heading:nth-child(5) .faq-tab,
.faqs #faq-cat-6:focus-visible ~ .faq-rail .faq-category-heading:nth-child(6) .faq-tab,
.faqs #faq-cat-7:focus-visible ~ .faq-rail .faq-category-heading:nth-child(7) .faq-tab,
.faqs #faq-cat-8:focus-visible ~ .faq-rail .faq-category-heading:nth-child(8) .faq-tab {
    outline: 2px solid var(--ryp-red);
    outline-offset: -2px;
}

/* ---------------------------------------------------------------------------
   3. THE PANELS
   --------------------------------------------------------------------------- */
.faqs .faq-panel { display: none; }
.faqs #faq-cat-1:checked ~ .faq-panels .faq-panel:nth-child(1),
.faqs #faq-cat-2:checked ~ .faq-panels .faq-panel:nth-child(2),
.faqs #faq-cat-3:checked ~ .faq-panels .faq-panel:nth-child(3),
.faqs #faq-cat-4:checked ~ .faq-panels .faq-panel:nth-child(4),
.faqs #faq-cat-5:checked ~ .faq-panels .faq-panel:nth-child(5),
.faqs #faq-cat-6:checked ~ .faq-panels .faq-panel:nth-child(6),
.faqs #faq-cat-7:checked ~ .faq-panels .faq-panel:nth-child(7),
.faqs #faq-cat-8:checked ~ .faq-panels .faq-panel:nth-child(8) { display: block; }

.faqs .faq-panel .curriculum-accordion {
    display: grid;
    row-gap: 0;
    border-top: 1px solid rgba(26, 26, 26, .14);
}
.faqs .faq-panel .ca-item {
    margin: 0;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(26, 26, 26, .14);
    border-radius: 0;
    box-shadow: none;
}
.faqs .faq-panel .ca-summary {
    padding: clamp(.875rem, .75rem + .5vw, 1.125rem) 2.25rem clamp(.875rem, .75rem + .5vw, 1.125rem) 0;
    background: none;
    border: 0;
    border-radius: 0;
}
.faqs .faq-panel .ca-title {
    font-family: "Figtree", system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(.9375rem, .9rem + .25vw, 1.0625rem);
    line-height: 1.45;
    color: var(--ryp-ink);
}
.faqs .faq-panel .ca-item[open] .ca-title { color: var(--ryp-red-ink); }
.faqs .faq-panel .ca-content {
    padding: 0 2.25rem clamp(.875rem, .75rem + .5vw, 1.25rem) 0;
    max-width: 68ch;
}
.faqs .faq-panel .ca-content p {
    margin: 0 0 .75rem;
    font-size: clamp(.9375rem, .9rem + .2vw, 1rem);
    line-height: 1.75;
    color: var(--ryp-ink-soft);
}
.faqs .faq-panel .ca-content p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   4. PHONE AND SMALL TABLET
   ---------------------------------------------------------------------------
   The rail goes above the questions as a two-up grid rather than a horizontal
   scroller. Eight categories in a scroller means some of them are off screen,
   and the one a visitor wants is as likely to be the eighth as the first.
   Two columns shows all eight at once and still leaves 48px targets.
   --------------------------------------------------------------------------- */
@media (max-width: 61.99rem) {
    .faqs .faq-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: .5rem;
        border-top: 0;
    }
    .faqs .faq-tab {
        padding: .625rem .6875rem;
        border: 1px solid rgba(26, 26, 26, .16);
        border-radius: 999px;
        font-size: .8125rem;
    }
    .faqs #faq-cat-1:checked ~ .faq-rail .faq-category-heading:nth-child(1) .faq-tab,
    .faqs #faq-cat-2:checked ~ .faq-rail .faq-category-heading:nth-child(2) .faq-tab,
    .faqs #faq-cat-3:checked ~ .faq-rail .faq-category-heading:nth-child(3) .faq-tab,
    .faqs #faq-cat-4:checked ~ .faq-rail .faq-category-heading:nth-child(4) .faq-tab,
    .faqs #faq-cat-5:checked ~ .faq-rail .faq-category-heading:nth-child(5) .faq-tab,
    .faqs #faq-cat-6:checked ~ .faq-rail .faq-category-heading:nth-child(6) .faq-tab,
    .faqs #faq-cat-7:checked ~ .faq-rail .faq-category-heading:nth-child(7) .faq-tab,
    .faqs #faq-cat-8:checked ~ .faq-rail .faq-category-heading:nth-child(8) .faq-tab {
        border-color: var(--ryp-red);
    }
}

@media (prefers-reduced-motion: reduce) {
    .faqs .faq-tab,
    .faqs .faq-tab .faq-cat-icon { transition: none; }
}
