/* ZeRechnung presentation site. Colours follow the logo: paper, slate-blue
   ink, the blue of the gopher and the olive of the typewriter. */

:root {
  color-scheme: light dark;
  --paper: #f7f6f1;
  --paper-2: #efede5;
  --card: #fffefa;
  --ink: #1e2a31;
  --ink-2: #4b5b65;
  --ink-3: #5f6d75;
  --line: #dcd8cc;
  --slate: #33586c;
  --slate-hover: #26475a;
  --on-slate: #ffffff;
  --sky-soft: #e2eff4;
  --olive: #56693a;
  --code-bg: #1d272d;
  --code-head: #253239;
  --code-ink: #e6ebed;
  --code-dim: #93a5ae;
  --code-kw: #8fd3ea;
  --code-str: #c2dc95;
  --bar: #b7b2a4;
  --grid: #dedacd;
  --warn: #8a5d0b;
  --shadow: 0 1px 2px rgb(30 42 49 / 0.06), 0 10px 28px rgb(30 42 49 / 0.09);
  --radius: 10px;
  --wrap: 1080px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12181b;
    --paper-2: #172025;
    --card: #1b252a;
    --ink: #e3e8ea;
    --ink-2: #b0bcc2;
    --ink-3: #8f9da4;
    --line: #2b373e;
    --slate: #8cbcd2;
    --slate-hover: #acd0e1;
    --on-slate: #0f1619;
    --sky-soft: #1b313b;
    --olive: #a9c07a;
    --code-bg: #0c1114;
    --code-head: #141b1f;
    --bar: #4d5b63;
    --grid: #2e3a41;
    --warn: #e2b55e;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 28px rgb(0 0 0 / 0.3);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

@media (min-width: 880px) {
  html { scroll-padding-top: 72px; }
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--slate); text-underline-offset: 0.18em; }
a:hover { color: var(--slate-hover); }

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

h1, h2, h3 { hyphens: auto; text-wrap: balance; }

.nw { white-space: nowrap; }

code, pre { font-family: var(--mono); }

:not(pre) > code {
  font-size: 0.88em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 30;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--slate);
  color: var(--on-slate);
}

.skip:focus { top: 8px; }

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 14px;
  min-height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; color: var(--slate); }

/* Below 880px, the navigation is a second row that scrolls sideways. */
.nav {
  display: flex;
  order: 3;
  gap: 20px;
  width: 100%;
  margin: 0 -16px;
  padding: 2px 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.nav::-webkit-scrollbar { display: none; }

.nav a {
  color: var(--ink-2);
  font-size: 0.95rem;
  text-decoration: none;
}

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

.nav a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--slate);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

@media (min-width: 880px) {
  .nav {
    order: 0;
    width: auto;
    margin: 0 0 0 auto;
    padding: 0;
    overflow: visible;
  }
}

.lang { position: relative; margin-left: auto; }

@media (min-width: 880px) {
  .lang { margin-left: 8px; }
}

.lang summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
}

.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; flex: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--slate); color: var(--ink); }

.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--rows), auto);
  gap: 2px 4px;
  width: max-content;
  max-width: calc(100vw - 32px);
  max-height: 70vh;
  overflow: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.lang a {
  display: block;
  min-width: 132px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.lang a:hover { background: var(--paper-2); }
.lang a[aria-current] { color: var(--slate); font-weight: 650; }

.gh { display: flex; color: var(--ink-2); }
.gh:hover { color: var(--ink); }
.gh svg { width: 22px; height: 22px; }

.notice {
  background: var(--sky-soft);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9rem;
}

.notice .wrap { padding-top: 8px; padding-bottom: 8px; }

/* Hero */

.hero { padding: 32px 0 56px; }

.hero-in {
  display: grid;
  gap: 28px;
  align-items: center;
}

/* Grid items would otherwise grow to the width of a long line of code. */
.hero-in > *, .steps > li, .open > *, .charts > *, .cp-cards > * { min-width: 0; }

.hero-art {
  order: -1;
  justify-self: center;
  width: 100%;
  max-width: 220px;
  margin: 0;
}

.hero-art img {
  padding: 8px;
  background: #f5f3ec;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-in { grid-template-columns: 1.2fr 0.8fr; gap: 56px; }
  .hero-art { order: 0; max-width: 420px; }
}

.kicker {
  margin: 0 0 12px;
  color: var(--slate);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 38em;
  margin: 0 0 26px;
  color: var(--ink-2);
  font-size: 1.125rem;
}

.install {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 32em;
  padding: 8px 8px 8px 16px;
  background: var(--code-bg);
  border-radius: var(--radius);
  color: var(--code-ink);
}

.install pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  font-size: 0.9rem;
}

.install pre::before { content: "$ "; color: var(--code-dim); }

.copy {
  flex: none;
  padding: 5px 10px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 6px;
  background: transparent;
  color: var(--code-ink);
  font: 500 0.8rem/1.4 var(--sans);
  cursor: pointer;
}

.copy:hover { background: rgb(255 255 255 / 0.08); }
.copy[hidden] { display: none; }

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover { border-color: var(--slate); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

.btn.primary {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--on-slate);
}

.btn.primary:hover {
  background: var(--slate-hover);
  border-color: var(--slate-hover);
  color: var(--on-slate);
}

.status { margin: 0; color: var(--ink-3); font-size: 0.875rem; }

/* Sections */

section { padding: 56px 0; }

@media (min-width: 900px) {
  section { padding: 80px 0; }
}

.alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section-lead {
  max-width: 40em;
  margin: 0 0 32px;
  color: var(--ink-2);
  font-size: 1.05rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

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

.card h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--sky-soft);
  color: var(--slate);
}

.icon svg { width: 22px; height: 22px; }

.why {
  display: grid;
  gap: 28px 56px;
  max-width: 900px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

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

.why li { position: relative; padding-left: 38px; }

.tick {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--olive) 16%, transparent);
  color: var(--olive);
}

.tick svg { width: 16px; height: 16px; }
.why h3 { margin: 0 0 4px; font-size: 1.05rem; }
.why p { margin: 0; color: var(--ink-2); }

/* Formats */

.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

thead th {
  background: var(--paper-2);
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr:last-child > * { border-bottom: 0; }
th[scope="row"] { font-weight: 400; }
.c { text-align: center; }
.fmt { display: block; font-weight: 650; }
.fmt-note { display: block; color: var(--ink-3); font-size: 0.84rem; }

.cc {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--sky-soft);
  color: var(--slate);
  font: 650 0.75rem/1.2 var(--mono);
}

.yes svg { width: 18px; height: 18px; color: var(--olive); vertical-align: middle; }
.partial { color: var(--ink-2); font-size: 0.85rem; }

/* Accuracy */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat {
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }

.stat .stat-num {
  color: var(--slate);
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-num small { color: var(--ink-3); font-size: 0.55em; font-weight: 600; }
.stat .stat-tool { margin: 8px 0 2px; color: var(--ink); font-weight: 650; }

/* Get started */

.steps {
  display: grid;
  gap: 28px;
  max-width: 780px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li { counter-increment: step; }

.steps > li > p {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 10px;
}

.steps > li > p::before {
  content: counter(step);
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--slate);
  color: var(--on-slate);
  font-size: 0.8rem;
  font-weight: 700;
  transform: translateY(-1px);
}

.code {
  overflow: hidden;
  background: var(--code-bg);
  border-radius: var(--radius);
  color: var(--code-ink);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 4px 8px 4px 16px;
  background: var(--code-head);
  color: var(--code-dim);
  font: 500 0.78rem/1 var(--sans);
}

.code pre {
  margin: 0;
  padding: 14px 18px 16px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.65;
  tab-size: 4;
}

.code .cm { color: var(--code-dim); }
.code .k { color: var(--code-kw); }
.code .s { color: var(--code-str); }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Open source */

.open {
  display: grid;
  gap: 32px;
  align-items: center;
}

.open p { max-width: 36em; color: var(--ink-2); }

.translate {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.translate svg { width: 26px; height: 26px; flex: none; color: var(--slate); margin-top: 2px; }
.translate p { margin: 0; }

@media (min-width: 900px) {
  .open { grid-template-columns: 1.2fr 0.8fr; gap: 56px; }
}

/* Footer */

footer {
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.9rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}

.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* Language chooser and 404 */

.chooser {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px 16px;
  text-align: center;
}

.chooser img {
  width: 180px;
  margin: 0 auto 20px;
  padding: 6px;
  background: #f5f3ec;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.chooser h1 { margin-bottom: 6px; }
.chooser-sub { margin: 0; color: var(--ink-2); }

.chooser ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 680px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
}

.chooser li a {
  display: block;
  min-width: 140px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.chooser li a:hover { border-color: var(--slate); }
.chooser-gh { margin-top: 28px; font-size: 0.9rem; }

/* Links to the other pages, on the home page */

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

.link-card:hover { border-color: var(--slate); box-shadow: var(--shadow); color: inherit; }
.link-card h3::after { content: " →"; color: var(--slate); }

/* Opening of the pages other than home */

.page-intro { padding: 40px 0 28px; }
.page-intro h1 { max-width: 20em; }
.page-intro .lead { margin-bottom: 0; }

@media (min-width: 900px) {
  .page-intro { padding: 64px 0 40px; }
}

.prose { max-width: 44em; }
.prose p { color: var(--ink-2); }

/* Examples */

.ex-toc-wrap { padding: 0 0 48px; }

.fiction {
  max-width: 44em;
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 3px solid var(--olive);
  color: var(--ink-3);
  font-size: 0.9rem;
}

.ex-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ex-toc a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  height: 100%;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}

.ex-toc a:hover { border-color: var(--slate); }

.ex-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--slate);
  color: var(--on-slate);
  font-size: 0.85rem;
  font-weight: 700;
}

.ex-toc-title { font-weight: 650; line-height: 1.35; align-self: center; }
.ex-toc .tags { grid-column: 2; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

.tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sky-soft);
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.ex-head { max-width: 46em; margin-bottom: 32px; }
.ex-head h2 { margin-bottom: 14px; }
.ex-head .tags { margin-bottom: 18px; }
.ex-intro { color: var(--ink-2); font-size: 1.05rem; }

.ex-steps { max-width: 860px; gap: 36px; }
.ex-steps > li > p { display: block; margin: 0 0 12px; color: var(--ink-2); }
.ex-steps > li > p::before { content: none; }

.ex-steps > li > h3 {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.ex-steps > li > h3::before {
  content: counter(step);
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--slate);
  color: var(--on-slate);
  font-size: 0.85rem;
  font-weight: 700;
  transform: translateY(-2px);
}

.ex-steps .code { margin-top: 14px; }
.ex-result, .ex-full { max-width: 860px; margin-top: 36px; }
.ex-result h3 { margin: 0 0 10px; font-size: 1.05rem; }
.terminal pre { color: #d9e7c4; }

.ex-full summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-weight: 600;
  cursor: pointer;
}

.ex-full summary:hover { border-color: var(--slate); }
.ex-full[open] summary { margin-bottom: 16px; }
.ex-full .code { margin-bottom: 12px; }
.ex-run { margin: 20px 0 8px; color: var(--ink-2); }

.more { padding-top: 40px; }
.more p { margin: 0; color: var(--ink-2); }

/* Benchmarks */

.bm-kpis { padding: 0 0 48px; }

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.kpi {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.kpi p { margin: 0; }
.kpi-op { min-height: 2.7em; color: var(--ink-2); font-size: 0.88rem; line-height: 1.35; }

.kpi-num {
  margin: 6px 0 2px !important;
  color: var(--slate);
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.kpi-gain { color: var(--ink-3); font-size: 0.82rem; line-height: 1.35; }
.bm-when { margin: 16px 0 0; color: var(--ink-3); font-size: 0.875rem; }
.bm-scale { max-width: 44em; margin: -12px 0 28px; color: var(--ink-3); font-size: 0.9rem; }

.charts { display: grid; gap: 16px; }

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

.chart {
  margin: 0;
  padding: 18px 20px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chart figcaption { margin-bottom: 10px; }
.chart figcaption h3 { margin: 0; font-size: 1.05rem; }
.chart figcaption span { color: var(--ink-3); font-size: 0.85rem; }

table.bars {
  min-width: 0;
  table-layout: fixed;
  font-size: 0.86rem;
}

.bars th, .bars td {
  padding: 4px 10px 4px 0;
  border: 0;
  vertical-align: middle;
}

.bars th[scope="row"] { width: 38%; line-height: 1.25; }
.bars .val { width: 7.6em; padding-right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bars .flag { width: 3.6em; padding-right: 0; text-align: right; font-variant-numeric: tabular-nums; }

@media (min-width: 600px) {
  .bars th[scope="row"] { width: 11.5em; }
}

.lib { font-weight: 600; overflow-wrap: anywhere; }
.ours .lib, .ours .val { color: var(--slate); font-weight: 700; }

.lang-tag, .note {
  display: block;
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 400;
}

.x { color: var(--ink-3); font-size: 0.8em; }
.of { color: var(--ink-3); font-size: 0.8em; }

/* The grid: a line per power of ten, the same in every row. */
.bars .track {
  position: relative;
  padding: 6px 0;
  background: linear-gradient(to right, var(--grid) 1px, transparent 1px) 0 0 / calc(100% / var(--n)) 100% repeat-x;
  box-shadow: inset -1px 0 var(--grid);
}

.bar {
  display: block;
  width: max(var(--w), 3px);
  height: 12px;
  border-radius: 0 4px 4px 0;
  background: var(--bar);
}

.ours .bar { background: var(--slate); }

.bars .fail {
  color: var(--ink-3);
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.3;
}

.has-floor .track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--floor);
  border-left: 2px dashed var(--ink-3);
  opacity: 0.7;
}

.bars tfoot td { padding-top: 6px; }

.bars .axis {
  position: relative;
  height: 1.5em;
  padding: 0;
  background: none;
  color: var(--ink-3);
  font-size: 0.72rem;
}

.axis span {
  position: absolute;
  top: 4px;
  left: var(--at);
  transform: translateX(-50%);
  white-space: nowrap;
}

.axis span:first-child { transform: none; }
.dense .axis span:nth-child(even):not(:last-child) { visibility: hidden; }
.axis span:last-child { transform: translateX(-100%); }

.chart-note {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 10px 0 0;
  color: var(--ink-3);
  font-size: 0.8rem;
  line-height: 1.4;
}

.floor-key {
  flex: none;
  width: 0;
  height: 0.9em;
  border-left: 2px dashed var(--ink-3);
  transform: translateY(2px);
}

.env { max-width: 760px; margin-top: 24px; }
.env table { min-width: 0; }
.env th { width: 11em; color: var(--ink-2); }

/* Compliance */

.cp-frame-wrap { padding: 0 0 48px; }

.cp-frame {
  max-width: 860px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--slate);
  border-radius: var(--radius);
}

.cp-frame h2 { font-size: 1.3rem; }
.cp-frame p { margin: 0 0 10px; color: var(--ink-2); }
.cp-frame p:last-child { margin-bottom: 0; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: -12px 0 20px;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.st {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px 2px 6px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  white-space: nowrap;
}

.st svg { width: 15px; height: 15px; flex: none; }
.st-yes { background: color-mix(in srgb, var(--olive) 14%, transparent); color: var(--olive); }
.st-partial { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.st-no { background: color-mix(in srgb, var(--ink-3) 14%, transparent); color: var(--ink-3); }

.cp-table { min-width: 640px; }
.cp-table td, .cp-table th { padding: 10px 14px; }
.cp-table tbody th[scope="row"] { white-space: nowrap; }
.cp-table td:nth-child(2), .cp-table td:nth-child(3) { color: var(--ink-2); font-size: 0.88rem; }
.cp-table .none { color: var(--ink-3); }

.cp-table .group th {
  padding-top: 14px;
  background: var(--paper-2);
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cover { display: flex; flex-wrap: wrap; gap: 6px; }

.fmt-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 5px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.fmt-chip svg { width: 14px; height: 14px; flex: none; }
.fmt-chip.st-no { text-decoration: line-through; text-decoration-thickness: 1px; }
.cp-asof { margin: 16px 0 0; color: var(--ink-3); font-size: 0.875rem; }

.cp-cards {
  display: grid;
  gap: 16px;
}

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

.cp-card {
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cp-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.cp-card h3 .cc { vertical-align: 2px; }
.cp-intro { margin: 0 0 14px; color: var(--ink-2); font-size: 0.93rem; }

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

.checks li {
  display: grid;
  grid-template-columns: 7.4em 1fr;
  gap: 10px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.checks .st { justify-self: start; margin-top: 1px; }
.checks p { margin: 0; font-size: 0.92rem; line-height: 1.45; }
.rules { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 4px; }
.rules code { font-size: 0.78em !important; }
.cp-guide { margin: 14px 0 0; font-size: 0.9rem; }

@media (max-width: 460px) {
  .checks li { grid-template-columns: 1fr; gap: 6px; }
}
