/* Hallmark · shape: Workbench (the scan form leads, then the register it produces) · genre: modern-minimal · theme: Blueprint (deal 2/3, seed hasr-open-source-cryptographic-inventory-4d02·eddadceb·2026-12-05·r0) · job: try · draw: manual
 * hero: Counter · nav: edge-aligned, wordmark and three links · footer: colophon block · imagery: the product (a real register from alshehri.dev), no photographs · signature: the register, one row per host, the key exchange set in mono · blueprint: cyanotype
 * axes: mid/geometric-sans/neutral · posture: drenched · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: P and S, a scan form is common to every scanner; the page argues what the scan does not do and shows a real register from the author's own domain instead of a mock */
/* Hallmark · waive 44c · Counter hero: the Scan button lives inside the form block, so the measured text box runs down into the visual · the scan form is the hero visual on this page */
/* Hallmark · dismissed 58 · 83 words in the 1440 window from y=600, most of them the five-row table of what a scan touches */
/* Hallmark · dismissed 26a · the unfocusable div is the host of Cloudflare's cross-origin Turnstile iframe, which draws its own ring; no rule in this page can match :focus on it */
@import url("./tokens.css");
@import url("./base.css");

/* Arabic is first-class: no capitals, no tracking, taller lines (unslop rtl.md). */
:root { --lh-head-ar: 1.35; --lh-body-ar: 1.75; --text-hero: clamp(2.5rem, 4.4vw + 0.5rem, 4.5rem); }
html[lang="ar"] [data-l="en"], html[lang="en"] [data-l="ar"] { display: none !important; }
html[lang="ar"] body { line-height: var(--lh-body-ar); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: var(--lh-head-ar); text-transform: none; }
html[lang="en"] h1, html[lang="en"] h2 { text-transform: uppercase; line-height: 1.02; }
bdi, .ltr { unicode-bidi: isolate; direction: ltr; }
code, .mono { font-family: var(--font-outlier); font-weight: 500; font-size: 0.92em; }

/* chrome */
.skip { position: absolute; inset-inline-start: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-accent-ink); }
.skip:focus-visible { top: var(--space-md); }
.bar { border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.bar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; }
.mark { display: inline-flex; align-items: baseline; gap: var(--space-xs); font: 600 var(--text-lg)/1 var(--font-display); text-decoration: none; }
.mark span + span { font-family: var(--font-body); font-weight: 500; font-size: var(--text-md); color: var(--color-muted); }
.links { display: flex; align-items: center; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; font-weight: 500; font-size: var(--text-sm); }
.links a, .lang { white-space: nowrap; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }
.lang { min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: 0; background: transparent; color: var(--color-ink); font-weight: 500; font-size: var(--text-sm); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.lang:hover { background: var(--color-paper-2); }
.lang:active { background: var(--color-paper-3); }
.lang:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 40rem) { .links .hide-s { display: none; } .links { gap: var(--space-md); } }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-xl); border: var(--rule-hair) solid var(--color-ink); border-radius: 0; background: var(--color-ink); color: var(--color-accent-ink); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-ink-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.field { width: 100%; min-width: 0; min-height: 52px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: 0; background: var(--color-paper-2); color: var(--color-ink); font: 500 var(--text-lg)/1 var(--font-outlier); direction: ltr; text-align: start; outline: 2px solid transparent; outline-offset: 2px; }
html[lang="ar"] .field { text-align: end; }
.field::placeholder { color: var(--color-muted); opacity: 1; }
.field:focus-visible { outline-color: var(--color-focus); }
.field[aria-invalid="true"] { border-color: var(--color-ink); border-style: dashed; }
.field:disabled { opacity: 0.55; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .btn, .lang { transition: background-color var(--dur-short) linear; } }

/* hero: the form is the visual, set as a title block */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; padding-block: var(--space-2xl); }
.hero h1 { max-width: 16ch; font-size: var(--text-hero); }
html[lang="ar"] .hero h1 { font-size: var(--text-display-s); }
@media (min-width: 60rem) { .hero { min-height: calc(100svh - 73px); } }

.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); }
.block { border: var(--rule-hair) solid var(--color-rule); }
.block > * + * { border-top: var(--rule-hair) solid var(--color-rule); }
.cell { padding: var(--space-lg); }
.cell label, .cell .lab { display: block; margin-bottom: var(--space-sm); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
.row { display: flex; gap: var(--space-sm); }
.row .btn { flex-shrink: 0; }
.help { min-height: 1lh; margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }
.help[data-tone="error"] { color: var(--color-ink); font-weight: 600; }
.ts { min-height: 65px; }
.ts div:focus-within, .ts div:focus { outline: 2px solid var(--color-focus) !important; outline-offset: 2px; } /* Turnstile host element; the widget draws its own ring inside */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.caps > div { padding: var(--space-md) var(--space-lg); }
.caps > div + div { border-inline-start: var(--rule-hair) solid var(--color-rule); }
.caps b { display: block; font: 500 var(--text-xl)/1.1 var(--font-outlier); font-variant-numeric: tabular-nums; }
.caps span { font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); padding-block: var(--space-xl) var(--space-2xl); }
}
@media (max-width: 40rem) {
  .row { flex-direction: column; }
  .cell { padding: var(--space-md); }
  .caps > div { padding: var(--space-sm) var(--space-md); }
  .caps b { font-size: var(--text-lg); }
}

/* sections */
.sec { padding-block: var(--section-gap-s); border-top: var(--rule-heavy) solid var(--color-rule-2); }
.sec--band { background: var(--color-paper-2); color: var(--color-ink); border-top: 0; }
.sec--last { padding-bottom: var(--section-gap); }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: end; margin-bottom: var(--space-2xl); }
.head p { color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.45; max-width: 45ch; }
@media (max-width: 60rem) { .head { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); margin-bottom: var(--space-xl); } }

/* the register: keylined tables */
.reg-wrap { overflow-x: auto; border: var(--rule-hair) solid var(--color-rule); }
.reg-wrap:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.reg { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.reg th { padding: var(--space-sm) var(--space-lg); text-align: start; font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); border-bottom: var(--rule-heavy) solid var(--color-rule); white-space: nowrap; }
.reg td { padding: var(--space-md) var(--space-lg); vertical-align: top; border-top: var(--rule-hair) solid var(--color-rule-2); }
.reg td + td, .reg th + th { border-inline-start: var(--rule-hair) solid var(--color-rule-2); }
.reg .n { width: 1%; font: 500 var(--text-lg)/1.2 var(--font-outlier); font-variant-numeric: tabular-nums; }
.reg .t { font-weight: 600; min-width: 14ch; }
.reg .m { font-family: var(--font-outlier); font-weight: 500; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.reg tr.never td { color: var(--color-ink-2); }
@media (max-width: 40rem) {
  .reg th, .reg td { padding-inline: var(--space-sm); }
  .reg { font-size: var(--text-sm); }
  .reg--sample th:nth-child(2), .reg--sample td:nth-child(2), .reg--sample th:nth-child(4), .reg--sample td:nth-child(4), .reg--sample th:nth-child(5), .reg--sample td:nth-child(5) { display: none; }
}

/* a dimension string: measures the real scan */
.dim { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); font: 500 var(--text-sm)/1 var(--font-outlier); color: var(--color-muted); direction: ltr; }
.dim__line { position: relative; height: var(--rule-hair); background: var(--color-rule); }
.dim__line::before, .dim__line::after { content: ""; position: absolute; top: calc(var(--tick) / -2); width: var(--rule-hair); height: var(--tick); background: var(--color-rule); transform: rotate(45deg); }
.dim__line::before { left: 0; } .dim__line::after { right: 0; }
.dim__val { position: absolute; left: 50%; bottom: var(--space-xs); transform: translateX(-50%); padding-inline: var(--space-xs); color: var(--color-ink); font-size: var(--text-lg); }
.caption { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); max-width: 65ch; }

/* two elevations parted by one heavy line */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-block: var(--rule-hair) solid var(--color-rule); }
.pair > div { padding: var(--space-xl) var(--space-xl) var(--space-xl) 0; }
.pair > div + div { padding-inline: var(--space-xl) 0; border-inline-start: var(--rule-heavy) solid var(--color-rule); }
html[lang="ar"] .pair > div:first-child { padding: var(--space-xl) 0 var(--space-xl) var(--space-xl); }
.pair h3 { margin-bottom: var(--space-md); }
.pair p { color: var(--color-ink-2); }
.cmd { margin: var(--space-xl) 0 0; padding: var(--space-md) var(--space-lg); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-3); overflow-x: auto; direction: ltr; text-align: left; }
.cmd code { font-size: var(--text-sm); white-space: pre; }
.more { display: inline-block; margin-top: var(--space-lg); font-weight: 500; }
.more:hover { text-decoration: none; }
@media (max-width: 60rem) {
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair > div, html[lang="ar"] .pair > div:first-child, .pair > div + div { padding: var(--space-lg) 0; border-inline-start: 0; }
  .pair > div + div { border-top: var(--rule-heavy) solid var(--color-rule); }
}

/* footer: colophon block */
.foot { padding-block: var(--space-2xl) var(--space-xl); background: var(--color-paper-3); }
.foot .container { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); }
.foot p { color: var(--color-ink-2); font-size: var(--text-sm); max-width: 62ch; }
.foot p + p { margin-top: var(--space-sm); }
.foot ul { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin: var(--space-lg) 0 0; padding: 0; list-style: none; font-size: var(--text-sm); font-weight: 500; }
.foot a:hover { text-decoration: none; }
@media (max-width: 60rem) { .foot .container { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } }

/* document pages: limits, opt-out */
.doc { padding-block: var(--space-3xl) var(--section-gap-s); }
.doc h1 { font-size: var(--text-display-s); margin-bottom: var(--space-lg); }
.doc > .lead { color: var(--color-ink-2); margin-bottom: var(--space-2xl); }
.doc h2 { font-size: var(--text-2xl); margin: var(--space-3xl) 0 var(--space-lg); }
html[lang="en"] .doc h2 { text-transform: none; line-height: 1.15; }
.doc ul.plain { max-width: 70ch; margin: 0; padding-inline-start: var(--space-lg); }
.doc ul.plain li + li { margin-top: var(--space-sm); }
.doc form { max-width: 40rem; }

/* status page (app scope): the register as it fills */
.status { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-xl); }
.status h1 { font-variant-numeric: tabular-nums; font-size: var(--text-2xl); max-width: none; text-transform: none !important; }
.status p { color: var(--color-ink-2); }
.state { font-weight: 600; }
.files { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin: var(--space-xl) 0 0; padding: 0; list-style: none; }
.files a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); text-decoration: none; font-weight: 500; transition: background-color var(--dur-short) var(--ease-out); }
.files a:hover { background: var(--color-paper-2); }
.files a:active { background: var(--color-paper-3); }
.files a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.skel td { color: transparent; }
.skel td::after { content: ""; display: block; height: 1em; background: var(--color-grid-2); }
.empty { padding: var(--space-xl) var(--space-lg); color: var(--color-ink-2); }
