/* ==========================================================================
   Legal Directory — design system
   Dark grey ground, deep green accents, editorial serif display.
   ========================================================================== */

/* 1. Reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

ul[class], ol[class] { list-style: none; padding: 0; }

img, svg { display: block; max-width: 100%; }

[hidden] { display: none !important; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  /* ground — lifted on 1 Dec 2026: everything moved a step up and a shade
     warmer, because the site read as a dark room. Still a night palette, but
     with the lights on: more contrast between a panel and the page, lighter
     rules, and warmer neutrals so the photographs sit in it without a seam. */
  --bg:           #121917;
  --bg-soft:      #172020;
  --surface:      #1c2725;
  --surface-2:    #24312e;
  --surface-3:    #2c3a36;

  /* greens */
  --green-deep:   #082a20;
  --green:        #0f4634;
  --green-mid:    #1a6b4f;
  --accent:       #74e8b4;
  --accent-soft:  #a9d9c3;
  --accent-dim:   #3d9f78;

  /* gold: reserved for the reward at the end of a contributions bar, and
     nothing else — it only means "this is what you get" */
  --gold:         #e3bd72;
  --gold-soft:    #f4d79b;
  --gold-line:    rgba(227, 189, 114, 0.42);

  /* lines + text */
  --line:         #36433f;
  --line-soft:    #29352f;
  --line-bright:  #4b5a54;
  --text:         #f2f5f3;
  --text-2:       #d2dbd6;
  --muted:        #a3b0aa;
  --muted-2:      #7f8e88;

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1180px;
  /* the banner's own height — the sticky toolbar and the sticky side rails
     sit under it, so they are measured from this one value */
  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* 3. Base ----------------------------------------------------------------- */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss01" 1;
  overflow-x: hidden;
}

::selection { background: var(--green-mid); color: #f4fffa; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

strong { font-weight: 600; color: var(--text); }

/* 4. Layout --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent-dim);
  flex: none;
}

.eyebrow--plain::before { display: none; }

.lede {
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.66;
  color: var(--text-2);
  max-width: 62ch;
}

.mono {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* 5. Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 25, 23, 0.86);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line-soft);
  background: rgba(18, 25, 23, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand-mark {
  width: 37px;
  height: 37px;
  border-radius: 5px;
  background: linear-gradient(160deg, var(--green-mid), var(--green-deep));
  border: 1px solid rgba(116, 232, 180, 0.22);
  display: grid;
  place-items: center;
  flex: none;
}

.brand-mark svg { width: 21px; height: 21px; stroke: var(--accent); stroke-width: 1.55; fill: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }

.brand-name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--text);
}

.brand-sub {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }

/* The tabs are buttons, not underlined links: a soft outline at rest, a
   filled green one for the page you are on. (1 Dec 2026) */
.nav a {
  position: relative;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-bright);
}

.nav a[aria-current="page"] {
  color: var(--accent);
  background: rgba(26, 107, 79, 0.26);
  border-color: rgba(116, 232, 180, 0.3);
}

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  place-items: center;
}

.nav-toggle svg { width: 18px; height: 18px; stroke-width: 1.7; }

/* 6. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .22s var(--ease), border-color .22s var(--ease),
              color .22s var(--ease), transform .22s var(--ease);
  white-space: nowrap;
}

.btn svg { width: 15px; height: 15px; stroke-width: 1.8; flex: none; }

.btn--primary {
  background: var(--green);
  border-color: rgba(116, 232, 180, 0.32);
  color: #eafff4;
}

.btn--primary:hover {
  background: var(--green-mid);
  border-color: rgba(116, 232, 180, 0.5);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.015);
}

.btn--ghost:hover { border-color: var(--line-bright); background: rgba(255, 255, 255, 0.05); }

.btn--quiet { color: var(--accent); padding-inline: 4px; }
.btn--quiet:hover { color: var(--accent-soft); }

.btn--sm { padding: 8px 14px; font-size: 12.5px; }

.link-underline {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(116, 232, 180, 0.3);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.link-underline:hover { color: var(--accent-soft); border-bottom-color: var(--accent-soft); }

/* 7. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(64px, 9vw, 124px) clamp(48px, 6vw, 80px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background-image:
    /* a warm light source in the top-left corner: the biggest single change in
       the 1 Dec lift — the page now has somewhere for the light to come from */
    radial-gradient(72% 58% at 6% -8%, rgba(255, 242, 218, 0.13), transparent 64%),
    radial-gradient(115% 95% at 15% -5%, rgba(44, 148, 110, 0.32), transparent 60%),
    radial-gradient(85% 75% at 94% 104%, rgba(227, 189, 114, 0.07), transparent 62%);
}

/* a film of grain over the whole hero, so the light reads as printed
   atmosphere rather than banded gradients */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
}

/* The hero field: a lattice of short ticks on a canvas. They stand upright
   at rest, turn to face the pointer, and part around a band of alignment
   that crosses the hero every thirteen seconds. */
.hero-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* the lattice is at its quietest at the very top, and dissolves toward
     the foot of the hero so nothing meets the border */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, #000 24%, #000 54%, transparent 95%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, #000 24%, #000 54%, transparent 95%);
}

.hero > .wrap { position: relative; z-index: 3; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.032em;
  margin-top: 22px;
  max-width: 15ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-soft);
}

.hero .lede { margin-top: 24px; max-width: 54ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* The start panel — the four doors of the directory, as buttons.
   Replaced the hero search field on 1 Dec 2026: the field only ever
   forwarded to /courts, so it asked a question the buttons answer. */
.start-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 36px;
  max-width: 640px;
}

.start-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 15px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  text-decoration: none;
  isolation: isolate;
  transition: border-color .26s var(--ease), background .26s var(--ease),
              transform .26s var(--ease), box-shadow .26s var(--ease);
}

/* a mint bloom that fades in from the icon corner */
.start-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(120% 100% at 12% 0%, rgba(26, 107, 79, 0.55), transparent 68%);
  transition: opacity .3s var(--ease);
}

.start-card:hover {
  border-color: rgba(116, 232, 180, 0.34);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(116, 232, 180, 0.06);
}

.start-card:hover::before { opacity: 1; }

.start-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.start-card--lead {
  border-color: rgba(116, 232, 180, 0.24);
  background: linear-gradient(158deg, rgba(26, 107, 79, 0.34), rgba(255, 255, 255, 0.012) 72%);
}

.start-card--lead .start-icon {
  background: rgba(116, 232, 180, 0.14);
  border-color: rgba(116, 232, 180, 0.3);
  color: var(--accent);
}

.start-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.start-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(116, 232, 180, 0.06);
  border: 1px solid rgba(116, 232, 180, 0.14);
  color: var(--accent-soft);
  transition: color .26s var(--ease), background .26s var(--ease), border-color .26s var(--ease);
}

.start-icon svg { width: 17px; height: 17px; stroke-width: 1.7; }

.start-card:hover .start-icon {
  color: var(--accent);
  background: rgba(116, 232, 180, 0.12);
  border-color: rgba(116, 232, 180, 0.26);
}

.start-arrow {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  stroke-width: 1.7;
  color: var(--muted-2);
  transition: transform .26s var(--ease), color .26s var(--ease);
}

.start-card:hover .start-arrow { color: var(--accent); transform: translate(2px, -2px); }

.start-title {
  display: block;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--text);
}

.start-meta {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

/* hero search (kept for other pages' fields) */
.search-block {
  margin-top: 30px;
  max-width: 560px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.search-field:focus-within {
  border-color: rgba(116, 232, 180, 0.45);
  box-shadow: 0 0 0 4px rgba(116, 232, 180, 0.07);
}

.search-field svg { width: 17px; height: 17px; stroke: var(--muted); stroke-width: 1.8; flex: none; }

.search-field input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text);
}

.search-field input::placeholder { color: var(--muted-2); }
.search-field input:focus { outline: none; }

.search-hint {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.search-hint a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--line-bright); }
.search-hint a:hover { color: var(--accent); border-color: var(--accent-dim); }

/* hero aside */
.hero-aside {
  border-left: 1px solid var(--line-soft);
  padding-left: clamp(20px, 3vw, 32px);
}

.hero-aside dl { display: grid; gap: 22px; }

.hero-aside dt {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero-aside dd {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.hero-aside dd span {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  display: block;
  margin-top: 8px;
}

/* 8. Stats strip ---------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  overflow: hidden;
}

.stat {
  padding: 26px clamp(16px, 2.4vw, 28px);
  border-right: 1px solid var(--line-soft);
}

.stat:last-child { border-right: 0; }

.stat-num {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.stat-label {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* 9. Section headings ----------------------------------------------------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.028em;
  margin-top: 14px;
}

.section-head p { max-width: 46ch; }

/* 10. Province grid ------------------------------------------------------- */
.province-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.province-card {
  position: relative;
  display: block;
  padding: 24px 24px 22px;
  background: var(--bg-soft);
  text-decoration: none;
  transition: background .25s var(--ease);
}

.province-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-dim);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--ease);
}

.province-card:hover { background: var(--surface); }
.province-card:hover::before { transform: scaleY(1); }

.province-index {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.province-name {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 23px);
  letter-spacing: -0.018em;
  margin-top: 12px;
  color: var(--text);
}

.province-meta {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.province-meta b { color: var(--text-2); font-weight: 500; font-variant-numeric: tabular-nums; }

.province-card .go {
  position: absolute;
  right: 20px;
  bottom: 20px;
  color: var(--muted-2);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}

.province-card .go svg { width: 16px; height: 16px; stroke-width: 1.7; }
.province-card:hover .go { opacity: 1; transform: none; color: var(--accent); }

/* 11. Feature / step cards ------------------------------------------------ */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature {
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(26, 107, 79, 0.18);
  border: 1px solid rgba(116, 232, 180, 0.16);
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-icon svg { width: 18px; height: 18px; stroke-width: 1.6; }

.feature h3 {
  font-size: 21px;
  letter-spacing: -0.018em;
  margin-bottom: 10px;
}

.feature p { font-size: 14.5px; color: var(--muted); line-height: 1.64; }

.feature .step-num {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  display: block;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

/* 12. Image band ---------------------------------------------------------- */
.band {
  position: relative;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  background: var(--green-deep);
}

.band-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.55) contrast(1.05);
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 11, 0.96) 8%, rgba(8, 12, 11, 0.62) 52%, rgba(8, 12, 11, 0.9) 100%),
    linear-gradient(180deg, rgba(8, 12, 11, 0.4), rgba(8, 12, 11, 0.75));
}

.band-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(56px, 8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.band h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.028em;
  max-width: 18ch;
}

.band p { color: var(--text-2); margin-top: 18px; max-width: 46ch; }

.band-list { display: grid; gap: 0; }

.band-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  align-items: baseline;
}

.band-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }

.band-list b {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--accent-soft);
  white-space: nowrap;
}

.band-list span { font-size: 14px; color: var(--text-2); }

/* 13. Directory page ------------------------------------------------------ */
.page-head {
  padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(26, 107, 79, 0.16), transparent 62%),
    var(--bg);
}

.page-head h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -0.03em;
  margin-top: 16px;
}

.page-head .lede { margin-top: 16px; }

.page-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

.page-head-meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-head-meta b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.page-head-meta svg { width: 14px; height: 14px; stroke-width: 1.7; color: var(--accent-dim); }

/* toolbar */
.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(20, 28, 26, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  padding-block: 14px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar .search-field { flex: 1 1 260px; max-width: 420px; padding-block: 3px; }
.toolbar .search-field input { padding-block: 9px; font-size: 14px; }

.select-wrap { position: relative; flex: none; }

.select-wrap svg {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  stroke-width: 2;
  pointer-events: none;
}

select.control,
input.control {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 34px 10px 13px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s var(--ease);
  max-width: 100%;
}

select.control:hover { border-color: var(--line-bright); }
select.control:focus { outline: none; border-color: rgba(116, 232, 180, 0.45); }

select.control option { background: var(--surface-2); color: var(--text); }

.toolbar-divider { width: 1px; align-self: stretch; background: var(--line-soft); margin-inline: 4px; }

/* section chips (filter) */
.chip-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin-top: 12px;
}

.chip-row::-webkit-scrollbar { display: none; }

.chip-btn {
  flex: none;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}

.chip-btn:hover { color: var(--text); border-color: var(--line-bright); }

.chip-btn[aria-pressed="true"] {
  color: #eafff4;
  background: var(--green);
  border-color: rgba(116, 232, 180, 0.4);
}

.chip-btn:disabled { opacity: .38; cursor: not-allowed; }

/* results meta */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 20px 8px;
}

.results-count { font-size: 13px; color: var(--muted); }
.results-count b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

/* list rows */
.list {
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 168px;
}

.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 28px;
  padding: 20px 8px 20px 4px;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
  scroll-margin-top: 168px;
  transition: background .2s var(--ease);
}

.entry--link { cursor: pointer; }

.entry:hover { background: rgba(255, 255, 255, 0.018); }

.entry-main { min-width: 0; }

.entry-name {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 21px);
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--text);
}

.entry-name a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.entry-name a svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
  flex: none;
  color: var(--accent-dim);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.entry:hover .entry-name a svg,
.entry-name a:focus-visible svg { opacity: 1; transform: none; }

.entry-name a:hover { color: var(--accent-soft); border-bottom-color: var(--accent-dim); }

.entry-sub {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.entry-sub .sep { color: var(--line-bright); }

.entry-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.tag {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.tag--civil {
  color: var(--accent);
  border-color: rgba(116, 232, 180, 0.3);
  background: rgba(116, 232, 180, 0.07);
}

.tag--regional {
  color: var(--accent-soft);
  border-color: rgba(169, 217, 195, 0.26);
  background: rgba(169, 217, 195, 0.06);
}

.tag--more { color: var(--muted-2); }

/* court days: a category label with the allocation the court gives it. Normal
   case, so a weekday reads as a weekday rather than a badge. */
.tag--days {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 11px;
  padding: 3px 9px;
  color: var(--muted-2);
}

.tag--days b { color: var(--accent-soft); font-weight: 500; }

.entry-contact {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
  min-width: 0;
}

.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  max-width: 100%;
  transition: color .18s var(--ease);
}

.contact-line svg { width: 13px; height: 13px; stroke-width: 1.8; color: var(--muted-2); flex: none; }

.contact-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

a.contact-line:hover { color: var(--accent); }
a.contact-line:hover svg { color: var(--accent-dim); }

.contact-line--muted { color: var(--muted-2); }

/* A number the account has not paid for: said, not hidden. */
.contact-line--locked {
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.contact-line--locked svg { color: var(--accent-dim); }

/* What the paid plans add, above the list. */
.contacts-state {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 10px;
  padding: 12px 15px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.015);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.contacts-state svg { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--muted-2); }

.contacts-state a { color: var(--accent); }
.contacts-state a:hover { color: var(--text); }

.contacts-state.is-open {
  border-color: rgba(116, 232, 180, 0.2);
  background: rgba(116, 232, 180, 0.05);
  color: var(--text-2);
}

.contacts-state.is-open svg { color: var(--accent); }

/* A member whose particulars could not be fetched: said plainly, not hidden. */
.contacts-state-warn { color: #e8b48a; }

/* The card that stands where a switchboard and a court manager used to be. */
.contact-lock {
  padding: 18px 18px 16px;
  border: 1px solid rgba(116, 232, 180, 0.2);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(116, 232, 180, 0.07), rgba(116, 232, 180, 0.02));
}

.contact-lock-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-lock-head svg { width: 14px; height: 14px; flex: none; }

.contact-lock-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: var(--text-2);
}

.contact-lock-body b { color: var(--text); font-weight: 500; }

.contact-lock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.contact-lock-foot {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted-2);
}

/* A safety line, kept out of the lock above it. */
.contact-card--safety { margin-top: 10px; border-color: rgba(255, 255, 255, 0.1); }


/* about layout */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 72px);
}

/* empty state */
.empty {
  padding: 64px 24px 72px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}

.empty-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
}

.empty-icon svg { width: 20px; height: 20px; stroke-width: 1.6; }
.empty h3 { font-size: 22px; margin-bottom: 10px; }
.empty p { color: var(--muted); font-size: 14.5px; max-width: 42ch; margin-inline: auto; }
.empty .btn { margin-top: 22px; }

.empty-context {
  margin-top: 12px !important;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2) !important;
  font-size: 13px !important;
  max-width: 52ch !important;
}

/* load more */
.load-more-wrap { display: flex; justify-content: center; padding-block: 36px; }

.load-more-note {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
}

/* 14. Drawer -------------------------------------------------------------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 7, 6, 0.68);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  width: min(520px, 100%);
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  transform: translateX(101%);
  transition: transform .42s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
}

.drawer.is-open { transform: none; visibility: visible; }

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  background: rgba(15, 19, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.drawer-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.drawer-title {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.022em;
  line-height: 1.14;
  margin-top: 8px;
  color: var(--text);
}

.drawer-close {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.drawer-close:hover { color: var(--text); border-color: var(--line-bright); background: rgba(255,255,255,.04); }
.drawer-close svg { width: 16px; height: 16px; stroke-width: 1.8; }

.drawer-body { padding: 24px; display: grid; gap: 26px; }

.drawer-section > h4 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.contact-card {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  transition: background .18s var(--ease);
}

.contact-row:last-child { border-bottom: 0; }
a.contact-row:hover { background: var(--surface-2); }

.contact-row-key {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 10px;
  font-size: 12.5px;
  color: var(--muted);
  min-width: 0;
  flex: 1 1 auto;
}

/* secondary line inside a contact key (a name under a role, a clarifier) */
.contact-row-key > span[style*="11.5px"],
.contact-row-key > .val-muted { flex: 0 0 100%; display: block; }

.contact-row-val a { display: block; }
.contact-row-val a + a { margin-top: 2px; }

.contact-row-key svg { width: 14px; height: 14px; stroke-width: 1.7; color: var(--accent-dim); flex: none; }

.contact-row-val {
  font-size: 13.5px;
  color: var(--text);
  text-align: right;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
  flex: 0 1 auto;
}

.drawer-note {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 12px;
  line-height: 1.6;
}

.drawer-note a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; }

.drawer-note b { color: var(--muted); font-weight: 500; }

/* --- court days (drawer) --- */
.day-card {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.day-row {
  background: var(--surface);
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  justify-items: start;
}

.day-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }

.day-key {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.day-flag { font-size: 10.5px; color: var(--muted-2); }

.day-flag--open { font-style: italic; }

.day-val {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
}

.day-val--open {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted-2);
  font-style: italic;
}

.val-name { display: block; font-size: 12.5px; color: var(--text); margin-bottom: 2px; }
.val-mail { display: block; word-break: break-all; }
.val-muted { color: var(--muted-2); font-size: 11.5px; }

a.contact-row:hover .contact-row-val { color: var(--accent); }

.detail-list { display: grid; gap: 14px; }

.detail-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }

.detail-key {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 3px;
}

.detail-val { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.detail-val a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(116,232,180,.28); }
.detail-val a:hover { color: var(--accent-soft); }

.drawer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.drawer-actions .btn { flex: 1 1 auto; }

/* 15. Forms --------------------------------------------------------------- */
.form-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  padding: clamp(24px, 3.4vw, 40px);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field--half { grid-column: span 1; }

/* the password form, opened from the row above it */
.pass-edit {
  margin-top: 20px;
  padding: 18px 20px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
}
.pass-edit .form-grid { margin-top: 0; }
@media (max-width: 560px) {
  .field--half { grid-column: 1 / -1; }
}

.field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

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

.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(116, 232, 180, 0.45);
  box-shadow: 0 0 0 4px rgba(116, 232, 180, 0.07);
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.form-status { font-size: 13.5px; line-height: 1.5; }
.form-status.is-error { color: #ffb4a2; }
.form-status.is-ok { color: var(--accent); }

.btn[disabled] { opacity: .6; cursor: progress; }

/* 16. Prose --------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.026em; margin-top: clamp(40px, 5vw, 64px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin-top: 34px; margin-bottom: 10px; letter-spacing: -0.015em; }
.prose p { margin-top: 16px; color: var(--text-2); }
.prose ul { margin-top: 16px; padding-left: 0; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 15px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 1px; background: var(--accent-dim); }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(116,232,180,.28); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose strong { color: var(--text); }

.prose ol { margin-top: 16px; padding-left: 22px; display: grid; gap: 10px; list-style: decimal; }
.prose ol li { padding-left: 6px; }
.prose ol li::before { display: none; }
.prose h2 + p, .prose h3 + p { margin-top: 12px; }

/* 16b. Documents — terms, privacy, refunds ------------------------------- */
.doc-layout { display: grid; gap: clamp(32px, 5vw, 60px); }

.doc-body { max-width: 76ch; }
.doc-body h2 { scroll-margin-top: 96px; }
.doc-body .doc-intro { font-size: 17px; line-height: 1.68; color: var(--text-2); margin-top: 14px; max-width: 64ch; }

.doc-side { display: grid; gap: 16px; align-content: start; }

.doc-card {
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.doc-card h4 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.doc-toc { display: grid; gap: 1px; }

.doc-toc a {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  padding: 7px 0 7px 14px;
  color: var(--text-2);
  text-decoration: none;
  border-left: 1px solid var(--line);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.doc-toc a:hover { color: var(--accent); border-left-color: var(--accent-dim); }

.doc-stamp { font-size: 12.5px; line-height: 1.65; color: var(--muted-2); }
.doc-stamp b { color: var(--text-2); font-weight: 500; }
.doc-stamp + .doc-stamp { margin-top: 12px; }

.doc-siblings { display: grid; gap: 8px; }
.doc-siblings a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-2);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color .18s var(--ease);
}
.doc-siblings a:last-child { border-bottom: 0; }
.doc-siblings a:hover { color: var(--accent); }
.doc-siblings a span { color: var(--muted-2); }

@media (min-width: 1040px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr) 316px; align-items: start; }
  .doc-side { position: sticky; top: calc(var(--header-h) + 20px); }
}

@media (max-width: 1039px) {
  /* the contents rail sits at the end of the flow on small screens, where it
     is no longer an aid — the version stamp and cross-links stay */
  .doc-card--toc { display: none; }
}

.note {
  border-left: 2px solid var(--accent-dim);
  background: rgba(26, 107, 79, 0.09);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--text-2);
  margin-top: 24px;
}

.note b { color: var(--text); }

/* 17. Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-soft);
  padding-block: clamp(44px, 6vw, 64px) 32px;
  margin-top: clamp(48px, 6vw, 80px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.footer-about p { margin-top: 16px; font-size: 13.5px; color: var(--muted); max-width: 34ch; line-height: 1.6; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}

.footer-col ul { display: grid; gap: 10px; }

.footer-col a {
  font-size: 13.5px;
  color: var(--text-2);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted-2);
}

.footer-bottom p { max-width: 70ch; line-height: 1.6; }

.footer-legal {
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 6px;
}

.footer-legal a {
  font-size: 12.5px;
  color: var(--text-2);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer-legal a:hover { color: var(--accent); }

/* 20. Account / membership management ------------------------------------- */
.acct-panel {
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 26px);
}

.acct-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.acct-head h2 { font-size: clamp(22px, 2.6vw, 27px); letter-spacing: -0.02em; }
.acct-head p { font-size: 14px; color: var(--muted); margin-top: 8px; max-width: 46ch; line-height: 1.6; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  color: var(--muted);
  white-space: nowrap;
}

.badge--live {
  border-color: rgba(116, 232, 180, 0.34);
  background: rgba(26, 107, 79, 0.18);
  color: var(--accent);
}

.acct-rows { margin-top: 20px; border-top: 1px solid var(--line-soft); }

.acct-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.acct-label { color: var(--muted); }
.acct-value { color: var(--text); font-weight: 500; text-align: right; }
.acct-value.is-quiet { color: var(--muted-2); font-weight: 400; }

/* contributions meter: the bar, and the reward it ends in */
.contrib-meter { margin-bottom: 26px; }

/* gold text for a reward mentioned in a table or a line of copy */
.is-gold { color: var(--gold-soft); }

.contrib-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.contrib-meter-label {
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.contrib-meter-count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.contrib-meter-count b { color: var(--text-2); font-weight: 600; }

.contrib-meter-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }

.contrib-meter-row .contrib-track {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 8px;
  margin-top: 0;
}

.contrib-track--seg { position: relative; }

/* one notch per contribution needed, so the bar reads as a count, not a mood */
.contrib-track--seg::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(100% / var(--seg) - 1.5px),
    rgba(8, 10, 9, 0.66) calc(100% / var(--seg) - 1.5px),
    rgba(8, 10, 9, 0.66) calc(100% / var(--seg))
  );
}

/* the reward, gold, sitting at the end of its bar */
.contrib-prize {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(227, 189, 114, 0.16), rgba(227, 189, 114, 0.05));
  color: var(--gold-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(227, 189, 114, 0.09);
}

.contrib-meter-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 46ch;
}

/* contributions: how far the current batch has come */
.contrib-track {
  margin-top: 20px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.contrib-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent-dim);
  transition: width .5s cubic-bezier(.2, .7, .3, 1);
}

.contrib-fill.is-reward { background: var(--accent); }

.contrib-legend {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.contrib-legend b { color: var(--text); font-weight: 600; }
.acct-note { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 56ch; }
.acct-note b { color: var(--text-2); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .contrib-fill { transition: none; }
}

.danger-zone { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.danger-zone > p { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.6; max-width: 52ch; }

.btn--danger {
  border: 1px solid rgba(255, 140, 120, 0.32);
  color: #ffb4a2;
  background: transparent;
}

.btn--danger:hover { background: rgba(255, 140, 120, 0.08); border-color: rgba(255, 140, 120, 0.5); }

.confirm-box {
  margin-top: 16px;
  border: 1px solid rgba(255, 140, 120, 0.28);
  background: rgba(255, 140, 120, 0.05);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.confirm-box h4 { font-size: 15px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.confirm-box p { font-size: 13.5px; line-height: 1.65; color: var(--text-2); margin-top: 8px; }
.confirm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.check-row { display: flex; align-items: flex-start; gap: 11px; margin-top: 4px; }

.check-row input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--green-mid);
  cursor: pointer;
}

.check-row label {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
  cursor: pointer;
}

.check-row a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(116, 232, 180, 0.28); }
.check-row a:hover { border-bottom-color: var(--accent); }

.note--warn {
  border-left-color: rgba(255, 140, 120, 0.55);
  background: rgba(255, 140, 120, 0.07);
}

/* 18. Reveal -------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* 19. Responsive ---------------------------------------------------------- */
@media (min-width: 1040px) {
  .about-layout { grid-template-columns: minmax(0, 1fr) 392px; align-items: start; }
  .about-layout > #corrections { position: sticky; top: calc(var(--header-h) + 20px); }
}

@media (max-width: 1100px) {
  .toolbar .search-field { flex: 1 1 100%; max-width: none; }
  .select-wrap { flex: 1 1 0; }
  .select-wrap select.control { width: 100%; }
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 28px; }
  .hero-aside dl { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .hero-aside dd { font-size: 26px; }
  .band-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .province-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* the folded banner is shorter — the mid-range block below overrides this
     to the taller two-row banner wherever the tabs are shown */
  :root { --header-h: 64px; }
  .chip-row {
    padding-right: 34px;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 40px), transparent 100%);
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  /* the folded menu reads as a stack of buttons, not a bare list */
  .nav.is-open a {
    padding: 13px 16px;
    font-size: 15px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: var(--surface);
  }
  .nav.is-open a:hover { border-color: var(--line-bright); }
  .nav.is-open a[aria-current="page"] { border-color: rgba(116, 232, 180, 0.3); background: rgba(26, 107, 79, 0.22); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav-toggle { display: grid; }
  .header-cta .btn { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .province-grid { grid-template-columns: 1fr; }
  .cols-3 { grid-template-columns: 1fr; }
  .band-list b { font-size: 15px; }
  .entry { grid-template-columns: 1fr; padding-right: 0; }
  .entry-contact { justify-items: start; text-align: left; margin-top: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-item { grid-template-columns: 1fr; gap: 4px; }
  .hero h1 { max-width: none; }
  .toolbar-row { gap: 8px; }
  .select-wrap { flex: 1 1 46%; }
  select.control { width: 100%; }
  .toolbar-divider { display: none; }
}

@media (max-width: 420px) {
  .hero-aside dl { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-aside dl > div:last-child { grid-column: auto; }
  .hero-aside dd { font-size: 24px; }
  .hero-aside dt { font-size: 9.5px; letter-spacing: 0.12em; }
}

/* 20. Contribute — clerk submissions -------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.contribute-layout {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

@media (min-width: 1040px) {
  .contribute-layout { grid-template-columns: minmax(0, 1fr) 336px; }
  .contribute-side { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* --- form steps --- */
.form-step + .form-step {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}

.form-step-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px; }

.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--accent);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  padding-top: 1px;
}

.form-step-head h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 3px;
}

.form-step-hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.55; max-width: 52ch; }

/* --- court picker --- */
.picker { position: relative; }

.picker-input { position: relative; }

.picker-input svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  stroke: var(--muted-2);
  stroke-width: 1.7;
  pointer-events: none;
}

.picker-input input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 14px 14px 42px;
  font-size: 15px;
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.picker-input input::placeholder { color: var(--muted-2); }

.picker-input input:focus {
  outline: none;
  border-color: rgba(116, 232, 180, 0.45);
  box-shadow: 0 0 0 4px rgba(116, 232, 180, 0.07);
}

.picker-results {
  position: absolute;
  z-index: 25;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface-2);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.55);
  max-height: 322px;
  overflow-y: auto;
  padding: 6px;
  display: grid;
  gap: 1px;
}

.picker-opt {
  display: grid;
  gap: 3px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-radius: 5px;
  background: none;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
}

.picker-opt:hover,
.picker-opt.is-active { background: rgba(26, 107, 79, 0.26); }

.picker-opt b { font-weight: 500; font-size: 13.8px; line-height: 1.35; }

.picker-opt b mark { background: none; color: var(--accent); font-weight: 600; }

.picker-opt span { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

.picker-empty { padding: 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }

.picker-hint { font-size: 11.5px; color: var(--muted-2); margin-top: 9px; line-height: 1.5; }

/* --- chosen court --- */
.court-chosen {
  border: 1px solid rgba(116, 232, 180, 0.26);
  background: linear-gradient(180deg, rgba(15, 70, 52, 0.36), rgba(15, 70, 52, 0.1));
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.court-chosen-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }

.court-chosen-name {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: -0.021em;
  color: var(--text);
  text-wrap: balance;
}

.court-chosen-meta { font-size: 11.5px; letter-spacing: 0.03em; color: var(--muted); margin-top: 5px; }

.court-chosen-known {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(116, 232, 180, 0.15);
  display: grid;
  gap: 6px;
}

.court-chosen-known p { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; font-size: 12.5px; line-height: 1.45; }

.court-chosen-known .k { color: var(--muted-2); }
.court-chosen-known .v { color: var(--text-2); word-break: break-word; }

.court-chosen-note { margin-top: 11px; font-size: 11.5px; color: var(--accent-soft); line-height: 1.5; }

/* --- section pickers --- */
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pick { position: relative; display: block; cursor: pointer; }

.pick input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.pick-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.pick-icon { flex: none; width: 17px; height: 17px; margin-top: 2px; stroke-width: 1.7; color: var(--muted-2); transition: color .2s var(--ease); }

.pick-text b { display: block; font-size: 13.8px; font-weight: 500; color: var(--text); line-height: 1.35; }

.pick-text span { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 3px; line-height: 1.45; }

.pick-mark {
  flex: none;
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  display: grid;
  place-items: center;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}

.pick-mark svg { width: 11px; height: 11px; stroke-width: 3; color: var(--green-deep); opacity: 0; }

.pick-body:hover { border-color: var(--line-bright); }

.pick input:checked + .pick-body { border-color: rgba(116, 232, 180, 0.45); background: rgba(15, 70, 52, 0.38); }
.pick input:checked + .pick-body .pick-icon { color: var(--accent); }
.pick input:checked + .pick-body .pick-mark { background: var(--accent); border-color: var(--accent); }
.pick input:checked + .pick-body .pick-mark svg { opacity: 1; }
.pick input:focus-visible + .pick-body { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- clerk fields --- */
.clerk-group {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(15, 70, 52, 0.12);
}

.clerk-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }

.clerk-group-head > span:last-child { font-size: 11.5px; color: var(--muted-2); }

.field label .opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 10.5px;
  color: var(--muted-2);
  margin-left: 5px;
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select { border-color: rgba(255, 180, 162, 0.55); }

.form-fineprint { font-size: 11.5px; color: var(--muted-2); line-height: 1.6; margin-top: 14px; max-width: 56ch; }

/* --- sidebar --- */
.side-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 22px 24px;
}

.side-card + .side-card { margin-top: 14px; }

.side-card > h3 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.side-card p { font-size: 13.5px; color: var(--text-2); margin-top: 12px; line-height: 1.62; }

.side-card p a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(116,232,180,.28); }

.side-steps { display: grid; gap: 15px; margin-top: 16px; list-style: none; padding: 0; }

.side-steps li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 11px; font-size: 13px; color: var(--text-2); line-height: 1.55; }

.side-steps .n {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 10px;
  color: var(--accent-dim);
  margin-top: 1px;
}

.side-steps b { display: block; color: var(--text); font-weight: 500; font-size: 13px; margin-bottom: 2px; }

.side-list li { grid-template-columns: 1fr; position: relative; padding-left: 14px; }

.side-list .n { display: none; }

.side-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-dim);
}

.side-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.side-links a {
  font-size: 12.5px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.side-links a:hover { color: var(--accent); border-color: rgba(116, 232, 180, 0.42); background: rgba(15, 70, 52, 0.32); }

/* --- success panel --- */
#submitted, #clerk-form { scroll-margin-top: 96px; }

.submitted-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(116, 232, 180, 0.1);
  border: 1px solid rgba(116, 232, 180, 0.38);
  color: var(--accent);
  margin-bottom: 20px;
}

.submitted-mark svg { width: 20px; height: 20px; stroke-width: 2.2; }

.submitted h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.026em; margin-top: 12px; }

.submitted > p { margin-top: 12px; color: var(--text-2); font-size: 14.5px; max-width: 54ch; }

.submitted-credit {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(116, 232, 180, 0.24);
  border-radius: 10px;
  background: rgba(26, 107, 79, 0.12);
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}

.submitted-credit b { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

.submitted-summary { margin-top: 24px; border-top: 1px solid var(--line-soft); }

.submitted-summary > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }

.submitted-summary dt {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 3px;
}

.submitted-summary dd { font-size: 13.5px; color: var(--text); word-break: break-word; }

.submitted-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* --- drawer link --- */
.val-add {
  display: inline-block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--accent-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(116, 232, 180, 0.22);
}

.val-add:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* --- court citation (drawer) --- */
.cite-card {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.cite-row {
  background: var(--surface);
  padding: 14px 16px;
  display: grid;
  gap: 7px;
  justify-items: start;
}

.cite-head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }

.cite-key {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.cite-sub { font-size: 11px; color: var(--muted-2); }

.cite-val {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--text);
  letter-spacing: -0.005em;
}

.cite-val--pending {
  font-family: var(--sans);
  font-size: 13px;
  font-style: italic;
  color: var(--muted-2);
}

.cite-src { font-size: 11px; color: var(--muted-2); }

a.cite-src {
  color: var(--accent-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(116, 232, 180, 0.22);
}

a.cite-src:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* --- contribute: mode switch --- */
.mode-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 26px;
}

.mode-btn {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.mode-btn:hover { color: var(--text-2); }

.mode-btn[aria-pressed="true"] { background: var(--green); color: #eafff5; }

/* --- contribute: mode-dependent fields --- */
.cite-only { display: none; }
.days-only { display: none; }
.no-details { display: none; }
.form-card.is-citation .cite-only { display: block; }
.form-card.is-citation .clerk-only { display: none !important; }
.form-card.is-days .days-only { display: block; }
.form-card.is-days .not-days { display: none !important; }
.form-card.is-days .clerk-only { display: none !important; }
.form-card.is-citation .no-details,
.form-card.is-days .no-details { display: block; }

/* three court-day categories side by side */
.pick-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 820px) {
  .pick-grid--three { grid-template-columns: 1fr; }
}

.field-hint {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted-2);
  margin-top: 7px;
}

/* --- membership / join page --------------------------------------------- */
.section--alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line-soft);
}

.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.plan-main { display: grid; gap: clamp(28px, 3vw, 40px); }

/* not sticky: with both plans stacked the rail is taller than a laptop
   viewport, and a pinned element that tall loses its bottom on scroll */
.plan-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.plan-side .plan-card { position: static; top: auto; }

.member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.member-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}

.member-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(15, 70, 52, 0.55);
  border: 1px solid rgba(116, 232, 180, 0.16);
  color: var(--accent);
  margin-bottom: 14px;
}

.member-icon svg { width: 17px; height: 17px; stroke-width: 1.7; }

.member-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 8px;
}

.member-card p { font-size: 13.5px; line-height: 1.65; color: var(--muted); }

.free-band,
.how-band {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  background: linear-gradient(180deg, rgba(20, 25, 24, 0.9), rgba(15, 19, 18, 0.9));
}

.free-band h3,
.how-band h3 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.018em;
  color: var(--text);
  margin-bottom: 16px;
}

.check-list { display: grid; gap: 12px; }

.check-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.check-list li b { color: var(--text-2); font-weight: 500; }

.check-list svg { width: 15px; height: 15px; margin-top: 3px; color: var(--accent-dim); }

.check-list--tight { margin-top: 20px; gap: 9px; }

.how-steps { display: grid; gap: 18px; counter-reset: none; }

.how-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.how-steps .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  font-size: 11.5px;
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
}

.how-steps b { display: block; font-size: 14.5px; font-weight: 500; color: var(--text); }

.how-steps p { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 3px; }

/* price card */
.plan-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: linear-gradient(180deg, #16302a 0%, #101a17 62%, #0e1614 100%);
  border: 1px solid rgba(116, 232, 180, 0.22);
  border-radius: 14px;
  padding: 26px 26px 24px;
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.9);
}

.plan-card--free {
  background: linear-gradient(180deg, rgba(26, 32, 30, 0.92), rgba(15, 19, 18, 0.92));
  border-color: var(--line-soft);
  box-shadow: none;
}

.plan-card--free .plan-eyebrow { color: var(--muted); }
.plan-card--free .plan-price { font-size: clamp(34px, 4vw, 44px); }
.plan-card--free .plan-price span { color: var(--muted-2); }
.plan-card--free .plan-list svg { color: var(--muted); }

.plan-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.plan-price {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

.plan-price span {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.plan-then {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}

.plan-then b { color: var(--text); font-weight: 500; }

.plan-list {
  display: grid;
  gap: 9px;
  margin: 20px 0 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  color: var(--text-2);
}

.plan-list li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }

.plan-list svg { width: 14px; height: 14px; margin-top: 3px; color: var(--accent); }

.plan-cta { width: 100%; justify-content: center; }

.plan-note {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-2);
  margin-top: 14px;
}

.plan-legal {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-2);
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.plan-legal a {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-bright);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.plan-legal a:hover { color: var(--accent); border-bottom-color: var(--accent-dim); }

/* three plans side by side ------------------------------------------------ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(26, 32, 30, 0.92), rgba(15, 19, 18, 0.92));
}

.tier--pro {
  background: linear-gradient(180deg, #16302a 0%, #101a17 62%, #0e1614 100%);
  border-color: rgba(116, 232, 180, 0.24);
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.9);
}

.tier--pro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.tier--office {
  background: linear-gradient(180deg, #12241e 0%, #0d1512 66%, #0b1311 100%);
  border-color: rgba(116, 232, 180, 0.15);
}

.tier-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(116, 232, 180, 0.3);
  background: rgba(116, 232, 180, 0.12);
  color: var(--accent);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier-badge--quiet {
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.tier .plan-eyebrow { padding-right: 84px; }
.tier .plan-price { font-size: clamp(34px, 3.1vw, 44px); }
.tier .plan-list { flex: 1; }
.tier .plan-list b { color: var(--text); font-weight: 500; }

.tier--office .btn--ghost {
  border-color: rgba(116, 232, 180, 0.3);
  background: rgba(116, 232, 180, 0.07);
  color: #e2fff2;
}

.tier--office .btn--ghost:hover {
  border-color: rgba(116, 232, 180, 0.5);
  background: rgba(116, 232, 180, 0.13);
}

/* one tab, three memberships ---------------------------------------------- */
.tier-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  margin-bottom: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tier-tab {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.tier-tab b {
  font-weight: 500;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

.tier-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.tier-tab.is-active,
.tier-tab.is-active:hover {
  background: var(--accent);
  color: #04120d;
}

.tier-tab.is-active b { opacity: 0.72; }

.tier-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* A signed-in account's own plan, marked on its tab. The dot stays visible on a
   phone, where the price chip is hidden. */
.tier-tab--owned { color: var(--text); }

.tier-tab--owned::before {
  content: "";
  flex: none;
  align-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.tier-tab--owned.is-active::before { background: #04120d; }

/* "Signed in as … · your plan is Law Office" — the line above the tabs. */
.plan-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(116, 232, 180, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(116, 232, 180, 0.08), rgba(116, 232, 180, 0.025));
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
}

.plan-state p { margin: 0; }
.plan-state b { color: var(--text); font-weight: 500; }

.plan-state-link {
  margin-left: auto;
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--accent);
}

.plan-state-link:hover { color: var(--text); }

/* Where a plan card used to ask to be bought: "your plan", or "included". */
.plan-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 11px 18px;
  border: 1px dashed var(--line-bright);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan-status--own {
  border-style: solid;
  border-color: rgba(116, 232, 180, 0.35);
  background: rgba(116, 232, 180, 0.09);
  color: var(--accent);
}

.plan-status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.plan-status a:hover { color: var(--text); }

/* The plan block's own footer: where a Law Office holder adds seats. Spans both
   columns of the panel so the button sits in the bottom-right corner of the
   block itself, under a hairline, at any width. */
.plan-own-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 22px;
  flex-wrap: wrap;
  margin-top: clamp(18px, 2.4vw, 28px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.plan-own-foot .plan-own-note {
  margin: 0 auto 0 0;
  max-width: 62ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.plan-own-foot .btn { flex: none; }

@media (max-width: 620px) {
  .plan-own-foot { justify-content: stretch; }
  .plan-own-foot .plan-own-note { max-width: none; }
  .plan-own-foot .btn { width: 100%; justify-content: center; }
}

.tier--panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 3.5vw, 52px);
  align-items: start;
  position: relative;
}

/* Wider than a card, so the badge sits in the flow instead of pinned to a
   corner of a very wide box. */
.tier--panel .tier-badge {
  position: static;
  display: inline-flex;
  margin-bottom: 16px;
}

.tier--panel .plan-eyebrow { padding-right: 0; }

.tier--panel .tier-detail {
  border-left: 1px solid var(--line-soft);
  padding-left: clamp(20px, 3vw, 40px);
}

.tier--panel .tier-detail .plan-list { margin-top: 6px; }

.tier--panel .tier-detail .plan-list li { font-size: 14px; }

.tier--panel .plan-cta { margin-top: 22px; }

.tier--panel .plan-note:first-of-type { margin-top: 20px; }

@media (max-width: 860px) {
  .tier-tabs { width: 100%; border-radius: 18px; }
  .tier-tab { flex: 1 1 0; justify-content: center; padding: 10px 10px; gap: 6px; }
  .tier-tab b { display: none; }
  .tier--panel { grid-template-columns: 1fr; gap: 24px; }
  .tier--panel .tier-detail {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding-left: 0;
    padding-top: 24px;
  }
}

/* comparison table -------------------------------------------------------- */
.compare-scroll {
  margin-top: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.compare th,
.compare td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-soft);
}

.compare thead th {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
}

.compare thead th.is-pro { color: var(--accent-soft); }

.compare tbody th {
  font-weight: 400;
  color: var(--text-2);
  width: 42%;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }

.compare td {
  color: var(--muted);
  border-left: 1px solid var(--line-soft);
}

.compare td.yes { color: var(--text); }
.compare td.yes svg { width: 14px; height: 14px; color: var(--accent); }
.compare td.no { color: var(--muted-2); }
.compare td.small { font-size: 12.5px; }

/* the one-device rule ----------------------------------------------------- */
.rule-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.rule-copy h2 { font-size: clamp(28px, 3vw, 38px); }
.rule-copy p { font-size: 14.5px; line-height: 1.75; color: var(--muted); margin-top: 14px; }

.rule-cards { display: grid; gap: 10px; }

.rule-card {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface);
}

.rule-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(15, 70, 52, 0.5);
  border: 1px solid rgba(116, 232, 180, 0.14);
  color: var(--accent);
}

.rule-card i svg { width: 15px; height: 15px; stroke-width: 1.7; }
.rule-card b { display: block; font-size: 14px; font-weight: 500; color: var(--text); }
.rule-card p { font-size: 12.5px; line-height: 1.6; color: var(--muted); margin-top: 3px; }
.rule-card[data-state="out"] i { background: rgba(255, 255, 255, 0.03); border-color: var(--line-bright); color: var(--muted); }

/* early-access block */
.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.start-copy h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.025em;
  color: var(--text);
  margin-top: 10px;
}

.start-copy > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 14px;
  max-width: 52ch;
}

.join-done { text-align: center; padding: 34px 28px; }

.done-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 70, 52, 0.7);
  border: 1px solid rgba(116, 232, 180, 0.3);
  color: var(--accent);
  margin-bottom: 16px;
}

.done-mark svg { width: 19px; height: 19px; }

.join-done h3 { font-family: var(--serif); font-size: 23px; letter-spacing: -0.02em; }

.join-done p { font-size: 13.5px; line-height: 1.7; color: var(--muted); margin-top: 10px; }

/* 31. Contribute — contribution rewards ----------------------------------- */
.give-back {
  padding-block: clamp(36px, 5vw, 58px);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(110% 130% at 88% 0%, rgba(26, 107, 79, 0.22), transparent 62%),
    var(--bg-soft);
}

.give-back-inner {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}

@media (min-width: 920px) {
  .give-back-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
}

.give-back h2 {
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.22;
  margin-top: 12px;
  max-width: 24ch;
}

.give-back-copy > p:not(.eyebrow) {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--muted);
  margin-top: 15px;
  max-width: 56ch;
}

.give-back-copy b { color: var(--text-2); font-weight: 500; }

.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* --- contribute: the court-days board ------------------------------------ */
.days-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

@media (max-width: 1180px) {
  .days-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .days-grid { grid-template-columns: 1fr; }
}

.days-card { align-content: start; }

.days-card-head {
  background: var(--surface);
  padding: 15px 16px 13px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.days-card-head h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
}

.days-card .day-row { padding: 12px 14px; }
.days-card .day-val { font-size: 13.5px; }
.days-card .day-key { font-size: 10px; }
.days-card .val-add { font-size: 11px; }

.days-rule {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted-2);
  max-width: 80ch;
}

.days-rule svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  stroke-width: 1.7;
  color: var(--accent-dim);
}

.days-rule b { color: var(--muted); font-weight: 500; }

/* The free plan's reward is gold, not green: it is the one that asks nothing
   of the person who cannot pay, so it gets the colour reserved for rewards. */
.reward-grid .reward-card--free {
  background:
    linear-gradient(180deg, rgba(227, 189, 114, 0.10), rgba(20, 25, 24, 0) 60%),
    var(--surface);
  border-color: var(--gold-line);
}

.reward-grid .reward-card--free .reward-plan { color: var(--gold); }

.reward-grid .reward-card--free .reward-payoff { border-top-color: var(--gold-line); }

.reward-grid .reward-card--free .reward-payoff b {
  color: var(--gold-soft);
  font-size: 22px;
}

.reward-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(26, 107, 79, 0.16), rgba(20, 25, 24, 0) 58%),
    var(--surface);
  padding: 19px 19px 20px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.reward-card:hover { border-color: var(--line-bright); transform: translateY(-2px); }

.reward-card--office {
  background:
    linear-gradient(180deg, rgba(26, 107, 79, 0.28), rgba(20, 25, 24, 0) 62%),
    var(--surface);
  border-color: rgba(116, 232, 180, 0.22);
}

.reward-plan {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.reward-trigger { margin-top: 15px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.reward-trigger b {
  display: block;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 9px;
}

.reward-payoff {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-2);
}

.reward-payoff b {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 3px;
}

.reward-note {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 11px;
  margin-top: 16px;
  font-size: 11.5px;
  line-height: 1.62;
  color: var(--muted-2);
}

.reward-note svg { width: 14px; height: 14px; stroke-width: 1.7; color: var(--accent-dim); margin-top: 2px; }

.reward-note b { color: var(--accent-soft); font-weight: 500; }

.side-card--reward { border-color: rgba(116, 232, 180, 0.2); }

.side-card--reward .side-list { margin-top: 14px; }

.side-card--reward p b { color: var(--text); font-weight: 600; }

/* faq */
.faq { border-top: 1px solid var(--line-soft); margin-top: 6px; }

.faq-item { border-bottom: 1px solid var(--line-soft); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 15.5px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
  color: var(--accent-dim);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }

.faq-item summary:hover { color: var(--accent-soft); }

.faq-item > div { padding: 0 clamp(0px, 6vw, 90px) 22px 0; }

.faq-item p { font-size: 14px; line-height: 1.75; color: var(--muted); max-width: 72ch; }

@media (max-width: 980px) {
  .plan-grid, .start-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .rule-grid { grid-template-columns: 1fr; }
  .plan-side { order: -1; }
  .plan-card { position: static; }
  .member-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .pick-grid { grid-template-columns: 1fr; }
  .reward-grid { grid-template-columns: 1fr; }
  .court-chosen-known p { grid-template-columns: 1fr; gap: 1px; }
  .submitted-summary > div { grid-template-columns: 1fr; gap: 3px; }
}

/* Three reward cards need room: two across, then one. */
@media (max-width: 1080px) and (min-width: 561px) {
  .reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Address → jurisdiction finder (Courts page)
   Sits between the page head and the filter toolbar: one question, one field.
   -------------------------------------------------------------------------- */
.juris {
  border-block: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 160% at 8% -40%, rgba(26, 107, 79, 0.20), transparent 62%),
    var(--bg-soft);
  padding-block: clamp(22px, 3.2vw, 34px);
}

.juris-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(18px, 3.5vw, 52px);
  align-items: start;
}

.juris-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.juris-kicker svg { width: 13px; height: 13px; stroke-width: 1.7; }

.juris-title {
  margin-top: 8px;
  font-size: clamp(21px, 2.5vw, 27px);
  letter-spacing: -0.02em;
}

.juris-sub {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
}

.juris-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.juris-field:focus-within {
  border-color: rgba(116, 232, 180, 0.45);
  box-shadow: 0 0 0 4px rgba(116, 232, 180, 0.07);
}

.juris-field > svg {
  width: 17px;
  height: 17px;
  flex: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}

.juris-field input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  padding: 12px 0;
  font-size: 14.5px;
  color: var(--text);
}

.juris-field input::placeholder { color: var(--muted-2); }
.juris-field input:focus { outline: none; }

.juris-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.juris-hint svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 3px;
  stroke: var(--accent-dim);
  stroke-width: 1.8;
}

.juris-source {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted-2);
}

/* The two finders are paid features (27 Nov 2026): a plan pill sits under the
   field so a visitor knows where they stand before they spend their look. */
.juris-gate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 9px;
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted-2);
}

.juris-gate[hidden] { display: none; }

.juris-gate a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--line-bright);
}

.juris-gate a:hover { color: var(--accent); border-color: var(--accent-dim); }

.juris-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.juris-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

/* the one free check: gold, because it is a gift and not a right */
.juris-pill.is-trial {
  border-color: rgba(227, 189, 114, 0.45);
  background: rgba(227, 189, 114, 0.07);
  color: var(--gold);
}

/* the plan already covers it: quiet mint, the same as an action */
.juris-pill.is-open {
  border-color: var(--accent-dim);
  background: rgba(116, 232, 180, 0.07);
  color: var(--accent);
}

.juris-pill.is-used {
  border-style: dashed;
  color: var(--muted-2);
}

.juris-gate-note b { color: var(--text-2); font-weight: 500; }

.juris-results {
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

.jr-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: jrIn .32s var(--ease) both;
}

.jr-card.is-top {
  border-color: rgba(116, 232, 180, 0.3);
  background:
    linear-gradient(180deg, rgba(26, 107, 79, 0.16), rgba(26, 107, 79, 0) 78%),
    var(--surface);
}

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

.jr-path {
  display: flex;
  flex-wrap: wrap;
  gap: 1px 9px;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1.9;
}

.jr-seg + .jr-seg::before {
  content: '·';
  margin-right: 9px;
  color: var(--line-bright);
}

.jr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 3px 9px 3px 8px;
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  background: rgba(116, 232, 180, 0.07);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.4;
}

.jr-badge--muted {
  border-color: var(--line);
  background: none;
  color: var(--muted);
}

.jr-path b {
  color: var(--accent-soft);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 12.5px;
}

.jr-court {
  margin-top: 3px;
  font-size: 19px;
  line-height: 1.25;
}

/* A sheriff's office is named for the towns it serves, so its name is a list
   and has to wrap: "Aberdeen, Graaff-Reinet, Jansenville, Middelburg, …" */
.jr-office {
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.jr-who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1px 8px;
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.jr-who .jr-dot { color: var(--line-bright); }

.jr-office-note {
  margin-top: 6px;
  max-width: 64ch;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.jr-office-note b { font-weight: 500; color: var(--text-2); }

.jr-office-note a { color: var(--muted); border-bottom: 1px dotted var(--line-bright); }

.jr-also--offices { margin-top: 10px; }

.jr-also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted-2);
}

.jr-also > span { margin-right: 2px; }

.jr-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  color: var(--text-2);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.jr-chip:hover { border-color: var(--line-bright); color: var(--text); }
.jr-chip--plain { color: var(--muted-2); border-style: dashed; }

.jr-actions { display: flex; align-items: center; }
.jr-note { font-size: 11.5px; color: var(--muted-2); }

.jr-foot {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 84ch;
  padding-top: 2px;
}

.jr-foot a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--line-bright);
  white-space: nowrap;
}

.jr-foot a:hover { color: var(--accent); border-color: var(--accent-dim); }

.jr-alt-label {
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.jr-empty {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.jr-empty-title { font-size: 14px; color: var(--text-2); }
.jr-empty-hint { margin-top: 4px; font-size: 12.5px; color: var(--muted-2); }

/* still typing: nothing found yet, and that is not bad news */
.jr-empty.is-soft {
  border-style: solid;
  border-color: var(--line-soft);
  background: var(--bg-soft);
}

.jr-empty.is-soft .jr-empty-title { color: var(--muted); }

/* The paid answer, in place of the answer. Warm, not a scolding: the visitor
   has just used their one free look, and the plans are the next step. */
.jr-lock {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(26, 107, 79, 0.16), rgba(26, 107, 79, 0) 82%),
    var(--surface);
  animation: jrIn .32s var(--ease) both;
}

.jr-lock-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid rgba(227, 189, 114, 0.45);
  border-radius: 999px;
  background: rgba(227, 189, 114, 0.07);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.4;
}

.jr-lock-title {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

.jr-lock-body {
  margin-top: 8px;
  max-width: 66ch;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.jr-lock-body b { color: var(--text-2); font-weight: 500; }

.jr-lock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.jr-lock-foot {
  margin-top: 13px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted-2);
}

@media (max-width: 860px) {
  .juris-inner { grid-template-columns: 1fr; gap: 16px; }
  .juris-sub { max-width: none; }
  .jr-card { grid-template-columns: 1fr; gap: 12px; }
  .jr-actions { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .juris-field { padding-left: 13px; gap: 8px; }
  .juris-field input { font-size: 13.5px; }
  .jr-card { padding: 14px; }
  .jr-also > span { flex-basis: 100%; }
}

/* 20. Update stamp ---------------------------------------------------------
   "Updated 30 November 2026" — deliberately quiet: it is a signal that the
   thing was checked, not a thing to look at. The date itself is written by the
   markup (so it reads without JavaScript) and re-written from one place,
   window.SITE_CONFIG.updated, when the script runs. */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  letter-spacing: 0.045em;
  color: var(--muted-2);
  opacity: 0.78;
}

.stamp svg { width: 12px; height: 12px; stroke-width: 1.7; flex: none; }

.stamp--page { margin-top: 16px; }
.stamp--hero { margin-top: 14px; }
.stamp--card { margin-top: 18px; }
.stamp--footer { opacity: 0.6; font-size: 11px; }

/* 21. The five questions (home) ------------------------------------------- */
.pillars { border-top: 1px solid var(--line-soft); }

.pillar {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 258px;
  gap: clamp(16px, 3vw, 44px);
  padding-block: clamp(26px, 3.4vw, 42px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s var(--ease);
}

.pillar-num {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--muted-2);
  padding-top: 7px;
  font-variant-numeric: tabular-nums;
  transition: color .3s var(--ease);
}

.pillar:hover .pillar-num { color: var(--accent-dim); }

.pillar h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.022em;
  max-width: 34ch;
}

.pillar p {
  margin-top: 13px;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--muted);
  max-width: 62ch;
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(116, 232, 180, 0.28);
  padding-bottom: 2px;
}

.pillar-link:hover { border-bottom-color: var(--accent); }
.pillar-link svg { width: 14px; height: 14px; stroke-width: 1.8; }

.pillar-meta { display: grid; gap: 14px; align-content: start; padding-top: 6px; }

.pillar-meta dt {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.pillar-meta dd { font-size: 13px; line-height: 1.5; color: var(--text-2); margin-top: 4px; }

.pillar-meta dd b { color: var(--text); font-weight: 500; }

@media (max-width: 900px) {
  .pillar { grid-template-columns: 34px minmax(0, 1fr); }
  .pillar-meta { grid-column: 2; gap: 10px 24px; grid-template-columns: 1fr 1fr; }
  .pillar h3 { max-width: none; }
}

@media (max-width: 560px) {
  .pillar-meta { grid-template-columns: 1fr; }
}

/* 22. Directive library --------------------------------------------------- */
.directive-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(15, 70, 52, 0.5), transparent 62%),
    linear-gradient(180deg, var(--surface), var(--bg-soft));
  padding: clamp(24px, 3.4vw, 42px);
}

.directive-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  justify-content: space-between;
}

.flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid rgba(116, 232, 180, 0.3);
  background: rgba(26, 107, 79, 0.16);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.flag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(116, 232, 180, 0.14);
}

.flag--muted { border-color: var(--line); background: none; color: var(--muted); }
.flag--muted::before { background: var(--muted-2); box-shadow: none; }

.directive-card h2 {
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.026em;
  margin-top: 18px;
  max-width: 30ch;
}

.directive-card h2 em { font-style: italic; color: var(--accent-soft); }

.directive-sub { margin-top: 14px; font-size: 14.5px; line-height: 1.66; color: var(--muted); max-width: 60ch; }

.directive-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(116, 232, 180, 0.14);
}

.directive-facts div { display: grid; gap: 4px; }
.directive-facts dt { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-2); }
.directive-facts dd { font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.directive-facts dd b { color: var(--text); font-weight: 500; }

.download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 26px; }
.download-note { font-size: 11.5px; color: var(--muted-2); line-height: 1.55; max-width: 34ch; }

.governs { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line-soft); }

.governs li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

.governs .para { font-size: 11px; letter-spacing: 0.1em; color: var(--muted-2); padding-top: 3px; font-variant-numeric: tabular-nums; }

.archive-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.archive-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 74ch;
}

.divisions-grid {
  display: grid;
  /* Nine divisions, so three rows of three — never a ragged last row. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 22px;
}

.divisions-grid div {
  background: var(--bg-soft);
  padding: 15px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.divisions-grid b { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.divisions-grid span { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.divisions-grid .is-held span { color: var(--accent-dim); }

@media (max-width: 720px) {
  .divisions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .divisions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .directive-facts { grid-template-columns: 1fr; }
  .governs li { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
}

/* 22b. More than one directive ------------------------------------------- */
.directive-list { display: grid; gap: 22px; }

.directive-more {
  margin-top: 24px;
  border-top: 1px solid rgba(116, 232, 180, 0.14);
  padding-top: 16px;
}

.directive-more > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding: 4px 0;
}

.directive-more > summary::-webkit-details-marker { display: none; }

.directive-more > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s var(--ease);
}

.directive-more[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.directive-more > summary:hover { color: var(--accent-soft); }
.directive-more .governs { border-top: 0; margin-top: 6px; }

/* A compact fact line for the cards that do not need a full fact block. */
.directive-line {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

/* A draft is not in force, and must not wear the same badge as one that is. */
.flag--draft {
  color: var(--gold-soft);
  border-color: var(--gold-line);
  background: rgba(227, 189, 114, 0.08);
}

/* 22c. Province picker ---------------------------------------------------- */
.province-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 26px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.8);
}

.province-jump > label {
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.province-jump .select-wrap { flex: 1 1 300px; max-width: 380px; }
.province-jump select { width: 100%; }
.province-jump p { margin: 0; font-size: 12.5px; color: var(--muted); }

@media (max-width: 760px) {
  .province-jump .select-wrap { flex: 1 1 100%; max-width: none; }
}

/* One province at a time: with JavaScript the picker decides which card is
   on the page. Without it, every card stands visible and the page still
   works as a list — nothing is hidden behind a script that never ran. */
.js .directive-list .directive-card { display: none; }
.js .directive-list .directive-card.is-shown { display: block; }

/* Land the card clear of the sticky header and the sticky picker. */
.directive-card { scroll-margin-top: 92px; }
.directive-card > h2 { scroll-margin-top: 92px; }

@media (max-width: 760px) {
  .directive-card, .directive-card > h2 { scroll-margin-top: 84px; }
}

/* Focus is moved to the heading when the province changes so a screen reader
   reads the new document out. The heading is not a control, so it carries no
   ring — the card's brief pulse is what tells the eye where it landed. */
.directive-card > h2:focus,
.directive-card > h2:focus-visible { outline: none; }

/* Where the picker lands, the card says so for a moment. */
.directive-card.is-targeted { animation: cardPulse 1.8s var(--ease) 1; }

@keyframes cardPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(116, 232, 180, 0); }
  20%, 55% { box-shadow: 0 0 0 2px rgba(116, 232, 180, 0.42); }
}

@media (prefers-reduced-motion: reduce) {
  .directive-card.is-targeted { animation: none; box-shadow: 0 0 0 2px rgba(116, 232, 180, 0.42); }
}

/* 23. Six nav items need room ---------------------------------------------
   With Directives added, the full row is tight on a tablet held sideways.
   The tabs stay visible — they are the way around the site and must never
   disappear behind a burger at a width where there is plainly room for them.
   Instead the header's action button steps aside, and the row tightens:
   tighter gaps, a smaller label size and no brand tagline under 860px. */
@media (min-width: 761px) and (max-width: 1040px) {
  .header-cta .btn { display: none; }
  .nav { gap: 15px; }
  .nav a { font-size: 13px; }
}

@media (min-width: 761px) and (max-width: 860px) {
  .nav { gap: 12px; }
  .nav a { font-size: 12.5px; }
  .brand-sub { display: none; }
}

/* 24. The front door, and the person behind it ----------------------------
   Two things arrived together (Dec 2026): the site asks who you are before it
   shows anything, and the answer lives top-right in the header as initials on
   a green disc — the profile, one click away, where it used to be a "Find a
   court" button that only repeated the Courts tab beside it. */

/* -- the disc in the header ---------------------------------------------- */
.profile-link {
  display: inline-grid;
  place-items: center;
  padding: 3px;
  border-radius: 999px;
  text-decoration: none;
  flex: none;
  transition: background .22s var(--ease), transform .22s var(--ease);
}

.profile-link:hover { background: rgba(255, 255, 255, 0.05); }
.profile-link:active { transform: scale(.96); }

.avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(116, 232, 180, 0.30);
  background: linear-gradient(150deg, var(--green-mid), var(--green-deep) 78%);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  flex: none;
  transition: border-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
}

.avatar svg { width: 16px; height: 16px; stroke-width: 1.7; }

.profile-link:hover .avatar {
  border-color: rgba(116, 232, 180, 0.62);
  box-shadow: 0 0 0 4px rgba(116, 232, 180, 0.08);
}

.avatar--lg { width: 50px; height: 50px; font-size: 15.5px; }
.avatar--xl { width: 62px; height: 62px; font-size: 19px; }

/* the greeting, wherever it is said */
.greeting {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--accent-soft);
  margin-bottom: 14px;
}

.greeting::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(116, 232, 180, 0.13);
  flex: none;
}

/* -- the gate page ------------------------------------------------------- */
.gate {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.gate-side {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 46px) clamp(22px, 4vw, 56px);
  background:
    radial-gradient(120% 78% at 12% 0%, rgba(26, 107, 79, 0.50), rgba(8, 42, 32, 0) 62%),
    linear-gradient(180deg, rgba(9, 12, 11, 0.74), rgba(9, 12, 11, 0.95) 78%),
    url("/images/architecture.jpg") center / cover no-repeat,
    var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}

.gate-side-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 5vw, 60px);
  height: 100%;
}

.gate-side .brand { text-decoration: none; }

.gate-side-body { max-width: 46ch; }

.gate-side h1 {
  font-size: clamp(30px, 3.7vw, 46px);
  letter-spacing: -0.032em;
  margin-top: 16px;
  max-width: 20ch;
}

.gate-lede {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.66;
  color: var(--text-2);
  max-width: 44ch;
}

.gate-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: clamp(26px, 4vw, 38px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 460px;
}

.gate-facts li {
  padding: 14px 16px;
  background: rgba(11, 14, 13, 0.55);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 3px;
}

.gate-facts b {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent-soft);
}

.gate-facts span {
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.gate-side-foot {
  margin-top: auto;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 52ch;
}

.gate-main {
  display: grid;
  align-items: center;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 48px);
  background: var(--bg);
}

.gate-card {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  padding: clamp(22px, 3.2vw, 36px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

.gate-card h2 { font-size: clamp(23px, 2.6vw, 29px); letter-spacing: -0.024em; }

.gate-sub {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 46ch;
}

.gate-card .form-grid { margin-top: 24px; }

.gate-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 26px;
}

.gate-tab {
  flex: 1 1 0;
  padding: 9px 10px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.gate-tab:hover { color: var(--text-2); }

.gate-tab[aria-selected="true"] {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
  cursor: pointer;
}

.check input {
  -webkit-appearance: none;
  appearance: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border: 1px solid var(--line-bright);
  border-radius: 4px;
  background: var(--bg);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}

.check input:hover { border-color: var(--accent-dim); }

.check input:checked {
  background: var(--green);
  border-color: var(--accent-dim);
}

.check input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg) translate(1px, -1px);
}

.check a { color: var(--accent-soft); text-decoration: none; border-bottom: 1px solid rgba(169, 217, 195, .3); }
.check a:hover { border-bottom-color: var(--accent-soft); }

.linkish {
  display: inline;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--accent-soft);
  cursor: pointer;
  border-bottom: 1px solid rgba(169, 217, 195, .32);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.linkish:hover { color: var(--accent); border-bottom-color: var(--accent); }

.linkish--sm { font-size: 12px; margin-left: 10px; }

.gate-help { margin-top: 16px; font-size: 13px; color: var(--muted-2); }

.gate-reset {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.gate-reset p { max-width: 48ch; }

.gate-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}

.gate-who { display: flex; align-items: center; gap: 16px; }
.gate-who h2 { margin: 0; }
.gate-who .gate-sub { margin-top: 4px; }

/* "you were heading somewhere" — why the door is in front of you */
.gate-next {
  margin-top: 16px;
  padding: 10px 14px;
  border-left: 2px solid rgba(116, 232, 180, .5);
  background: rgba(116, 232, 180, .055);
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--accent-soft);
}
.gate-remember {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--accent-soft);
  opacity: .82;
  max-width: 34ch;
}

.gate-fineprint {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  line-height: 1.62;
  color: var(--muted-2);
}

@media (min-width: 900px) {
  .gate { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
  .gate-side { border-bottom: 0; border-right: 1px solid var(--line-soft); }
  .gate-main { align-items: center; }
}

/* On a phone the door must be reachable without a scroll: the argument
   collapses to the brand and the one line that says what this is. */
@media (max-width: 899px) {
  .gate-card { max-width: none; }
  .gate-side { padding: 20px 22px 22px; }
  .gate-side-inner { gap: 14px; }
  .gate-side-body { max-width: none; }
  .gate-side .eyebrow,
  .gate-lede,
  .gate-facts,
  .gate-side-foot { display: none; }
  .gate-side h1 { font-size: clamp(24px, 6vw, 30px); margin-top: 12px; max-width: none; }
}

/* -- the profile page ---------------------------------------------------- */
.page-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 40px);
}

.profile-layout { display: grid; gap: clamp(26px, 4vw, 40px); }

.profile-side { display: grid; gap: 16px; align-content: start; }

@media (min-width: 1040px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr) 316px; align-items: start; }
  .profile-side { position: sticky; top: calc(var(--header-h) + 20px); }
}

.profile-leave {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.profile-leave p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 62ch;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.inline-form input {
  width: 190px;
  max-width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.inline-form input:focus {
  outline: none;
  border-color: rgba(116, 232, 180, 0.45);
  box-shadow: 0 0 0 4px rgba(116, 232, 180, 0.07);
}

/* -------------------------------------------------------------------------
   The banner keeps its tabs (1 Dec 2026)
   The six tabs no longer fit on one line with the brand much below 940px,
   and folding them behind a menu button hid the whole site. So the banner
   grows a second row: brand and account on the first, the six tabs as
   buttons on the second, both inside the same sticky banner. Only a phone
   (560px and under) still folds them into the menu button.
   ------------------------------------------------------------------------- */
@media (max-width: 940px) and (min-width: 561px) {
  :root { --header-h: 106px; }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    row-gap: 9px;
    column-gap: 16px;
    padding-block: 12px;
  }

  .brand { grid-column: 1; grid-row: 1; }
  .header-cta { grid-column: 2; grid-row: 1; }
  .nav-toggle { display: none; }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    position: static;
    inset: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding: 0;
    background: none;
    border: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar { display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 7px 11px; font-size: 12.5px; }

  /* anchor jumps and sticky rails follow the taller banner */
  .doc-body h2, #submitted, #clerk-form,
  .directive-card, .directive-card > h2 { scroll-margin-top: 130px; }
}

/* -------------------------------------------------------------------------
   Photographs (1 Dec 2026)
   The site was all type and no daylight. A band is a wide photograph that
   gives the eye somewhere to rest between two dense sections. Nothing in it
   is a claim about a particular court — the words on top are the site's own
   facts, and the picture is atmosphere.
   ------------------------------------------------------------------------- */
.photo-band {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.photo-band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* the page fades into the photograph at the top, and the words sit on a
   shadow at the foot so they never fight the picture */
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(18, 25, 23, 0.72), rgba(18, 25, 23, 0) 26%),
    linear-gradient(to top, rgba(9, 14, 13, 0.9), rgba(9, 14, 13, 0.25) 42%, rgba(9, 14, 13, 0) 68%);
}

.photo-band-cap {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding-bottom: clamp(20px, 3vw, 34px);
}

.photo-band-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.photo-band-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.photo-band-line {
  margin-top: 10px;
  max-width: 34ch;
  font-family: var(--serif);
  font-size: clamp(19px, 2.3vw, 30px);
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}

/* the same band, but set inside the text column with soft corners */
.photo-band--inset {
  margin-block: clamp(30px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.photo-band--inset img { border-radius: 13px; }

/* a band set at 16:9, and never taller than a comfortable slice */
.photo-band--16x9 img { aspect-ratio: 16 / 9; }

/* an inset band is capped so a photograph never becomes the whole page */
.photo-band--inset { max-width: 1000px; margin-inline: auto; }

/* an inset band sets its own inner gutter, so its caption does not inherit
   the page's full-width one */
.photo-band--inset .photo-band-cap { padding-inline: clamp(18px, 3vw, 30px); }
.photo-band--inset .photo-band-cap .wrap { max-width: none; padding-inline: 0; }

/* a portrait beside a block of copy */
.office-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.office-split .photo-figure { max-width: 460px; }

.office-copy h2 { margin-top: 8px; }
.office-copy p { margin-top: 14px; color: var(--text-2); max-width: 52ch; }
.office-copy .check-list { margin-top: 18px; }

@media (max-width: 860px) {
  .office-split { grid-template-columns: 1fr; }
  .office-split .photo-figure { max-width: none; }
}

/* a portrait beside running text */
.photo-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
}

.photo-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

.photo-figure figcaption {
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 620px) {
  .photo-band-line { max-width: 26ch; font-size: 18px; }
  .photo-band-kicker { font-size: 10px; letter-spacing: .14em; }
}

@media (prefers-reduced-motion: no-preference) {
  .photo-band img { transform: scale(1.001); transition: transform 1.2s var(--ease); }
  .photo-band:hover img { transform: scale(1.035); }
}

/* -------------------------------------------------------------------------
   The office seats (Law Office's twenty work emails)
   ------------------------------------------------------------------------- */
.seat-count {
  flex: none;
  padding: 6px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.seat-count b { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 600; }

.seat-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.seat-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; min-width: 0; }
.seat-field--name { flex: 0 1 210px; }

.seat-field label {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.seat-field label span { text-transform: none; letter-spacing: 0; color: var(--muted-2); }

.seat-field input {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.seat-field input::placeholder { color: var(--muted-2); }

.seat-field input:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(116, 232, 180, 0.12);
}

.seat-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 15px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.seat-who { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }

.seat-email { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }

.seat-name { font-size: 13px; color: var(--muted); }

.seat-state {
  padding: 3px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.seat-state.is-in { color: var(--accent); border-color: rgba(116, 232, 180, 0.35); }

.seat-empty {
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* The way in to the seats: one button, bottom right of the office panel */
.seat-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.seat-foot .note { margin: 0; max-width: 62ch; }

.seat-foot .btn { align-self: flex-end; }

.seat-foot .btn[aria-disabled="true"] { opacity: .6; }

/* The add page: a column of work emails ---------------------------------- */
.seat-page { max-width: 720px; }

.seat-page h2 { font-size: clamp(21px, 2.4vw, 25px); letter-spacing: -0.02em; }

.seat-room {
  flex: none;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  padding-top: 4px;
}

.seat-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.seat-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.seat-row input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.seat-row input::placeholder { color: var(--muted-2); }

.seat-row input:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(116, 232, 180, 0.12);
}

.seat-row-name { color: var(--muted); }
.seat-row-name:focus { color: var(--text); }

.seat-row.is-bad input.seat-row-email {
  border-color: rgba(255, 140, 120, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 140, 120, 0.08);
}

.seat-row-err {
  grid-column: 1 / -1;
  margin: -2px 0 2px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #ffb4a2;
}

.seat-row-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.seat-row-x svg { width: 15px; height: 15px; }

.seat-row-x:hover { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, 0.03); }

.seat-more { margin-top: 14px; }

.seat-more .linkish { display: inline-flex; align-items: center; gap: 7px; }

.seat-more .linkish svg { width: 14px; height: 14px; }

.seat-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.seat-actions .note { margin: 0; flex: 1 1 320px; max-width: 52ch; }

.seat-actions .btn { flex: none; margin-left: auto; }

.seat-results {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.seat-result {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 14px;
  background: var(--bg);
  font-size: 13.5px;
  line-height: 1.5;
}

.seat-result svg { width: 14px; height: 14px; flex: none; position: relative; top: 2px; color: var(--muted-2); }

.seat-result-email { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }

.seat-result-say { color: var(--muted); }

.seat-result.is-ok svg { color: var(--accent); }

.seat-back { margin-top: 22px; font-size: 13.5px; }

@media (max-width: 620px) {
  .seat-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .seat-form .btn { width: 100%; justify-content: center; }
  .seat-foot .btn { align-self: stretch; justify-content: center; }
  .seat-actions .btn { width: 100%; justify-content: center; margin-left: 0; }
  .seat-row { grid-template-columns: minmax(0, 1fr) auto; }
  .seat-row-email { grid-column: 1; }
  .seat-row-name { grid-column: 1; grid-row: 2; }
  .seat-row-x { grid-column: 2; grid-row: 1 / span 2; }
}

/* Start panel — two rows of buttons once the hero narrows */
@media (max-width: 1040px) {
  .start-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
}

@media (max-width: 460px) {
  .start-card { padding: 13px 13px 14px; }
  .start-icon { width: 30px; height: 30px; border-radius: 7px; }
  .start-icon svg { width: 15px; height: 15px; }
  .start-title { font-size: 16.5px; margin-top: 12px; }
  .start-meta { font-size: 11.5px; }
}

@media (max-width: 760px) {
  .page-head-top { flex-direction: column-reverse; align-items: flex-start; }
  .acct-row { flex-wrap: wrap; }
  .acct-row .acct-value { text-align: left; }
  .inline-form { justify-content: flex-start; }
  .gate-facts { grid-template-columns: 1fr 1fr; }
}

/* 25. The profile menu -----------------------------------------------------
   The disc in the header used to be one link to /profile. Signed in, it now
   opens a short menu instead (added 1 Dec 2026), with the person's name at the
   top and the way out at the bottom. One item in it exists for nobody else:
   the owner's desk, which appears only for the owner's own address, and only
   when that internal page is actually reachable. */

.profile-menu { position: relative; flex: none; }

.profile-menu .profile-link[aria-expanded="true"] { background: rgba(255, 255, 255, 0.06); }

.profile-menu .profile-link[aria-expanded="true"] .avatar {
  border-color: rgba(116, 232, 180, 0.62);
  box-shadow: 0 0 0 4px rgba(116, 232, 180, 0.08);
}

.profile-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 262px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 26px 54px -20px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  z-index: 70;
  transform-origin: top right;
  animation: profile-drop .16s var(--ease);
}

@keyframes profile-drop {
  from { opacity: 0; transform: translateY(-6px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.profile-drop-head {
  padding: 10px 12px 11px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
}

.profile-drop-name {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-drop-mail {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-drop a,
.profile-drop button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  text-align: left;
  text-decoration: none;
  transition: background .16s var(--ease), color .16s var(--ease);
}

.profile-drop a:hover,
.profile-drop button:hover { background: var(--surface-2); color: var(--text); }

.profile-drop svg { width: 15px; height: 15px; flex: none; color: var(--muted); }

.profile-drop a:hover svg,
.profile-drop button:hover svg { color: var(--accent); }

.profile-drop .drop-sep {
  height: 1px;
  margin: 5px 8px;
  background: var(--line-soft);
}

/* the owner's own item — never in anybody else's menu */
.profile-drop .drop-owner {
  color: var(--accent);
  border: 1px solid rgba(116, 232, 180, 0.22);
  background: rgba(26, 107, 79, 0.14);
  margin-bottom: 3px;
}

.profile-drop .drop-owner svg { color: var(--accent); }

.profile-drop .drop-owner:hover {
  background: rgba(26, 107, 79, 0.28);
  border-color: rgba(116, 232, 180, 0.42);
}

.profile-drop .drop-tag {
  margin-left: auto;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border: 1px solid rgba(116, 232, 180, 0.28);
  border-radius: 4px;
  padding: 2px 5px;
  white-space: nowrap;
}

.profile-drop .drop-out { color: var(--muted); }

/* 20. The pre-launch band (opens 4 January 2027) ---------------------------
   One email address, one promise. It sits directly under the hero so the date
   is the first thing after the headline, and it is deliberately short: a date,
   a sentence, a field, a button. Nothing here explains the site twice. */
.launch {
  position: relative;
  /* linked to as /#launch from the footer of every page — keep it clear of
     the sticky banner when it is the scroll target */
  scroll-margin-top: calc(var(--header-h) + 8px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(110% 190% at 10% 0%, rgba(26, 107, 79, 0.42), transparent 62%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.launch-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(28px, 4.4vw, 44px);
}

.launch-date {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.launch-date i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(116, 232, 180, 0.13);
  flex: none;
}

.launch h2 {
  font-size: clamp(23px, 2.7vw, 32px);
  letter-spacing: -0.028em;
  margin-top: 11px;
}

.launch-lede {
  color: var(--text-2);
  font-size: 14.5px;
  margin-top: 9px;
  max-width: 46ch;
}

.launch-form { min-width: 0; }

.launch-row { display: flex; gap: 8px; }

.launch-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.launch-row input::placeholder { color: var(--muted-2); }

.launch-row input:focus {
  border-color: rgba(116, 232, 180, 0.45);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.launch-form.is-invalid input { border-color: #ffb4a2; }

.launch-status {
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 8px;
  color: var(--muted);
}

.launch-status.is-error { color: #ffb4a2; }

.launch-fine {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 8px;
}

.launch-done {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(116, 232, 180, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(26, 107, 79, 0.22);
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.45;
}

.launch-done svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}

@media (max-width: 860px) {
  .launch-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 430px) {
  .launch-row { flex-direction: column; }
  .launch-row .btn { width: 100%; }
}

@media (max-width: 520px) {
  .profile-drop { width: 240px; right: -6px; }
}
