/* NADA India: the counter. Steel field, paper paperwork, one stamp colour. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --steel-deep: #0e1b2b;
  --steel: #142840;
  --steel-edge: #2d4260;
  --paper: #f2f1e9;
  --slip: #fcfbf5;
  --recess: #e5e4d8;
  --ink: #141b18;
  --ink-soft: #4a574f;
  --on-steel: #efede2;
  --on-steel-soft: #a9bacb;
  --stamp: #a6321b;
  --stamp-tint: #f0dcd4;
  --metal: #cfb36c;
  --line: rgba(20, 27, 24, 0.16);
  --line-strong: rgba(20, 27, 24, 0.34);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --page: 1180px;
  --gutter: 24px;
}

@media (min-width: 780px) {
  :root { --gutter: 48px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 2px;
}

.cabinet :focus-visible,
.hero :focus-visible,
.join :focus-visible,
.footer :focus-visible {
  outline-color: var(--metal);
}

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

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

ul, ol { margin: 0; padding: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

[hidden] { display: none !important; }

strong { font-weight: 600; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 30;
  background: var(--slip);
  color: var(--ink);
  padding: 10px 16px;
  border: 1px solid var(--ink);
  font-size: 0.9rem;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- type roles */

.label {
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.2;
}

.num { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* ---------------------------------------------------------------- cabinet */

.cabinet {
  background: var(--steel);
  color: var(--on-steel);
  border-bottom: 3px solid var(--metal);
}

.cabinet__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--on-steel);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: block;
  flex: none;
}

.brand__name {
  font-family: var(--sans);
  font-stretch: 70%;
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand__line {
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-steel-soft);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-steel-soft);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--on-steel); border-bottom-color: var(--steel-edge); }

.nav a[aria-current="page"] {
  color: var(--on-steel);
  border-bottom-color: var(--on-steel);
}

.nav .btn {
  margin-left: 6px;
  padding: 11px 18px;
  min-height: 44px;
  white-space: nowrap;
  flex: none;
  border: 1px solid var(--on-steel-soft);
  border-radius: 2px;
  color: var(--on-steel);
  letter-spacing: 0.09em;
}

.nav .btn:hover {
  background: var(--on-steel);
  border-color: var(--on-steel);
  border-bottom-color: var(--on-steel);
  color: var(--steel);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: #26322c; border-color: #26322c; }
.btn:active { transform: translateY(1px); }

.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--quiet:hover { background: var(--recess); border-color: var(--ink); color: var(--ink); }

.btn--onsteel {
  background: transparent;
  color: var(--on-steel);
  border-color: var(--on-steel-soft);
}
.btn--onsteel:hover { background: var(--on-steel); border-color: var(--on-steel); color: var(--steel); }

.link {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
}
.link:hover { text-decoration-color: var(--stamp); }

.link-steel {
  color: var(--on-steel);
  text-decoration-color: var(--steel-edge);
  font-weight: 500;
}
.link-steel:hover { text-decoration-color: var(--on-steel); }

/* ---------------------------------------------------------------- hero */

.hero {
  background: var(--steel);
  color: var(--on-steel);
  overflow: clip;
}

.hero__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 92px) var(--gutter) clamp(56px, 8vw, 104px);
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 260px; }
}

.hero h1 {
  font-family: var(--sans);
  font-stretch: 70%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.008em;
  line-height: 0.92;
  font-size: clamp(2rem, 5.2vw, 4rem);
  max-width: 20ch;
}

.hero__lede {
  margin-top: clamp(20px, 3vw, 30px);
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--on-steel-soft);
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

.hero__seal {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  justify-self: start;
}

.hero__mark {
  width: 152px;
  height: 152px;
  display: block;
  border-radius: 50%;
  flex: none;
}

.hero__seal p {
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-steel-soft);
  line-height: 1.6;
  margin: 0;
}

/* ---------------------------------------------------------------- counter + search slip */

.counter {
  border-top: 3px solid var(--metal);
  background: var(--paper);
}

.counter__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(30px, 4vw, 46px);
}

.search-slip {
  margin-top: -30px;
  background: var(--slip);
  border: 1px solid var(--line-strong);
  border-top: 1px solid var(--ink);
  border-radius: 2px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 14px 28px -20px rgba(20, 27, 24, 0.55);
}

.search-slip__label {
  display: block;
  margin-bottom: 12px;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-row input[type="search"],
.search-row input[type="text"] {
  flex: 1 1 260px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--slip);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}

.search-row input::placeholder { color: #636d78; }

.search-row input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-slip__grid { display: grid; gap: 22px; }

.state-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 16px;
}

.state-pick .label { margin: 0; }

.state-pick select {
  width: 248px;
  max-width: 100%;
  min-height: 38px;
  padding: 7px 32px 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background-color: var(--slip);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23141b18' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}

.note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 12px 0 0;
}

.note--strong { color: var(--ink); }

/* ---------------------------------------------------------------- page frame */

.page { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

.frame {
  display: grid;
  gap: 18px;
  padding: clamp(46px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .frame {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px 56px;
  }
  .frame + .frame { padding-top: clamp(46px, 6vw, 72px); }
}

.frame__label h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.1;
}

.frame__label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.frame__note {
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

.frame__body > * + * { margin-top: 26px; }

/* ---------------------------------------------------------------- page head */

.page-head {
  padding: clamp(40px, 6vw, 68px) 0 clamp(26px, 3vw, 34px);
}

.page-head h1 {
  font-family: var(--sans);
  font-stretch: 70%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.008em;
  line-height: 0.94;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}

.page-head__lede {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------------------------------------------------------------- rack */

.rack {
  list-style: none;
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) { .rack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rack { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

.slot {
  background: var(--recess);
  border: 1px solid var(--line);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
}

.slot__strip {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 12px 4px;
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #55606a;
}

.slot__slip {
  background: var(--slip);
  border-top: 1px solid var(--line-strong);
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.slot__name {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.15;
  margin: 0;
  overflow-wrap: anywhere;
}

.slot__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.slot__fields dt {
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.slot__fields dd {
  margin: 3px 0 0;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.slot__foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dotted var(--line-strong);
}

.rack__empty,
.empty {
  border: 1px dashed var(--line-strong);
  background: var(--slip);
  padding: 26px 22px;
  max-width: 60ch;
}

.empty h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.empty p { color: var(--ink-soft); font-size: 0.95rem; }
.empty .btn { margin-top: 14px; }

/* ---------------------------------------------------------------- standing marks */

.standing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.standing::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  flex: none;
}

.standing--practice { color: var(--ink); }
.standing--practice::before { background: var(--ink); }

.standing--notpractice { color: var(--ink-soft); }

.standing--retired { color: var(--ink-soft); }
.standing--retired::before { border-style: dotted; }

.standing--lapsed { color: var(--stamp); }
.standing--lapsed::before { background: var(--stamp); }

/* ---------------------------------------------------------------- desks */

.desks {
  list-style: none;
  display: grid;
  gap: 0;
}

@media (min-width: 760px) {
  .desks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
}

.desk {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.desk__no {
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding-top: 0.35em;
}

.desk h3 {
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.2;
  margin-bottom: 6px;
}

.desk p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
  max-width: 46ch;
}

/* ---------------------------------------------------------------- bodies */

.muster {
  border-top: 1px solid var(--line);
  padding: clamp(46px, 6vw, 72px) 0;
}

.muster__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 38px); }

@media (min-width: 880px) {
  .muster__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 44ch);
    align-items: end;
    gap: 24px 56px;
  }
}

.muster__head h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.08;
}

.body-block + .body-block { margin-top: clamp(40px, 6vw, 56px); }

.body-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

.body-block__head h3 {
  font-family: var(--sans);
  font-stretch: 70%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.22rem;
  line-height: 1.1;
}

.body-block__count {
  margin: 0;
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.body-block__tools { display: flex; align-items: baseline; gap: 16px; }

.seat-toggle {
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 0 0 2px;
  cursor: pointer;
}

.seat-toggle:hover { color: var(--ink); border-bottom-color: var(--stamp); }
.seat-toggle:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; }

.seat-rack {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 760px) {
  .seat-rack { gap: 14px; margin-top: 20px; }
}

/* A rack shows two rows in a fixed window and drifts upwards. */

.seat-loop {
  --view: 2;
  --seat-h: 296px;
  --seat-gap: 12px;
  --col-w: 158px;
  margin-top: 16px;
}

@media (min-width: 760px) {
  .seat-loop { --view: 3; --seat-h: 324px; --seat-gap: 14px; --col-w: 169px; margin-top: 20px; }
}

.seat-loop.is-live {
  height: calc(var(--view) * var(--seat-h) + (var(--view) - 1) * var(--seat-gap));
  overflow: hidden;
}

.seat-track {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--seat-gap);
}

.seat-loop.is-live .seat-track {
  animation: seat-drift var(--loop-duration, 60s) linear infinite;
}

.seat-loop.is-live:hover .seat-track,
.seat-loop.is-live:focus-within .seat-track,
.seat-loop.is-paused .seat-track,
.seat-loop.is-offscreen .seat-track { animation-play-state: paused; }

@keyframes seat-drift {
  from { transform: translateY(0); }
  to { transform: translateY(var(--shift, -50%)); }
}

/* Cards fill each row, so the remaining rows travel upwards. */

.seat-loop .seat-rack {
  flex: none;
  width: 100%;
  margin-top: 0;
  grid-template-columns: repeat(auto-fill, var(--col-w));
  grid-template-rows: none;
  grid-auto-flow: row;
  grid-auto-rows: var(--seat-h);
  gap: var(--seat-gap);
  justify-content: space-between;
}

.seat-loop .slot--seat { height: var(--seat-h); overflow: hidden; }

.slot--seat .slot__strip { padding: 4px 10px 3px; font-size: 0.62rem; letter-spacing: 0.09em; }

.slot--seat .slot__strip span { overflow-wrap: anywhere; }

.slot--seat .slot__slip { padding: 12px 12px 11px; gap: 10px; }

.slot__id { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }

.slot__portrait {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  background: var(--recess);
  overflow: hidden;
}

.slot__portrait::before,
.slot__portrait::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 27, 24, 0.2);
}

.slot__portrait::before {
  top: 20%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.slot__portrait::after {
  bottom: -1px;
  width: 65%;
  height: 30%;
  border-radius: 999px 999px 0 0;
}

.slot__portrait img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }

.slot--seat .slot__name {
  font-size: 1.02rem;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.slot--seat .slot__fields { gap: 8px 10px; }

.slot--seat .slot__fields dd { min-height: 1.35em; }

.muster__more { margin-top: 26px; }

/* ---------------------------------------------------------------- circulars */

.circ-list { list-style: none; border-top: 1px solid var(--ink); }

.circ-list li { border-bottom: 1px solid var(--line); }

.circ-compact {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr) auto;
  gap: 6px 18px;
  align-items: baseline;
  padding: 14px 0;
  text-decoration: none;
}

.circ-compact:hover .circ-compact__subject { text-decoration: underline; text-decoration-color: var(--stamp); }

.circ-compact__ref {
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.circ-compact__subject { font-size: 0.98rem; }

.circ-compact__date {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .circ-compact { grid-template-columns: minmax(0, 1fr) auto; }
  .circ-compact__ref { grid-column: 1 / -1; }
  .circ-compact__subject { grid-column: 1; }
}

details.circ {
  border-bottom: 1px solid var(--line);
}

details.circ summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 108px 18px;
  gap: 4px 18px;
  align-items: baseline;
  padding: 16px 0;
}

details.circ summary::-webkit-details-marker { display: none; }

details.circ summary:hover .circ__subject { text-decoration: underline; text-decoration-color: var(--stamp); }

.circ__ref {
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.circ__subject {
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.25;
}

.circ__date {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
}

.circ__chev {
  justify-self: end;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 140ms ease-out;
}

details[open] .circ__chev { transform: translateY(2px) rotate(225deg); }

.circ__body {
  padding: 0 0 22px;
  max-width: 68ch;
}

.circ__body p { color: var(--ink-soft); font-size: 0.98rem; }

.circ__meta {
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 12px;
}

@media (max-width: 720px) {
  details.circ summary {
    grid-template-columns: minmax(0, 1fr) 18px;
  }
  .circ__ref { grid-column: 1; }
  .circ__subject { grid-column: 1; }
  .circ__date { grid-column: 1; text-align: left; }
  .circ__chev { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}

/* ---------------------------------------------------------------- joining band */

.join {
  background: var(--steel);
  color: var(--on-steel);
  border-top: 3px solid var(--metal);
  border-bottom: 3px solid var(--metal);
}

.join__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) var(--gutter);
}

.join h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--on-steel);
}

.join__body {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--on-steel-soft);
}

.steps {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 32px 0 30px;
  border-top: 1px solid var(--steel-edge);
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.step {
  padding: 16px 18px 16px 0;
  border-bottom: 1px solid var(--steel-edge);
}

@media (min-width: 900px) {
  .step {
    border-bottom: 0;
    border-right: 1px solid var(--steel-edge);
    padding-right: 18px;
  }
  .step:last-child { border-right: 0; }
}

.step__no {
  display: block;
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--on-steel-soft);
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--on-steel);
  max-width: 24ch;
}

/* ---------------------------------------------------------------- limits statement */

.limits {
  background: var(--recess);
  border-bottom: 1px solid var(--line);
}

.limits__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 76px) var(--gutter);
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .limits__inner { grid-template-columns: 220px minmax(0, 1fr); gap: 24px 56px; }
}

.limits h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.15;
  max-width: 14ch;
}

.limits__body {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.1vw, 1.62rem);
  line-height: 1.42;
  max-width: 58ch;
  margin: 0;
}

/* ---------------------------------------------------------------- table */

.table-wrap { overflow-x: auto; }

.reg {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.reg caption {
  text-align: left;
  padding-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.reg thead th {
  text-align: left;
  padding: 0 16px 9px 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.reg tbody tr { border-bottom: 1px solid var(--line); }
.reg tbody tr:hover { background: rgba(20, 27, 24, 0.03); }

.reg td {
  padding: 13px 16px 13px 0;
  vertical-align: baseline;
}

.reg--register th:last-child,
.reg--register td:last-child { text-align: right; padding-right: 0; }

.reg .cell-name {
  font-family: var(--serif);
  font-size: 1.07rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.reg .cell-enrol { white-space: nowrap; letter-spacing: 0.02em; }
.reg td { color: var(--ink); }
.reg td.dim { color: var(--ink-soft); }

@media (max-width: 760px) {
  .reg thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .reg, .reg tbody, .reg tr, .reg td { display: block; width: 100%; }
  .reg tbody tr { padding: 14px 0; }
  .reg td { padding: 2px 0; text-align: left !important; }
  .reg td::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 96px;
    padding-right: 10px;
    font-family: var(--sans);
    font-stretch: 62%;
    font-weight: 600;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .reg td.cell-name { padding-bottom: 6px; }
  .reg td.cell-name::before { display: none; }
}

/* ---------------------------------------------------------------- filters */

.filters {
  display: grid;
  gap: 14px;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--ink);
}

@media (min-width: 760px) {
  .filters { grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(0, 1fr)) auto; align-items: end; }
  .filters--circulars { grid-template-columns: minmax(0, 1.6fr) minmax(200px, 0.6fr); }
}

@media (max-width: 759px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .field:nth-child(1),
  .filters .field:nth-child(2),
  .filters__actions { grid-column: 1 / -1; }
  .filters--circulars .field { grid-column: 1 / -1; }
}

.filters .field { margin: 0; }

.filters__actions { display: flex; align-items: end; }

.result-count {
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 14px 0 12px;
}

/* ---------------------------------------------------------------- forms */

.field { display: flex; flex-direction: column; }

.field > label:not(.declaration),
.fieldset > legend {
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 7px;
  color: var(--ink);
  padding: 0;
}

.fieldset { border: 0; padding: 0; margin: 0; }

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--slip);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea { min-height: 140px; resize: vertical; }

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.field input::placeholder,
.field textarea::placeholder { color: #666f69; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--ink); }

.field .hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.field__error {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--stamp);
  display: none;
}

.field[data-invalid="true"] input:not([type="checkbox"]):not([type="radio"]),
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea {
  border-color: var(--stamp);
  background: var(--stamp-tint);
}

.field[data-invalid="true"] .field__error { display: block; }

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--slip);
  font-size: 0.95rem;
}



.choices { display: grid; gap: 8px; }
@media (min-width: 560px) { .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.declaration {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  background: var(--slip);
  font-size: 0.95rem;
}

.choice input,
.declaration input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: none;
  flex: none;
  accent-color: var(--ink);
  -webkit-appearance: auto;
  appearance: auto;
}

.declaration[data-invalid="true"] { border-color: var(--stamp); background: var(--stamp-tint); }

.fieldset[data-invalid="true"] .choice { border-color: var(--stamp); }

.rack__empty p + p { margin-top: 10px; }

.form-errors {
  border: 1px solid var(--stamp);
  background: var(--stamp-tint);
  padding: 16px 18px;
  margin-bottom: 24px;
}

.form-errors h3 {
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--stamp);
  margin-bottom: 8px;
}

.form-errors ul { margin: 0; padding-left: 18px; }
.form-errors li { font-size: 0.9rem; }
.form-errors a { color: var(--stamp); }

.confirm {
  border: 1px solid var(--ink);
  background: var(--slip);
  padding: clamp(22px, 3vw, 30px);
}

.confirm h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.confirm p { color: var(--ink-soft); max-width: 60ch; }
.confirm .btn { margin-top: 18px; }

.form-panel {
  background: var(--slip);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--ink);
  padding: clamp(22px, 3vw, 34px);
}

.form-panel h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.form-panel__intro { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 26px; }

.form-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 700px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; }
  .field--full { grid-column: 1 / -1; }
}

.form-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

/* ---------------------------------------------------------------- prose pages */

.prose { max-width: 64ch; }
.prose p { color: var(--ink); margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 0 0 12px;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 28px 0 8px;
}
.prose ul { margin: 0 0 1em; padding-left: 0; list-style: none; }
.prose ul li {
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--line);
  position: relative;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 10px;
  height: 1px;
  background: var(--ink-soft);
}

.body-list { list-style: none; border-top: 1px solid var(--ink); }

.body-list li {
  display: grid;
  gap: 6px 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .body-list li { grid-template-columns: 210px minmax(0, 1fr); }
}

.body-list dt {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.3;
}

.body-list dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
  max-width: 58ch;
}

/* ---------------------------------------------------------------- sample note */

.sample-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  background: transparent;
  font-size: 0.84rem;
  color: var(--ink-soft);
  max-width: 72ch;
}

.sample-note::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  background: var(--stamp);
  flex: none;
}

/* ---------------------------------------------------------------- contact aside */

.contact-grid { display: grid; gap: 26px; }

@media (min-width: 940px) {
  .contact-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 44px; align-items: start; }
}

.side-block {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}

.side-block + .side-block { margin-top: 28px; }

.side-block h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.side-block p { color: var(--ink-soft); font-size: 0.95rem; }

.side-block .email {
  display: inline-block;
  margin: 4px 0 10px;
  font-size: 1.02rem;
  font-family: var(--sans);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- footer */

.footer {
  background: var(--steel-deep);
  color: var(--on-steel-soft);
  border-top: 3px solid var(--metal);
}

.footer__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
  display: grid;
  gap: 30px;
}

@media (min-width: 860px) {
  .footer__inner { grid-template-columns: 1.4fr 1fr 1.4fr; gap: 44px; }
}

.footer nav a { padding: 5px 0; }

.footer .brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer .brand__name { color: var(--on-steel); font-size: 1.3rem; }
.footer .brand__line { color: var(--on-steel-soft); }

.footer p { font-size: 0.88rem; max-width: 34ch; color: var(--on-steel-soft); }

.footer nav { display: flex; flex-direction: column; gap: 10px; }

.footer nav a {
  color: var(--on-steel-soft);
  text-decoration: none;
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer nav a:hover { color: var(--on-steel); text-decoration: underline; }

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.footer__mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  flex: none;
}

.footer__legal {
  border-top: 1px solid var(--steel-edge);
  margin-top: 8px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #8d9fb3;
}

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * {
    animation: rise 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero__inner > *:nth-child(2) { animation-delay: 90ms; }

  .slot,
  .reg tbody tr {
    animation: rule-in 340ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes rule-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .seat-loop.is-live { overflow-y: auto; overflow-x: hidden; }
  .seat-loop.is-live .seat-track { animation: none; }
  .seat-rack--ghost { display: none; }
}

/* ---------------------------------------------------------------- print */

@media print {
  .cabinet, .join, .footer, .search-slip, .filters, .state-pick, .seat-toggle { display: none; }
  body { background: #fff; }
  .hero { background: #fff; color: #000; }
  .hero__lede { color: #333; }
  .seat-loop.is-live { height: auto; overflow: visible; }
  .seat-rack--ghost { display: none; }
  .seat-loop .seat-rack {
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-auto-rows: auto;
    justify-content: start;
  }
}
