/* Famulus News: pane-paging landing page. Visual system of the 2026 landings (Oxford blue, gold, sandstone).
   Desktop: a list rail and a stage side by side. Phone and tablet portrait: a swipeable card strip; a card opens as a sheet. */

:root {
  --oxford: #002147;
  --oxford-deep: #00152e;
  --oxford-soft: #2c4a6e;
  --ink: #1b2733;
  --muted: #5c5348;
  --gold: #c4a15a;
  --gold-deep: #8c6d2a;
  --gold-pale: #efe3c4;
  --sand: #f6f1e7;
  --sand-deep: #ece3d2;
  --paper: #fffdf8;
  --line: #e3d9c6;
  --line-strong: #cdbfa4;
  --open: #9a4f3c;
  --serif: "Source Serif 4", "Palatino Linotype", Palatino, Georgia, serif;
  --display: "Fraunces", "Source Serif 4", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --p-trust: #2d6a4f;
  --p-editions: #7a4a6a;
  --a-general: #002147;
  --a-scholar: #8c6d2a;
  --a-scientist: #3f7686;
  --a-admin: #5c5348;
  --p-platform: #002147;
  --p-reference: #8c6d2a;
  --p-normalization: #3f7686;
  --p-lwgrammar: #9a4f3c;
  --p-docs_editions: #5f6b3a;
  --mast-h: 3.4rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(1200px 480px at 50% -180px, rgba(196, 161, 90, .18), transparent 60%), var(--sand);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.55;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
body.sheet-open { overflow: hidden; }
body.sheet-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 21, 46, .55); z-index: 55; }
a { color: var(--oxford); text-underline-offset: .18em; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-family: var(--mono); font-size: .88em; background: var(--sand-deep); padding: .05em .3em; border-radius: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--oxford); color: #fff; padding: .4rem .7rem; z-index: 90; }
.skip:focus { top: .6rem; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }

/* ------------------------------------------------------------------ mast */
.mast { position: sticky; top: 0; z-index: 30; background: var(--oxford-deep); color: #f4efe4; border-bottom: 3px solid var(--gold); padding-top: env(safe-area-inset-top); }
.mast-in { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; min-height: var(--mast-h); display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.brand { font-family: var(--display); font-weight: 560; font-size: 1.35rem; letter-spacing: -.01em; color: #f4efe4; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--gold); font-style: italic; font-weight: 460; }
.langs { display: flex; gap: .2rem; }
.langs button { min-width: 2.4rem; height: 2.4rem; padding: 0 .45rem; background: transparent; border: 1px solid rgba(244, 239, 228, .28); color: #f4efe4; font-family: var(--sans); font-weight: 650; font-size: .8rem; letter-spacing: .06em; border-radius: 3px; transition: background .15s, color .15s, border-color .15s; }
.langs button:hover { border-color: var(--gold); }
.langs button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--oxford-deep); }

/* ------------------------------------------------------------------ hero */
.hero { padding-top: 1.6rem; padding-bottom: 1.1rem; display: grid; gap: .5rem 3rem; grid-template-columns: 1fr; align-items: end; }
.kicker { margin: 0; font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); font-weight: 650; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 560; font-size: clamp(2rem, 6.4vw, 3.5rem); letter-spacing: -.03em; line-height: 1; color: var(--oxford); }
.hero h1 em { font-style: italic; font-weight: 460; color: var(--gold-deep); }
.hero .lead { margin: .2rem 0 0; font-size: 1.04rem; line-height: 1.45; max-width: 40rem; color: var(--ink); }

/* ------------------------------------------------------------------ deck */
.deck { display: grid; grid-template-columns: 1fr; gap: 1.1rem; padding-bottom: 1.4rem; }
.filters { display: flex; gap: .4rem; overflow-x: auto; padding: .1rem .1rem .5rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: 0 0 auto; min-height: 2.75rem; padding: 0 .95rem; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--sans); font-size: .86rem; font-weight: 560; color: var(--oxford); white-space: nowrap; transition: background .15s, color .15s; }
.filters button .c { margin-left: .4rem; opacity: .6; font-weight: 400; }
.filters button[aria-pressed="true"] { background: var(--oxford); border-color: var(--oxford); color: #fff; }
.filters button[aria-pressed="true"] .c { color: var(--gold); opacity: 1; }

.cards { list-style: none; margin: 0; padding: 0; display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .3rem 1.25rem 1rem; margin: 0 -1.25rem; scroll-padding: 0 1.25rem; -webkit-overflow-scrolling: touch; }
.cards > li { flex: 0 0 min(82%, 21rem); scroll-snap-align: start; display: flex; }
.card { width: 100%; text-align: left; display: flex; flex-direction: column; gap: .35rem; padding: .95rem 1rem .9rem; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--accent, var(--oxford)); border-radius: 2px; box-shadow: 0 8px 22px rgba(0, 21, 46, .06); transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; position: relative; min-height: 8.2rem; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 21, 46, .12); }
.card .k { display: flex; align-items: center; gap: .5rem; font-family: var(--sans); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--accent, var(--oxford)); font-weight: 650; }
.card .n { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0; color: var(--gold-deep); font-weight: 460; font-variant-numeric: lining-nums; }
.card h3 { margin: 0; font-family: var(--display); font-weight: 560; font-size: 1.12rem; line-height: 1.2; color: var(--oxford); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .m { margin-top: auto; display: flex; align-items: center; gap: .5rem; font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.card .m b { font-family: var(--display); font-size: 1.15rem; color: var(--oxford); font-weight: 560; font-variant-numeric: lining-nums; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.dot.live { background: #4a7a52; }
.dot.progress { background: var(--gold); }
.dot.prepared { background: var(--oxford-soft); }
.dot.alpha { background: #7a4a6a; }
.dot.next { background: transparent; border: 2px solid var(--gold-deep); }
.card[aria-current] { border-color: var(--line-strong); border-left-color: var(--gold); box-shadow: 0 14px 30px rgba(0, 21, 46, .13); }

/* ------------------------------------------------------------------ stage (a sheet on narrow screens) */
.stage { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; transform: translateY(102%); visibility: hidden; transition: transform .32s var(--ease), visibility 0s .32s; padding-top: env(safe-area-inset-top); }
.stage.open { transform: none; visibility: visible; transition: transform .32s var(--ease), visibility 0s; }
.st-top { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem .6rem; border-bottom: 1px solid var(--line); min-height: 3.4rem; }
.st-close { width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-strong); background: var(--paper); border-radius: 50%; font-size: 1.4rem; line-height: 1; color: var(--oxford); flex: 0 0 auto; }
.st-kick { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--sans); font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 650; color: var(--accent, var(--oxford)); }
.st-kick span { color: var(--muted); font-weight: 400; letter-spacing: .03em; }
.badge { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--sans); font-size: .74rem; font-weight: 560; color: var(--oxford); background: var(--sand); white-space: nowrap; }
.st-prog { flex: none; margin-left: auto; font-family: var(--display); font-size: 1.05rem; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.st-bar { height: 3px; background: var(--sand-deep); }
.st-bar i { display: block; height: 100%; background: var(--gold); transition: width .35s var(--ease); }
.st-body { overflow-y: auto; overscroll-behavior: contain; padding: 1.2rem 1.15rem 1.4rem; position: relative; -webkit-overflow-scrolling: touch; }
.st-body > * { position: relative; }
.st-num { position: absolute; right: 1rem; top: -.3rem; font-family: var(--display); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; font-weight: 460; color: var(--gold); opacity: .16; pointer-events: none; user-select: none; font-variant-numeric: lining-nums; }
.st-body h2 { margin: 0 0 .8rem; font-family: var(--display); font-weight: 560; font-size: clamp(1.55rem, 5.4vw, 2.3rem); line-height: 1.1; letter-spacing: -.02em; color: var(--oxford); max-width: 36rem; }
.st-metric { display: inline-flex; align-items: baseline; gap: .6rem; margin: 0 0 1rem; padding: .35rem .9rem .4rem; border-left: 4px solid var(--gold); background: linear-gradient(90deg, rgba(196, 161, 90, .14), transparent); }
.st-metric b { font-family: var(--display); font-size: 2.1rem; line-height: 1; color: var(--oxford); font-weight: 560; font-variant-numeric: lining-nums; }
.st-metric span { font-family: var(--sans); font-size: .86rem; color: var(--muted); line-height: 1.25; max-width: 14rem; }
.st-text { max-width: 38rem; }
.st-text p { margin: 0 0 .75rem; font-size: 1.02rem; line-height: 1.55; }
.st-spec { margin-top: 1.1rem; }
.st-foot { border-top: 1px solid var(--line); padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); display: grid; gap: .6rem; background: var(--paper); }
.links { display: flex; flex-wrap: wrap; gap: .45rem; }
.links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; background: var(--oxford); color: #fff; text-decoration: none; font-family: var(--sans); font-weight: 650; font-size: .88rem; border-bottom: 3px solid var(--gold); transition: background .15s; }
.links a:hover { background: var(--oxford-soft); color: #fff; }
.links a .kd { color: var(--gold); margin-right: .45rem; font-weight: 560; }
.links a.quiet { background: transparent; color: var(--oxford); border: 1px solid var(--line-strong); border-bottom: 3px solid var(--gold); }
.nav { display: flex; gap: .5rem; }
.nav button { flex: 1 1 0; min-height: 3rem; border: 1px solid var(--line-strong); background: var(--sand); color: var(--oxford); font-family: var(--sans); font-weight: 650; font-size: .92rem; border-radius: 2px; transition: background .15s; }
.nav button:hover { background: var(--gold-pale); }
.nav button.copy { flex: 0 0 auto; padding: 0 1rem; }
.nav button:disabled { opacity: .4; cursor: default; }
.stage.enter-next .st-body > * { animation: in-next .42s var(--ease) both; }
.stage.enter-prev .st-body > * { animation: in-prev .42s var(--ease) both; }
.stage .st-body > :nth-child(2) { animation-delay: .04s; }
.stage .st-body > :nth-child(3) { animation-delay: .08s; }
.stage .st-body > :nth-child(4) { animation-delay: .12s; }
.stage .st-body > :nth-child(5) { animation-delay: .16s; }
@keyframes in-next { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes in-prev { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.toast { position: fixed; left: 50%; bottom: 5.5rem; transform: translate(-50%, 1rem); background: var(--oxford-deep); color: #fff; padding: .55rem 1.1rem; border-bottom: 3px solid var(--gold); font-family: var(--sans); font-size: .88rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ specimens */
.spec { background: var(--sand); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: .9rem 1rem 1rem; max-width: 40rem; }
.spec h4 { margin: 0 0 .6rem; font-family: var(--sans); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--oxford); font-weight: 650; }
.spec .note { margin: .7rem 0 0; font-family: var(--sans); font-size: .8rem; color: var(--muted); line-height: 1.4; }
.seg-ctl { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; background: var(--paper); margin-bottom: .8rem; }
.seg-ctl button { min-height: 2.75rem; padding: 0 .85rem; border: 0; border-right: 1px solid var(--line); background: transparent; font-family: var(--sans); font-size: .84rem; font-weight: 560; color: var(--oxford); }
.seg-ctl button:last-child { border-right: 0; }
.seg-ctl button[aria-pressed="true"] { background: var(--oxford); color: #fff; }

/* normal form */
.nk-text { font-family: var(--display); font-size: 1.28rem; line-height: 2.1; color: var(--ink); padding: .2rem 0 .1rem; }
.nk-ex { cursor: pointer; border-bottom: 2px solid var(--oxford); transition: background .15s; outline-offset: 3px; }
.nk-ex.offen { border-bottom: 2px dashed var(--open); }
.nk-ex.hintergrund { border-bottom: 2px dashed var(--gold-deep); }
.nk-ex:hover, .nk-ex.on { background: rgba(196, 161, 90, .28); }
.nk-ex.nrm { border-bottom: 0; background: rgba(0, 33, 71, .07); padding: 0 .2em; border-radius: 3px; }
.nk-ex.nrm.offen { background: rgba(154, 79, 60, .1); color: var(--open); }
.nk-il { font-family: var(--sans); font-size: .62em; font-style: italic; color: var(--open); margin: 0 .25em; }
.nk-card { margin-top: .7rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--oxford); padding: .6rem .8rem .7rem; font-family: var(--sans); font-size: .9rem; line-height: 1.45; min-height: 5.4rem; }
.nk-card .hint { color: var(--muted); font-style: italic; }
.nk-card b.ph { font-family: var(--display); font-size: 1.05rem; color: var(--oxford); font-weight: 560; margin-right: .4rem; }
.chip { display: inline-block; padding: 0 .55rem; margin: .1rem .25rem .1rem 0; border-radius: 999px; font-size: .76rem; background: var(--sand-deep); color: var(--ink); white-space: nowrap; }
.chip.fest { background: #dbe6f2; color: var(--oxford); }
.chip.offen { background: #f1dcd5; color: var(--open); }
.chip.hintergrund { background: var(--gold-pale); color: var(--gold-deep); }
.nk-card .nf { margin: .35rem 0 .15rem; font-family: var(--display); font-size: 1rem; color: var(--oxford); }
.nk-card .nf.offen { color: var(--open); }

/* fr: address */
.fr-addr { display: flex; flex-wrap: wrap; align-items: flex-start; font-family: var(--mono); font-size: clamp(.95rem, 4.2vw, 1.35rem); background: var(--oxford-deep); color: #f4efe4; padding: 1rem 1.1rem .8rem; border-bottom: 3px solid var(--gold); min-height: 5.6rem; }
.fr-addr .seg { display: flex; flex-direction: column; padding: 0 .1rem; position: relative; background: none; border: 0; color: inherit; font: inherit; text-align: left; animation: seg-in .4s var(--ease) both; }
.fr-addr .seg + .seg { margin-left: .7rem; }
.fr-addr .seg + .seg::before { content: "/"; position: absolute; left: -.62rem; top: 0; color: var(--gold); }
.fr-addr .seg.first + .seg::before { content: ""; }
.fr-addr .seg.first + .seg { margin-left: .15rem; }
.fr-addr .seg b { font-weight: 560; color: #fff; border-bottom: 2px solid var(--gold); padding-bottom: .12rem; white-space: nowrap; }
.fr-addr .seg i { font-family: var(--sans); font-style: normal; font-size: .64rem; letter-spacing: .04em; color: var(--gold); margin-top: .3rem; max-width: 7.5rem; line-height: 1.2; }
.fr-addr .seg.sel b { background: rgba(196, 161, 90, .25); }
@keyframes seg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* bars */
.bars { display: grid; gap: .55rem; }
.bar { display: grid; grid-template-columns: 1fr; gap: .15rem; }
.bar .nm { font-family: var(--sans); font-size: .78rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .nm small { color: var(--muted); margin-left: .4rem; }
.bar .tr { display: grid; grid-template-columns: 1fr 3rem; gap: .5rem; align-items: center; }
.bar .rail2 { position: relative; height: .9rem; background: var(--sand-deep); border-radius: 1px; overflow: hidden; }
.bar .rail2 i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); transition: width .55s var(--ease); }
.bar.first .rail2 i { background: var(--oxford); }
.bar .v { font-family: var(--display); font-size: .95rem; color: var(--oxford); text-align: right; font-variant-numeric: lining-nums tabular-nums; }

/* locus */
.locus-box { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: 0 .9rem 0 .5rem; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--sans); font-size: .84rem; color: var(--oxford); font-weight: 560; }
.switch .t { width: 2.3rem; height: 1.3rem; background: var(--line-strong); border-radius: 999px; position: relative; transition: background .2s; }
.switch .t::after { content: ""; position: absolute; top: .15rem; left: .15rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch[aria-checked="true"] .t { background: var(--oxford); }
.switch[aria-checked="true"] .t::after { transform: translateX(1rem); }
.locus-line { margin-top: .8rem; font-family: var(--mono); font-size: clamp(1rem, 4.4vw, 1.4rem); background: var(--oxford-deep); color: #f4efe4; padding: .9rem 1.1rem; border-bottom: 3px solid var(--gold); }
.locus-line em { font-style: normal; color: var(--gold); }

/* intake */
.intake { display: grid; gap: .6rem; }
.intake .row { display: grid; gap: .3rem; padding: .55rem .7rem; background: var(--paper); border: 1px solid var(--line); }
.intake .row b { font-family: var(--mono); font-size: .86rem; color: var(--oxford); }
.intake .steps { display: flex; flex-wrap: wrap; gap: .3rem; }
.intake .st { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--sans); font-size: .76rem; padding: .15rem .6rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); background: transparent; }
.intake .st::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; border: 2px solid var(--gold-deep); }
.intake .st.yes { color: var(--oxford); background: var(--gold-pale); border-color: var(--gold); }
.intake .st.yes::before { background: var(--oxford); border-color: var(--oxford); }
.intake .st.unk::before { border-style: dotted; }

/* ------------------------------------------------------------------ footer */
.srcs { padding-bottom: 2.4rem; }
.srcs details { font-family: var(--sans); font-size: .86rem; color: var(--muted); max-width: 44rem; }
.srcs summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; color: var(--oxford); font-weight: 560; }
.foot { background: var(--oxford-deep); color: #d9cfb8; font-family: var(--sans); font-size: .82rem; padding: 1.2rem 0 calc(1.2rem + env(safe-area-inset-bottom)); border-top: 3px solid var(--gold); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; }
.foot a { color: var(--gold); }

/* ------------------------------------------------------------------ wide screens: rail and stage side by side */
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding-top: 1.4rem; padding-bottom: .9rem; }
  .hero h1 { font-size: clamp(2.2rem, 3.6vw, 3rem); }
  .hero .lead { margin: 0; justify-self: end; font-size: .98rem; }
  .deck { grid-template-columns: minmax(19rem, 24rem) minmax(0, 1fr); gap: 1.4rem; height: clamp(34rem, calc(100dvh - 18.2rem), 56rem); padding-bottom: 1.4rem; }
  .rail { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
  .filters { flex-wrap: wrap; overflow: visible; padding-bottom: .7rem; }
  .filters button { min-height: 2.4rem; padding: 0 .8rem; font-size: .8rem; }
  .cards { flex-direction: column; overflow-y: auto; overflow-x: hidden; scroll-snap-type: none; margin: 0; padding: .2rem .5rem .6rem .1rem; scroll-padding: 0; }
  .cards > li { flex: 0 0 auto; }
  .card { min-height: 0; padding: .7rem .9rem .65rem; gap: .2rem; }
  .card h3 { font-size: 1.02rem; -webkit-line-clamp: 2; }
  .card .m { margin-top: .1rem; }
  .stage { position: relative; inset: auto; z-index: auto; transform: none; visibility: visible; border: 1px solid var(--line); border-top: 4px solid var(--accent, var(--oxford)); box-shadow: 0 18px 44px rgba(0, 21, 46, .09); min-height: 0; padding-top: 0; }
  .st-close { display: none; }
  .st-top { padding-left: 1.5rem; padding-right: 1.5rem; }
  .st-body { padding: 1.5rem 1.8rem 1.6rem; }
  .st-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: .7rem 1.5rem; }
  .nav button { flex: 0 0 auto; min-width: 5.6rem; min-height: 2.75rem; }
  .toast { bottom: 2rem; }
}
@media (min-width: 1280px) {
  .st-body { padding: 1.8rem 2.4rem; }
  .st-text p { font-size: 1.06rem; }
  .st-spec { margin-top: 1.4rem; }
}
/* low desktop windows: the page may scroll a little instead of squeezing the stage */
@media (min-width: 960px) and (max-height: 640px) { .deck { height: 34rem; } }

/* small phones */
@media (max-width: 480px) {
  .mast-in { padding: 0 .8rem; gap: .5rem; }
  .brand { font-size: 1.2rem; }
  .langs { gap: .15rem; }
  .langs button { min-width: 2.05rem; height: 2.75rem; padding: 0 .15rem; font-size: .76rem; letter-spacing: .03em; }
  .wrap { padding-left: 1rem; padding-right: 1rem; }
  .cards { padding-left: 1rem; padding-right: 1rem; margin: 0 -1rem; scroll-padding: 0 1rem; }
  .st-top { gap: .45rem; padding-left: .7rem; padding-right: .8rem; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .stage { inset: 0 8% 0 8%; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .cards > li { flex-basis: 19rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .mast, .filters, .nav, .st-close, .toast { display: none !important; }
  .stage { position: static; transform: none; visibility: visible; display: block; }
}

/* ------------------------------------------------------------------ navigation row of the masthead */
.mast-nav { border-top: 1px solid rgba(244, 239, 228, .14); }
.mast-nav-in { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; display: flex; gap: .2rem; }
.mast-nav a { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 1rem; color: rgba(244, 239, 228, .78); text-decoration: none; font-family: var(--sans); font-size: .88rem; font-weight: 560; letter-spacing: .02em; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.mast-nav a:hover { color: #fff; }
.mast-nav a[aria-current] { color: #fff; border-bottom-color: var(--gold); }
@media (max-width: 480px) { .mast-nav-in { padding: 0 .8rem; } .mast-nav a { padding: 0 .8rem; } }

/* ------------------------------------------------------------------ security specimen */
.sec-hint { margin: 0 0 .6rem; }
.sec-head { display: flex; align-items: center; gap: .9rem; margin: .1rem 0 .5rem; }
.sec-meter { display: flex; gap: .25rem; }
.sec-meter .pip { width: 1.7rem; height: .5rem; background: var(--sand-deep); border: 1px solid var(--line-strong); transition: background .25s; }
.sec-meter .pip.on { background: var(--p-trust); border-color: var(--p-trust); }
.sec-name { font-family: var(--display); font-size: 1.35rem; font-weight: 560; color: var(--oxford); }
.sec-rows { margin: 0; display: grid; grid-template-columns: 1fr; gap: .1rem; }
.sec-rows dt { font-family: var(--sans); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 650; color: var(--p-trust); margin-top: .5rem; }
.sec-rows dd { margin: 0; font-family: var(--sans); font-size: .95rem; line-height: 1.4; }

/* ------------------------------------------------------------------ guide page */
.guide { display: grid; gap: 1rem; padding-bottom: 2.4rem; }
.tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
.tab { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 3rem; padding: 0 1rem; background: var(--paper); border: 1px solid var(--line-strong); border-top: 4px solid var(--c, var(--oxford)); font-family: var(--sans); font-size: .95rem; font-weight: 650; color: var(--oxford); text-align: left; transition: background .15s, color .15s; }
.tab:nth-child(1) { --c: var(--a-general); }
.tab:nth-child(2) { --c: var(--a-scholar); }
.tab:nth-child(3) { --c: var(--a-scientist); }
.tab:nth-child(4) { --c: var(--a-admin); }
.tab .tc { font-weight: 400; font-size: .8rem; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--oxford); color: #fff; border-color: var(--oxford); border-top-color: var(--gold); }
.tab[aria-selected="true"] .tc { color: var(--gold); }
.panel { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent, var(--oxford)); padding: 1.2rem 1.1rem 1.6rem; box-shadow: 0 14px 34px rgba(0, 21, 46, .07); outline: none; }
.panel.swap { animation: in-next .4s var(--ease) both; }
.panel .intro { margin: 0 0 .8rem; font-family: var(--display); font-size: clamp(1.15rem, 3.4vw, 1.5rem); line-height: 1.3; color: var(--oxford); max-width: 46rem; }
.panel .admin-note { margin: 0 0 1rem; padding: .5rem .8rem; border-left: 4px solid var(--gold); background: var(--gold-pale); font-family: var(--sans); font-size: .88rem; max-width: 46rem; }
.panel h2 { margin: 1.2rem 0 .6rem; font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); font-weight: 650; }
.topic h3 { margin: 1.1rem 0 .5rem; font-family: var(--display); font-size: 1.12rem; font-weight: 560; color: var(--oxford); }
.start-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: 1fr; }
.gcards { display: grid; gap: .55rem; grid-template-columns: 1fr; }
.gcard { display: flex; gap: .8rem; align-items: flex-start; height: 100%; padding: .8rem .95rem .75rem; background: var(--sand); border: 1px solid var(--line); border-left: 4px solid var(--accent, var(--oxford)); color: var(--ink); text-decoration: none; transition: transform .16s var(--ease), box-shadow .16s, background .16s; }
.gcard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 21, 46, .1); background: #fff; }
.start-list .gcard { background: #fff; border-color: var(--line-strong); min-height: 6.4rem; }
.gnum { flex: none; min-width: 1.4rem; font-family: var(--display); font-size: 1.9rem; line-height: 1; color: var(--gold); font-weight: 460; opacity: .9; }
.gbody { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.gbody strong { font-family: var(--display); font-size: 1.04rem; font-weight: 560; color: var(--oxford); line-height: 1.2; }
.gsum { font-family: var(--sans); font-size: .9rem; line-height: 1.4; color: var(--ink); }
.gmeta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-top: .25rem; }
.gmeta .chip { margin: 0; }
.gmeta .go { margin-left: auto; font-family: var(--sans); font-size: .8rem; font-weight: 650; color: var(--oxford); }
@media (min-width: 600px) {
  .tabs { grid-template-columns: repeat(4, 1fr); }
  .start-list { grid-template-columns: repeat(3, 1fr); }
  .gcards { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 1.6rem 1.6rem 2rem; }
}
@media (min-width: 960px) {
  .gcards { grid-template-columns: repeat(3, 1fr); }
  .panel { padding: 1.9rem 2.2rem 2.4rem; }
}

/* ------------------------------------------------------------------ subscribe box (above the footer, on every page) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sub { width: 100%; padding-bottom: 2.2rem; }
.sub-form { max-width: 46rem; padding: 1.1rem 1.15rem 1rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); box-shadow: 0 10px 26px rgba(0, 21, 46, .06); }
.sub-form h2 { margin: 0 0 .7rem; font-family: var(--display); font-size: clamp(1.1rem, 3.2vw, 1.35rem); font-weight: 560; line-height: 1.25; color: var(--oxford); }
.sub-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.sub-row input[type="email"] { flex: 1 1 15rem; min-width: 0; min-height: 2.75rem; padding: 0 .85rem; font-family: var(--sans); font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 0; }
.sub-row input[type="email"]:focus { border-color: var(--oxford); outline: 3px solid var(--gold-pale); outline-offset: 0; }
.sub-row button { flex: 0 0 auto; min-height: 2.75rem; padding: 0 1.3rem; font-family: var(--sans); font-size: .95rem; font-weight: 650; color: #fff; background: var(--oxford); border: 0; border-bottom: 3px solid var(--gold); }
.sub-row button:hover { background: var(--oxford-soft); }
.sub-row button:disabled { opacity: .6; cursor: progress; }
.sub-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sub-note { margin: .6rem 0 0; font-family: var(--sans); font-size: .82rem; line-height: 1.4; color: var(--muted); }
.sub-msg { margin: .5rem 0 0; font-family: var(--sans); font-size: .9rem; font-weight: 560; min-height: 0; }
.sub-msg:empty { display: none; }
.sub-msg.ok { color: var(--p-trust); }
.sub-msg.bad { color: var(--open); }
@media (max-width: 480px) { .sub-row button { flex: 1 1 100%; } }
