/* The Banyan design's stylesheet. Generated by assets/v3/build.py; edit build.py, not this file. */

/* =================================================================== 1. Base */
:root {
  --paper: #FFFBE8;             /* a lighter tint of --p8 */
  --paper-2: var(--p8);
  --ink: rgba(36, 4, 0, .86);
  --ink-soft: rgba(36, 4, 0, .64);
  --rule: rgba(143, 20, 0, .24);
  --wrap: 1180px;
  /* the site's light textures with their tan divided out (assets/images/make_textures.py): multiplied over a band, they
     add the grain and leave the band's colour alone */
  --tx-paper: url("img/tx-paper.jpg"); --tx-gobar: url("img/tx-gobar.jpg"); --tx-taadpatra: url("img/tx-taadpatra.jpg");
  --tx-khadi: url("img/tx-khadi.jpg"); --tx-tussar: url("img/tx-tussar.jpg");
  --edge: inset 0 26px 50px -30px rgba(87, 10, 0, .28), inset 0 -26px 50px -30px rgba(87, 10, 0, .28);   /* a band's top and bottom edges fall into shade */
  --lift: 0 30px 60px -26px rgba(36, 4, 0, .6); --lift-s: 0 16px 30px -16px rgba(36, 4, 0, .5);          /* things that sit above the page */
  --head-h: 64px;   /* the menu bar's height at the top of the page, and once scrolled (site.js measures both) */
  --head-s: 52px;
}
html { background: var(--paper); }
body { background: var(--tx-paper) top center / 1400px auto repeat, var(--paper); background-blend-mode: multiply; color: var(--ink); font-size: 1.0625rem; overflow-x: hidden; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; margin: 0; text-wrap: balance; color: var(--p1); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.hl { font-style: normal; color: var(--p3); }
.dev { font-family: var(--font-sanskrit); }
.soft { color: var(--ink-soft); }
::selection { background: var(--p7); color: #240400; }
:focus-visible { outline: 2px solid var(--p4); outline-offset: 4px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--p8); color: #240400; padding: 10px 16px; border-radius: 4px; }
.skip:focus { left: 16px; }

.sec { padding: clamp(56px, 7vw, 104px) 0; }
.h-l { font-size: clamp(1.75rem, 3.5vw, 2.9rem); line-height: 1.2; }
.lede { font-size: clamp(1.08rem, 1.45vw, 1.28rem); line-height: 1.75; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-size: .76rem; letter-spacing: .26em; text-transform: uppercase; color: var(--p2); margin: 0 0 18px; }
.eyebrow::before { content: ""; flex: none; width: 34px; height: 2px; background: var(--p3); }
.eyebrow.c { justify-content: center; }
.eyebrow.c::after { content: ""; flex: none; width: 34px; height: 2px; background: var(--p3); }

/* links and buttons: colour changes on hover, nothing moves */
.tl { display: inline-block; color: var(--ink); text-decoration: none; font-family: var(--font-heading); font-size: .92rem; letter-spacing: .05em; padding-bottom: 4px; border-bottom: 2px solid var(--p3); transition: border-color .25s, color .25s; }
.tl:hover { color: var(--p2); border-color: var(--p2); }
/* Buttons: a rounded pill in marigold, gold into a light orange (the user's choice of 2026-11-12, from the button options:
   "Marigold color in a rounded pill"; the orange P6 into P5 was "way too deep"). Where a button sits on gold, it takes
   the deeper orange instead, so it still stands out ("gold background which have a darker color button"). */
:root { --btn-top: #FFD36E; --btn-bot: #FFA94A; --btn-top-h: #FFC95A; --btn-bot-h: #FF9A3C; }
.b-guru, .s-dont, .mb-cards, .site-footer { --btn-top: var(--p7); --btn-bot: var(--p6); --btn-top-h: var(--p6); --btn-bot-h: var(--p5); }   /* hover inverted: the deep orange only on hover (the user, 2026-11-13) */   /* on gold */
.course { --btn-top: #FFD36E; --btn-bot: #FFA94A; --btn-top-h: #FFC95A; --btn-bot-h: #FF9A3C; }   /* cream cards, even inside a gold panel */
.fh { --btn-top: var(--p6); --btn-bot: var(--p5); --btn-top-h: var(--p7); --btn-bot-h: var(--p6); }   /* Explore Gurukul: Variant 6's deep orange, lighter on hover, as there (the user, 2026-11-13) */
.btn { display: inline-block; background: var(--p7); color: #240400; text-decoration: none; font-family: var(--font-heading); font-size: .95rem; letter-spacing: .05em; padding: 13px 24px; border-radius: 4px; transition: background .25s;   /* the earlier shape, back (the user, 2026-11-13: keep the colours, revert the shape and shading) */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(143, 20, 0, .3), var(--lift-s); }
.btn:hover { background: var(--p6); }
.btn-deep { background: linear-gradient(180deg, var(--btn-top), var(--btn-bot)); color: #240400;
  box-shadow: inset 0 1px 0 rgba(255, 247, 194, .5), inset 0 -2px 0 rgba(143, 20, 0, .3), var(--lift-s); }
.btn-deep:hover { background: linear-gradient(180deg, var(--btn-top-h), var(--btn-bot-h)); }
@media (max-width: 380px) { .btn { padding: 12px 20px; font-size: .9rem; letter-spacing: .02em; } }   /* the smallest phones: "Listen on YouTube" stays on one line */
@media (max-width: 360px) { .btn { padding: 12px 16px; font-size: .86rem; letter-spacing: 0; } }   /* 320px phones: the same, for the longest label */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 30px; }

/* footer: V3.2's footer (its layout is in shared/base.css), in the Banyan design's colours: gold with the tussar
   texture and dark text, maroon column titles and rules */
footer.site-footer { --sf-ink: rgba(36, 4, 0, .78); --sf-strong: #240400; --sf-accent: var(--p2); --sf-rule: rgba(143, 20, 0, .24); --sf-hover: var(--p2);
  background: var(--tx-tussar) center / cover, var(--p7); background-blend-mode: multiply; box-shadow: var(--edge); }
.site-footer .sf-bottom { padding: 26px 0; }   /* the copyright line midway between the rule and the page's end */
.site-footer a:not([href]) { cursor: default; }   /* Privacy policy, Terms of use: plain text until their pages exist */
.site-footer a:not([href]):hover { color: var(--sf-ink); }
/* phones: the four groups two by two (Learn | Gurukul, Watch | Contact), as on tablets; shared/base.css gave Contact a
   row of its own, which left a gap beside Watch (the user's request, 2026-11-12) */
@media (max-width: 520px) { .site-footer .sf-contact { grid-column: auto; } }
/* YouTube, Facebook and Twitter under the school's name: each mark with its name, dark, turning maroon on hover */
.site-footer .sf-social { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.site-footer .sf-social a { display: inline-flex; align-items: center; gap: 8px; color: var(--sf-strong); }
.site-footer .sf-social a:hover, .site-footer .sf-social a:focus-visible { color: var(--sf-hover); }
.site-footer .sf-social svg { flex: none; }

/* reveal: content sharpens into view */
.js .rv { opacity: 0; filter: blur(5px); transition: opacity 1.4s ease, filter 2s ease; }
@media (max-width: 900px), (pointer: coarse) { .js .rv { filter: none; } }
.js .rv.in { opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; filter: none; } }

/* in-page links land just below the menu bar; full-width bands land right under it */
[id] { scroll-margin-top: calc(var(--head-s) + 32px); }

/* =================================================================== 2. Home */
/* ---------- the questions, the four kinds of seeker, "Write to us" ---------- */
.qs { list-style: none; margin: 0; padding: 0; }
.qs li { padding: 18px 0; border-top: 1px solid var(--rule); font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.55; font-style: italic; }
.qs li:last-child { border-bottom: 1px solid var(--rule); }
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px; margin: 0; padding: 0; list-style: none; }
.levels .dev { display: block; font-size: 1.7rem; line-height: 1.3; color: var(--p3); }
.levels h3 { font-size: 1.3rem; margin: 2px 0 8px; }
.levels p { font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
@media (max-width: 900px) { .levels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .levels { grid-template-columns: 1fr; } }
.write-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; align-items: start; }
.write-links { list-style: none; margin: 0; padding: 0; }
.write-links li { border-top: 1px solid rgba(143, 20, 0, .5); }   /* Contact us only: twice the usual line's strength, still not solid (the user, 2026-11-13) */
.write-links li:last-child { border-bottom: 1px solid rgba(143, 20, 0, .5); }
.write-links a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 16px 0; text-decoration: none; color: var(--ink); transition: color .25s; }
.write-links a:hover { color: var(--p3); }
.write-links span { flex: none; width: 96px; font-family: var(--font-heading); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.write-links strong { font-family: var(--font-heading); font-weight: 400; font-size: clamp(1rem, 1.5vw, 1.2rem); overflow-wrap: anywhere; }
.hear { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 1rem; color: var(--ink-soft); }
.hear a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -6px 0; color: var(--p2); transition: color .25s; }   /* the platforms' icons in place of their names (the user, 2026-11-13) */
.hear a:hover { color: var(--p3); }
@media (max-width: 820px) { .write-grid { grid-template-columns: 1fr; } }

/* ---------- the hero: a full-screen photograph ---------- */
.fh { position: relative; isolation: isolate; min-height: max(100svh, 760px); display: flex; flex-direction: column; overflow: hidden; }
.fh-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -1; }
.fh .lede { color: #240400; margin-top: 16px; }
.fh .eyebrow { margin-bottom: 14px; color: var(--p1); }
.fh .eyebrow::before, .fh .eyebrow.c::after { background: var(--p2); }
.fh .actions { margin-top: 22px; }
@media (max-aspect-ratio: 4/5) {   /* upright screens get the upright photograph */
  .fh-img { object-position: 50% 100%; }
  .fh .lede { margin-top: 10px; font-size: 1.02rem; line-height: 1.6; }
  .fh .actions { margin-top: 16px; gap: 14px 24px; }
}

/* ---------- sections with thin headings (Maharshi Sahaj, Ways to begin) ---------- */
.thin-head h1, .thin-head h2 { font-family: var(--font-body); font-weight: 300; letter-spacing: -.015em; }
.a-h1 { font-size: clamp(2.7rem, 7.4vw, 5.8rem); line-height: 1; }
.thin-head .h-l { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.1; }
.a-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 40px; align-items: center; }
.a-row .i4l { grid-column: 1 / span 4; } .a-row .t7r { grid-column: 6 / span 7; }
.a-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; box-shadow: var(--lift); }
.a-row .dev { display: block; font-size: 1.3rem; color: var(--p3); margin-bottom: 2px; }
.a-row .lede { margin: 20px 0; }
.a-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px; margin-top: 40px; }
.a-tiles img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; margin-bottom: 18px; box-shadow: var(--lift-s); }
.a-tiles h3 { font-size: 1.4rem; margin-bottom: 6px; }
.a-tiles p { color: var(--ink-soft); margin-bottom: 12px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 40px; }
.head-row p { max-width: 34em; margin: 0; }
@media (max-width: 860px) {
  .a-row { grid-template-columns: 1fr; }
  .a-row .i4l, .a-row .t7r { grid-column: 1 / -1; }
  .a-row img { aspect-ratio: 4 / 3; }
  .a-row .i4l { order: -1; }
  .a-tiles { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- the search, the practice, what we don't do, the path ---------- */
.s-why { text-align: center; }
.s-why .wrap { max-width: 860px; }
.s-why .qs { text-align: left; margin-top: 30px; }
.s-why h2 { color: var(--p2); margin-bottom: 24px; }
.s-discs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 28px; margin-top: 44px; text-align: center; }
.s-disc { width: min(168px, 100%); aspect-ratio: 1; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, var(--p8) 0%, var(--p7) 62%, var(--p6) 100%); box-shadow: var(--lift-s), inset 0 -8px 16px rgba(196, 34, 0, .22); }
.s-disc .dev { font-size: 2.1rem; color: var(--p1); line-height: 1; position: relative; top: .16em; }   /* Devanagari sits high in its line box: dropped to the disc's visual centre */
.s-discs strong { font-family: var(--font-heading); font-weight: 400; font-size: 1.2rem; display: block; }
.s-discs span.t { color: var(--ink-soft); font-size: .98rem; line-height: 1.55; }
.s-dont { background: var(--tx-gobar) top center / 1400px auto repeat, linear-gradient(180deg, #FFB447, #FF7D2B); background-blend-mode: multiply, normal; text-align: center; box-shadow: var(--edge); }   /* the strongest band on the page: the orange, half a step lighter than P6 into P5 since the user asked for "a little lighter" (2026-11-12); the same in-between oranges as the ladder of stages */
.s-dont .wrap { max-width: 920px; }
.s-dont .eyebrow { color: #240400; } .s-dont .eyebrow::before, .s-dont .eyebrow::after { background: #240400; }
.s-dont h2 { color: #240400; }
.s-dont p.lede { color: #240400; margin-top: 24px; font-weight: 500; }
.s-ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; margin-top: 44px; }
.s-step { padding: 18px 16px 20px; border-radius: 6px 6px 0 0; color: #240400; background-image: var(--tx-taadpatra); background-size: 900px auto; background-blend-mode: multiply; box-shadow: var(--lift-s); }   /* palm-leaf strips */
.s-step .dev { font-size: 1.5rem; display: block; }
.s-step h3 { font-size: 1.05rem; line-height: 1.3; margin: 2px 0 8px; color: inherit; }
.s-step p { font-size: .93rem; line-height: 1.5; }
/* the ladder climbs from cream to the orange */
.s-step:nth-child(1) { background-color: #FFF2B0; min-height: 230px; } .s-step:nth-child(2) { background-color: #FFE488; min-height: 262px; }
.s-step:nth-child(3) { background-color: var(--p7); min-height: 294px; } .s-step:nth-child(4) { background-color: #FFB447; min-height: 326px; }
.s-step:nth-child(5) { background-color: var(--p6); min-height: 358px; } .s-step:nth-child(6) { background-color: #FF7D2B; min-height: 390px; }
.s-ground { height: 4px; background: var(--p2); border-radius: 0 0 6px 6px; }
.s-center { text-align: center; } .s-center .soft { max-width: 36em; margin: 16px auto 0; }
.page-index .levels { margin-top: 44px; text-align: center; }
/* .write sits on the page's own white paper, as before (the user, 2026-11-12) */
@media (max-width: 1040px) { .s-ladder { grid-template-columns: repeat(3, 1fr); align-items: stretch; } .s-step { min-height: 0 !important; border-radius: 6px; } .s-ground { display: none; } }
@media (max-width: 860px) { .s-discs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .s-ladder { grid-template-columns: 1fr; } }

/* ---------- the hero, as on the Advait Bodh site: the photograph shaded dark from the left, the words in cream ---------- */
.fh--dusk { color: #FFF8E9; background: #51150C; padding-top: var(--head-h); }
.fh--dusk .fh-img { object-position: 54% 50%; }
.dk-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(90deg, rgba(30, 7, 3, .9) 0%, rgba(44, 12, 5, .75) 33%, rgba(47, 15, 7, .24) 64%, rgba(24, 9, 4, .24) 100%),
  linear-gradient(0deg, rgba(26, 7, 2, .48), transparent 44%),
  linear-gradient(180deg, rgba(14, 4, 1, .36), transparent 34%); }
/* the words: left, centred vertically */
.fh--dusk .fh-in { flex: 1; display: flex; align-items: center; padding-block: 24px 64px; }
.fh--dusk .fh-copy { max-width: 790px; }
.fh--dusk .eyebrow { color: var(--p7); margin-bottom: 18px; }
.fh--dusk .eyebrow::before { background: var(--p7); height: 1px; }
.fh--dusk h1 { font-family: var(--font-body); font-weight: 500; letter-spacing: -.015em; color: #FFF8E9; }   /* Medium, the user's pick (2026-11-12) after light 300, bold 700 ("a little too much") and semi-bold 600 */
.fh--dusk h1.a-h1 { font-size: clamp(2.7rem, min(7.4vw, 11svh), 5.8rem); line-height: 1.02; }
.fh--dusk h1 .hl { display: block; color: #FFDD9C; }   /* the second line, in the paler gold that site uses (upright: the user tried italic on 2026-11-12 and took it off) */
.fh--dusk .lede { color: rgba(255, 248, 233, .86); max-width: 38em; margin-top: 26px; }
.fh--dusk .actions { margin-top: 30px; }
@media (max-width: 820px) {
  .dk-shade { background: linear-gradient(90deg, rgba(30, 7, 3, .86), rgba(36, 10, 4, .42)), linear-gradient(0deg, rgba(26, 7, 2, .65), transparent 60%); }
}
@media (max-aspect-ratio: 4/5) {   /* upright screens: the upright photograph, the shade rising from the bottom, the words at the foot */
  .fh--dusk .fh-img { object-position: 50% 100%; }
  .dk-shade { background:
    linear-gradient(0deg, rgba(31, 7, 3, .95) 0%, rgba(40, 11, 4, .63) 46%, rgba(25, 7, 2, .12) 70%, rgba(25, 7, 2, .12) 100%),
    linear-gradient(180deg, rgba(14, 4, 1, .62), transparent 22%); }
  .fh--dusk { min-height: max(100svh, 680px); }   /* one screen, so the button stays in view on small phones */
  .fh--dusk .fh-in { align-items: flex-end; padding-block: 24px 44px; }
  .fh--dusk .lede { margin-top: 16px; }
  .fh--dusk .actions { margin-top: 22px; }
}
@media (max-aspect-ratio: 4/5) and (min-width: 600px) { .fh--dusk .fh-img { object-position: 50% 55%; } }
@media (max-width: 640px) { .fh--dusk .eyebrow { margin-bottom: 12px; letter-spacing: .17em; gap: 10px; } .fh--dusk .eyebrow::before { width: 26px; } .fh--dusk .lede { font-size: 1rem; line-height: 1.55; } }
@media (max-width: 640px) and (max-height: 700px) {   /* short phones: a tighter stack, so the words stay below the boys */
  .fh--dusk { min-height: max(100svh, 640px); }
  .fh--dusk .fh-in { padding-bottom: 30px; }
  .fh--dusk h1.a-h1 { font-size: 2.4rem; }
  .fh--dusk .lede { font-size: .95rem; line-height: 1.5; margin-top: 12px; }
  .fh--dusk .actions { margin-top: 16px; }
}
/* Maharshi Sahaj: on the gold band, the type darkened to suit it */
.b-guru { color: #240400; background: var(--tx-tussar) center / cover, linear-gradient(180deg, var(--p7) 0%, var(--p6) 100%); background-blend-mode: multiply, normal; box-shadow: var(--edge); }
.b-guru h2, .b-guru p, .b-guru .lede, .b-guru .a-row .dev { color: #240400; }
.b-guru .tl, .b-guru .tl:hover { color: #240400; border-bottom-color: #240400; }

/* =================================================================== 3. The menu bar (every page) */
/* Cream words, clear over Home's photograph and dark once the page has moved; the other pages open on a light page,
   so there the bar is dark from the start. YouTube, Facebook and X follow the last item, small and quieter than the
   words. Phones and tablets: the logo, the icons and the Menu button; the menu opens as a panel under the bar. */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 16px 0; color: #FFF8E9; transition: background .5s ease, box-shadow .5s ease, padding .5s ease; }
.site-head.scrolled { padding: 10px 0; }
.site-head.scrolled, .site-head.menu-open, body:not(.page-index) .site-head { background: rgba(36, 4, 0, .92); backdrop-filter: blur(8px); }
.site-head.scrolled, .site-head.menu-open { box-shadow: 0 1px 0 rgba(255, 203, 87, .18), 0 12px 40px rgba(0, 0, 0, .45); }
.head-inner { display: flex; align-items: center; gap: 10px 24px; }
.mark { margin-right: auto; display: flex; align-items: baseline; text-decoration: none; color: #FFF8E9; }
.mark .dev { font-size: 1.5rem; line-height: 1; color: #FFF8E9; position: relative; top: .16em; }   /* Devanagari sits high in its line box: dropped to the bar's visual centre */
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
.nav > ul > li { position: relative; display: flex; align-items: center; }
.nav a { text-decoration: none; font-family: var(--font-heading); font-size: .86rem; letter-spacing: .07em; color: #FFF8E9; padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.nav a:hover { border-color: var(--p7); }
.nav a[aria-current="page"] { color: #FFDD9C; border-color: rgba(255, 221, 156, .55); }
.sub-btn { background: none; border: 0; padding: 6px 2px 6px 6px; margin: 0; cursor: pointer; color: rgba(255, 248, 233, .7); display: inline-grid; place-items: center; }
.sub-btn::before { content: ""; width: 6px; height: 6px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.has-sub.open .sub-btn::before { transform: translateY(1px) rotate(225deg); }
.nav .subnav { position: absolute; top: calc(100% + 10px); left: 50%; min-width: 230px; padding: 10px 0;
  background: rgba(36, 4, 0, .97); border: 1px solid rgba(255, 203, 87, .2); border-radius: 4px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
.nav .subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }   /* keeps hover alive across the gap */
.nav .subnav a { display: block; padding: 9px 22px; white-space: nowrap; border: 0; }
.nav .subnav a:hover { color: var(--p7); background: rgba(255, 203, 87, .06); }
@media (min-width: 1041px) {
  .has-sub:hover .subnav, .has-sub:focus-within .subnav, .has-sub.open .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .3s ease, transform .3s ease, visibility 0s; }
}
.nav-icons { display: inline-flex; align-items: center; gap: 4px; margin-left: 2px; position: relative; top: -1px; }   /* the menu words' ink sits 1px above their box centre */
.nav-icons a { display: grid; place-items: center; width: 26px; height: 30px; color: rgba(255, 248, 233, .74); transition: color .25s; }
.nav-icons a:hover, .nav-icons a:focus-visible { color: #FFDD9C; }
.nav-icons .yt svg { width: 15px; height: 15px; } .nav-icons .fb svg { width: 13px; height: 13px; } .nav-icons .tw svg { width: 12px; height: 12px; }
.menu-btn { display: none; background: none; border: 1px solid rgba(255, 221, 156, .5); color: #FFF8E9; border-radius: 999px; padding: 10px 16px 6px calc(16px + .12em);   /* the extra .12em balances the letter-spacing after the last letter */
  font: 500 .85rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 1040px) {
  .site-head, .site-head.scrolled { padding: 12px 0; }
  .head-inner { gap: 10px 14px; }
  .nav-icons { order: 2; top: 0; margin: 0; }
  .nav-icons a { width: 34px; height: 34px; }
  .menu-btn { display: inline-block; order: 3; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100svh - 70px); overflow-y: auto;
    background: rgba(36, 4, 0, .97); border-bottom: 1px solid rgba(255, 203, 87, .2);
    opacity: 0; visibility: hidden; pointer-events: none; filter: blur(3px); transition: opacity .7s ease, filter 1s ease, visibility 0s linear 1s; }   /* fades in as its blur clears */
  .nav.open { opacity: 1; visibility: visible; pointer-events: auto; filter: none; transition: opacity .7s ease, filter 1s ease, visibility 0s; }
  .nav > ul { display: block; width: min(var(--wrap), 100% - 40px); margin: 0 auto; padding: 10px 0 20px; }
  .nav > ul > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 203, 87, .1); }
  .nav > ul > li > a { flex: 1; display: block; padding: 14px 0; border: 0; font-size: .92rem; }
  .sub-btn { width: 46px; align-self: stretch; }
  .nav .subnav { position: static; transform: none; min-width: 0; width: 100%; padding: 0 0 6px 16px; background: none; border: 0; box-shadow: none; border-radius: 0;
    opacity: 1; visibility: visible; display: none; }
  .nav .has-sub.open .subnav { display: block; }
  .nav .subnav a { padding: 11px 0; border-bottom: 1px solid rgba(255, 203, 87, .06); color: rgba(255, 248, 233, .7); }
  .nav .subnav li:last-child a { border-bottom: 0; }
}
@media (max-width: 1040px) and (pointer: coarse) { .nav:not(.open) { filter: none; } }

/* =================================================================== 4. The other pages */
/* Page titles are set like Home's hero heading and its Maharshi Sahaj heading (Karma, light); section titles in Gotu,
   like Home's other sections. Text is dark, on paper and on gold. Photographs have soft corners and a shadow. */
.pg-h1 { font-family: var(--font-body); font-weight: 300; letter-spacing: -.015em; font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.1; }
.prose { max-width: 760px; margin: 44px auto 0; text-align: left; font-size: clamp(1.06rem, 1.3vw, 1.16rem); line-height: 1.9; }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { list-style: none; margin: 0 0 1.15em; padding: 0; }
.prose li { position: relative; padding: 0 0 .7em 30px; }
.prose li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--p5); }
@media (max-width: 680px) { .prose { margin-top: 32px; } }

/* ---------- Maharshi Ji page: the names, then the paduka beside the text ---------- */
.mj { padding: calc(var(--head-h) + clamp(40px, 5vw, 64px)) 0 clamp(64px, 8vw, 110px); }
.mj-head { text-align: center; }
.mj-head .dev { display: block; font-size: 1.3rem; color: var(--p3); margin-bottom: 2px; }
.mj-photo { margin: 36px auto 0; max-width: 440px; }
.mj-photo img { width: 100%; height: auto; aspect-ratio: 1122 / 1234; object-fit: cover; object-position: 50% 41.667%; border-radius: 6px; box-shadow: var(--lift); }   /* 5% off the top, 7% off the bottom */
.mj .actions { justify-content: center; margin-top: clamp(40px, 5vw, 56px); }
@media (min-width: 768px) {   /* the photo holds its place while the longer text scrolls past it */
  .mj-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 72px); align-items: start; max-width: 1080px; margin: clamp(36px, 4vw, 56px) auto 0; }
  .mj-photo { margin: 0; max-width: none; position: sticky; top: calc(var(--head-s) + 40px); }
  .mj-split .prose { max-width: none; margin: 0; }
  .mj-split .prose p:first-child { margin-top: -.35em; }   /* the first line's cap height level with the photo's top edge */
}

/* ---------- Classes page ---------- */
/* the title on a slim gold band under the menu bar */
.cl-band { padding: calc(var(--head-h) + clamp(30px, 3.6vw, 48px)) 0 clamp(32px, 3.8vw, 50px); text-align: center;   /* V3.2's band, without the lotus (the user, 2026-11-13) */
  background: radial-gradient(70% 120% at 50% 0%, rgba(196, 34, 0, .18), transparent 70%),
    linear-gradient(rgba(128, 52, 22, .78), rgba(122, 48, 20, .82)), url("img/texture-teak.jpg") center / cover;
  border-bottom: 1px solid rgba(255, 203, 87, .6); }   /* the warm brown teak, and a gold line where it meets the photos */
.cl-band h1 { color: var(--p8); text-shadow: 0 0 40px rgba(255, 148, 51, .25), 0 2px 0 rgba(0, 0, 0, .5); }
/* each offering: a full-width photograph fading to dark on the words' side, the words straight on it, as in V3.2
   (the user, 2026-11-13: "that fading effect where the text was directly against the background"; the pale cards are gone) */
.class-band { position: relative; isolation: isolate; min-height: 66svh; display: flex; align-items: center; overflow: hidden; color: rgba(255, 247, 194, .86); }
.class-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.class-band::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(36, 4, 0, .9) 0%, rgba(36, 4, 0, .58) 45%, rgba(36, 4, 0, .1) 78%); }
.class-band.right::after { background: linear-gradient(270deg, rgba(36, 4, 0, .9) 0%, rgba(36, 4, 0, .58) 45%, rgba(36, 4, 0, .1) 78%); }
.class-band .wrap { display: flex; }
.class-band.right .wrap { justify-content: flex-end; }
.band-panel { max-width: 470px; padding: 44px 0; text-align: left; }
.band-panel .eyebrow { color: var(--p7); margin-bottom: 10px; }
.band-panel .eyebrow::before { display: none; }
.band-panel h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.2; margin: 0; color: var(--p8); text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.band-panel p { margin: 16px 0 0; line-height: 1.85; font-size: clamp(1.04rem, 1.3vw, 1.14rem); }
.col-pts { list-style: none; padding: 0; margin: 18px 0 0; }
.col-pts li { position: relative; padding: 4px 0 4px 22px; font-family: var(--font-heading); }
.col-pts li::before { content: ""; position: absolute; left: 3px; top: .85em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--p7); box-shadow: 0 0 10px rgba(255, 148, 51, .5); }
.band-panel .actions { margin-top: 26px; }
.class-band, .pos-outer, .b-guru, .write { scroll-margin-top: var(--head-s); }
/* Online classes: the photograph opened up, and Offline classes under it on the same band, separated by space only */
#online-classes > img { filter: brightness(1.3) saturate(1.05); }
.class-band .wrap.dual { flex-direction: column; }
.class-band .wrap.dual > .band-panel { width: 100%; box-sizing: border-box; }
#offline-classes :is(p, li) { text-shadow: 0 1px 12px rgba(36, 4, 0, .9), 0 0 2px rgba(36, 4, 0, .6); }
@media (min-width: 901px) {
  #online-classes { min-height: max(460px, calc(100svh - 380px)); }
  #online-classes::after { background: linear-gradient(180deg, rgba(36, 4, 0, .25) 0%, transparent 25%),
                           linear-gradient(90deg, rgba(36, 4, 0, .82) 0%, rgba(36, 4, 0, .45) 45%, rgba(36, 4, 0, .05) 78%); }
  .class-band .wrap.dual { align-items: flex-start; padding-block: max(56px, calc(33svh - 158px)); }
  .class-band .wrap.dual > .band-panel { padding-block: 0; }
  .class-band .wrap.dual > .band-panel:first-child { padding-bottom: 40px; }
  .class-band .wrap.dual > .band-panel + .band-panel { padding-top: 40px; }
}
@media (max-width: 900px) {   /* phones and tablets: the photograph above, the words below it on a dark fade */
  .class-band { min-height: 0; align-items: flex-end; }
  .class-band::after, .class-band.right::after { background: linear-gradient(180deg, rgba(36, 4, 0, .15) 0%, rgba(36, 4, 0, .55) 38%, rgba(36, 4, 0, .94) 62%); }
  .class-band .wrap, .class-band.right .wrap { justify-content: flex-start; padding-top: 44vw; }
  .band-panel { padding: 0 0 44px; }
  #online-classes .wrap { padding-top: 40vw; }
  #online-classes::after { background: linear-gradient(180deg, rgba(36, 4, 0, 0) 0%, rgba(36, 4, 0, .08) 28%, rgba(36, 4, 0, .5) 50%, rgba(36, 4, 0, .72) 72%, rgba(36, 4, 0, .8) 100%); }
  #online-classes .band-panel :is(p, li) { text-shadow: 0 1px 12px rgba(36, 4, 0, .9), 0 0 2px rgba(36, 4, 0, .6); }
  #offline-classes { padding-top: 36px; }
}
@media (max-width: 600px) {
  #online-classes .wrap { padding-top: 26vw; }
  .band-panel { padding-bottom: 36px; }
}

/* ---------- Path of study (the end of the Classes page), as in V3.2: taadpatra, Seekers on cream, Spiritualist on teak ---------- */
.pos-outer { color: var(--ink); padding: clamp(64px, 7vw, 100px) 0 clamp(72px, 8vw, 110px);
  background: linear-gradient(rgba(255, 247, 194, .3), rgba(255, 247, 194, .15)), url("img/texture-taadpatra-tile.jpg") top center / 1400px auto repeat;
  box-shadow: inset 0 30px 60px -30px rgba(87, 10, 0, .35), inset 0 -30px 60px -30px rgba(87, 10, 0, .35); }
.pos-head { text-align: center; margin-bottom: clamp(36px, 4.5vw, 60px); }
.pos-head h2 { font-size: clamp(1.9rem, 3.1vw, 2.6rem); line-height: 1.15; color: var(--p1); }
.pos-grp + .pos-grp { margin-top: clamp(40px, 4.5vw, 64px); }
.pos-grp { scroll-margin-top: calc(var(--head-s) + 24px); }
.pos-group { margin: 0 0 14px 2px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.2; text-align: left; color: var(--p1); }
.pos-panel { position: relative; border-radius: 6px; overflow: hidden; padding: clamp(28px, 3.6vw, 52px) clamp(20px, 3.6vw, 52px) clamp(32px, 4vw, 56px);
  box-shadow: 0 1px 2px rgba(87, 10, 0, .18), 0 18px 40px -18px rgba(87, 10, 0, .45); }
.pos-panel.seekers { border: 1px solid rgba(143, 20, 0, .22);
  background: var(--tx-khadi) center / cover, var(--paper); background-blend-mode: multiply; }   /* khadi, so the panel stands off the taadpatra (the user, 2026-11-13) */
.pos-panel.spiritualist { border: 1px solid rgba(255, 203, 87, .35);
  background: radial-gradient(80% 60% at 50% 0%, rgba(255, 148, 51, .18), transparent 70%),
    linear-gradient(rgba(150, 64, 22, .58), rgba(132, 52, 18, .66)), url("img/texture-teak.jpg") center / cover; }
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); text-align: left; }
.course { display: flex; flex-direction: column; padding: 30px 24px 26px; border-radius: 2px; position: relative; }
.seekers .course { background: linear-gradient(180deg, rgba(255, 247, 194, .7), rgba(255, 247, 194, .35)); border: 1px solid rgba(143, 20, 0, .2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 18px 40px -22px rgba(87, 10, 0, .55); color: var(--ink); }
.spiritualist .course { background: linear-gradient(180deg, rgba(255, 226, 180, .2), rgba(255, 210, 150, .12));
  border: 1px solid rgba(255, 220, 160, .38); box-shadow: inset 0 1px 0 rgba(255, 247, 194, .18); }
.spiritualist .course :is(.course-text, .course-meta) { color: var(--p8); text-shadow: 0 1px 6px rgba(60, 14, 0, .45); }
.course-n { font-family: var(--font-sanskrit); font-size: 1.3rem; line-height: 1; color: var(--p3); }
.spiritualist .course-n { color: #FFE08A; }
.course h4 { font-family: var(--font-heading); font-weight: 400; font-size: 1.45rem; line-height: 1.25; margin: 12px 0 4px; color: var(--p1); }
.spiritualist .course h4 { color: var(--p8); }
.course-meta { display: flex; margin: 16px 0 0; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--font-heading); font-size: .95rem; letter-spacing: .04em; }
.spiritualist .course-meta { border-color: rgba(255, 226, 180, .32); }
.course-meta span + span::before { content: "·"; margin: 0 .7em; opacity: .6; }
.course-text { margin: 16px 0 24px; font-size: 1rem; line-height: 1.75; flex: 1; }
.course .btn { align-self: flex-start; }
@media (max-width: 1040px) { .courses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .courses { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .course { padding: 26px 20px 22px; } }

/* ---------- Gurukul page: sticky contents on the left; the photo, then ruled rows, on the right ---------- */
.gk { padding: calc(var(--head-h) + clamp(32px, 4vw, 52px)) 0 clamp(64px, 8vw, 104px); }
.gk-grid { display: grid; grid-template-columns: 250px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.gk-side { position: sticky; top: calc(var(--head-s) + 40px); }
.gk-side .pg-h1 { font-size: clamp(2.2rem, 3.4vw, 3rem); }
.gk-sub { margin: 12px 0 0; font-size: .98rem; line-height: 1.65; color: var(--ink-soft); }   /* the client's "Living at the Gurukul" line */
.gk-toc { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.gk-toc a { display: grid; grid-template-columns: 1.6em 1fr; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--rule); color: var(--ink);
  text-decoration: none; font-family: var(--font-heading); font-size: .92rem; line-height: 1.35; transition: color .25s; }
.gk-toc a span { font-family: var(--font-sanskrit); color: var(--p3); }
.gk-toc a:hover { color: var(--p3); }
.gk-walk { margin-top: 24px;   /* "Walk the path", to the Classes page, under the contents (it stays in view with them) */
  --btn-top: var(--p1); --btn-bot: var(--p1); --btn-top-h: var(--ink); --btn-bot-h: var(--ink); }   /* swapped 2026-11-13: maroon at rest, the text's brown on hover */   /* filled with the text's own brown, warming to maroon on hover (the user: "should be darker", then "Same brown as the text", 2026-11-12) */
.gk-walk .btn { color: #FFF8E9; box-shadow: inset 0 1px 0 rgba(255, 247, 194, .2), inset 0 -2px 0 rgba(0, 0, 0, .3), var(--lift-s); }   /* cream words on the brown */
/* Life at the Gurukul: the day's activities, each name in Gotu before its words */
.gk-life strong { font-family: var(--font-heading); font-weight: 400; color: var(--p1); margin-right: .45em; }
/* the photo in an arch, the full width of the right column, its top level with the page title opposite; the picture
   inside has its top and bottom 20% cropped */
.gk-photo { margin: 0 0 clamp(36px, 4vw, 52px); }
.gk-crop { display: block; overflow: hidden; border-radius: 510px 510px 6px 6px; aspect-ratio: 4 / 3; box-shadow: var(--lift); }
.gk-crop img { width: 100%; aspect-ratio: 4 / 5; margin-top: -25%; object-fit: cover; object-position: 50% 60%; }   /* -25% of the width = 20% of the 4 : 5 height */
@media (min-width: 961px) {
  .gk-crop { --gk-h: max(520px, calc(100svh - 60px)); aspect-ratio: auto; height: calc(var(--gk-h) * .6); }   /* a screen-tall picture, top and bottom 20% cropped */
  .gk-crop img { aspect-ratio: auto; height: var(--gk-h); margin-top: calc(var(--gk-h) * -.2); }
}
.gk-row { padding: 26px 0; border-top: 1px solid var(--rule); }
.gk-photo + .gk-row { border-top: 0; padding-top: 0; }
.gk-row h2 { font-size: clamp(1.2rem, 1.55vw, 1.4rem); line-height: 1.25; margin: 0 0 12px; }
.gk-row h2 .n { display: block; font-family: var(--font-sanskrit); color: var(--p3); font-size: 1.05rem; margin-bottom: 4px; }
.gk-row .prose { margin: 0; max-width: none; font-size: 1rem; line-height: 1.72; }
.gk-row .prose p { margin-bottom: .8em; }
.gk-row .prose li { padding: 0 0 .45em 24px; }
.gk-row .prose li::before { left: 4px; top: .66em; }
/* Daily schedule: a light two-column timetable */
.gk-day { border-radius: 6px; padding: 16px 22px; background: var(--tx-khadi) center / cover, var(--paper-2); background-blend-mode: multiply; box-shadow: var(--lift-s); }
.gk-day .schedule { --lv-line: var(--rule); margin: 0; font-size: .95rem; line-height: 1.45; display: block; columns: 2; column-gap: 40px; }
.gk-day .schedule li { grid-template-columns: 5.2em 1fr; gap: 12px; padding: 7px 0; break-inside: avoid; }
.gk-day .schedule li:nth-child(9) { border-top: 0; }   /* first row of the second column */
.gk-day .schedule time { color: var(--p3); opacity: 1; }
.gk-day > p { margin: 12px 0 0; font-size: .95rem; }
/* Stay at the Gurukul */
.gk-stay .lede { margin: 0; font-size: clamp(1rem, 1.15vw, 1.08rem); line-height: 1.7; }
.gk-four { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; font-family: var(--font-heading); font-size: .95rem; line-height: 1.45; }
.gk-four li { display: flex; gap: 12px; align-items: baseline; }
.gk-four li::before { content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg) translateY(-1px); background: var(--p5); }
.gk-end { padding-top: 8px; }
.gk-end .actions { margin-top: 0; }
@media (max-width: 960px) {
  .gk-grid { grid-template-columns: 1fr; }
  .gk-side { position: static; }
  .gk-toc { columns: 2; column-gap: 24px; }
}
@media (max-width: 860px) {
  .gk-four { grid-template-columns: 1fr; }
  .gk-day .schedule { columns: 1; }
  .gk-day .schedule li:nth-child(9) { border-top: 1px solid var(--lv-line); }
}

/* ---------- Membership page: the words beside the temple door on gobar mitti, then the four cards on khadi ---------- */
.mb-text { padding: calc(var(--head-h) + clamp(40px, 5vw, 64px)) 0 clamp(56px, 6vw, 84px);
  background: var(--tx-gobar) top center / 1400px auto repeat, var(--paper); background-blend-mode: multiply; box-shadow: var(--edge); }
.mb-top { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; align-items: center; }
.mb-head .lede { margin: 14px 0 0; max-width: 46ch; font-size: clamp(1rem, 1.15vw, 1.08rem); line-height: 1.7; }
#program-details { margin-top: clamp(32px, 4vw, 48px); }
.mb-intro h2, .mb-cost h2 { font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.25; }
.mb-intro .prose, .mb-cost .prose { margin: 12px 0 0; max-width: none; font-size: 1rem; line-height: 1.72; }
.mb-intro .prose p, .mb-cost .prose p { margin-bottom: .8em; }
.mb-photo { margin: 0; }
.mb-photo img { width: 100%; height: auto; aspect-ratio: 2000 / 1333; object-fit: cover; border-radius: 6px; box-shadow: var(--lift); }   /* shown whole */
/* Cost of Programs (shown only with SHOW_MONEY in build.py): one column under the photo row, its text in two columns */
.mb-cols { margin-top: clamp(40px, 4.5vw, 60px); }
.mb-cost .prose { columns: 2; column-gap: 44px; }
.mb-cost .prose p { break-inside: avoid; }
.mb-cards { padding: clamp(64px, 7vw, 96px) 0; background: var(--tx-khadi) center / cover, var(--paper-2); background-blend-mode: multiply; box-shadow: var(--edge); }
.d-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; column-gap: 22px; text-align: left; }
.d-card { border-radius: 6px; overflow: hidden; display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0;
  background: var(--tx-khadi) center / cover, var(--paper); background-blend-mode: multiply; box-shadow: var(--lift-s); }
.d-top { display: flex; flex-direction: column; padding: 24px 24px 20px; text-align: center; color: #240400;
  background: var(--tx-tussar) center / cover, linear-gradient(180deg, var(--p7), var(--p6)); background-blend-mode: multiply, normal; }
.d-top .dev { font-size: 1.05rem; }
.d-top h3 { font-size: 1.55rem; line-height: 1.35; color: #240400; }
.d-sub { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.d-price { font: 400 1.75rem/1.2 var(--font-heading); margin-top: 10px; }
.d-price small { display: inline; margin: 0 0 0 6px; font: .8rem/1.5 var(--font-body); }
.d-price sup { font-size: .55em; vertical-align: super; line-height: 0; margin-left: 2px; }
.d-mid { display: flex; flex-direction: column; padding: 20px 24px 24px; }
.d-who { font-style: italic; margin: 0 0 12px; color: var(--p1); }
.d-mid ul { list-style: none; margin: 0; padding: 0; }
.d-mid li { position: relative; padding: 9px 0 9px 24px; border-top: 1px dashed var(--rule); font-size: .98rem; line-height: 1.55; }
.d-mid li::before { content: "✓"; position: absolute; left: 0; top: 9px; color: var(--p3); font-size: .88rem; }
.d-foot { margin: auto 0 0; padding-top: 14px; font-size: .84rem; color: var(--ink-soft); border-top: 1px solid var(--rule); }
.d-foot sup { margin-right: 2px; }
.mb-cards .lv-note { margin: 22px 0 0; font-size: .86rem; color: var(--ink-soft); opacity: 1; }
.mb-cards .actions { justify-content: center; margin-top: 36px; }
@media (max-width: 1100px) {   /* two by two */
  .d-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto auto auto auto; row-gap: 22px; max-width: 820px; margin-inline: auto; }
  .mb-cards .lv-note { max-width: 820px; margin-inline: auto; }
}
@media (max-width: 960px) {
  .mb-top { grid-template-columns: 1fr; row-gap: clamp(28px, 6vw, 44px); }
  .mb-photo { order: -1; }   /* the photo above the title */
  .mb-cost .prose { columns: 1; }
}
@media (max-width: 640px) {   /* one column */
  .d-grid { grid-template-columns: 1fr; grid-template-rows: none; max-width: 520px; }
  .d-card { grid-row: auto; grid-template-rows: auto 1fr; }
  .mb-cards .lv-note { max-width: 520px; }
}
