/* fonts.css */
/* Typefaces, served from this site. No font is requested from a third party.
   Fraunces (display serif; the parent site kryonis.global sets its headlines in it) and JetBrains Mono (labels and
   digests; also the parent site's label face). Both under the SIL Open Font License 1.1; the licence texts are
   next to the files. Subsets by unicode range, so a browser fetches only what a page uses: Vietnamese is needed
   for the name of the site. */

@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/fraunces-vietnamese-opsz-normal.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/fraunces-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("fonts/jetbrains-mono-vietnamese-wght-normal.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* tokens.css */
/* Design tokens. An evergreen and mineral palette with mint and copper accents, in line with the green and
   bronze of the BCCS protocol site but on a light, document-like ground. */
:root {
  --evergreen-950: #0a211f;
  --evergreen-900: #0f2d2a;
  --evergreen-800: #153b37;
  --evergreen-700: #1e4f49;
  --mint-300: #9be2bd;
  --mint-200: #c2efd6;
  --mint-100: #e1f6ea;
  --green-700: #17694a;
  --green-600: #1f7a54;
  --teal-700: #24616a;
  --copper-700: #86562a;
  --copper-500: #bb8657;
  --copper-200: #ecd8c4;

  --paper: #f5f5ef;
  --surface: #ffffff;
  --surface-2: #eef0e8;
  --surface-3: #e4e7dc;
  --line: #d8dccf;
  --line-strong: #b3baaa;
  --ink: #14211e;
  --ink-2: #33423d;
  --ink-3: #53625c;
  --on-dark: #f1f5f0;
  --on-dark-2: #b9cbc4;

  --ok-fg: #14603f;
  --ok-bg: #e2f3e9;
  --ok-line: #a6d8bd;
  --refuse-fg: #734a00;
  --refuse-bg: #fff3d1;
  --refuse-line: #e3c36d;
  --conflict-fg: #923718;
  --conflict-bg: #fde9df;
  --conflict-line: #e8b49b;
  --fail-fg: #98201f;
  --fail-bg: #fbe4e3;
  --fail-line: #e6a7a5;
  --pending-fg: #42505a;
  --pending-bg: #e8ecef;
  --pending-line: #c2cbd2;
  --info-fg: #1c545d;
  --info-bg: #e0f0f2;
  --info-line: #a6ced4;

  --font-sans: "Inter", "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --font-display: "Inter Display", "Inter", "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  /* Headlines: the display serif of the parent site, so the Observatory reads as part of the same family. */
  --font-serif: "Fraunces Variable", "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --text-xs: 0.78rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.7rem, 1.35rem + 1.5vw, 2.2rem);
  --text-3xl: clamp(2.05rem, 1.35rem + 3vw, 3.2rem);

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --shadow-1: 0 1px 2px rgba(15, 45, 42, 0.06), 0 1px 1px rgba(15, 45, 42, 0.04);
  --shadow-2: 0 10px 30px -12px rgba(15, 45, 42, 0.28);

  --page: 1180px;
  --page-wide: 1480px;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
}

/* base.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--s-5);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  font-feature-settings: "cv05", "ss03", "calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Long addresses and digests in running text break instead of widening the page. */
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 620;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

/* Page and section titles are set in the display serif; smaller headings stay in the sans for crisp data screens. */
h1,
h2 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 500;
}

h1 {
  font-size: var(--text-2xl);
  letter-spacing: -0.018em;
}

h2 {
  font-size: var(--text-xl);
  letter-spacing: -0.008em;
}

h3 {
  font-size: var(--text-lg);
  letter-spacing: -0.006em;
}

h4 {
  font-size: var(--text-base);
  letter-spacing: 0;
}

h1:focus,
h2:focus,
section:focus {
  outline: none;
}

p {
  margin: 0;
  text-wrap: pretty;
}

p + p {
  margin-top: var(--s-3);
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: var(--s-1);
}

a {
  color: var(--green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--evergreen-900);
  text-decoration-thickness: 2px;
}

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

code,
kbd,
samp,
.mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
  font-variant-ligatures: none;
}

code {
  padding: 0.08em 0.32em;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  word-break: break-word;
}

strong {
  font-weight: 620;
}

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

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

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

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

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

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 50;
  padding: var(--s-2) var(--s-4);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
}

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

.noscript {
  max-width: 40rem;
  margin: var(--s-7) auto;
  padding: 0 var(--gutter);
}

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

@media print {
  .site-header,
  .site-footer,
  .preview-banner,
  .map__controls,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
  }
}

/* layout.css */
/* Application shell: banner, header, navigation, page frame and footer. */

.preview-banner {
  background: var(--copper-200);
  color: #4a2f12;
  border-bottom: 1px solid var(--copper-500);
  font-size: var(--text-sm);
}

.preview-banner__inner {
  max-width: var(--page-wide);
  margin: 0 auto;
  padding: var(--s-2) var(--gutter);
  display: flex;
  gap: var(--s-3);
  align-items: baseline;
  flex-wrap: wrap;
}

.preview-banner strong {
  font-weight: 650;
}

.site-header {
  background: var(--evergreen-900);
  color: var(--on-dark);
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.hero a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--mint-300);
}

.site-header__inner {
  max-width: var(--page-wide);
  margin: 0 auto;
  padding: var(--s-3) var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--on-dark);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: #fff;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__bccs {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--mint-300);
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 520;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list li {
  margin: 0;
}

.nav__link {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: var(--r-md);
  color: var(--on-dark-2);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav__link[aria-current="page"] {
  color: #fff;
  background: rgba(155, 226, 189, 0.16);
  box-shadow: inset 0 -2px 0 var(--mint-300);
}

.nav__link--operator {
  margin-left: var(--s-3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--on-dark);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--on-dark);
  font-size: var(--text-sm);
  font-weight: 550;
  cursor: pointer;
}

.context-bar {
  background: var(--evergreen-950);
  color: var(--on-dark-2);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}

.context-bar__inner {
  max-width: var(--page-wide);
  margin: 0 auto;
  padding: 0.4rem var(--gutter);
  display: flex;
  gap: var(--s-2) var(--s-5);
  flex-wrap: wrap;
  align-items: center;
}

.context-bar a {
  color: var(--mint-200);
}

.context-bar__spacer {
  margin-left: auto;
}

main {
  display: block;
  min-height: 60vh;
}

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

.page--wide {
  max-width: var(--page-wide);
}

.page--mid {
  max-width: 1340px;
}

.page-head {
  max-width: 54rem;
  margin-bottom: var(--s-6);
}

.page-head > * + * {
  margin-top: var(--s-3);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-700);
}

.lead {
  font-size: var(--text-md);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 46rem;
}

.section {
  margin-top: var(--s-7);
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
}

.section__lead {
  max-width: 48rem;
  color: var(--ink-2);
  margin-bottom: var(--s-4);
}

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

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

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--s-4);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 1fr);
  gap: var(--s-5);
  align-items: start;
}

.site-footer {
  background: var(--evergreen-950);
  color: var(--on-dark-2);
  font-size: var(--text-sm);
}

.site-footer__inner {
  max-width: var(--page-wide);
  margin: 0 auto;
  padding: var(--s-6) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: var(--s-6);
}

.site-footer h2 {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-300);
  margin-bottom: var(--s-2);
}

.site-footer a {
  color: var(--on-dark);
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__legal-inner {
  max-width: var(--page-wide);
  margin: 0 auto;
  padding: var(--s-3) var(--gutter);
  display: flex;
  gap: var(--s-2) var(--s-5);
  flex-wrap: wrap;
  font-size: var(--text-xs);
}

@media (max-width: 1100px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    width: 100%;
    margin-left: 0;
    padding-top: var(--s-2);
  }

  .nav[data-open="true"] {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav__link {
    padding: 0.65rem 0.75rem;
    font-size: var(--text-base);
  }

  .nav__link--operator {
    margin-left: 0;
    margin-top: var(--s-2);
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-5);
  }
}

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

  .page {
    padding-top: var(--s-6);
    padding-bottom: var(--s-7);
  }

  .context-bar__spacer {
    margin-left: 0;
  }
}

/* components.css */
/* Components shared by the public and the operator views. */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
}

.card--flat {
  box-shadow: none;
  background: var(--surface-2);
  border-color: transparent;
}

.card--tight {
  padding: var(--s-4);
}

.card > h3,
.card > h2 {
  margin-bottom: var(--s-2);
}

.card > * + * {
  margin-top: var(--s-3);
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

a.card:hover {
  border-color: var(--green-600);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}

/* Status badges: an icon and a word; colour is never the only signal. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.14em 0.6em 0.14em 0.42em;
  border: 1px solid var(--pending-line);
  border-radius: 999px;
  background: var(--pending-bg);
  color: var(--pending-fg);
  font-size: var(--text-xs);
  font-weight: 620;
  letter-spacing: 0.01em;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: middle;
}

.badge svg {
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
}

.badge--ok {
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok-fg);
}

.badge--refuse {
  background: var(--refuse-bg);
  border-color: var(--refuse-line);
  color: var(--refuse-fg);
}

.badge--conflict {
  background: var(--conflict-bg);
  border-color: var(--conflict-line);
  color: var(--conflict-fg);
}

.badge--fail {
  background: var(--fail-bg);
  border-color: var(--fail-line);
  color: var(--fail-fg);
}

.badge--info {
  background: var(--info-bg);
  border-color: var(--info-line);
  color: var(--info-fg);
}

.badge--large {
  font-size: var(--text-sm);
  padding: 0.22em 0.8em 0.22em 0.55em;
}

.tag {
  display: inline-block;
  padding: 0.05em 0.45em;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-2);
  white-space: nowrap;
}

/* Definition grids. */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: var(--s-4) var(--s-5);
  margin: 0;
}

.facts--1 {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-3);
}

.facts__item {
  min-width: 0;
}

.facts dt {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.15rem;
}

.facts dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.facts dd small,
.muted {
  color: var(--ink-3);
  font-size: var(--text-sm);
}

small {
  font-size: var(--text-sm);
}

/* Hashes: shortened by default, full on request, copyable. */
.hash {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  vertical-align: middle;
}

.hash__value {
  font-family: var(--font-mono);
  font-size: 0.82em;
  padding: 0.1em 0.4em;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.hash__btn {
  flex-shrink: 0;
  padding: 0.1em 0.45em;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--text-xs);
  font-weight: 550;
  cursor: pointer;
}

.hash__btn:hover {
  border-color: var(--green-600);
  color: var(--green-700);
}

/* Tables scroll inside their own frame; the page never scrolls sideways. */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.table-wrap:focus-visible {
  outline-offset: 0;
}

table.data {
  font-size: var(--text-sm);
  min-width: 100%;
}

table.data caption {
  caption-side: top;
  text-align: left;
  padding: var(--s-3) var(--s-4);
  color: var(--ink-3);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--line);
}

table.data th,
table.data td {
  padding: 0.55rem var(--s-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

table.data thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  font-size: var(--text-xs);
  font-weight: 620;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

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

table.data tbody th {
  font-weight: 560;
}

table.data tbody tr:hover {
  background: #fafbf7;
}

table.data .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

table.data .nowrap {
  white-space: nowrap;
}

/* Free text with long unbroken tokens (digests, URLs) wraps inside its column and never widens the table. */
table.data .wide {
  min-width: 20rem;
  overflow-wrap: anywhere;
}

table.data tbody th {
  min-width: 10rem;
}

table.data tbody th.nowrap {
  min-width: 0;
}

table.data tr.is-dim td,
table.data tr.is-dim th {
  color: var(--ink-3);
}

/* Notices. */
.notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--info-line);
  border-left-width: 4px;
  border-radius: var(--r-md);
  background: var(--info-bg);
  color: var(--ink);
}

.notice svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  color: var(--info-fg);
}

.notice__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 620;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.2rem;
}

.notice--refuse {
  border-color: var(--refuse-line);
  background: var(--refuse-bg);
}

.notice--refuse svg {
  color: var(--refuse-fg);
}

.notice--fail {
  border-color: var(--fail-line);
  background: var(--fail-bg);
}

.notice--fail svg {
  color: var(--fail-fg);
}

.notice--ok {
  border-color: var(--ok-line);
  background: var(--ok-bg);
}

.notice--ok svg {
  color: var(--ok-fg);
}

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

.notice--plain svg {
  color: var(--ink-3);
}

.empty {
  padding: var(--s-6) var(--s-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(20, 33, 30, 0.018) 10px 20px);
  text-align: center;
  color: var(--ink-2);
}

.empty__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 620;
  color: var(--ink);
  margin: 0 0 var(--s-2);
}

.empty p {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--text-sm);
}

/* Buttons and form controls. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.btn:hover {
  border-color: var(--green-600);
  color: var(--evergreen-900);
  background: #f9fbf7;
}

.btn--primary {
  background: var(--evergreen-900);
  border-color: var(--evergreen-900);
  color: #fff;
}

.btn--primary:hover {
  background: var(--evergreen-700);
  border-color: var(--evergreen-700);
  color: #fff;
}

.btn--onDark {
  background: var(--mint-300);
  border-color: var(--mint-300);
  color: var(--evergreen-950);
}

.btn--onDark:hover {
  background: #b6ecd0;
  border-color: #b6ecd0;
  color: var(--evergreen-950);
}

.btn--ghostDark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--on-dark);
}

.btn--ghostDark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn--danger {
  border-color: var(--fail-line);
  color: var(--fail-fg);
}

.btn--danger:hover {
  background: var(--fail-bg);
  border-color: var(--fail-fg);
  color: var(--fail-fg);
}

.btn--small {
  padding: 0.3rem 0.65rem;
  font-size: var(--text-xs);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
}

.btn-row {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  align-items: center;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field__label {
  font-size: var(--text-sm);
  font-weight: 600;
}

.field__hint {
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--text-base);
}

.textarea {
  min-height: 6rem;
  resize: vertical;
  line-height: 1.5;
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--green-600);
}

.form-error {
  color: var(--fail-fg);
  font-size: var(--text-sm);
  font-weight: 550;
}

/* Tabs. */
.tabs__list {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line-strong);
  overflow-x: auto;
  scrollbar-width: thin;
}

.tabs__tab {
  padding: 0.6rem 0.95rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--ink-3);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

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

.tabs__tab[aria-selected="true"] {
  color: var(--evergreen-900);
  border-bottom-color: var(--green-600);
}

.tabs__panel {
  padding-top: var(--s-5);
}

.tabs__panel[hidden] {
  display: none;
}

/* Disclosure. */
details.disclosure {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

details.disclosure > summary {
  padding: var(--s-3) var(--s-4);
  font-weight: 600;
  cursor: pointer;
  list-style-position: inside;
}

details.disclosure > summary:hover {
  color: var(--green-700);
}

details.disclosure[open] > summary {
  border-bottom: 1px solid var(--line);
}

details.disclosure > .disclosure__body {
  padding: var(--s-4);
}

details.disclosure > .disclosure__body--flush {
  padding: 0;
}

details.disclosure > .disclosure__body--flush .table-wrap {
  border: 0;
  border-radius: 0 0 var(--r-md) var(--r-md);
}

/* Lists of checks and steps. */
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checks li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: var(--s-2);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.checks li:last-child {
  border-bottom: 0;
}

.checks svg {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.18rem;
}

.checks .is-ok svg {
  color: var(--ok-fg);
}

.checks .is-no svg {
  color: var(--refuse-fg);
}

.checks .is-na svg {
  color: var(--pending-fg);
}

.checks__title {
  font-weight: 580;
}

.checks__detail {
  color: var(--ink-2);
  font-size: var(--text-sm);
}

.kv-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.kv-inline b {
  font-weight: 620;
  color: var(--ink);
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain-list li {
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.plain-list li:last-child {
  border-bottom: 0;
}

.loading {
  display: grid;
  gap: var(--s-4);
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--s-7) var(--gutter);
}

.loading__bar {
  height: 1rem;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.loading__bar:nth-child(2) {
  width: 46%;
  height: 2rem;
}

.loading__bar:nth-child(3) {
  width: 78%;
}

.loading__bar:nth-child(4) {
  width: 64%;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.toast-region {
  position: fixed;
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 40;
  display: grid;
  gap: var(--s-2);
  max-width: min(26rem, calc(100vw - 2rem));
}

.toast {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--evergreen-900);
  color: var(--on-dark);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-2);
}

/* map.css */
/* Map view. The canvas is the map; controls, scale and attribution are ordinary elements on top of it. */

.map {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #dfe5dc;
  height: clamp(22rem, 62vh, 44rem);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.map--compact {
  height: clamp(15rem, 34vw, 22rem);
  border-radius: var(--r-md);
}

.map__canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.map__canvas:active {
  cursor: grabbing;
}

.map:focus-within {
  border-color: var(--green-600);
}

.map__controls {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--line-strong);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.map__controls button {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.map__controls button:hover {
  background: var(--mint-100);
}

.map__controls button:focus-visible {
  outline-offset: -3px;
}

.map__scale {
  position: absolute;
  left: var(--s-3);
  bottom: var(--s-3);
  padding: 0.15rem 0.45rem 0.25rem;
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--r-sm);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  pointer-events: none;
}

.map__scale-bar {
  height: 5px;
  margin-top: 2px;
  border: 1.5px solid var(--ink);
  border-top: 0;
}

.map__attribution {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 78%;
  padding: 0.12rem 0.5rem;
  background: rgba(255, 255, 255, 0.86);
  border-top-left-radius: var(--r-sm);
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.map__status {
  position: absolute;
  left: var(--s-3);
  /* Below the graticule labels that run along the top edge. */
  top: 1.9rem;
  max-width: calc(100% - 5rem);
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: var(--text-xs);
  color: var(--ink-2);
}

.map__status:empty {
  display: none;
}

.map-help {
  font-size: var(--text-xs);
  color: var(--ink-3);
  margin-top: var(--s-2);
}

.layer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-2);
}

.layer-list li {
  margin: 0;
}

.layer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.1rem var(--s-3);
  align-items: start;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
}

.layer:hover {
  border-color: var(--line-strong);
}

.layer:has(input:checked) {
  border-color: var(--green-600);
  background: #f6fbf8;
}

.layer input {
  margin-top: 0.3rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--green-600);
}

.layer__title {
  font-weight: 600;
  font-size: var(--text-sm);
}

.layer__meta {
  grid-column: 2;
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.layer--locked {
  cursor: default;
  background: var(--surface-2);
  border-style: dashed;
}

.layer--locked svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  color: var(--ink-3);
}

.legend {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}

.legend li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
}

.legend__swatch {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 3px;
  border: 1px solid rgba(20, 33, 30, 0.35);
  flex-shrink: 0;
}

.legend__swatch--none {
  background: repeating-linear-gradient(45deg, #fff 0 3px, #d5d9cf 3px 6px);
}

.opacity-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--text-sm);
}

.opacity-row input[type="range"] {
  flex: 1;
  accent-color: var(--green-600);
}

.layer-list--grid {
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
}

fieldset.bare {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.card__h {
  font-size: var(--text-lg);
}

.split .map {
  height: clamp(24rem, 66vh, 46rem);
}

/* views.css */
/* Public views. */

.hero {
  background: var(--evergreen-900);
  color: var(--on-dark);
  border-bottom: 1px solid var(--evergreen-950);
}

.hero__inner {
  max-width: var(--page-wide);
  margin: 0 auto;
  padding: var(--s-7) var(--gutter) var(--s-8);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: var(--s-7);
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: var(--text-3xl);
  line-height: 1.06;
  letter-spacing: -0.022em;
  /* Lighter than the page titles: at this size the serif carries itself, as on the parent site. */
  font-weight: 430;
  max-width: 17ch;
}

.hero .eyebrow {
  color: var(--mint-300);
  margin-bottom: var(--s-4);
}

.hero__lead {
  margin-top: var(--s-5);
  max-width: 38rem;
  font-size: var(--text-md);
  line-height: 1.65;
  color: #d6e3dd;
}

.hero__lead + .hero__lead {
  margin-top: var(--s-3);
}

.hero .btn-row {
  margin-top: var(--s-6);
}

.hero__panel {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.hero__panel .map {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  height: clamp(16rem, 25vw, 22rem);
}

.hero .hero__panel .eyebrow {
  color: var(--copper-700);
  margin-bottom: 0;
}

.claim-card {
  padding: var(--s-5);
}

.claim-card__caption {
  font-size: var(--text-xs);
  color: var(--ink-3);
  padding: var(--s-2) var(--s-5) 0;
}

.claim-card h2 {
  font-size: var(--text-lg);
  margin: var(--s-1) 0 var(--s-3);
}

.claim-card__outcome {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
}

.claim-card__extent {
  font-weight: 620;
}

.claim-card p {
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.claim-card .btn-row {
  margin-top: var(--s-4);
}

/* Three axes. */
.axis {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  height: 100%;
}

.axis__question {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.axis__answer {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 620;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.axis p {
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.axis__foot {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
}

/* Evaluator path. */
.path {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-3);
  counter-reset: step;
}

.path li {
  margin: 0;
  counter-increment: step;
}

.path a {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  height: 100%;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.path a:hover {
  border-color: var(--green-600);
  box-shadow: var(--shadow-2);
}

.path a::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--evergreen-900);
  color: var(--mint-300);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
}

.path__title {
  font-weight: 640;
  line-height: 1.3;
}

.path__text {
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.path__go {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--green-700);
}

/* Sourced statements. */
.sourced {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sourced li {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.sourced li:last-child {
  border-bottom: 0;
}

.source-note {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--text-xs);
  color: var(--ink-3);
}

/* Timeline. */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 9.5rem 1.5rem minmax(0, 1fr);
  gap: var(--s-3);
  margin: 0;
  padding-bottom: var(--s-4);
  position: relative;
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink-2);
  text-align: right;
  padding-top: 0.1rem;
}

.timeline__dot {
  position: relative;
  display: grid;
  justify-items: center;
}

.timeline__dot::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--green-600);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--green-600);
  z-index: 1;
}

.timeline__dot::after {
  content: "";
  position: absolute;
  top: 0.8rem;
  bottom: calc(-1 * var(--s-4));
  width: 1px;
  background: var(--line-strong);
}

.timeline li:last-child .timeline__dot::after {
  display: none;
}

.timeline__item--refusal .timeline__dot::before {
  background: #c9941a;
  box-shadow: 0 0 0 1px #c9941a;
}

.timeline__item--open .timeline__dot::before {
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.timeline__title {
  font-weight: 620;
}

.timeline__detail {
  font-size: var(--text-sm);
  color: var(--ink-2);
}

/* Outcome banner on the claim page. */
.outcome {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--s-5);
  padding: var(--s-5);
  border: 1px solid var(--refuse-line);
  border-left-width: 6px;
  border-radius: var(--r-lg);
  background: var(--refuse-bg);
}

.outcome--ok {
  border-color: var(--ok-line);
  background: var(--ok-bg);
}

.outcome--conflict {
  border-color: var(--conflict-line);
  background: var(--conflict-bg);
}

.outcome--pending {
  border-color: var(--pending-line);
  background: var(--pending-bg);
}

.outcome__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.outcome__value {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0.2rem 0 var(--s-2);
}

.outcome__extent {
  font-size: var(--text-lg);
  font-weight: 620;
}

.outcome__side > * + * {
  margin-top: var(--s-3);
}

.reason {
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(20, 33, 30, 0.12);
}

.reason__code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
}

.reason p {
  font-size: var(--text-sm);
  margin-top: 0.2rem;
}

/* The dates of a measurement, kept apart. */
.clocks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--line);
  overflow: hidden;
}

.clocks > div {
  background: var(--surface);
  padding: var(--s-3) var(--s-4);
}

.clocks dt {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.clocks dd {
  margin: 0.15rem 0 0;
  font-weight: 580;
}

.clocks small {
  display: block;
  font-weight: 400;
  color: var(--ink-3);
}

/* Variant matrix. */
.variant-decision {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

.threshold {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.threshold--moved {
  font-weight: 700;
  color: var(--copper-700);
}

.withheld {
  font-size: var(--text-sm);
  color: var(--ink-3);
  font-style: italic;
}

/* Programme. */
.wp {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: var(--s-4);
}

.wp__id {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--copper-700);
}

.wp__months {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
  margin-top: 0.1rem;
}

.gantt {
  display: grid;
  grid-template-columns: 9rem repeat(12, minmax(0, 1fr));
  gap: 3px;
  align-items: center;
  font-size: var(--text-xs);
}

.gantt__head {
  text-align: center;
  font-family: var(--font-mono);
  color: var(--ink-3);
}

.gantt__label {
  font-weight: 600;
  font-size: var(--text-sm);
}

.gantt__cell {
  height: 1.15rem;
  border-radius: 3px;
  background: var(--surface-3);
}

.gantt__cell--on {
  background: var(--teal-700);
}

.quote {
  padding: var(--s-4) var(--s-5);
  border-left: 4px solid var(--green-600);
  background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--text-md);
  line-height: 1.6;
}

.quote footer {
  margin-top: var(--s-2);
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.section__anchor {
  color: inherit;
  text-decoration: none;
}

.section__anchor:hover {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
}

.filter-bar {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: var(--s-4);
}

.filter-bar .field {
  min-width: 11rem;
}

.filter-bar .field--grow {
  flex: 1;
  min-width: 14rem;
}

.receipt-url {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
  word-break: break-all;
  padding: var(--s-3);
  background: var(--surface-2);
  border-radius: var(--r-md);
}

.breadcrumb {
  font-size: var(--text-sm);
  color: var(--ink-3);
  margin-bottom: var(--s-3);
}

@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-6);
    padding-top: var(--s-6);
    padding-bottom: var(--s-7);
  }

  .path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* An odd last tile fills its row, so no empty cell shows the grid's line colour. */
  .clocks > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .outcome {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .path {
    grid-template-columns: minmax(0, 1fr);
  }

  .clocks {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline li {
    grid-template-columns: 1.5rem minmax(0, 1fr);
  }

  .timeline__date {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }

  .timeline__dot {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .timeline__body {
    grid-column: 2;
  }

  .gantt {
    grid-template-columns: 5.5rem repeat(12, minmax(0, 1fr));
    gap: 2px;
  }

  .wp {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-2);
  }
}

/* operator.css */
/* Operator console. */

.console {
  max-width: var(--page-wide);
  margin: 0 auto;
  padding: var(--s-6) var(--gutter) var(--s-8);
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
}

.console__side {
  position: sticky;
  top: var(--s-4);
}

.console__who {
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--text-sm);
  margin-bottom: var(--s-3);
}

.console__who strong {
  display: block;
}

.console__nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.console__nav li {
  margin: 0;
}

.console__nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 550;
  text-decoration: none;
}

.console__nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.console__nav a[aria-current="page"] {
  background: var(--evergreen-900);
  color: #fff;
}

.console__group {
  margin: var(--s-4) 0 var(--s-1);
  padding: 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.console__main > .page-head {
  margin-bottom: var(--s-5);
}

.console__main .section:first-of-type {
  margin-top: var(--s-5);
}

.private-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--evergreen-900);
  color: var(--mint-200);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.private-flag svg {
  width: 0.85rem;
  height: 0.85rem;
}

.login {
  max-width: 26rem;
  margin: var(--s-7) auto var(--s-8);
  padding: 0 var(--gutter);
}

.login .card {
  padding: var(--s-6);
}

.form-grid {
  display: grid;
  gap: var(--s-4);
}

.form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--s-4);
}

.stat {
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.stat__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 620;
  line-height: 1.25;
  margin: 0.15rem 0;
}

.stat__note {
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.joblog {
  max-height: 26rem;
  overflow: auto;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: #10201e;
  color: #d9e6e0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.joblog .is-stderr {
  color: #f3b8a0;
}

.joblog .is-system {
  color: var(--mint-300);
}

.kind {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-3) var(--s-4);
  align-items: start;
}

.kind--off {
  background: var(--surface-2);
  border-style: dashed;
  box-shadow: none;
}

.dropzone {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.dropzone[data-over="true"] {
  border-color: var(--green-600);
  background: var(--mint-100);
}

.finding {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}

.finding:last-child {
  border-bottom: 0;
}

.finding__sev {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.finding--error .finding__sev {
  color: var(--fail-fg);
}

.finding--warning .finding__sev {
  color: var(--refuse-fg);
}

.finding--info .finding__sev {
  color: var(--info-fg);
}

.check-list {
  display: grid;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  margin: 0;
}

.check-list label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--text-sm);
  cursor: pointer;
}

.check-list input {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--green-600);
}

.check-list small {
  display: block;
  color: var(--ink-3);
}

.overdue {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--fail-fg);
  font-size: var(--text-sm);
  font-weight: 620;
  white-space: nowrap;
}

.overdue svg {
  flex: none;
  width: 1rem;
  height: 1rem;
}

.req-edit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface-2);
}

.req-edit .field--wide {
  grid-column: 1 / -1;
}

.cell-note {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-3);
  font-size: var(--text-xs);
  font-weight: 400;
}

.money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .console {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-4);
    padding-top: var(--s-4);
  }

  .console__side {
    position: static;
  }

  .console__nav {
    display: flex;
    overflow-x: auto;
    gap: var(--s-1);
    padding-bottom: var(--s-2);
    scrollbar-width: thin;
  }

  .console__nav a {
    white-space: nowrap;
  }

  .console__group {
    display: none;
  }

  .form-grid--2,
  .req-edit {
    grid-template-columns: minmax(0, 1fr);
  }
}
