@charset "UTF-8";
/* ===========================================================================
   SECTION SEAMS — the wave edge
   ---------------------------------------------------------------------------
   The owner's note: with every section on a near-white ground, one ran into
   the next and the page read as one long scroll with no joints. Two shapes
   were tried — a hairline with a diamond, then a torn-paper edge — and the
   owner then sent a reference for soft waves with bubbles, which is this.

   HOW IT WORKS: each section carries one <span class="ryp-seam">, a band
   pinned across its top, masked by static/img/wave-edge.svg — flat along the
   top, a wave along the bottom. Nothing else: the band had bubbles punched out
   of it and floating below it, and the owner asked for the curve on its own.

   The mask tiles. The bottom edge is a sum of two sines with periods of
   exactly one and two tile widths, so its height AND its slope match at both
   ends and `mask-repeat: repeat-x` joins invisibly at any viewport width.

   WHY THE MASK IS SIZED IN BOTH AXES: `1200px 100%` would stretch the tile
   vertically to whatever height the band happens to be, and the bubbles would
   come out as ellipses. Each breakpoint below therefore sets a width and a
   height in the same ratio as the artwork's own 1200 x 130, so the scale stays
   uniform and a circle stays a circle.

   THE BAND IS THE SECTION ABOVE. A band in a colour of its own reads as a
   stripe laid between two sections — the owner's note, and it was right: with
   white above and a grey band below it, the band looked stuck on. The band has
   to BE the previous section's ground, running down into the next one and
   breaking off in a wave.

   That only works if consecutive sections differ, so the tones alternate:
   white, warm, white, warm, down the page. Under that rule a band's colour is
   simply the opposite of its own section's ground.

   DRIVEN BY THE MARKUP, NOT BY A LIST OF SECTION NAMES. The first version of
   this file named the eleven homepage sections. The moment the same stylesheet
   was loaded on a course page it started colouring and padding sections there
   that have no band at all — measured on the 200-hour page: five sections
   picked up a 113px top padding reserved for a wave that was not present, and
   the alternation came out wrong because that page's order is different.

   So a section declares its own ground with .ryp-ground--white or
   .ryp-ground--paper, and anything carrying a <span class="ryp-seam"> gets the
   positioning and the clearance through :has(). Adding a band to a new page is
   then two classes and a span, with nothing to edit in here. (ryp-overrides.css
   already relies on :has(); a browser without it simply renders the section
   without a band, which is the safe direction to fail.)

   THREE SECTIONS GET NO BAND. The about section sits under the hero and the
   FAQ under the full-bleed photo CTA; neither has a flat colour above it to
   carry down, and a band would be inventing one. The hero has none either —
   it ends in its own edge element, which now carries the same wave.

   WHY A SPAN AND NOT A PSEUDO-ELEMENT: the obvious place is `section::before`,
   and it is taken — style.css:875-900 uses both ::before and ::after on
   `.bg-chakra` for the chakra pattern, and several of these sections are
   .bg-chakra. One real element per section keeps all of them identical
   instead of a dozen near-misses.

   The facilities section has no class of its own worth naming (its tag reads
   `class="section-padding bg-chakra"`), so it is listed below by its id,
   #join-family. `.section-padding` is NOT used as the selector here: it is on
   every section on the site, and giving all of them `position: relative`
   would re-root any absolutely positioned child that currently resolves
   against something further up.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. THE TWO GROUNDS
   ---------------------------------------------------------------------------
   #f2f0ec is the site's own bg-alt tone, so nothing new is introduced. A page
   sets these in its markup, alternating down the page.
   --------------------------------------------------------------------------- */
/* The course pages hang a band on the milestones block too, which is a <div>
   rather than a <section> — hence :is(section, .nh-stats-cta) below. It is a
   band in everything but its tag name. */
.ryp-ground--paper { background-color: #f2f0ec; --ryp-ground: #f2f0ec; }
.ryp-ground--white { background-color: #fff;    --ryp-ground: #fff; }

/* ---------------------------------------------------------------------------
   2. THE BAND
   --------------------------------------------------------------------------- */
:is(section, .nh-stats-cta):has(> .ryp-seam) { position: relative; }

.ryp-seam {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 104px;                      /* 130 x 0.8, matching the mask below */
    z-index: 2;
    pointer-events: none;

    -webkit-mask-image: url("../img/wave-edge.svg?v=3");
    mask-image: url("../img/wave-edge.svg?v=3");
    -webkit-mask-size: 960px 104px;     /* 1200 x 130 at 0.8 */
    mask-size: 960px 104px;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    -webkit-mask-position: left top;
    mask-position: left top;
}

/* A band carries the tone of the section ABOVE it, which under the
   alternation is always the opposite of its own section's ground. */
.ryp-seam                          { background: #f2f0ec; }   /* on a white section */
.ryp-ground--paper > .ryp-seam     { background: #fff; }      /* on a warm one */

/* ---------------------------------------------------------------------------
   3. ROOM UNDER THE WAVE
   ---------------------------------------------------------------------------
   The band is absolutely positioned, so it takes no space in the flow and the
   section's own padding is all that stands between the wave and the first line
   of text. Measured at 1440: the wave's lowest point sits 64px down and the
   heading began at 75px — an 11px gap, which read as the text being stuck to
   the divider.

   The theme's `.section-padding` is 75px (50px at 575px and under); these add
   the clearance on top of it, written as a sum so the theme's own number stays
   visible rather than being quietly replaced by a magic one.
   --------------------------------------------------------------------------- */
:is(section, .nh-stats-cta):has(> .ryp-seam) { padding-top: calc(75px + 38px); }   /* wave bottom 64 -> ~49px clear */

@media (max-width: 61.99rem) {
    .ryp-seam {
        height: 78px;                   /* 130 x 0.6 */
        -webkit-mask-size: 720px 78px;  /* 1200 x 130 at 0.6 */
        mask-size: 720px 78px;
    }
    :is(section, .nh-stats-cta):has(> .ryp-seam) { padding-top: calc(75px + 16px); }   /* wave bottom 48 */
}

@media (max-width: 47.99rem) {
    /* The wave is authored 1200px wide. Left at that size on a phone barely
       half a cycle would be on screen and it would read as a slope rather
       than a wave, so the tile is scaled down with the viewport. */
    .ryp-seam {
        height: 65px;                   /* 130 x 0.5 */
        -webkit-mask-size: 600px 65px;  /* 1200 x 130 at 0.5 */
        mask-size: 600px 65px;
    }
}

@media (max-width: 35.99rem) {
    /* the theme drops its own padding to 50px here */
    :is(section, .nh-stats-cta):has(> .ryp-seam) { padding-top: calc(50px + 24px); }   /* wave bottom 40 */
}

/* ---------------------------------------------------------------------------
   6. THE INNER-PAGE BANNER'S FOOT
   ---------------------------------------------------------------------------
   The owner asked for a curved, paper-like edge under the banner photograph
   on every page. The site already has a shape for exactly that — the wave in
   static/img/wave-edge.svg that the owner picked for the section seams above
   — so this is the same artwork rather than a second curve competing with it.

   The reading is the same as a seam's: the page below runs UP into the
   photograph and breaks off in a wave. The band is therefore the colour of
   the section that follows, and it is flipped (scaleY(-1)) so the flat edge
   sits at the bottom, against the page, and the wave bites into the picture.

   WHY ::before AND NOT A SPAN. A seam is a real element because section::before
   was already taken. Here the opposite is true: .breadcrumb-wrapper carries no
   span, it is written out in all eleven page files plus the live originals, and
   style.css:452 only uses its ::before for a 5%-white dot grid — a texture from
   the theme we are moving away from, which no longer survives anywhere else.
   Taking that pseudo-element over costs one decoration and keeps every page in
   step with no markup to add. ::after is the dark wash over the photograph and
   is left alone.

   style.css sets `inset: 0` on it, so all four offsets are restated here;
   `top: auto` is what releases it from the top of the banner.
   --------------------------------------------------------------------------- */
.breadcrumb-wrapper::before {
    top: auto;
    right: 0;
    bottom: -1px;                       /* covers the sub-pixel seam when the banner height lands on a fraction */
    left: 0;
    height: 104px;                      /* 130 x 0.8, as the seam */
    z-index: 2;                         /* over the photograph and its wash, under .bw-nav's content */
    background-image: none;             /* the theme's dot grid */
    background-color: #fff;
    background-size: auto;

    -webkit-mask-image: url("../img/wave-edge.svg?v=3");
    mask-image: url("../img/wave-edge.svg?v=3");
    -webkit-mask-size: 960px 104px;
    mask-size: 960px 104px;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    -webkit-mask-position: left top;
    mask-position: left top;

    transform: scaleY(-1);              /* flat edge down, wave up into the photograph */
}

/* Two pages open on a warm section — the founder page and the course index —
   so there the band has to be warm too, or the wave would be a white shape
   sitting on a grey ground. Both are marked by the theme's own .bg-alt, and
   .ryp-ground--paper is accepted as well so a section that declares its ground
   the redesign's way is covered without editing this rule. */
.breadcrumb-wrapper:has(+ .bg-alt)::before,
.breadcrumb-wrapper:has(+ .ryp-ground--paper)::before { background-color: #f2f0ec; }

/* Room for the wave: the banner's words sit at its foot, and the wave's
   deepest point now reaches ~64px up from the bottom. */
.breadcrumb-wrapper .breadcrumb-heading { padding-bottom: 58px; }

@media (max-width: 61.99rem) {
    .breadcrumb-wrapper::before {
        height: 78px;
        -webkit-mask-size: 720px 78px;
        mask-size: 720px 78px;
    }
    .breadcrumb-wrapper .breadcrumb-heading { padding-bottom: 44px; }
}

@media (max-width: 47.99rem) {
    .breadcrumb-wrapper::before {
        height: 65px;
        -webkit-mask-size: 600px 65px;
        mask-size: 600px 65px;
    }
    .breadcrumb-wrapper .breadcrumb-heading { padding-bottom: 36px; }
}

/* ---------------------------------------------------------------------------
   7. THE TAGLINE ON THE CURVE
   ---------------------------------------------------------------------------
   The owner asked for one line at the foot of every page's first section,
   centred, sitting on the curve, where it will be seen before anything else.

   WHAT IT SAYS. The wording is the owner's, given verbatim on 15 Nov 2026
   after a first pass that left out "India's First". That phrase is a
   superlative the site makes nowhere else and that nothing here can check, so
   it was raised; the owner asked for it again with the full text, so it is his
   call and it stands as he wrote it. The second half — the same fee for Indian
   and international students — the course pages already state in their own
   copy, so that part is on firm ground.

   THE FLAG is assets/images/icons/flag/ind-flag.webp, which was already on the
   site (150x151, used on the course pages' fee rows); nothing new was added
   for it.

   WHERE IT SITS: inside the first section, as its last child, with enough
   bottom padding to clear the wave. On the inner pages that is
   .breadcrumb-wrapper (the plate is over the photograph, so it is a paper
   plate with ink on it); on the homepage it is .ryp-hero, just above the tear.

   It is a plate and not a bar across the full width on purpose: a full-bleed
   band would cut the photograph in two right where the wave already cuts it,
   and the two edges would fight. A centred plate reads as one object laid on
   the picture, and it is the thing the wave rises behind.
   --------------------------------------------------------------------------- */
.ryp-promise {
    position: relative;
    z-index: 3;                      /* over the wave, which sits at 2 */
    width: min(100% - 2rem, 46rem);
    margin: auto auto 0;
    padding: clamp(.75rem, .6rem + .7vw, 1.125rem) clamp(1rem, .8rem + 1vw, 1.75rem);
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-top: 2px solid var(--ryp-red);
    border-radius: var(--ryp-img-radius);
    box-shadow: 0 18px 40px -26px rgba(26, 26, 26, .55);
    text-align: center;
}

/* THE FLAGS
   ---------------------------------------------------------------------------
   Owner, 16 Nov 2026: one Indian flag became twelve, so a visitor finds their
   own and the promise reads as being addressed to them. India stays first and
   keeps a red ring, because the sentence underneath is about India.

   A list, not a row of loose images: twelve flags ARE a list of countries, and
   each one carries its country in its alt text, so a screen reader hears the
   countries and a crawler reads them. The "+60 more" chip closes the row with
   the figure the rest of the site states.

   Twelve fit one line down to about 30rem and wrap to two below that, which is
   why this is flex-wrap and not a scroller: a strip you have to swipe hides
   exactly the flag the visitor was looking for.
   --------------------------------------------------------------------------- */
.ryp-promise__flags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(.3125rem, .25rem + .25vw, .5rem);
    margin: 0 0 clamp(.625rem, .5rem + .4vw, .875rem);
    padding: 0;
    list-style: none;
}
.ryp-promise__flags li {
    display: flex;
    margin: 0;
    padding: 0;
}
.ryp-promise__flags img {
    display: block;
    width: clamp(22px, 18px + 1.1vw, 30px);
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    /* a hairline so a flag with a white edge -- Japan, Israel, the Netherlands
       -- still reads as a disc on a white plate rather than bleeding into it */
    border: 1px solid rgba(26, 26, 26, .16);
    object-fit: cover;
}
/* India first, and marked: the headline is a claim about India */
.ryp-promise__flags li:first-child img {
    border-color: var(--ryp-red);
    box-shadow: 0 0 0 2px var(--ryp-red-tint);
}
/* The pill is on the SPAN, not the <li>. On a phone the <li> takes a full
   line of its own so the twelve flags can hold one row, and a pill stretched
   across that line read as a button to tap. */
.ryp-promise__more {
    align-items: center;
    margin-left: .125rem;
}
.ryp-promise__more span {
    display: inline-flex;
    align-items: center;
    padding: 0 .5rem;
    height: clamp(20px, 17px + 1vw, 28px);
    border-radius: 999px;
    background: var(--ryp-red-tint);
    color: var(--ryp-red-ink);
    font-size: clamp(10px, 9px + .2vw, 11.5px);
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
}

/* the single-flag rule the strip used before the row; kept so a page that
   still carries the old markup does not lose its flag */
.ryp-promise__flag {
    display: block;
    width: clamp(28px, 24px + .9vw, 38px);
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto .5rem;
    border-radius: 50%;
    border: 1px solid rgba(26, 26, 26, .14);
    object-fit: cover;
}

.ryp-promise__line {
    margin: 0;
    font-family: "Belleza", Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, .92rem + .55vw, 1.375rem);
    line-height: 1.25;
    color: var(--ryp-ink);
    /* the line is long; keep it off the plate's edges on a wide screen */
    max-width: 38ch;
    margin-inline: auto;
}
.ryp-promise__note {
    max-width: 62ch;
    margin: .3125rem auto 0;
    font-size: clamp(.75rem, .72rem + .18vw, .875rem);
    line-height: 1.5;
    color: var(--ryp-ink-soft);
}
/* The promise on its own line, in ink, over the explanation in the soft tone.
   display:block rather than a <br>: a break tags along with whatever width the
   plate happens to be and puts the split in the wrong place on a phone. */
.ryp-promise__note-lead {
    display: block;
    margin-bottom: .1875rem;
    font-weight: 700;
    color: var(--ryp-ink);
}

/* -- the Google rating ----------------------------------------------------
   Owner, 16 Nov 2026: show the review score on the plate too.

   It sits BELOW the promise and behind a hairline, not beside the flags: the
   flags and the headline are one argument (the same fee for everyone) and the
   score is a second, independent one. Run together they read as a single
   marketing sentence and neither lands.

   Stars in brand red rather than the usual amber — on a plate this small a
   gold accent is the only warm note on the page and it reads as a sticker.
   -------------------------------------------------------------------------- */
.ryp-promise__rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .25rem .4375rem;
    margin: clamp(.625rem, .5rem + .4vw, .875rem) 0 0;
    padding: clamp(.5rem, .4rem + .35vw, .75rem) 0 0;
    border-top: 1px solid rgba(26, 26, 26, .13);
    font-size: clamp(.75rem, .72rem + .18vw, .8125rem);
    line-height: 1.4;
    color: var(--ryp-ink-soft);
}
.ryp-promise__stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: var(--ryp-red);
}
.ryp-promise__stars svg { display: block; }
.ryp-promise__rating strong {
    font-family: "Belleza", Georgia, serif;
    font-weight: 400;
    font-size: clamp(.9375rem, .88rem + .3vw, 1.125rem);
    line-height: 1;
    color: var(--ryp-ink);
}
.ryp-promise__rating-sep { color: rgba(26, 26, 26, .3); }

/* -- room for it at the foot of the banner -------------------------------- */
.breadcrumb-wrapper:has(.ryp-promise) {
    /* the banner was clamp(220px, 30vh + 10vw, 650px); the strip needs its own
       height plus the wave's, and the words above it must not be pushed into
       either */
    min-height: clamp(360px, 30vh + 10vw + 120px, 700px);
    height: auto;
    padding-bottom: clamp(74px, 5vw + 44px, 118px);   /* wave 65–104 + air */
}
.breadcrumb-wrapper:has(.ryp-promise) .bw-nav { flex: 1; }
/* the heading's own clearance was for the wave alone; the strip now provides it */
.breadcrumb-wrapper:has(.ryp-promise) .breadcrumb-heading { padding-bottom: 0; }

/* -- the homepage: on the hero's own ground, above the tear --------------- */
.ryp-hero .ryp-promise {
    margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    margin-bottom: 0;
}

@media (max-width: 35.99rem) {
    /* MEASURED at 375px: the plate's inner width is 319px, and twelve 22px
       flags with 5px gaps come to exactly 319 -- so the "+60 more" chip
       pushed itself onto a second line with Japan for company, which read as
       a mistake. Twenty-pixel flags on a 4px gap come to 284 and all twelve
       hold one line; the chip then takes a centred line of its own, which is
       where it belongs anyway. */
    .ryp-promise__flags { gap: 4px; }
    .ryp-promise__flags img { width: 20px; }
    .ryp-promise__more {
        flex-basis: 100%;
        justify-content: center;
        margin: .375rem 0 0;
    }
}

@media (max-width: 47.99rem) {
    .ryp-promise { width: calc(100% - 1.5rem); }
    .breadcrumb-wrapper:has(.ryp-promise) { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    .ryp-promise { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
