/* ghost_ink, ex libris. Stanquette's sand, ink and orange, set as a book's
   endpapers: copies and results are bookplates (a double rule on a lighter
   plate, an offset orange shadow when they matter) and a rubber stamp says
   what happened to them.

   Four faces, each with one job: Archivo Black for display, Crimson Pro for
   reading, Archivo in small caps for labels and buttons, JetBrains Mono for
   anything a machine reads or you would copy.

   The markup comes from UiHelper and UiFormBuilder; a class here is named for
   the helper that emits it. See design/variants/ for how this was chosen. */

/* The faces are served from here, not from Google: the latin subsets, under
   the SIL Open Font License (public/fonts/OFL-*.txt). Three are variable, one
   file for every weight */
@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/archivo-black-latin.woff2?s=4eca2abd") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/archivo-latin.woff2?s=7150c0ec") format("woff2"); }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/crimson-pro-latin.woff2?s=89374859") format("woff2"); }
@font-face { font-family: "Crimson Pro"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/crimson-pro-italic-latin.woff2?s=dd6179ff") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/jetbrains-mono-latin.woff2?s=2c32b9b3") format("woff2"); }

:root {
  --ground: #f2e7d3;
  --plate: #fcf6ea;
  --fg: #17130f;
  --soft: #5c5147;
  --hair: #17130f22;
  --line: #17130f66;
  --accent: #d9531e;
  --sand-deep: #e7d7b9;
  --code-bg: #17130f;
  --code-fg: #ede4d6;
  --code-dim: #8b8175;
  --code-key: #efa23f;
  --code-str: #e7d7b9;

  --f-display: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --f-copy: "Crimson Pro", Georgia, serif;
  --f-label: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-xs: 0.6875rem;
  --fs-s: 0.8125rem;
  --fs-m: 1.125rem;
  --fs-l: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  --fs-xl: clamp(2.5rem, 1rem + 6vw, 4.75rem);

  --page: 70rem;
  --side: clamp(1rem, 4vw, 2.5rem);
  --gap: clamp(3.5rem, 8vw, 6rem);
  --control: 2.5rem;
  --rule: 3px double var(--fg);
}

/* --- Ground and type ------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--fg);
  font-family: var(--f-copy);
  font-size: var(--fs-m);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
h1, h2 { font-family: var(--f-display); font-weight: 400; line-height: 1.04; text-wrap: balance; }
h1 { font-size: var(--fs-xl); line-height: 0.98; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-l); }
h3 { font-family: var(--f-label); font-size: 0.9375rem; font-weight: 600; line-height: 1.35; letter-spacing: 0.04em; text-transform: uppercase; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--line); }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code, kbd, .mono, .key { font-family: var(--f-mono); font-size: var(--fs-s); font-variant-ligatures: none; }
strong { font-weight: 600; }
.soft { color: var(--soft); }
.small { font-size: var(--fs-s); }
.wrap { width: min(100% - 2 * var(--side), var(--page)); margin-inline: auto; }
.lede { font-style: italic; font-size: 1.25rem; color: var(--soft); max-width: 34rem; }
.key-group + .key-group { margin-left: 0.45em; }

/* --- Chrome --------------------------------------------------------------- */

.mast { border-bottom: var(--rule); }
.mast-inner { height: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { font-family: var(--f-mono); font-weight: 500; text-decoration: none; letter-spacing: -0.02em; }
.wordmark span { color: var(--accent); }
.mast nav { display: flex; gap: clamp(1rem, 3vw, 1.75rem); font-family: var(--f-label); font-size: var(--fs-s); }
.mast nav a { text-decoration: none; color: var(--soft); }
.mast nav a:hover, .mast nav a[aria-current] { color: var(--fg); }

.flash { margin-top: 1.25rem; display: grid; gap: 0.5rem; }
.flash p { border: var(--rule); background: var(--plate); padding: 0.75rem 1rem; }

.foot { border-top: var(--rule); margin-top: 5rem; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-block: 1.5rem 2rem; font-family: var(--f-label); font-size: var(--fs-s); color: var(--soft); }
.foot a { color: var(--soft); }
.joint { display: inline-flex; align-items: center; gap: 0.625rem; margin-right: auto; text-decoration: none; color: var(--fg) !important; }
.stanquette-mark { width: 1.5rem; height: 1.5rem; background-color: currentcolor; mask: url("/stanquette-mark.svg?s=dbb06caf") no-repeat center / contain; }

/* --- Buttons: UiHelper#btn, #btn_to, UiFormBuilder#submit ------------------ */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--control); padding: 0 1.125rem;
  border: 2px solid var(--fg); background: var(--plate); color: var(--fg);
  box-shadow: 3px 3px 0 var(--fg);
  font-family: var(--f-label); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--fg); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--fg); }
.btn:disabled { opacity: 0.55; cursor: progress; transform: none; }
.btn-primary { background: var(--accent); color: var(--plate); }
.btn-danger { color: var(--accent); }
.btn-small { height: 1.875rem; padding: 0 0.625rem; font-size: var(--fs-xs); box-shadow: 2px 2px 0 var(--fg); }
.btn-small:hover { box-shadow: 3px 3px 0 var(--fg); }
.button_to { display: inline; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; cursor: pointer; }
.link-btn:hover { text-decoration-color: var(--accent); }

/* --- Forms: UiFormBuilder -------------------------------------------------- */

.form { display: grid; gap: 1rem; align-items: end; }
/* Off the page rather than display: none, which scripts read as "skip me" */
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 40rem) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .wide { grid-column: 1 / -1; }
  .form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
}
.field { display: grid; gap: 0.375rem; min-width: 0; }
.label, dt, th { font-family: var(--f-label); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.hint { font-size: var(--fs-s); color: var(--soft); }
.input {
  width: 100%; height: var(--control); padding: 0 0.75rem;
  border: 1px solid var(--fg); border-radius: 0; background: var(--plate); color: var(--fg);
  font-family: var(--f-copy); font-size: 1rem;
}
.input.mono { font-family: var(--f-mono); font-size: var(--fs-s); }
.input::placeholder { color: var(--soft); opacity: 0.7; }
select.input { appearance: none; padding-right: 2rem; background: var(--plate) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2317130f'/%3E%3C/svg%3E") no-repeat right 0.75rem center; }
input[type="file"].input { padding: 0 0.75rem 0 0; font-family: var(--f-label); font-size: var(--fs-s); color: var(--soft); line-height: calc(var(--control) - 2px); }
input[type="file"].input::file-selector-button {
  height: 100%; margin-right: 0.75rem; padding: 0 0.875rem;
  border: 0; border-right: 1px solid var(--fg); background: var(--sand-deep); color: var(--fg);
  font-family: var(--f-label); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
}
.choices { display: flex; gap: 1.25rem; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.choice { display: inline-flex; gap: 0.5rem; align-items: center; }
.choice input { accent-color: var(--accent); margin: 0; }
.choice:has(input:disabled) { color: var(--soft); }
.error { color: var(--accent); font-size: var(--fs-s); }

/* --- Progress and status: UiHelper#meter, #status_mark ---------------------- */

.meter { height: 3px; background: var(--hair); }
.meter span { display: block; width: 2%; height: 100%; background: var(--accent); transition: width 0.3s ease-out; }
.meter-status { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.625rem; font-family: var(--f-mono); font-size: var(--fs-s); color: var(--soft); }
.st { font-family: var(--f-mono); font-size: var(--fs-s); white-space: nowrap; }
.st::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.4rem; border: 1px solid currentColor; }
.st-ok::before { background: currentColor; }
.st-fail { color: var(--accent); }
.st-fail::before { background: currentColor; }
.st-run::before { border-color: var(--accent); background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }

/* --- Plates and stamps: UiHelper#plate, #stamp ---------------------------- */

.plate { position: relative; display: grid; gap: 0.875rem; align-content: start; padding: 1.5rem; border: var(--rule); background: var(--plate); min-width: 0; }
.plate.is-match { box-shadow: 6px 6px 0 var(--accent); }
.plate-tilt-l { transform: rotate(-1deg); }
.plate-tilt-r { transform: rotate(0.8deg); }
.stamp {
  position: absolute; right: 1rem; top: 0.875rem;
  padding: 0.25rem 0.625rem; border: 2px solid var(--accent); border-radius: 4px;
  color: var(--accent); font-family: var(--f-display); font-size: 0.75rem; line-height: 1.1;
  letter-spacing: 0.1em; text-align: center; text-transform: uppercase;
  transform: rotate(-12deg); opacity: 0.85; mix-blend-mode: multiply; pointer-events: none;
}
.stamp small { display: block; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0; text-transform: none; }
.stamp-faint { opacity: 0.35; }
.is-match .stamp-faint { opacity: 0.85; }
.verdict-head { font-family: var(--f-display); font-size: var(--fs-l); line-height: 1.05; color: var(--accent); padding-right: 6rem; }

/* --- Facts and tables: UiHelper#facts, #ui_table --------------------------- */

.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.5rem 1.25rem; align-items: baseline; }
dd { overflow-wrap: anywhere; }
.origin { display: block; font-size: var(--fs-s); font-style: italic; color: var(--soft); }
.scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th { text-align: left; padding: 0 1rem 0.5rem 0; white-space: nowrap; }
.table td { padding: 0.5rem 1rem 0.5rem 0; border-top: 1px solid var(--hair); vertical-align: middle; }
.table td.mono { font-size: var(--fs-s); white-space: nowrap; }
.table .n { text-align: right; font-family: var(--f-mono); font-size: var(--fs-s); }
.table th:last-child, .table td:last-child { padding-right: 0; text-align: right; }
.empty { color: var(--soft); font-style: italic; }
.copyable { display: inline-flex; align-items: baseline; gap: 0.625rem; max-width: 100%; }
.copyable code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { flex: none; padding: 0; border: 0; background: none; font-family: var(--f-label); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); cursor: pointer; }

/* --- Code ---------------------------------------------------------------- */

.code { background: var(--code-bg); color: var(--code-fg); font-family: var(--f-mono); font-size: var(--fs-s); line-height: 1.6; padding: 1rem 1.125rem; overflow-x: auto; white-space: pre; min-width: 0; box-shadow: 6px 6px 0 var(--sand-deep); }
.code .tk, .code .to { color: var(--code-key); }
.code .ts { color: var(--code-str); }
.code .tc { color: var(--code-dim); }

/* --- Landing ------------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 8vw, 6rem); display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.hero-copy { display: grid; gap: 1.5rem; }
.hero-cta { display: grid; gap: 0.75rem; }

.specimen { position: relative; background: var(--code-bg); color: var(--code-fg); font-family: var(--f-mono); font-size: var(--fs-s); line-height: 1.6; min-width: 0; transform: rotate(1.2deg); box-shadow: 8px 10px 0 var(--accent); }
.specimen-head { display: flex; justify-content: space-between; gap: 1rem; padding: 0.625rem 1rem; color: var(--code-dim); border-bottom: 1px solid #ede4d62e; }
.specimen table { width: calc(100% - 2rem); margin: 0.75rem 1rem; border-collapse: collapse; }
.specimen th { font-family: var(--f-mono); font-size: var(--fs-s); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--code-dim); text-align: left; padding-bottom: 0.4rem; }
.specimen td { padding: 0.22rem 0; border-top: 1px solid #ede4d61f; }
.specimen .ex { color: var(--code-dim); white-space: nowrap; padding-right: 1.5rem; }
.specimen .serial { width: 100%; color: var(--code-key); }
.specimen figcaption { padding: 0.75rem 1rem 0.875rem 2.75rem; color: var(--code-dim); border-top: 1px solid #ede4d62e; }
.specimen-hole { position: absolute; left: -1rem; bottom: -1rem; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: radial-gradient(circle, var(--fg) 35%, var(--ground) 36% 46%, var(--fg) 47% 52%, transparent 53%); }

.section { padding-block: var(--gap); border-top: var(--rule); }
.section-head { display: grid; gap: 1rem; max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--soft); }
.section-more { margin-top: 2rem; }

.copies { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .copies { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.copy-name { font-family: var(--f-display); font-size: 1.375rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.copy-name small { display: block; font-family: var(--f-copy); font-style: italic; font-size: 1rem; color: var(--soft); }
.plate.is-tracing { box-shadow: 6px 6px 0 var(--sand-deep); }

.trace { margin-top: 2rem; display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .trace { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.drop { position: relative; display: grid; place-content: center; gap: 0.25rem; min-height: 9rem; padding: 1.25rem; text-align: center; border: 2px dashed var(--fg); background: repeating-linear-gradient(-45deg, transparent 0 10px, #17130f08 10px 20px); cursor: pointer; }
.drop strong { font-family: var(--f-label); font-size: var(--fs-s); letter-spacing: 0.12em; text-transform: uppercase; }
.drop span { color: var(--soft); font-size: var(--fs-s); }
.drop.is-over { border-color: var(--accent); background-color: var(--plate); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.lists { margin-top: 3rem; display: grid; gap: 2rem; }
@media (min-width: 48rem) { .lists { grid-template-columns: 1fr 1fr; } }
.lists h3 { color: var(--accent); }
.lists ul { list-style: none; padding: 0; margin-top: 0.75rem; border-top: 1px solid var(--hair); }
.lists li { padding: 0.5rem 0; border-bottom: 1px solid var(--hair); }

.steps { display: grid; border-top: var(--rule); }
.step { display: grid; gap: 1.25rem; padding-block: 1.75rem; border-bottom: 1px solid var(--hair); }
@media (min-width: 56rem) { .step { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; } }
.step-copy { display: grid; gap: 0.5rem; align-content: start; }
.step-copy h3 { color: var(--accent); }
.step-copy p { color: var(--soft); }

.plans { display: grid; border-top: var(--rule); }
@media (min-width: 48rem) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan + .plan { border-left: 1px solid var(--hair); padding-left: 2rem; }
  .plan:first-child { padding-right: 2rem; }
}
.plan { display: grid; gap: 1.25rem; align-content: start; padding-block: 1.5rem 1.75rem; }
.plan h3 { color: var(--accent); }
.plan ul { list-style: none; padding: 0; display: grid; gap: 0.375rem; color: var(--soft); }
.plan li::before { content: "—"; margin-right: 0.5rem; color: var(--line); }
.price { font-family: var(--f-display); font-size: var(--fs-l); line-height: 1; display: flex; align-items: baseline; gap: 0.75rem; }
.price small { font-family: var(--f-copy); font-size: 1rem; font-style: italic; color: var(--soft); }

/* --- Account: UiHelper#panel ---------------------------------------------- */

turbo-frame { display: block; }

.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; display: grid; gap: 0.75rem; }
.page-head h1 { font-size: clamp(2.25rem, 1rem + 4vw, 3.5rem); }
.who { display: flex; flex-wrap: wrap; gap: 1rem; align-items: baseline; color: var(--soft); }
.cols { display: grid; column-gap: 3rem; }
@media (min-width: 56rem) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.panel { display: grid; gap: 1.25rem; align-content: start; padding-block: 1.75rem 2.5rem; border-top: var(--rule); min-width: 0; scroll-margin-top: 1rem; }
.panel-head { display: flex; align-items: baseline; gap: 0.5rem 1rem; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.75rem; margin-right: auto; }
.api-ref { font-family: var(--f-mono); font-size: var(--fs-s); color: var(--soft); }
.note { color: var(--soft); max-width: 40rem; }
.balance { display: flex; align-items: baseline; gap: 0.75rem; }
.balance strong { font-family: var(--f-display); font-size: var(--fs-l); font-weight: 400; line-height: 1; color: var(--accent); }
.balance span { color: var(--soft); font-style: italic; }
.reveal { border: var(--rule); background: var(--plate); padding: 1rem 1.125rem; display: grid; gap: 0.5rem; }

/* A signing's or a trace's page: a stamped plate keeps its stamp clear of the
   values, as a result plate under a form does */
.plate-stamped { padding-right: 7rem; }
.panel h3 { margin-top: 0.75rem; }
.table .path { display: inline-block; min-width: 10rem; overflow-wrap: anywhere; }
.plate-stamped .key-group { white-space: nowrap; }
.panel details summary { cursor: pointer; font-family: var(--f-label); color: var(--soft); }
.panel details .note { margin-top: 0.5rem; }

/* --- Sign in -------------------------------------------------------------- */

.narrow { max-width: 28rem; padding-block: clamp(3rem, 8vw, 5rem); display: grid; gap: 1.5rem; }
.narrow .form { grid-template-columns: 1fr; }
.code-input { font-family: var(--f-mono); font-size: 1.25rem; letter-spacing: 0.2em; text-transform: uppercase; }

/* --- API reference --------------------------------------------------------- */

.docs { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .docs { grid-template-columns: 11rem minmax(0, 1fr); } }
.docs-nav { font-family: var(--f-label); font-size: var(--fs-s); }
@media (min-width: 60rem) { .docs-nav { position: sticky; top: 1.5rem; align-self: start; } }
@media (max-width: 59.99rem) { .docs-nav { display: none; } }
.docs-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.125rem; }
.docs-nav li.group { margin-top: 1rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.docs-nav a { display: block; padding: 0.2rem 0; text-decoration: none; color: var(--soft); }
.docs-nav a:hover { color: var(--fg); }
.doc { display: grid; gap: 1.125rem; min-width: 0; padding-block: 0 3rem; margin-bottom: 3rem; border-bottom: var(--rule); scroll-margin-top: 1.5rem; }
.doc h2 { font-size: 1.75rem; }
.doc h3 { margin-top: 0.75rem; }
.doc p, .doc li { max-width: 44rem; }
.doc ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.375rem; }
.doc p code, .doc li code, .doc td code { padding: 0.05em 0.3em; background: var(--plate); border: 1px solid var(--hair); white-space: nowrap; }
.endpoint { text-transform: none; letter-spacing: 0; display: flex; flex-wrap: wrap; gap: 0.375rem 0.75rem; align-items: baseline; font-family: var(--f-mono); font-size: var(--fs-s); font-weight: 500; }
.endpoint .verb { color: var(--accent); }
.params { width: 100%; border-collapse: collapse; font-size: 1rem; }
.params th { text-align: left; padding: 0 1rem 0.5rem 0; }
.params td { padding: 0.5rem 1rem 0.5rem 0; border-top: 1px solid var(--hair); vertical-align: baseline; }
.params td:first-child { white-space: nowrap; font-family: var(--f-mono); font-size: var(--fs-s); }
.params .req { display: block; font-family: var(--f-label); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.lifecycle { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-family: var(--f-mono); font-size: var(--fs-s); }
.lifecycle span { padding: 0.2rem 0.5rem; border: 1px solid var(--fg); background: var(--plate); }
.lifecycle i { font-style: normal; color: var(--soft); }
.slab { background: var(--code-bg); color: var(--code-fg); box-shadow: 6px 6px 0 var(--sand-deep); min-width: 0; }
.slab-head { padding: 0.5rem 1.125rem; font-family: var(--f-mono); font-size: var(--fs-s); color: var(--code-dim); border-bottom: 1px solid #ede4d62e; }
.slab-body + .slab-head { border-top: 1px solid #ede4d62e; }
.slab-body { padding: 1rem 1.125rem; font-family: var(--f-mono); font-size: var(--fs-s); line-height: 1.6; overflow-x: auto; white-space: pre; }
.slab .tk, .slab .to { color: var(--code-key); }
.slab .ts { color: var(--code-str); }
.slab .tc { color: var(--code-dim); }

/* A result plate under a form keeps its stamp clear of the values */
.form .plate { padding-right: 7rem; }

/* Legal pages: Markdown views under app/views/legal, set as long-form prose */
.legal, .page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.imprint .facts { max-width: 100%; }
.scrambled { white-space: pre-line; }
.legal-draft { margin-bottom: 2rem; padding: 0.75rem 1rem; border: 1px solid var(--accent); background: var(--plate); font-family: var(--f-label); font-size: var(--fs-s); color: var(--accent); }
.prose { max-width: 46rem; display: grid; gap: 1rem; overflow-wrap: anywhere; }
.prose h1 { font-size: var(--fs-l); }
.prose h2 { font-size: 1.5rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: var(--rule); }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.125rem; margin-top: 0.75rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.375rem; }
/* Clauses letter their own items (a., b.), so a list carries no bullet of its own */
.prose ul { list-style: none; }
.prose hr { display: none; }
.prose blockquote { margin: 0; padding: 0.75rem 1rem; border-left: 3px solid var(--accent); background: var(--plate); }
.prose code { padding: 0.05em 0.3em; background: var(--plate); border: 1px solid var(--hair); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.prose th { text-align: left; padding: 0 1rem 0.5rem 0; }
.prose td { padding: 0.5rem 1rem 0.5rem 0; border-top: 1px solid var(--hair); vertical-align: top; }
