/* botsting.com. Layout: a white reading page between two graphite bands (the opening and the close).
   The one loud object is the evidence record in the opening band; everything else is type, hairlines
   and space. Honey is the brand's own yellow and is spent only on the primary action and on marked values. */
:root {
  --paper: #ffffff; --mist: #f3f5f8; --text: #171c25; --muted: #535e70; --line: #dce1e8; --line-strong: #171c25;
  --band: #0e1217; --band-panel: #171c24; --band-text: #eef1f5; --band-muted: #a4aebd; --band-line: #2b333f;
  --honey: #f5b50a; --on-honey: #171100; --accent: #7a5600;
  --proven: #bf2f1d; --held: #14734b; --mark: #ffe08a; --on-mark: #171100;
  --code-bg: #0e1217; --code-text: #e6eaf0; --code-dim: #8c97a8; --code-key: #f5b50a;
  --focus: #1f6feb;
  --sans: "Archivo", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12161c; --mist: #181d25; --text: #e9edf2; --muted: #a0aab9; --line: #2a323d; --line-strong: #e9edf2;
    --band: #0a0d11; --band-panel: #151a21; --band-text: #eef1f5; --band-muted: #a4aebd; --band-line: #2b333f;
    --honey: #f5b50a; --on-honey: #171100; --accent: #f5b50a;
    --proven: #ff7a68; --held: #53c99a; --mark: #f5b50a; --on-mark: #171100;
    --code-bg: #0a0d11; --code-text: #e6eaf0; --code-dim: #8c97a8; --code-key: #f5b50a;
    --focus: #79b0ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12161c; --mist: #181d25; --text: #e9edf2; --muted: #a0aab9; --line: #2a323d; --line-strong: #e9edf2;
  --band: #0a0d11; --band-panel: #151a21; --band-text: #eef1f5; --band-muted: #a4aebd; --band-line: #2b333f;
  --honey: #f5b50a; --on-honey: #171100; --accent: #f5b50a;
  --proven: #ff7a68; --held: #53c99a; --mark: #f5b50a; --on-mark: #171100;
  --code-bg: #0a0d11; --code-text: #e6eaf0; --code-dim: #8c97a8; --code-key: #f5b50a;
  --focus: #79b0ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.62 var(--sans); }
img { max-width: 100%; }
.wrap { max-width: 76rem; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, h4 { margin: 0; font-family: var(--sans); font-stretch: 112%; text-wrap: balance; }
h1 { font-weight: 650; font-size: clamp(2.35rem, 4.9vw, 3.9rem); line-height: 1.04; letter-spacing: -0.022em; }
h2 { font-weight: 650; font-size: clamp(1.75rem, 3.1vw, 2.55rem); line-height: 1.1; letter-spacing: -0.018em; }
h3 { font-weight: 600; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.005em; }
h4 { font-weight: 600; font-size: 1rem; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
code, kbd, samp { font-family: var(--mono); font-size: 0.9em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--honey); color: var(--on-honey); padding: 0.6rem 0.9rem; border-radius: var(--radius); }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 700; font-stretch: 112%; font-size: 1.3rem; letter-spacing: -0.02em; flex: none; }
.brand img { width: 2.4rem; height: 2.4rem; display: block; }
.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 1.9vw, 1.75rem); margin-left: auto; font-size: 0.97rem; font-weight: 500; }
.site-nav a { text-decoration: none; padding-block: 0.4rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover { border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--honey); }
.site-nav .btn { border-bottom: 1px solid transparent; padding-block: 0.62rem; }
.menu-toggle { display: none; margin-left: auto; font: 600 0.95rem/1 var(--sans); padding: 0.65rem 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--text); cursor: pointer; }
@media (max-width: 66rem) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem max(20px, env(safe-area-inset-right, 0px)) 1.25rem max(20px, env(safe-area-inset-left, 0px)); margin: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; justify-content: center; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font: 600 1rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 0.9rem 1.35rem; border-radius: var(--radius); border: 1px solid var(--honey); background: var(--honey); color: var(--on-honey); }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: color-mix(in srgb, currentColor 9%, transparent); filter: none; }
.btn.small { padding: 0.62rem 1rem; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.text-link { font-weight: 600; color: var(--accent); }
.band-dark .text-link { color: var(--honey); }

/* bands */
.band { padding-block: clamp(3.75rem, 7.5vw, 6.5rem); }
.band-mist { background: var(--mist); }
.band-dark { background: var(--band); color: var(--band-text); }
.band-rule { border-top: 1px solid var(--line); }
.lead { max-width: 44rem; display: grid; gap: 1.1rem; margin-bottom: clamp(2.2rem, 4.5vw, 3.5rem); }
.lead p { font-size: 1.2rem; line-height: 1.55; color: var(--muted); }
.band-dark .lead p { color: var(--band-muted); }
.kicker { font-size: 0.95rem; font-weight: 600; color: var(--accent); }
.band-dark .kicker { color: var(--honey); }

/* opening band */
.hero { background: var(--band); color: var(--band-text); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='145.5' viewBox='0 0 84 145.5'%3E%3Cpath d='M42 0l42 24.25v48.5L42 97 0 72.75v-48.5zM42 97v48.5M0 72.75v48.5l42 24.25M84 72.75v48.5l-42 24.25' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(70rem 34rem at 85% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(70rem 34rem at 85% 0%, #000 0%, transparent 70%); }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(2.2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.2rem, 7vw, 5.75rem) clamp(2.6rem, 5vw, 4rem); }
.pitch { display: grid; gap: 1.5rem; }
.pitch > p { font-size: 1.22rem; line-height: 1.55; color: var(--band-muted); max-width: 35rem; }
.hero-facts { list-style: none; margin: 0; padding: 1.4rem 0 clamp(2rem, 4vw, 2.8rem); border-top: 1px solid var(--band-line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem 2rem; }
.hero-facts li { display: grid; gap: 0.2rem; font-size: 0.95rem; color: var(--band-muted); line-height: 1.4; }
.hero-facts b { color: var(--band-text); font-weight: 600; font-size: 1.05rem; font-stretch: 112%; }
.page-hero .wrap { padding-block: clamp(3rem, 6vw, 5rem); display: grid; gap: 1.3rem; }
.page-hero h1 { max-width: 52rem; font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.page-hero p { max-width: 44rem; font-size: 1.2rem; line-height: 1.55; color: var(--band-muted); }
.status { display: inline-flex; align-items: center; gap: 0.5rem; justify-self: start; font-size: 0.9rem; font-weight: 600; padding: 0.35rem 0.7rem; border: 1px solid var(--band-line); border-radius: 999px; color: var(--band-text); }
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--honey); }
.band:not(.band-dark) .status, .doc .status { border-color: var(--line); color: var(--text); }

/* the evidence record */
.record { background: var(--band-panel); color: var(--band-text); border: 1px solid var(--band-line); border-radius: 10px; min-width: 0; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.record-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--band-line); padding: 0.4rem 0.5rem 0; }
.record-tabs button { font: 500 0.92rem/1.2 var(--sans); padding: 0.7rem 0.8rem; background: transparent; color: var(--band-muted); border: 0; border-bottom: 2px solid transparent; cursor: pointer; margin-bottom: -1px; }
.record-tabs button:hover { color: var(--band-text); }
.record-tabs button[aria-selected="true"] { color: var(--band-text); border-bottom-color: var(--honey); }
.record-body { padding: 1.25rem 1.35rem 1.35rem; display: grid; gap: 1.05rem; min-height: 24.5rem; align-content: start; }
.record-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.record-head strong { font-weight: 600; font-size: 1.12rem; font-stretch: 112%; }
.sev { font-size: 0.82rem; font-weight: 600; padding: 0.22rem 0.55rem; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; }
.sev.critical, .sev.high { color: #ff8a7a; } .sev.clear { color: #62d2a5; }
.exchange { display: grid; gap: 0.7rem; margin: 0; }
.exchange div { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 0.2rem 0.9rem; font-size: 0.96rem; line-height: 1.5; }
.exchange dt { color: var(--band-muted); font-size: 0.86rem; padding-top: 0.12rem; }
.exchange dd { margin: 0; overflow-wrap: anywhere; }
.exchange dd.call { font-family: var(--mono); font-size: 0.86rem; color: #ffcf5c; }
.exchange mark, .doc mark { background: var(--mark); color: var(--on-mark); font-family: var(--mono); font-size: 0.9em; padding: 0.05em 0.3em; border-radius: 3px; }
.proof { border-top: 1px solid var(--band-line); padding-top: 1rem; display: grid; gap: 0.55rem; margin: 0; }
.proof div { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 0.2rem 0.9rem; font-size: 0.92rem; line-height: 1.45; }
.proof dt { color: var(--band-muted); font-size: 0.86rem; }
.proof dd { margin: 0; }
.record-foot { margin: 0; padding: 0.8rem 1.35rem; border-top: 1px solid var(--band-line); font-size: 0.86rem; color: var(--band-muted); }
@media (prefers-reduced-motion: no-preference) {
  .record-body.swap > * { animation: settle 0.28s ease both; }
  .record-body.swap > *:nth-child(2) { animation-delay: 0.08s; } .record-body.swap > *:nth-child(3) { animation-delay: 0.16s; }
  @keyframes settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* rows: a term on the left, its explanation on the right, hairlines between */
.rows { display: grid; margin: 0; }
.rows > div { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 0.5rem 2.5rem; padding-block: 1.35rem; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt, .rows h3 { font-weight: 600; font-size: 1.14rem; font-stretch: 112%; line-height: 1.3; }
.rows dd, .rows p { margin: 0; color: var(--muted); }
.rows dd p + p { margin-top: 0.6rem; }
.band-dark .rows > div { border-color: var(--band-line); }
.band-dark .rows dd, .band-dark .rows p { color: var(--band-muted); }

/* grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.75rem, 4vw, 3.5rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 3.5vw, 3rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.item { display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.item p { color: var(--muted); }
.band-dark .item p { color: var(--band-muted); }
.item .more { margin-top: 0.2rem; }
.topline { border-top: 2px solid var(--line-strong); padding-top: 1.1rem; }
.band-dark .topline { border-top-color: var(--honey); }

/* a real sequence: plant, attack, record, replay */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.steps > li { counter-increment: step; display: grid; gap: 0.6rem; align-content: start; border-top: 2px solid var(--line-strong); padding-top: 1rem; }
.steps > li::before { content: counter(step); font: 600 0.95rem/1 var(--mono); color: var(--accent); }
.steps p { color: var(--muted); }
.steps.tall { grid-template-columns: minmax(0, 1fr); }
/* a heading that stays in view on the left while its long content scrolls on the right */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.split > .lead { margin-bottom: 0; position: sticky; top: 6.5rem; }

/* tables */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.8rem 1.25rem 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 600; font-size: 0.9rem; color: var(--muted); border-bottom-color: var(--line-strong); white-space: nowrap; }
tbody th { font-weight: 600; }
.band-dark th, .band-dark td { border-bottom-color: var(--band-line); }
.band-dark thead th { color: var(--band-muted); border-bottom-color: var(--band-muted); }
td .yes { color: var(--held); font-weight: 600; } td .no { color: var(--muted); }

/* the report sheet and the field result */
.sheet { background: var(--paper); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2.1rem); display: grid; gap: 1.1rem; }
.band-dark .sheet { background: var(--band-panel); color: var(--band-text); border-color: var(--band-line); }
.band-dark .sheet p { color: var(--band-muted); }
.sheet .big { font-weight: 650; font-stretch: 112%; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--proven); }
.band-dark .sheet .big { color: #ff8a7a; }
.sheet p { color: var(--muted); font-size: 0.98rem; }
.sheet td:first-child { font-family: var(--mono); font-size: 0.9rem; white-space: nowrap; }
.sheet td:last-child { white-space: nowrap; }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; margin: 0; }
.figures div { display: grid; gap: 0.35rem; border-top: 2px solid var(--line-strong); padding-top: 0.9rem; }
.figures dt { order: 2; color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
.figures dd { order: 1; margin: 0; font-weight: 650; font-stretch: 112%; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.band-dark .figures div { border-top-color: var(--honey); } .band-dark .figures dt { color: var(--band-muted); }

/* the attack index */
.index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.index section { display: grid; gap: 0.75rem; align-content: start; border-top: 2px solid var(--line-strong); padding-top: 1rem; min-width: 0; }
.index h3 a { text-decoration: none; } .index h3 a:hover { text-decoration: underline; }
.index p { color: var(--muted); font-size: 0.97rem; }
.index ul, .link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.index li a, .link-list a { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 0.98rem; }
.index li a:hover, .link-list a:hover { color: var(--accent); }
.index li span, .link-list span { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cards a { display: grid; gap: 0.5rem; align-content: start; padding: 1.35rem 1.4rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; min-width: 0; }
.cards a:hover { background: var(--mist); }
.cards a p { color: var(--muted); font-size: 0.97rem; }
.cards a .meta { font-size: 0.88rem; color: var(--accent); font-weight: 600; }

/* the real report, shown inside a page */
.report-frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-width: 60rem; margin-inline: auto; }

/* code */
pre.code { margin: 0; background: var(--code-bg); color: var(--code-text); border: 1px solid var(--band-line); border-radius: 8px; padding: 1.05rem 1.25rem; font: 400 0.9rem/1.65 var(--mono); overflow-x: auto; }
pre.code .c { color: var(--code-dim); } pre.code .k { color: var(--code-key); }
:not(pre) > code { background: var(--mist); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
.band-mist :not(pre) > code { background: var(--paper); }
.band-dark :not(pre) > code { background: var(--band-panel); }

/* long reading pages: docs, the attack library, legal */
.doc-layout { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem); align-items: start; }
.doc-layout.single { grid-template-columns: minmax(0, 1fr); }
.doc-nav { position: sticky; top: 5.6rem; font-size: 0.95rem; display: grid; gap: 1.4rem; max-height: calc(100vh - 7rem); overflow-y: auto; padding-right: 0.5rem; }
.doc-nav h4 { font-size: 0.88rem; color: var(--muted); font-weight: 600; margin-bottom: 0.45rem; }
.doc-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.05rem; }
.doc-nav a { display: block; padding: 0.32rem 0.7rem; text-decoration: none; border-left: 2px solid var(--line); color: var(--muted); line-height: 1.35; }
.doc-nav a:hover { color: var(--text); border-left-color: var(--line-strong); }
.doc-nav a[aria-current="page"] { color: var(--text); font-weight: 600; border-left-color: var(--honey); }
.doc { max-width: 46rem; min-width: 0; }
.doc > * + * { margin-top: 1.05rem; }
.doc h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
.doc h2 { font-size: 1.55rem; margin-top: 2.9rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.doc h3 { margin-top: 2rem; }
.doc .lead-p, .doc p.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: none; margin-bottom: 0; display: block; }
.doc .date { color: var(--muted); font-size: 0.95rem; }
.doc ul, .doc ol { margin-bottom: 0; padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.doc li::marker { color: var(--muted); }
.doc a:not(.btn) { color: var(--accent); font-weight: 500; }
.crumbs { font-size: 0.92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted) !important; font-weight: 400 !important; }
.crumbs span::before { content: "/"; margin-right: 0.5rem; color: var(--line-strong); opacity: 0.4; }
.facts { margin-top: 1.6rem; border-top: 2px solid var(--line-strong); display: grid; }
.facts div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.2rem 1.5rem; padding-block: 0.7rem; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.note { border-left: 3px solid var(--honey); background: var(--mist); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.99rem; }
.note strong { display: block; margin-bottom: 0.2rem; }
.next { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; font-size: 0.98rem; }

/* forms */
.form { display: grid; gap: 1.1rem; background: var(--mist); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); }
.form .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.96rem; }
.field small, .form small { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--sans); padding: 0.75rem 0.85rem; border: 1px solid var(--muted); border-radius: var(--radius); background: var(--paper); color: var(--text); }
.field textarea { min-height: 7.5rem; resize: vertical; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: start; font-size: 0.96rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--accent); }
.form-result { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-result.done { color: var(--held); } .form-result.failed { color: var(--proven); }
.address { font-family: var(--mono); font-size: 0.98rem; }

/* closing band and footer */
.close-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.close-grid .lead { margin-bottom: 0; }
.site-foot { background: var(--band); color: var(--band-muted); border-top: 1px solid var(--band-line); font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.2rem 2.5rem; padding-block: clamp(2.6rem, 5vw, 3.8rem) 2rem; }
.foot-grid .brand { color: var(--band-text); margin-bottom: 0.9rem; }
.foot-grid h4 { color: var(--band-text); font-size: 0.92rem; margin-bottom: 0.8rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.foot-grid a { text-decoration: none; } .foot-grid a:hover { color: var(--band-text); text-decoration: underline; }
.foot-base { border-top: 1px solid var(--band-line); padding-block: 1.3rem 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; font-size: 0.9rem; }

@media (max-width: 62rem) {
  .hero-grid, .close-grid, .grid-2, .split { grid-template-columns: minmax(0, 1fr); }
  .split > .lead { position: static; }
  .grid-3, .grid-4, .index, .steps, .figures, .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-nav { position: static; max-height: none; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); order: 2; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 36rem) {
  .grid-3, .grid-4, .index, .steps, .figures, .cards, .form .pair, .foot-grid, .doc-nav { grid-template-columns: minmax(0, 1fr); }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exchange div, .proof div, .facts div { grid-template-columns: minmax(0, 1fr); }
  .record-body { min-height: 0; }
  .btn { width: 100%; } .site-nav .btn { width: auto; }
}
