/* LexTalks — lextalks.org
   Layout: navy masthead bands alternate with white and light-grey reading bands;
   a 12-column grid inside a 1180px wrap; gold is used sparingly for emphasis only. */
:root {
  --navy: #0A1A2F;
  --navy-2: #13294A;
  --navy-3: #1E3A63;
  --gold: #D4A017;
  --gold-ink: #8A6608;        /* gold dark enough for text on white */
  --teal: #1BA6A6;
  --teal-ink: #0E7474;        /* teal dark enough for text on white */
  --white: #FFFFFF;
  --mist: #F2F2F2;
  --ink: #0A1A2F;
  --muted: #4A586C;
  --line: #DCE1E8;
  --on-navy: #E8EDF4;
  --on-navy-muted: #A9B6C8;

  --f-head: "Montserrat", "Poppins", "Segoe UI", Arial, sans-serif;
  --f-body: "Inter", "Lato", "Segoe UI", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);

  --radius: 10px;
  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
.prose p + p, .prose p + ul, .prose ul + p, .prose ol + p, .prose p + ol, .prose h2 + p, .prose h3 + p { margin-top: 1em; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; margin-bottom: .2em; }
.prose h3 { margin-top: 1.4em; margin-bottom: .2em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0; }
.prose li + li { margin-top: .45em; }
.prose { max-width: 68ch; }
.prose blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--gold); font-family: var(--f-head); font-weight: 600; font-size: var(--step-1); line-height: 1.4; }

.wrap {
  max-width: calc(var(--wrap) + 2 * 24px);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(56px, 7vw, 96px); }
.band--mist { background: var(--mist); }
.band--navy { background: var(--navy); color: var(--on-navy); }
.band--navy h1, .band--navy h2, .band--navy h3 { color: var(--white); }
.band--navy a:not(.btn) { color: var(--white); }
.band--tight { padding-block: 40px; }

.eyebrow {
  font-family: var(--f-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-ink);
}
.band--navy .eyebrow { color: var(--teal); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; line-height: 1.55; }
.band--navy .lede { color: var(--on-navy-muted); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head--row > div { display: grid; gap: 12px; max-width: 760px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-head); font-weight: 700; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #E6B325; color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-3); color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.band--navy .btn--ghost, .hero .btn--ghost { color: var(--white); }
.band--navy .btn--ghost:hover, .hero .btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font-family: var(--f-head); font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--teal-ink); }
.textlink::after { content: " →"; }
.textlink:hover { color: var(--navy); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo__word { font-family: var(--f-head); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1; position: relative; padding-bottom: 6px; }
.logo__word .lex { color: var(--navy); }
.logo__word .talks { color: var(--teal); position: relative; }
.logo__word .talks::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -6px; height: 3px; background: var(--gold); border-radius: 2px; }
.logo--inverse .logo__word .lex { color: var(--white); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link, .nav-group__btn {
  font-family: var(--f-head); font-weight: 600; font-size: .9rem; color: var(--navy); text-decoration: none;
  padding: 0 12px; height: 40px; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; line-height: 1;
}
.nav-link:hover, .nav-group__btn:hover, .nav-group[data-open="true"] .nav-group__btn { background: var(--mist); color: var(--navy); }
.nav-link[aria-current="page"], .nav-group__btn.is-current { color: var(--teal-ink); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.chev { width: 12px; height: 12px; transition: transform .15s; }
.nav-group { position: relative; }
.nav-group[data-open="true"] .chev { transform: rotate(180deg); }
.nav-group__menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 260px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  box-shadow: 0 18px 40px rgba(10,26,47,.12); display: none; z-index: 70;
}
.nav-group__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-group[data-open="true"] .nav-group__menu { display: grid; gap: 2px; }
.nav-group__menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--navy); }
.nav-group__menu a span { font-family: var(--f-head); font-weight: 700; font-size: .92rem; }
.nav-group__menu a small { font-size: .8rem; color: var(--muted); }
.nav-group__menu a:hover { background: var(--mist); }
.nav-group__menu a[aria-current="page"] span { color: var(--teal-ink); }
@media (min-width: 1101px) and (hover: hover) {
  .nav-group:hover .nav-group__menu, .nav-group:focus-within .nav-group__menu { display: grid; gap: 2px; }
  .nav-group:hover .chev { transform: rotate(180deg); }
}
.nav-cta { margin-left: 12px; height: 42px; padding: 0 20px; }
.nav-cta:hover { background: #E6B325; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); box-shadow: 0 16px 30px rgba(10,26,47,.08); max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav[data-open="false"] { display: none; }
  .nav-link, .nav-group__btn { height: auto; padding: 15px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; width: 100%; justify-content: space-between; }
  .nav-link[aria-current="page"], .nav-group__btn.is-current { box-shadow: none; }
  .nav-link:hover, .nav-group__btn:hover, .nav-group[data-open="true"] .nav-group__btn { background: none; }
  .nav-group__menu { position: static; transform: none; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 4px 0 10px 12px; min-width: 0; }
  .nav-group__menu::before { display: none; }
  .nav-cta { margin: 18px 0 0; justify-content: center; height: 48px; }
}

/* Hero */
.hero { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.hero::after { /* faint justice-scale grid motif */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { color: var(--on-navy-muted); margin-top: 20px; }
.hero .btn-row { margin-top: 32px; }
.hero__meta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: var(--step--1); color: var(--on-navy-muted); }
.hero__meta strong { color: var(--white); font-family: var(--f-head); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: 8px; box-shadow: 0 0 0 4px rgba(27,166,166,.25); vertical-align: middle; }

/* Motion card: the debate motion slip */
.motion { background: var(--white); color: var(--ink); border-radius: 14px; padding: 28px; box-shadow: 0 30px 60px rgba(0,0,0,.35); position: relative; }
.motion::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 4px; background: var(--gold); border-radius: 0 0 4px 4px; }
.motion__label { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-head); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.motion__text { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); line-height: 1.3; margin-top: 18px; color: var(--navy); }
.motion__text span { color: var(--muted); font-weight: 600; }
.motion__sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.side { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.side b { display: block; font-family: var(--f-head); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.side--for b { color: var(--teal-ink); }
.side--against b { color: var(--gold-ink); }
.side p { font-size: .85rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.motion__foot { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: var(--on-navy); }
.page-hero .wrap { padding-block: clamp(48px, 6vw, 80px); display: grid; gap: 16px; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-hero .lede { color: var(--on-navy-muted); }
.crumbs { font-size: .85rem; color: var(--on-navy-muted); }
.crumbs a { color: var(--on-navy); }

/* Grids */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero .wrap { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

/* Pillars (what we do) */
.pillar { display: grid; gap: 10px; align-content: start; padding: 26px; border-top: 3px solid var(--navy); background: var(--white); }
.band--mist .pillar { background: var(--white); }
.pillar svg { width: 32px; height: 32px; color: var(--teal); }
.pillar p { color: var(--muted); font-size: .95rem; }

/* Programme feature */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }
.feature .lede { margin-top: 16px; }
.feature .btn-row { margin-top: 28px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.timeline li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.timeline time { font-family: var(--f-head); font-weight: 800; color: var(--gold); line-height: 1.1; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.timeline time small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-muted); font-weight: 700; margin-top: 4px; }
.timeline h3 { color: var(--white); font-size: 1.05rem; }
.timeline p { color: var(--on-navy-muted); font-size: .92rem; margin-top: 4px; }
.tag { display: inline-block; font-family: var(--f-head); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(27,166,166,.12); color: var(--teal-ink); }
.band--navy .tag { background: rgba(27,166,166,.2); color: #7FDCDC; }
.tag--gold { background: rgba(212,160,23,.16); color: var(--gold-ink); }
.band--navy .tag--gold { color: var(--gold); }
.tag--grey { background: var(--mist); color: var(--muted); }

/* Journey: the participant workflow from the spec */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.journey li { counter-increment: step; position: relative; padding: 0 14px 0 0; display: grid; gap: 8px; align-content: start; }
.journey li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-head); font-weight: 800; font-size: .8rem; color: var(--teal-ink); letter-spacing: .08em; }
.journey li::after { content: ""; position: absolute; top: 10px; left: 32px; right: 10px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--line)); }
.journey li:last-child::after { display: none; }
.journey h3 { font-size: 1rem; margin-top: 4px; }
.journey p { font-size: .88rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } .journey li:nth-child(3)::after { display: none; } }
@media (max-width: 560px) { .journey { grid-template-columns: 1fr 1fr; } .journey li:nth-child(3)::after { display: block; } .journey li:nth-child(2n)::after { display: none; } }

/* Programmes */
.prog { padding: 26px; border-radius: var(--radius); background: var(--navy); color: var(--on-navy); display: grid; gap: 10px; align-content: start; }
.prog h3 { color: var(--white); }
.prog h3 span { color: var(--teal); }
.prog p { color: var(--on-navy-muted); font-size: .93rem; }

/* Cards: events & articles */
.card { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--teal); box-shadow: 0 14px 30px rgba(10,26,47,.08); transform: translateY(-2px); color: inherit; }
.card__body { padding: 22px; display: grid; gap: 10px; align-content: start; }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .82rem; color: var(--muted); }
.card h3 { font-size: 1.12rem; color: var(--navy); }
.card p { color: var(--muted); font-size: .93rem; }
.card__cat { height: 6px; background: var(--teal); }
.card__cat[data-cat="Constitutional Law"] { background: var(--navy); }
.card__cat[data-cat="Legal Skills"] { background: var(--gold); }

.event-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.event-row:last-child { border-bottom: 1px solid var(--line); }
.event-row:hover h3 { color: var(--teal-ink); }
.datebox { width: 92px; border-radius: 10px; overflow: hidden; text-align: center; border: 1px solid var(--line); background: var(--white); font-variant-numeric: tabular-nums; }
.datebox__m { background: var(--navy); color: var(--white); font-family: var(--f-head); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 0; }
.datebox__d { font-family: var(--f-head); font-weight: 800; font-size: 2rem; line-height: 1.1; padding-top: 6px; color: var(--navy); }
.datebox__y { font-size: .75rem; color: var(--muted); padding-bottom: 6px; }
.event-row h3 { font-size: 1.15rem; color: var(--navy); }
.event-row p { color: var(--muted); font-size: .93rem; margin-top: 6px; }
.event-row .card__meta { margin-top: 8px; }
@media (max-width: 680px) { .event-row { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; } .datebox { width: 72px; } .datebox__d { font-size: 1.6rem; } .event-row > .btn, .event-row > .textlink { grid-column: 2; justify-self: start; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font-family: var(--f-head); font-weight: 600; font-size: .85rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.empty { padding: 36px; border: 1px dashed #B8C2D0; border-radius: var(--radius); text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; background: var(--white); }
.empty h3 { color: var(--navy); }

/* Detail layout */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } }
.aside-card { border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 16px; background: var(--white); position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); }
@media (max-width: 960px) { .aside-card { position: static; order: -1; } }
.facts { display: grid; gap: 12px; margin: 0; }
.facts div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: .93rem; }
.facts dt { font-family: var(--f-head); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; color: var(--navy); }

/* Forms */
.form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--f-head); font-weight: 600; font-size: .88rem; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); font-family: var(--f-body); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid #B8C2D0; border-radius: 8px; padding: 11px 13px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,166,166,.2); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #B42318; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .9rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; border-radius: 8px; padding: 14px 16px; }
.form-status[data-kind="ok"] { background: #E3F5F2; color: #0B5A55; }
.form-status[data-kind="err"] { background: #FDECEA; color: #8A1C12; }
.form-status[data-kind="info"] { background: #FFF6DD; color: #6A4F05; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 3vw, 36px); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tab { font-family: var(--f-head); font-weight: 700; font-size: .92rem; padding: 12px 16px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold); }
.tab:hover { color: var(--navy); }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.band--navy .ticks li { color: var(--on-navy); }

.duties { counter-reset: duty; list-style: none; padding: 0; margin: 1em 0 0; display: grid; gap: 10px; }
.duties li { counter-increment: duty; display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.duties li::before { content: "(" counter(duty, lower-alpha) ")"; font-family: var(--f-head); font-weight: 700; color: var(--teal-ink); }

/* Chapters */
.chapter { border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: grid; gap: 12px; align-content: start; background: var(--white); }
.chapter--live { border: 2px solid var(--teal); }
.chapter h3 { font-size: 1.35rem; }
.chapter h3 small { display: block; font-family: var(--f-body); font-weight: 500; font-size: .85rem; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.chapter p { color: var(--muted); font-size: .95rem; }

/* Architecture */
.arch { display: grid; gap: 14px; }
.arch__root { justify-self: center; background: var(--navy); color: var(--white); font-family: var(--f-head); font-weight: 800; padding: 12px 28px; border-radius: 999px; }
.arch__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .arch__cols { grid-template-columns: 1fr; } }
.arch__col { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--white); }
.arch__col h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.arch__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.arch__col li { font-family: var(--f-head); font-weight: 700; color: var(--navy); }
.arch__col li span { font-family: var(--f-body); font-weight: 400; font-size: .85rem; color: var(--muted); }

/* Video & gallery */
.video { border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video__soon { aspect-ratio: 16 / 9; display: grid; place-content: center; text-align: center; gap: 8px; color: var(--on-navy-muted); padding: 20px; max-width: 100%; }
.video__soon b { color: var(--white); font-family: var(--f-head); font-size: 1.1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; border-radius: 8px; overflow: hidden; background: var(--mist); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { font-size: .82rem; color: var(--muted); padding: 8px 10px; }

/* CTA band */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-muted); font-size: .92rem; }
.site-footer .wrap { padding-block: 64px 32px; display: grid; gap: 40px; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-tagline { font-family: var(--f-head); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; color: var(--on-navy-muted); margin-top: 18px; }
.site-footer h4 { color: var(--white); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
.socials { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.socials a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); align-items: center; justify-content: center; }
.socials a:hover { border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; }

.notice { font-size: .85rem; color: var(--muted); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Footer: Samvega line */
.footer-samvega { margin-top: 12px; font-size: .85rem; color: var(--on-navy-muted); }
.footer-samvega a { color: var(--gold) !important; font-weight: 600; }

/* Card footer aligns to bottom so cards in a row line up */
.card__body { height: 100%; grid-template-rows: auto auto 1fr auto; }
.card__foot { padding-top: 6px; }
.hero-meta { color: var(--on-navy-muted); }

/* Long-form reading column */
.readable { max-width: 68ch; }
.author-box { margin-top: 36px; padding: 20px 22px; border-left: 3px solid var(--teal); background: var(--mist); border-radius: 0 10px 10px 0; display: grid; gap: 6px; }
.author-box__label { font-family: var(--f-head); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); }
.author-box__name { font-family: var(--f-head); font-weight: 700; color: var(--navy); }
.author-box p { font-size: .93rem; color: var(--muted); }

/* Resources */
.res-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.res-tools .filters { margin-bottom: 0; }
.search { position: relative; flex: 0 1 320px; min-width: 0; }
.search input { width: 100%; font: inherit; font-size: .95rem; padding: 10px 14px 10px 40px; border: 1px solid #B8C2D0; border-radius: 999px; background: var(--white); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,166,166,.2); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.res-group { margin-top: 40px; }
.res-group__title { font-size: var(--step-2); padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.res-grid { grid-template-columns: 1fr !important; gap: 12px; }
.res { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 6px 28px; align-items: start; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.res:hover { border-color: var(--teal); box-shadow: 0 12px 26px rgba(10,26,47,.07); color: inherit; }
.res__label { padding-top: 2px; }
.res__main { display: grid; gap: 4px; min-width: 0; }
.res h3 { font-size: 1.05rem; color: var(--navy); }
.res__src { font-size: .85rem; font-weight: 600; color: var(--teal-ink); }
.res p { font-size: .93rem; color: var(--muted); }
.res__host { justify-self: end; text-align: right; display: inline-flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--teal-ink); font-weight: 600; white-space: nowrap; padding-top: 3px; }
.res__host span { font-size: 1.1rem; line-height: 1; }
@media (max-width: 760px) { .res { grid-template-columns: 1fr; gap: 8px; } .res__host { justify-self: start; text-align: left; white-space: normal; overflow-wrap: anywhere; } }
.res-note { margin-top: 48px; padding: 18px 20px; background: var(--mist); border-radius: 10px; font-size: .9rem; color: var(--muted); }

/* Gallery: large photos, grouped by album */
.album + .album { margin-top: 56px; }
.album__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.album__head h2 { font-size: var(--step-2); }
.album__head span { color: var(--muted); font-size: .92rem; }
.album__head .textlink { margin-left: auto; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 680px) { .photo-grid { grid-template-columns: 1fr; gap: 14px; } }
.photo { margin: 0; display: grid; gap: 8px; }
.photo__btn { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--mist); cursor: zoom-in; aspect-ratio: 4 / 3; }
.photo__btn img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.photo__btn img.fill { object-fit: cover; }
.photo__btn:hover img { transform: scale(1.02); }
.photo figcaption { font-size: .88rem; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: #060E1A; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; display: grid; gap: 12px; justify-items: center; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; }
.lb-fig figcaption { color: #DCE3EC; font-size: .95rem; text-align: center; }
.lb-nav, .lb-close { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lb-nav:hover, .lb-close:hover { background: rgba(255,255,255,.22); }
.lb-prev { justify-self: start; } .lb-next { justify-self: end; }
.lb-close { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); font-size: 1.8rem; }
.lb-count { position: absolute; top: max(28px, env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); color: #A9B6C8; font-size: .9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 680px) { .lightbox { grid-template-columns: 1fr; } .lb-nav { position: absolute; bottom: max(20px, env(safe-area-inset-bottom, 0px)); } .lb-prev { left: 24px; } .lb-next { right: 24px; } }

/* Samvega section with collapsible stories */
.samvega { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .samvega { grid-template-columns: 1fr; } }
.pair { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; margin-top: 8px; }
.pair div { border-radius: 10px; padding: 14px; display: grid; gap: 4px; align-content: start; }
.pair b { font-family: var(--f-head); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.pair span { font-family: var(--f-head); font-weight: 700; font-size: 1rem; }
.pair i { font-style: normal; align-self: center; color: var(--muted); font-weight: 700; }
.pair .p1 { background: rgba(212,160,23,.16); color: var(--navy); } .pair .p1 b { color: var(--gold-ink); }
.pair .p2 { background: rgba(27,166,166,.12); color: var(--navy); } .pair .p2 b { color: var(--teal-ink); }
.pair .p3 { background: var(--navy); color: var(--white); } .pair .p3 b { color: #7FDCDC; }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; } .pair i { transform: rotate(90deg); justify-self: center; } }
.stories { margin-top: 36px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.stories summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.stories summary::-webkit-details-marker { display: none; }
.stories summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 600; }
.stories[open] summary::after { content: "−"; }
.stories[open] summary { border-bottom: 1px solid var(--line); }
.stories__body { padding: 8px 24px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
@media (max-width: 860px) { .stories__body { grid-template-columns: 1fr; gap: 20px; } }
.stories__body h3 { margin: 20px 0 10px; font-size: 1.15rem; }
.stories__body .lesson { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(212,160,23,.08); font-weight: 600; color: var(--navy); }
.stories__src { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

/* Image logo in header (all pages) */
.logo--img img { height: 46px; width: auto; display: block; }
@media (max-width: 520px) { .logo--img img { height: 40px; } }
