/* Components: buttons, status marks and Not yet references, tables, the offer, seals and how to
   read them, the four struck punches, steps, the price, the record panel, the touchstone, the
   estate chart and dials, answers, the status board, drafts, form fields. */

/* ---------- buttons ---------- */
/* The cut button: the face is clipped to the punch outline (four chamfers and the index notch).
   Hover and focus rule the outline with two stacked layers that carry the same outline, inset,
   so every diagonal is ruled too: the element's own ground is the outer colour, ::before the
   middle ring, ::after the face. A chamfer inset by i is 0.586 i shorter and the notch 0.414 i
   deeper, which keeps the ruled width even on the diagonals. */
.btn {
  --b-out: var(--ink); --b-mid: var(--ink); --b-face: var(--ink); --b-i1: 0px; --b-i2: 0px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 12px; padding-block: 14px 13px; padding-inline: 22px; min-height: 48px;
  background: var(--b-out); color: var(--slip); text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 650; font-size: var(--fs-m); letter-spacing: 0; line-height: 1.2;
  --i: 0px;
  clip-path: polygon(var(--cut) 0, calc(50% - var(--notch)) 0, 50% var(--notch), calc(50% + var(--notch)) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.btn::before, .btn::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  --c: calc(var(--cut) - 0.586 * var(--i)); --n: calc(var(--notch) + 0.414 * var(--i));
  clip-path: polygon(var(--c) 0, calc(50% - var(--n)) 0, 50% var(--n), calc(50% + var(--n)) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.btn::before { --i: var(--b-i1); inset: var(--b-i1); background: var(--b-mid); }
.btn::after { --i: var(--b-i2); inset: var(--b-i2); background: var(--b-face); }
/* hover: the plate shows through, ruled in ink. Fire is not a button colour. */
.btn:hover { --b-face: var(--plate-2); --b-i2: 2px; color: var(--ink); }
/* focus: 3 px of ground, then 2 px of the focus colour, inside the cut where the clip cannot hide
   it. The transparent outline is what forced colours modes draw. */
.btn:focus-visible { --b-out: var(--plate); --b-mid: var(--focus); --b-i1: 3px; --b-i2: 5px; outline: 2px solid transparent; outline-offset: -5px; }
.entry--band .btn:focus-visible { --b-out: var(--plate-2); }
.btn__price { font-family: var(--f-wide); font-stretch: var(--w-label); font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--fs-s); letter-spacing: var(--track-label); padding-inline-start: 12px; border-inline-start: 1px solid currentColor; }
.btn--quiet { clip-path: none; background: transparent; border: 1.5px solid var(--ink); }
.btn--quiet::before, .btn--quiet::after { content: none; }
.btn--quiet { color: var(--ink); }
.btn--quiet:hover { background: var(--plate-2); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--quiet:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn--stone { --b-out: var(--on-stone); --b-mid: var(--on-stone); --b-face: var(--on-stone); color: var(--stone); }
.btn--stone:hover { --b-out: var(--on-stone); --b-mid: var(--on-stone); --b-face: var(--stone); --b-i2: 2px; color: var(--on-stone); }
.btn--stone:focus-visible { --b-out: var(--stone); --b-mid: var(--on-stone); --b-face: var(--on-stone); }
/* the quiet partner of a stone button: the same cut, drawn as a ring; on hover the ring thickens */
.btn--quiet-stone { --b-out: var(--on-stone-2); --b-mid: var(--on-stone-2); --b-face: var(--stone); --b-i2: 1.5px; color: var(--on-stone); }
.btn--quiet-stone:hover { --b-out: var(--on-stone); --b-mid: var(--on-stone); --b-face: var(--stone); --b-i2: 3px; color: var(--on-stone); }
.btn--quiet-stone:focus-visible { outline: 2px solid var(--on-stone); outline-offset: 3px; }
@media (forced-colors: active) {
  .btn { border: 1.5px solid ButtonText; clip-path: none; }
  .btn::before, .btn::after { content: none; }
  .btn:focus-visible, .btn--quiet:focus-visible, .btn--quiet-stone:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
  .check output::before { forced-color-adjust: none; background: CanvasText; }
}
:lang(ar) .btn { font-family: var(--f-ar-display); font-weight: 700; letter-spacing: 0; }
.textlink { font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 600; font-size: var(--fs-m); text-decoration: none; border-block-end: 1.5px solid currentColor; padding-block: 2px; display: inline-block; }
.textlink:hover { border-block-end-width: 3px; padding-block-end: 0.5px; }
:lang(ar) .textlink { font-family: var(--f-ar-display); font-weight: 700; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }

/* ---------- status marks: in place, not yet, target date ---------- */
.mark {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: 0.08em; white-space: nowrap;
  font-family: var(--f-wide); font-stretch: var(--w-label); font-size: var(--fs-xs); font-weight: 650; letter-spacing: var(--track-label); text-transform: uppercase; line-height: 1;
  padding-block: 4px 3px; padding-inline: 7px; border: 1.5px solid currentColor;
}
.mark::before { content: ""; width: 7px; height: 7px; flex: none; background: currentColor; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.mark--in { color: var(--ink); }
.mark--not { color: var(--ink-2); }
.mark--not::before { width: 9px; height: 1.5px; clip-path: none; background: currentColor; rotate: -35deg; }
/* the one tilted stamp: NOT ON SALE YET beside a price, the one fire word in its view */
.mark--stamp, .mark--not.mark--stamp { color: var(--fire-text); }
.mark--stamp { rotate: -1.5deg; font-size: var(--fs-xs); padding-block: 5px 4px; padding-inline: 8px; border-width: 2px; }
.mark--date { color: var(--ink-2); border-style: dashed; }
.mark--date::before { clip-path: none; background: none; width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50%; }
.sec--stone .mark--not, .touch .mark--not { color: var(--on-stone-2); }
:lang(ar) .mark { font-family: var(--f-ar-display); letter-spacing: 0; text-transform: none; font-size: var(--fs-s); padding-block: 5px 4px; padding-inline: 8px; }

/* a Not yet token in running text: a plain superscript numeral in ink 2, linked to the page's Not yet list */
sup.ny { font-family: var(--f-wide); font-stretch: var(--w-label); font-variant-numeric: tabular-nums; font-size: 0.64em; font-weight: 600; line-height: 0; vertical-align: 0.62em; margin-inline-start: 0.1em; }
sup.ny a { color: var(--ink-2); text-decoration: none; position: relative; }
sup.ny a::after { content: ""; position: absolute; inset-block: -8px; inset-inline: -5px; }
sup.ny a:hover { text-decoration: underline; }
:lang(ar) sup.ny { font-size: 0.66em; }
/* where a value belongs and is not yet known, its condition stands in, plainly marked */
.ny-gap { font-style: italic; color: var(--ink-2); border-block-end: 1px dashed var(--ink-2); }
:lang(ar) .ny-gap { font-style: normal; }
/* a reference stands as its own run, so in a right to left line it never joins the numeral or the
   reference beside it into a new number; two in a row are one superscript, "2, 3" */
sup.ny { unicode-bidi: isolate; }
.ny-sep { color: var(--ink-2); }

/* side notes: a paragraph's Not yet conditions, set in the ledger's margin column beside it at
   1100 px and up, folded under the paragraph below that; the numbers match the references */
.para > p { max-width: var(--measure); }
ol.sn { list-style: none; margin-block: -0.35em 1.2em; margin-inline: 0; padding: 0; max-width: var(--measure); font-size: var(--fs-m); line-height: 1.4; color: var(--ink); }
ol.sn > li { display: grid; grid-template-columns: 1.9em minmax(0, 1fr); margin: 0; padding-block: 3px; max-width: none; }
.sn__n { font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 600; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; padding-block-start: 0.15em; }
:lang(ar) ol.sn { font-size: var(--fs-ar-fine); line-height: 1.55; }
@media (min-width: 1100px) {
  .para { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 17rem); column-gap: var(--s-7); align-items: start; }
  ol.sn { margin: 0; padding-block-start: 0.3em; border-block-start: var(--rule-s); }
}

/* the box that lists them */
.notyet { border: 1px solid var(--ink); background: rgba(238, 236, 230, 0.55); font-size: var(--fs-fine); }
.notyet summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding-block: 10px; padding-inline: 14px; min-height: 44px; }
.notyet summary::-webkit-details-marker { display: none; }
.notyet summary .kicker { color: var(--ink-2); font-size: var(--fs-xs); white-space: nowrap; }
.notyet summary .count { font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 600; font-size: var(--fs-xs); color: var(--ink-2); margin-inline-start: auto; }
.notyet summary::after { content: "+"; font-family: var(--f-mono); color: var(--ink); }
.notyet[open] summary::after { content: "\2212"; }
.notyet__lead { margin: 0; padding-block: 0 10px; padding-inline: 14px; line-height: 1.4; }
.notyet ol { margin: 0; padding-block: 0 12px; padding-inline: 14px; list-style: none; max-height: 26rem; overflow-y: auto; }
.notyet li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); padding-block: 6px; border-block-start: var(--rule-s); line-height: 1.35; scroll-margin-block-start: 120px; }
.notyet li:target { background: var(--plate-2); }
.notyet .ny-n { font-family: var(--f-wide); font-stretch: var(--w-label); font-variant-numeric: tabular-nums; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); padding-block-start: 0.3em; }
.notyet p { margin: 0; padding-block: 0 10px; padding-inline: 14px; color: var(--ink-2); font-size: var(--fs-s); text-wrap: pretty; }

/* ---------- tables ---------- */
.tbl { margin-block: var(--s-5) var(--s-6); max-width: 100%; }
.tbl--small { max-width: 34rem; }
.tbl table { width: 100%; border-collapse: collapse; font-size: var(--fs-m); line-height: 1.38; font-variant-numeric: tabular-nums; }
.tbl th { text-align: start; vertical-align: bottom; font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 650; font-size: var(--fs-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); padding-block: 0 var(--s-2); padding-inline: 0 var(--s-3); border-block-end: var(--rule-1); }
.tbl td { padding-block: 11px; padding-inline: 0 var(--s-3); vertical-align: top; border-block-end: var(--rule-s); }
.tbl tr > :last-child { padding-inline-end: 0; }
.tbl tbody tr:last-child td { border-block-end: var(--rule-1); }
.tbl td:first-child { font-weight: 500; }
.tbl th.n, .tbl td.n { text-align: end; }
/* a price column: the leading amount in tabular Archivo, any qualifier on its own line */
.tbl td.n { font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 560; font-size: var(--fs-m); }
.tbl td.n .amt { display: block; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.tbl td.n .from { font-weight: 400; color: var(--ink-2); }
.tbl td.n .qual { display: block; font-family: var(--f-text); font-stretch: normal; font-weight: 400; font-size: var(--fs-s); line-height: 1.3; color: var(--ink-2); margin-block-start: 2px; text-align: end; max-width: 14rem; margin-inline-start: auto; text-wrap: pretty; }
/* words that stand where a price will go ("not set yet", "free") are words: the text face in ink 2,
   italic in English; Archivo semibold is kept for amounts */
.tbl td.n.n-word { font-family: var(--f-text); font-stretch: normal; font-weight: 400; font-style: italic; font-size: var(--fs-m); line-height: 1.3; color: var(--ink); text-wrap: pretty; }
:lang(ar) .tbl td.n.n-word { font-family: var(--f-ar-text); font-style: normal; font-size: var(--fs-ar-fine); }
.tbl td.n.n-word .ny-gap { border-block-end: 0; }
/* the long column heads, written out once under the table */
.tbl__note { margin-block: calc(-1 * var(--s-4)) var(--s-6); max-width: var(--measure); font-size: var(--fs-s); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.tbl__note b { font-weight: 600; color: var(--ink); }
:lang(ar) .tbl__note { font-size: var(--fs-ar-fine); }
/* the status board: fixed columns, so the state column holds one edge down the whole sheet */
.tbl--board table { table-layout: fixed; }
.tbl--board col.c-promise { width: 40%; }
.tbl--board col.c-state { width: 11rem; }
.tbl col.c-price { width: 9rem; }
.tbl col.c-date { width: 10rem; }
.tbl--prices col.c-first { width: auto; min-width: 13rem; }
.tbl--prices td:first-child { min-width: 13rem; }
.tbl td a { overflow-wrap: anywhere; }
.tbl td .ny-gap, .tbl td a { overflow-wrap: anywhere; }
.tbl--prices td:first-child a { font-weight: 600; }
.tbl tr.is-head td { background: rgba(238, 236, 230, 0.45); }
:lang(ar) .tbl th { font-family: var(--f-ar-display); text-transform: none; letter-spacing: 0; font-size: var(--fs-s); }
:lang(ar) .tbl table { font-size: var(--fs-ar-fine); }

/* ---------- the offer (home hero) ---------- */
.offer { border-block: var(--rule-2); padding-block: var(--s-4) var(--s-5); max-width: 600px; }
.offer__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-block-end: var(--s-3); }
.offer__name { display: block; font-family: var(--f-text); font-size: var(--fs-2xl); line-height: 1.15; text-decoration: none; margin-block-end: var(--s-3); }
.offer__name:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
:lang(ar) .offer__name { font-family: var(--f-ar-text); font-weight: 700; font-size: var(--fs-3xl); }
.offer__price { display: flex; align-items: flex-end; gap: var(--s-4) var(--s-5); flex-wrap: wrap; padding-block: var(--s-3); border-block-start: var(--rule-s); }
.offer__price + .offer__acts { border-block-start: var(--rule-s); padding-block-start: var(--s-4); }
.offer__terms { max-width: 22rem; }
.offer__price .num { font-family: var(--f-wide); font-stretch: var(--wide); font-weight: 300; font-size: var(--fs-offer-num); line-height: 0.8; letter-spacing: -0.045em; direction: ltr; }
.offer__price .num small { font-size: 0.24em; font-weight: 550; letter-spacing: var(--track-label); vertical-align: top; position: relative; inset-block-start: 0.2em; }
.offer__terms { display: grid; gap: 2px; font-size: var(--fs-fine); line-height: 1.35; padding-block-end: 2px; }
.offer__terms b { font-family: var(--f-text); font-weight: 600; font-size: var(--fs-l); }
.offer__full { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s-3); padding-block: var(--s-3); border-block: var(--rule-s); }
.offer__fullnum { font-family: var(--f-wide); font-stretch: var(--wide); font-weight: 300; font-size: var(--fs-2xl); line-height: 1; letter-spacing: -0.02em; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums lining-nums; }
.offer__fullnum small { font-size: 0.5em; font-weight: 550; letter-spacing: var(--track-label); }
.offer__fullnote { flex: 1 1 16rem; font-size: var(--fs-fine); line-height: 1.35; color: var(--ink-2); }
.offer__end { font-size: var(--fs-fine); line-height: 1.35; margin: 0; padding-block: var(--s-3); border-block: var(--rule-s); }
.offer__acts { margin-block: var(--s-4); }
.offer__gate { font-size: var(--fs-fine); color: var(--ink-2); margin-block: 0 var(--s-2); }
.offer__more { font-size: var(--fs-fine); margin: 0; }

/* ---------- seals ---------- */
.seal { width: 100%; direction: ltr; }
.seal svg { width: 100%; height: auto; }
.seal.is-void { opacity: 0.25; }
.seal-cap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px var(--s-4); border-block-start: var(--rule-1); padding-block-start: var(--s-3); margin-block-start: var(--s-3); max-width: 560px; margin-inline-start: auto; }
.seal-cap .label { white-space: nowrap; padding-block-start: 0.2em; }
.seal-name { font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 600; font-size: var(--fs-m); letter-spacing: 0; direction: ltr; unicode-bidi: isolate; text-align: start; margin: 0; }
.seal-cap .seal-name, .card__seal .seal-name, .reading__name { white-space: nowrap; }
[dir="rtl"] .seal-name, [dir="rtl"] .seal-cap .hash, [dir="rtl"] .reading__name, [dir="rtl"] .hashes code, [dir="rtl"] .pubkey code { text-align: end; }
.seal-cap p { margin: 0; font-size: var(--fs-fine); line-height: 1.4; }
.seal-cap .hash { color: var(--ink-2); }
@media (max-width: 1000px) { .seal-cap { grid-template-columns: minmax(0, 1fr); gap: 2px; } .seal-cap .label { padding-block-start: var(--s-2); } }

/* how to read a seal: the key strip */
.keystrip { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-5) var(--s-7); align-items: start; }
.keystrip__acts { margin-block: var(--s-5) 0; }
.keystrip__fig { direction: ltr; display: grid; gap: var(--s-5); justify-items: start; }
/* the seal sits inside a margin that holds the callouts: 28 units of 296 on every side */
.keystrip__seal { position: relative; width: 100%; max-width: 440px; }
.keystrip__seal > .seal { padding: calc(100% * 28 / 296); }
.keystrip__seal svg.callouts { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.keystrip__compare { margin: 0; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-4); align-items: center; border-block-start: var(--rule-s); padding-block-start: var(--s-4); width: 100%; }
.keystrip__compare figcaption { display: grid; gap: 4px; font-size: var(--fs-m); color: var(--ink-2); line-height: 1.4; }
.keystrip__compare .seal-name { color: var(--ink); }
.keystrip__intro { max-width: 60ch; margin-block-end: var(--s-4); }
.keystrip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); counter-reset: key; }
.keystrip__list li { counter-increment: key; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); align-content: start; gap: 2px var(--s-2); padding-block: var(--s-3); border-block-start: var(--rule-s); font-size: var(--fs-fine); line-height: 1.4; }
/* the numbers are struck punches, like the callouts on the seal */
.keystrip__list li::before { content: counter(key); grid-row: span 2; align-self: start; font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 700; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; width: 1.9em; height: 1.75em; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--ink); margin-block-start: 1px; }

.keystrip__list b { font-family: var(--f-text); font-weight: 600; font-size: var(--fs-l); letter-spacing: 0; }
:lang(ar) .keystrip__list b { font-family: var(--f-ar-display); }
.keystrip__list span { color: var(--ink-2); }
.keystrip__name { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4); padding-block-start: var(--s-3); border-block-start: var(--rule-1); }
.keystrip__name .seal-name { font-stretch: var(--wide); font-size: var(--fs-seal-name); }

/* ---------- the four struck punches, off the path between a buyer and the offer ---------- */
.punches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: var(--rule-1); }
.punches li { padding-block: var(--s-5); padding-inline: 0 var(--s-5); display: grid; grid-template-rows: 96px auto 1fr; gap: var(--s-2); }
.punches li + li { border-inline-start: var(--rule-s); padding-inline-start: var(--s-5); }
.punches .punch { display: flex; align-items: center; height: 96px; }
.punches svg { height: 72px; width: auto; }
.punches b { font-family: var(--f-text); font-weight: 600; font-size: var(--fs-xl); margin-block-start: var(--s-2); }
:lang(ar) .punches b { font-family: var(--f-ar-display); font-weight: 700; font-size: var(--fs-l); }
.punches span { font-size: var(--fs-fine); color: var(--ink-2); line-height: 1.42; text-wrap: pretty; }

/* ---------- steps: an ordered list whose items lead with bold ---------- */
.prose ol.steps { list-style: none; padding: 0; margin-block: var(--s-5); margin-inline: 0; counter-reset: st; border-block-start: var(--rule-1); max-width: var(--measure); }
/* the large struck numeral belongs to the entries alone; a step inside an entry is numbered in
   the text's own voice, a Newsreader old style figure with a stop, so "01" never sits under "01" */
.prose ol.steps > li { counter-increment: st; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: var(--s-3); padding-block: var(--s-4); margin: 0; border-block-end: var(--rule-s); max-width: none; }
.prose ol.steps > li::before { content: counter(st) "."; grid-row: span 9; font-family: var(--f-text); font-weight: 400; font-size: var(--fs-xl); line-height: 1.2; font-variant-numeric: oldstyle-nums proportional-nums; color: var(--ink-2); }
:lang(ar) .prose ol.steps > li::before { font-family: var(--f-ar-text); font-size: var(--fs-ar-l); line-height: 1.3; }
.prose ol.steps > li > * { grid-column: 2; }
.prose ol.steps > li > strong.st { display: block; font-family: var(--f-text); font-weight: 600; font-size: var(--fs-xl); letter-spacing: 0; margin-block-end: 4px; }
.prose ol.steps > li > p { margin-block: 0 0.5em; }
.prose ol.steps > li > p:last-child { margin-block-end: 0; }
:lang(ar) .prose ol.steps > li > strong.st { font-family: var(--f-ar-display); }

/* ---------- unit: the struck price ---------- */
.unit-price { background: var(--slip); position: relative; padding-block: var(--s-4) var(--s-5); padding-inline: var(--s-5); }
.unit-price::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule-soft); pointer-events: none; clip-path: var(--punch); }
.unit-price > * { position: relative; }
.unit-price__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding-block-end: var(--s-3); margin-block-end: var(--s-4); border-block-end: var(--rule-1); }
.unit-price__kind { color: var(--ink-2); font-size: var(--fs-xs); margin-block: 0 var(--s-3); }
.unit-price__num { font-family: var(--f-wide); font-stretch: var(--wide); font-weight: 300; font-size: var(--fs-unit-num); line-height: 0.78; letter-spacing: -0.05em; margin-block-end: var(--s-4); direction: ltr; text-align: start; }
:lang(ar) .unit-price__num { text-align: start; }
.unit-price__num small { font-size: 0.2em; font-weight: 550; letter-spacing: var(--track-label); vertical-align: top; position: relative; inset-block-start: 0.25em; }
.unit-price dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; }
.unit-price dl > div { display: contents; }
.unit-price .is-launch + .is-full dt, .unit-price .is-launch + .is-full dd { border-block-start: var(--rule-1); }
.unit-price dt, .unit-price dd { padding-block: 7px; border-block-start: var(--rule-s); margin: 0; }
/* the line labels under a kicker are plain words in the text face, in sentence case */
.unit-price dt { font-family: var(--f-text); font-weight: 400; font-size: var(--fs-m); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.unit-price dd { font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 600; font-size: var(--fs-m); text-align: end; white-space: nowrap; }
:lang(ar) .unit-price dt { font-family: var(--f-ar-text); font-size: var(--fs-ar-fine); }
.unit-price__note { font-size: var(--fs-fine); color: var(--ink-2); margin-block: var(--s-3) 0; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s-3); padding-block: 8px; border-block-start: var(--rule-s); font-size: var(--fs-fine); line-height: 1.4; }
/* label columns speak in the house's wide kicker, not in mono small capitals */
.facts dt { font-family: var(--f-wide); font-stretch: var(--wide); font-weight: 650; font-size: var(--fs-xs); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--ink-2); padding-block-start: 0.3em; }
.facts dd { margin: 0; }
/* in Arabic, as in English, the label is the small kicker and the value leads: the label in Kufi
   600 at 13 px, the value in Markazi at the Arabic text floor or larger */
:lang(ar) .facts dt { font-family: var(--f-ar-display); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: var(--fs-s); }
:lang(ar) .facts dd { font-family: var(--f-ar-text); font-size: var(--fs-ar-fine); line-height: 1.5; }
:lang(ar) .facts--head dd { font-size: var(--fs-ar-l); }
.facts--head { margin-block-start: var(--s-6); max-width: 36rem; border-block-end: var(--rule-s); }
.facts--head div { grid-template-columns: 13rem minmax(0, 1fr); padding-block: 10px; }
.facts--head dd { font-size: var(--fs-l); }

/* the test sheet: the unit's acceptance tests, numbered, with their evidence and a result box */
.tsheet { margin-block-start: var(--s-5); border-block-start: var(--rule-2); }
.tsheet__title { margin-block: var(--s-3); }
.tsheet__head, .tsheet__list li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) minmax(0, 13rem) 5.5rem; column-gap: var(--s-4); }
.tsheet__head { padding-block: 6px; border-block: var(--rule-1); }
.tsheet__head span { font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 650; font-size: var(--fs-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); }
.tsheet__list { list-style: none; margin: 0; padding: 0; }
.tsheet__list li { padding-block: var(--s-3); border-block-end: var(--rule-s); font-size: var(--fs-m); line-height: 1.42; align-items: start; }
.tsheet__list li:last-child { border-block-end: var(--rule-1); }
.tsheet__n { font-family: var(--f-wide); font-stretch: var(--wide); font-weight: 300; font-size: var(--fs-xl); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tsheet__def { min-width: 0; }
/* the test id heads its cell on a line of its own; a value quoted in the definition stays in the line */
.tsheet__def code { font-size: var(--fs-xs); }
.tsheet__def > code:first-child { display: block; margin-block-end: 2px; overflow-wrap: anywhere; }
.tsheet__src { font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 600; font-size: var(--fs-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); padding-block-start: 0.3em; overflow-wrap: anywhere; }
.tsheet__box { width: 22px; height: 22px; border: 1.5px solid var(--ink); margin-block-start: 2px; }
/* the Arabic test sheet runs right to left in the Arabic faces; each test id keeps its code face */
:lang(ar) .tsheet__head span, :lang(ar) .tsheet__src { font-family: var(--f-ar-display); letter-spacing: 0; text-transform: none; font-size: var(--fs-s); }
:lang(ar) .tsheet__list li { font-size: var(--fs-ar-fine); line-height: 1.6; }
:lang(ar) .tsheet__def > code:first-child { text-align: end; }

/* the spec register on a unit page */
.spec { list-style: none; margin: 0; padding: 0; counter-reset: sp; border-block-start: var(--rule-1); }
.spec li { counter-increment: sp; display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; column-gap: var(--s-4); padding-block: var(--s-3); border-block-end: var(--rule-s); font-size: var(--fs-fine); line-height: 1.42; }
.spec li::before { content: counter(sp, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-2); padding-block-start: 0.2em; }
.spec .spec__def { min-width: 0; }
.spec code { font-size: var(--fs-xs); display: block; margin-block-end: 2px; color: var(--ink); background: none; border: 0; padding: 0; overflow-wrap: anywhere; word-break: break-word; }
.spec .src { font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 600; font-size: var(--fs-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.specseal { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-5); align-items: center; margin-block-start: var(--s-5); padding-block-start: var(--s-4); border-block-start: var(--rule-1); }
.specseal p { margin-block: 0 4px; font-size: var(--fs-fine); }
.specseal__cap { color: var(--ink-2); }
/* the hash keeps its own order and sits beside its seal, at the start of an Arabic line */
[dir="rtl"] .specseal .hash { text-align: end; }

/* ---------- the record panel (a slip) ---------- */
.record { background: var(--slip); color: var(--ink); position: relative; padding-block: 18px 16px; padding-inline: 20px; }
.record::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule-soft); pointer-events: none; clip-path: var(--punch); }
.record__top { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; border-block-end: var(--rule-1); padding-block-end: 8px; margin-block-end: 10px; position: relative; }
.record pre { margin: 0; font-family: var(--f-mono); font-size: var(--fs-xs); line-height: 1.7; white-space: normal; direction: ltr; text-align: start; position: relative; }
.record pre .jl { display: block; white-space: pre-wrap; overflow-wrap: anywhere; padding-inline-start: calc(var(--ind, 0) * 1ch + 2ch); text-indent: -2ch; }
.record__foot { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-4); align-items: center; margin-block-start: 12px; padding-block-start: 10px; border-block-start: var(--rule-s); position: relative; }
.record__spec { position: relative; margin-block: 12px 0; font-size: var(--fs-m); color: var(--ink-2); }
/* SPECIMEN is said beside the thing, never across its text */
.specimen-tag { display: inline-block; font-family: var(--f-wide); font-stretch: var(--wide); font-weight: 650; font-size: var(--fs-xs); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--ink); border: 1.5px solid currentColor; padding-block: 2px 1px; padding-inline: 7px; white-space: nowrap; vertical-align: 0.1em; margin-inline-end: 6px; }
:lang(ar) .specimen-tag { font-family: var(--f-ar-display); font-stretch: normal; letter-spacing: 0; font-size: var(--fs-s); }

/* ---------- the touchstone (verify) ---------- */
.touch { background: var(--stone); color: var(--on-stone); }
.touch .label, .touch .ref { color: var(--on-stone-2); }
.touch__grid { row-gap: var(--s-6); padding-block: var(--s-7) var(--s-8); }
.touch__intro { grid-column: 1 / -1; display: grid; grid-template-columns: var(--entry-col) minmax(0, 1fr); }
/* the stone keeps the ledger's text edge: the kicker and the head start where every entry's text does */
.touch__intro > * { grid-column: 2; padding-inline-start: calc(var(--s-6) + 4px); }
.touch__kicker { margin-block-end: var(--s-3); }
.touch__intro h2, .touch__lede { max-width: 44rem; }
.touch__grid > .slip { grid-column: 1 / 8; }
.touch__grid > .reading { grid-column: 8 / 13; }
.touch__intro h2 { font-family: var(--f-text); font-size: var(--fs-h2); line-height: 1.12; font-weight: 400; }
.touch__lede { margin-block-start: var(--s-3); }
:lang(ar) .touch__intro h2 { font-family: var(--f-ar-text); font-weight: 700; font-size: var(--fs-ar-h2); }
.touch__intro p { color: var(--on-stone-2); max-width: 60ch; margin: 0; }
.touch__intro p b { color: var(--on-stone); }
.touch .slip { background: var(--slip); color: var(--ink); position: relative; padding-block: 16px 14px; padding-inline: 18px; align-self: start; min-width: 0; }
.touch .slip::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule-soft); pointer-events: none; }
.slip__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-block-end: 8px; position: relative; }
.slip__top .label { color: var(--ink-2); }
.slip__text { position: relative; direction: ltr; }
.slip textarea {
  display: block; width: 100%; min-height: 520px; resize: vertical; border: 0; background: transparent; color: var(--ink); position: relative; z-index: 1;
  font-family: var(--f-mono); font-size: var(--fs-xs); line-height: 1.7; font-stretch: 100%; padding-block: 6px; padding-inline: 0; direction: ltr; text-align: start;
  /* the file wraps inside the slip: every line is read whole, nothing runs past the edge */
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; overflow-x: hidden;
}
.slip textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.slip__foot { position: relative; font-size: var(--fs-m); color: var(--ink-2); margin-block: 8px 0; border-block-start: var(--rule-s); padding-block-start: 8px; }
.reading { display: grid; gap: var(--s-4); align-content: start; min-width: 0; }
.reading > * { min-width: 0; }
.reading .seal { max-width: 380px; }
.reading__name { font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 600; font-size: var(--fs-m); direction: ltr; unicode-bidi: isolate; text-align: start; min-height: 1.4em; }
.hashes { display: grid; gap: 10px; border-block-start: 1px solid var(--rule-stone); padding-block-start: 12px; }
.hashes div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 10px; }
.hashes code { font-family: var(--f-mono); font-size: var(--fs-xs); line-height: 1.6; color: var(--on-stone); direction: ltr; text-align: start; }
.hashes code mark { background: none; color: var(--fire-stone); text-decoration: underline; text-underline-offset: 3px; }
.checks { display: grid; gap: 0; border-block-start: 1px solid var(--rule-stone); }
.check { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 10px; padding-block: 10px; border-block-end: 1px solid var(--rule-stone); align-items: baseline; scroll-margin-block: 80px; }
.check output { display: flex; gap: 10px; align-items: baseline; font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 600; font-size: var(--fs-l); line-height: 1.3; }
:lang(ar) .check output { font-family: var(--f-ar-display); font-weight: 600; }
.check output::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--on-stone); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); translate: 0 1px; }
.check[data-state="bad"] output { color: var(--fire-stone); }
.check[data-state="bad"] output::before { background: var(--fire-stone); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.check[data-state="wait"] output::before { background: none; border: 1.5px dashed var(--on-stone-2); clip-path: none; }
.engine { font-size: var(--fs-s); color: var(--on-stone-2); margin: 0; }
.touch .acts { gap: var(--s-3); }
.touch .noscript { color: var(--fire-stone); font-size: var(--fs-fine); }
.pubkey { display: grid; gap: 4px; margin: 0; }
.pubkey ul { list-style: none; margin: 0; padding: 0; }
.pubkey li { display: grid; gap: 2px; font-size: var(--fs-s); color: var(--on-stone-2); }
.pubkey code { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--on-stone); overflow-wrap: anywhere; direction: ltr; text-align: start; }
.pubkey code.pub { color: var(--on-stone-2); }
/* a key id is one value: it does not break at its hyphens */
.kid { white-space: nowrap; }
/* on the narrowest phones the id is wider than the column, so it may break there after all */
@media (max-width: 370px) { .kid { white-space: normal; overflow-wrap: anywhere; } }
.pubkey li span { margin-block-start: 4px; }
/* the slip takes any receipt file: a file control in its top strip, a dashed ink ring while a file is dragged over it */
.slip__open { font-size: var(--fs-s); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.slip__open:hover { text-decoration-thickness: 2px; }
.slip__open:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.touch .slip.is-drop::before { border: 2px dashed var(--ink); }
.slip__hint { position: relative; font-size: var(--fs-s); color: var(--ink-2); margin-block: 6px 0; }
.slip__foot p { margin: 0; }
.slip__hint bdi { white-space: nowrap; }
.slip__facts { margin-block: 8px 0; padding-inline-start: 1.1em; display: grid; gap: 4px; }
.slip__facts li { padding-inline-start: 2px; }
/* another receipt on the slip: the record's own notes step aside, one line says why */
.slip__foot [hidden] { display: none; }
.slip__other { font-weight: 600; color: var(--ink); }
.slip__get { margin-block-start: 10px !important; display: flex; flex-wrap: wrap; gap: 4px var(--s-4); }
/* what the receipt file alone cannot show: said plainly, under the checks */
.nothere { display: grid; gap: 6px; border-block-start: 1px solid var(--rule-stone); padding-block-start: 12px; }
.nothere ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 6px; font-size: var(--fs-s); color: var(--on-stone-2); }
.nothere code, .slip__facts code { font-family: var(--f-mono); font-size: var(--fs-xs); }
/* a Not yet reference on the stone takes the stone's second ink */
.nothere sup.ny a { color: var(--on-stone-2); }

/* ---------- estate chart and key dials ---------- */
.estate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); gap: var(--s-5) var(--s-6); border-block-start: var(--rule-1); padding-block-start: var(--s-4); }
.estate__chart { min-width: 0; }
.estate__title { margin-block: 0 var(--s-3); }
.estate__side { display: grid; gap: var(--s-4); align-content: start; }
.estate__note { font-size: var(--fs-m); color: var(--ink-2); margin: 0; }
.estate .gauges { grid-template-columns: minmax(0, 1fr); margin: 0; }
.estate .gauge svg { max-width: 190px; }
.estate__keys { grid-column: 1 / -1; }
.estate__cap { margin-block-start: var(--s-3); }
.chart { margin: 0; border: var(--rule-1); background: var(--chart-ground); }
.chart svg { width: 100%; height: auto; }
.chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5); padding-block: 10px; padding-inline: 14px; border-block-start: var(--rule-1); background: var(--plate); font-size: var(--fs-fine); }
.chart__scroll { overflow-x: auto; overscroll-behavior-x: contain; position: relative; }
.chart__hint { display: none; margin: 0; font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 600; font-size: var(--fs-s); }
:lang(ar) .chart__hint { font-family: var(--f-ar-display); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; margin: 0; padding: 0; }
.legend li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 600; font-size: var(--fs-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); }
.legend i { width: 22px; height: 10px; background: var(--ink); clip-path: var(--punch); }
.legend .open i { background: none; clip-path: none; border: 2px dashed var(--ink); }
.legend .unknown i { background: none; clip-path: none; border: 1.5px dashed var(--ink-2); }
:lang(ar) .legend li { font-family: var(--f-ar-display); text-transform: none; letter-spacing: 0; font-size: var(--fs-s); }
.gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); margin-block-start: var(--s-3); }
.gauge { margin: 0; }
.gauge svg { width: 100%; max-width: 220px; margin-inline: auto; }
.gauge figcaption { text-align: center; margin-block-start: var(--s-2); display: grid; gap: 2px; }
.gauge figcaption b { font-family: var(--f-text); font-weight: 600; font-size: var(--fs-l); }
.gauge figcaption span { font-size: var(--fs-m); color: var(--ink-2); line-height: 1.3; }
:lang(ar) .gauge figcaption b { font-family: var(--f-ar-display); }
.gauges__keys { font-size: var(--fs-m); color: var(--ink-2); max-width: 36ch; margin: 0; }
.gauges__keys p { margin: 0 0 4px; }
.gauges__keys dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px var(--s-3); }
.gauges__keys dt { font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 600; color: var(--ink); padding-block-start: 0.25em; }
.gauges__keys dd { margin: 0; }

.keys { list-style: none; margin-block: var(--s-4) 0; margin-inline: 0; padding: 0; border-block-start: var(--rule-1); }
.keys li { display: grid; grid-template-columns: 3rem minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3); padding-block: 8px; border-block-end: var(--rule-s); font-size: var(--fs-m); line-height: 1.35; align-items: baseline; }
.keys li.keys__head { font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 650; font-size: var(--fs-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); border-block-end: var(--rule-1); }
.keys .k { font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.keys .changed { color: var(--ink); font-weight: 600; }
:lang(ar) .keys li.keys__head { font-family: var(--f-ar-display); text-transform: none; letter-spacing: 0; font-size: var(--fs-s); }

/* ---------- answers ---------- */
/* the short answer is a record slip, with the cut corner inner rule of the record panel */
.short-wrap { margin-block-start: var(--s-6); }
.short { background: var(--slip); position: relative; padding-block: var(--s-4); padding-inline: var(--s-5); max-width: 46rem; }
.short::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule-soft); pointer-events: none; clip-path: var(--punch); }
.short p { margin-block: 0 0.6em; position: relative; }
.short p:last-child { margin: 0; }
.qmeta { display: flex; flex-wrap: wrap; gap: 6px var(--s-4); }
/* the unit that closes it: one ruled block, no box */
.aoffer { border-block: var(--rule-2); padding-block: var(--s-3) var(--s-4); }
.aoffer .kicker { color: var(--ink-2); font-size: var(--fs-xs); margin-block-end: var(--s-2); }
.aoffer__name { display: block; font-family: var(--f-text); font-size: var(--fs-xl); line-height: 1.2; text-decoration: none; margin-block-end: var(--s-3); }
.aoffer__name:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.aoffer__price { display: flex; align-items: baseline; gap: var(--s-3); padding-block: var(--s-2); border-block: var(--rule-s); margin-block-end: var(--s-3); }
.aoffer__price .num { font-family: var(--f-wide); font-stretch: var(--wide); font-weight: 300; font-size: var(--fs-num-xs); line-height: 0.9; letter-spacing: -0.04em; direction: ltr; unicode-bidi: isolate; }
.aoffer__price .num small { font-size: 0.3em; font-weight: 550; letter-spacing: var(--track-label); }
.aoffer__full { font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 600; font-size: var(--fs-s); }
.aoffer p { font-size: var(--fs-fine); margin-block: 0 var(--s-3); color: var(--ink-2); }
.aoffer__gate { display: grid; justify-items: start; gap: 6px; }
.aoffer__gate span { white-space: nowrap; }
.pbfile { border-block: var(--rule-2); padding-block: var(--s-3) var(--s-4); }
.pbfile p { margin-block: 6px 10px; font-size: var(--fs-fine); }
.pbfile__seal { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.pbfile__seal .seal-name { font-size: var(--fs-m); }
.qlist { list-style: none; margin: 0; padding: 0; border-block-start: var(--rule-1); }
.qlist li { border-block-end: var(--rule-s); }
.qlist a { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: var(--s-4); padding-block: var(--s-4); text-decoration: none; align-items: baseline; }
.qlist a:hover .q { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.qlist .q { font-size: var(--fs-xl); line-height: 1.25; }
.qlist .id { font-family: var(--f-wide); font-stretch: var(--w-label); font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: var(--track-label); color: var(--ink); border: 1px solid var(--ink); justify-self: start; padding-block: 3px 2px; padding-inline: 6px; }
.units-list a { grid-template-columns: 3.5rem minmax(0, 1fr) auto auto; }
.units-list .price-s { font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 600; font-size: var(--fs-m); white-space: nowrap; }

/* ---------- status board ---------- */
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: var(--rule-2); }
.tally div { padding-block: var(--s-4); padding-inline: 0 var(--s-4); display: grid; gap: 6px; }
.tally div + div { border-inline-start: var(--rule-s); padding-inline-start: var(--s-4); }
.tally .num { font-family: var(--f-wide); font-stretch: var(--wide); font-weight: 300; font-size: var(--fs-num-s); line-height: 0.9; letter-spacing: -0.04em; }
.tally__note { margin-block: var(--s-2) 0; }
.tally .note { font-size: var(--fs-s); color: var(--ink-2); }
.tally .mark, .reading .mark, .unit-price__top .mark { justify-self: start; align-self: start; }
.tbl td.state { white-space: normal; }
.tbl td.state .mark { margin-block-end: 4px; }
.tbl td.state .rest { display: block; font-size: 0.88em; color: var(--ink-2); }

/* ---------- drafts and the legal reading column ---------- */
.draft { display: flex; gap: var(--s-4); align-items: center; border: 2px solid var(--ink); color: var(--ink); padding-block: 10px; padding-inline: 14px; }
.draft .kicker { font-size: var(--fs-xs); }
.draft p { margin: 0; color: var(--ink); font-size: var(--fs-fine); }

/* ---------- form fields (for the record lookup and the written desk when they open) ---------- */
.field { display: grid; gap: 6px; margin-block-end: var(--s-4); }
.field label { font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 650; font-size: var(--fs-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); }
:lang(ar) .field label { font-family: var(--f-ar-display); text-transform: none; letter-spacing: 0; font-size: var(--fs-m); }
.field input, .field textarea, .field select {
  font: inherit; font-size: var(--fs-l); color: var(--ink); background: var(--slip); border: 0; border-block-end: 2px solid var(--ink);
  padding-block: 12px 10px; padding-inline: 12px; min-height: 48px; width: 100%; border-radius: 0;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.field .hint { font-size: var(--fs-m); color: var(--ink-2); }
.field--error input { border-block-end-color: var(--fire-text); }
.field--error .hint { color: var(--fire-text); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-fine); }
.check-row input { width: 20px; height: 20px; accent-color: var(--ink); margin-block: 2px 0; margin-inline: 0; }

/* ---------- the name ---------- */
.etym, .prose .etym { list-style: none; margin-block: var(--s-5) 0; margin-inline: 0; padding: 0; border-block-start: var(--rule-1); max-width: var(--measure); }
.etym li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s-4); align-items: baseline; padding-block: var(--s-3); border-block-end: var(--rule-s); }
:lang(en) .etym b { font-family: var(--f-text); font-weight: 500; font-size: var(--fs-2xl); }
.etym b { font-family: var(--f-ar-display); font-weight: 700; font-size: var(--fs-3xl); line-height: 1.3; }
.etym span { font-size: var(--fs-fine); color: var(--ink-2); }
.etym span i { color: var(--ink); }

/* ---------- the component sheet ---------- */
.sizes { display: flex; flex-wrap: wrap; gap: 32px; align-items: end; }
.sizes__f { margin: 0; display: grid; gap: 8px; justify-items: start; align-content: end; max-width: min(330px, 100%); }
.variety { display: flex; flex-wrap: wrap; gap: 28px; }
.variety__f { margin: 0; width: 240px; }
.variety__f figcaption { margin-block-start: 6px; text-align: start; font-size: var(--fs-s); line-height: 1.4; }
.variety__f figcaption .cap { display: block; }

/* ---------- 404 ---------- */
.lost { padding-block: var(--s-8); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .keystrip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .estate { grid-template-columns: minmax(0, 1fr); }
  .estate .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 30rem; }
  .touch__grid > .slip { grid-column: 1 / 7; }
  .touch__grid > .reading { grid-column: 7 / 13; }
}
@media (max-width: 720px) {
  /* labels carry meaning: none under 12 px on a phone */
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl table, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl colgroup { display: none; }
  .tbl tr { padding-block: 10px; border-block-end: var(--rule-s); }
  .tbl tbody tr:first-child { border-block-start: var(--rule-1); }
  .tbl tbody tr:last-child { border-block-end: var(--rule-1); }
  .tbl td, .tbl tbody tr:last-child td { border: 0; display: block; padding-block: 3px; padding-inline: 0; min-height: 1.6em; }
  .tbl td::before { content: attr(data-label); display: block; font-family: var(--f-wide); font-stretch: var(--w-label); font-weight: 650; font-size: var(--fs-xs); line-height: 1.35; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); margin-block-end: 1px; }
  :lang(ar) .tbl td::before { font-family: var(--f-ar-display); text-transform: none; letter-spacing: 0; font-size: var(--fs-s); }
  .tbl td:first-child, .tbl tbody tr:last-child td:first-child { font-weight: 600; padding-block-end: 6px; }
  .tbl td:first-child::before, .tbl td[data-label=""]::before { display: none; }
  .tbl td.state .rest { display: block; margin-block-start: 4px; }
  .tbl th.n, .tbl td.n { text-align: start; white-space: normal; }
  /* a price row: the name and the words across the row, the prices two to a row on one baseline
     (at launch beside its wholesale, full beside its wholesale) */
  .tbl--prices tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-4); align-items: baseline; }
  .tbl--prices tbody td { grid-column: 1 / -1; width: auto; }
  .tbl--prices tbody td.n { grid-column: auto; }
  /* the picked line is tinted as one block on the row, not cell by cell, so the stacked cells of
     unequal height leave no gaps or notches inside the tint */
  .tbl tr.is-head { background: rgba(238, 236, 230, 0.45); padding-inline: var(--s-2); }
  .tbl tr.is-head td { background: none; }
  /* the status board: the state mark follows the promise on its line, and no cell repeats its label */
  .tbl--board td::before { display: none; }
  .tbl--board td:first-child, .tbl--board tbody tr:last-child td:first-child { display: inline; padding: 0; }
  .tbl--board td.state { display: inline; padding: 0; }
  .tbl--board td.state .mark { margin-inline-start: var(--s-2); margin-block-end: 0; vertical-align: 0.05em; }
  .tbl--board td.state .rest { margin-block-start: 4px; }
  .tbl--board td:nth-child(n+3) { display: block; margin-block-start: 6px; padding: 0; color: var(--ink-2); font-size: var(--fs-s); line-height: 1.4; }
  :lang(ar) .tbl--board td:nth-child(n+3) { font-size: var(--fs-ar-fine); }
  .tbl__note { margin-block-start: calc(-1 * var(--s-3)); }
  .tbl--small { max-width: none; }
  .offer__price .num { font-size: var(--fs-num-phone); }
  .offer__acts { margin-block: var(--s-3); }
  .offer__end { border-block: 0; padding-block: var(--s-2) var(--s-2); }
  .mark { font-size: var(--fs-xs); }
  .punches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .punches li, .punches li + li { padding-block: var(--s-4); padding-inline: 0 var(--s-3); border-inline-start: 0; grid-template-rows: 76px auto 1fr; }
  .punches li:nth-child(even) { border-inline-start: var(--rule-s); padding-inline-start: var(--s-3); }
  .punches li:nth-child(n+3) { border-block-start: var(--rule-s); }
  .punches .punch { height: 76px; }
  .punches svg { height: 66px; }
  /* the slip keeps its own inset on a phone: only the intro and the reading lose their indent */
  .touch__grid > .slip { grid-column: 1 / -1; }
  .touch__intro > *, .touch__grid > .reading { grid-column: 1 / -1; padding-inline-start: 0; }
  .keystrip__list { grid-template-columns: minmax(0, 1fr); }
  .prose ol.steps > li { grid-template-columns: 2rem minmax(0, 1fr); }
  .prose pre { white-space: pre; overflow-wrap: normal; }
  .touch__grid, .touch__intro { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding-block: var(--s-6); }
  .touch__intro { padding-block: 0; }
  /* 16 px stops the phone zooming in; the record scrolls sideways, and the fade says so */
  /* on a phone the file is set small enough that a key and its value fit on one or two lines */
  .slip textarea { min-height: 420px; font-size: var(--fs-s); font-stretch: 100%; line-height: 1.55; }
  .hashes div, .check { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hashes code { font-size: var(--fs-s); }
  .gauges { gap: var(--s-3); }
  .keys li { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1fr); }
  .keys li > :nth-child(3) { display: none; }
  .keys li.keys__head, .legend li { font-size: var(--fs-xs); }
  .tally .num { font-size: var(--fs-tally-phone); }
  .qlist a, .units-list a { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .facts div, .facts--head div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dt { font-size: var(--fs-xs); }
  .specseal { grid-template-columns: 96px minmax(0, 1fr); }
  .spec li { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .spec .src { grid-column: 2; white-space: normal; font-size: var(--fs-xs); }
  .spec li::before { font-size: var(--fs-xs); }
  .chart figcaption { flex-direction: column; }
  .chart__hint { display: block; }
  /* on a phone the chart is shown at a readable scale and opens on the harbour */
  .chart__scroll { direction: rtl; }
  /* the crop edges fade, so a label at the edge reads as running on, not as cut */
  .chart__scroll:focus-visible { outline-offset: -3px; }
  .chart__view { position: relative; }
  .chart__view::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(to right, var(--chart-ground), transparent 28px, transparent calc(100% - 28px), var(--chart-ground)); }
  .chart__scroll svg { width: 820px; max-width: none; direction: ltr; }
  .notyet .ny-n, .notyet summary .kicker { font-size: var(--fs-xs); }
  .facts--head { margin-block-start: 0; }
  .tsheet__head { display: none; }
  .tsheet__list li { grid-template-columns: 2.4rem minmax(0, 1fr) 24px; row-gap: 4px; }
  .tsheet__src { grid-column: 2; grid-row: 2; }
  .tsheet__box { grid-column: 3; grid-row: 1; }
  .estate { grid-template-columns: minmax(0, 1fr); }
  /* the two dials stand one above the other, wide enough that the key pills print at 12 px or more */
  .estate .gauges { grid-template-columns: minmax(0, 1fr); }
  .estate .gauge svg { max-width: 224px; }
  .keystrip { grid-template-columns: minmax(0, 1fr); }
  sup.ny { font-size: max(0.64em, var(--fs-xs)); }
}
:lang(ar) .keystrip__list li, :lang(ar) .punches span, :lang(ar) .notyet, :lang(ar) .toc li, :lang(ar) .facts div, :lang(ar) .seal-cap p { font-size: var(--fs-ar-fine); }
:lang(ar) .keystrip__intro { font-size: var(--fs-ar-l); }
:lang(ar) .offer__terms, :lang(ar) .offer__gate, :lang(ar) .offer__more, :lang(ar) .unit-price__note, :lang(ar) .aoffer p { font-size: var(--fs-ar-fine); }
/* a condition printed in place opens on a plain "Not yet:" in ink 2, upright, so it never reads as a fact */
.ny-pre { font-style: normal; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.sizes__f > div { max-width: 100%; }
.sizes__f { min-width: 0; } .sizes__f svg { width: 100%; height: auto; }

/* ---------- the twelve seal sheet ---------- */
.twelve { display: grid; grid-template-columns: repeat(auto-fill, 120px); gap: var(--s-5) var(--s-6); }
.twelve__f { margin: 0; display: grid; gap: 6px; }

/* ---------- fire on a band: its own darker token keeps 4.5:1 on plate 2 ---------- */
.entry--band .mark--stamp { color: var(--fire-text-band); }
/* the touchstone's own focus ring: the light ink of the stone */
.touch :focus-visible { outline-color: var(--on-stone); }
/* short balanced lines for kickers and labels */
.kicker, .label { text-wrap: balance; }

/* ---------- Arabic: Markazi reads small, so fine text has a floor ---------- */
:lang(ar) .sec__note, :lang(ar) .notyet p, :lang(ar) .engine, :lang(ar) .slip__foot, :lang(ar) .gauges__keys, :lang(ar) .gauge figcaption span,
:lang(ar) .tbl td.n .qual, :lang(ar) .index__group li, :lang(ar) .colophon p, :lang(ar) .foot__brand p, :lang(ar) .record__spec, :lang(ar) .pbfile p,
:lang(ar) .draft p, :lang(ar) .field .hint, :lang(ar) .unit-price__note, :lang(ar) .offer__fullnote, :lang(ar) .keystrip__compare figcaption, :lang(ar) .nav__panel-in > .nav__intro p, :lang(ar) .nothere ul, :lang(ar) .slip__hint, :lang(ar) .pubkey li { font-size: var(--fs-ar-fine); }

/* ---------- phone: tap targets for the page's own navigation ---------- */
@media (max-width: 720px) {
  .toc a { display: block; padding-block: 8px; }
  .toc { gap: 0; }
  .textlink { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; border-block-end: 0; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.25em; }
  .keystrip__compare { grid-template-columns: 112px minmax(0, 1fr); }
}
.offer__terms span { text-wrap: pretty; }
@media (max-width: 720px) { .tbl td.n .qual { margin-inline-start: 0; max-width: none; text-align: start; } }
/* a table that is still wider than its column scrolls inside its own box; nothing is clipped */
.tbl { overflow-x: auto; }
/* on a phone a table is a stack of rows that wraps every cell, so it has nothing to scroll: the
   box lets a Not yet reference's tap area hang over its edge instead of scrolling by 2 px */
@media (max-width: 720px) { .tbl { overflow-x: visible; } .tbl td { overflow-wrap: anywhere; } }
@media (max-width: 1100px) and (min-width: 721px) {
  .tbl table { table-layout: fixed; }
  .tbl td, .tbl th { overflow-wrap: anywhere; }
}
@media (min-width: 721px) { .tbl td:first-child { min-width: 9rem; } }
@media (max-width: 1100px) and (min-width: 721px) {
  .tbl col.c-price { width: 6.5rem; }
  .tbl col.c-date { width: 7.5rem; }
  .tbl td:first-child, .tbl--prices td:first-child, .tbl--prices col.c-first { min-width: 0; }
}

/* the unit price card: the full prices under a kicker of their own, after the launch prices */
.unit-price__group { color: var(--ink-2); font-size: var(--fs-xs); margin-block: var(--s-4) var(--s-2); }
:lang(ar) .unit-price__group { font-size: var(--fs-s); }
/* the units list: the launch price, its kicker, and the full price smaller beneath */
.units-list .price-s { display: grid; justify-items: end; gap: 2px; text-align: end; }
.price-s__k, .price-s__full { font-family: var(--f-text); font-weight: 400; font-stretch: 100%; font-size: var(--fs-s); color: var(--ink-2); white-space: nowrap; }
:lang(ar) .price-s__k, :lang(ar) .price-s__full { font-family: var(--f-ar-text); font-size: var(--fs-m); }
@media (max-width: 720px) { .units-list .price-s { justify-items: start; text-align: start; } }
/* the answer's offer names its line when it is not the unit's headline line */
.aoffer__scope { margin: 0; color: var(--ink-2); font-size: var(--fs-m); }
.pbfile__sealref { color: var(--ink-2); }
/* on a phone the compare seal leaves the key strip, so one seal stands on a screen */
@media (max-width: 720px) { .keystrip__compare { display: none; } }
/* on the status board the column head already says what must be true first, and the state mark
   says Not yet: the conditions there drop their own "Not yet:" */
.tbl--board .ny-pre { display: none; }
/* a chart label the phone's first view would cut at its edge waits until the reader moves the chart */
.chart__scroll svg text.is-held { visibility: hidden; }

/* a format or file name in a table cell stays on one line (firm-receipt/6 does not break at its hyphen) */
.tbl td code { white-space: nowrap; }
