/* ====== CONFIG IS IN THE <script> AT THE BOTTOM ====== */

  :root {
    --saffron:    #E8742C;   /* primary marigold/saffron */
    --saffron-dk: #C25A18;
    --gold:       #F2B441;
    --ink:        #2A1E12;   /* warm near-black */
    --muted:      #6B5D4F;
    --cream:      #FDF8F0;   /* page bg */
    --card:       #FFFFFF;
    --line:       #ECE2D2;
    --maroon:     #7A2E2E;   /* deep devotional accent */
    --green:      #1F6B3A;   /* Gopal Garden School */
    --green-lt:   #EAF5EE;
    --radius:     18px;
    --shadow:     0 10px 30px rgba(122, 46, 46, 0.10);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

  body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.55;
    overflow-x: hidden;
  }

  .wrap { max-width: 560px; margin: 0 auto; padding: 0 20px; }

  /* ---------- Founder bar ---------- */
  .founder {
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 13px;
    padding: 12px 20px;
    background: linear-gradient(180deg, #FFFCF5 0%, var(--cream) 100%);
    border-bottom: 1px solid rgba(232,116,44,0.16);
  }
  .founder-img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--gold); box-shadow: 0 2px 8px rgba(122,46,46,0.12); }
  .founder-text { display: flex; flex-direction: column; max-width: 340px; }
  .founder-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-dk); font-weight: 700; }
  .founder-name { font-family: "Fraunces", serif; font-size: 13.5px; color: var(--maroon); font-weight: 600; line-height: 1.22; }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    padding: 58px 0 22px;
    text-align: center;
    background:
      radial-gradient(120% 80% at 50% 0%, rgba(242,180,65,0.28), rgba(253,248,240,0) 60%),
      var(--cream);
    overflow: hidden;
  }
  .hero::before {
    /* subtle rays */
    content: "";
    position: absolute; inset: -40% -50% auto -50%; height: 380px;
    background: conic-gradient(from 180deg at 50% 0%,
      rgba(232,116,44,0.00) 0deg, rgba(232,116,44,0.06) 20deg,
      rgba(232,116,44,0.00) 40deg, rgba(232,116,44,0.06) 60deg,
      rgba(232,116,44,0.00) 80deg, rgba(232,116,44,0.06) 100deg,
      rgba(232,116,44,0.00) 120deg, rgba(232,116,44,0.06) 140deg,
      rgba(232,116,44,0.00) 160deg, rgba(232,116,44,0.06) 180deg);
    pointer-events: none;
  }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--maroon);
    background: rgba(122,46,46,0.07);
    padding: 7px 14px; border-radius: 999px;
    position: relative; z-index: 1;
  }
  .eyebrow .logo { width: 22px; height: 22px; border-radius: 50%; display: block; margin-left: -4px; }
  /* phones: cap the founder text so long names wrap instead of stretching the bar */
  @media (max-width: 699px) { .founder-text { max-width: calc(100vw - 110px); } }

  /* ---------- Site nav (sticky, sits under the founder bar) ---------- */
  .sitenav {
    position: sticky; top: 0; z-index: 60;
    background: rgba(253, 248, 240, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease, border-color .2s ease;
  }
  .sitenav.stuck { box-shadow: 0 4px 18px rgba(122,46,46,0.07); border-color: rgba(232,116,44,0.20); }
  .nav-wrap {
    max-width: 560px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; gap: 10px;
  }
  .nav-brand {
    display: inline-flex; align-items: center; gap: 8px; flex: none;
    text-decoration: none; color: var(--maroon);
    font-family: "Fraunces", Georgia, serif; font-size: 15px; font-weight: 600;
    letter-spacing: .01em; padding: 10px 2px; border-radius: 10px;
  }
  .nav-brand img { width: 24px; height: 24px; border-radius: 50%; display: block; }
  .nav-brand:hover { color: var(--saffron-dk); }

  /* the link row scrolls horizontally on phones, with a fade at the right edge */
  .nav-scroll {
    flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  }
  .nav-scroll::-webkit-scrollbar { display: none; }
  .nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
  .nav-list li { flex: none; scroll-snap-align: start; }
  .nav-link {
    position: relative; display: block; white-space: nowrap;
    padding: 15px 11px 14px;
    font-size: 14px; font-weight: 500; line-height: 1;
    color: var(--muted); text-decoration: none;
    transition: color .16s ease;
  }
  .nav-link::after {
    content: ""; position: absolute; left: 11px; right: 11px; bottom: 7px;
    height: 2px; border-radius: 2px; background: var(--saffron);
    transform: scaleX(0); transform-origin: 50% 50%;
    transition: transform .22s cubic-bezier(.4, 0, .2, 1);
  }
  .nav-link:hover { color: var(--saffron-dk); }
  .nav-link:hover::after { transform: scaleX(.55); }
  .nav-link[aria-current="true"] { color: var(--maroon); font-weight: 600; }
  .nav-link[aria-current="true"]::after { transform: scaleX(1); }
  .nav-link:focus-visible { outline: 3px solid rgba(232,116,44,.45); outline-offset: -3px; border-radius: 8px; }

  .nav-cta {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #fff; text-decoration: none;
    background: linear-gradient(180deg, var(--saffron) 0%, var(--saffron-dk) 100%);
    padding: 8px 13px; border-radius: 999px;
    box-shadow: 0 2px 8px rgba(194,90,24,0.26);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  }
  .nav-cta:hover { filter: brightness(1.05); box-shadow: 0 4px 14px rgba(194,90,24,0.34); transform: translateY(-1px); }
  .nav-cta:active { transform: translateY(0); }
  .nav-cta:focus-visible { outline: 3px solid rgba(122,46,46,.45); outline-offset: 2px; }
  .nav-cta .nav-cta-label { display: none; }

  /* ---------- Menu button (phones only) ---------- */
  .nav-toggle {
    display: none; flex: none; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0;
    background: rgba(122,46,46,0.06); border: 0; border-radius: 12px;
    cursor: pointer; color: var(--maroon);
    transition: background .15s ease;
  }
  .nav-toggle:hover { background: rgba(122,46,46,0.11); }
  .nav-toggle:focus-visible { outline: 3px solid rgba(232,116,44,.45); outline-offset: 2px; }
  .nav-toggle .bars { display: block; width: 18px; height: 12px; position: relative; }
  .nav-toggle .bars i {
    position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
    background: currentColor;
    transition: transform .24s cubic-bezier(.4,0,.2,1), opacity .16s ease;
  }
  .nav-toggle .bars i:nth-child(1) { top: 0; }
  .nav-toggle .bars i:nth-child(2) { top: 5px; }
  .nav-toggle .bars i:nth-child(3) { top: 10px; }
  .sitenav.menu-open .nav-toggle .bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .sitenav.menu-open .nav-toggle .bars i:nth-child(2) { opacity: 0; }
  .sitenav.menu-open .nav-toggle .bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  .nav-scrim {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(42,30,18,0.34);
    opacity: 0; visibility: hidden;
    transition: opacity .22s ease, visibility .22s;
  }
  .nav-scrim.on { opacity: 1; visibility: visible; }

  /* phones AND tablets: the row becomes a drop-down panel — every section is
     visible at once, nothing hides off-screen behind a scroll. The inline row
     only comes back at 1040px, where all six items genuinely fit. */
  @media (max-width: 1099px) {
    .nav-wrap { padding: 0 14px 0 16px; gap: 8px; }
    .nav-brand { margin-right: auto; }   /* pushes Classroom + menu button to the right */
    .nav-toggle { display: inline-flex; }
    .nav-brand { font-size: 14.5px; }

    .nav-scroll {
      position: absolute; top: 100%; left: 0; right: 0; flex: none;
      overflow: hidden;
      -webkit-mask-image: none; mask-image: none;
      background: #FFFCF5;
      border-bottom: 1px solid var(--line);
      box-shadow: 0 16px 30px rgba(122,46,46,0.13);
      max-height: 0; opacity: 0; visibility: hidden;
      transition: max-height .3s cubic-bezier(.4,0,.2,1), opacity .2s ease, visibility .3s;
    }
    .sitenav.menu-open .nav-scroll {
      max-height: 72vh; opacity: 1; visibility: visible; overflow-y: auto;
    }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 10px; }
    .nav-list li { flex: 0 0 auto; }
    .nav-link { padding: 15px 20px; font-size: 16px; }
    .nav-link::after { left: 20px; right: auto; width: 20px; bottom: 10px; }
    .nav-link[aria-current="true"] { background: rgba(232,116,44,0.07); }
  }
  @media (min-width: 700px) {
    .nav-wrap { max-width: 720px; gap: 16px; padding: 0 20px; }
    .nav-brand { font-size: 15px; }
    .nav-cta .nav-cta-label { display: inline; }
    .nav-link { padding: 16px 20px; }
  }
  @media (min-width: 1100px) {
    .nav-wrap { max-width: 1140px; padding: 0 24px; }
    .nav-list { gap: 0; }
    .nav-link { font-size: 14px; padding: 17px 9px 16px; }
    .nav-link::after { left: 9px; right: 9px; }
    .nav-scroll { -webkit-mask-image: none; mask-image: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .nav-link::after, .nav-cta, .sitenav,
    .nav-scroll, .nav-scrim, .nav-toggle .bars i { transition: none; }
  }

  /* the sticky bar must never sit on top of a heading we just jumped to */
  #happening, #friday, #school, #connect, #gita { scroll-margin-top: 62px; }
  h1 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.08;
    margin: 18px 0 12px;
    color: var(--ink);
    position: relative; z-index: 1;
  }
  h1 .accent { color: var(--saffron-dk); }
  .hero p.sub {
    font-size: 17px; color: var(--muted); max-width: 32ch; margin: 0 auto;
    position: relative; z-index: 1;
  }

  /* ---------- Event card ---------- */
  .event {
    margin-top: 22px;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    color: #fff;
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    text-align: left;
    position: relative; z-index: 1;
  }
  .event .label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .9; font-weight: 600; }
  .event .name { font-family: "Fraunces", serif; font-size: 24px; font-weight: 600; margin: 4px 0 12px; }
  .event ul { list-style: none; display: grid; gap: 8px; }
  .event li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
  .event li .ic { flex: none; width: 20px; text-align: center; opacity: .95; }

  /* run-of-show inside the hero card */
  .runsheet { list-style: none; display: grid; gap: 7px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.28); }
  .runsheet li { display: flex; gap: 12px; font-size: 14.5px; align-items: baseline; }
  .runsheet .t { flex: none; width: 74px; font-variant-numeric: tabular-nums; font-weight: 600; opacity: .95; }

  /* detail list inside a white card */
  .details { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
  .details li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); }
  .details li .ic { flex: none; width: 20px; text-align: center; }
  .details em { color: var(--muted); font-style: normal; }
  .chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
  .chip { font-size: 13px; color: var(--maroon); background: rgba(122,46,46,0.07); padding: 6px 12px; border-radius: 999px; }
  .chip.green { color: var(--green); background: var(--green-lt); }

  /* ---------- Section ---------- */
  section.block { padding: 20px 0; }
  .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px;
    box-shadow: var(--shadow);
  }
  h2 {
    font-family: "Fraunces", serif; font-weight: 600;
    font-size: 22px; margin-bottom: 6px;
  }
  .lead { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
  .sec-head { font-family: "Fraunces", serif; font-weight: 600; font-size: 19px; text-align: center; margin: 26px 0 2px; }
  .sec-lead { text-align: center; font-size: 14px; color: var(--muted); margin: 0 0 4px; }

  /* ---------- Gopal Garden School ---------- */
  .school-card { border: 2px solid var(--green); overflow: hidden; padding: 0; }
  .school-card .body { padding: 22px; }
  .school-banner { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
  .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--saffron); padding: 5px 13px; border-radius: 999px; margin-bottom: 12px; }
  .tag.green { background: var(--green); }
  .school-card h2 { color: var(--green); }
  .startline {
    display: flex; gap: 10px; align-items: center;
    background: var(--green-lt); border-radius: 12px; padding: 12px 14px; margin: 16px 0 4px;
    font-size: 15px; color: var(--green); font-weight: 600;
  }
  .startline .ic { flex: none; font-size: 18px; }

  /* ---------- Form ---------- */
  form { display: grid; gap: 14px; }
  .field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"] {
    width: 100%; font: inherit; font-size: 16px;
    padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
    background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
  }
  .field input:focus {
    outline: none; border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(232,116,44,0.15);
  }
  .consent {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 13px; color: var(--muted); line-height: 1.45;
  }
  .consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--saffron); flex: none; }

  /* secondary to the Classroom CTA above it — outlined, not another solid saffron bar,
     so the primary action stays unmistakable */
  button.submit {
    font: inherit; font-weight: 600; font-size: 16px; color: var(--saffron-dk);
    background: #fff; border: 1.5px solid var(--saffron); border-radius: 12px;
    padding: 14px 18px; cursor: pointer;
    transition: background .15s, border-color .15s, transform .05s;
  }
  button.submit:hover { background: rgba(232,116,44,0.08); border-color: var(--saffron-dk); }
  button.submit:active { transform: translateY(1px); }
  button.submit[disabled] { opacity: .6; cursor: progress; }

  .formnote { font-size: 12px; color: var(--muted); text-align: center; }
  .err { color: #b3261e; font-size: 14px; display: none; }

  /* ---------- Success ---------- */
  .success { display: none; text-align: center; padding: 8px 0; }
  .success .check {
    width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
    background: rgba(232,116,44,0.12); color: var(--saffron-dk);
    display: grid; place-items: center; font-size: 32px;
  }
  .success h2 { margin-bottom: 8px; }

  /* ---------- Links ---------- */
  .links { display: grid; gap: 10px; margin-top: 20px; }
  .wa-row { border-color: rgba(37,211,102,0.55) !important; background: rgba(37,211,102,0.06); }
  .weekly-card { border: 2px solid var(--saffron); }
  .linkrow {
    display: flex; align-items: center; gap: 14px; text-decoration: none;
    color: var(--ink); background: var(--card); border: 1px solid var(--line);
    border-radius: 14px; padding: 14px 16px; transition: border-color .15s, transform .05s;
  }
  .linkrow:hover { border-color: var(--saffron); }
  .linkrow:active { transform: translateY(1px); }
  .linkrow .ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; color: #fff; }
  .ic.fb { background: #1877F2; }
  .ic.wa { background: #25D366; }
  .ic.mail { background: var(--saffron); }
  .ic.zoom { background: #2D8CFF; }
  .ic.cr { background: linear-gradient(180deg, var(--saffron) 0%, var(--saffron-dk) 100%); }
  .ic.yt { background: #FF0033; font-size: 15px; padding-left: 2px; }

  /* ---------- Share card ---------- */
  .share-card {
    margin-top: 14px; padding: 18px 18px 16px;
    background: linear-gradient(180deg, #FFFCF5 0%, #FBEFDD 100%);
    border: 1px solid var(--line); border-radius: var(--radius);
  }
  .share-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
  .share-head .share-ic { font-size: 22px; line-height: 1.2; flex: none; }
  .share-head b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
  .share-head span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

  .share-native {
    display: none; width: 100%; margin-bottom: 10px;
    font: inherit; font-size: 15px; font-weight: 600; color: #fff;
    background: linear-gradient(180deg, var(--saffron) 0%, var(--saffron-dk) 100%);
    border: none; border-radius: 12px; padding: 13px 18px; cursor: pointer;
    box-shadow: 0 4px 14px rgba(194,90,24,0.24);
  }
  .share-native:hover { filter: brightness(1.05); }
  .share-native:focus-visible { outline: 3px solid rgba(122,46,46,.45); outline-offset: 2px; }

  .share-row { display: flex; flex-wrap: wrap; gap: 8px; }
  .sbtn {
    display: inline-flex; align-items: center; gap: 7px;
    font: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 9px 14px; cursor: pointer; text-decoration: none;
    transition: border-color .15s, transform .05s, background .15s;
  }
  .sbtn:hover { border-color: var(--saffron); background: rgba(232,116,44,0.05); }
  .sbtn:active { transform: translateY(1px); }
  .sbtn:focus-visible { outline: 3px solid rgba(232,116,44,.45); outline-offset: 2px; }
  .sbtn > span:first-child {
    width: 22px; height: 22px; border-radius: 6px; flex: none;
    display: grid; place-items: center; font-size: 12px; color: #fff;
  }
  .sbtn.wa > span:first-child { background: #25D366; }
  .sbtn.fb > span:first-child { background: #1877F2; }
  .sbtn.em > span:first-child { background: var(--saffron); }
  .sbtn.cp > span:first-child { background: var(--maroon); }
  .sbtn.copied { border-color: var(--green); color: var(--green); }
  .sbtn.copied > span:first-child { background: var(--green); }

  /* the visit card keeps absorbing leftover height in the two-column desktop layout */
  @media (min-width: 1040px) { .connect-side .share-card { flex: none; } }
  @media (prefers-reduced-motion: reduce) { .sbtn, .share-native { transition: none; } }

  /* ---------- Classroom account CTA (primary way to join) ---------- */
  .cr-cta {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; margin: 4px 0 6px;
    border-radius: 14px; text-decoration: none; color: #fff;
    background: linear-gradient(180deg, var(--saffron) 0%, var(--saffron-dk) 100%);
    box-shadow: 0 6px 20px rgba(194,90,24,0.28);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  }
  .cr-cta:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(194,90,24,0.34); }
  .cr-cta:active { transform: translateY(0); }
  .cr-cta:focus-visible { outline: 3px solid rgba(122,46,46,.5); outline-offset: 3px; }
  .cr-cta .cr-ic { flex: none; font-size: 24px; line-height: 1; }
  .cr-cta .cr-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .cr-cta .cr-body b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
  .cr-cta .cr-body span { font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,0.90); }
  .cr-cta .chev { margin-left: auto; font-size: 20px; opacity: .85; }
  .cr-cta-sm { margin-top: 18px; }

  .cr-signin { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
  .cr-signin a { color: var(--saffron-dk); font-weight: 600; text-decoration: none; }
  .cr-signin a:hover { text-decoration: underline; }

  /* "or just get our emails" divider */
  .or { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; }
  .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
  .or span {
    font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); white-space: nowrap;
  }
  .lead-sm { font-size: 13.5px; margin-bottom: 16px; }
  @media (prefers-reduced-motion: reduce) { .cr-cta { transition: none; } }
  .linkrow .meta { display: flex; flex-direction: column; }
  .linkrow .meta b { font-size: 15px; }
  .linkrow .meta span { font-size: 12px; color: var(--muted); }
  .linkrow .chev { margin-left: auto; color: var(--muted); }

  /* ---------- Rath Yatra recap ---------- */
  .recap { background: linear-gradient(180deg, #FFFCF5, var(--cream)); }
  .pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
  .pgrid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; display: block; box-shadow: var(--shadow); }
  .carousel-sec { margin-top: 18px; }

  /* ---------- Footer ---------- */
  footer { text-align: center; padding: 30px 0 240px; color: var(--muted); font-size: 13px; }
  footer .om { font-size: 22px; color: var(--saffron); display: block; margin-bottom: 8px; }
  footer .addr { display: block; margin-top: 8px; }
  footer .affil { display: block; margin-top: 10px; font-size: 12px; opacity: .8; }

  .divider { height: 1px; background: var(--line); margin: 0 auto; max-width: 560px; }

  /* video carousel */
  .vcarousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 6px 2px 4px; scrollbar-width: none; }
  .vcarousel::-webkit-scrollbar { display: none; }
  .vslide { flex: 0 0 86%; scroll-snap-align: center; }
  .vframe { position: relative; width: 100%; aspect-ratio: 9/16; background: #000; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
  .vframe iframe, .vframe video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .vframe video { object-fit: contain; }
  .vtitle { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
  .vdots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .vdot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; cursor: pointer; }
  .vdot.active { background: var(--saffron); transform: scale(1.25); }
  .vtoggle { display: block; margin: 8px auto 0; font: inherit; font-weight: 600; font-size: 15px; color: var(--saffron-dk); background: #fff; border: 1.5px solid var(--saffron); border-radius: 999px; padding: 11px 24px; cursor: pointer; transition: background .15s, color .15s; }
  .vtoggle:hover { background: var(--saffron); color: #fff; }
  .vcollapse { margin-top: 16px; }
  .vcollapse[hidden] { display: none; }

  /* ---------- "Just come" visit card ---------- */
  .visit-card {
    position: relative; display: block; overflow: hidden; text-decoration: none;
    border-radius: var(--radius); min-height: 190px; margin-top: 10px;
    background: url('/assets/images/friday-prasadam.jpg') center 50% / cover no-repeat;
    box-shadow: var(--shadow);
  }
  .visit-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(42,30,18,.85) 0%, rgba(42,30,18,.35) 55%, rgba(42,30,18,.05) 100%); }
  .visit-body {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px;
    display: flex; flex-direction: column; gap: 4px; color: #fff;
  }
  .visit-body b { font-family: "Fraunces", serif; font-size: 20px; }
  .visit-body span { font-size: 13.5px; opacity: .94; line-height: 1.4; }
  .visit-cta { margin-top: 6px; font-weight: 600; color: var(--gold); }
  .visit-card:hover .visit-cta { text-decoration: underline; }

  /* ---------- Upcoming classes & events carousel (live from Classroom) ---------- */
  #happening {
    background: linear-gradient(180deg, #FFFCF5, var(--cream));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 30px 0 34px;
  }
  .hcar-wrap { position: relative; }
  .hnav {
    display: none; /* mobile swipes; arrows appear on tablet+ */
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 40px; height: 40px; border-radius: 50%;
    font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
    color: var(--saffron-dk); background: #fff; border: 1.5px solid var(--line);
    box-shadow: var(--shadow);
    transition: background .15s, color .15s, border-color .15s, opacity .15s;
    align-items: center; justify-content: center; padding: 0 0 3px;
  }
  .hnav:hover { background: var(--saffron); border-color: var(--saffron); color: #fff; }
  .hnav:focus-visible { outline: 3px solid rgba(232,116,44,.45); outline-offset: 2px; }
  .hnav[disabled] { opacity: .35; cursor: default; }
  .hnav[disabled]:hover { background: #fff; color: var(--saffron-dk); border-color: var(--line); }
  .hnav.prev { left: -14px; }
  .hnav.next { right: -14px; }
  .hcarousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 14px 2px 6px; scrollbar-width: none; }
  .hcarousel::-webkit-scrollbar { display: none; }
  /* one event per slide: flyer image + details side by side */
  .hslide {
    flex: 0 0 100%; scroll-snap-align: center;
    display: flex; align-items: center;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  }
  /* flyer/poster — compact thumbnail beside the text on phones, tall column
     on desktop; always contained, never cropped */
  .hslide .himg-tall {
    display: block; flex: none; width: 112px; aspect-ratio: 3/4;
    object-fit: contain; background: var(--cream);
    border: 1px solid var(--line); border-radius: 10px; margin-left: 14px;
  }
  .hslide .hbody { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 18px 20px 20px; }
  .hslide h3 { font-family: "Fraunces", serif; font-weight: 600; font-size: 22px; line-height: 1.2; margin: 0 0 6px; }
  .hslide .hdesc { font-size: 14px; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hslide ul { list-style: none; display: grid; gap: 6px; margin: 12px 0 16px; }
  .hslide li { display: flex; gap: 9px; font-size: 14px; color: var(--ink); align-items: flex-start; }
  .hslide li .ic { flex: none; width: 18px; text-align: center; }
  .hslide .hcta {
    margin-top: auto; display: block; text-decoration: none; text-align: center;
    font-weight: 600; font-size: 15px; color: #fff;
    background: var(--saffron); border-radius: 12px; padding: 12px 22px;
    transition: background .15s;
  }
  .hslide .hcta:hover { background: var(--saffron-dk); }
  .hslide .hcta:focus-visible { outline: 3px solid rgba(232,116,44,.45); outline-offset: 2px; }
  @media (min-width: 700px) {
    .hslide { align-items: stretch; }
    .hslide .himg-tall {
      width: 300px; aspect-ratio: 4/5;
      border: 0; border-right: 1px solid var(--line); border-radius: 0; margin-left: 0;
    }
    .hslide .hbody { justify-content: center; padding: 24px 28px; }
    .hslide .hcta { margin-top: 6px; }
  }
  @media (min-width: 1040px) {
    .hslide .himg-tall { width: 340px; }
    .hslide .hbody { padding: 28px 40px; }
    .hslide h3 { font-size: 26px; }
  }
  @media (min-width: 700px)  { .hcard { flex-basis: 46%; } .hnav { display: inline-flex; } }
  @media (min-width: 1040px) { .hcard { flex-basis: 31.8%; } .hnav.prev { left: -20px; } .hnav.next { right: -20px; } }

  /* ============ RESPONSIVE — tablet ============ */
  @media (min-width: 700px) {
    .wrap { max-width: 720px; }
    .hero { padding: 56px 0 30px; }
    .pgrid { grid-template-columns: repeat(3, 1fr); }
    .pgrid img { aspect-ratio: 1/1; }
    .links.duo { grid-template-columns: 1fr 1fr; }
    .vslide { flex: 0 0 46%; }
    section.block { padding: 26px 0; }
  }

  /* ============ RESPONSIVE — desktop ============ */
  @media (min-width: 1040px) {
    .wrap { max-width: 1080px; padding: 0 32px; }

    /* hero: copy left, program card right */
    .hero { text-align: left; padding: 84px 0 56px; }
    .hero .wrap {
      display: grid; grid-template-columns: 1.05fr 0.95fr;
      gap: 64px; align-items: center;
    }
    .hero h1 { font-size: 56px; }
    .hero p.sub { margin: 0; max-width: 42ch; }
    .event { margin-top: 0; padding: 26px 30px; }

    /* signup + connect links side by side; visit card absorbs the height difference */
    #connect .wrap {
      display: grid; grid-template-columns: 1.08fr 0.92fr;
      gap: 32px; align-items: stretch;
    }
    .connect-side { display: flex; flex-direction: column; }
    .connect-side .visit-card { flex: 1; min-height: 230px; margin-top: 14px; }
    #connect .card { padding: 30px 32px; }
    .sec-head { text-align: left; margin: 0 0 2px; font-size: 22px; }
    .sec-lead { text-align: left; margin-bottom: 14px; }

    /* roomier cards + school body */
    .card { padding: 30px 32px; }
    .school-card { padding: 0; }
    .school-card .body { padding: 30px 32px; }

    .vslide { flex: 0 0 300px; }
    footer { padding: 40px 0 280px; }
  }


/* ================= Flyer lightbox (shared by index + past) ================= */
.flyer-btn {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 12px; font-weight: 600; line-height: 1;
  color: #fff; background: rgba(42,30,18,0.68);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.flyer-btn:hover { background: rgba(42,30,18,0.88); transform: translateY(-1px); }
.flyer-btn:focus-visible { outline: 3px solid rgba(242,180,65,.75); outline-offset: 2px; }

.lb {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: rgba(26, 16, 8, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.lb.on { opacity: 1; visibility: visible; }
.lb-inner {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: min(760px, 100%); max-height: 100%;
  transform: scale(.97); transition: transform .22s cubic-bezier(.2,.8,.3,1);
}
.lb.on .lb-inner { transform: scale(1); }
.lb-img {
  display: block; max-width: 100%; max-height: calc(100vh - 150px);
  width: auto; height: auto; object-fit: contain;
  border-radius: 12px; background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lb-cap { text-align: center; color: #fff; max-width: 60ch; }
.lb-cap b { display: block; font-family: "Fraunces", Georgia, serif; font-size: 17px; font-weight: 600; }
.lb-cap span { display: block; font-size: 13px; color: rgba(255,255,255,.72); margin-top: 3px; }
.lb-cap a { color: var(--gold); font-size: 13px; font-weight: 600; text-decoration: none; }
.lb-cap a:hover { text-decoration: underline; }
.lb-close {
  position: absolute; top: 14px; right: 14px;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 20px; line-height: 1;
  display: grid; place-items: center; transition: background .15s ease;
}
.lb-close:hover { background: rgba(255,255,255,.26); }
.lb-close:focus-visible { outline: 3px solid rgba(242,180,65,.8); outline-offset: 2px; }
body.lb-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .lb, .lb-inner, .flyer-btn { transition: none; } }

/* ---------- richer detail rows on archive cards ---------- */
.entry .facts { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.entry .facts li { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.45; list-style: none; }
.entry .facts .ic { flex: none; width: 16px; text-align: center; }
.entry .runsheet-mini { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.entry .runsheet-mini li { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); list-style: none; padding: 2px 0; }
.entry .runsheet-mini .t { flex: none; min-width: 62px; font-weight: 700; color: var(--saffron-dk); font-variant-numeric: tabular-nums; }

/* the flyer wrapper takes over the sizing the bare <img> used to own as the flex child */
.hslide .himg-wrap {
  position: relative; flex: none; overflow: hidden;
  width: 112px; aspect-ratio: 3/4; margin-left: 14px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
}
.hslide .himg-wrap .himg-tall {
  width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; aspect-ratio: auto;
}
/* the button would swamp a 112px thumbnail, so phones get a corner glyph instead */
.hslide .himg-wrap .flyer-btn { right: 5px; bottom: 5px; padding: 6px 7px; font-size: 11px; }
.hslide .himg-wrap .flyer-btn .fb-label { display: none; }
@media (min-width: 700px) {
  .hslide .himg-wrap {
    width: 300px; aspect-ratio: 4/5; margin-left: 0;
    border: 0; border-right: 1px solid var(--line); border-radius: 0;
  }
  .hslide .himg-wrap .flyer-btn { right: 10px; bottom: 10px; padding: 8px 12px; font-size: 12px; }
  .hslide .himg-wrap .flyer-btn .fb-label { display: inline; }
}
@media (min-width: 1040px) { .hslide .himg-wrap { width: 340px; } }

.entry .series {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--maroon); background: rgba(122,46,46,.07);
  padding: 4px 9px; border-radius: 999px; align-self: flex-start;
}
.seeflyer {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--saffron-dk);
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}
.seeflyer:hover { color: var(--maroon); }
.seeflyer:focus-visible { outline: 3px solid rgba(232,116,44,.45); outline-offset: 3px; border-radius: 4px; }
