/* I am a hostage: component styles. Every colour, space, radius and line weight is a token from tokens.json. */
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-voice); font-size: calc(20px * var(--text-scale, 1)); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.iah-frame { padding: var(--space-6); }
.iah-stack > * + * { margin-top: var(--space-6); }
.iah-row { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; }
.iah-data { font-family: var(--font-data); font-size: calc(14px * var(--text-scale, 1)); line-height: 1.5; font-weight: 400; }
.iah-muted { color: var(--ink-muted); }

/* Links: a link is a citation, so it is set in attest and always underlined. */
.iah-link { color: var(--attest); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.iah-link:visited { color: var(--attest-visited); }
.iah-link:hover { text-decoration-thickness: .16em; }
/* Focus: a paper band and an ink band, so one of them shows on any ground */
.iah-frame :focus-visible, .iah-page :focus-visible { outline: var(--border-heavy) solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--paper); }

/* Wordmark and mark */
.iah-wordmark { display: inline-block; font-weight: 700; font-size: calc(28px * var(--display-scale, 1)); line-height: 1; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.iah-wordmark-l { font-size: calc(56px * var(--display-scale, 1)); }
.iah-wordmark-reverse { background: var(--ink); color: var(--paper); padding: var(--space-3) var(--space-4); }
.iah-mark { display: inline-flex; align-items: flex-end; gap: 6px; height: 32px; vertical-align: middle; }
.iah-mark-bar { width: 56px; height: 20px; background: var(--redact); }
.iah-mark-stop { width: 7px; height: 7px; background: var(--redact); }
.iah-mark-reverse { background: var(--ink); padding: var(--space-4); height: auto; }
.iah-mark-reverse .iah-mark-bar, .iah-mark-reverse .iah-mark-stop { background: var(--paper); }

/* Statement: the first-person sentence */
.iah-statement { margin: 0; font-weight: 700; font-size: calc(56px * var(--display-scale, 1)); line-height: 1.02; letter-spacing: -.012em; max-width: 15em; text-wrap: balance; }
.iah-statement-xl { font-size: calc(80px * var(--display-scale, 1)); line-height: .98; }
.iah-statement-m { font-size: calc(40px * var(--display-scale, 1)); line-height: 1.08; letter-spacing: -.01em; }
.iah-redact { display: inline-block; width: 3.2em; height: .7em; background: var(--redact); vertical-align: -.02em; }
.iah-redact-short { width: 2em; }
.iah-redact-long { width: 5em; }
.iah-signed { margin: var(--space-4) 0 0; font-size: calc(17px * var(--text-scale, 1)); line-height: 1.5; color: var(--ink-muted); max-width: var(--measure); }
/* Type of material above the title: case, guide, statement, data (second review, Trust Project label) */
.iah-type { margin: 0 0 var(--space-3); font-size: calc(17px * var(--text-scale, 1)); line-height: 1.4; color: var(--ink-muted); }

/* Attestation stamp */
.iah-stamp { position: relative; display: inline-flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border: var(--border-rule) solid var(--attest); border-radius: var(--radius-stamp); color: var(--attest); text-decoration: none; line-height: 1.3; }
.iah-stamp::before { content: ""; position: absolute; inset: 2px; border: var(--border-hair) solid currentColor; border-radius: 1px; pointer-events: none; }
.iah-stamp-word { font-weight: 700; font-size: calc(16px * var(--text-scale, 1)); text-transform: uppercase; letter-spacing: .08em; }
.iah-stamp-detail { font-size: calc(14px * var(--text-scale, 1)); }
a.iah-stamp:hover { background: var(--attest); color: var(--on-attest); }
.iah-response { margin: var(--space-2) 0 0; font-size: calc(17px * var(--text-scale, 1)); line-height: 1.5; color: var(--ink-muted); }

/* Held-now label: the only use of alert outside errors and warnings */
.iah-urgent { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; font-size: calc(17px * var(--text-scale, 1)); line-height: 1.3; color: var(--alert); }
.iah-urgent::before { content: ""; width: 10px; height: 10px; background: var(--alert); border-radius: var(--radius-dot); }

/* Record: the facts of a case */
.iah-record { margin: 0; display: grid; grid-template-columns: 7em minmax(0, 1fr); column-gap: var(--space-4); row-gap: var(--space-2); border-top: var(--border-rule) solid var(--ink); padding-top: var(--space-3); font-size: calc(17px * var(--text-scale, 1)); line-height: 1.45; max-width: 34em; }
/* A case number or its address never breaks across lines. */
.iah-caseno { white-space: nowrap; }
.iah-record dt { color: var(--ink-muted); }
.iah-record dd { margin: 0; }
.iah-record-stacked { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
.iah-record-stacked dd { margin-bottom: var(--space-3); }

/* Exhibit: one piece of evidence */
.iah-exhibit { margin: 0; max-width: 40em; }
.iah-exhibit-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--panel); overflow: hidden; }
.iah-exhibit-media-tall { aspect-ratio: 9 / 16; max-width: 17em; }
.iah-exhibit-media-doc { aspect-ratio: 4 / 3; }
.iah-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--space-4); text-align: center; color: var(--ink-muted); font-size: calc(16px * var(--text-scale, 1)); line-height: 1.4; }
.iah-mask { position: absolute; background: var(--redact); }
.iah-exhibit figcaption { margin-top: var(--space-3); font-size: calc(17px * var(--text-scale, 1)); line-height: 1.5; }
.iah-exhibit-no { font-weight: 700; }
.iah-exhibit-data { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-6); margin: var(--space-2) 0 0; color: var(--ink-muted); }
.iah-content-note { position: absolute; inset: 0; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: var(--space-4); padding: var(--space-6); background: var(--panel); color: var(--ink); border: var(--border-rule) solid var(--ink); }
.iah-content-note p { margin: 0; font-size: calc(20px * var(--text-scale, 1)); line-height: 1.4; max-width: 24em; }

/* Testimony quoted inside reporting */
.iah-testimony { margin: 0; max-width: 30em; }
.iah-testimony p { margin: 0; font-style: italic; font-size: calc(30px * var(--display-scale, 1)); line-height: 1.3; text-indent: -.42em; }
.iah-testimony footer { margin-top: var(--space-3); font-size: calc(17px * var(--text-scale, 1)); line-height: 1.5; color: var(--ink-muted); }

/* Figure: a number with its source */
.iah-figure { max-width: 24em; border-top: var(--border-rule) solid var(--ink); padding-top: var(--space-3); }
.iah-figure-n { margin: 0; font-size: calc(80px * var(--display-scale, 1)); line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.iah-figure-what { margin: var(--space-2) 0 0; font-size: calc(20px * var(--text-scale, 1)); line-height: 1.4; }
.iah-figure-src { margin: var(--space-2) 0 0; font-size: calc(16px * var(--text-scale, 1)); line-height: 1.45; color: var(--ink-muted); }

/* Article header and prose */
.iah-headline { margin: 0; font-size: calc(40px * var(--display-scale, 1)); line-height: 1.1; font-weight: 700; letter-spacing: -.01em; max-width: 20em; text-wrap: balance; }
.iah-title { margin: 0; font-size: calc(24px * var(--text-scale, 1)); line-height: 1.25; font-weight: 700; }
.iah-standfirst { margin: var(--space-4) 0 0; font-size: calc(24px * var(--text-scale, 1)); line-height: 1.4; max-width: 28em; }
.iah-byline { margin: var(--space-4) 0 0; font-size: calc(17px * var(--text-scale, 1)); line-height: 1.5; color: var(--ink-muted); }
.iah-prose { max-width: var(--measure); }
.iah-prose p { margin: 0 0 1em; }
.iah-term { text-decoration: underline dotted; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.iah-explainer { background: var(--panel); padding: var(--space-4) var(--space-6); font-size: calc(17px * var(--text-scale, 1)); line-height: 1.5; max-width: 32em; }
.iah-explainer h2, .iah-explainer h3 { margin: 0 0 var(--space-1); font-size: calc(17px * var(--text-scale, 1)); line-height: 1.4; }
.iah-explainer p { margin: 0; }

/* Sources and corrections */
.iah-sources { margin: 0; padding-left: 1.5em; display: grid; gap: var(--space-3); font-size: calc(17px * var(--text-scale, 1)); line-height: 1.5; max-width: 40em; }
.iah-source-kind { font-weight: 700; }
.iah-sources .iah-data { display: block; color: var(--ink-muted); }
.iah-correction { border: var(--border-hair) solid var(--ink); padding: var(--space-4); font-size: calc(17px * var(--text-scale, 1)); line-height: 1.5; max-width: 38em; }
.iah-correction p { margin: 0; }

/* Buttons */
.iah-btn { display: inline-block; box-sizing: border-box; font-family: inherit; font-weight: 700; font-size: calc(18px * var(--text-scale, 1)); line-height: 1.2; padding: 14px var(--space-6); border: var(--border-rule) solid var(--ink); border-radius: var(--radius-none); background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; }
.iah-btn:hover { background: var(--paper); color: var(--ink); }
.iah-btn-quiet { background: transparent; color: var(--ink); }
.iah-btn-quiet:hover { background: var(--ink); color: var(--paper); }
.iah-btn-on-ink { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.iah-btn-on-ink:hover { background: var(--ink); color: var(--paper); }
.iah-btn[disabled] { border-color: var(--line-control); background: transparent; color: var(--ink-muted); cursor: not-allowed; }

/* Form field */
.iah-field { display: grid; gap: var(--space-2); max-width: 26em; }
.iah-field label { font-weight: 700; font-size: calc(18px * var(--text-scale, 1)); line-height: 1.2; }
.iah-field-hint { margin: 0; font-size: calc(16px * var(--text-scale, 1)); line-height: 1.45; color: var(--ink-muted); }
.iah-input { box-sizing: border-box; width: 100%; font-family: inherit; font-size: calc(20px * var(--text-scale, 1)); line-height: 1.3; padding: var(--space-3); border: var(--border-rule) solid var(--ink); border-radius: var(--radius-none); background: var(--paper); color: var(--ink); }
.iah-field-error .iah-input { border-color: var(--alert); }
.iah-field-msg { margin: 0; font-size: calc(16px * var(--text-scale, 1)); line-height: 1.45; font-weight: 700; color: var(--alert); }

/* Help strip (Ukrainian) and masthead */
.iah-help { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-6); padding: var(--space-3) var(--space-6); background: var(--ink); color: var(--paper); font-size: calc(17px * var(--text-scale, 1)); line-height: 1.4; }
.iah-help a { color: var(--paper); font-weight: 700; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.iah-help span { font-weight: 400; }
.iah-masthead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3) var(--space-8); padding: var(--space-4) var(--space-6); border-bottom: var(--border-rule) solid var(--ink); }
.iah-nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-size: calc(18px * var(--text-scale, 1)); line-height: 1.3; }
.iah-nav a { color: var(--ink); text-decoration: none; }
.iah-nav a:hover, .iah-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .3em; }

/* Footer */
.iah-footer { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-8); padding: var(--space-8) var(--space-6); border-top: var(--border-heavy) solid var(--ink); font-size: calc(17px * var(--text-scale, 1)); line-height: 1.5; }
.iah-footer h2 { margin: 0 0 var(--space-2); font-size: calc(17px * var(--text-scale, 1)); line-height: 1.5; }
.iah-footer p { margin: 0 0 var(--space-3); max-width: 26em; }
.iah-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }

/* Witness action */
.iah-act { box-sizing: border-box; border: var(--border-rule) solid var(--ink); padding: var(--space-8); max-width: 40em; }
.iah-act > p { margin: var(--space-4) 0 0; max-width: 30em; }
.iah-act-list { list-style: none; margin: var(--space-6) 0; padding: 0; display: grid; gap: var(--space-4); }
.iah-act-list li { font-size: calc(18px * var(--text-scale, 1)); line-height: 1.45; }
.iah-act-list strong { display: block; font-size: calc(20px * var(--text-scale, 1)); }
.iah-act-steps { margin: var(--space-2) 0; padding-left: 1.4em; }
.iah-act-steps li + li { margin-top: var(--space-1); }

/* Profile */
.iah-profile { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: var(--space-6); align-items: start; max-width: 44em; }
.iah-portrait { position: relative; aspect-ratio: 4 / 5; background: var(--panel); overflow: hidden; }
.iah-profile-role { margin: var(--space-3) 0 0; font-size: calc(20px * var(--text-scale, 1)); line-height: 1.45; }
.iah-profile-links { list-style: none; margin: var(--space-4) 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-6); font-size: calc(17px * var(--text-scale, 1)); }
.iah-profile-l { grid-template-columns: 20rem minmax(0, 1fr); gap: var(--space-16); max-width: none; }
.iah-profile-s { grid-template-columns: 9em minmax(0, 1fr); }

/* Case list */
.iah-cases { list-style: none; margin: 0; padding: 0; border-top: var(--border-rule) solid var(--ink); }
.iah-case { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) auto; gap: var(--space-2) var(--space-6); align-items: baseline; padding: var(--space-4) 0; border-bottom: var(--border-hair) solid var(--rule); }
.iah-case-title { font-size: calc(24px * var(--text-scale, 1)); line-height: 1.25; font-weight: 700; color: var(--ink); text-decoration: none; }
.iah-case-title:hover { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.iah-case-meta { margin: var(--space-1) 0 0; font-size: calc(16px * var(--text-scale, 1)); line-height: 1.45; color: var(--ink-muted); }
.iah-case .iah-data { color: var(--ink-muted); }
.iah-cases-compact .iah-case { grid-template-columns: minmax(0, 1fr) auto; }
.iah-cases-compact .iah-case > .iah-data { grid-column: 1 / -1; }

/* Share card: fixed 1200 x 630 */
.iah-share { box-sizing: border-box; width: 1200px; height: 630px; display: flex; flex-direction: column; justify-content: space-between; padding: var(--space-16); background: var(--paper); color: var(--ink); border: var(--border-hair) solid var(--rule); }
.iah-share .iah-statement { font-size: calc(76px * var(--display-scale, 1)); line-height: 1; max-width: 13.5em; }
.iah-share-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8); }
.iah-share-foot .iah-data { font-size: calc(20px * var(--text-scale, 1)); color: var(--ink-muted); }
.iah-share .iah-stamp-word { font-size: calc(22px * var(--text-scale, 1)); }
.iah-share .iah-stamp-detail { font-size: calc(19px * var(--text-scale, 1)); }
.iah-share .iah-wordmark { font-size: calc(36px * var(--display-scale, 1)); }

/* Page layouts */
.iah-page { position: relative; background: var(--paper); color: var(--ink); }
.iah-page-body { box-sizing: border-box; max-width: var(--page-max); margin-left: auto; margin-right: auto; padding: var(--space-24) var(--space-16) var(--space-16); }
.iah-page-body-tight { padding-top: var(--space-12); }
.iah-section { margin-top: var(--space-16); }
.iah-section > .iah-title { margin-bottom: var(--space-4); }
.iah-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-16); align-items: start; }
.iah-with-margin { display: grid; grid-template-columns: var(--margin-col) minmax(0, var(--measure)); gap: var(--space-16); align-items: start; }
.iah-margin > * + * { margin-top: var(--space-6); }
.iah-margin-index { list-style: none; margin: 0; padding: 0; font-size: calc(17px * var(--text-scale, 1)); line-height: 1.5; display: grid; gap: var(--space-1); }
.iah-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); align-items: start; }
.iah-finding { border-top: var(--border-rule) solid var(--ink); padding-top: var(--space-3); }
.iah-finding p { margin: var(--space-2) 0 0; font-size: calc(18px * var(--text-scale, 1)); line-height: 1.5; }
/* Inside a page the bars share the page gutter and stop their content at page-max. */
.iah-page .iah-help, .iah-page .iah-masthead, .iah-page .iah-footer { padding-left: max(var(--space-16), calc((100% - var(--page-max)) / 2 + var(--space-16))); padding-right: max(var(--space-16), calc((100% - var(--page-max)) / 2 + var(--space-16))); }

@media (max-width: 720px) {
  .iah-statement-xl { font-size: calc(40px * var(--display-scale, 1)); line-height: 1.08; }
  .iah-statement { font-size: calc(40px * var(--display-scale, 1)); line-height: 1.08; }
  .iah-headline { font-size: calc(30px * var(--display-scale, 1)); }
  .iah-footer, .iah-two, .iah-three, .iah-with-margin, .iah-profile { grid-template-columns: minmax(0, 1fr); }
  .iah-page .iah-help, .iah-page .iah-masthead, .iah-page .iah-footer { padding-left: var(--space-6); padding-right: var(--space-6); }
  .iah-case, .iah-cases-compact .iah-case { grid-template-columns: minmax(0, 1fr); }
  .iah-case .iah-stamp { justify-self: start; }
  .iah-profile-s .iah-portrait { max-width: 9em; }
  .iah-profile-l .iah-portrait { max-width: 16em; }
  .iah-profile-l { gap: var(--space-6); }
  .iah-page-body { padding: var(--space-12) var(--space-6); }
}
@media (prefers-reduced-motion: no-preference) {
  .iah-btn, a.iah-stamp { transition: background-color .12s linear, color .12s linear; }
}

/* ---------- Phone app ----------
   The same parts, laid out for one thumb. What is used most sits nearest the thumb: sections and the
   main action at the bottom edge; what is used rarely (back, language, share, help) in the top bar.
   A whole row is the tap target, peer items swipe sideways, secondary detail folds away.
   Nothing here needs JavaScript. */
.iah-app { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; height: 100dvh; overflow: hidden; background: var(--paper); color: var(--ink); font-family: var(--font-voice); font-size: calc(20px * var(--text-scale, 1)); line-height: 1.55; }
.iah-app :focus-visible { outline: var(--border-heavy) solid var(--focus); outline-offset: -6px; box-shadow: inset 0 0 0 2px var(--paper); }
.iah-app-scroll { min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scroll-padding-top: var(--space-16); }
.iah-app-block { padding: var(--space-8) var(--space-4); }
.iah-app-block + .iah-app-block { border-top: var(--border-rule) solid var(--ink); }
.iah-app-block > .iah-title { margin-bottom: var(--space-3); }

/* Type steps down on a phone: statement-m opens the home screen, statement-s a case or a profile, statement-xs a second statement */
.iah-app .iah-statement { font-size: calc(36px * var(--display-scale, 1)); line-height: 1.08; letter-spacing: -.01em; max-width: none; }
.iah-app .iah-statement-xl { font-size: calc(40px * var(--display-scale, 1)); }
.iah-app .iah-statement-m { font-size: calc(30px * var(--display-scale, 1)); line-height: 1.12; }
.iah-app .iah-standfirst { margin-top: 0; font-size: calc(22px * var(--text-scale, 1)); }
.iah-app .iah-headline + .iah-standfirst { margin-top: var(--space-3); }
.iah-app .iah-testimony p { font-size: calc(24px * var(--text-scale, 1)); }
.iah-app .iah-figure { border-top: 0; padding-top: 0; }
.iah-app .iah-figure-n { font-size: calc(56px * var(--display-scale, 1)); }
.iah-app .iah-explainer { padding: var(--space-4); }
.iah-app .iah-content-note { padding: var(--space-4); gap: var(--space-3); }
.iah-app .iah-content-note p { font-size: calc(18px * var(--text-scale, 1)); }
.iah-app .iah-act { padding: var(--space-6) var(--space-4); }
.iah-app .iah-profile-s { grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-4); }

/* Top bar: where you are, the way back, one action */
.iah-appbar { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 56px; padding: 0 var(--space-4); border-bottom: var(--border-rule) solid var(--ink); background: var(--paper); }
.iah-appbar .iah-wordmark { display: inline-flex; align-items: center; min-height: 44px; font-size: calc(24px * var(--text-scale, 1)); }
.iah-appbar-back, .iah-appbar-action { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 44px; min-height: 44px; font-size: calc(18px * var(--text-scale, 1)); line-height: 1.2; font-weight: 700; color: var(--ink); text-decoration: none; }
.iah-appbar-action { justify-content: flex-end; }
.iah-appbar-back::before { content: ""; box-sizing: border-box; width: 11px; height: 11px; margin-left: 3px; border-left: var(--border-rule) solid currentColor; border-bottom: var(--border-rule) solid currentColor; transform: rotate(45deg); }
.iah-appbar-id { font-family: var(--font-data); font-size: calc(14px * var(--text-scale, 1)); line-height: 1.5; color: var(--ink-muted); }
.iah-appbar-help { align-self: stretch; display: inline-flex; align-items: center; margin-right: calc(-1 * var(--space-4)); padding: 0 var(--space-4); border-left: var(--border-rule) solid var(--ink); color: var(--ink); font-size: calc(17px * var(--text-scale, 1)); line-height: 1.2; font-weight: 700; text-decoration: none; }
.iah-appbar-help-fill { background: var(--ink); color: var(--paper); }
.iah-appbar-end { align-self: stretch; display: flex; align-items: center; gap: var(--space-4); }

/* Bottom bar of sections: the four opened most often. Help, used rarely, is the black key of the top bar. */
.iah-tabbar { display: flex; align-items: stretch; border-top: var(--border-rule) solid var(--ink); background: var(--paper); padding-bottom: env(safe-area-inset-bottom, 0px); }
.iah-tabbar a { flex: 1 1 0; min-width: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 var(--space-2); border-top: var(--border-heavy) solid transparent; font-size: calc(17px * var(--text-scale, 1)); line-height: 1.2; color: var(--ink); text-decoration: none; }
.iah-tabbar a[aria-current] { border-top-color: var(--ink); font-weight: 700; }

/* Bottom bar of actions, used on a case in place of the sections */
.iah-actionbar { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-4); padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); border-top: var(--border-rule) solid var(--ink); background: var(--paper); }
.iah-actionbar .iah-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-4); font-size: calc(17px * var(--text-scale, 1)); text-align: center; }
.iah-actionbar .iah-btn:first-child { flex: 1 1 auto; justify-content: flex-start; text-align: left; }

/* Tabs inside one screen: they stay under the top bar and jump to a part */
.iah-tabs { position: sticky; top: 0; z-index: 2; display: flex; gap: var(--space-6); padding: 0 var(--space-4); background: var(--paper); border-bottom: var(--border-rule) solid var(--ink); }
.iah-tabs a { box-sizing: border-box; display: flex; align-items: center; gap: var(--space-2); min-width: 44px; min-height: 48px; border-bottom: var(--border-heavy) solid transparent; font-size: calc(17px * var(--text-scale, 1)); line-height: 1.2; color: var(--ink); text-decoration: none; }
.iah-tabs a[aria-current="true"] { border-bottom-color: var(--ink); font-weight: 700; }
.iah-tabs-n { font-weight: 400; color: var(--ink-muted); }

/* Rows that are one tap target from edge to edge */
.iah-taps { list-style: none; margin: 0; padding: 0; }
.iah-tap { display: grid; justify-items: start; gap: var(--space-1); padding: var(--space-4) 0; border-bottom: var(--border-hair) solid var(--rule); color: var(--ink); text-decoration: none; }
.iah-taps > li:first-child > .iah-tap { padding-top: var(--space-1); }
.iah-tap:active { background: var(--panel); }
.iah-tap-title { font-size: calc(22px * var(--text-scale, 1)); line-height: 1.25; font-weight: 700; }
.iah-tap-meta { font-size: calc(16px * var(--text-scale, 1)); line-height: 1.45; color: var(--ink-muted); }
.iah-tap > .iah-data { color: var(--ink-muted); }
.iah-tap > .iah-stamp { margin-top: var(--space-2); }
.iah-tap-link { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.iah-btn-block { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 56px; padding: 0 var(--space-4); text-align: left; }

/* Strip: peer items side by side, moved by the finger, never by itself */
.iah-strip { display: flex; align-items: flex-start; gap: var(--space-3); margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--space-4); scrollbar-width: none; }
.iah-strip::-webkit-scrollbar { display: none; }
.iah-strip > * { box-sizing: border-box; flex: 0 0 84%; scroll-snap-align: start; }
.iah-strip .iah-exhibit-media { aspect-ratio: 4 / 3; }

/* Fold: detail that opens on a tap */
.iah-fold { border-top: var(--border-hair) solid var(--rule); border-bottom: var(--border-hair) solid var(--rule); }
.iah-fold + .iah-fold { border-top: 0; }
.iah-fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 52px; padding: var(--space-2) 0; box-sizing: border-box; font-size: calc(18px * var(--text-scale, 1)); line-height: 1.3; font-weight: 700; cursor: pointer; }
.iah-fold > summary::-webkit-details-marker { display: none; }
.iah-fold > summary::after { content: attr(data-closed); flex: none; font-size: calc(16px * var(--text-scale, 1)); font-weight: 400; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.iah-fold[open] > summary::after { content: attr(data-open); }
.iah-fold-note { font-weight: 400; color: var(--ink-muted); }
.iah-fold-body { padding: 0 0 var(--space-4); font-size: calc(17px * var(--text-scale, 1)); line-height: 1.5; }
.iah-fold-body > p { margin: 0; }
.iah-fold-body > ul { list-style: none; margin: 0; padding: 0; display: grid; }
.iah-fold .iah-record { border-top: 0; padding-top: 0; }

/* ---------- Forms, steps, people ---------- */
textarea.iah-input { display: block; min-height: 9em; line-height: 1.5; resize: vertical; }
.iah-form { display: grid; gap: var(--space-8); max-width: var(--measure); }
.iah-form .iah-field { max-width: none; }
.iah-choices { display: grid; margin: 0; padding: 0; border: 0; min-width: 0; }
.iah-choices legend { padding: 0; margin-bottom: var(--space-2); font-weight: 700; font-size: calc(18px * var(--text-scale, 1)); line-height: 1.2; }
.iah-choice { box-sizing: border-box; display: flex; align-items: flex-start; gap: var(--space-3); min-height: 48px; padding: var(--space-3) 0; border-bottom: var(--border-hair) solid var(--rule); font-size: calc(18px * var(--text-scale, 1)); line-height: 1.35; }
.iah-choice input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.iah-keys { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.iah-key { position: relative; box-sizing: border-box; display: inline-flex; align-items: center; min-height: 52px; padding: 0 var(--space-6); border: var(--border-rule) solid var(--ink); font-weight: 400; font-size: calc(18px * var(--text-scale, 1)); line-height: 1.2; cursor: pointer; }
.iah-key input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.iah-key:has(input:checked) { background: var(--ink); color: var(--paper); font-weight: 700; }
.iah-key:has(input:focus-visible) { outline: var(--border-heavy) solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--paper); }
a.iah-key { color: var(--ink); text-decoration: none; }
.iah-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--space-4); align-items: end; max-width: 62em; }
.iah-filters .iah-field { max-width: none; }
/* Steps: numbered only when the order matters */
.iah-steps { list-style: none; margin: 0; padding: 0; counter-reset: iah-step; max-width: var(--measure); border-bottom: var(--border-hair) solid var(--rule); }
.iah-steps > li { counter-increment: iah-step; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); column-gap: var(--space-3); padding: var(--space-4) 0; border-top: var(--border-hair) solid var(--rule); }
.iah-steps > li::before { content: counter(iah-step); font-weight: 700; font-size: calc(30px * var(--display-scale, 1)); line-height: 1.1; }
.iah-steps > li > * { grid-column: 2; margin: 0; }
.iah-steps > li > * + * { margin-top: var(--space-2); }
.iah-step-title { font-size: calc(22px * var(--text-scale, 1)); line-height: 1.25; font-weight: 700; }
.iah-steps p { font-size: calc(18px * var(--text-scale, 1)); line-height: 1.5; }
.iah-list { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); max-width: var(--measure); }
/* A fact still to be supplied: shown, never invented */
.iah-todo { background: var(--panel); padding: 0 4px; font-family: var(--font-data); font-size: calc(14px * var(--text-scale, 1)); }
.iah-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12) var(--space-16); }
.iah-people .iah-profile { max-width: none; grid-template-columns: 9em minmax(0, 1fr); }
.iah-appbar-title { margin: 0; font-weight: 700; font-size: calc(24px * var(--text-scale, 1)); line-height: 1; letter-spacing: -.01em; }
/* Back office: tables of work in progress, small word buttons */
.iah-table { width: 100%; border-collapse: collapse; font-size: calc(17px * var(--text-scale, 1)); line-height: 1.45; }
.iah-table th { padding: 0 var(--space-4) var(--space-2) 0; border-bottom: var(--border-rule) solid var(--ink); text-align: left; vertical-align: bottom; font-weight: 700; }
.iah-table td { padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: var(--border-hair) solid var(--rule); vertical-align: top; }
.iah-table th:last-child, .iah-table td:last-child { padding-right: 0; }
.iah-table a { color: var(--ink); font-weight: 700; text-decoration: none; }
.iah-table a:hover { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.iah-btn-s { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); font-size: calc(16px * var(--text-scale, 1)); font-weight: 400; }
.iah-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.iah-note { margin: var(--space-2) 0 0; font-size: calc(18px * var(--text-scale, 1)); line-height: 1.5; }
.iah-help-quiet { background: var(--panel); color: var(--ink); border-bottom: var(--border-hair) solid var(--rule); }
.iah-help-quiet a { color: var(--ink); }
/* Form states: sending, sent, and what went wrong */
.iah-btn[aria-busy="true"] { border-color: var(--line-control); background: var(--panel); color: var(--ink); cursor: progress; }
.iah-status { margin: 0; padding: var(--space-3) var(--space-4); border: var(--border-rule) solid var(--ink); font-size: calc(18px * var(--text-scale, 1)); line-height: 1.45; }
.iah-errors { padding: var(--space-4); border: var(--border-rule) solid var(--alert); font-size: calc(18px * var(--text-scale, 1)); line-height: 1.45; max-width: var(--measure); }
.iah-errors h2 { margin: 0 0 var(--space-2); font-size: calc(18px * var(--text-scale, 1)); line-height: 1.3; color: var(--alert); }
.iah-errors ul { margin: 0; padding-left: 1.2em; }
.iah-app .iah-errors { max-width: none; }
.iah-app .iah-form, .iah-app .iah-field { max-width: none; }
.iah-app .iah-input { min-height: 52px; }
.iah-app textarea.iah-input { min-height: 9em; }
.iah-app .iah-filters, .iah-app .iah-people { grid-template-columns: minmax(0, 1fr); }
.iah-app .iah-people { gap: 0; }
.iah-app .iah-steps > li::before { font-size: calc(24px * var(--text-scale, 1)); }
.iah-app .iah-headline { font-size: calc(30px * var(--display-scale, 1)); }
.iah-app .iah-key { flex: 1 1 auto; justify-content: center; padding: 0 var(--space-4); }
@media (max-width: 720px) {
  .iah-filters, .iah-people { grid-template-columns: minmax(0, 1fr); }
}

/* Reading settings: large text. Sizes up to 24px grow by a fifth, display sizes by less. */
[data-text="large"] { --text-scale: 1.2; --display-scale: 1.08; }
[data-text="large"] .iah-appbar, [data-text="large"] .iah-tabbar, [data-text="large"] .iah-actionbar, [data-text="large"] .iah-masthead, [data-text="large"] .iah-help { --text-scale: 1.1; --display-scale: 1.04; }
/* Search entry: a link drawn as a field. */
.iah-searchlink { display: flex; align-items: center; box-sizing: border-box; min-height: 52px; padding: 0 var(--space-4); border: var(--border-rule) solid var(--ink); background: var(--paper); color: var(--ink-muted); font-size: calc(18px * var(--text-scale, 1)); text-decoration: none; }
.iah-searchlink:hover { color: var(--ink); }
.iah-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); align-items: end; max-width: 760px; }
/* A word in a frame: marks opinion, withdrawal and other states that are not attestation. */
.iah-mark { display: inline-block; padding: 2px var(--space-2); border: var(--border-rule) solid var(--ink); font-size: calc(17px * var(--text-scale, 1)); font-weight: 700; line-height: 1.3; }
button.iah-key { background: var(--paper); color: var(--ink); font-family: inherit; cursor: pointer; }
button.iah-key[aria-pressed="true"] { background: var(--ink); color: var(--paper); font-weight: 700; }
@media (min-width: 901px) { .iah-table .iah-data { white-space: nowrap; } }
@media (max-width: 900px) {
  [data-text="large"] .iah-two, [data-text="large"] .iah-people, [data-text="large"] .iah-filters { grid-template-columns: minmax(0, 1fr) !important; }
  .iah-table td, .iah-table th { overflow-wrap: anywhere; }
}
/* Print: one column, black on white, no navigation. The sheet class shows the same result on screen. */
.iah-sheet { --text-scale: .78; --display-scale: .62; box-sizing: border-box; width: 794px; min-height: 1123px; padding: 56px 64px; background: #fff; color: #000; font-family: var(--font-voice); font-size: calc(20px * var(--text-scale, 1)); line-height: 1.5; }
.iah-sheet-head, .iah-sheet-foot { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); font-size: calc(16px * var(--text-scale, 1)); }
.iah-sheet-head { padding-bottom: var(--space-3); margin-bottom: var(--space-8); border-bottom: var(--border-rule) solid #000; }
.iah-sheet-foot { padding-top: var(--space-3); margin-top: var(--space-8); border-top: var(--border-hair) solid #000; }
.iah-sheet a { color: #000; }
/* Skip link: the first keyboard stop on a page, shown only while it has focus. */
.iah-skip { position: absolute; left: var(--space-4); top: var(--space-2); z-index: 5; padding: var(--space-3) var(--space-4); border: var(--border-rule) solid var(--ink); background: var(--paper); color: var(--ink); font-size: calc(18px * var(--text-scale, 1)); line-height: 1.2; font-weight: 700; text-decoration: none; transform: translateY(-300%); }
.iah-skip:focus { transform: none; }
/* App bar: on a narrow phone the back label gives way before it can run into its neighbours. */
.iah-appbar-back { overflow: hidden; }
.iah-appbar-back::before { flex: none; }
.iah-appbar-back span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.iah-appbar-end { flex: none; }
.iah-appbar { container-type: inline-size; }
@container (max-width: 300px) {
  /* three things in the bar on a 320 px phone (the bar's content box is the screen less its padding): the arrow stays, its label is kept for screen readers only */
  .iah-appbar:has(.iah-appbar-action):has(.iah-appbar-help) .iah-appbar-back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.iah-tap-title { overflow-wrap: anywhere; }
/* Language link on the phone: the first row of the home screen, the last row of every other screen */
.iah-app-lang { margin: 0; padding: var(--space-1) var(--space-4); font-size: calc(17px * var(--text-scale, 1)); line-height: 1.3; }
.iah-app-lang:first-child { border-bottom: var(--border-hair) solid var(--line-control); }
.iah-app-lang:last-child { border-top: var(--border-rule) solid var(--ink); padding-top: var(--space-3); padding-bottom: var(--space-6); }
/* A list of cases in a narrow column (a tablet, a side column) stacks its rows, so the title never loses its column */
.iah-cases { container-type: inline-size; }
@container (max-width: 26em) {
  .iah-case { grid-template-columns: minmax(0, 1fr); }
  .iah-case .iah-stamp { justify-self: start; }
}
.iah-case-title { overflow-wrap: anywhere; }
/* A small profile card in the side column of a two-column page stacks on tablets: portrait above the words */
@media (max-width: 1100px) {
  .iah-two .iah-profile-s { grid-template-columns: minmax(0, 1fr); }
  .iah-two .iah-profile-s .iah-portrait { max-width: 9em; }
}
/* The black bar and the mark after it stay on one line */
.iah-keep { white-space: nowrap; }
/* A long label in the record's narrow column breaks instead of running into the value (text spacing, Ukrainian) */
.iah-record dt { overflow-wrap: anywhere; }
.iah-form > * { min-width: 0; }
/* A field for a line or two: a title, a standfirst, a note for the record. */
textarea.iah-input-short, .iah-app textarea.iah-input-short { min-height: 0; }
.iah-input::placeholder { color: var(--ink-muted); opacity: 1; }
/* Off: a control that cannot be used yet says so by going quiet, never by vanishing. */
.iah-btn:disabled, .iah-btn[aria-disabled="true"] { border-color: var(--line-control); background: var(--panel); color: var(--ink-muted); cursor: not-allowed; }
.iah-input:disabled, .iah-input[readonly] { border-color: var(--line-control); background: var(--panel); color: var(--ink-muted); }
/* The error list on a phone: each line is a full-width target. */
.iah-app .iah-errors ul { list-style: none; padding-left: 0; }
.iah-app .iah-errors li a { display: flex; align-items: center; min-height: 44px; }
/* Forced colours (Windows high contrast): the bar over a name and the filled buttons must not dissolve. */
@media (forced-colors: active) {
  .iah-redact { forced-color-adjust: none; background: CanvasText; }
  .iah-btn, .iah-key, .iah-appbar-help-fill { border: var(--border-rule) solid ButtonText; }
}
@media print {
  .iah-page, .iah-app { --text-scale: .78; --display-scale: .62; background: #fff !important; color: #000 !important; }
  .iah-app { width: auto !important; height: auto !important; display: block !important; }
  .iah-app-scroll { overflow: visible !important; }
  .iah-skip, .iah-help, .iah-nav, .iah-tabbar, .iah-actionbar, .iah-appbar-end, .iah-appbar-back, .iah-margin-index, .iah-searchlink, .iah-footer ul, .iah-footer h2, a.iah-btn, button.iah-btn { display: none !important; }
  .iah-page-body { max-width: none !important; padding: 0 !important; }
  .iah-with-margin, .iah-two { display: block !important; }
  .iah-steps li, .iah-explainer, .iah-record, .iah-finding { break-inside: avoid; }
  a { color: #000 !important; }
}
