/* AI Safety India, site.css: the page layer shared by every page (first extracted from the homepage, now edited by hand: the source of truth). */
  /* Metric-matched fallbacks: while the web fonts load, Georgia/Arial are scaled to the same width and
     line metrics as Libre Baskerville/Satoshi, so text does not re-wrap (and push the page) when they swap in. */
  @font-face { font-family: "Libre Baskerville Fallback"; src: local("Georgia"); size-adjust: 115.2%; ascent-override: 84.2%; descent-override: 23.4%; line-gap-override: 0%; }
  @font-face { font-family: "Satoshi Fallback"; src: local("Arial"), local("Helvetica"); font-weight: 400 600; size-adjust: 98.4%; ascent-override: 102.6%; descent-override: 24.4%; line-gap-override: 0%; }
  @font-face { font-family: "Satoshi Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"); font-weight: 700 900; size-adjust: 97.4%; ascent-override: 103.7%; descent-override: 24.6%; line-gap-override: 0%; }
  :root { --serif-display: "Baskervville", Georgia, "Times New Roman", serif;
         --serif: "Libre Baskerville", "Libre Baskerville Fallback", Georgia, "Times New Roman", serif;
          --sans: "Satoshi", "Satoshi Fallback", "Anek Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif; }

  /* v5, built from scratch. Every section has one job; detail is one click away (menus, Details, tabs, FAQ). */
  @view-transition { navigation: auto; }
  /* tools/images.mjs wraps photos in <picture>: it must never make a box, so every photo keeps the layout and crop of its bare img element */
  picture { display: contents; } picture > source { display: none; }
  /* HORIZONTAL GRID (v5.4): an 8px baseline. Three fixed rhythm steps, never fluid in-betweens.
     --gap: before every major section · --gap-strip: before a thin strip (stats, partners) · --head: section heading to its content */
  :root { --gap: 96px; --gap-strip: 64px; --head: 40px; --out: cubic-bezier(.16, 1, .3, 1); }
  @media (min-width: 640px) { :root { --gap: 128px; --gap-strip: 80px; --head: 48px; } }
  @media (min-width: 1100px) { :root { --gap: 160px; --gap-strip: 96px; --head: 48px; } }
  body { overflow-x: clip; }
  .sec { padding-top: var(--gap); }
  .head { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7); align-items: end; margin-bottom: var(--s-7); }
  .head .lede { max-width: 28em; }
  .head .end { justify-self: end; }
  @media (min-width: 961px) { .head:has(> .end) { grid-template-columns: minmax(0, 1fr) auto; } }  /* title + controls: the title takes the free width, so it doesn't sit on the edge of wrapping */
  .ev-ctl { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
  .t-xl { font-family: var(--serif-display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
  .arr { width: 16px; height: 16px; flex: none; transition: transform .2s var(--out); }
  a:hover > .arr, .btn:hover .arr { transform: translateX(3px); }

  /* ---------- glass: solid by default, frosted where supported ---------- */
  .glass-bar { background: color-mix(in srgb, var(--paper) 97%, transparent); }
  .glass-ink { background: rgba(20,14,12,.88); color: #fff; }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass-bar { background: rgba(247,245,240,.82); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
    .glass-ink { background: rgba(20,14,12,.62); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
  }
  @media (prefers-reduced-transparency: reduce) { .glass-bar { background: var(--paper); backdrop-filter: none; } .glass-ink { background: rgba(20,14,12,.92); backdrop-filter: none; } }

  /* ---------- nav: flat at the top, glass when it floats, hides while reading down ---------- */
  .top { position: relative; z-index: 60; }
  .bar { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; height: 80px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
  .bar .brand { display: flex; align-items: center; min-height: 44px; }  /* 44px hit area; the logo itself stays 32px */
  .bar .brand img { height: 32px; width: auto; display: block; }  /* logo rule: nav 32px tall */
  .menu { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
  .menu > li { position: relative; }
  .menu > li > a, .menu > li > button { font: 500 var(--t-small) var(--sans); color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none;
    padding: 10px var(--s-3); border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
  .menu > li > a:hover, .menu > li > button:hover, .menu > li > button[aria-expanded="true"] { background: rgba(28,26,23,.06); }
  .menu .chev { width: 14px; height: 14px; transition: transform .2s var(--out); }
  .menu button[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .drop { position: absolute; top: calc(100% + 10px); left: -8px; min-width: 300px; padding: var(--s-2); border-radius: var(--r-md); display: grid; gap: 2px;
          box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 0 0 1px rgba(28,26,23,.08), 0 20px 48px -16px rgba(28,26,23,.32); }
  .drop a { display: grid; gap: 2px; padding: var(--s-3) 14px; border-radius: 10px; text-decoration: none; }
  .drop a:hover, .drop a:focus-visible { background: rgba(28,26,23,.05); }
  .drop b { font-weight: 600; font-size: var(--t-small); color: var(--ink); }
  .drop span { font-size: var(--t-meta); color: var(--ink-3); }
  .bar .right { display: flex; align-items: center; gap: var(--s-2); }
  .bar .signin { font: 500 var(--t-small) var(--sans); color: var(--ink); text-decoration: none; padding: 10px var(--s-3); border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
  .bar .signin:hover { background: rgba(28,26,23,.06); }
  .menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); place-items: center; cursor: pointer; }
  .sheet { margin: 0 var(--s-3); position: absolute; left: 0; right: 0; top: 76px; border-radius: 18px; padding: var(--s-2); max-height: calc(100vh - 100px); overflow: auto;
           box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 0 0 1px rgba(28,26,23,.08), 0 16px 40px -16px rgba(28,26,23,.3); }
  .sheet details { border-bottom: 1px solid var(--line); } .sheet details:last-of-type { border-bottom: 0; }
  .sheet summary, .sheet > a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 14px; font-weight: 600; cursor: pointer; list-style: none; text-decoration: none; }
  .sheet summary::-webkit-details-marker { display: none; }
  .sheet details[open] .chev { transform: rotate(180deg); } .sheet .chev { width: 16px; height: 16px; transition: transform .2s; }
  .sheet details a { display: block; padding: 10px 14px 10px 26px; text-decoration: none; color: var(--ink-2); }
  .sheet details > div { padding-bottom: var(--s-2); }
  .sheet > .btn { margin: var(--s-2) 6px 6px; justify-content: center; min-height: 48px; padding: 14px 22px; font-weight: 700; }  /* actions are pills, never a red text link */

  /* ---------- hero ---------- */
  .hero { position: relative; isolation: isolate; overflow-x: clip; padding-top: clamp(var(--s-7), 7vw, 104px); }
  .hero::before { content: ""; position: absolute; z-index: -1; inset: -10% -10% 35% -10%; pointer-events: none; filter: blur(40px);
    background: radial-gradient(38% 46% at 80% 24%, rgba(155,28,46,.13), transparent 70%), radial-gradient(42% 50% at 16% 10%, rgba(229,208,181,.5), transparent 72%); }
  .hero h1 { font-family: var(--serif-display); font-weight: 400; font-size: clamp(2.8rem, 6.6vw, 5.6rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0; max-width: 12em; text-wrap: balance; }
  .hero .lede { margin-top: var(--s-6); max-width: 32em; }
  .hero .ctas { display: flex; gap: var(--s-3); margin-top: var(--s-7); flex-wrap: wrap; }
  .wa { width: 18px; height: 18px; }
  .pic { position: relative; margin-top: clamp(var(--s-8), 8vw, 104px); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 12 / 5; background: var(--ink); box-shadow: 0 40px 80px -40px rgba(28,26,23,.45); }
  .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
  .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,8,8,.45), rgba(12,8,8,0) 40%); pointer-events: none; }
  .next { position: absolute; z-index: 1; left: var(--s-5); bottom: var(--s-5); max-width: calc(100% - 48px); display: flex; align-items: center; gap: 14px; padding: 10px var(--s-3) 10px 10px; border-radius: var(--r-md); text-decoration: none;
          box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 1px rgba(255,255,255,.14), 0 12px 32px -12px rgba(0,0,0,.5); }
  .next .when { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 54px; height: 54px; border-radius: 12px; background: var(--red); line-height: 1; text-align: center; }
  .next .when small { font-size: 11px; font-weight: 600; letter-spacing: .02em; opacity: .9; }
  .next .when b { font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; }
  .next .txt { display: grid; gap: 3px; min-width: 0; } .next .k { font-size: var(--t-meta); color: rgba(255,255,255,.85); }
  .next .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .next:not([hidden]) { animation: chip-in .45s var(--out) both; }  /* the chip arrives after the Luma fetch: fade it in rather than pop */
  @keyframes chip-in { from { opacity: 0; transform: translateY(6px); } }

  /* ---------- proof: numbers, where fellows go, partners ---------- */
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
  .stats div { padding: var(--s-6) var(--s-5) var(--s-6) 0; }
  .stats div + div { padding-left: var(--s-5); border-left: 1px solid var(--line); }
  .stats b { display: block; font-family: var(--serif-display); font-weight: 400; font-size: clamp(2.2rem, 3.6vw, 3.25rem); line-height: 1; letter-spacing: -0.02em; }
  .stats span { display: block; margin-top: var(--s-2); font-size: var(--t-small); color: var(--ink-2); }
  .stats .stat-a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }  /* 15+ placed: the people behind it are on /results */
  .stats .stat-a:hover { text-decoration-color: currentColor; }
  .fellows { padding-block: var(--s-6) var(--s-5); border-bottom: 1px solid var(--line); text-align: center; }
  .fellows .k { margin: 0 0 var(--s-4); font-size: var(--t-meta); font-weight: 500; color: var(--ink-3); }
  .marquee { position: relative; overflow: hidden; outline-offset: 4px; }
  .marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 96px; z-index: 1; pointer-events: none; }
  .marquee::before { left: 0; background: linear-gradient(90deg, var(--paper), rgba(245,243,238,0)); }
  .marquee::after { right: 0; background: linear-gradient(270deg, var(--paper), rgba(245,243,238,0)); }
  .marquee .mq-list { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: mq 50s linear infinite; }
  .marquee li { font-size: 1.125rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; display: flex; align-items: center; }
  .marquee li::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line); margin-inline: 28px; }
  .marquee:hover .mq-list, .marquee:focus-within .mq-list, .marquee.paused .mq-list { animation-play-state: paused; }
  @keyframes mq { to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .marquee .mq-list { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: var(--s-2); } .marquee::before, .marquee::after { display: none; } }
  .partners { display: grid; justify-items: center; gap: var(--s-5); padding-block: var(--s-6) var(--s-7); border-block: 1px solid var(--line); }
  .partners .k { font-size: var(--t-meta); font-weight: 500; color: var(--ink-3); margin: 0; }
  .partners .logos { justify-content: center; flex-wrap: wrap; }
  .logos { display: flex; align-items: center; gap: clamp(28px, 4vw, var(--s-7)); list-style: none; margin: 0; padding: 0; }
  .logos .k { font-size: var(--t-meta); color: var(--ink-3); white-space: nowrap; }
  .logos img { width: auto; }
  .logos a { display: flex; align-items: center; min-height: 44px; }

  /* ---------- pathway: one row per step (explanation left, programme card right); detail folded ---------- */
  .steps { border-bottom: 0; }   /* the advising card follows: no rule stacked on a box */
  .step-row { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(28px, 4vw, 56px); padding-block: var(--s-6); border-top: 1px solid var(--line); }
  .step-row .num { font-family: var(--serif); font-size: var(--t-small); color: var(--ink-3); }
  .step-row h3.s { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.9vw, 1.6rem); line-height: 1.2; margin: 6px 0 0; text-wrap: balance; }
  .step-row .who { margin: var(--s-2) 0 0; color: var(--ink-2); font-size: var(--t-small); text-wrap: pretty; }
  .cards { display: grid; gap: var(--s-4); }
  .cards .tile .in { justify-content: space-between; }
  .cards.two { grid-template-columns: 1fr 1fr; }
  .tile { border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 48px -32px rgba(30,8,12,.5); }
  .tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 90% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
  .tile .in { position: relative; z-index: 1; padding: 26px 28px 22px; gap: var(--s-4); }
  .tile .title { font-size: clamp(1.3rem, 1.7vw, 1.5rem); margin: 0; }
  .tile p { margin-top: 6px; font-size: var(--t-small); line-height: 1.55; max-width: 40em; }
  .tile .meta-d { display: block; margin-top: var(--s-3); font-size: var(--t-meta); color: var(--on-dark-2); }
  .tile .bar2 { display: grid; padding-top: var(--s-4); border-top: 1px solid var(--hair-dark); }
  /* one left edge: the action first, Details beside it */
  .tile .acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) 20px; }
  .tile .btn { white-space: nowrap; padding: 10px var(--s-4) 10px 18px; }
  .more-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer;
              font: 600 var(--t-small) var(--sans); color: var(--on-dark); }
  .more-btn:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(248,239,236,.45); }
  .more-btn .chev { width: 16px; height: 16px; color: var(--on-dark-2); transition: transform .2s var(--out); }
  .more-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .tile .more { padding: var(--s-3) 0 var(--s-2); display: grid; gap: var(--s-3); justify-items: start; }
  .tile .more p { margin: 0; }
  .tile .chips { gap: 6px; }
  /* two cards side by side share row tracks (subgrid): titles, the meta/Apply row and the Details row line up,
     and opening Details in one card no longer pushes the other card's footer down */
  @supports (grid-template-rows: subgrid) {
    @media (min-width: 641px) {
      .cards.two { row-gap: 0; }
      .cards.two .tile { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
      .cards.two .tile .in { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; row-gap: var(--s-3); justify-content: stretch; }
      .cards.two .tile .bar2 { grid-row: 2 / 4; display: grid; grid-template-rows: subgrid; row-gap: 0; justify-content: stretch; }
      .cards.two .tile .bar2 .acts { grid-row: 1; }
      .cards.two .tile .bar2 .more { grid-row: 2; align-self: start; }
    }
  }
  .advise { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); margin-top: var(--s-6); padding: 20px 26px; border-radius: 20px; background: var(--card);
            border: 1px solid var(--line); box-shadow: var(--shadow-card); text-decoration: none; color: inherit; transition: transform .25s var(--out); }
  .advise b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin-right: var(--s-2); } .advise span { color: var(--ink-2); }
  .advise .go { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--red); font-weight: 600; white-space: nowrap; }

  /* ---------- events (live from Luma), Upcoming / Past as a toggle ---------- */
  .feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--s-6), 5vw, 72px); align-items: center; }
  .feature .cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: var(--paper-2); box-shadow: 0 32px 64px -36px rgba(28,26,23,.45); }
  .feature .cover img { width: 100%; height: 100%; object-fit: cover; }
  .feature .date { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; }
  .feature .info { font-size: var(--t-small); color: var(--ink-2); margin-top: var(--s-2); display: flex; flex-wrap: wrap; gap: var(--s-1) 14px; }
  .feature .info span { display: inline-flex; align-items: center; gap: 6px; } .feature .info svg { width: 16px; height: 16px; color: var(--ink-3); }
  .feature h3 { font-family: var(--serif-display); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.1; letter-spacing: -0.015em; margin: var(--s-5) 0 0; text-wrap: balance; }
  .feature .ctas { margin-top: var(--s-6); }
  .live { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-meta); font-weight: 700; color: var(--red); margin-bottom: var(--s-4); }
  .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
  .ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
  .ev-card { text-decoration: none; color: inherit; }
  .ev-card .ph { aspect-ratio: 1; }
  .ev-card:hover .h3 { color: var(--red); }
  .ev-empty { padding: clamp(36px, 5vw, var(--s-8)); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card); display: grid; gap: var(--s-4); justify-items: start; }
  .ev-empty .ctas { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; margin-top: var(--s-3); }
  .skel { border-radius: var(--r-lg); background: var(--paper-2); }
  #past-panel .ev-grid { grid-template-columns: repeat(3, 1fr); }

  /* ---------- moments rail ---------- */
  .rail { display: flex; gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge, 24px); padding: var(--s-1) var(--edge, var(--s-5)) var(--s-5); scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .shot { position: relative; flex: 0 0 min(820px, 84vw); aspect-ratio: 16 / 10; margin: 0; border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: start; background: var(--ink); }
  .shot img { width: 100%; height: 100%; object-fit: cover; }
  .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,8,8,.78), rgba(12,8,8,.3) 32%, rgba(12,8,8,0) 55%); }
  .shot figcaption { position: absolute; z-index: 1; left: var(--s-5); right: var(--s-5); bottom: var(--s-5); color: #fff; display: grid; gap: var(--s-1); }
  .shot figcaption span { font-size: var(--t-meta); opacity: .88; } .shot figcaption b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 2vw, 1.5rem); }
  .rb { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
  .rb:disabled { opacity: .35; cursor: default; }
  .rctl { display: flex; align-items: center; gap: var(--s-3); } .count { font-size: var(--t-small); color: var(--ink-3); font-variant-numeric: tabular-nums; }

  /* ---------- FAQ ---------- */
  .faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s-8); align-items: start; }
  .faq .accordion details summary { font-family: var(--serif); }

  /* ---------- newsletter ---------- */
  .news { text-align: center; border-radius: 28px; padding: clamp(56px, 8vw, 104px) var(--s-6); background: var(--paper-2); }
  .news .in { max-width: 560px; margin-inline: auto; } .news .lede { margin: var(--s-4) auto 0; }
  .news form { display: flex; gap: var(--s-2); margin-top: var(--s-6); padding: 6px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 12px 32px -20px rgba(28,26,23,.35); }
  .news form:focus-within { box-shadow: 0 0 0 2px var(--red); }
  .news .input { flex: 1; min-height: 48px; border: 0; background: transparent; padding-inline: 18px; box-shadow: none; outline: none; }
  .x-unused { display: flex; justify-content: center; gap: var(--s-5); margin-top: var(--s-5); font-size: var(--t-small); }
  .news .social a { color: var(--ink-2); text-decoration: none; } .news .social a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

  /* ---------- footer ---------- */
  .footer { margin-top: var(--gap); }
  .foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--s-6); }
  .foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
  .foot-grid a { color: var(--on-dark-2); }
  .footer p a:not(.btn):not(.link) { color: var(--on-dark); text-decoration-color: rgba(248,239,236,.4); }  /* crimson is unreadable on the dark footer */
  .footer p a:not(.btn):not(.link):hover { text-decoration-color: currentColor; }
  .foot-grid .socials { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--on-dark); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); position: relative; transition: background .2s; }
  .socials a::after { content: ""; position: absolute; inset: -2px; }
  .socials a:hover { background: rgba(255,255,255,.14); }
  .socials svg { width: 20px; height: 20px; }
  .foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--hair-dark); font-size: var(--t-meta); }
  .foot-base a { margin-left: var(--s-5); }
  .foot-grid ul:not(.socials) a { display: inline-block; padding-block: 11px; margin-block: -11px; }  /* 44px tall tap area, same spacing as before */

  .js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--out), transform .7s var(--out); transition-delay: var(--d, 0ms); }
  .js .rv.is-in { opacity: 1; transform: none; }

  @media (max-width: 1140px) { .foot-grid { grid-template-columns: repeat(4, 1fr); } .foot-grid > :first-child { grid-column: 1 / -1; } }  /* 4 link columns: no lone "Organisation" row */
  @media (max-width: 860px) { .bar { width: min(var(--wrap), calc(100% - 40px)); } }  /* match .wrap's 20px gutter so logo and menu line up with content */
  @media (max-width: 960px) {
    .menu, .bar .apply, .bar .signin { display: none; } .menu-btn { display: inline-grid; }
    .head, .faq { grid-template-columns: 1fr; gap: var(--s-4); } .head .end { justify-self: start; }
    .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(3) { border-left: 0; padding-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }

    .feature { grid-template-columns: 1fr; } .feature .cover { max-width: 460px; }
    .ev-grid, #past-panel .ev-grid { grid-template-columns: 1fr 1fr; }
    .advise { flex-direction: column; align-items: flex-start; }
    .step-row { grid-template-columns: 1fr; gap: var(--s-4); }
  }
  @media (max-width: 640px) {
    .ev-grid, #past-panel .ev-grid, .cards.two { grid-template-columns: 1fr; }
    /* phone crop: square frame, photo zoomed from the bottom so the group (not the ceiling) fills it and faces sit above the chip */
    .pic { aspect-ratio: 1; } .pic img { position: absolute; left: 0; bottom: 0; height: 160%; }
    .next { left: 12px; right: 12px; bottom: 12px; max-width: none; }
    .next .t { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
    .news { padding-inline: var(--s-5); }
    .foot-grid ul { gap: 0; } .foot-grid ul:not(.socials) a { display: inline-block; padding-block: 11px; margin-block: 0; min-width: 44px; }  /* 44px tap rows; the round social icons keep their own box */
    .foot-base { align-items: center; } .foot-base a { display: inline-block; padding-block: 14px; min-width: 44px; text-align: center; }
    .shot { aspect-ratio: 4 / 5; }
    .logos { flex-wrap: wrap; gap: 20px var(--s-6); } .logos .k { width: 100%; }
    .news form { flex-direction: column; border-radius: 20px; } .news .btn, .hero .ctas .btn { justify-content: center; } .hero .ctas .btn { flex: 1 1 100%; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (prefers-reduced-motion: reduce) { .js .rv, .more-btn .chev, .menu .chev { transition: none; } .js .rv { transform: none; } }
  @media (prefers-contrast: more) { .bar, .drop, .sheet { box-shadow: 0 0 0 2px var(--ink); } }
  /* ---------- hero layout (v5.2): split on laptops so words, actions, the next event and real faces all sit in the first screen ---------- */
  .pic img.zoom { position: absolute; left: 50%; bottom: 0; width: auto; height: 158%; max-width: none; transform: translateX(-50%); object-fit: cover; }
  @media (min-width: 961px) {
    .hero { padding-top: 0; }
    .hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: clamp(40px, 5vw, 80px);
                  min-height: calc(100svh - 80px); padding-block: var(--s-4) 40px; }
    .hero h1 { grid-column: 1; grid-row: 2; font-size: clamp(2.8rem, 4.8vw, 4.6rem); }
    .hero .lede { grid-column: 1; grid-row: 3; }
    .hero .ctas { grid-column: 1; grid-row: 4; }
    .pic { grid-column: 2; grid-row: 1 / 6; margin: 0; aspect-ratio: auto; height: 100%; min-height: 460px; max-height: 720px; align-self: center; }
  }
  @media (max-width: 960px) {
    .pic { aspect-ratio: 16 / 10; }
    .pic img.zoom { height: 175%; transform: translateX(-50%); }
  }

  /* ================= v5.3 GRID SYSTEM: 12 columns, 24px gutters, two shared axes =================
     Axis A = column 5 (label left, content right): pathway, FAQ, footer links.
     Axis B = column 7 (halves): hero photo, section ledes and controls, event details.
     Everything else starts at column 1. */
  @media (min-width: 961px) {
    .hero .wrap, .head, .step-row, .feature, .faq, .foot-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); }
    .hero h1, .hero .lede, .hero .ctas { grid-column: 1 / 7; }
    .pic { grid-column: 7 / 13; }
    .head > :first-child { grid-column: 1 / 7; }
    .head > :last-child:not(:first-child) { grid-column: 7 / 13; }
    .head .end { justify-self: end; }
    .step-row > :first-child { grid-column: 1 / 5; }
    .step-row > .cards { grid-column: 5 / 13; }
    .cards { gap: var(--s-5); }
    .feature .cover { grid-column: 1 / 6; max-width: none; }
    .feature > :last-child { grid-column: 7 / 13; }
    .faq > :first-child { grid-column: 1 / 5; }
    .faq > :last-child { grid-column: 5 / 13; }
    .foot-grid > :nth-child(1) { grid-column: 1 / 5; }
    .foot-grid > :nth-child(2) { grid-column: 5 / 7; }
    .foot-grid > :nth-child(3) { grid-column: 7 / 9; }
    .foot-grid > :nth-child(4) { grid-column: 9 / 11; }
    .foot-grid > :nth-child(5) { grid-column: 11 / 13; }
    /* stats: four equal cells on the same columns (1, 4, 7, 10), hairlines only above and below: less ink */
    .stats { column-gap: var(--s-5); }
    .stats div + div { border-left: 0; padding-left: 0; }
  }

  /* ================= v5.3 SIZE LADDER: one clear step between levels =================
     hero 72  >  section title 54  >  stat 42  >  event title 34  >  card title 24  >  step label 20  >  body 17 */
  .stats b { font-size: clamp(2.1rem, 3vw, 2.6rem); }
  .feature h3 { font-family: var(--serif); font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.2; letter-spacing: -0.01em; }
  .step-row h3.s { font-size: 1.25rem; line-height: 1.3; }
  .tile .title { font-size: clamp(1.35rem, 1.8vw, 1.5rem); }

  /* ================= v5.3 MOTION: every movement has a job =================
     load: hero text rises in (once) · scroll: section heads and card groups fade up 12px (once)
     open: menus and Details unfold · switch: event lists crossfade · hover: arrows nudge, photos breathe
     continuous: only the fellows strip. All of it stops for prefers-reduced-motion. */
  .js .rv { transform: translateY(12px); transition: opacity .6s var(--out), transform .6s var(--out); transition-delay: var(--d, 0ms); }
  .drop:not([hidden]), .sheet:not([hidden]) { animation: pop .18s var(--out); }
  @keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
  #up-panel:not([hidden]), #past-panel:not([hidden]) { animation: fade .3s var(--out); }
  @keyframes fade { from { opacity: 0; } }
  .tile .more { display: grid; grid-template-rows: 0fr; opacity: 0; padding: 0; gap: 0; transition: grid-template-rows .3s var(--out), opacity .2s ease, padding .3s var(--out); }
  .tile .more.open { grid-template-rows: 1fr; opacity: 1; padding: var(--s-3) 0 var(--s-2); }
  .tile .more > .mi { overflow: hidden; min-height: 0; display: grid; gap: var(--s-3); justify-items: start; }
  .tile .more > .mi > p { margin: 0; }
  .shot img { transition: transform .8s var(--out); }
  .shot:hover img { transform: scale(1.025); }
  @media (prefers-reduced-motion: reduce) {
    .drop:not([hidden]), .sheet:not([hidden]), #up-panel:not([hidden]), #past-panel:not([hidden]) { animation: none; }
    .tile .more, .shot img { transition: none; } .shot:hover img { transform: none; }
  }
  .head { margin-bottom: var(--head) !important; }
  .head + * { margin-top: 0 !important; }
  .rail { padding-top: 0; }
  .footer { margin-top: var(--gap); }
  /* NAV (v5.5): links sit right, beside Apply: two groups (identity left, actions right), half the pointer travel to Apply */
  @media (min-width: 961px) { .bar > nav { margin-left: auto; margin-right: var(--s-4); } .drop { left: auto; right: -8px; } .menu > li:first-child .drop { right: auto; left: -8px; } }
  /* EVENTS THIS WEEK (v5.5): when 2+ events fall in the next 7 days, every one is listed, in date order, on the grid
     cover cols 1-2 · date col 3 · title and details cols 4-10 · RSVP cols 11-12 */
  .week-k { margin: 0 0 var(--s-4); font-size: var(--t-small); font-weight: 600; color: var(--ink-2); }
  .week { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .wk { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: center; padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
  .wk-cover { grid-column: 1 / 3; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--paper-2); }
  .wk-cover img { width: 100%; height: 100%; object-fit: cover; }
  .wk-cover { display: grid; place-items: center; } .wk-ph { width: 32px; height: 32px; color: var(--ink-3); opacity: .6; }
  .wk-date { grid-column: 3 / 4; display: grid; gap: 2px; }
  .wk-date b { font-family: var(--serif-display); font-weight: 400; font-size: 2.625rem; line-height: 1; }
  .wk-date span { font-size: var(--t-meta); color: var(--ink-3); }
  .wk-main { grid-column: 4 / 11; display: grid; gap: var(--s-2); }
  .wk-main .live { margin: 0; }
  .wk-main h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.25; margin: 0; text-wrap: balance; }
  .wk-main .info { display: flex; flex-wrap: wrap; gap: var(--s-1) 14px; font-size: var(--t-small); color: var(--ink-2); }
  .wk-main .info span { display: inline-flex; align-items: center; gap: 6px; } .wk-main .info svg { width: 16px; height: 16px; color: var(--ink-3); }
  .wk-go { grid-column: 11 / 13; justify-self: end; }
  @media (max-width: 760px) {
    .wk { grid-template-columns: 72px 1fr; column-gap: var(--s-4); row-gap: var(--s-3); align-items: start; }
    .wk-cover { grid-column: 1; grid-row: 1 / 3; } .wk-date { display: none; }
    .wk-main { grid-column: 2; } .wk-go { grid-column: 2; justify-self: start; }
  }
  /* LIVE LOGO (v5.6): web nav only. Same proportions as the static lockup: 32px tall, symbol 2.6x the capital height
     (capitals 12.3px = Libre Baskerville at 16px), gap 0.63x the symbol width, symbol centred on the capitals.
     "India" cycles through the official languages; everywhere else (print, footer, documents) the static SVG is used. */
  .brand-wrap { display: flex; align-items: center; gap: 6px; }
  .ll-logo { display: inline-block; white-space: nowrap; font: 400 16px/32px "Libre Baskerville", Georgia, serif; color: var(--red); text-decoration: none; letter-spacing: 0; }
  .bar .brand.ll-logo { display: inline-block; min-height: 0; padding-block: 6px; }
  .bar .brand.ll-logo img.sym { display: inline-block; width: 24.25px; height: 32px; vertical-align: -9.85px; margin-right: 15.3px; }
  /* sequenced like the original site (exit finishes, then entry), same ease-out curve, slower:
     old word rises 12px and fades over 0.6s; then the new word rises from 12px below over 0.75s. A word every 4s. */
  .ll { position: relative; display: inline-block; vertical-align: top; height: 32px; text-align: left; }
  .ll .w { position: absolute; left: 0; top: 0; line-height: 32px; white-space: nowrap; opacity: 0; transform: translateY(12px);
           transition: opacity .75s cubic-bezier(.16, 1, .3, 1), transform .75s cubic-bezier(.16, 1, .3, 1); will-change: opacity, transform; }
  .ll .w.on { position: relative; opacity: 1; transform: none; }
  .ll .w.out { opacity: 0; transform: translateY(-12px); transition-duration: .6s, .6s; }
  .ll .w.reset { transition: none; }
  /* LOGO PAUSE (v1.5.2, WCAG 2.2.2): the cycling "India" runs longer than 5s, so it needs a pause control people can find and keep.
     Option B of mockups/v2-features/18-contrast: quiet until wanted. Invisible at rest on pointer devices, it appears when the logo is
     hovered (the logo already holds still then) or when the button gets keyboard focus; always shown on touch screens (no hover) and
     while paused, so Play is never lost. 24px circle (WCAG 2.5.8), 44px tall hit area that never covers the logo link. --ink-3 icon,
     5.2:1 on paper. Paused is remembered (localStorage 'aisi:logo-paused'). Reduced motion: the logo is still, so no control. */
  .ll-pause { flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); display: grid; place-items: center;
              cursor: pointer; position: relative; opacity: 0; -webkit-tap-highlight-color: transparent; transition: opacity .2s, background-color .2s, color .2s; }
  .ll-pause svg { width: 10px; height: 10px; }
  .ll-pause::after { content: ""; position: absolute; inset: -10px -10px -10px -4px; }
  .brand-wrap:hover .ll-pause, .ll-pause:focus-visible, .ll-pause[aria-pressed="true"] { opacity: 1; }
  @media (hover: none) { .ll-pause { opacity: 1; } }
  @media (hover: hover) { .ll-pause:hover { background: rgba(28,26,23,.06); color: var(--ink); } }
  .ll-pause:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 50%; }
  body.hdr-dark .ll-pause { color: var(--on-dark-2); }
  @media (hover: hover) { body.hdr-dark .ll-pause:hover { background: rgba(255,255,255,.1); color: var(--on-dark); } }
  body.hdr-dark .ll-pause:focus-visible { outline-color: var(--red-on-dark); }
  html:not(.js) .ll-pause { display: none; }   /* without JS nothing moves, so there is nothing to pause */
  @media (prefers-reduced-motion: reduce) { .ll-pause { display: none; } .ll .w { transition: none; } }

  /* ---------- profile control (v6.1): replaces "Sign in" and the header Apply. Signed out: a 36px person circle, links to sign in.
     Signed in: initials in the circle (+ first name from 961px up), links to the account. 44px hit area; colours from brand.css. ---------- */
  .bar .me { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 44px; min-height: 44px; padding: var(--s-1); border-radius: 999px;
             color: var(--ink); text-decoration: none; font: 600 var(--t-small) var(--sans); -webkit-tap-highlight-color: transparent; transition: background-color .2s; }
  .bar .me:hover { background: rgba(28,26,23,.06); }
  .bar .me:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .bar .me[aria-current="page"] { background: rgba(28,26,23,.06); }
  .me-av { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
           background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
  .me-gl { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--ink-3); }
  .me-in { position: relative; font: 700 13px/1 var(--sans); letter-spacing: .02em; color: var(--ink); }
  .me-in:empty { display: none; }
  .me-av:has(.me-in:not(:empty)) .me-gl { display: none; }
  .me-nm { display: none; }
  @media (min-width: 961px) { .bar .me.is-in:has(.me-nm:not(:empty)) { padding-right: 14px; } .me.is-in .me-nm:not(:empty) { display: inline; } }
  body.hdr-dark .bar .me { color: var(--on-dark); }
  body.hdr-dark .bar .me:hover, body.hdr-dark .bar .me[aria-current="page"] { background: rgba(255,255,255,.1); }
  body.hdr-dark .bar .me:focus-visible { outline-color: var(--red-on-dark); }
  body.hdr-dark .me-av { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
  body.hdr-dark .me-gl { fill: var(--on-dark-2); }
  body.hdr-dark .me-in { color: var(--on-dark); }
  @media (prefers-contrast: more) { .me-av { box-shadow: inset 0 0 0 2px var(--ink); } }
  /* ================= v6 PHONE APP SHELL: below 768px only. Tablet and desktop are untouched (every rule below sits in the phone query
     or targets parts that are display: none above it). Markup: pages/_partials/tabbar.html (mirrored in src/home.html).
     Compact header (logo, Sign in, menu) · floating glass tab bar: Home, Programmes, Events, Hubs; Programmes and Hubs open a bottom sheet ·
     large page titles that hand over to a small title bar once they scroll away · Up next on Home · 64px section rhythm.
     Rules that page styles also set carry "html" for one more step of specificity (page styles load after this file). */
  .tabbar, .ph-title, .ph-only { display: none; }
  @media (max-width: 767px) {
    :root { --gap: 64px; --gap-strip: 48px; --head: 32px; --tb-h: 64px; --tb-b: max(12px, env(safe-area-inset-bottom)); }
    body { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
    .ph-only { display: block; }

    /* compact header: logo left; the profile circle and the menu right */
    .bar { height: 56px; gap: var(--s-2); }
    .bar .right { gap: 0; }
    .menu-btn { margin-right: -10px; }
    .sheet { top: 52px; }

    /* large titles: one size for every page H1 (42, the step above the 34 section titles), close under the header */
    html .hero, html .b-hero { padding-top: var(--s-5); }
    html .hero h1, html .b-hero h1, html body .p-hero h1 { font-size: 2.625rem !important; line-height: 1.08; letter-spacing: -0.02em; }
    html .p-end { padding-block: var(--s-8); }
    .pic .next { display: none !important; }   /* the photo chip becomes the Up next card under the hero */

    /* small title bar: slides in once the large title has scrolled away (pages with a product bar use that instead); tap = back to top */
    .ph-title { display: flex; position: fixed; z-index: 64; left: 0; right: 0; top: 0; height: 48px; padding-inline: 56px; align-items: center; justify-content: center;
                font: 600 var(--t-small)/1.2 var(--sans); color: var(--ink); box-shadow: 0 1px 0 var(--line); cursor: pointer;
                transform: translateY(-100%); visibility: hidden; transition: transform .35s var(--out), visibility 0s linear .35s; }
    .ph-title span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ph-title.show { transform: none; visibility: visible; transition: transform .35s var(--out), visibility 0s; }

    /* the tab bar: floating glass, above the home indicator, hides while reading down and returns on the way up */
    .tabbar { display: flex; position: fixed; z-index: 65; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: var(--tb-b);
              max-width: 440px; height: var(--tb-h); margin-inline: auto; padding: 6px; gap: 2px; border-radius: 999px;
              box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 0 .5px rgba(28,26,23,.14), 0 12px 32px -10px rgba(28,26,23,.32);
              transition: transform .45s var(--out); }
    .tabbar.tb-hide { transform: translateY(calc(100% + var(--tb-b) + 16px)); }
    .tab { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; align-content: center; gap: 3px; border: 0; border-radius: 999px; background: transparent;
           color: var(--ink-2); font: 600 11px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
           transition: background-color .2s, color .2s, transform .15s var(--out); }
    .tab svg { width: 24px; height: 24px; }
    .tab.on, .tab[aria-expanded="true"] { color: var(--red); background: rgba(28,26,23,.07); }
    .tab.on svg { fill: rgba(155,28,46,.12); }
    .tab:active { transform: scale(.94); }
    .tab:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
    /* never cover content: the dark footer runs on under the bar, so its last line always clears it */
    .footer { padding-bottom: calc(var(--s-7) + var(--tb-h) + var(--tb-b)); }
    body:has(.a-actions) .tabbar { display: none; }                             /* sign in / sign up keep their own action bar at the bottom */
    body:has(.a-actions) .footer { padding-bottom: var(--s-7); }

    /* tab sheets (Programmes, Hubs): an iOS sheet with a grabber; drag down, tap outside, Close or Escape to dismiss */
    .tsheet { margin: auto 0 0; padding: 0; width: 100%; max-width: 100%; max-height: min(88svh, 720px); border: 0; border-radius: 28px 28px 0 0;
              background: var(--paper); color: var(--ink); box-shadow: 0 -12px 40px -12px rgba(20,14,12,.35); overscroll-behavior: contain; transition: transform .3s var(--out); }
    .tsheet::backdrop { background: rgba(20,14,12,.4); }
    .tsheet[open] { animation: ts-up .5s var(--out); }
    .tsheet[open]::backdrop { animation: fade .35s ease; }
    .tsheet.ts-out { transform: translateY(100%); transition: transform .28s cubic-bezier(.4, 0, 1, 1); }
    .tsheet.ts-out::backdrop { opacity: 0; transition: opacity .28s; }
    @keyframes ts-up { from { transform: translateY(100%); } }
    html:has(.tsheet[open]) { overflow: hidden; }
    .ts-in { padding: 0 var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom)); }
    .ts-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-5) var(--s-1) var(--s-4); touch-action: none; cursor: grab; }
    .ts-grab { position: absolute; top: 8px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgba(28,26,23,.2); }
    .ts-top h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 2.125rem; line-height: 1.1; letter-spacing: -0.015em; }
    .ts-x { flex: none; width: 44px; height: 44px; margin-right: -6px; border: 0; padding: 0; display: grid; place-items: center; background: transparent; color: var(--ink-2); cursor: pointer; }
    .ts-x svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: rgba(28,26,23,.07); }
    .ts-list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
    .ts-list a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 64px; padding: var(--s-3) 14px var(--s-3) var(--s-4);
                 color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
    .ts-list li + li a::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: 1px; background: var(--line); }
    .ts-list a:active { background: rgba(28,26,23,.05); }
    .ts-list a:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 18px; }
    .ts-list b { display: block; font-weight: 600; font-size: var(--t-body); line-height: 1.3; }
    .ts-list small { display: block; margin-top: 2px; font-size: var(--t-small); line-height: 1.4; color: var(--ink-3); }
    .ts-list svg { flex: none; width: 18px; height: 18px; color: var(--ink-3); opacity: .55; }
    .ts-list a[aria-current] b { color: var(--red); }

    /* Home: Up next, the next Luma event under the hero (one red action) */
    .upnext { padding-top: var(--s-5); }
    .un-card { display: grid; gap: var(--s-4); align-content: start; min-height: 204px; padding: 20px; border-radius: 22px; background: var(--card);
               box-shadow: 0 0 0 1px var(--line), 0 16px 32px -24px rgba(28,26,23,.35); }
    .un-k { margin: 0; font-size: var(--t-meta); font-weight: 700; color: var(--red); }
    .un-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; }
    .un-date { width: 52px; height: 56px; border-radius: 14px; background: var(--paper); display: grid; place-content: center; justify-items: center; gap: var(--s-1); line-height: 1; }
    .un-date small { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--red); text-transform: uppercase; }
    .un-date b { font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
    .un-t { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.3; text-wrap: balance; }
    .un-m { margin: 6px 0 0; font-size: var(--t-small); color: var(--ink-2); }
    .un-card > .btn { justify-content: center; }
    .un-skel { border-radius: 12px; background: var(--paper-2); }
  }
  @media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .tabbar, .tab, .ph-title, .ph-title.show { transition: none; }
    .tsheet[open], .tsheet[open]::backdrop { animation: none; }
    .tsheet.ts-out, .tsheet.ts-out::backdrop { transition: none; }
    .tab:active { transform: none; }
  }
  @media (max-width: 767px) and (prefers-contrast: more) { .tabbar, .tsheet { box-shadow: 0 0 0 2px var(--ink); } }

  /* phone: profile circle only (no menu button); the sheet leads with the account; Programmes and Hubs live in the tab bar */
  @media (max-width: 767px) {
    .menu-btn { display: none !important; }
    #sheet > details:nth-of-type(1), #sheet > details:nth-of-type(2) { display: none; }
    .sheet-me { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 14px var(--s-4); border-bottom: 1px solid var(--line); }
    .sheet-me .me-av { width: 44px; height: 44px; flex: none; }
    .sheet-me b { display: block; font-weight: 600; font-size: var(--t-small); color: var(--ink); }
    .sheet-me small { display: block; font-size: var(--t-meta); color: var(--ink-3); }
    #sheet .btn { box-sizing: border-box; width: calc(100% - 12px); margin: var(--s-2) 6px 0; justify-content: center; }
  }
  @media (min-width: 768px) { .sheet-me, .sheet-up { display: none; } }
  body.hdr-dark .sheet-me .me-av { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); } body.hdr-dark .sheet-me .me-gl { fill: var(--ink-3); } body.hdr-dark .sheet-me .me-in { color: var(--ink); }

  /* phone footer (below 768px): the link columns fold into an accordion, as on apple.com.
     Without JS nothing folds (site.js sets html.fx-acc), so every link stays reachable. Desktop is unchanged. */
  .fh-b { all: unset; display: contents; }
  .fh-c { display: none; }
  @media (max-width: 767px) {
    html .foot-grid { display: block; }
    html .foot-grid > div:first-child { margin-bottom: var(--s-6); }
    .fcol { border-top: 1px solid var(--hair-dark); }
    .fcol:last-child { border-bottom: 1px solid var(--hair-dark); }
    .footer .fcol .fh { margin: 0; }
    .fh-b { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); width: 100%; min-height: 52px; cursor: pointer;
            font: 500 1rem/1.3 var(--sans); color: var(--on-dark); -webkit-tap-highlight-color: transparent; }
    .fh-b:focus-visible { outline: 2px solid var(--on-dark); outline-offset: -2px; border-radius: 4px; }
    .fh-c { display: block; flex: none; color: var(--on-dark-2); transition: transform .24s var(--ease, ease); }
    .fcol.open .fh-c { transform: rotate(180deg); }
    .fcol > ul { padding: 0 0 var(--s-4) !important; }
    html.fx-acc .fcol:not(.open) > ul { display: none; }
    html:not(.fx-acc) .fh-c { display: none; }
    html .foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0; margin-top: var(--s-6); border-top: 0; padding-top: 0; }
    html .foot-base .fb-links a { margin: 0; min-width: 0; padding-inline: 0; }
    .foot-base .fb-links a::before { content: "\00B7"; display: inline-block; padding: 0 10px; color: var(--on-dark-2); text-decoration: none; }
  }
  @media (max-width: 767px) and (prefers-reduced-motion: reduce) { .fh-c { transition: none; } }

  /* language switch (#14, spec-v2): a globe and English / हिन्दी in the footer's bottom row, right after Privacy and Terms.
     On phones it takes its own full-width row above the copyright line (36px tall halves). */
  .foot-base { align-items: center; }
  .foot-base .fb-r { display: flex; align-items: center; flex-wrap: wrap; gap: 0 var(--s-5); }
  .foot-base .fb-links a:first-child { margin-left: 0; }
  .langsw { display: inline-flex; align-items: center; gap: 2px; padding: 3px 3px 3px var(--s-3); border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: var(--on-dark-2); }
  .langsw > svg { flex: none; margin-right: 6px; }
  .foot-base .langsw a { margin: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; min-width: 0; padding: 0 14px; border-radius: 999px; color: var(--on-dark-2); font-size: var(--t-meta); text-decoration: none; }
  .foot-base .langsw a:lang(hi) { font-family: var(--deva); font-size: 14px; padding-top: 2px; }
  .foot-base .langsw a[aria-current="true"] { background: rgba(255,255,255,.14); color: var(--on-dark); }
  .foot-base .langsw a:hover { color: var(--on-dark); }
  .foot-base .langsw a:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; }
  @media (max-width: 767px) {
    .foot-base .fb-r { display: contents; }
    html .foot-base .langsw { order: -1; flex: 1 1 100%; margin-bottom: var(--s-3); }
    .langsw a { flex: 1; }
    .foot-base .langsw a { padding-block: 0; }
    .foot-base .fb-links { display: inline; }
  }

  /* 2.0.2 (owner): no logo pause control; the logo still stops while hovered or focused */
  .ll-pause { display: none !important; }
  /* 2.0.2 (owner): menus are solid, not see-through */
  .drop, .drop.glass-bar, .sheet, .sheet.glass-bar { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; }
