/* Public pages beyond the Phase 2 design proof: page titles, topic headers,
   forms, tables, history, empty and error states. Tokens only; no new colours. */

.page-title { font-size: var(--step-4); line-height: 1.1; margin-block: var(--s-8) var(--s-3); text-wrap: balance; }
.narrow { max-width: calc(46rem + 2 * var(--gutter)); }
.prose-page h2 { font-size: var(--step-2); margin-top: var(--s-10); }
.prose-page h3 { font-family: var(--sans); font-size: var(--step-0); margin-top: var(--s-6); }
.prose-page p, .prose-page li { max-width: var(--measure); }
.plain-list { list-style: none; padding: 0; }
.plain-list > li + li { margin-top: var(--s-4); }

/* Topic page header: name + description beside its small illustration. */
.topic-head { display: grid; gap: var(--s-6); align-items: end; padding-block: var(--s-6) var(--s-8); border-bottom: var(--hair) solid var(--rule); margin-bottom: var(--s-8); }
.topic-head .topic { font-size: inherit; }
.topic-illus { width: 100%; max-width: 320px; height: auto; color: var(--ink-muted); }
@media (min-width: 48em) { .topic-head { grid-template-columns: 1fr 320px; } }

.issue-list { list-style: none; padding: 0; margin: 0 0 var(--s-8); }
.issue-list li { padding-block: var(--s-2); border-top: var(--hair) solid var(--rule); font-family: var(--serif); }
.issue-list .meta { display: block; }

/* Actions inside "What you need to do" */
.action__item + .action__item { margin-top: var(--s-6); padding-top: var(--s-6); border-top: var(--hair) solid var(--rule); }
.action__title { font-size: var(--step-1); margin-block: var(--s-2); }

/* Update history: word diff */
.history { list-style: none; padding: 0; }
.history > li { padding-block: var(--s-3); border-top: var(--hair) solid var(--rule); }
.diff { font-family: var(--serif); line-height: 1.6; }
.diff ins { background: var(--river-wash); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.diff del { color: var(--ink-muted); text-decoration: line-through; }
.diff-legend { font-size: var(--step--1); color: var(--ink-muted); margin-block: var(--s-1) var(--s-3); }

/* Breadcrumb: the visible twin of the BreadcrumbList data on issue and topic pages */
.crumbs { font-family: var(--sans); font-size: var(--step--1); color: var(--ink-muted); margin-block: var(--s-4) var(--s-2); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s-2); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); }
.crumbs li { display: flex; align-items: center; min-height: 44px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs [aria-current] { overflow-wrap: anywhere; }
#main:focus { outline: none; }
details > summary { cursor: pointer; font-family: var(--sans); font-size: var(--step--1); min-height: 44px; display: flex; align-items: center; }
.notice { border-top: var(--hair) solid var(--rule-strong); padding-top: var(--s-2); }
.report-link { margin-top: var(--s-10); }

/* Deadlines table */
.deadlines { width: 100%; border-collapse: collapse; margin-top: var(--s-6); }
.deadlines th, .deadlines td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-3) var(--s-3) 0; border-top: var(--hair) solid var(--rule); }
.deadlines th { font-family: var(--sans); font-size: var(--step--2); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.deadlines td:first-child { white-space: nowrap; font-family: var(--sans); }
@media (max-width: 35.99em) {
  .deadlines thead { display: none; }
  .deadlines tr { display: block; border-top: var(--hair) solid var(--rule); padding-block: var(--s-3); }
  .deadlines td { display: block; border: 0; padding: 0 0 var(--s-1); }
}

/* Forms (search, report) */
.search-form, .report-form { display: grid; gap: var(--s-2); max-width: 36rem; margin-block: var(--s-6); }
.search-form label, .report-form label { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; margin-top: var(--s-2); }
.search-form input, .search-form select, .report-form input, .report-form textarea {
  min-height: 44px; padding: var(--s-2) var(--s-3); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--radius);
}
.search-form button, .report-form button {
  justify-self: start; min-height: 44px; margin-top: var(--s-3); padding: var(--s-2) var(--s-6); font-family: var(--sans); font-weight: 600;
  background: var(--ink); color: var(--paper); border: 0; border-radius: var(--radius); cursor: pointer;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
.form-error { color: var(--brick); font-family: var(--sans); font-weight: 600; }
.form-error__label { text-transform: uppercase; letter-spacing: .06em; font-size: var(--step--1); }
[aria-invalid="true"] { border-color: var(--brick) !important; border-width: 2px !important; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.pager { display: flex; gap: var(--s-6); align-items: center; font-family: var(--sans); font-size: var(--step--1); margin-top: var(--s-8); }
.pager a { min-height: 44px; display: inline-flex; align-items: center; }

/* Status help (How this works) */
.status-help > div { display: grid; gap: var(--s-1) var(--s-4); padding-block: var(--s-3); border-top: var(--hair) solid var(--rule); }
.status-help dd { margin: 0; }
@media (min-width: 36em) { .status-help > div { grid-template-columns: 14rem 1fr; } }

.source-list { padding-left: 1.1em; }
.source-list li { margin-block: var(--s-1); }

/* Empty and error states share the quiet-street illustration. */
.empty-state, .error-page { color: var(--ink-muted); }
.empty-state svg, .error-illus { width: 100%; max-width: 320px; height: auto; margin-block: var(--s-6) var(--s-4); }
.error-page { padding-block: var(--s-10) var(--s-16); }
.error-page .page-title, .error-page .dek { color: var(--ink); }

.site-foot__note { max-width: var(--measure); }
.site-foot ul { list-style: none; padding: 0; gap: var(--s-2) var(--s-5); }
.site-foot nav a { min-height: 44px; display: inline-flex; align-items: center; }

/* Spacing between the issue's main grid and the full-width parts below it. */
.issue > .grid + .part, .issue > .part + .part { margin-top: var(--s-10); }
.action > .prose + .action__item { margin-top: var(--s-5); }
/* Stand-alone links: at least 24 px tall (WCAG 2.5.8); one-line ones 44 px without moving anything. */
.source-list a, .sources__title a { display: inline-block; padding-block: 5px; }
p.sans > a:only-child { display: inline-block; padding-block: 11px; margin-block: -11px; }
.deadlines td > a { display: inline-block; padding-block: 5px; }
