/* moot.litarbi.app — LitArbi for moot court teams. Warm paper, ink and an oxblood accent; a serif for headings (the Mac's
   own New York, else Georgia — no web fonts, nothing loaded from third parties). 2026-10-04 redesign (Leo: "keep it business
   and light", "a good presentation site"): centred two-tone hero, the product on a daytime sky like litarbi.app, a
   competition switcher, the season as a timeline, apply and questions in two columns. English, French, Spanish (gen_moot.py). */
:root {
  --paper: #FAF8F4; --surface: #FFFFFF; --ink: #1B1A17; --muted: #6B6558; --soft: #8A8273; --faint: #9A9384;
  --rule: rgba(27, 26, 23, 0.12); --rule-strong: rgba(27, 26, 23, 0.22);
  --accent: #9B2C2C; --accent-ink: #FFFFFF; --accent-tint: rgba(155, 44, 44, 0.10); --mark: #F6E7B8;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 24px 50px -28px rgba(30, 30, 60, .45);
  /* the daytime sky of litarbi.app's pictures, ending in this site's paper */
  --sky: radial-gradient(34% 26% at 14% 92%, rgba(255, 255, 255, .95), transparent 72%),
         radial-gradient(40% 30% at 48% 99%, rgba(255, 255, 255, .97), transparent 72%),
         radial-gradient(36% 26% at 84% 93%, rgba(255, 255, 255, .92), transparent 72%),
         radial-gradient(60% 40% at 82% 70%, rgba(250, 210, 190, .55), transparent 72%),
         radial-gradient(60% 45% at 14% 66%, rgba(212, 198, 246, .6), transparent 72%),
         linear-gradient(180deg, #5b8de4 0%, #8db2f0 28%, #c2d5f9 54%, #e8ebfb 76%, #faf6f0 100%);
  /* plates under the specimens: a higher, softer patch of the same sky */
  --plate: radial-gradient(70% 55% at 20% 100%, rgba(255, 255, 255, .9), transparent 70%),
           radial-gradient(60% 50% at 90% 85%, rgba(250, 214, 196, .7), transparent 70%),
           linear-gradient(170deg, #7ea5ec 0%, #b3cbf5 45%, #e9e8f7 80%, #f8f1ea 100%);
  --plate-dawn: radial-gradient(70% 55% at 80% 100%, rgba(255, 255, 255, .9), transparent 70%),
           radial-gradient(60% 50% at 10% 80%, rgba(214, 200, 246, .75), transparent 70%),
           linear-gradient(190deg, #9db5ee 0%, #cdd6f6 45%, #f6e6dc 85%, #faf3ec 100%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151412; --surface: #1D1C19; --ink: #EFEBE3; --muted: #A69F90; --soft: #8C8576; --faint: #7D7667;
    --rule: rgba(239, 235, 227, 0.12); --rule-strong: rgba(239, 235, 227, 0.22);
    --accent: #D46A5E; --accent-ink: #1B0F0D; --accent-tint: rgba(212, 106, 94, 0.14); --mark: rgba(246, 231, 184, 0.22);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 50px -24px rgba(0, 0, 0, .7);
    --sky: radial-gradient(60% 45% at 78% 74%, rgba(245, 186, 120, .45), transparent 70%),
           radial-gradient(70% 40% at 20% 80%, rgba(206, 133, 120, .3), transparent 70%),
           radial-gradient(90% 60% at 50% 0%, rgba(112, 128, 214, .5), transparent 70%),
           linear-gradient(180deg, #1c2346 0%, #36406f 40%, #7a6589 68%, #3a2f3c 88%, #151412 100%);
    --plate: radial-gradient(60% 50% at 80% 90%, rgba(245, 186, 120, .35), transparent 70%), linear-gradient(170deg, #222a52 0%, #3b4475 55%, #5b4a63 100%);
    --plate-dawn: radial-gradient(60% 50% at 20% 90%, rgba(206, 133, 120, .35), transparent 70%), linear-gradient(190deg, #262d55 0%, #444a7a 55%, #5e4b5e 100%);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 12px; letter-spacing: -0.015em; }
h3 { font-size: 23px; margin: 0 0 10px; }
.soft { color: var(--soft); }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.sub { color: var(--muted); margin: 0 0 30px; max-width: 62ch; font-size: 18px; }
.fine { color: var(--faint); font-size: 13.5px; margin-top: 18px; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--accent-tint); padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
mark { background: var(--mark); color: inherit; padding: 0 2px; border-radius: 2px; }
sup { font-size: 0.7em; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--rule); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.mark { color: var(--ink); font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; }
.mark:hover { text-decoration: none; }
.mark__moot { font-family: var(--serif); font-weight: 500; font-style: italic; color: var(--accent); margin-left: 2px; }
.nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav a { color: var(--muted); white-space: nowrap; } .nav a:hover { color: var(--ink); text-decoration: none; }
.nav .nav__guide { color: var(--ink); font-weight: 600; }
.nav .nav__guide[aria-current] { color: var(--accent); }
.hero__guide { margin: 20px auto 0; font-size: 16.5px; }
.hero__guide a { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--accent-tint); padding-bottom: 2px; }
.hero__guide a:hover { border-bottom-color: var(--accent); }
.nav .nav__cta { color: var(--accent-ink); background: var(--accent); font-weight: 600; padding: 7px 15px; border-radius: 999px; }
.nav .nav__cta:hover { color: var(--accent-ink); filter: brightness(1.06); }
.langs-menu { display: flex; gap: 2px; font-size: 13px; font-weight: 600; letter-spacing: 0.03em; }
.langs-menu a { padding: 3px 6px; border-radius: 6px; color: var(--faint); }
.langs-menu a[aria-current] { color: var(--ink); background: var(--accent-tint); }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 13px 24px; border-radius: 999px; border: 0; font-size: 16px; cursor: pointer; font-family: var(--sans); }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.actions { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 30px 0 0; }

/* hero: centred, the second sentence soft */
.hero { padding: 76px 0 8px; text-align: center; }
.pill { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 0; padding: 6px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 13.5px; color: var(--muted); }
.pill b { color: var(--accent); font-weight: 650; }
.hero h1 { font-size: clamp(38px, 6.2vw, 72px); line-height: 1.04; letter-spacing: -0.025em; max-width: 19ch; margin: 22px auto 22px; }
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0 auto; }
.next { margin: 22px auto 0; font-size: 15px; color: var(--muted); }
.next b { color: var(--ink); font-weight: 650; }
.days { color: var(--accent); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the product on the sky */
.stage { position: relative; padding: 64px 0 20px; }
.stage__sky { position: absolute; z-index: 0; top: 0; bottom: 120px; left: clamp(10px, 2vw, 24px); right: clamp(10px, 2vw, 24px); border-radius: clamp(18px, 3vw, 34px); background: var(--sky); overflow: hidden; }
.stage__sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 60%, var(--paper) 100%); }
.stage__in { position: relative; z-index: 1; max-width: 1060px; padding-bottom: 150px; }
.win { background: #fff; color: #1d1d1f; border-radius: 12px; overflow: hidden; text-align: left;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .3), 0 12px 24px rgba(20, 30, 80, .16), 0 40px 80px -20px rgba(20, 30, 80, .35); }
.win__bar { position: relative; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #f5f5f5; border-bottom: 1px solid #e3e3e3; font: 12.5px var(--sans); color: #555; }
.win__bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; } .win__bar i:nth-child(2) { background: #febc2e; } .win__bar i:nth-child(3) { background: #28c840; }
.win__bar span { position: absolute; left: 90px; right: 90px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; height: 470px; }
.doc { background: #e9e9ea; padding: 26px 36px 0; overflow: hidden; }
.doc__page { background: #fff; height: 100%; padding: 46px 60px 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); font: 15.5px/1.65 "Times New Roman", Times, serif; color: #1d1d1f; }
.doc__h { margin: 0 0 6px; text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 13.5px; }
.doc__sub { margin: 0 0 16px; text-align: center; font-weight: 700; font-size: 14.5px; }
.para { margin: 0 0 12px; display: grid; grid-template-columns: 34px 1fr; text-align: justify; hyphens: auto; }
.pn { color: #888; font: 12.5px var(--sans); padding-top: 3px; }
.para mark { background: #f6e7b8; }
.para mark.is-new { background: #f3d77a; box-shadow: 0 0 0 2px rgba(243, 215, 122, .45); }
.caret { display: inline-block; width: 1.5px; height: 1.05em; background: #1d1d1f; vertical-align: -2px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pane { background: #fafafa; border-left: 1px solid #e2e2e2; padding: 14px 14px 16px; font: 12.5px/1.35 var(--sans); color: #1d1d1f; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.pane p { margin: 0; }
.pane__title { font-size: 14px; font-weight: 700; }
.pane__search { border: 1px solid #d6d6d6; border-radius: 7px; padding: 6px 9px; color: #999; background: #fff; }
.pane__seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #ececec; border-radius: 7px; padding: 2px; text-align: center; font-size: 12px; }
.pane__seg span { padding: 3px 0; border-radius: 5px; color: #444; }
.pane__seg .on { background: #fff; color: #1d1d1f; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.pane__list { list-style: none; margin: 0; padding: 4px; border: 1px solid #e2e2e2; border-radius: 8px; background: #fff; }
.pane__list li { display: grid; grid-template-columns: 42px 1fr; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 6px; }
.pane__list li span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pane__list small { display: block; font-weight: 400; color: #8a8a8a; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.pane__list li.on { background: #9B2C2C; color: #fff; } .pane__list li.on small { color: rgba(255, 255, 255, .8); }
.pane__list li.on .no { background: rgba(255, 255, 255, .22); color: #fff; }
.pane__lab { font-weight: 700; margin-top: 2px !important; }
.pane__cite { font-family: "Times New Roman", Times, serif; font-size: 14px; background: #fff; border: 1px solid #e2e2e2; border-radius: 7px; padding: 6px 9px; }
.pane__opt { display: flex; align-items: center; gap: 7px; color: #444; }
.tick { width: 14px; height: 14px; border-radius: 4px; background: #9B2C2C; position: relative; flex: none; }
.tick::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 3.5px; height: 7.5px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
/* the Moot Madrid memorandum (Spanish page): footnotes at the foot of the page, the case's long record labels */
.doc__page--notes { position: relative; }
.doc__notes { margin-top: 22px; }
.doc__notes .fn__note { font-size: 11.5px; margin: 0 0 3px; }
.fn__note.is-new, sup.is-new { background: #f3d77a; border-radius: 2px; }
.fn__note.is-new { box-shadow: 0 0 0 2px rgba(243, 215, 122, .45); }
.pane--long .pane__list li { grid-template-columns: 1fr; gap: 3px; padding: 6px 7px; }
.pane--long .pane__list .no { font-size: 10.5px; }
.pane--long .pane__list small { display: none; }
.pane__btn { margin-top: auto !important; text-align: center; background: #9B2C2C; color: #fff; font-weight: 600; border-radius: 7px; padding: 7px; }
.idxcard { position: absolute; left: -38px; bottom: 0; width: 450px; z-index: 2; text-align: left; }   /* over the page's empty foot, clear of the pane */
.setfor { position: relative; z-index: 1; margin: 6px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; color: var(--muted); font-family: var(--serif); font-size: 17px; font-style: italic; }
.setfor__lab { font-family: var(--sans); font-style: normal; font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); align-self: center; }

/* paper specimens */
.page { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 22px 26px; box-shadow: var(--shadow); font-family: var(--serif); font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.page__title { font-family: var(--serif); font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12.5px; margin: 0 0 10px; text-align: center; }
.page__title--sm { margin-top: 16px; }
.page__title--sm:first-child { margin-top: 0; }
.idx { width: 100%; border-collapse: collapse; font-family: var(--serif); font-size: 13.5px; line-height: 1.4; }
.idx th { text-align: left; font-family: var(--sans); font-size: 11.5px; font-weight: 650; color: var(--muted); border-bottom: 1px solid var(--rule-strong); padding: 4px 8px 5px 0; }
.idx td { border-bottom: 1px solid var(--rule); padding: 6px 10px 6px 0; vertical-align: top; }
.idx td:last-child { white-space: nowrap; padding-right: 0; }
.idx .sec td { font-family: var(--sans); font-weight: 650; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); border-bottom: 0; padding-top: 12px; white-space: normal; }
.idx--citedfirst td:first-child { white-space: nowrap; padding-right: 14px; font-weight: 600; }
.idx--citedfirst td:nth-child(2):not(:last-child) { white-space: normal; }
.idx--citedfirst tr td:only-child, .idx--citedfirst td:nth-child(2):last-child { white-space: normal; }
.idx .num { font-family: var(--mono); font-size: 12px; font-weight: 650; color: var(--accent); white-space: nowrap; }
.idx .lnk { color: var(--accent); font-family: var(--sans); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.spec-doc { width: 100%; max-width: 480px; }
.spec-doc .para { text-align: left; }
.fn__body { margin: 0 0 16px; }
.fn__rule { width: 34%; border-top: 1px solid var(--rule-strong); margin-bottom: 8px; }
.fn__rule--gap { margin-top: 18px; }
.fn__note { margin: 0 0 4px; font-size: 12.5px; line-height: 1.45; }

/* the competition switcher */
.comps { padding: 96px 0 40px; }
/* the twelve competitions as an even grid — 6 + 6, then 4, 3, 2 a row (2026-10-11, Leo: "make the tournaments better centered") */
/* equal pills, a full row of --n, the last row centred (13 competitions since 16 Oct 2026: 7 + 6) */
.tabs { --n: 7; --g: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g); margin: 6px 0 30px; }
.tabs button { flex: 0 0 calc((100% - (var(--n) - 1) * var(--g)) / var(--n)); min-width: 0; font: 600 15px var(--sans); color: var(--muted); background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--rule-strong); padding: 10px 12px; border-radius: 999px; cursor: pointer; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1179px) { .tabs { --n: 5; } }
@media (max-width: 1000px) { .tabs { --n: 4; } }
@media (max-width: 700px) { .tabs { --n: 3; } }
@media (max-width: 480px) { .tabs { --n: 2; --g: 8px; } }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding: 34px; background: var(--surface); border: 1px solid var(--rule); border-radius: 24px; }
.panel + .panel { margin-top: 18px; }   /* without script: all seven, one after another */
.panel[hidden] { display: none; }
.panel h3 { font-size: 27px; margin: 0 0 4px; }
.where { display: block; color: var(--faint); font-size: 14px; margin: 2px 0 0; }
.facts { margin: 20px 0 0; display: grid; grid-template-columns: 110px 1fr; }
.facts dt, .facts dd { padding: 10px 0; border-top: 1px solid var(--rule); margin: 0; }
.facts dt { font-size: 12.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 13px; }
.facts dd { font-size: 15.5px; }
.due { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--accent-tint); font-size: 15px; }

/* sky plates under specimens */
.plate { position: relative; display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 22px; background: var(--plate); min-height: 300px; overflow: hidden; }
.plate--dawn { background: var(--plate-dawn); }
.plate--sm { min-height: 250px; padding: 26px; }
.spec { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); width: 100%; max-width: 470px; }

/* the app, in real screens (build/scripts/moot-shots.sh) */
.shots-sec { padding: 80px 0 20px; text-align: center; }
.shots-sec .sub { margin-left: auto; margin-right: auto; }
.shots__tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 26px 0 22px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.shots__tabs button { font: inherit; font-size: 15px; border: 0; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.shots__tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.shots__tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shot { margin: 0; }
.shots-sec [hidden] { display: none !important; }
.plate--shot { padding: clamp(14px, 3.4vw, 44px); min-height: 0; }
.shot__img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 30px 60px -24px rgba(20, 24, 60, .55), 0 0 0 1px rgba(0, 0, 0, .06); }
.shot figcaption { color: var(--muted); font-size: 16.5px; max-width: 760px; margin: 18px auto 0; }
.shots__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 46px; text-align: left; }
.shots__pair .plate { min-height: clamp(300px, 34vw, 430px); }
.dlg { display: block; max-width: 100%; height: auto; background: #ECECEC; border-radius: 14px;
       box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 22px 44px -20px rgba(20, 24, 60, .5), 0 0 0 1px rgba(0, 0, 0, .07); }
.dlg--splash { background: transparent; border-radius: 16px; }
.dlg--ai { width: 260px; } .dlg--new { width: 330px; } .dlg--filing { width: min(100%, 470px); } .dlg--splash { width: min(100%, 520px); }

/* feature rows */
.rows { padding-top: 70px; padding-bottom: 30px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding: 34px 0; }
.row--flip .row__text { order: 2; }
.row__text h3 { font-size: clamp(25px, 2.8vw, 32px); }
.row__text p:not(.eyebrow) { color: var(--muted); margin: 0; font-size: 17.5px; }
.list { padding: 8px 0; font-size: 14.5px; }
.list__row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 8px 18px; border-bottom: 1px solid var(--rule); }
.list__row:last-child { border-bottom: 0; }
.list__head { font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.list__row span:last-child { color: var(--faint); font-size: 13.5px; white-space: nowrap; }
.no { font-family: var(--mono); font-size: 12px; font-weight: 650; color: var(--accent); background: var(--accent-tint); border-radius: 5px; padding: 1px 6px; justify-self: start; white-space: nowrap; }
.no.po { color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--rule-strong); }
.fn { font-family: var(--serif); font-size: 15px; line-height: 1.6; }

/* the three rules around the writing */
.trio-sec { padding: 70px 0 40px; }
.trio__h { text-align: center; margin-bottom: 36px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tri { margin: 0; }
.trio .plate { min-height: 360px; }
.tri h3 { font-size: 21px; margin: 22px 0 8px; }
.tri figcaption p { color: var(--muted); margin: 0; font-size: 16px; }
.alert { max-width: 330px; text-align: center; font-size: 13.5px; padding: 22px 22px 16px; border-radius: 14px; }
.alert__title { font-weight: 650; font-size: 14.5px; margin: 0 0 6px; }
.alert__text { color: var(--muted); margin: 0 0 14px; }
.alert__text--left { text-align: left; }
.alert__btns { margin: 0; }
.alert__btns span { display: inline-block; min-width: 88px; background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 5px 12px; font-weight: 600; }
.langs { max-width: 250px; padding: 14px 0 6px; }
.langs__title { margin: 0 18px 8px; font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.langs__list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.langs__list li { padding: 6px 18px; border-top: 1px solid var(--rule); }
.langs__list li.is-on { color: var(--accent); font-weight: 650; background: var(--accent-tint); }
.langs__list li.is-on::after { content: " ✓"; }

/* the season: a timeline from September to June, the table behind it */
.season-sec { padding: 80px 0 60px; }
.gantt { margin: 8px 0 18px; padding: 26px 28px 34px; background: var(--surface); border: 1px solid var(--rule); border-radius: 24px; }
.g-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }
.g-legend span { display: inline-flex; align-items: center; gap: 8px; }
.g-grid { position: relative; display: grid; grid-template-columns: 150px 1fr; }
.g-months { grid-column: 2; position: relative; height: 22px; font-size: 12px; color: var(--faint); font-weight: 600; letter-spacing: .03em; }
.g-months span { position: absolute; top: 0; padding-left: 6px; white-space: nowrap; }
.g-name { grid-column: 1; display: flex; align-items: center; font-family: var(--serif); font-size: 16px; font-weight: 600; border-top: 1px solid var(--rule); min-height: 46px; padding-right: 10px; }
.g-track { grid-column: 2; position: relative; border-top: 1px solid var(--rule); min-height: 46px; }
.g-lines { position: absolute; left: 150px; right: 0; top: 22px; bottom: 0; pointer-events: none; }
.g-lines i { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--rule); }
.g-bar, .g-win, .g-dot, .g-due, .g-note { position: absolute; top: 50%; transform: translateY(-50%); }
.g-bar { height: 12px; border-radius: 6px; background: var(--ink); min-width: 6px; }
.g-win { height: 12px; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--rule-strong) 0 3px, transparent 3px 7px); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.g-win--due { background: repeating-linear-gradient(135deg, var(--accent-tint) 0 3px, transparent 3px 7px); box-shadow: inset 0 0 0 1px var(--accent); }
.g-dot { width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.g-due { width: 13px; height: 13px; margin-left: -6.5px; background: var(--accent); transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.g-due b { position: absolute; left: 50%; top: 50%; transform: rotate(-45deg) translate(-50%, 13px); transform-origin: 0 0; font: 600 10.5px var(--sans); color: var(--accent); white-space: nowrap; }
.g-note { font-size: 12.5px; color: var(--faint); font-style: italic; white-space: nowrap; }
.g-now { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--accent); z-index: 1; pointer-events: none; }
.g-now span { position: absolute; bottom: -20px; left: -2px; transform: translateX(-50%); font: 650 11px var(--sans); color: var(--accent); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.g-legend .g-dot, .g-legend .g-due, .g-legend .g-bar, .g-legend .g-win { position: static; transform: none; margin: 0; display: inline-block; }
.g-legend .g-due { transform: rotate(45deg); width: 10px; height: 10px; }
.g-legend .g-bar, .g-legend .g-win { width: 26px; }
.season-table summary { cursor: pointer; font-weight: 600; color: var(--accent); margin: 6px 0 14px; }
.tablewrap { overflow-x: auto; }
.comp { width: 100%; border-collapse: collapse; font-size: 15px; }
.comp th { text-align: left; font-size: 12.5px; font-weight: 650; color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; padding: 0 16px 10px 0; border-bottom: 1px solid var(--rule-strong); }
.comp td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 14.5px; }
.comp td:first-child { width: 22%; }
.comp b { font-family: var(--serif); font-size: 17px; font-weight: 650; }

/* two columns: heading left, hairline list right */
.split-sec { padding: 80px 0; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.split__head { position: sticky; top: 96px; }
.how { margin: 0; }
.how dt { font-family: var(--serif); font-size: 21px; font-weight: 600; padding-top: 20px; border-top: 1px solid var(--rule); }
.how dt:first-child { border-top: 0; padding-top: 0; }
.how dd { margin: 6px 0 20px; color: var(--muted); }
.faq dl { margin: 0; }
.faq dt { font-weight: 650; font-size: 17.5px; padding-top: 18px; border-top: 1px solid var(--rule); }
.faq dt:first-child { border-top: 0; padding-top: 0; }
.faq dd { margin: 6px 0 18px; color: var(--muted); }

/* apply: the form on the sky */
.apply { position: relative; padding: 90px 0 80px; }
.apply__sky { position: absolute; inset: 0 clamp(10px, 2vw, 24px); border-radius: clamp(18px, 3vw, 34px); background: var(--sky); }
.apply__in { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.apply__text { color: var(--ink); padding-top: 8px; }
.apply__text .eyebrow { color: var(--ink); opacity: .72; }
.apply__text .sub { color: color-mix(in srgb, var(--ink) 84%, transparent); }
.gets { margin: 28px 0 0; padding: 18px 22px; border-radius: 16px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px); color: #1B1A17; }
.gets dt { font-weight: 650; font-size: 15.5px; padding-top: 12px; border-top: 1px solid rgba(27, 26, 23, .12); }
.gets dt:first-child { border-top: 0; padding-top: 0; }
.gets dd { margin: 2px 0 12px; color: #6B6558; font-size: 15px; }
.gets dd:last-child { margin-bottom: 0; }
.form { display: grid; gap: 16px; background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: 0 30px 60px -30px rgba(20, 30, 80, .45), 0 0 0 1px rgba(27, 26, 23, .06); }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 9px; padding: 10px 12px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent-tint); border-color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.narrowfield input { max-width: 120px; }
.opt { color: var(--faint); font-weight: 400; font-size: 12.5px; margin-left: 4px; }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; color: var(--muted); }
.form label.check input { width: auto; margin-top: 3px; accent-color: var(--accent); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { margin: 0; font-size: 13.5px; color: var(--muted); }
.submit { display: flex; align-items: center; gap: 14px; margin: 0; flex-wrap: wrap; }
.status { font-size: 14.5px; color: var(--muted); }
.status.ok { color: #2f7d4f; } .status.err { color: var(--accent); }

/* closing line */
.cta { padding: 40px 0 110px; text-align: center; }
.cta h2 { font-size: clamp(30px, 4.4vw, 50px); max-width: 22ch; margin: 0 auto; letter-spacing: -0.02em; line-height: 1.1; }

.foot { border-top: 1px solid var(--rule); padding: 26px 0; font-size: 14px; color: var(--muted); }
.foot__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* tablets */
/* the team page (/team/, /fr/equipe/, /es/equipo/): one researcher, one file, the whole team cites */
.how__team { margin-top: 18px; font-size: 16px; }
.how__team a { color: var(--accent); text-decoration: none; font-weight: 600; }
.how__team a:hover { text-decoration: underline; }
.team .hero h1 { max-width: 22ch; }
.team-flow { padding: 40px 0 10px; }
.plate--flow { min-height: 0; padding: clamp(28px, 5vw, 56px); }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 28px; align-items: center; width: 100%; max-width: 980px; }
.flow__from, .flow__to li { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 18px; font-weight: 600; text-align: center; }
.flow__from { justify-self: end; min-width: 180px; position: relative; }
.flow__file { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; max-width: 300px; background: var(--surface); border-radius: 14px;
              box-shadow: var(--shadow); padding: 18px 22px; font-size: 14px; color: var(--muted); }
.flow__file b { color: var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.flow__zip { width: 34px; height: 42px; border-radius: 5px; background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px var(--accent); position: relative; margin-bottom: 6px; }
.flow__zip::after { content: ""; position: absolute; left: 50%; top: 6px; bottom: 10px; width: 4px; margin-left: -2px;
                    background: repeating-linear-gradient(180deg, var(--accent) 0 3px, transparent 3px 6px); }
.flow__file::before, .flow__file::after { content: ""; position: absolute; top: 50%; width: 28px; height: 1.5px; background: var(--rule-strong); }
.flow__file::before { right: 100%; } .flow__file::after { left: 100%; }
.flow__to { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; justify-self: start; min-width: 190px; }
.flow__to li { font-weight: 500; font-size: 15px; }
.team-roles, .team-steps, .team-know { padding: 60px 0 10px; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.role { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 24px 26px; }
.role p { color: var(--muted); margin: 0; }
.why { margin-top: 26px; padding: 22px 26px; border-left: 3px solid var(--accent); background: var(--accent-tint); border-radius: 0 14px 14px 0; max-width: 820px; }
.why h3 { font-size: 20px; margin-bottom: 6px; } .why p { margin: 0; }
.steps { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: st; display: grid; gap: 0; max-width: 860px; }
.step { counter-increment: st; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--rule); }
.step:first-child { border-top: 0; }
.step::before { content: counter(st); font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--accent); width: 44px; height: 44px; border-radius: 50%;
                display: grid; place-items: center; background: var(--accent-tint); }
.step h3 { font-size: 21px; margin: 6px 0 6px; } .step p { margin: 0; color: var(--muted); }
.step .menus, .role .menus { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.step .menu, .role .menu { font-family: var(--mono); font-size: 12.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--rule);
              border-radius: 8px; padding: 6px 10px; overflow-wrap: anywhere; }
.know { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 10px 0 0; }
.know dt { font-family: var(--serif); font-size: 19px; font-weight: 600; padding-top: 18px; border-top: 1px solid var(--rule); }
.know dd { margin: 6px 0 18px; color: var(--muted); }
/* the guide (/guide/, /fr/guide/, /es/guia/): steps with the app's screens and a table of contents */
.guide__in { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 90px; font-size: 14.5px; }
.toc__h { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; color: var(--muted); }
.toc a { color: var(--ink); text-decoration: none; } .toc a:hover { color: var(--accent); }
.guide .steps { max-width: none; }
.step { scroll-margin-top: 90px; }
.plate--step { margin-top: 16px; }
.plate--step.plate--sm { min-height: 0; padding: 26px; }
.roles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.role__more { margin: 12px 0 0; } .role__more a { color: var(--accent); font-weight: 600; text-decoration: none; }
@media (max-width: 860px) {
  .guide__in { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; }
  .roles--3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; justify-items: center; }
  .flow__from, .flow__to { justify-self: center; }
  .flow__file::before, .flow__file::after { left: 50%; right: auto; width: 1.5px; height: 22px; }
  .flow__file::before { top: auto; bottom: 100%; } .flow__file::after { top: 100%; }
  .roles, .know { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .nav a:not(.nav__cta) { display: none; }
  .nav a.nav__guide { display: inline; font-size: 14px; }
  .idxcard { right: 0; width: 420px; }
  .win__body { grid-template-columns: minmax(0, 1fr) 260px; }
  .doc { padding: 20px 22px 0; } .doc__page { padding: 34px 36px 0; }
  .panel, .row, .split, .apply__in { grid-template-columns: 1fr; gap: 32px; }
  .row--flip .row__text { order: 0; }
  .split__head { position: static; }
  .trio { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .shots__pair { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .trio .plate, .shots__pair .plate { min-height: 0; }
}
/* phones: the timeline would be too narrow — the stacked table instead (moot.js leaves #gantt hidden below 700px) */
@media (max-width: 700px) {
  .hero { padding-top: 44px; }
  .stage { padding-top: 28px; }
  .stage__in { padding-bottom: 0; }
  .win__body { grid-template-columns: 1fr; height: auto; }
  .pane { display: none; }
  .doc { padding: 14px 14px 0; } .doc__page { padding: 22px 20px 6px; font-size: 14px; height: auto; }
  .idxcard { position: relative; right: auto; width: auto; margin: -18px 10px 0; }
  .panel { padding: 22px 18px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; } .facts dd { border-top: 0; padding-top: 4px; }
  .season thead { display: none; }
  .season tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .season td { display: block; width: auto !important; padding: 2px 0; border: 0; }
  .season td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 650; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.04em; margin-top: 8px; }
  .apply { padding: 56px 0 48px; }
  .form { padding: 20px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .two { grid-template-columns: 1fr; }
  .page { padding: 18px; }
  .idx { font-size: 12.5px; }
  .idx td, .idx--citedfirst td:first-child { white-space: normal; }
  .langs-menu a { padding: 3px 4px; }
  .nav { gap: 10px; }
  .list__row { grid-template-columns: 52px 1fr; } .list__row span:last-child { display: none; }
}

/* 2026-10-11 — where the team writes (Word on Mac/Windows, Word on the web, Google Docs) and the oral rounds (the tablets'
   hearing mode under the Peace Palace, fading into the paper — no hard edges) */
.where-sec { padding: 70px 0 40px; }
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.place { margin: 0; }
.place__shot { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--rule), var(--shadow); }
.place__shot .mshot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right top; transform: scale(1.5); transform-origin: right top; }
.place figcaption h3 { margin: 14px 0 4px; font-size: 19px; }
.place figcaption p { margin: 0; color: var(--muted); font-size: 15px; }
.place .place__status { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent); }
.orals { position: relative; isolation: isolate; padding: 80px 0 60px; overflow: hidden; }
.orals__photo { position: absolute; top: 0; right: 0; width: min(66%, 1150px); height: 440px; object-fit: cover; object-position: 50% 42%; z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.1) 20%, rgba(0,0,0,.45) 40%, rgba(0,0,0,.85) 60%, #000 72%), linear-gradient(180deg, transparent 0%, rgba(0,0,0,.5) 14%, #000 30%, #000 55%, rgba(0,0,0,.4) 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.1) 20%, rgba(0,0,0,.45) 40%, rgba(0,0,0,.85) 60%, #000 72%), linear-gradient(180deg, transparent 0%, rgba(0,0,0,.5) 14%, #000 30%, #000 55%, rgba(0,0,0,.4) 80%, transparent 100%);
  mask-composite: intersect; }
.orals__veil { position: absolute; top: 0; left: 0; right: 0; height: 440px; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0, var(--paper) 30%, color-mix(in srgb, var(--paper) 55%, transparent) 46%, transparent 62%); }
.orals__head { max-width: 560px; min-height: 280px; }
.orals__pair { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 40px; align-items: start; margin-top: 10px; }
.orals figure { margin: 0; }
.orals figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.mshot--tab { display: block; width: 100%; height: auto; border-radius: 22px; padding: 12px; background: #16171a; box-sizing: border-box; box-shadow: var(--shadow); }
.mshot--tv { display: block; width: 100%; height: auto; border-radius: 10px; padding: 8px; background: #0b0b0c; box-sizing: border-box; box-shadow: var(--shadow); }
.orals__pts { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.orals__pts li { padding: 11px 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.orals__pts li b { color: var(--ink); }
.orals__note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.orals__more { margin: 12px 0 0; font-weight: 600; }
.orals__more a { color: var(--accent); }
@media (max-width: 900px) {
  .places { grid-template-columns: 1fr; }
  .orals { padding-top: 220px; }
  .orals__photo { width: 100%; height: 280px; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 55%, transparent 100%); }
  .orals__veil { height: 280px; background: linear-gradient(180deg, transparent 50%, var(--paper) 100%); }
  .orals__head { min-height: 0; }
  .orals__pair { grid-template-columns: 1fr; }
  .orals__tab { max-width: 420px; margin: 0 auto !important; }
}

/* 2026-10-11 — the site on several pages, like litarbi.app: every topic page opens with the same photo band (300 px, the
   words from the same top line, the picture fading into the paper — no hard edges); the home page leads to them */
.mhead { position: relative; isolation: isolate; min-height: 300px; overflow: hidden; }
.mhead__photo { position: absolute; top: 0; right: 0; width: min(66%, 1150px); height: 100%; object-fit: cover; z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.1) 20%, rgba(0,0,0,.45) 40%, rgba(0,0,0,.85) 60%, #000 72%), linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 12%, #000 30%, #000 58%, rgba(0,0,0,.4) 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.1) 20%, rgba(0,0,0,.45) 40%, rgba(0,0,0,.85) 60%, #000 72%), linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 12%, #000 30%, #000 58%, rgba(0,0,0,.4) 82%, transparent 100%);
  mask-composite: intersect; }
.mhead__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--paper) 0, var(--paper) 28%, color-mix(in srgb, var(--paper) 55%, transparent) 44%, transparent 60%); }
.mhead__text { padding-top: 40px; padding-bottom: 12px; }
.mhead__text h1 { font-family: var(--serif); font-size: clamp(30px, 3.8vw, 46px); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 12px; max-width: 22ch; }
.mhead__text .sub { max-width: 40rem; margin-bottom: 0; }
.mhead + section { padding-top: 28px; }
.mhead + .orals { padding-top: 28px; }
.split--solo { grid-template-columns: 1fr !important; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.chapters { padding: 70px 0 30px; }
.chapters__h { text-align: center; margin-bottom: 30px; }
/* five chapters: three, then two centred under them (flex, not grid — a grid leaves the last row's hole on the right) */
.chaps { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 26px; }
.chap { display: flex; flex-direction: column; flex: 0 0 calc((100% - 52px) / 3); color: inherit; text-decoration: none; }
.chap:hover, .chap:hover span { text-decoration: none; }
.chap__img { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--plate); box-shadow: 0 0 0 1px var(--rule), var(--shadow); }
.chap__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .4s ease; }
.chap:hover .chap__img img { transform: scale(1.03); }
.chap__k { display: block; margin-top: 14px; font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.chap__t { display: block; margin-top: 4px; font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.chap__more { display: block; margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--muted); }   /* the row's "More" on one line */
.chap:hover .chap__more { color: var(--accent); }
@media (max-width: 900px) {
  .chap { flex-basis: calc((100% - 26px) / 2); }
  .mhead { min-height: 0; padding-top: 170px; }
  .mhead__photo { width: 100%; height: 230px; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 55%, transparent 100%); }
  .mhead__veil { background: linear-gradient(180deg, transparent 45%, var(--paper) 100%); height: 230px; bottom: auto; }
  .mhead__text { padding-top: 0; }
}
@media (max-width: 600px) { .chap { flex-basis: 100%; } }

/* 2026-10-11 (Leo: "Do the same for the moot site menu") — below 1180 px the topic links fold into a menu button (the
   longer languages had the links pressed against the name); the language switch and Apply always stay in the bar */
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; color: var(--ink); cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary:hover, .mnav[open] summary { background: var(--accent-tint); }
.mnav__panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 15rem; display: flex; flex-direction: column; padding: 8px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); z-index: 10; }
.mnav__panel a { padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; display: block; white-space: nowrap; }
.mnav__panel a:hover { background: var(--accent-tint); text-decoration: none; }
.mnav__panel a[aria-current] { color: var(--accent); font-weight: 650; }
@media (max-width: 1179px) {
  .nav > a:not(.nav__cta) { display: none !important; }
  .nav .langs-menu a { display: inline-block !important; }
  .mnav { display: block; }
}
.mnav__panel a { display: block !important; }   /* the older ≤1000 px rule hid every link in the bar, the menu's too */
@media (max-width: 480px) {
  .mark { font-size: 15px; }
  .nav { gap: 6px; }
  .nav .nav__cta { padding: 6px 11px; font-size: 14px; }
  .langs-menu { font-size: 12px; } .langs-menu a { padding: 3px 3px; }
  .mnav summary { width: 32px; }
}
@media (max-width: 380px) { .mark { font-size: 14px; } .nav .nav__cta { padding: 5px 9px; font-size: 13.5px; } .wrap { padding: 0 12px; } }
