/* ==========================================================================
   onlinecasino.ru — design system v0.1
   Layers: tokens → base → layout → components → page blocks → utilities
   Light theme only. No gradients, no animation, no decorative blur.
   ========================================================================== */

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* Surfaces: cool off-white paper, lighter surfaces on top of it */
  --paper: #eef0f3;
  --surface: #f6f7f9;
  --surface-2: #ffffff;
  --surface-3: #e5e8ed;

  /* Ink */
  --ink: #15181c;
  --ink-2: #3b424b;
  --ink-3: #6b7380;
  --ink-4: #9aa1ac;
  --line: #d6dae0;
  --line-2: #e3e6eb;

  /* Interactive */
  --accent: #1e4fd6;
  --accent-ink: #163ea9;
  --focus: #1e4fd6;
  --selection: #d6def7;

  /* Semantic statuses: dot colour / text colour / tint */
  --s-prohibited: #cf4436;
  --s-prohibited-fg: #9b3127;
  --s-prohibited-bg: #fae6e3;
  --s-legal: #1c8a58;
  --s-legal-fg: #166b45;
  --s-legal-bg: #dff2e7;
  --s-restricted: #3e6e8e;
  --s-restricted-fg: #2f5873;
  --s-restricted-bg: #e1ebf2;
  --s-proposed: #6b4fd3;
  --s-proposed-fg: #533fa6;
  --s-proposed-bg: #ebe7f9;
  --s-pending: #6f7786;
  --s-pending-fg: #4f5663;
  --s-pending-bg: #e8ebef;

  /* Shape */
  --r-xs: 6px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Type */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
  --fs-0: 12px;
  --fs-1: 13px;
  --fs-2: 14px;
  --fs-3: 15px;
  --fs-4: 17px;
  --fs-5: 20px;
  --fs-6: 24px;
  --fs-7: 28px;

  /* Layout */
  --container: 1040px;
  --gutter: 20px;
  --measure: 66ch;

  /* Space */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --fs-7: 32px;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-3) / 1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: #b7c4ee;
}

a:hover {
  color: var(--accent-ink);
  text-decoration-color: currentColor;
}

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

time {
  font-variant-numeric: tabular-nums;
}

::selection {
  background: var(--selection);
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

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

.skip {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-s);
  text-decoration: none;
}

.skip:focus {
  top: var(--sp-3);
}

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

.site-main {
  flex: 1 0 auto;
  padding: var(--sp-3) 0 var(--sp-8);
}

/* Header: transparent, sits on the paper; no divider */
.site-header {
  padding: var(--sp-4) 0 var(--sp-2);
}

@media (min-width: 900px) {
  .site-header {
    padding: var(--sp-5) 0 var(--sp-3);
  }
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: var(--fs-4);
  line-height: 1;
}

.brand:hover {
  color: var(--ink);
}

.brand__dot {
  width: 10px;
  height: 10px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--brand-dot, var(--s-prohibited));
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--brand-dot, var(--s-prohibited));
}

.brand__tld {
  color: var(--ink-3);
  font-weight: 500;
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 7px 11px;
  border-radius: var(--r-s);
  font-size: var(--fs-2);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.site-nav a[aria-current='page'] {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: var(--r-s);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font: 500 var(--fs-2) / 1 var(--font);
  color: var(--ink);
}

.nav-toggle__icon {
  position: relative;
  width: 14px;
  height: 10px;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.nav-toggle__icon::before {
  top: 0;
}

.nav-toggle__icon::after {
  bottom: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__icon::before {
  top: 4px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__icon::after {
  bottom: 4px;
}

@media (min-width: 900px) {
  .site-nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }
}

.menu {
  padding: var(--sp-3) 0 var(--sp-2);
}

.menu[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .menu {
    display: none !important;
  }
}

.menu__inner {
  background: var(--surface-2);
  border-radius: var(--r-l);
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 600px) {
  .menu__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

.menu ul {
  list-style: none;
  display: grid;
  gap: 2px;
  margin-top: var(--sp-2);
}

.menu a {
  display: block;
  padding: 7px 10px;
  margin: 0 -10px;
  border-radius: var(--r-s);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-3);
}

.menu a:hover {
  background: var(--surface);
}

.menu a[aria-current='page'] {
  color: var(--accent-ink);
}

/* Footer: no divider, separated by rhythm and type */
.site-footer {
  padding: var(--sp-8) 0 var(--sp-6);
  color: var(--ink-2);
  font-size: var(--fs-2);
}

.site-footer__grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--sp-6);
  }
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-top: var(--sp-3);
}

.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer__tagline {
  margin-top: var(--sp-4);
  max-width: 34ch;
  color: var(--ink-2);
}

.site-footer__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: var(--sp-4);
  font-size: var(--fs-1);
}

.site-footer__small {
  margin-top: var(--sp-7);
  display: grid;
  gap: var(--sp-3);
  color: var(--ink-3);
  font-size: var(--fs-1);
  max-width: 84ch;
}

.site-footer__meta {
  margin-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  color: var(--ink-3);
  font: 400 var(--fs-0) / 1.5 var(--mono);
}

.site-footer__meta a {
  color: inherit;
  text-decoration: underline;
}

/* ---- Typography blocks --------------------------------------------------- */
.eyebrow {
  font: 500 var(--fs-0) / 1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.title {
  font-size: var(--fs-7);
  letter-spacing: -0.02em;
}

.lede {
  font-size: var(--fs-4);
  color: var(--ink-2);
  max-width: var(--measure);
}

.page-head {
  padding: var(--sp-3) 0 var(--sp-5);
  display: grid;
  gap: var(--sp-3);
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  align-items: center;
  color: var(--ink-3);
  font-size: var(--fs-1);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item .icon {
  color: var(--s-legal);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font: 500 var(--fs-0) / 1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.crumbs a {
  color: inherit;
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--ink-4);
}

/* Reading measure applies to text blocks only; tables, flows and figures use the full column */
.prose > p,
.prose > ul,
.prose > ol,
.prose > h2,
.prose > h3,
.prose > .notice,
.prose > .src {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: var(--sp-4);
}

.prose h2 {
  font-size: var(--fs-5);
  margin-top: var(--sp-7);
  scroll-margin-top: var(--sp-5);
}

.prose h3 {
  font-size: var(--fs-4);
  margin-top: var(--sp-6);
}

.prose h2 + *,
.prose h3 + * {
  margin-top: var(--sp-3);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  display: grid;
  gap: 6px;
}

.prose li::marker {
  color: var(--ink-3);
}

.prose strong {
  font-weight: 600;
}

.prose .src {
  margin-top: var(--sp-2);
}

.prose .notice,
.prose .flow,
.prose .rows,
.prose .facts,
.prose .reserved {
  margin-top: var(--sp-5);
}

/* On phones the per-row review date duplicates the page-level one */
@media (max-width: 767px) {
  .rows--board .rows__cell--date {
    display: none;
  }
}

/* ---- Sections ------------------------------------------------------------ */
.section {
  padding-top: var(--sp-6);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--sp-7);
  }
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-4);
}

.section__head .eyebrow {
  margin-bottom: 6px;
}

.section__title {
  font-size: var(--fs-5);
}

.section__more {
  font-size: var(--fs-2);
  font-weight: 500;
}

/* ---- Pills & tags -------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 8px;
  border-radius: var(--r-pill);
  font: 500 var(--fs-1) / 1.4 var(--font);
  background: var(--pill-bg, var(--s-pending-bg));
  color: var(--pill-fg, var(--s-pending-fg));
  white-space: nowrap;
  vertical-align: middle;
}

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pill-dot, var(--s-pending));
  flex: none;
}

.pill--lg {
  font-size: var(--fs-2);
  padding: 5px 12px 5px 10px;
}

.pill--prohibited {
  --pill-bg: var(--s-prohibited-bg);
  --pill-fg: var(--s-prohibited-fg);
  --pill-dot: var(--s-prohibited);
}

.pill--legal {
  --pill-bg: var(--s-legal-bg);
  --pill-fg: var(--s-legal-fg);
  --pill-dot: var(--s-legal);
}

.pill--restricted {
  --pill-bg: var(--s-restricted-bg);
  --pill-fg: var(--s-restricted-fg);
  --pill-dot: var(--s-restricted);
}

.pill--proposed {
  --pill-bg: var(--s-proposed-bg);
  --pill-fg: var(--s-proposed-fg);
  --pill-dot: var(--s-proposed);
}

.pill--pending {
  --pill-bg: var(--s-pending-bg);
  --pill-fg: var(--s-pending-fg);
  --pill-dot: var(--s-pending);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font: 500 var(--fs-0) / 1.4 var(--mono);
  letter-spacing: 0.02em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  white-space: nowrap;
}

/* ---- Cards & tiles ------------------------------------------------------- */
.card {
  background: var(--surface-2);
  border-radius: var(--r-l);
  padding: var(--sp-5);
}

.card--soft {
  background: var(--surface);
}

.card__title {
  font-size: var(--fs-4);
}

.tiles {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 600px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tiles--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .tiles--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tile {
  background: var(--surface-2);
  border-radius: var(--r-l);
  padding: var(--sp-5);
  display: grid;
  gap: var(--sp-3);
  align-content: start;
}

.tile__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-m);
  background: var(--surface-3);
  display: grid;
  place-items: center;
  color: var(--ink);
}

.tile__icon .icon {
  width: 20px;
  height: 20px;
}

.tile__title {
  font-size: var(--fs-4);
}

.tile__text {
  color: var(--ink-2);
  font-size: var(--fs-2);
}

.tile__link {
  font-size: var(--fs-2);
  font-weight: 500;
  align-self: end;
}

/* ---- Rows: responsive table ---------------------------------------------- */
.rows {
  display: grid;
  background: var(--surface-2);
  border-radius: var(--r-l);
  padding: var(--sp-2) var(--sp-5) var(--sp-3);
}

.rows__head {
  display: none;
}

.rows__row {
  display: grid;
  gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--line-2);
}

.rows__head + .rows__row {
  border-top-color: transparent;
}

.rows__cell {
  font-size: var(--fs-2);
  color: var(--ink-2);
  min-width: 0;
}

.rows__cell[data-label]::before {
  content: attr(data-label);
  display: block;
  font: 500 var(--fs-0) / 1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}

.rows__cell--name {
  font-size: var(--fs-3);
  font-weight: 600;
  color: var(--ink);
}

/* Inside tables a pill may wrap instead of overflowing its column */
.rows .pill {
  white-space: normal;
  text-align: left;
  line-height: 1.3;
}

.rows .pill__dot {
  margin-top: 1px;
}

.rows__cell--name small {
  display: block;
  font-weight: 400;
  color: var(--ink-3);
  font-size: var(--fs-1);
  margin-top: 2px;
}

.rows__cell--date {
  font: 400 var(--fs-1) / 1.5 var(--mono);
  color: var(--ink-3);
}

@media (min-width: 768px) {
  .rows__head {
    display: grid;
    gap: var(--sp-4);
    padding: var(--sp-3) 0 var(--sp-2);
  }

  .rows__head span {
    font: 500 var(--fs-0) / 1.4 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  .rows__row {
    align-items: start;
  }

  .rows__head + .rows__row {
    border-top-color: var(--line-2);
  }

  .rows__cell[data-label]::before {
    display: none;
  }

  .rows--board .rows__head,
  .rows--board .rows__row {
    grid-template-columns: 1.2fr 1.1fr 2fr 0.65fr;
  }

  .rows--laws .rows__head,
  .rows--laws .rows__row {
    grid-template-columns: 1.1fr 1.7fr 0.9fr;
  }

  .rows--bodies .rows__head,
  .rows--bodies .rows__row {
    grid-template-columns: 1fr 2fr 0.8fr;
  }

  .rows--zones .rows__head,
  .rows--zones .rows__row {
    grid-template-columns: 1.1fr 1.4fr 0.9fr 0.8fr;
  }

  .rows--register .rows__head,
  .rows--register .rows__row {
    grid-template-columns: 1.2fr 1fr 1.6fr 0.9fr;
  }
}

/* ---- Stages (legislative stepper) ---------------------------------------- */
.stages {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}

.stage {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 2px var(--sp-3);
  align-items: start;
}

.stage__bar {
  display: none;
}

.stage__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  margin: 6px 4px;
}

.stage--done .stage__dot {
  background: var(--ink);
}

.stage--current .stage__dot {
  background: var(--s-proposed);
  box-shadow: 0 0 0 3px var(--surface-2), 0 0 0 5px var(--s-proposed);
}

.stage__label {
  font-size: var(--fs-2);
  color: var(--ink-3);
}

.stage--done .stage__label {
  color: var(--ink-2);
}

.stage--current .stage__label {
  color: var(--ink);
  font-weight: 600;
}

.stage__note {
  grid-column: 2;
  font-size: var(--fs-1);
  color: var(--ink-3);
}

@media (min-width: 768px) {
  .stages {
    grid-template-columns: repeat(8, 1fr);
    gap: var(--sp-1);
  }

  .stage {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

  .stage__dot {
    display: none;
  }

  .stage__bar {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: var(--line-2);
  }

  .stage--done .stage__bar {
    background: var(--ink);
  }

  .stage--current .stage__bar {
    background: var(--s-proposed);
  }

  .stage__label {
    font-size: var(--fs-1);
    padding-right: var(--sp-2);
  }

  .stage__note {
    grid-column: 1;
    font-size: var(--fs-0);
    padding-right: var(--sp-2);
  }
}

/* ---- Timeline ------------------------------------------------------------ */
.timeline {
  list-style: none;
  display: grid;
}

.tl {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  grid-template-areas:
    'dot date'
    'dot body';
  gap: 2px var(--sp-3);
  position: relative;
  padding-bottom: var(--sp-5);
  scroll-margin-top: var(--sp-5);
}

.tl::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 0;
  width: 2px;
  background: var(--line-2);
}

.tl:last-child::before {
  display: none;
}

.tl__dot {
  grid-area: dot;
  width: 14px;
  height: 14px;
  margin: 3px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 3px solid var(--ink-4);
  position: relative;
  z-index: 1;
}

.tl--law .tl__dot {
  border-color: var(--ink);
}

.tl--proposal .tl__dot {
  border-color: var(--s-proposed);
}

.tl--adopted .tl__dot {
  border-color: var(--s-legal);
}

.tl--enforce .tl__dot {
  border-color: var(--s-prohibited);
}

.tl--signal .tl__dot {
  border-color: var(--ink-4);
}

.tl__date {
  grid-area: date;
  font: 500 var(--fs-1) / 1.5 var(--mono);
  color: var(--ink-3);
  padding-top: 1px;
}

.tl__body {
  grid-area: body;
  min-width: 0;
}

.tl__title {
  font-size: var(--fs-3);
  font-weight: 600;
  margin-top: 2px;
}

.tl__text {
  color: var(--ink-2);
  font-size: var(--fs-2);
  margin-top: 6px;
  max-width: var(--measure);
}

.tl__list {
  padding-left: 1.2em;
  display: grid;
  gap: 4px;
}

.tl__list li::marker {
  color: var(--ink-4);
}

.tl__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-3);
}

.tl__body .src {
  margin-top: var(--sp-2);
}

@media (min-width: 768px) {
  .tl {
    grid-template-columns: 150px 20px minmax(0, 1fr);
    grid-template-areas: 'date dot body';
    gap: 0 var(--sp-4);
  }

  .tl::before {
    left: 175px;
  }

  .tl__date {
    padding-top: 3px;
    text-align: right;
  }
}

/* ---- Flow (process diagram) ---------------------------------------------- */
.flow {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
  counter-reset: step;
}

.flow__step {
  position: relative;
  background: var(--surface-2);
  border-radius: var(--r-m);
  padding: var(--sp-4) var(--sp-4) var(--sp-4) 54px;
  counter-increment: step;
}

.flow__step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: var(--sp-4);
  top: 17px;
  font: 500 var(--fs-1) / 1.4 var(--mono);
  color: var(--ink-3);
}

.flow__title {
  font-weight: 600;
  font-size: var(--fs-3);
}

.flow__text {
  color: var(--ink-2);
  font-size: var(--fs-2);
  margin-top: 4px;
}

.flow__who {
  margin-top: var(--sp-3);
  font: 500 var(--fs-0) / 1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@media (min-width: 900px) {
  .flow {
    grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
    gap: var(--sp-3);
  }

  .flow__step {
    padding: 46px var(--sp-4) var(--sp-4);
    display: grid;
    align-content: start;
  }

  .flow__step::before {
    top: var(--sp-4);
  }

  .flow__step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -11px;
    top: 19px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--ink-4);
    border-right: 2px solid var(--ink-4);
    transform: rotate(45deg);
  }

  .flow__who {
    margin-top: auto;
    padding-top: var(--sp-3);
  }
}

/* ---- Notice -------------------------------------------------------------- */
.notice {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  padding: var(--sp-4);
  font-size: var(--fs-2);
  color: var(--ink-2);
  display: grid;
  gap: 6px;
  max-width: var(--measure);
}

.notice__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

.notice__title .icon {
  color: var(--ink-3);
}

.notice__body > * + * {
  margin-top: var(--sp-2);
}

.notice--soft {
  background: var(--surface);
  border-color: transparent;
}

.notice--strong {
  border-color: var(--line);
  background: var(--surface-2);
}

.notice--strong .notice__title .icon {
  color: var(--s-prohibited);
}

.notice--wide {
  max-width: none;
}

/* ---- Source line --------------------------------------------------------- */
.src {
  font: 400 var(--fs-0) / 1.6 var(--mono);
  color: var(--ink-3);
}

.src a {
  color: inherit;
  text-decoration-color: var(--line);
}

.src a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* ---- Definitions (glossary) ---------------------------------------------- */
.defs {
  display: grid;
  margin: 0;
}

.defs__item {
  display: grid;
  gap: 4px;
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--sp-5);
}

.defs dt {
  font-weight: 600;
  font-size: var(--fs-3);
}

.defs dd {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--fs-2);
  max-width: var(--measure);
}

@media (min-width: 768px) {
  .defs__item {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: var(--sp-5);
  }
}

/* ---- FAQ ----------------------------------------------------------------- */
.faq {
  display: grid;
}

.faq details {
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--sp-5);
}

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

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  font-weight: 600;
  font-size: var(--fs-3);
}

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

.faq summary::after {
  content: '+';
  font: 400 20px / 1 var(--mono);
  color: var(--ink-3);
  flex: none;
}

.faq details[open] summary::after {
  content: '−';
}

.faq__body {
  padding: 0 0 var(--sp-4);
  color: var(--ink-2);
  font-size: var(--fs-2);
  max-width: var(--measure);
  display: grid;
  gap: var(--sp-3);
}

/* ---- Reserved (designed empty state) ------------------------------------- */
.reserved {
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: var(--r-l);
  padding: var(--sp-5);
  display: grid;
  gap: var(--sp-3);
}

.reserved__title {
  font-size: var(--fs-4);
}

.reserved__body {
  color: var(--ink-2);
  font-size: var(--fs-2);
  max-width: var(--measure);
}

.reserved__body > * + * {
  margin-top: var(--sp-2);
}

.reserved__list {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: var(--fs-2);
  color: var(--ink-2);
}

.reserved__list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.reserved__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-4);
  flex: none;
  transform: translateY(-2px);
}

/* ---- Facts --------------------------------------------------------------- */
.facts {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fact {
  background: var(--surface-2);
  border-radius: var(--r-m);
  padding: var(--sp-4);
}

.fact__value {
  font-size: var(--fs-6);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.fact__label {
  color: var(--ink-3);
  font-size: var(--fs-1);
  margin-top: 6px;
}

/* ---- Columns with TOC ---------------------------------------------------- */
.cols {
  display: grid;
  gap: var(--sp-6);
}

.cols__aside {
  display: none;
}

@media (min-width: 1024px) {
  .cols {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: start;
  }

  .cols__aside {
    display: block;
    position: sticky;
    top: var(--sp-5);
    padding-top: var(--sp-1);
  }
}

.toc {
  display: grid;
  gap: 4px;
  margin-top: var(--sp-3);
  font-size: var(--fs-1);
}

.toc a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 3px 0;
  display: block;
}

.toc a:hover {
  color: var(--ink);
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-s);
  background: var(--ink);
  color: var(--paper);
  font: 500 var(--fs-2) / 1.2 var(--font);
  text-decoration: none;
}

.btn:hover {
  background: #000;
  color: #fff;
}

.btn--ghost {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--ink);
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* ---- Home: status top ---------------------------------------------------- */
.status-top {
  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-3) 0 var(--sp-2);
}

@media (min-width: 900px) {
  .status-top {
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
    align-items: start;
    gap: var(--sp-6);
    padding-top: var(--sp-5);
  }
}

.status-top__main {
  display: grid;
  gap: var(--sp-3);
}

.status-top__title {
  font-size: var(--fs-7);
  letter-spacing: -0.02em;
}

.status-top__title .pill {
  vertical-align: 0.15em;
  margin-left: 6px;
}

.status-aside {
  background: var(--surface-2);
  border-radius: var(--r-l);
  padding: var(--sp-5);
  display: grid;
  gap: var(--sp-3);
}

.status-aside__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  align-items: center;
  font-size: var(--fs-2);
  color: var(--ink-2);
}

.status-aside__row strong {
  color: var(--ink);
  font-weight: 600;
}

.status-aside .stages {
  margin-top: var(--sp-2);
}

.status-aside .stages {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .status-aside .stages {
    grid-template-columns: repeat(4, 1fr);
  }

  .status-aside .stage__label {
    font-size: var(--fs-0);
  }
}

/* ---- Zones strip (desktop SVG) & list (mobile) --------------------------- */
.zone-strip {
  display: none;
  background: var(--surface-2);
  border-radius: var(--r-l);
  padding: var(--sp-4) var(--sp-5);
}

.zone-strip svg {
  width: 100%;
  height: auto;
}

.zone-strip .zs-axis {
  stroke: var(--line);
  stroke-width: 2;
}

.zone-strip .zs-tick {
  stroke: var(--line);
  stroke-width: 1;
}

.zone-strip .zs-band {
  fill: var(--surface);
}

.zone-strip .zs-band-label,
.zone-strip .zs-lon {
  font: 500 11px / 1 var(--mono);
  fill: var(--ink-4);
  letter-spacing: 0.06em;
}

.zone-strip .zs-name {
  font: 600 13px / 1 var(--font);
  fill: var(--ink);
}

.zone-strip .zs-region {
  font: 400 12px / 1 var(--font);
  fill: var(--ink-3);
}

.zone-strip .zs-status {
  font: 500 10px / 1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zone-strip .zs-dot {
  stroke: var(--surface-2);
  stroke-width: 3;
}

.zone-strip .zs-leader {
  stroke: var(--line);
  stroke-width: 1.5;
}

.zone-strip .zs--legal {
  fill: var(--s-legal);
}

.zone-strip .zs--pending {
  fill: var(--s-pending);
}

.zone-strip .zs--proposed {
  fill: var(--s-proposed);
}

.zone-strip .zs-status.zs--legal {
  fill: var(--s-legal-fg);
}

.zone-strip .zs-status.zs--pending {
  fill: var(--s-pending-fg);
}

.zone-strip .zs-status.zs--proposed {
  fill: var(--s-proposed-fg);
}

.zone-strip__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-2);
  font-size: var(--fs-1);
  color: var(--ink-3);
}

.zone-list {
  display: grid;
  gap: var(--sp-2);
}

.zone-list__item {
  background: var(--surface-2);
  border-radius: var(--r-m);
  padding: var(--sp-4);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px var(--sp-3);
  align-items: center;
}

.zone-list__name {
  font-weight: 600;
}

.zone-list__region {
  grid-column: 1;
  color: var(--ink-3);
  font-size: var(--fs-1);
}

.zone-list__lon {
  grid-column: 2;
  grid-row: 2;
  font: 400 var(--fs-0) / 1.4 var(--mono);
  color: var(--ink-4);
  text-align: right;
}

@media (min-width: 768px) {
  .zone-strip {
    display: block;
  }

  .zone-list {
    display: none;
  }
}

/* ---- Checklist ----------------------------------------------------------- */
.checklist {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}

.checklist li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: start;
  background: var(--surface-2);
  border-radius: var(--r-m);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-2);
  color: var(--ink-2);
}

.checklist .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.checklist--no .icon {
  color: var(--s-prohibited);
}

.checklist--yes .icon {
  color: var(--s-legal);
}

.checklist strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---- Grid helpers -------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--sp-3);
}

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

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

/* ---- Utilities ----------------------------------------------------------- */
.muted {
  color: var(--ink-3);
}

.small {
  font-size: var(--fs-1);
}

.mono {
  font-family: var(--mono);
}

.stack > * + * {
  margin-top: var(--sp-4);
}

.stack-s > * + * {
  margin-top: var(--sp-2);
}

.mt-5 {
  margin-top: var(--sp-5);
}

.mt-6 {
  margin-top: var(--sp-6);
}

.max {
  max-width: var(--measure);
}

/* ---- Print --------------------------------------------------------------- */
@media print {
  .site-nav,
  .nav-toggle,
  .menu,
  .skip,
  .cols__aside {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
  }
}

