/* Mobile first. No framework, no build step. */
:root {
  --ink: #1f2328;
  --muted: #57606a;      /* 6.4:1 on white, 6:1 on --bg */
  --line: #d8dee4;
  --bg: #f6f7f9;
  --card: #ffffff;
  --accent: #0b5d8c;     /* 7:1 with white text */
  --accent-soft: #e8f1f7;
  --good: #1a6b34;       /* "below the landlord's figure": 6.6:1 on white */
  --good-bg: #e7f3eb;
  --warn: #8a5a00;
  --warn-bg: #fdf3dc;
  --flag-bg: #eef0f3;
  --radius: 8px;
  --measure: 70ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #f2b400; outline-offset: 2px; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; margin: 1.6rem 0 0.6rem; }
h2 { font-size: 1.3rem; margin: 2.4rem 0 0.6rem; }
h3 { font-size: 1.08rem; margin: 1.6rem 0 0.4rem; }
p, li, blockquote { max-width: var(--measure); }
main { max-width: 80rem; margin: 0 auto; padding: 0 16px 3rem; }
section { margin-bottom: 1.5rem; }

/* Header and navigation. On phones the menu folds behind a button (a checkbox, no script). */
header.site { background: var(--card); border-bottom: 1px solid var(--line); }
header.site .bar {
  max-width: 80rem; margin: 0 auto; padding: 0.7rem 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1.5rem;
}
header.site .brand { font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
header.site .brand::before {
  content: "R"; display: inline-block; width: 1.6rem; height: 1.6rem; margin-right: 0.5rem; border-radius: 5px;
  background: var(--accent); color: #fff; text-align: center; line-height: 1.6rem; font-size: 1rem;
}
#menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.menu-button {
  display: inline-block; padding: 0.3rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 0.95rem; cursor: pointer; user-select: none;
}
#menu-toggle:focus-visible + label.menu-button { outline: 3px solid #f2b400; outline-offset: 2px; }
header.site nav { display: none; width: 100%; }
#menu-toggle:checked ~ nav { display: block; }
header.site nav ul { list-style: none; margin: 0.3rem 0 0.2rem; padding: 0; }
header.site nav li { border-top: 1px solid var(--line); }
header.site nav a { display: block; padding: 0.6rem 0.1rem; text-decoration: none; font-weight: 500; }
header.site nav a[aria-current] { color: var(--ink); font-weight: 700; }

footer.site { background: var(--card); border-top: 1px solid var(--line); margin-top: 3rem; color: var(--muted);
  font-size: 0.92rem; }
footer.site .inner { max-width: 80rem; margin: 0 auto; padding: 1.6rem 16px 2.4rem; }
footer.site h2 { font-size: 1rem; color: var(--ink); margin: 0 0 0.4rem; }
footer.site .cols { display: grid; gap: 1.4rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 0.25rem 0; }
footer.site .help { color: var(--ink); background: var(--accent-soft); padding: 0.8rem 1rem; border-radius: var(--radius);
  max-width: none; margin-top: 0; }
footer.site .legal { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1rem; }

/* Small print, warnings, tags. */
.small, .n { color: var(--muted); font-size: 0.9rem; }
.n { white-space: nowrap; }
.warn { background: var(--warn-bg); border-left: 4px solid #d29a1e; padding: 0.7rem 0.9rem; border-radius: 4px; }
.notpred { font-weight: 600; }
.flag {
  display: inline-block; background: var(--flag-bg); color: var(--muted); font-size: 0.78rem; line-height: 1.5;
  padding: 0 0.45rem; border-radius: 0.6rem; margin: 0.2rem 0.25rem 0 0; max-width: 100%;
}

/* Home and section intros. */
.hero { padding: 0.5rem 0 0.5rem; }
.hero > p:first-of-type { font-size: 1.1rem; }
.hero p.hero-pack { margin-bottom: 0.3rem; }
.hero p.hero-pack-note { color: var(--muted); margin-top: 0; }
.headline { font-size: 1.1rem; }
.cards { display: grid; gap: 1rem; margin: 1.4rem 0 2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.2rem; }
.card h2 { margin: 0 0 0.3rem; font-size: 1.25rem; }
.card p { margin: 0 0 0.6rem; color: var(--muted); }
.card form.search { margin: 0.4rem 0 0.3rem; }
.card .more { font-size: 0.92rem; margin: 0.5rem 0 0; }
.figures-strip { display: grid; gap: 1rem; }

/* Forms. */
form.search { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 1rem 0; max-width: 34rem; }
form.search label { width: 100%; font-weight: 600; }
form.search input {
  flex: 1 1 10rem; min-width: 0; font: inherit; font-size: 1.1rem; padding: 0.55rem 0.75rem;
  border: 2px solid var(--ink); border-radius: 6px; background: #fff;
}
form.search input[name="postcode"] { text-transform: uppercase; }
form.search input::placeholder { text-transform: none; color: #6e7781; }
button {
  font: inherit; font-weight: 600; padding: 0.6rem 1.15rem; border: 0; border-radius: 6px; background: var(--accent);
  color: #fff; cursor: pointer;
}
button:hover { background: #084a70; }
form.filters { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; margin: 1rem 0; }
form.filters select { font: inherit; padding: 0.35rem; border-radius: 6px; border: 1px solid #8c959f; background: #fff; }

/* Stats blocks: the key number large, its n and a line saying what it is, then the table. */
.stats { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem 1.1rem 1rem; }
.stats h2 { margin-top: 0.7rem; }
.keyfigs { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1rem 0; }
.keyfig { flex: 1 1 14rem; border-radius: var(--radius); background: var(--accent-soft); padding: 0.8rem 1rem; }
.keyfig.good { background: var(--good-bg); }
.keyfig .big { display: block; font-size: 2.3rem; font-weight: 700; line-height: 1.1; color: var(--accent); }
.keyfig.good .big { color: var(--good); }
.keyfig.late { background: var(--warn-bg); }
.keyfig.late .big { color: var(--warn); }
.callout.late { background: var(--warn-bg); border-left-color: #d29a1e; }
.keyfig .what { display: block; margin-top: 0.2rem; }
.keyfig .n { display: block; margin-top: 0.15rem; white-space: normal; }

/* Tables. Wide figure tables scroll sideways with the first column held still. */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
table.figures th[scope], table.figures tbody th { font-weight: normal; }
table.figures td { white-space: nowrap; }
table.figures td .n { display: block; }
table.figures tbody th { min-width: 9rem; }
table.figures tbody th, table.figures thead th:first-child { position: sticky; left: 0; background: var(--card); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.na { color: var(--muted); font-style: italic; }
td.date { white-space: nowrap; }
table.decisions { font-size: 0.95rem; margin-top: 1rem; background: var(--card); }
table.decisions thead th { position: sticky; top: 0; background: var(--bg); }
table.decisions th button { background: none; color: var(--accent); padding: 0; text-decoration: underline; font-weight: 600; }
table.facts { background: var(--card); }
table.facts th { font-weight: normal; color: var(--muted); }
/* Two-column label/value tables: the label takes 45%. Wider tables set their own widths. */
table.facts th:first-child:nth-last-child(2) { width: 45%; }
table.facts.cols3 th { font-weight: 600; color: var(--ink); }
table.facts.cols3 th:nth-child(1), table.facts.cols3 td:nth-child(1) { width: 30%; }
table.facts.cols3 th:nth-child(2), table.facts.cols3 td:nth-child(2) { width: 25%; }
table.facts.cols3 th:nth-child(3), table.facts.cols3 td:nth-child(3) { width: 45%; }
/* "Read the reasoning" under each address in the results tables. */
a.reasoning { display: block; width: fit-content; font-size: 0.88rem; font-weight: 600; margin: 0.2rem 0 0.1rem; }
a.reasoning::after { content: " \2192"; }

/* On phones each decision becomes a card: address first, then labelled figures. */
@media (max-width: 47.99rem) {
  table.figures td .n { white-space: normal; }  /* "n=796, typically 3 applicants" wraps instead of being clipped */
  .scroll:has(> table.decisions) { overflow: visible; }
  table.decisions, table.decisions tbody, table.decisions tr, table.decisions td { display: block; width: 100%; }
  table.decisions thead { display: none; }
  table.decisions { background: none; }
  table.decisions tr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    margin: 0 0 0.8rem; padding: 0.6rem 0.9rem; }
  table.decisions td { border: 0; padding: 0.15rem 0; text-align: left; display: flex; justify-content: space-between;
    gap: 1rem; }
  table.decisions td:first-child { display: block; font-size: 1rem; padding-bottom: 0.4rem; }
  table.decisions td[data-label]::before { content: attr(data-label); color: var(--muted); }
  table.decisions td:empty, table.decisions td.blank { display: none; }
  table.decisions td.na { justify-content: flex-start; }
  /* Figure tables marked "stack": one card per row, each value with its column's name, so
     nothing sits off-screen at 375px (the "typical amount" columns used to). */
  .scroll:has(> table.stack) { overflow: visible; }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack { background: none; }
  table.stack tr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    margin: 0 0 0.7rem; padding: 0.55rem 0.9rem; }
  table.stack tbody th { position: static; min-width: 0; border: 0; padding: 0 0 0.3rem; font-weight: 600; background: none; }
  table.stack td { border: 0; padding: 0.25rem 0; white-space: normal; text-align: right; overflow: hidden; }
  table.stack td[data-label]::before { content: attr(data-label); color: var(--muted); float: left; text-align: left;
    max-width: 55%; margin-right: 1rem; }
  table.stack td .n { display: block; }
}

.map { height: 320px; margin: 1.2rem 0 0.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
blockquote.excerpt {
  margin: 0; padding: 0.9rem 1.1rem; background: var(--card); border-left: 4px solid var(--accent); white-space: pre-line;
  border-radius: 0 var(--radius) var(--radius) 0;
}
ul.areas { columns: 2 12rem; padding-left: 1.2rem; }

a.button { display: inline-block; background: var(--accent); color: #fff; padding: 0.6rem 1.15rem; border-radius: 6px;
  text-decoration: none; font-weight: 600; margin: 0.8rem 0.6rem 0.4rem 0; }
a.button:hover { background: #084a70; }
ul.checks { list-style: none; padding: 0; }
li.check { border-left: 5px solid var(--line); background: var(--card); padding: 0.5rem 1rem; margin: 0.8rem 0;
  border-radius: 0 var(--radius) var(--radius) 0; max-width: none; }
li.check.meets { border-color: #2e7d32; }
li.check.fails { border-color: #c0392b; }
li.check.unknown { border-color: #b08900; }
li.check p { margin: 0.3rem 0; }
.verdict { font-size: 1.02rem; }
.rule { color: var(--muted); font-size: 0.9rem; }
form.notice-form label { display: block; margin: 0.7rem 0; }
form.notice-form input, form.notice-form select { display: block; font: inherit; padding: 0.4rem; margin-top: 0.2rem;
  max-width: 100%; border: 1px solid #8c959f; border-radius: 6px; }
form.notice-form label.tick input { display: inline; margin-right: 0.4rem; }
.results { margin-bottom: 2rem; }

/* Licence checker: the outcome first, as a heading, with the caveats under it. */
.outcome { border-radius: var(--radius); padding: 0.9rem 1.1rem; margin: 0.8rem 0 1rem; border-left: 6px solid var(--line);
  background: var(--bg); }
.outcome h4 { margin: 0 0 0.3rem; font-size: 1.25rem; }
.outcome p { margin: 0.3rem 0; }
.outcome.found { border-color: var(--good); background: var(--good-bg); }
.outcome.expired, .outcome.unchecked { border-color: #d29a1e; background: var(--warn-bg); }
.outcome.notfound { border-color: #8c959f; }

@media (min-width: 48rem) {
  h1 { font-size: 2.2rem; }
  .map { height: 420px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .figures-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  footer.site .cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
  label.menu-button { display: none; }
  header.site nav { display: block; width: auto; }
  header.site nav ul { display: flex; flex-wrap: wrap; gap: 0 1.3rem; margin: 0; }
  header.site nav li { border: 0; }
  header.site nav a { padding: 0.2rem 0; }
}

/* Shared pieces for the tools: titled boxes, status badges, tags, chips, action cards. */
.panel, fieldset.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem 1.1rem; margin: 0 0 1rem; min-width: 0; }
/* The legend sits inside the box as its heading, not on the border. */
fieldset.panel legend { font-weight: 700; font-size: 1.08rem; float: left; width: 100%; padding: 0; margin: 0 0 0.6rem; }
fieldset.panel legend + * { clear: both; }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; line-height: 1.4; padding: 0.1rem 0.55rem;
  border-radius: 99px; white-space: nowrap; vertical-align: 0.1em; }
.badge.meets { background: var(--good-bg); color: var(--good); }
.badge.fails { background: #fbe9e7; color: #a12a1a; }
.badge.unknown { background: var(--warn-bg); color: var(--warn); }
.badge.none { background: var(--flag-bg); color: var(--muted); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 0 0.5rem; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.muted { background: var(--flag-bg); color: var(--muted); }
details { margin: 0.5rem 0; }
details > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
details[open] > summary { margin-bottom: 0.3rem; }
details.notes { background: var(--bg); border-radius: var(--radius); padding: 0.5rem 0.9rem; }
ul.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
ul.chips li { max-width: none; }
ul.chips a { display: inline-block; padding: 0.35rem 0.85rem; border: 1px solid var(--line); border-radius: 99px;
  background: var(--card); text-decoration: none; font-size: 0.95rem; }
ul.chips a:hover { border-color: var(--accent); }
.actions { display: grid; gap: 0.8rem; margin: 0.8rem 0; }
.action { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.8rem 1rem; text-decoration: none; color: var(--ink); }
.action:hover, .action:focus-within { border-color: var(--accent); }
.action strong { display: block; color: var(--accent); }
.action span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 0.15rem; }
/* A card holding two links (the reminder card): its title is the main link. */
div.action > a { text-decoration: none; }
/* Links that carry what someone typed are small POST forms (templates/_post.html): they look like the link or card
   they replace. */
form.inline-post { display: inline; margin: 0; }
.actions form.inline-post { display: block; }
button.linkbutton { background: none; color: var(--accent); padding: 0; border: 0; font-weight: inherit; line-height: inherit;
  text-decoration: underline; text-underline-offset: 0.15em; text-align: left; }
button.linkbutton:hover { background: none; color: #084a70; }
button.action { width: 100%; text-align: left; font-weight: inherit; line-height: inherit; }
button.action:hover { background: var(--card); }
div.para { margin: 1rem 0; max-width: var(--measure); }
.caveats { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 1rem;
  margin: 1rem 0; }
.caveats p { margin: 0.4rem 0; }

/* Notice checker: summary line, key date, the form in three titled boxes. */
.summary-counts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 1rem; }
li.check .verdict { margin: 0.2rem 0 0.3rem; }
form.notice-form input[type=date], form.notice-form input:not([type]), form.notice-form select {
  font-size: 1.02rem; padding: 0.45rem 0.6rem; border: 2px solid var(--ink); border-radius: 6px; background: #fff;
  width: 100%; max-width: 22rem; }
form.notice-form label.tick input { width: auto; }

/* Licence checker. */
form.search.fields { max-width: 48rem; align-items: flex-end; }
form.search .field { display: flex; flex-direction: column; flex: 1 1 14rem; gap: 0.3rem; min-width: 0; }
form.search .field label { width: auto; }
form.search .field input { flex: none; width: 100%; }
.licence-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 1rem;
  margin: 0.6rem 0; }
.licence-card h4 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.licence-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.2rem 1rem; margin: 0.5rem 0 0; }
.licence-card dt { color: var(--muted); }
.licence-card dd { margin: 0; }
.scheme-cards { display: grid; gap: 0.7rem; margin: 0.6rem 0; }
img.chart { width: 100%; max-width: 36rem; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
ul.findings li { margin-bottom: 0.6rem; }
dl.faq dt { font-weight: 600; margin-top: 0.9rem; }
dl.faq dd { margin: 0.2rem 0 0; }
.scheme { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.95rem; }
.scheme h4 { margin: 0 0 0.25rem; font-size: 1rem; display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; align-items: center; }
.scheme p { margin: 0.25rem 0; }
ul.coverage { list-style: none; padding: 0; display: grid; gap: 0.3rem 1.2rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
ul.coverage li { font-size: 0.92rem; }

@media (min-width: 40rem) {
  .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Wide screens: two columns where the page has two things side by side. */
@media (min-width: 64rem) {
  .two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2.5rem; align-items: start; }
  .two-col > * { min-width: 0; }
  .tool-layout { display: grid; grid-template-columns: 24rem minmax(0, 1fr); gap: 0 2.5rem; align-items: start; }
  .tool-layout > form { grid-column: 1; grid-row: 1; }
  .tool-layout > .results { grid-column: 2; grid-row: 1; }
  .form-only > form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; align-items: start; }
  .form-only > form > button { grid-column: 1; justify-self: start; }
  .scheme-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
  .keyfigs.four .keyfig { flex-basis: 10rem; }
}

/* Rent challenge pack: the link on the home and results pages, and the list of cases. */
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 0.8rem 1rem;
  border-radius: 4px; margin: 1rem 0; }
.callout p { margin: 0.2rem 0; }
.callout a.button { margin-top: 0.4rem; }
/* Letter templates: the letter as plain text to copy. */
textarea.letter { display: block; width: 100%; max-width: 70ch; font: 0.95rem/1.5 ui-monospace, Menlo, Consolas, monospace;
  padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  white-space: pre-wrap; resize: vertical; }
button.copy { margin-left: 0.4rem; }
ol.cases { padding-left: 1.4rem; }
ol.cases li { margin-bottom: 1.1rem; }
ol.cases li p { margin: 0.2rem 0; }

/* MR1 helper: the summary as a list, and only the summary when printed. */
dl.mr1 { margin: 0 0 1rem; }
dl.mr1 dt { font-weight: 600; margin-top: 0.6rem; }
dl.mr1 dd { margin: 0.15rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.notice-form textarea { width: 100%; box-sizing: border-box; font: inherit; }
@media print {
  header.site, footer.site, nav, .no-print { display: none !important; }
  body { background: #fff; }
}

.journalists h2 { margin-top: 0; }
/* The home page's example (app.example) and the answer at the top of results pages: the figure large. */
.example-preview p { margin: 0.2rem 0; }
.example-figure strong, .answer strong { font-size: 1.6rem; color: var(--accent); }
.answer { margin: 0.4rem 0 0.2rem; }
@media (min-width: 64rem) {
  .figures-strip.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* A figures table with one data column (_stats.html): label left, value and n right, at every width. */
table.single { width: 100%; }
table.single caption { text-align: left; caption-side: top; padding: 0 0 0.3rem; color: var(--muted); }
table.single th { text-align: left; font-weight: 400; white-space: normal; }
table.single td.num { text-align: right; white-space: nowrap; }
table.single td .n { display: block; }
/* The ONS market rents table (_ons.html): three narrow columns that fit 375px. */
table.compact { width: 100%; font-size: 0.92rem; }
table.compact caption { text-align: left; caption-side: top; padding: 0 0 0.3rem; color: var(--muted); }
table.compact th, table.compact td { padding: 0.3rem 0.4rem; }
table.compact tbody th { min-width: 0; position: static; white-space: normal; }
table.compact td.num, table.compact th.num { text-align: right; white-space: nowrap; }
/* The last day to apply, at the top of "Applying to the tribunal" in the challenge pack. */
.deadline-line { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 0.6rem 0.9rem;
  border-radius: var(--radius); }
/* The guides index (/guides). */
.guide-list { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
.guide-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 1rem; }
.guide-list a { text-decoration: none; display: block; padding: 0.15rem 0; }
.guide-list .small { display: block; color: var(--muted); margin-top: 0.2rem; }
/* Phones: every tap target at least 44px tall (polish round, 24 Oct 2026). */
@media (max-width: 47.99rem) {
  button, .button, select, input:not([type=checkbox]):not([type=radio]), label.menu-button { min-height: 44px; }
  label.menu-button { display: inline-flex; align-items: center; }
  details > summary { padding: 0.65rem 0; }
  footer.site li a, main li > a:only-child, main td a { display: inline-block; padding: 0.7rem 0; }
  footer.site li, main li:has(> a:only-child) { margin: 0; }
  main ul.chips a { padding: 0.6rem 0.9rem; }  /* as specific as the rule above, which would take their side padding */
  button.linkbutton { min-height: 0; padding: 0.35rem 0; }  /* a link in a sentence, not a button */
  /* Links in sentences, small print and row headings: at least 24px tall to tap (fresh-eyes review, 27 Oct 2026).
     Vertical padding on an inline link widens what can be tapped without moving the text. */
  main p a, main th a, main li a:not(:only-child), main summary a { padding-block: 0.2rem; }
}
ul.chips a[aria-current] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
/* Home page (front-page round, 25 Oct 2026): the rent search is the one main action, the pack second, the licence
   and repayment cards below it as secondary. */
.card-label { margin: 0 0 0.15rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.card.main-search { border: 2px solid var(--accent); margin: 1rem 0 0.9rem; max-width: 40rem; }
.card.main-search form.search { margin-top: 0; }
.card.example-preview { max-width: 40rem; margin: 0 0 0.6rem; }
.hero-pack-note { margin: 0 0 1.4rem; }
a.button.secondary { background: none; color: var(--accent); border: 2px solid var(--accent); }
a.button.secondary:hover { background: var(--accent-soft); }
.proof { font-size: 0.95rem; margin: 0.6rem 0 0; }
.cards.secondary .card { background: none; }
.cards.secondary .card h2 { font-size: 1.1rem; }
@media (min-width: 48rem) {
  .cards.secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
