@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/fonts/barlow-semi-condensed-latin-ext-600-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: 'Barlow Semi Condensed';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/fonts/barlow-semi-condensed-latin-600-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: 'Barlow Semi Condensed';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/fonts/barlow-semi-condensed-latin-ext-700-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: 'Barlow Semi Condensed';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/fonts/barlow-semi-condensed-latin-700-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;
}

/* emanet.dev. One strong element, the case card with its plate and its four steps; the rest
   is plain, tabular and quiet, like the apps it leads to. */

:root {
  --ink: #15171b;
  --muted: #59616d;
  --rule: #d9dde2;
  --paper: #ffffff;
  --ground: #f2f3f5;
  --action: #b8321a; /* 2earl vermilion, darkened for white text (AA) */
  --action-ink: #ffffff;
  --good: #1f7a4d;
  --plate-blue: #003399;
  --focus: #1a56db;
  --measure: 72rem;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Noto Sans',
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--focus);
  z-index: 10;
}

.skip:focus {
  top: 0.5rem;
}

/* ---- Header and footer ---- */

.top,
.foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 750;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 1.75rem;
  height: 1.75rem;
}

.brand.small {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.brand.small svg {
  width: 1.25rem;
  height: 1.25rem;
}

.top nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top nav a {
  text-decoration: none;
  color: var(--muted);
}

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

.foot {
  border-top: 1px solid var(--rule);
  align-items: flex-start;
  padding-top: 2rem;
  padding-bottom: 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot p {
  margin: 0 0 0.35rem;
  max-width: 34rem;
}

.foot nav {
  display: grid;
  gap: 0.35rem;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

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

.button {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  border-radius: 6px;
  background: var(--action);
  color: var(--action-ink);
  font-weight: 650;
  text-decoration: none;
  border: 2px solid var(--action);
}

.button:hover {
  background: #9c2914;
  border-color: #9c2914;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: #b8bec6;
}

.button.ghost:hover {
  border-color: var(--ink);
}

/* ---- Front page ---- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 1.25rem;
  max-width: 14em;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.75rem;
}

.ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0;
}

/* The case card: a real case's four steps, the plate on top. */
.case {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow:
    0 1px 0 var(--rule),
    0 18px 40px -24px rgb(21 23 27 / 35%);
}

.case figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.plate {
  display: inline-flex;
  align-items: stretch;
  margin: 0 0 1.5rem;
  border: 3px solid #111;
  border-radius: 6px;
  background: #fff;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
  line-height: 1;
}

.plate::before {
  content: 'TR';
  display: flex;
  align-items: flex-end;
  padding: 0.5em 0.35em 0.25em;
  background: var(--plate-blue);
  color: #fff;
  font-size: 0.42em;
  letter-spacing: 0;
}

.plate span {
  padding: 0.3em 0.55em;
}

.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.journey li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  column-gap: 1.1rem;
  padding: 0 0 1rem 0;
  position: relative;
}

/* The line between the steps, and a dot on each. */
.journey li::before {
  content: '';
  position: absolute;
  left: calc(3.5rem + 0.2rem);
  top: 0.5rem;
  bottom: -0.5rem;
  width: 2px;
  background: var(--rule);
}

.journey li:last-child::before {
  display: none;
}

.journey li::after {
  content: '';
  position: absolute;
  left: calc(3.5rem - 0.05rem);
  top: 0.38rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid #8a929d;
}

.journey li.done::after {
  background: var(--good);
  border-color: var(--good);
}

.journey time {
  grid-row: span 2;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.95rem;
}

.journey strong,
.journey span {
  padding-left: 1rem;
}

.journey span {
  color: var(--muted);
  font-size: 0.92rem;
}

.journey li.done strong {
  color: var(--good);
}

.fee {
  margin: 0.25rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--rule);
  font-weight: 600;
}

.how,
.audiences,
.rules {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--rule);
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

.how ol {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.how li {
  counter-increment: step;
}

.how li::before {
  content: counter(step);
  display: block;
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--link);
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.how h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.how p {
  margin: 0;
  color: var(--muted);
}

.audiences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}

.audiences ul,
.rules ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
}

.audiences li,
.rules li {
  margin-bottom: 0.5rem;
}

.rules {
  background: var(--ground);
  border-top: none;
  margin: 0 calc(-1 * clamp(1rem, 4vw, 2.5rem));
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

.rules ul {
  columns: 2 22rem;
  column-gap: 3rem;
  font-size: 1.05rem;
}

.rules li {
  break-inside: avoid;
}

.contact {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.contact p {
  font-size: 1.15rem;
  margin: 0;
}

/* ---- Legal pages ---- */

.doc {
  max-width: 48rem;
  padding: clamp(2rem, 5vw, 3.5rem) 0 4rem;
}

.doc h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.doc h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  scroll-margin-top: 1rem;
}

.doc p,
.doc li {
  max-width: 44rem;
}

.doc .lede {
  font-size: 1.08rem;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.toc {
  background: var(--ground);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2 16rem;
}

.table {
  overflow-x: auto;
  margin: 0 0 1rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

thead th {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 2px solid var(--rule);
}

tbody th {
  font-weight: 600;
}

dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1rem;
}

dl.facts dt {
  color: var(--muted);
}

dl.facts dd {
  margin: 0;
}

/* ---- Small screens ---- */

@media (max-width: 52rem) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 30rem) {
  .how ol {
    grid-template-columns: 1fr;
  }

  dl.facts {
    grid-template-columns: 1fr;
  }

  dl.facts dd {
    margin-bottom: 0.5rem;
  }
}

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

/* ==================================================================================================
 * The Emanet look, shared with the apps (2026-11): Barlow, drawn from licence plates and road
 * signs and self-hosted; petrol blue for what you can press; light and dark with the device.
 * ================================================================================================ */

:root {
  color-scheme: light dark;
  --ink: #131a22;
  --muted: #55606e;
  --rule: #d5dae1;
  --paper: #ffffff;
  --ground: #eef1f4;
  --action: #0e4a5a;
  --action-ink: #ffffff;
  --good: #18794e;
  --focus: #1b6fd1;
  --display: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
  font-family:
    'Barlow',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 106.25%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8ecf1;
    --muted: #9aa6b4;
    --rule: #2a3440;
    --paper: #151c24;
    --ground: #0d1217;
    --action: #1d7f96;
    --good: #58c896;
    --focus: #7fb8ff;
  }
}

@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

body {
  background: var(--paper);
  color: var(--ink);
}

h1,
h2,
h3,
.brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 1.4rem + 4vw, 4rem);
  line-height: 1.02;
}

p {
  text-wrap: pretty;
}

.button {
  border-radius: 10px;
  font-weight: 600;
  transition:
    transform 0.08s,
    filter 0.12s;
}

.button:hover {
  filter: brightness(1.12);
}

.button:active {
  transform: translateY(1px);
}

.plate {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: #ffffff;
  color: #111418;
}

/* ==================================================================================================
   Icons, a trust strip, audience cards and the developer section (2026-11-28)
   ================================================================================================== */

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  vertical-align: -0.22em;
}

.scene {
  width: 9rem;
  height: auto;
  display: block;
}

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  padding: 0 0 clamp(2rem, 5vw, 3.5rem);
}

.trust > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  background: var(--paper, #fff);
  border: 1px solid var(--rule);
  border-radius: 14px;
}

.trust .icon {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.6rem;
  border-radius: 10px;
  background: var(--tint, #e3eef1);
  color: var(--link);
}

.trust strong {
  display: block;
  margin-bottom: 0.15rem;
}

.trust span {
  color: var(--muted);
  font-size: 0.95rem;
}

.how li {
  position: relative;
  padding: 1.3rem 1.2rem 1.4rem;
  background: var(--paper, #fff);
  border: 1px solid var(--rule);
  border-radius: 14px;
}

.how li::before {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  margin: 0;
  font-size: 1.6rem;
  color: var(--rule);
}

.how-icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: var(--action);
  color: #fff;
}

.how-icon .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.how ol {
  gap: 1rem;
}

@media (max-width: 60rem) {
  .how ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 34rem) {
  .how ol {
    grid-template-columns: 1fr;
  }
}

.audiences {
  gap: 1rem;
}

.audiences > div {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--paper, #fff);
  border: 1px solid var(--rule);
  border-radius: 16px;
}

.aud-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--tint, #e3eef1);
  color: var(--link);
}

.aud-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.audiences ul,
.rules ul {
  list-style: none;
  padding-left: 0;
}

.audiences li,
.rules li {
  position: relative;
  padding-left: 1.7rem;
}

.audiences li::before,
.rules li::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 0.45em;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--good, #18794e);
  border-bottom: 2.5px solid var(--good, #18794e);
  transform: rotate(-45deg);
}

.dev {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--rule);
}

.dev h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.dev h2 .icon {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--link);
}

.dev p {
  color: var(--muted);
  max-width: 34rem;
}

.dev pre {
  margin: 0;
  padding: 1.2rem 1.3rem;
  overflow-x: auto;
  border-radius: 14px;
  background: #0f1720;
  color: #e6edf3;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.rules-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.rules-head h2 {
  margin: 0;
}

.rules-head .scene {
  width: 5.5rem;
}

@media (max-width: 48rem) {
  .audiences,
  .dev {
    grid-template-columns: 1fr;
  }
}

/* The drawn scenes use these three; the apps define them in their own themes. */
:root {
  --tint: #e3eef1;
  --brand: #c8371b;
  --sunken: #f6f8fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tint: #16303a;
    --sunken: #10161d;
  }
}

/* ---- Questions and contact ---- */

.faq {
  max-width: 48rem;
  padding: clamp(2rem, 5vw, 3rem) 0 0;
}

.faq details {
  border-top: 1px solid var(--rule);
  padding: 0.9rem 0;
}

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

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq details p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  max-width: 42rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
}

.contact-grid h3 {
  margin-top: 0;
}

.contact-grid p {
  font-size: 1.05rem;
  margin: 0 0 0.8rem;
}

/* ==================================================================================================
 * 2earl theme v1 (2026-11-28). The official theme of every 2earl site: claude/2EARL_THEME.md in the
 * project and the "2earl" design system. Warm neutrals, the mark's four facets as the brand, one
 * vermilion button for the next step, Readex Pro for headings, the device's own font for text.
 * Emanet keeps one thing of its own: the licence plate, in its plate face.
 *
 * The first :root block is the theme, copied verbatim; change it there first, then here.
 * ================================================================================================ */

@font-face {
  font-family: 'Readex Pro';
  src: url('/fonts/readex-pro-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --red: #ed1c24;
  --vermilion: #f15a24;
  --orange: #f7931e;
  --amber: #fbb03b;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #efeef1;
  --fg: #1c1b1f;
  --muted: #5c5a60;
  --rule: #e2e1e5;
  --field: #8f8c95;
  --link: #b23a0c;
  --focus: #b23a0c;
  --action: #f15a24;
  --action-hover: #f7931e;
  --action-fg: #1c1b1f;
  --good: #1a7048;
  --wait: #8a5200;
  --alert: #c8141b;
  --info: #1f5fa8;
  --good-tint: #e6f3ec;
  --wait-tint: #fbf0dc;
  --alert-tint: #fbe9e9;
  --info-tint: #e7eff8;
  --brand-tint: #fdeee7;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --target: 2.75rem;
  --band: 0.375rem;
  --shadow-card: 0 1px 2px rgb(28 27 31 / 6%), 0 8px 24px -12px rgb(28 27 31 / 18%);
  --display: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  accent-color: var(--vermilion);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141315;
    --surface: #1c1b1f;
    --surface-2: #232126;
    --fg: #f2f1f3;
    --muted: #a19fa6;
    --rule: #2c2a2f;
    --field: #6f6c75;
    --link: #fbb03b;
    --focus: #fbb03b;
    --good: #5fcf9a;
    --wait: #fbb03b;
    --alert: #ff7a6b;
    --info: #8ab8f0;
    --good-tint: #1b2b25;
    --wait-tint: #2f2718;
    --alert-tint: #33201f;
    --info-tint: #1d2733;
    --brand-tint: #2e211c;
    --shadow-card: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 28px -14px rgb(0 0 0 / 70%);
  }
}

/* Emanet's older names, pointed at the theme, so every rule above follows it. */
:root {
  --ground: var(--bg);
  --paper: var(--surface);
  --sunken: var(--surface-2);
  --ink: var(--fg);
  --action-ink: var(--action-fg);
  --tint: var(--brand-tint);
  --brand: var(--link);
  --danger: var(--alert);
  --off: var(--muted);
  --radius: var(--radius-lg);
  --shadow: 0 1px 2px rgb(28 27 31 / 5%);
  /* Text on a filled status colour (a green step marker): white in light, ink in dark. */
  --on-status: #ffffff;
  --plate-face: 'Barlow Semi Condensed', 'Arial Narrow', system-ui, sans-serif;
  font-family: var(--body);
  font-size: 100%;
  line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --on-status: #1c1b1f;
    --shadow: none;
  }
}

/* The four facets in the mark's order, along the top edge of every page. */
body::before {
  content: '';
  display: block;
  height: var(--band);
  background: linear-gradient(
    90deg,
    var(--red) 0 25%,
    var(--vermilion) 25% 50%,
    var(--orange) 50% 75%,
    var(--amber) 75%
  );
}

@media print {
  body::before {
    display: none;
  }
}

a {
  color: var(--link);
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* One filled button says what to do next; the rest are outlined. */
button,
.button {
  min-height: var(--target);
  border-radius: var(--radius-md);
  font-family: var(--body);
}

button.secondary,
.button.secondary,
.button.ghost {
  border-color: var(--field);
}

button.link {
  min-height: 0;
  color: var(--link);
}

/* A destructive action is outlined, never filled, and sits behind a second step. */
button.danger,
.button.danger {
  background: var(--surface);
  border: 2px solid var(--alert);
  color: var(--alert);
}

button.danger:hover,
.button.danger:hover {
  background: var(--alert-tint);
}

/* A field's edge is visible on its own (3:1), and its text never makes a phone zoom. */
input:not([type='checkbox'], [type='radio'], [type='file'], [type='hidden']),
select,
textarea {
  min-height: var(--target);
  border-color: var(--field);
  border-radius: var(--radius-md);
  font-size: max(1rem, 16px);
}

input:not([type='checkbox'], [type='radio'], [type='file'], [type='hidden']):focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--link);
}

input[aria-invalid='true'],
select[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border: 2px solid var(--alert);
  box-shadow: none;
}

/* A status is a word on a tinted pill: the colour supports the word. */
.status {
  padding: 0.2rem 0.65rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font: 500 0.8125rem/1.4 var(--body);
  letter-spacing: 0;
  text-transform: none;
}

.status.active,
.status.paid,
.status.approved,
.status.sent,
.status.delivered,
.status.done {
  background: var(--good-tint);
  color: var(--good);
}

.status.invited,
.status.applied,
.status.kyc_pending,
.status.issued,
.status.ready,
.status.awaiting_receipt,
.status.in_progress,
.status.pending_identity,
.status.pending,
.status.open,
.status.signed,
.status.due {
  background: var(--wait-tint);
  color: var(--wait);
}

.status.suspended,
.status.banned,
.status.rejected,
.status.failed,
.status.refused,
.status.overdue,
.status.expired.soon {
  background: var(--alert-tint);
  color: var(--alert);
}

.notice {
  background: var(--good-tint);
}

.error {
  background: var(--alert-tint);
}

/* Emanet's own element: the licence plate keeps its plate face. */
.plate {
  font-family: var(--plate-face);
}

/* Amounts line up in tables. */
td.num,
th.num,
.earn {
  font-variant-numeric: tabular-nums;
}

.panel,
.card,
.step {
  border-radius: var(--radius-lg);
}

/* The card holding the current task is the only one that lifts. */
.step.now {
  border-color: var(--vermilion);
  box-shadow: var(--shadow-card);
}

.step.done h2::before {
  color: var(--on-status);
}

ol.flow li:last-child::before,
ol.tracker li.done > .icon,
.method.post {
  color: var(--on-status);
}

.bar nav a[aria-current='page'] {
  color: var(--link);
}

/* Step numbers: neutral until it is that step's turn; only the current one takes the brand. */
.step h2::before {
  background: var(--surface-2);
  color: var(--fg);
}

.step.now h2::before {
  background: var(--action);
  color: var(--action-fg);
}

.step.done h2::before {
  background: var(--good);
  color: var(--on-status);
}

/* A thread, then its reply form, then the quieter way out. */
ul.cards + form,
ul.cards + .error + form {
  margin-top: 1.25rem;
}

form.stack + form {
  margin-top: 1rem;
}

/* On a phone a wide table scrolls inside its own box; the page never scrolls sideways. */
@media (max-width: 40rem) {
  table:not(.cases) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* A search: the field and its button on one baseline, clear of what follows. */
form.search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
}

form.search label {
  flex: 1 1 16rem;
  max-width: 28rem;
}

/* The cases table on a phone: each case is a row of pairs (plate and status, vehicle and fee,
   reference and expiry) across the full width. */
@media (max-width: 40rem) {
  table.cases,
  table.cases tbody {
    display: block;
  }

  table.cases tr {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'plate status' 'vehicle fee' 'ref expires';
    align-items: center;
    padding: 0.5rem 0;
  }

  table.cases tr:last-child {
    border-bottom: 0;
  }

  table.cases td {
    padding-block: 0.3rem;
  }

  table.cases td:nth-child(1) {
    grid-area: plate;
  }

  table.cases td:nth-child(2) {
    grid-area: vehicle;
  }

  table.cases td:nth-child(3) {
    grid-area: ref;
    color: var(--muted);
  }

  table.cases td:nth-child(4) {
    grid-area: status;
    justify-self: end;
  }

  table.cases td:nth-child(5) {
    grid-area: fee;
    justify-self: end;
  }

  table.cases td:nth-child(6) {
    grid-area: expires;
    justify-self: end;
    color: var(--muted);
  }
}

/* A label's field sits right under its text, even when the neighbour has a hint below it. */
label {
  align-content: start;
}

/* The headline in the theme's display weight: Readex Pro at 800 is a slab, at 500 it speaks. */
.hero h1 {
  font-weight: 500;
  line-height: 1.08;
}

/* The brand name is ink, as in every 2earl header; links are the link colour. */
a.brand {
  color: var(--fg);
}
