/* ==========================================================================
   AUT Alumni Network — The Aqaba Line
   Timetable paper, one sea-green line colour, ticket-yellow for joining.
   ========================================================================== */

:root {
  --paper: #eef0eb;
  --paper-2: #e3e7e0;
  --rule-soft: #cdd4cb;
  --ink: #13201b;
  --ink-2: #44524c;
  --line: #0b6b57;
  --line-deep: #08503f;
  --on-line: #f4f8f5;
  --on-line-2: #cfe6de;
  --ticket: #efc94c;
  --ticket-2: #e4b93a;
  --ticket-ink: #2b2410;
  --on-ink: #eef0eb;
  --on-ink-2: #a9b6af;
  --danger: #a3261b;

  --f-display: "Noto Kufi Arabic", "Readex Pro", system-ui, sans-serif;
  --f-text: "Readex Pro", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --dot: 20px;
  --stub: 168px;
  --track: 4px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --space-section: clamp(72px, 9vw, 136px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--ink-2) var(--paper-2);
  scrollbar-width: thin;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.8;
  font-variant-numeric: tabular-nums lining-nums;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.6; }

::selection { background: var(--ticket); color: var(--ticket-ink); }

h1, h2, h3, p { margin: 0; }
body > main { flex: 1 0 auto; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--line);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 6px;
}
.skip:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
/* Arrows point along the reading direction. */
[dir="rtl"] .icon--arrow { transform: scaleX(-1); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.55em 1.25em;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font: 600 1rem/1.2 var(--f-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.btn .icon--arrow { transition: translate 220ms var(--ease-out); }
.btn:hover .icon--arrow { translate: 3px 0; }
[dir="rtl"] .btn:hover .icon--arrow { translate: -3px 0; }

.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: var(--line-deep); }
.btn--outline { border-color: var(--ink); color: var(--ink); min-height: 40px; padding-block: 0.4em; }
.btn--outline:hover { background: var(--ink); color: var(--on-ink); }
.btn--ticket { background: var(--ticket); color: var(--ticket-ink); }
.btn--ticket:hover { background: #f6d76e; }
.btn--lg { min-height: 56px; padding-inline: 1.6em; font-size: 1.0625rem; }

/* ---------- Masthead (timetable header strip) ---------- */

.masthead {
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
  position: relative;
  z-index: 10;
}
.masthead::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--line);
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--line);
  margin-inline-end: auto;
}
.brand__mark { flex: none; }
[dir="rtl"] .brand__mark { transform: scaleX(-1); }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; color: var(--ink); }
.brand__top { font: 800 1.05rem/1.3 var(--f-display); }
.brand__bottom { font-size: 0.8125rem; color: var(--ink-2); }

.masthead__nav { display: flex; align-items: center; gap: 32px; }
.nav { display: flex; gap: 4px; }
.nav a {
  display: block;
  padding: 8px 12px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
}
.nav a:hover { background: var(--paper-2); }
.masthead__tools { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  font-weight: 500;
  text-decoration: none;
  padding: 8px 4px;
  border-bottom: 1.5px solid var(--ink);
  line-height: 1.2;
}
.lang-switch:hover { color: var(--line); border-color: var(--line); }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(28px, 4vw, 56px) 0; overflow: hidden; }

.hero__title {
  font-size: clamp(2.25rem, 1rem + 4.2vw, 4.75rem);
  line-height: 1.28;
  max-width: 18ch;
}
html[lang="en"] .hero__title { font-size: clamp(2.1rem, 1rem + 3.6vw, 4.25rem); line-height: 1.08; letter-spacing: -0.025em; max-width: none; }
.hero__title span { display: block; }
.hero__title-2 { color: var(--line); }

/* The line: station names sit above, the track runs across, the ticket hangs from its end. */
.route {
  position: relative;
  margin-top: clamp(24px, 3vw, 40px);
  padding-top: 76px;
}
.route__stations {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding-inline-end: calc(var(--stub) / 2 - var(--dot) / 2);
}
.station { position: relative; width: var(--dot); height: var(--dot); }
.station__dot {
  display: block;
  width: var(--dot); height: var(--dot);
  border-radius: 50%;
  background: var(--line);
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 2px var(--line);
}
.station--end .station__dot { background: var(--paper); border: 4px solid var(--line); box-shadow: none; }
.station--end .station__dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--line);
  opacity: 0;
  animation: ring 2.4s var(--ease-out) 1.9s 3;
}
.station__label {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  text-align: center;
  line-height: 1.35;
}
.station--origin .station__label { left: auto; translate: none; inset-inline-start: 0; align-items: flex-start; text-align: start; }
.station__name { font: 700 clamp(1rem, 0.85rem + 0.5vw, 1.25rem)/1.35 var(--f-display); }
.station__note { font-size: 0.875rem; color: var(--ink-2); }
.station--end .station__name { color: var(--line); }
.station--end .station__label { left: auto; translate: none; inset-inline-end: calc(-1 * (var(--stub) / 2 - var(--dot) / 2)); align-items: flex-end; text-align: end; }

.route__track {
  position: absolute;
  bottom: calc(var(--dot) / 2 - var(--track) / 2);
  inset-inline-start: calc(var(--dot) / 2);
  inset-inline-end: calc(var(--stub) / 2);
  height: var(--track);
  display: flex;
}
.route__run {
  width: 50%;
  background: var(--line);
  transform-origin: right center;
  animation: draw 900ms linear 150ms backwards;
}
[dir="ltr"] .route__run { transform-origin: left center; }
.route__open {
  width: 50%;
  background: repeating-linear-gradient(to left, var(--line) 0 12px, transparent 12px 22px);
  animation: reveal-rtl 600ms linear 1050ms backwards;
}
[dir="ltr"] .route__open {
  background: repeating-linear-gradient(to right, var(--line) 0 12px, transparent 12px 22px);
  animation-name: reveal-ltr;
}
.station__dot { animation: arrive 90ms linear backwards; }
.station--mid .station__dot { animation-delay: 1050ms; }
.station--end .station__dot { animation-delay: 1650ms; }

@keyframes draw { from { transform: scaleX(0); } }
@keyframes reveal-rtl { from { clip-path: inset(0 0 0 100%); } }
@keyframes reveal-ltr { from { clip-path: inset(0 100% 0 0); } }
@keyframes arrive { from { opacity: 0; } }
@keyframes ring {
  0% { opacity: 0.7; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(1.6); }
}

.hero__lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.hero__lead {
  padding-top: 36px;
  max-width: 38ch;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--ink-2);
}

/* ---------- Ticket ---------- */

.ticket-slot {
  position: relative;
  padding-top: 40px;
  padding-bottom: clamp(56px, 7vw, 96px);
}
/* The drop from the open station down to the stub. */
.ticket-slot::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: calc(var(--stub) / 2 - 2px);
  width: var(--track);
  height: 40px;
  background: var(--line);
  animation: drop 260ms linear 1740ms backwards;
  transform-origin: top center;
}
@keyframes drop { from { transform: scaleY(0); } }

.ticket {
  display: flex;
  background: var(--ticket);
  color: var(--ticket-ink);
  border-radius: 12px;
  box-shadow: 0 1px 1px rgba(43, 36, 16, 0.12), 0 18px 40px -18px rgba(43, 36, 16, 0.45);
}
.ticket__main {
  flex: 1 1 auto;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 32px);
}
.ticket__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--ticket-ink);
}
.ticket__title { font-size: 1.375rem; line-height: 1.4; }
.ticket__route {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}
.ticket__route { flex-wrap: wrap; }
.ticket__route > span { white-space: nowrap; }
.ticket__route b { font-weight: 600; }
.ticket__route-sep { margin-inline-end: 4px; }

.ticket__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  align-items: start;
  padding-block: 20px 24px;
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field__hint { font-size: 0.8125rem; line-height: 1.5; }
.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 6px 2px;
  border: 0;
  border-bottom: 2px solid var(--ticket-ink);
  border-radius: 0;
  background: transparent;
  color: var(--ticket-ink);
  font: 500 1.125rem/1.4 var(--f-text);
  caret-color: var(--line-deep);
  transition: background-color 160ms var(--ease-out);
}
.field input::placeholder { color: #57471a; opacity: 1; font-weight: 400; }
.field select {
  appearance: none;
  padding-inline-end: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2410' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: left 4px center;
  cursor: pointer;
}
[dir="ltr"] .field select { background-position: right 4px center; }
.field input:hover,
.field select:hover { background-color: rgba(255, 255, 255, 0.22); }
.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--ticket-ink);
  outline-offset: 2px;
  background-color: rgba(255, 255, 255, 0.3);
}
.field.is-invalid input,
.field.is-invalid select { border-bottom-color: var(--danger); }
.field__error {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--danger);
  line-height: 1.5;
}

.ticket__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.ticket__note { flex: 1 1 220px; font-size: 0.8125rem; line-height: 1.6; }
.ticket .btn--ink:focus-visible { outline-color: var(--ticket-ink); }

/* Perforation between ticket and stub. */
.ticket__stub {
  position: relative;
  flex: 0 0 var(--stub);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 12px 24px;
  background: var(--ticket-2);
  border-start-end-radius: 12px;
  border-end-end-radius: 12px;
  border-inline-start: 2px dashed rgba(43, 36, 16, 0.55);
  text-align: center;
}
.ticket__stub::before,
.ticket__stub::after {
  content: "";
  position: absolute;
  inset-inline-start: -12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--paper);
}
.ticket__stub::before { top: -11px; }
.ticket__stub::after { bottom: -11px; }

.stub__origin { font: 700 0.9375rem/1.3 var(--f-display); letter-spacing: 0; }
html[lang="en"] .stub__origin { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8125rem; }

.stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 112px; height: 112px;
  border-radius: 50%;
  border: 2.5px solid var(--line-deep);
  outline: 1px solid var(--line-deep);
  outline-offset: -8px;
  color: var(--line-deep);
  rotate: -8deg;
  opacity: 0.6;
  transition: opacity 200ms var(--ease-out);
}
.stamp__label { font-size: 0.8125rem; font-weight: 600; line-height: 1.2; }
.stamp__year { font: 800 1.5rem/1.2 var(--f-display); }
.stamp:not(.is-set) .stamp__year { font: 500 0.75rem/1.3 var(--f-text); }
.stamp.is-set { opacity: 1; }
.stamp.is-stamping { animation: stamp 360ms var(--ease-out); }
@keyframes stamp {
  0% { transform: scale(1.35); opacity: 0; }
  60% { transform: scale(0.96); opacity: 1; }
  100% { transform: scale(1); }
}
.stub__serial { display: flex; align-items: baseline; gap: 6px; font-size: 0.75rem; font-weight: 600; }
.stub__blank { width: 48px; border-bottom: 1.5px dashed rgba(43, 36, 16, 0.6); }
.stub__program {
  min-height: 2.6em;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ticket-slot__signin { margin-top: 16px; font-size: 0.9375rem; color: var(--ink-2); }
.ticket-slot__signin a { color: var(--ink); font-weight: 600; }

/* ---------- Section heads ---------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--ink);
}
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.35; }
html[lang="en"] .section-head h2 { line-height: 1.15; letter-spacing: -0.02em; }
.section-head p { color: var(--ink-2); }

/* ---------- Services timetable ---------- */

.services { padding-block: var(--space-section); border-top: 1.5px solid var(--ink); }

.tt { --stop-col: 44px; }
.tt__head,
.tt__row {
  display: grid;
  grid-template-columns: var(--stop-col) minmax(160px, 1.1fr) minmax(0, 2fr) minmax(120px, 0.9fr) 40px;
  gap: 24px;
  align-items: center;
}
.tt__head {
  padding-block: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule-soft);
}
.tt__rows { position: relative; }
/* The line through every stop. */
.tt__rows::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  inset-inline-start: calc(var(--stop-col) / 2 - 2px);
  width: var(--track);
  background: var(--line);
}
.tt__rows li { border-bottom: 1px solid var(--rule-soft); }
.tt__row {
  position: relative;
  min-height: 92px;
  padding-block: 18px;
  text-decoration: none;
  transition: background-color 180ms var(--ease-out);
}
.tt__row:hover { background: var(--paper-2); }
.tt__stop {
  justify-self: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--line);
  position: relative;
  z-index: 1;
  transition: background-color 180ms var(--ease-out);
}
.tt__row:hover .tt__stop { background: var(--line); }
.tt__name { font: 700 clamp(1.125rem, 1rem + 0.4vw, 1.375rem)/1.4 var(--f-display); }
.tt__what { color: var(--ink-2); line-height: 1.65; }
.tt__who { font-size: 0.875rem; font-weight: 500; }
.tt__go { justify-self: end; color: var(--line); }
.tt__row:hover .tt__name { color: var(--line-deep); }
.tt__row:hover .tt__go .icon { translate: 4px 0; }
[dir="rtl"] .tt__row:hover .tt__go .icon { translate: -4px 0; }
.tt__go .icon { transition: translate 220ms var(--ease-out); }

/* ---------- Steps band (the line colour owns this region) ---------- */

.steps-band {
  background: var(--line);
  color: var(--on-line);
  padding-block: var(--space-section);
}
.section-head--on-line { border-bottom-color: var(--on-line); }
.section-head--on-line p { color: var(--on-line-2); }
.steps-band :focus-visible { outline-color: var(--ticket); }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-block: 56px 48px;
}
.steps::before {
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2 - var(--track) / 2);
  inset-inline: calc(var(--dot) / 2) 0;
  height: var(--track);
  background: var(--on-line);
}
.step { position: relative; }
.step__dot {
  display: block;
  width: var(--dot); height: var(--dot);
  border-radius: 50%;
  background: var(--on-line);
  border: 4px solid var(--line);
  box-shadow: 0 0 0 2px var(--on-line);
  margin-bottom: 24px;
}
.step:last-child .step__dot { background: var(--line); border-color: var(--on-line); box-shadow: none; }
.step__title { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.4rem); line-height: 1.45; margin-bottom: 8px; }
.step__text { color: var(--on-line-2); max-width: 34ch; }

/* ---------- Departures board ---------- */

.departures {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: var(--space-section);
}
.section-head--on-ink { border-bottom-color: var(--on-ink); }
.section-head--on-ink p { color: var(--on-ink-2); }
.departures :focus-visible { outline-color: var(--ticket); }
.departures__notice {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--on-ink-2);
}

.board {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
}
.board th {
  padding: 10px 16px 10px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--on-ink-2);
  text-align: start;
  border-bottom: 1px solid rgba(238, 240, 235, 0.35);
}
[dir="rtl"] .board th { padding: 10px 0 10px 16px; }
.board td {
  padding: 20px 16px 20px 0;
  border-bottom: 1px solid rgba(238, 240, 235, 0.18);
  vertical-align: baseline;
}
[dir="rtl"] .board td { padding: 20px 0 20px 16px; }
.board__type { width: 14%; font-weight: 600; color: #8fd1bd; }
.board__title { font: 700 1.125rem/1.5 var(--f-display); }
.board__org { color: var(--on-ink-2); }
.board__date { white-space: nowrap; }
.board__note { margin-inline-start: 6px; font-size: 0.8125rem; color: var(--on-ink-2); }
.board__d { font: 800 1.25rem/1 var(--f-display); font-variant-numeric: tabular-nums; display: inline-block; min-width: 2ch; }
.board__m { font-weight: 500; }

.tag {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 1px 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font: 500 0.75rem/1.6 var(--f-text);
  vertical-align: 0.15em;
  color: var(--on-ink-2);
}
.tag--paper { color: var(--ink-2); }

.departures__links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; }
.departures__links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; padding-block: 6px; border-bottom: 1.5px solid var(--on-ink); }
.departures__links a:hover { color: var(--ticket); border-color: var(--ticket); }

/* ---------- Privacy ---------- */

.privacy { padding-block: var(--space-section); }
.privacy__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro demo" "why demo";
  gap: 32px clamp(32px, 6vw, 96px);
}
.privacy__intro { grid-area: intro; }
.privacy__intro h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.35; margin-bottom: 16px; }
html[lang="en"] .privacy__intro h2 { line-height: 1.15; letter-spacing: -0.02em; }
.privacy__lead { font-size: 1.1875rem; max-width: 40ch; }
.privacy__why { grid-area: why; color: var(--ink-2); max-width: 60ch; }
.privacy__why h3 { color: var(--ink); font-size: 1.25rem; line-height: 1.5; margin-bottom: 8px; }
.privacy__why p + p { margin-top: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-block: 4px; }
.link-arrow:hover { color: var(--line); border-color: var(--line); }

.privacy__demo { grid-area: demo; align-self: start; }
.vis {
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: #f7f8f5;
}
.vis__legend {
  float: inline-start;
  width: 100%;
  margin-bottom: 20px;
  font: 700 1.125rem/1.5 var(--f-display);
}
.vis__field {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 14px;
  border-block: 1px solid var(--rule-soft);
}
.vis__name { font-size: 0.875rem; color: var(--ink-2); }
.vis__value { font-weight: 600; }
.vis__options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
}
.vis__opt { position: relative; }
.vis__opt + .vis__opt { border-inline-start: 1.5px solid var(--ink); }
.vis__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vis__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 6px 8px;
  font-weight: 600;
  text-align: center;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.vis__opt input:hover + span { background: var(--paper-2); }
.vis__opt input:checked + span { background: var(--line); color: var(--on-line); }
.vis__opt input:focus-visible + span { outline: 3px solid var(--ticket-ink); outline-offset: -5px; }
.vis__result { margin-top: 16px; min-height: 3.6em; font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- Closing ---------- */

.closing {
  position: relative;
  padding-block: var(--space-section) 0;
  border-top: 1.5px solid var(--ink);
  overflow: hidden;
}
.closing__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 56px;
}
.closing__title { font-size: clamp(2rem, 1rem + 3.6vw, 4.25rem); line-height: 1.3; max-width: 16ch; }
html[lang="en"] .closing__title { line-height: 1.08; letter-spacing: -0.025em; }
.closing__title span { display: block; }
.closing__title span + span { color: var(--line); }
/* The line continues off the page. */
.closing__line { height: 28px; position: relative; }
.closing__line span {
  position: absolute;
  top: 12px;
  inset-inline: 0;
  height: var(--track);
  background: repeating-linear-gradient(to left, var(--line) 0 12px, transparent 12px 22px);
}
[dir="ltr"] .closing__line span { background: repeating-linear-gradient(to right, var(--line) 0 12px, transparent 12px 22px); }

/* ---------- Footer ---------- */

.footer { background: var(--ink); color: var(--on-ink); padding-block: 48px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 32px;
  align-items: center;
}
.footer__office { font: 700 1.0625rem/1.5 var(--f-display); }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__links a { text-decoration: none; color: var(--on-ink-2); padding-block: 8px; display: inline-block; }
.footer__links a:hover { color: var(--on-ink); text-decoration: underline; }
.footer__copy { grid-column: 1 / -1; font-size: 0.875rem; color: var(--on-ink-2); padding-top: 16px; border-top: 1px solid rgba(238, 240, 235, 0.18); }
.footer :focus-visible { outline-color: var(--ticket); }

/* ---------- Current page in the nav ---------- */

.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--line); border-radius: 4px 4px 0 0; }
.masthead__tools .btn--outline[aria-current="page"] { background: var(--ink); color: var(--on-ink); }

/* ---------- Placeholder ("under construction") pages ---------- */

.soon { padding-block: clamp(48px, 7vw, 104px) var(--space-section); }
.soon__title { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.25rem); line-height: 1.3; }
html[lang="en"] .soon__title { line-height: 1.1; letter-spacing: -0.025em; }

.soon-line {
  display: flex;
  align-items: flex-start;
  margin-block: clamp(36px, 5vw, 56px);
  max-width: 720px;
}
.soon-line__station {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 112px;
}
.soon-line__station--done { align-items: flex-start; width: auto; }
.soon-line__dot {
  width: var(--dot); height: var(--dot);
  border-radius: 50%;
  background: var(--line);
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 2px var(--line);
}
.soon-line__station--open .soon-line__dot { background: var(--paper); border-color: var(--line); box-shadow: none; }
.soon-line__label { font: 700 1rem/1.4 var(--f-display); white-space: nowrap; }
.soon-line__station--open .soon-line__label { color: var(--line); }
.soon-line__track {
  flex: 1 1 auto;
  height: var(--track);
  margin-top: calc(var(--dot) / 2 - var(--track) / 2);
  margin-inline: -2px -46px;
  background: repeating-linear-gradient(to left, var(--line) 0 12px, transparent 12px 22px);
}
[dir="ltr"] .soon-line__track { background: repeating-linear-gradient(to right, var(--line) 0 12px, transparent 12px 22px); }

.soon__body { max-width: 62ch; }
.soon__lead { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); line-height: 1.75; }
.soon__status { margin-top: 16px; color: var(--ink-2); }
.soon__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 36px; }
.soon__actions .btn--outline { min-height: 48px; }

/* ---------- Account pages ---------- */

.page { padding-block: clamp(40px, 6vw, 88px) var(--space-section); }
.page--admin { padding-top: clamp(28px, 4vw, 48px); }
.page__narrow { max-width: 640px; margin-inline: auto; }
.page__title { font-size: clamp(2rem, 1.1rem + 3vw, 3.5rem); line-height: 1.3; }
html[lang="en"] .page__title { line-height: 1.1; letter-spacing: -0.025em; }
.page__title--admin { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.page__subtitle { font-size: 1.375rem; line-height: 1.5; margin-bottom: 8px; }
.page__lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.75; max-width: 60ch; }
.page__lead--intro { margin-top: 12px; margin-bottom: 32px; color: var(--ink-2); }
.page__muted { margin-top: 12px; color: var(--ink-2); max-width: 60ch; }
.page__body { margin-top: 8px; }
.page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.page__aside { margin-top: 24px; color: var(--ink-2); }
.page__aside a { color: var(--ink); font-weight: 600; }
.page__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; color: var(--ink-2); font-weight: 500; }

/* Notices */
.notice {
  margin-block: 0 24px;
  padding: 14px 18px;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  max-width: 72ch;
}
.notice p { line-height: 1.6; }
.notice__title { font-weight: 700; margin-bottom: 4px; }
.notice--success { color: var(--line-deep); background: #e3efe9; }
.notice--error { color: var(--danger); background: #f6e7e4; }
.notice--info { color: var(--ink); background: var(--paper-2); }

/* Paper forms (sign in, reset, staff) */
.panel.form {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3vw, 32px);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: #f7f8f5;
}
.form .field input,
.form .field select { color: var(--ink); border-bottom-color: var(--ink); }
.form .field input::placeholder { color: var(--ink-2); }
.form .field input:focus-visible,
.form .field select:focus-visible { outline-color: var(--line); background-color: #fff; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 4px; }
.form__link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-block: 4px; }
.form__link:hover { color: var(--line); }
.form--row { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; }
.form--row .form__actions { padding: 0; }

.field__opt { font-weight: 400; font-size: 0.8125rem; }
.field__pw { position: relative; display: block; }
.field__pw input { padding-inline-end: 64px; }
.field__reveal {
  position: absolute;
  inset-inline-end: 0;
  bottom: 6px;
  padding: 6px 8px;
  border: 0;
  background: none;
  color: inherit;
  font: 600 0.8125rem/1 var(--f-text);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  cursor: pointer;
}

/* Checkbox rows */
.check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.check input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--line); }
.check label, .check span { line-height: 1.6; }
.check label a { font-weight: 600; }
.check .field__error { grid-column: 2; }
.check--inline { display: inline-grid; }
.check.is-invalid input { outline: 2px solid var(--danger); outline-offset: 2px; }

/* Honeypot */
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Full registration ticket */
.ticket--full { max-width: 1040px; }
.ticket--full .ticket__head { margin-bottom: 4px; }
.ticket--full .ticket__route { font-size: 0.8125rem; }
.ticket__section { margin: 0; padding: 20px 0 4px; border: 0; border-bottom: 1px dashed rgba(43, 36, 16, 0.45); min-width: 0; }
.ticket__section legend { float: inline-start; width: 100%; padding: 0; font: 700 1.0625rem/1.5 var(--f-display); }
.ticket__section .ticket__fields { clear: both; padding-block: 12px 20px; }
.ticket--full .check { padding-block: 24px 20px; }
.ticket--full .ticket__actions { padding-top: 4px; }
.ticket--full .ticket__note a { font-weight: 600; }
.ticket--full .ticket__stub { justify-content: flex-start; gap: 28px; padding-top: 36px; }
.ticket--full .stub__serial { margin-top: auto; }

/* Request route: sent → email → review → active */
.status-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: clamp(32px, 4vw, 48px);
  max-width: 880px;
}
.status-route__stop:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2 - var(--track) / 2);
  inset-inline-start: calc(var(--dot) / 2);
  width: 100%;
  height: var(--track);
  background: repeating-linear-gradient(to left, var(--line) 0 12px, transparent 12px 22px);
}
[dir="ltr"] .status-route__stop:not(:last-child)::before { background: repeating-linear-gradient(to right, var(--line) 0 12px, transparent 12px 22px); }
.status-route__stop.is-done:not(:last-child)::before { background: var(--line); }
.status-route__stop { position: relative; display: flex; flex-direction: column; gap: 12px; padding-inline-end: 12px; }
.status-route__dot {
  position: relative;
  z-index: 1;
  width: var(--dot); height: var(--dot);
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--line);
}
.status-route__stop.is-done .status-route__dot { background: var(--line); border-color: var(--paper); box-shadow: 0 0 0 2px var(--line); }
.status-route__stop.is-todo .status-route__dot { border-color: var(--rule-soft); }
.status-route__stop.is-current .status-route__dot::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid var(--line);
  animation: ring 2.4s var(--ease-out) 0.4s 3;
  opacity: 0;
}
.status-route__name { font: 700 0.9375rem/1.4 var(--f-display); }
.status-route__stop.is-todo .status-route__name { color: var(--ink-2); font-weight: 700; }
.status-route__stop.is-current .status-route__name { color: var(--line); }

.reason { margin-top: 16px; padding: 12px 16px; background: var(--paper-2); border-radius: 8px; max-width: 60ch; }
.reason span { font-weight: 700; }

/* Account */
.acct-next { margin-top: clamp(48px, 6vw, 80px); }
.acct-next .tt__rows { --stop-col: 44px; }
.tt__row--static { display: grid; grid-template-columns: 44px minmax(160px, 1.1fr) minmax(0, 2fr) minmax(80px, 0.6fr) 32px; gap: 24px; align-items: center; min-height: 80px; padding-block: 16px; }

/* ---------- Alumni office dashboard ---------- */

.subnav { background: var(--ink); color: var(--on-ink); }
.subnav__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; min-height: 52px; }
.subnav__label { font: 700 0.875rem/1.4 var(--f-display); color: var(--on-ink-2); }
.subnav ul { display: flex; gap: 4px; }
.subnav a { display: block; padding: 14px 12px; text-decoration: none; font-weight: 500; }
.subnav a:hover { color: #8fd1bd; }
.subnav a[aria-current="page"] { box-shadow: inset 0 -3px 0 #8fd1bd; }
.subnav :focus-visible { outline-color: var(--ticket); }

.queue-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-block: 24px;
  border-bottom: 1.5px solid var(--ink);
}
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px 6px 0 0;
}
.tabs a:hover { background: var(--paper-2); }
.tabs a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--line); }
.tabs__dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--line); background: var(--paper); flex: none; }
.tabs__dot--approved { background: var(--line); }
.tabs__dot--rejected { border-color: var(--ink-2); background: var(--paper); position: relative; }
.tabs__dot--rejected::after { content: ""; position: absolute; inset: 3px -4px; height: 2px; top: 3px; background: var(--ink-2); rotate: -45deg; }
.tabs__count { min-width: 2ch; padding: 0 8px; border-radius: 999px; background: var(--paper-2); font-size: 0.875rem; font-variant-numeric: tabular-nums; text-align: center; }
.tabs a[aria-current="page"] .tabs__count { background: var(--line); color: var(--on-line); }

.search { display: flex; flex: none; flex-wrap: nowrap; align-items: center; gap: 8px; padding-bottom: 10px; max-width: 100%; }
.search .btn { min-height: 40px; }
.search input {
  width: min(300px, 60vw);
  min-height: 40px;
  padding: 6px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: #f7f8f5;
  font: 400 1rem/1.4 var(--f-text);
  color: var(--ink);
}
.search input::placeholder { color: var(--ink-2); }
.search__clear { font-size: 0.875rem; font-weight: 600; }

.queue-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px 16px; }
.queue-empty { padding: 48px 0; color: var(--ink-2); font-size: 1.125rem; }

.queue { width: 100%; border-collapse: collapse; }
.queue th {
  padding: 10px 12px 10px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  text-align: start;
  border-bottom: 1px solid var(--rule-soft);
}
.queue td { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
[dir="rtl"] .queue th, [dir="rtl"] .queue td { padding-inline: 0 12px; }
.queue__sel { width: 36px; }
.queue__sel input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--line); }
.queue__who, .queue__study, .queue__contact, .queue__date { display: table-cell; }
.queue__who > span, .queue__study > span, .queue__contact > *, .queue__date > * { display: block; }
.queue__name { font: 700 1.0625rem/1.5 var(--f-display); }
.queue__en, .queue__study span + span, .queue__contact bdi, .queue__by { font-size: 0.875rem; color: var(--ink-2); }
.queue__sn { font-weight: 600; font-variant-numeric: tabular-nums; }
.queue__contact a { font-size: 0.9375rem; overflow-wrap: anywhere; }
.queue__date time { font-variant-numeric: tabular-nums; font-weight: 500; }
.queue__reason { margin-top: 6px; font-size: 0.875rem; max-width: 36ch; }
.queue__act { width: 1%; white-space: nowrap; }
.queue__wait { display: inline-block; padding: 8px 0; font-size: 0.875rem; color: var(--ink-2); }
.queue__act > .btn, .queue__act > details { vertical-align: top; }
.queue .tag { margin: 6px 0 0; }
.tag--warn { color: #7a4a00; background: #fbecc8; border-color: #c9952b; }

.btn--sm { min-height: 38px; padding: 0.35em 0.95em; font-size: 0.9375rem; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #7f1d14; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.reject { position: relative; display: inline-block; margin-inline-start: 8px; }
.reject summary { list-style: none; }
.reject summary::-webkit-details-marker { display: none; }
.reject[open] summary { background: var(--ink); color: var(--on-ink); }
.reject__panel {
  display: grid;
  gap: 8px;
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: min(360px, 80vw);
  margin: 0;
  box-shadow: 0 18px 40px -18px rgba(19, 32, 27, 0.45);
  padding: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: #f7f8f5;
  white-space: normal;
}
.reject__panel legend { padding: 0; font-weight: 700; margin-bottom: 4px; float: inline-start; width: 100%; }
.reject__panel .check span { font-size: 0.875rem; }
.reject__panel textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  font: 400 0.9375rem/1.5 var(--f-text);
  color: var(--ink);
  resize: vertical;
}
.reject__panel .btn { justify-self: start; }

.pager { display: flex; align-items: center; justify-content: center; gap: 24px; padding-top: 24px; font-variant-numeric: tabular-nums; }
.pager a { font-weight: 600; }

.staff-add { margin-top: 48px; max-width: 880px; }
.queue--staff { max-width: 880px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .tt__head,
  .tt__row { grid-template-columns: var(--stop-col) minmax(150px, 1fr) minmax(0, 2fr) 32px; }
  .tt__head span:nth-child(4),
  .tt__who { display: none; }
}

@media (max-width: 900px) {
  :root { --stub: 132px; }
  .menu-toggle { display: inline-flex; }
  .masthead__inner { flex-wrap: wrap; gap: 12px; min-height: 68px; padding-block: 10px; }
  .masthead__nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-block: 8px 16px;
    border-top: 1px solid var(--rule-soft);
  }
  .masthead.is-open .masthead__nav { display: flex; }
  .nav { flex-direction: column; }
  .nav a { padding: 12px 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--rule-soft); border-radius: 0; }
  .masthead__tools { justify-content: space-between; }

  .hero__lower { grid-template-columns: 1fr; gap: 0; }
  .hero__lead { order: 2; padding-top: 0; padding-bottom: clamp(56px, 10vw, 80px); margin-top: -24px; }
  .ticket-slot { order: 1; }

  .stamp { width: 96px; height: 96px; }

  .steps { grid-template-columns: 1fr; gap: 32px; margin-block: 40px; padding-inline-start: 40px; }
  .steps::before { top: 10px; bottom: 10px; inset-inline-start: calc(var(--dot) / 2 - var(--track) / 2); inset-inline-end: auto; width: var(--track); height: auto; }
  .step__dot { position: absolute; inset-inline-start: -40px; top: 6px; margin: 0; }

  .privacy__grid { grid-template-columns: 1fr; grid-template-areas: "intro" "demo" "why"; }

  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --stub: 96px; --dot: 18px; }
  .form--row { grid-template-columns: 1fr; }
  .status-route { grid-template-columns: 1fr; gap: 18px; }
  .status-route__stop:not(:last-child)::before { inset-inline-start: calc(var(--dot) / 2 - var(--track) / 2); top: calc(var(--dot) / 2); width: var(--track); height: calc(100% + 18px); background: repeating-linear-gradient(to bottom, var(--line) 0 10px, transparent 10px 18px) !important; }
  .status-route__stop.is-done:not(:last-child)::before { background: var(--line) !important; }
  .subnav__label { display: none; }
  .status-route__stop { flex-direction: row; align-items: center; }
  .tt__row--static { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 14px; }
  .tt__row--static .tt__what { grid-column: 2 / -1; }
  .queue thead { display: none; }
  .queue, .queue tbody, .queue tr, .queue td { display: block; width: auto; }
  .queue tr { position: relative; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
  .queue td, [dir="rtl"] .queue td { padding: 4px 0; border: 0; }
  .queue__sel { position: absolute; inset-inline-end: 0; top: 16px; }
  .queue__act { white-space: normal; padding-top: 12px !important; }
  .ticket--full .ticket__stub { display: none; }
  .ticket--full .ticket__main { border-radius: 12px; }
  .route { padding-top: 64px; }
  .station__name { font-size: 0.9375rem; }
  .station__note { font-size: 0.8125rem; }
  .station--end .station__name { max-width: 9ch; text-wrap: balance; }
  html[lang="en"] .station--end .station__name { max-width: 12ch; }
  .stub__serial { font-size: 0.625rem; }
  .stub__blank { width: 28px; }
  .ticket__route { font-size: 0.8125rem; }

  .ticket__fields { grid-template-columns: 1fr; gap: 16px; padding-block: 16px 20px; }
  .hero { padding-top: 24px; }
  .route { margin-top: 20px; }
  .ticket-slot { padding-top: 32px; }
  .ticket-slot::before { height: 32px; }
  .ticket__head { padding-bottom: 10px; }
  .ticket__title { font-size: 1.25rem; }
  .ticket__head { flex-direction: column; align-items: flex-start; }
  .ticket__actions .btn { width: 100%; justify-content: center; }
  .ticket__stub { padding: 24px 6px 20px; }
  .stamp { width: 76px; height: 76px; outline-offset: -6px; }
  .stamp__label { font-size: 0.6875rem; }
  .stamp__year { font-size: 1.125rem; }
  .stamp:not(.is-set) .stamp__year { font-size: 0.625rem; }
  .stub__origin { font-size: 0.8125rem; }
  .stub__program { font-size: 0.6875rem; }

  .tt { --stop-col: 28px; }
  .tt__head { display: none; }
  .tt__row {
    grid-template-columns: var(--stop-col) minmax(0, 1fr) 24px;
    grid-template-areas: "stop name go" "stop what go";
    gap: 4px 14px;
    align-items: start;
  }
  .tt__stop { grid-area: stop; margin-top: 9px; }
  .tt__name { grid-area: name; }
  .tt__what { grid-area: what; font-size: 0.9375rem; }
  .tt__go { grid-area: go; align-self: center; }

  .board thead { display: none; }
  .board, .board tbody, .board tr, .board td { display: block; width: auto; }
  .board tr { padding-block: 16px; border-bottom: 1px solid rgba(238, 240, 235, 0.18); }
  .board td, [dir="rtl"] .board td { padding: 0; border: 0; }
  .board__type { font-size: 0.875rem; }
  .board__org, .board__date { font-size: 0.9375rem; }

  .closing__inner .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Stage 2 — profiles, graduate pages, directory
   ========================================================================== */

[hidden] { display: none !important; }

.field__label { font-size: 0.875rem; font-weight: 600; }
.field textarea {
  width: 100%;
  min-height: 112px;
  padding: 10px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: #f7f8f5;
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--f-text);
  caret-color: var(--line-deep);
  resize: vertical;
}
.field textarea:focus-visible { outline: 3px solid var(--line); outline-offset: 2px; background: #fff; }
.field.is-invalid textarea { border-color: var(--danger); }
.form .field__hint { color: var(--ink-2); }

/* "Who sees this?" segmented control (same look as the home page demo) */
.seg { margin: 0; padding: 0; border: 0; min-width: 0; }
.seg__legend { float: inline-start; width: 100%; padding: 0; margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; }
.seg__opts {
  clear: both;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}
.seg__opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg__opt { position: relative; }
.seg__opt + .seg__opt { border-inline-start: 1.5px solid var(--ink); }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 6px 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.seg__opt input:hover + span { background: var(--paper-2); }
.seg__opt input:checked + span { background: var(--line); color: var(--on-line); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--ticket-ink); outline-offset: -5px; }
.seg__result { margin-top: 10px; font-size: 0.875rem; line-height: 1.6; color: var(--ink-2); }
.seg__capped { margin-top: 4px; font-size: 0.8125rem; line-height: 1.5; font-weight: 600; color: var(--ink); }

/* Profile form: each section is a station on the graduate's line */
.pf-preview { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 28px; font-size: 0.9375rem; color: var(--ink-2); }
.pf-preview a { color: var(--ink); font-weight: 600; }

.pf { position: relative; margin-top: 8px; border-top: 1.5px solid var(--ink); }
.pf::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 120px;
  inset-inline-start: calc(22px - var(--track) / 2);
  width: var(--track);
  background: var(--line);
}
.pf-sec {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(260px, 330px);
  gap: 20px clamp(24px, 4vw, 56px);
  padding-block: 32px;
  border-bottom: 1px solid var(--rule-soft);
}
.pf-sec__stop {
  justify-self: center;
  margin-top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--line);
  position: relative;
  z-index: 1;
}
.pf-sec.is-filled .pf-sec__stop { background: var(--line); border-color: var(--paper); box-shadow: 0 0 0 2px var(--line); }
.pf-sec__title { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); line-height: 1.4; }
.pf-sec__intro { margin-top: 4px; max-width: 58ch; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.7; }
.pf-sec__fields { margin-top: 20px; }
.pf-sec__vis { padding-top: 44px; }
.pf-sec__main--full { grid-column: 2 / -1; }

.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.pf-when { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.pf-locked { margin-bottom: 16px; padding: 10px 14px; background: var(--paper-2); border-radius: 6px; font-size: 0.875rem; line-height: 1.6; color: var(--ink-2); max-width: 64ch; }

.pf-choice, .pf-date { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; min-width: 0; }
.pf-choice legend, .pf-date legend { float: inline-start; width: 100%; padding: 0; margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; }
.pf-choice__opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.pf-choice .check span { font-weight: 500; }
.pf-choice.is-invalid input { outline: 2px solid var(--danger); outline-offset: 2px; }
.pf-date .pf-grid { clear: both; max-width: 520px; }
.pf-date .field__hint, .pf-choice .field__hint { margin-top: 8px; }
.pf-date.is-invalid select { border-bottom-color: var(--danger); }
.pf-staff { color: var(--ink-2); }

.pf-staffonly { padding-top: 0; }
.pf-staffonly__label {
  display: inline-block;
  padding: 8px 14px;
  border: 1.5px dashed var(--ink-2);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
}

.pf-rows { margin-top: 12px; }
.pf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 16px clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: 20px;
}
.pf-row + .pf-row { border-top: 1px solid var(--rule-soft); }
.pf-row__vis .seg { padding-top: 2px; }
.pf-static {
  display: block;
  min-height: 46px;
  padding: 8px 2px;
  font: 500 1.125rem/1.4 var(--f-text);
  border-bottom: 2px dotted var(--rule-soft);
  overflow-wrap: anywhere;
  text-align: start;
}
[dir="rtl"] .pf-static { text-align: end; }

.pf-actions { padding-top: 36px; padding-inline-start: calc(44px + clamp(24px, 4vw, 56px)); }

/* Graduate page */
.grad__other { margin-top: 4px; font-size: 1.125rem; color: var(--ink-2); }
.grad-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 32px;
  padding: 12px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: #f7f8f5;
}
.grad-bar p { font-weight: 600; }
.grad-bar__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.grad-bar__links a:not(.btn) { font-weight: 500; }
.grad-bar__links a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 3px; text-decoration-color: var(--line); }

.grad-route {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-block: clamp(36px, 5vw, 56px);
  max-width: 980px;
}
.grad-route__stop { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 62%; }
.grad-route__stop--origin { flex: none; }
.grad-route__stop--now { align-items: flex-end; text-align: end; }
.grad-route__dot {
  position: relative;
  width: var(--dot); height: var(--dot);
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--line);
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 2px var(--line);
}
.grad-route__stop--now .grad-route__dot { background: var(--paper); border: 4px solid var(--line); box-shadow: none; }
.grad-route__track {
  position: absolute;
  top: calc(var(--dot) / 2 - var(--track) / 2);
  inset-inline: calc(var(--dot) / 2);
  height: var(--track);
  background: var(--line);
  transform-origin: right center;
  animation: draw 900ms linear backwards;
}
[dir="ltr"] .grad-route__track { transform-origin: left center; }
.grad-route__track.is-open { background: repeating-linear-gradient(to left, var(--line) 0 12px, transparent 12px 22px); }
[dir="ltr"] .grad-route__track.is-open { background: repeating-linear-gradient(to right, var(--line) 0 12px, transparent 12px 22px); }
.grad-route__org { font-weight: 500; overflow-wrap: anywhere; }
.grad-route__name { font: 700 clamp(1rem, 0.85rem + 0.5vw, 1.25rem)/1.4 var(--f-display); overflow-wrap: anywhere; }
.grad-route__stop--now .grad-route__name { color: var(--line); }
.grad-route__note { font-size: 0.875rem; color: var(--ink-2); }

.grad-facts { margin: 0; max-width: 980px; border-top: 1.5px solid var(--ink); }
.grad-facts__row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: 8px 32px;
  padding-block: 18px;
  border-bottom: 1px solid var(--rule-soft);
}
.grad-facts dt { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); padding-top: 2px; }
.grad-facts dd { margin: 0; }
.grad-facts__bio { max-width: 62ch; }
.grad-facts__row--empty dd { color: var(--ink-2); }
.grad-skills { display: flex; flex-wrap: wrap; gap: 2px 0; }
.grad-skills li + li::before { content: "·"; margin-inline: 10px; color: var(--ink-2); }
.grad-contact { display: grid; gap: 6px; }
.grad-contact__label { display: inline-block; min-width: 9ch; font-size: 0.875rem; color: var(--ink-2); }
.grad-contact a { font-weight: 600; overflow-wrap: anywhere; }

.grad-office { margin-top: 40px; max-width: 980px; padding: 20px clamp(16px, 3vw, 28px) 8px; border: 1.5px dashed var(--ink-2); border-radius: 12px; }
.grad-office__title { font: 700 1rem/1.5 var(--f-display); }
.grad-facts--office { border-top: 0; }
.grad-facts--office .grad-facts__row:last-child { border-bottom: 0; }
.grad__updated { margin-top: 24px; font-size: 0.875rem; color: var(--ink-2); }

.reject__title { font-weight: 700; }
.reject__text { font-size: 0.875rem; line-height: 1.6; color: var(--ink-2); }
.queue__profile { margin-top: 6px; font-size: 0.875rem; color: var(--ink-2); }
.queue__profile a { font-weight: 600; color: var(--ink); }
.queue tr.is-off td { color: var(--ink-2); }
.tabs__dot--suspended { border-color: var(--ink-2); background: var(--ink-2); }

/* Faculties and programmes (staff) */
.pg-map { margin-bottom: 48px; padding: 20px clamp(16px, 3vw, 28px) 8px; border: 1.5px solid var(--ink); border-radius: 12px; background: #f7f8f5; }
.pg-map .page__muted { margin-top: 0; margin-bottom: 8px; }
.pg-inline { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; }
.pg-inline .field { flex: 1 1 220px; }
.pg-inline .field select { font-size: 1rem; min-height: 40px; }
.pg-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.pg-fac { margin-top: 40px; scroll-margin-top: 24px; }
.pg-fac__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ink);
}
.pg-fac__title { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem); line-height: 1.4; }
.pg-fac__meta { font-size: 0.875rem; color: var(--ink-2); }
.pg-fac.is-off .pg-fac__title { color: var(--ink-2); }
.pg-fac__none { padding-block: 16px; color: var(--ink-2); border-bottom: 1px solid var(--rule-soft); }
.pg-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.pg-actions .reject { margin: 0; }
.pg-table .queue__act { width: auto; }
.pg-table .pg-actions { flex-wrap: nowrap; justify-content: flex-end; }
.pg-del { color: var(--danger); border-color: var(--danger); }
.pg-del:hover { background: var(--danger); color: #fff; }
.pg-table tr { scroll-margin-top: 24px; }
.pg-add { margin-top: 4px; }
.pg-add summary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; font-weight: 600; cursor: pointer; list-style: none; }
.pg-add summary::-webkit-details-marker { display: none; }
.pg-add summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 50%; font-weight: 700; line-height: 1; }
.pg-add[open] summary::before { content: "−"; }
.pg-add__form { display: grid; gap: 12px; justify-items: start; max-width: 640px; padding-bottom: 16px; }
.pg-add__form .field { width: 100%; }
.pg-note { margin-top: 32px; }
.reject__panel.form { gap: 12px; }
.reject__panel.form .field input, .reject__panel.form .field select { font-size: 1rem; min-height: 40px; }

/* Directory */
.dir-you {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 28px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--paper-2);
  max-width: 72ch;
}
.dir-you a { font-weight: 600; }
.dir-you__dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--line); background: var(--paper); flex: none; }

.dir-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
  gap: 16px 20px;
  align-items: end;
  padding-block: 20px 24px;
  border-top: 1.5px solid var(--ink);
}
.dir-filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.dir-filters .field input, .dir-filters .field select { font-size: 1rem; min-height: 44px; }
.dir-filters input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.dir-count { padding-block: 10px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); border-top: 1px solid var(--rule-soft); }

.dir-tt .tt__head,
.dir-tt .tt__row { grid-template-columns: var(--stop-col) minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 0.8fr) 40px; }
.dir-tt .tt__head span:nth-child(4) { display: block; }
.dir-tt .tt__row { min-height: 84px; }
.dir-row__who { display: flex; flex-direction: column; min-width: 0; }
.dir-row__who .tt__name { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
.dir-row__who .tag { vertical-align: 0.25em; }
.dir-row__study { font-size: 0.875rem; color: var(--ink-2); }
.dir-row__work { font-weight: 500; overflow-wrap: anywhere; }
.dir-row__org { display: block; font-weight: 400; font-size: 0.9375rem; color: var(--ink-2); }
.dir-row__place { font-size: 0.9375rem; color: var(--ink-2); }

.dir-empty,
.acct-profile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0 20px;
  padding-block: 36px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--rule-soft);
}
.dir-empty__stop,
.acct-profile__stop {
  position: relative;
  justify-self: center;
  margin-top: 8px;
  width: var(--dot); height: var(--dot);
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--line);
}
.dir-empty__stop::after,
.acct-profile__stop.is-asking::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid var(--line);
  opacity: 0;
  animation: ring 2.4s var(--ease-out) 0.4s 3;
}
.acct-profile.is-filled .acct-profile__stop { background: var(--line); border-color: var(--paper); box-shadow: 0 0 0 2px var(--line); }
.dir-empty__title, .acct-profile__title { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); line-height: 1.4; }
.dir-empty__text, .acct-profile__text { margin-top: 8px; max-width: 60ch; color: var(--ink-2); }
.acct-profile__summary { margin-top: 8px; font-weight: 600; font-size: 1.125rem; }
.acct-profile__date { display: block; margin-top: 4px; font-size: 0.875rem; }
.acct-profile .page__actions { margin-top: 24px; }
.acct-profile { margin-top: clamp(32px, 4vw, 48px); }
.acct-notice { margin-top: 24px; }
.dir-none { padding-block: 40px; border-top: 1px solid var(--rule-soft); color: var(--ink-2); }
.dir-none__title { font-weight: 700; font-size: 1.125rem; color: var(--ink); margin-bottom: 4px; }

.tt__row--link { grid-template-columns: 44px minmax(160px, 1.1fr) minmax(0, 2fr) minmax(80px, 0.6fr) 32px; }
.tt__row--link .tt__name { color: var(--ink); }

@media (max-width: 1080px) {
  .dir-filters__actions { grid-column: 1 / -1; }
  .dir-tt .tt__head span:nth-child(4) { display: none; }
  .dir-tt .tt__head, .dir-tt .tt__row { grid-template-columns: var(--stop-col) minmax(0, 1.2fr) minmax(0, 1.3fr) 32px; }
  .dir-tt .tt__row { grid-template-areas: "stop who work go" "stop who place go"; row-gap: 2px; align-content: center; }
  .dir-tt .tt__stop { grid-area: stop; }
  .dir-row__who { grid-area: who; }
  .dir-row__work { grid-area: work; }
  .dir-row__place { grid-area: place; }
  .dir-tt .tt__go { grid-area: go; }
  .dir-row__place:empty, .dir-row__work:empty { display: none; }
}

@media (max-width: 900px) {
  .pf::before { inset-inline-start: calc(14px - var(--track) / 2); }
  .pf-sec { grid-template-columns: 28px minmax(0, 1fr); gap: 16px; }
  .pf-sec__vis { grid-column: 2; padding-top: 4px; max-width: 420px; }
  .pf-sec__main--full { grid-column: 2; }
  .pf-row { grid-template-columns: 1fr; }
  .pf-row__vis { max-width: 420px; }
  .pf-actions { padding-inline-start: 44px; }
  .dir-empty, .acct-profile { grid-template-columns: 28px minmax(0, 1fr); gap: 0 16px; }
}

@media (max-width: 640px) {
  .pf-grid, .pf-when { grid-template-columns: 1fr; gap: 16px; }
  .pf-sec { padding-block: 24px; }
  .pf-actions { padding-inline-start: 0; }
  .pf-actions .btn { width: 100%; justify-content: center; }
  .pf::before { bottom: 140px; }
  .seg__opt span { font-size: 0.875rem; padding-inline: 4px; }
  .dir-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-table .pg-actions { flex-wrap: wrap; justify-content: flex-start; }
  .pg-table td[data-label] { display: inline-block; margin-inline-end: 20px; font-size: 0.9375rem; }
  .pg-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 500; font-size: 0.8125rem; color: var(--ink-2); }
  .dir-filters .field:first-child { grid-column: 1 / -1; }
  .dir-tt .tt__row {
    grid-template-columns: var(--stop-col) minmax(0, 1fr) 24px;
    grid-template-areas: "stop who go" "stop work go" "stop place go";
  }
  .dir-tt .tt__stop { grid-area: stop; }
  .dir-row__who { grid-area: who; }
  .dir-row__work { grid-area: work; font-size: 0.9375rem; }
  .dir-tt .tt__go { grid-area: go; }
  .grad-facts__row { grid-template-columns: 1fr; gap: 4px; }
  .grad-route__stop { max-width: 58%; }
  .grad-bar { flex-direction: column; align-items: flex-start; }
  .tt__row--link { grid-template-columns: 28px minmax(0, 1fr) 24px; gap: 4px 14px; }
  .tt__row--link .tt__what { grid-column: 2; }
  .tt__row--link .tt__who { display: none; }
  .tt__row--link .tt__go { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* ==========================================================================
   Stage 3 — news, jobs, events, and the office screens that publish them
   ========================================================================== */

/* Back link on detail and editor pages: the arrow points backwards. */
.ed-back { margin-bottom: 16px; font-size: 0.9375rem; }
.ed-back a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; padding-block: 4px; }
.ed-back a:hover { color: var(--line); text-decoration: underline; }
.ed-back .icon--arrow { transform: scaleX(-1); }
[dir="rtl"] .ed-back .icon--arrow { transform: none; }

/* Public list pages */
.list-bar { margin-bottom: 4px; border-bottom: 1.5px solid var(--ink); }
.feed__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feed__meta { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.feed__meta .tag { margin-inline-start: 6px; vertical-align: 0.05em; }
.feed .tt__name, .jobs-tt .tt__name, .ev-tt .tt__name { overflow-wrap: anywhere; }

.dblock { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1; }
.dblock__d { font: 800 1.75rem/1 var(--f-display); font-variant-numeric: tabular-nums lining-nums; }
.dblock__m { margin-top: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.dblock__y { margin-top: 2px; font-size: 0.75rem; color: var(--ink-2); }

.feed .tt__row { grid-template-columns: var(--stop-col) 72px minmax(0, 1fr) 40px; }
.jobs-tt .tt__row { grid-template-columns: var(--stop-col) minmax(0, 1fr) minmax(130px, auto) 40px; }
.jobs-tt__deadline { font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.jobs-more { margin-top: 24px; }

.ev-tt .tt__row { grid-template-columns: var(--stop-col) 72px minmax(0, 1fr) minmax(120px, auto) 40px; }
.tt__stop.is-filled { background: var(--line); }
.ev-row__status { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.ev-row__status--open, .ev-row__status--in { color: var(--line-deep); }
.ev-row__status--in::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-inline-end: 8px; border-radius: 50%; background: var(--line); vertical-align: 0.05em; }
.ev-row.is-off .tt__name { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.ev-past { margin-top: clamp(56px, 7vw, 96px); }
.ev-tt--past .tt__row { min-height: 76px; }
.ev-tt--past .tt__name { font-size: 1.0625rem; }
.ev-tt--past .dblock__d { font-size: 1.375rem; }

/* Articles: news items, job listings, events */
.article { max-width: 760px; }
.article--wide { max-width: 1120px; }
.article__kicker { margin-bottom: 12px; font-size: 0.875rem; font-weight: 600; color: var(--line); }
.article__kicker .tag { margin-inline-start: 6px; }
.article__title { margin-bottom: 12px; overflow-wrap: anywhere; }
.article__lead { max-width: 60ch; margin-bottom: 28px; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); line-height: 1.75; color: var(--ink-2); }
.article__org { margin-bottom: 32px; font-size: 1.125rem; font-weight: 500; color: var(--ink-2); }
.article__lang { display: inline-block; margin-bottom: 16px; padding: 6px 12px; border-radius: 6px; background: var(--paper-2); font-size: 0.875rem; color: var(--ink-2); }
.article__staff { margin-top: 32px; }
.article-more { margin-top: clamp(56px, 7vw, 96px); }

.prose { max-width: 66ch; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.prose p, .prose ul { margin: 0 0 1.1em; }
.prose ul { padding-inline-start: 1.4em; list-style: disc; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--line); }
.prose h2 { margin: 1.6em 0 0.5em; font-size: 1.25rem; line-height: 1.5; }
.prose a { color: var(--line-deep); font-weight: 500; overflow-wrap: anywhere; }
.prose > :last-child { margin-bottom: 0; }

.job-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.job-side { display: grid; gap: 24px; position: sticky; top: 24px; border-top: 1.5px solid var(--ink); }
.facts { margin: 0; }
.facts__row { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 4px 16px; padding-block: 12px; border-bottom: 1px solid var(--rule-soft); }
.facts dt { padding-top: 2px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.apply { display: grid; gap: 12px; padding: 20px; border: 1.5px solid var(--ink); border-radius: 12px; background: #f7f8f5; }
.apply__title { font: 700 1.125rem/1.4 var(--f-display); }
.apply__btn { justify-content: center; width: 100%; }
.apply__note, .apply__email { font-size: 0.9375rem; line-height: 1.6; }
.apply__email a { font-weight: 600; overflow-wrap: anywhere; }
.apply__closed { font-weight: 600; color: var(--ink-2); }
.apply .notice { margin: 0; }
.job-note { font-size: 0.8125rem; line-height: 1.6; color: var(--ink-2); }

.reg-panel.is-in { border-color: var(--line); border-inline-start-width: 6px; }
.reg-form { display: grid; gap: 16px; }
.reg-form .field input { font-size: 1.0625rem; }
.reg-member { padding-top: 12px; border-top: 1px solid var(--rule-soft); }
.reg-member a, .reg-online a, .cal-link a { font-weight: 600; }
.reg-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.reg-online { font-size: 0.9375rem; overflow-wrap: anywhere; }
.reg-cancel { margin: 0; justify-self: start; }
.reg-cancel .reject__panel { inset-inline-end: auto; inset-inline-start: 0; }
.cal-link { font-size: 0.9375rem; }

/* The registration link from the confirmation email */
.m-status { margin-top: 12px; font-weight: 600; }
.m-status--on { color: var(--line-deep); }
.m-status--off { color: var(--ink-2); }
.dir-empty__stop.is-filled { background: var(--line); border-color: var(--paper); box-shadow: 0 0 0 2px var(--line); }
.dir-empty__stop.is-filled::after { display: none; }

/* Home page board with real rows */
.departures__empty { margin-top: 28px; padding-block: 28px; border-block: 1px solid rgba(238, 240, 235, 0.18); color: var(--on-ink-2); font-size: 1.0625rem; max-width: 70ch; }
.board__title a { text-decoration: none; }
.board__title a:hover { color: var(--ticket); text-decoration: underline; }

/* ---------- Office screens ---------- */

.subnav ul { flex-wrap: wrap; }
.ed-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.ed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-block: 8px 24px; font-size: 0.9375rem; color: var(--ink-2); }
.ed-meta a { color: var(--ink); font-weight: 600; }
.ed-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.ed-state::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--line); background: var(--paper); }
.ed-state--published::before { background: var(--line); }
.ed-state--closed::before, .ed-state--past::before, .ed-state--cancelled::before { border-color: var(--ink-2); background: var(--ink-2); }

.ed { max-width: 920px; margin-top: 8px; }
.ed-sec { margin: 0; padding: 28px 0; border: 0; border-top: 1.5px solid var(--ink); min-width: 0; }
.ed-sec + .ed-sec { border-top: 1px solid var(--rule-soft); }
.ed-sec__title { float: inline-start; width: 100%; margin-bottom: 4px; padding: 0; font: 700 1.125rem/1.4 var(--f-display); }
.ed-sec__hint { clear: both; max-width: 64ch; font-size: 0.875rem; line-height: 1.6; color: var(--ink-2); }
.ed-fields { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; padding-top: 16px; }
.ed-fields--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ed-narrow { max-width: 560px; }
.ed-dep { min-width: 0; }
.ed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 28px; border-top: 1.5px solid var(--ink); }
.ed .field textarea { min-height: 160px; }

.tabs__dot--published, .tabs__dot--open, .tabs__dot--upcoming { background: var(--line); }
.tabs__dot--closed, .tabs__dot--past { border-color: var(--ink-2); background: var(--ink-2); }
.tabs__dot--draft { border-style: dashed; }

.cms-title { display: block; font: 700 1.0625rem/1.5 var(--f-display); text-decoration: none; overflow-wrap: anywhere; }
.cms-title:hover { color: var(--line-deep); text-decoration: underline; }
.cms-table .queue__act { width: auto; }
.cms-table .pg-actions { justify-content: flex-end; }
.cms-table .queue__date time { white-space: nowrap; }
.cms-muted { font-size: 0.875rem; font-weight: 400; color: var(--ink-2); }
.cms-table td.pg-num a { font-weight: 700; }

.reg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 8px; padding-block: 8px 20px; border-bottom: 1.5px solid var(--ink); }
.reg-stats { display: flex; gap: 40px; margin: 0; }
.reg-stats dt { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.reg-stats dd { margin: 0; }
.reg-stats__n { font: 800 2rem/1.1 var(--f-display); font-variant-numeric: tabular-nums lining-nums; }
.reg-stats__of { font-weight: 500; color: var(--ink-2); }
.reg-hint { margin-bottom: 8px; }
.reg-save { padding-top: 20px; }
.reg-cancelled { margin-top: 32px; }
.reg-cancelled summary { cursor: pointer; font-weight: 600; padding-block: 8px; }
.reg-cancelled li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-block: 8px; border-bottom: 1px solid var(--rule-soft); color: var(--ink-2); }

@media (max-width: 900px) {
  .job-grid { grid-template-columns: 1fr; }
  .job-side { position: static; }
  .job-grid--side-first .job-side { order: -1; }
  .ed-fields--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .feed .tt__row, .ev-tt .tt__row {
    grid-template-columns: var(--stop-col) 48px minmax(0, 1fr) 24px;
    grid-template-areas: "stop date main go" "stop date status go";
    align-items: start;
  }
  .feed .dblock, .ev-tt .dblock { grid-area: date; padding-top: 4px; }
  .feed__main { grid-area: main; }
  .ev-row__status { grid-area: status; }
  .ev-tt .tt__row > span:empty { display: none; }
  .dblock__d { font-size: 1.375rem; }
  .jobs-tt .tt__row {
    grid-template-columns: var(--stop-col) minmax(0, 1fr) 24px;
    grid-template-areas: "stop main go" "stop dl go";
    align-items: start;
  }
  .jobs-tt__deadline { grid-area: dl; font-size: 0.875rem; color: var(--ink-2); white-space: normal; }
  .facts__row { grid-template-columns: 1fr; gap: 2px; }
  .ed-fields, .ed-fields--4 { grid-template-columns: 1fr; }
  .ed-actions .btn { flex: 1 1 100%; justify-content: center; }
  .cms-table .pg-actions { justify-content: flex-start; }
  .cms-table td[data-label] { display: inline-block; margin-inline-end: 20px; font-size: 0.9375rem; }
  .cms-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 500; font-size: 0.8125rem; color: var(--ink-2); }
  .subnav a { padding: 12px 8px; font-size: 0.9375rem; }
  .reg-stats__n { font-size: 1.625rem; }
}

.form .field.is-invalid input, .form .field.is-invalid select { border-bottom-color: var(--danger); }
.page__title--admin + .notice { margin-top: 16px; }
.cms-table .queue__who > .tag { display: inline-block; }
@media (max-width: 640px) {
  .feed .tt__row, .ev-tt .tt__row { grid-template-columns: var(--stop-col) 58px minmax(0, 1fr) 24px; }
  .dblock__m { white-space: normal; font-size: 0.75rem; line-height: 1.3; }
}

/* ---------- Office settings: the mailbox that emails members ---------- */
.set-now { max-width: 920px; margin-block: 8px 32px; border-top: 1.5px solid var(--ink); }
.set-now .facts__row { grid-template-columns: 12em minmax(0, 1fr); }
.set-addr { color: var(--ink-2); font-weight: 400; }
.set-pass { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.set-pass::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--line); background: var(--paper); }
.set-pass--on::before { background: var(--line); }
.set-pass--off { color: var(--danger); }
.set-pass--off::before { border-color: var(--danger); }
.set-error { max-width: 920px; }
.set-reason { margin: -4px 0 16px; padding: 10px 14px; border-radius: 6px; background: var(--paper-2); font: 0.875rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; text-align: left; }
.set-note { flex: 1 1 280px; margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--ink-2); }
.set-test, .set-reset { max-width: 920px; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1.5px solid var(--ink); }
.set-test .page__muted, .set-reset .page__muted { margin-bottom: 16px; }
.set-reset .reject { display: inline-block; }
@media (max-width: 640px) {
  .set-now .facts__row { grid-template-columns: 1fr; }
}

/* ---------- Privacy policy and terms of use ---------- */
.legal__updated { margin: -12px 0 32px; font-size: 0.9375rem; color: var(--ink-2); }
.legal__grid { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.legal__toc { position: sticky; top: 24px; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.legal__toc-title { margin-bottom: 12px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.legal__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { display: grid; grid-template-columns: 2em 1fr; padding-block: 6px; font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.legal__toc a::before { content: counter(toc); color: var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
.legal__toc a:hover { color: var(--line-deep); text-decoration: underline; }
.legal__body { max-width: 70ch; }
.legal__body section { scroll-margin-top: 24px; }
.legal__body section + section h2 { margin-top: 2em; }
.legal__body section:first-child h2 { margin-top: 0; }
.legal__other { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule-soft); }
.legal__other a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
@media (max-width: 900px) {
  .legal__grid { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
}
