@charset "UTF-8";
/* ===========================================================================
   FACULTY — "Meet Our Expert Teachers"
   ---------------------------------------------------------------------------
   The slider is gone. It showed 3 of 7 teachers at a time, the rest only on a
   drag or a 3.5s wait, and at 375px it cropped the card that was mid-swipe.
   The owner's note was exactly that: nothing read properly.

   What replaces it, and why it is not their shape:
     - vinyasayogaacademy.com runs an autoplay carousel of identical portrait
       cards here, and a flat 9-up grid of the same cards on /teachers/. A
       uniform grid would have been the same composition with the motion taken
       out, so this is not one.
     - This is a ROSTER with a hierarchy: the founder holds a tall feature
       column on the left, and the other six sit beside him as plain ruled
       rows — small circular portrait, name, role, one line of bio. No boxes,
       no shadows, no borders except hairlines. Minimalist, and every one of
       the seven is on screen at once with no interaction at all.

   The markup kept its `.teacher-card / .tc-*` class names on purpose: the same
   block is hard-coded into eight templates (index, 100/200/300/500-hour,
   aerial, prenatal, sound-healing), so this one stylesheet can carry them all
   once their wrappers are renamed the same way.

   PORTRAITS: the files are 640x640 squares, not the 400x345 the markup used to
   declare. A square source inside a square frame means `cover` crops nothing,
   which is why the faces came out tiny. They are scaled up and re-centred
   below; two are framed individually because of where the subject stands.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. THE BOARD
   --------------------------------------------------------------------------- */
.teachers-section .teacher-slider-wrap {
    margin-top: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
}

.teachers-section .ryp-faculty__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 2fr);
    column-gap: clamp(1.5rem, 1rem + 2vw, 3.25rem);
    align-items: start;
}

/* The six are their own single column of ruled rows. They are NOT laid out by
   the outer grid: a spanning feature column would have set the row heights,
   and the founder is twice as tall as a row, so each row came out 391px with
   a hairline floating in empty space. Measured before this was split out. */
.teachers-section .ryp-faculty__rows {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

/* ---------------------------------------------------------------------------
   1b. UNDO THE THEME'S CARD
   ---------------------------------------------------------------------------
   style.css:2485-2625 builds these as glass cards and several of its
   declarations are for properties the roster never mentions, so they survived
   silently. Measured consequences before this block existed: every row came
   out 396px tall (`grid-template-rows: 350px 1fr` on .teacher-card), the
   portraits rendered 160x160 inside an 84px circle and were cut into a face
   silhouette by `mask-image: bg-mask-face.webp`, and the role was still a
   teal pill. Each line below switches off one of those.
   --------------------------------------------------------------------------- */
.teachers-section .ryp-faculty .teacher-card {
    grid-template-rows: auto;
    width: auto;
    max-width: none;
    height: auto;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
}
.teachers-section .ryp-faculty .tc-photo::before,
.teachers-section .ryp-faculty .tc-photo::after { content: none; }
.teachers-section .ryp-faculty .tc-photo img {
    position: relative;
    object-position: center center;
    background: none;
    -webkit-mask-image: none;
    mask-image: none;
}
.teachers-section .ryp-faculty .tc-content {
    display: block;
    height: auto;
    padding: 0;
    text-align: left;
}
.teachers-section .ryp-faculty .tc-name,
.teachers-section .ryp-faculty .tc-role,
.teachers-section .ryp-faculty .tc-bio,
.teachers-section .ryp-faculty .tc-experience {
    text-align: left;
    min-height: 0;
}
.teachers-section .ryp-faculty .tc-role,
.teachers-section .ryp-faculty .tc-experience {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 0;
    letter-spacing: normal;
}

/* ---------------------------------------------------------------------------
   2. THE SIX ROWS
   --------------------------------------------------------------------------- */
.teachers-section .ryp-faculty__item .teacher-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: clamp(.875rem, .7rem + .7vw, 1.25rem);
    align-items: center;
    padding: clamp(1rem, .85rem + .6vw, 1.375rem) 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(222, 42, 29, .13);
    transition: border-color 260ms cubic-bezier(.4, 0, .2, 1);
}

/* the foot of the list keeps no rule under it */
.teachers-section .ryp-faculty__rows .ryp-faculty__item:last-child .teacher-card {
    border-bottom: 0;
}

.teachers-section .ryp-faculty__item .teacher-card:hover,
.teachers-section .ryp-faculty__item .teacher-card:focus-visible {
    border-bottom-color: var(--ryp-red);
}
.teachers-section .teacher-card:focus-visible {
    outline: 2px solid var(--ryp-red);
    outline-offset: 4px;
}

.teachers-section .ryp-faculty__item .tc-photo {
    width: clamp(62px, 4vw + 36px, 84px);
    height: clamp(62px, 4vw + 36px, 84px);
    margin: 0;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ryp-red-tint);
    box-shadow: 0 0 0 1px rgba(222, 42, 29, .18);
    transition: box-shadow 260ms cubic-bezier(.4, 0, .2, 1);
}
.teachers-section .teacher-card:hover .tc-photo,
.teachers-section .teacher-card:focus-visible .tc-photo {
    box-shadow: 0 0 0 2px var(--ryp-red);
}

.teachers-section .ryp-faculty__item .tc-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* square source in a square frame crops nothing, so the face is pushed up
       and enlarged by hand */
    transform: scale(1.9);
    transform-origin: center 12%;
}

.teachers-section .ryp-faculty__item .tc-content { min-width: 0; }

.teachers-section .ryp-faculty__item .tc-name {
    margin: 0;
    font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--ryp-ink);
    transition: color 220ms ease;
}
.teachers-section .teacher-card:hover .tc-name,
.teachers-section .teacher-card:focus-visible .tc-name {
    color: var(--ryp-red-ink);
}

.teachers-section .ryp-faculty__item .tc-role {
    margin: .125rem 0 0;
    font-size: .8125rem;
    font-style: italic;
    line-height: 1.35;
    color: var(--ryp-red-ink);
}

.teachers-section .ryp-faculty__item .tc-bio {
    margin: .4375rem 0 0;
    font-size: .875rem;
    line-height: 1.55;
    color: var(--ryp-ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* The experience line becomes a quiet piece of metadata, not a pill. */
.teachers-section .ryp-faculty__item .tc-experience {
    margin: .375rem 0 0;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ryp-ink-soft);
    opacity: .8;
}
.teachers-section .tc-experience .star { display: none; }

/* ---------------------------------------------------------------------------
   3. THE FEATURE COLUMN (the founder)
   ---------------------------------------------------------------------------
   Every selector here goes through `.ryp-faculty__grid >`. Without it,
   `:first-child` also matched Anuj Ji — he is the first child of
   .ryp-faculty__rows — and his row rendered 1186px tall with a feature-sized
   portrait. Measured.
   --------------------------------------------------------------------------- */
@media (min-width: 62rem) {
    .teachers-section .ryp-faculty__grid > .ryp-faculty__item:first-child .teacher-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        height: 100%;
        padding: 0 clamp(1.5rem, 1rem + 2vw, 2.75rem) 0 0;
        border-bottom: 0;
        border-right: 1px solid rgba(222, 42, 29, .13);
        transition: border-color 260ms cubic-bezier(.4, 0, .2, 1);
    }
    .teachers-section .ryp-faculty__grid > .ryp-faculty__item:first-child .teacher-card:hover,
    .teachers-section .ryp-faculty__grid > .ryp-faculty__item:first-child .teacher-card:focus-visible {
        border-right-color: var(--ryp-red);
    }

    .teachers-section .ryp-faculty__grid > .ryp-faculty__item:first-child .tc-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        border-radius: 18px 18px 90px 18px;   /* one soft corner — the only flourish */
        box-shadow: none;
    }
    .teachers-section .ryp-faculty__grid > .ryp-faculty__item:first-child .teacher-card:hover .tc-photo,
    .teachers-section .ryp-faculty__grid > .ryp-faculty__item:first-child .teacher-card:focus-visible .tc-photo {
        box-shadow: none;
    }
    .teachers-section .ryp-faculty__grid > .ryp-faculty__item:first-child .tc-photo img {
        transform: scale(1.06);
        transform-origin: center 18%;
        transition: transform 600ms cubic-bezier(.4, 0, .2, 1);
    }
    .teachers-section .ryp-faculty__grid > .ryp-faculty__item:first-child .teacher-card:hover .tc-photo img {
        transform: scale(1.12);
    }

    .teachers-section .ryp-faculty__grid > .ryp-faculty__item:first-child .tc-content {
        margin-top: clamp(1rem, .8rem + .8vw, 1.5rem);
    }
    .teachers-section .ryp-faculty__grid > .ryp-faculty__item:first-child .tc-name {
        font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
    }
    .teachers-section .ryp-faculty__grid > .ryp-faculty__item:first-child .tc-role {
        font-size: .9375rem;
        margin-top: .25rem;
    }
    .teachers-section .ryp-faculty__grid > .ryp-faculty__item:first-child .tc-bio {
        -webkit-line-clamp: 4;
        font-size: .9375rem;
        margin-top: .75rem;
    }
    .teachers-section .ryp-faculty__grid > .ryp-faculty__item:first-child .tc-experience {
        margin-top: .875rem;
        padding-top: .75rem;
        border-top: 1px solid rgba(222, 42, 29, .13);
        align-self: stretch;
        color: var(--ryp-red-ink);
        opacity: 1;
    }
}

/* ---------------------------------------------------------------------------
   4. TWO PORTRAITS FRAMED BY HAND
   ---------------------------------------------------------------------------
   The shared crop assumes a head near the top centre of the frame. These two
   photos are not like that: Priyanka Ji's head sits at 47% / 35% of her frame
   and Vaishali Ji is seated far back at the right, her head at 73% / 18%, so
   the shared crop lost one face at the edge and showed the other none at all
   — the circle was all river and rock.

   The numbers are not guesses. For a head at f to land at the centre c of the
   circle under a scale S, the origin is o = (c - S*f) / (1 - S); the values
   below are that formula solved for c = 50% / 44% (eye line a little above
   centre), then checked on screen at three scales each.
   --------------------------------------------------------------------------- */
.teachers-section .ryp-faculty__rows .ryp-faculty__item:nth-child(4) .tc-photo img {
    transform: scale(3.2);          /* Priyanka Ji */
    transform-origin: 45% 31%;
}
.teachers-section .ryp-faculty__rows .ryp-faculty__item:nth-child(5) .tc-photo img {
    transform: scale(4.2);          /* Vaishali Ji */
    transform-origin: 80% 10%;
}

/* ---------------------------------------------------------------------------
   5. TABLET AND PHONE
   ---------------------------------------------------------------------------
   Below 62rem the feature column has no room to be a column, so every teacher
   including the founder becomes the same ruled row. One list, nothing cropped,
   nothing to swipe. Two columns of rows while there is width for them, one
   column on a phone.
   --------------------------------------------------------------------------- */
@media (max-width: 61.99rem) {
    .teachers-section .ryp-faculty__grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0;
    }
    /* ONE column below 62rem, not two. The pager shows a single teacher at a
       time at these widths, and it measures the window from one item's top to
       the next's bottom — side-by-side items share a top, so "one in view"
       would have set a window exactly as tall as a row and shown the pair in
       it, while marking the second one hidden from screen readers. The maths
       and the layout have to agree. */
    .teachers-section .ryp-faculty__rows {
        grid-template-columns: minmax(0, 1fr);
    }
    .teachers-section .ryp-faculty__rows .ryp-faculty__item:last-child .teacher-card {
        border-bottom: 0;
    }
    .teachers-section .ryp-faculty__grid > .ryp-faculty__item:first-child .tc-photo {
        box-shadow: 0 0 0 2px rgba(222, 42, 29, .3);
    }
}

/* ---------------------------------------------------------------------------
   8. ON A PHONE, ONE AT A TIME, STOOD UPRIGHT
   ---------------------------------------------------------------------------
   The owner's note: a single teacher in view, and the entry stood up rather
   than laid on its side. So the row stops being a row — the portrait goes on
   top, bigger, with the name, the role, the bio and the years centred under
   it. It reads as a card on a slide instead of a line in a list.

   The hairline between rows goes with the row: with one entry in view there is
   nothing underneath it to be divided from.
   --------------------------------------------------------------------------- */
@media (max-width: 47.99rem) {
    .teachers-section .ryp-faculty__item .teacher-card,
    .teachers-section .ryp-faculty__grid > .ryp-faculty__item .teacher-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: .25rem;
        padding: 1.5rem .5rem 1.75rem;
        border-bottom: 0;
    }

    .teachers-section .ryp-faculty__item .tc-photo {
        width: 128px;
        height: 128px;
        margin: 0 0 .875rem;
        box-shadow: 0 0 0 1px rgba(222, 42, 29, .18),
                    0 10px 24px rgba(26, 26, 26, .08);
    }

    /* Section 1b sets text-align: left straight onto these four to undo the
       theme's centring. That beats inheriting `center` from the card, so the
       phone layout has to name them again. */
    .teachers-section .ryp-faculty .tc-content,
    .teachers-section .ryp-faculty .tc-name,
    .teachers-section .ryp-faculty .tc-role,
    .teachers-section .ryp-faculty .tc-bio,
    .teachers-section .ryp-faculty .tc-experience {
        text-align: center;
    }
    .teachers-section .ryp-faculty__item .tc-experience {
        justify-content: center;
    }

    .teachers-section .ryp-faculty__item .tc-name {
        font-size: 1.25rem;
    }
    .teachers-section .ryp-faculty__item .tc-role {
        font-size: .875rem;
        margin-top: .25rem;
    }
    .teachers-section .ryp-faculty__item .tc-bio {
        -webkit-line-clamp: 4;
        line-clamp: 4;
        margin-top: .625rem;
        max-width: 34ch;
    }
    .teachers-section .ryp-faculty__item .tc-experience {
        margin-top: .75rem;
        padding-top: .625rem;
        border-top: 1px solid rgba(222, 42, 29, .14);
        min-width: 11rem;
    }
}

/* ---------------------------------------------------------------------------
   6. THE BUTTON UNDER THE LIST
   --------------------------------------------------------------------------- */
.teachers-section .wcj-cta {
    margin-top: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
}

@media (prefers-reduced-motion: reduce) {
    .teachers-section .teacher-card,
    .teachers-section .tc-photo,
    .teachers-section .tc-photo img,
    .teachers-section .tc-name {
        transition: none;
    }
}

/* ---------------------------------------------------------------------------
   7. FOUR IN VIEW, THE REST ON A SLIDER  (desktop only)
   ---------------------------------------------------------------------------
   The owner's note: four teachers beside the founder, the other two reached by
   sliding, and the controls above the list rather than under it. The founder's
   column is untouched by any of it. The mechanism and the controls themselves
   are shared with the reviews section — see static/css/pager.css and
   static/js/section-pager.js.

   `grid-auto-rows: 1fr` is what keeps this tidy. In a grid whose own height is
   indefinite, a 1fr row resolves to the tallest row's content, so all six rows
   come out the same height and the list reads as a ruled index rather than a
   ragged one.
   --------------------------------------------------------------------------- */
.teachers-section .ryp-faculty__rows { grid-auto-rows: 1fr; }

/* The window's bottom edge lands exactly on the fourth row's hairline; without
   this the fifth row's top border peeks in under it. */
.teachers-section .ryp-pager__viewport.is-paged {
    -webkit-mask-image: linear-gradient(#000 calc(100% - 1px), transparent 0);
    mask-image: linear-gradient(#000 calc(100% - 1px), transparent 0);
}


/* ---------------------------------------------------------------------------
   HORIZONTAL BELOW 62rem
   ---------------------------------------------------------------------------
   The slider swipes left to right on a phone, so this track stops being a
   column and becomes one row of full-width cards. pager.css sets the same
   thing generically; it is repeated here because this file gives the track its
   own grid-template-columns at these widths, and the generic rule would lose
   to it on specificity.
   --------------------------------------------------------------------------- */
@media (max-width: 61.99rem) {
    .teachers-section .ryp-faculty__rows {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        column-gap: 0;
        align-items: start;
    }
}
