/*
Theme Name: Recall Corner
Description: Product recalls, explained plainly. Official notices set like a consumer test report: a risk grade for every recall, results tables, and identifiers laid out to check against the label.
Version: 0.6.2
Requires PHP: 7.4
Text Domain: recalls
License: GPL-2.0-or-later
*/

/* ---------- Tokens ---------- */
:root {
	--paper: #fff;
	--tint: #f1f4f8;          /* zebra rows, quiet bands */
	--ink: #000;
	--ink-2: #3d4552;         /* secondary text, 9.9:1 on white */
	--rule: #c9d0da;
	--blue: #0b4a9e;          /* Report Blue: masthead, table heads, section rules */
	--blue-dark: #07336e;
	--blue-tint: #e4ecf7;
	--serious: #c8161d;
	--moderate: #c25400;
	--low: #f2b705;

	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--narrow: 72%;            /* font-stretch for headings and labels */

	--wrap: 1240px;
	--gutter: 24px;
	--space: clamp(40px, 6vw, 72px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--blue) var(--tint); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.55;
	font-variant-numeric: lining-nums;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
::selection { background: var(--blue); color: #fff; }
mark { background: var(--blue-tint); color: inherit; padding: 0 .05em; box-shadow: inset 0 -2px 0 var(--blue); }
h1, h2, h3 { margin: 0; font-stretch: var(--narrow); font-weight: 800; line-height: 1.05; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0 0 1em; }
time { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; font-weight: 700; }
.skip-link:focus { top: 8px; }

/* ---------- Masthead ---------- */
.masthead { background: var(--blue); color: #fff; }
.masthead :focus-visible { outline-color: #fff; }
.masthead__bar { display: flex; align-items: center; gap: 20px; min-height: 76px; }
/* The cut corner: painted in the background colour so the focus outline stays intact. */
.wordmark { position: relative; --cut: var(--blue); }
.wordmark::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: .42em;
	height: .42em;
	background: linear-gradient(to bottom left, var(--cut) 50%, transparent 50.5%);
}
.wordmark {
	display: inline-block;
	white-space: nowrap;
	background: #fff;
	color: var(--blue);
	font-stretch: 66%;
	font-weight: 900;
	font-size: 2rem;
	line-height: 1;
	letter-spacing: -.01em;
	padding: 6px 14px 5px 10px;
	text-decoration: none;
	margin: 0;
}
a.wordmark:hover { color: var(--blue-dark); }
.masthead__line { margin: 0; font-size: .95rem; color: #dce6f5; }
.nav-toggle { display: none; }

.site-nav { background: var(--blue-dark); }
.site-nav__inner { display: flex; align-items: center; gap: 24px; min-height: 52px; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav__list a {
	display: block;
	padding: 14px 12px 12px;
	color: #fff;
	text-decoration: none;
	font-stretch: var(--narrow);
	font-weight: 700;
	font-size: 1.05rem;
	border-bottom: 4px solid transparent;
}
.site-nav__list li:first-child a { margin-left: -12px; }
.site-nav__list a:hover { border-bottom-color: rgba(255, 255, 255, .45); color: #fff; }
.site-nav__list a[aria-current] { border-bottom-color: #fff; }
.nav-search { margin-left: auto; display: flex; }
.nav-search input {
	width: 260px; height: 38px; border: 0; padding: 0 12px;
	font: inherit; font-size: .95rem; color: var(--ink); background: #fff; border-radius: 0;
}
.nav-search input::placeholder { color: #5b6472; }
.nav-search button {
	height: 38px; border: 0; padding: 0 14px; background: #fff; color: var(--blue);
	border-left: 1px solid var(--rule); font: inherit; font-stretch: var(--narrow); font-weight: 800; cursor: pointer;
}
.nav-search button:hover { background: var(--blue-tint); }

/* ---------- Search form ---------- */
.search-form__label { display: block; font-stretch: var(--narrow); font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.search-form__row { display: flex; }
.search-form input {
	flex: 1; min-width: 0; height: 62px; padding: 0 18px;
	border: 3px solid var(--ink); border-right: 0; border-radius: 0;
	font: inherit; font-size: 1.2rem; color: var(--ink); background: #fff;
	-webkit-appearance: none; appearance: none;
}
.search-form input::placeholder { color: #5b6472; }
.search-form input:focus { outline: none; border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.search-form button {
	height: 62px; padding: 0 28px; border: 0; border-radius: 0; cursor: pointer;
	background: var(--blue); color: #fff;
	font: inherit; font-stretch: var(--narrow); font-weight: 800; font-size: 1.3rem;
}
.search-form button:hover { background: var(--blue-dark); }

/* ---------- Risk grade ---------- */
.grade {
	display: inline-flex; flex-direction: column; gap: 6px;
	width: 100%; max-width: 112px; padding: 7px 9px 8px;
	background: var(--serious); color: #fff;
	font-stretch: var(--narrow); font-weight: 800; font-size: 1rem; line-height: 1;
}
.grade--moderate { background: var(--moderate); }
.grade--low { background: var(--low); color: var(--ink); }
.grade__own { display: block; max-width: 112px; margin-top: 5px; font-size: .8rem; line-height: 1.25; color: var(--ink-2); }
.grade--none { background: none; color: var(--ink-2); border: 1px solid var(--rule); font-weight: 600; font-size: .85rem; }
.scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.scale i { height: 5px; background: rgba(255, 255, 255, .35); }
.scale i.on { background: #fff; }
.grade--low .scale i { background: rgba(0, 0, 0, .18); }
.grade--low .scale i.on { background: var(--ink); }

/* ---------- Homepage: check ---------- */
.check { padding: clamp(32px, 5vw, 60px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.check__title { font-size: clamp(2.5rem, 5.5vw, 4.25rem); font-weight: 850; line-height: .95; letter-spacing: -.015em; margin-bottom: 10px; }
.check__lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; margin-bottom: 20px; }

/* ---------- Homepage: categories ---------- */
.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
.shelf li { border-bottom: 1px solid var(--rule); }
.shelf a { display: block; height: 100%; padding: 12px 0 14px; color: var(--ink); text-decoration: none; }
.shelf__name { display: block; font-stretch: var(--narrow); font-weight: 800; font-size: 1.35rem; line-height: 1.08; }
.shelf__n { display: block; margin-top: 4px; font-size: .92rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--blue); }
.shelf__note { display: block; margin-top: 4px; font-size: .92rem; line-height: 1.35; color: var(--ink-2); }
.shelf a:hover .shelf__name { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Homepage: countries ---------- */
.your-country { margin: 0 0 16px; }
.button.button--inline { display: inline-block; width: auto; }
.index--columns .index { column-count: 2; column-gap: 48px; }
.index--columns .index li { break-inside: avoid; }
.my-country__list { margin-top: 28px; max-width: 640px; }

.key { margin-top: 36px; border-top: 2px solid var(--blue); padding-top: 12px; }
.key__title { font-size: 1.3rem; margin-bottom: 8px; }
.key__list { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.key__row { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); align-items: start; }
.key__row dd { margin: 0; font-size: .9rem; line-height: 1.4; color: var(--ink-2); }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section + .section { padding-top: 0; }
.section--index { padding: var(--space) 0; }
.section__head {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px;
	border-top: 6px solid var(--blue); padding-top: 12px; margin-bottom: 20px;
}
.section__head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.section__head p { margin: 0; color: var(--ink-2); }
.more { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 0; }
.more a { font-stretch: var(--narrow); font-weight: 800; font-size: 1.1rem; }

/* ---------- Results table ---------- */
.results, .tally { width: 100%; border-collapse: collapse; background: var(--paper); }
.results thead th, .tally thead th {
	background: var(--blue); color: #fff; text-align: left;
	font-stretch: var(--narrow); font-weight: 700; font-size: .95rem; line-height: 1.2;
	padding: 10px 14px;
}
.results tbody tr, .tally tbody tr { border-bottom: 1px solid var(--rule); }
.results tbody tr:nth-child(even), .tally tbody tr:nth-child(even) { background: var(--tint); }
.results td, .results tbody th, .tally td, .tally tbody th { padding: 16px 14px; vertical-align: top; text-align: left; font-weight: 400; }
.results__h-grade, .results__grade { width: 140px; }
.results__h-where, .results__where { width: 160px; }
.results__h-date, .results__date { width: 150px; }
.results .results__day { background: var(--blue-tint); }
.results .results__day th { padding: 9px 14px; font-weight: 400; color: var(--ink-2); }
.results__day strong { font-stretch: var(--narrow); font-weight: 800; font-size: 1.1rem; color: var(--ink); margin-right: 4px; }
.results__link { display: block; color: var(--ink); text-decoration: none; }
.results__product { display: block; font-stretch: var(--narrow); font-weight: 800; font-size: 1.35rem; line-height: 1.08; }
.results__hazard { display: block; margin-top: 4px; font-size: 1rem; line-height: 1.35; color: var(--ink-2); }
.results__link:hover { color: var(--blue); }
.results__link:hover .results__product { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.results__excerpt { margin: 8px 0 0; max-width: 72ch; font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.results__cat { display: inline-block; margin-top: 8px; font-size: .88rem; font-weight: 600; }
.results__where strong, .results__date time { display: block; font-stretch: var(--narrow); font-weight: 800; font-size: 1.05rem; }
.results__where span, .results__date span { display: block; font-size: .88rem; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }

.tally .num { text-align: right; font-variant-numeric: tabular-nums; width: 120px; }
.tally tbody th a { font-stretch: var(--narrow); font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.tally tbody th a:hover { color: var(--blue); text-decoration: underline; }
.tally td { color: var(--ink-2); }

/* ---------- Index lists (contents-page style, with leaders) ---------- */
.indexes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.indexes h2, .profile h2 { font-size: 1.5rem; border-top: 6px solid var(--blue); padding-top: 10px; margin-bottom: 6px; }
.index { list-style: none; margin: 0; padding: 0; }
.index li > a, .index li { display: flex; align-items: baseline; gap: 8px; }
.index li { border-bottom: 1px solid var(--rule); }
.index li > a { flex: 1; padding: 10px 0; color: var(--ink); text-decoration: none; }
.index--static li { padding: 10px 0; }
.index__name { font-weight: 600; }
.index li > a::after, .index--static li::after { content: ""; flex: 1; order: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-4px); }
.index__n { order: 2; font-variant-numeric: tabular-nums; font-weight: 700; }
.index li > a:hover .index__name { color: var(--blue); text-decoration: underline; }

/* ---------- How reports are made: one ruled note ---------- */
.method__note { max-width: 68ch; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 16px 0 6px; }
.method__note h2 { font-size: 1.4rem; margin-bottom: 8px; }
.method__note p { font-size: 1rem; color: var(--ink-2); }
.method__note strong { color: var(--ink); }

/* ---------- Page heads ---------- */
.page-head { padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--rule); }
.page-head__title { font-size: clamp(2.3rem, 5.5vw, 4rem); line-height: .98; margin-bottom: 12px; }
.page-head__sub { margin: 0; color: var(--ink-2); max-width: 70ch; font-size: 1.1rem; }
.page-head--search .search-form { margin-top: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; font-size: .9rem; }
.crumbs a { color: var(--ink-2); }
.crumbs a + a::before { content: "/"; display: inline-block; margin-right: 6px; color: var(--rule); text-decoration: none; }

.list-wrap { padding-top: 28px; padding-bottom: var(--space); }
.profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; padding-top: 28px; }
.profile__summary { grid-column: 1 / -1; margin: 0; font-size: 1.1rem; }

/* ---------- Search ---------- */
.search-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 28px; padding-bottom: var(--space); }
.search-layout > .search-results:only-child { grid-column: 1 / -1; }
.filters__group + .filters__group { margin-top: 28px; }
.filters__label { font-size: 1.15rem; border-top: 4px solid var(--blue); padding-top: 8px; margin-bottom: 4px; }
.filters__list { list-style: none; margin: 0; padding: 0; }
.filters__list a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.filters__list a:hover span { color: var(--blue); text-decoration: underline; }
.filters__list b { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.filters__list a[aria-current] { font-weight: 700; color: var(--blue); }
.filters__list a[aria-current] span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: var(--blue); vertical-align: 1px; }

.empty { padding: 32px 0; max-width: 64ch; }
.empty h2 { font-size: 1.9rem; margin-bottom: 10px; }
.empty__browse { font-size: 1.3rem; margin: 28px 0 4px; }
.empty .search-form { margin-top: 20px; }
.empty--404 { padding: var(--space) var(--gutter); }

.nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.nav-links .page-numbers {
	display: inline-block; min-width: 44px; padding: 10px 14px; text-align: center;
	border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums;
}
.nav-links .page-numbers.current { background: var(--ink); color: #fff; }
.nav-links a.page-numbers:hover { background: var(--blue-tint); }
.nav-links .dots { border-color: transparent; }

/* ---------- Recall report ---------- */
.report__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	grid-template-areas: "head verdict" "prose verdict";
	column-gap: clamp(32px, 5vw, 72px);
	padding-top: clamp(24px, 3vw, 40px);
	padding-bottom: var(--space);
}
.report__head { grid-area: head; padding-bottom: 28px; }
.report__title { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1; letter-spacing: -.01em; margin-bottom: 18px; }
.report__dek { font-size: 1.25rem; line-height: 1.45; color: var(--ink); max-width: 60ch; margin-bottom: 18px; }
.report__byline { margin: 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: .92rem; color: var(--ink-2); }

.verdict { grid-area: verdict; align-self: start; position: sticky; top: 24px; }
.admin-bar .verdict { top: 56px; }
.seal { border: 2px solid var(--ink); }
.seal__head { margin: 0; padding: 9px 12px; background: var(--ink); color: #fff; font-stretch: var(--narrow); font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.seal__mark { display: inline-block; background: #fff; color: var(--blue); font-stretch: 66%; font-weight: 900; font-size: 1.15rem; padding: 3px 9px 2px 6px; white-space: nowrap; }
.seal__grade { margin: 0; padding: 16px 12px 14px; background: var(--serious); color: #fff; font-stretch: 64%; font-weight: 900; font-size: 3.1rem; line-height: .9; letter-spacing: -.01em; }
.seal__grade span { font-weight: 700; font-size: 1.6rem; letter-spacing: 0; }
.seal--moderate .seal__grade { background: var(--moderate); }
.seal--none .seal__grade { background: var(--paper); color: var(--ink-2); font-size: 2.2rem; }
.seal--low .seal__grade { background: var(--low); color: var(--ink); }
.seal__scale { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.seal__step { padding: 7px 4px; text-align: center; font-stretch: var(--narrow); font-weight: 700; font-size: .88rem; color: var(--ink-2); }
.seal__step + .seal__step { border-left: 1px solid var(--rule); }
.seal__step.is-on { background: var(--serious); color: #fff; }
.seal__step--moderate.is-on { background: var(--moderate); }
.seal__step--low.is-on { background: var(--low); color: var(--ink); }
.seal__foot { margin: 0; padding: 9px 12px 10px; border-top: 2px solid var(--ink); font-size: .9rem; line-height: 1.4; }

.specs { margin: 18px 0 0; }
.specs div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.specs div:first-child { border-top: 1px solid var(--ink); }
.specs dt { font-stretch: var(--narrow); font-weight: 700; color: var(--ink-2); }
.specs dd { margin: 0; font-size: .98rem; line-height: 1.4; overflow-wrap: anywhere; }
.button {
	display: block; margin-top: 20px; padding: 15px 18px; text-align: center;
	background: var(--blue); color: #fff; text-decoration: none;
	font-stretch: var(--narrow); font-weight: 800; font-size: 1.2rem;
}
.button:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }

/* ---------- Prose ---------- */
.report__independent { margin: 6px 0 0; font-size: .92rem; color: var(--ink-2); }
.key__note { margin: 0 0 8px; font-size: .92rem; color: var(--ink-2); }
.correction { margin: 0 0 1.4em; padding: 12px 14px; background: var(--blue-tint); border-left: 4px solid var(--blue); font-size: 1rem; }
.made-note { margin-top: 2.4em; padding: 14px 0 2px; border-top: 2px solid var(--ink); font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.made-note strong { color: var(--ink); }
.prose--page { max-width: 68ch; }
.contact-form label { display: block; margin-bottom: 4px; font-weight: 600; }
.contact-form input[type=url], .contact-form input[type=email], .contact-form textarea { width: 100%; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 0; font: inherit; background: #fff; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
.contact-trap { position: absolute; left: -9999px; }
.contact-done, .contact-error { padding: 12px 14px; background: var(--blue-tint); border-left: 4px solid var(--blue); }
.contact-error { background: #fbe9e9; border-left-color: var(--serious); }
.prose { grid-area: prose; max-width: 68ch; font-size: 1.0938rem; line-height: 1.62; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.75rem; margin: 2em 0 .55em; padding-top: 12px; border-top: 4px solid var(--blue); }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--blue); }
.prose a { overflow-wrap: anywhere; }
.photo { margin: 0 0 28px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: 1rem; }
.prose thead th { background: var(--blue); color: #fff; text-align: left; font-stretch: var(--narrow); font-weight: 700; padding: 9px 12px; }
.prose td, .prose tbody th { padding: 11px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; }
.prose tbody tr:nth-child(even) { background: var(--tint); }
.prose tbody td:first-child, .prose tbody th:first-child { width: 36%; font-stretch: var(--narrow); font-weight: 700; color: var(--ink-2); }
.recall-identifiers td:last-child { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.specs .specs__id dd { font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.recall-our-data { border-top: 1px solid var(--ink); padding-top: 12px; }
.recall-our-data ul { list-style: none; padding: 0; }
.recall-our-data li { padding: 8px 0; margin: 0; border-bottom: 1px solid var(--rule); }
.recall-our-data li:last-child { border-bottom: 0; }
.prose--page { padding: 28px 0 var(--space); }
.recall-source-box { border-top: 2px solid var(--blue); border-bottom: 1px solid var(--rule); padding: 10px 0; margin: 0 0 1.5em; }

/* ---------- Footer ---------- */
.section:last-of-type { padding-bottom: var(--space); }
.site-footer { background: var(--blue-dark); color: #dce6f5; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 1fr 1fr; gap: 32px 40px; }
.site-footer__about p:last-child { max-width: 46ch; }
.wordmark--footer { margin-bottom: 14px; font-size: 1.6rem; --cut: var(--blue-dark); }
.site-footer__head { color: #fff; font-size: 1.15rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer__legal { margin-top: 36px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .88rem; }
.site-footer__legal p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.indexes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.report__grid { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 860px) {
	:root { --gutter: 16px; }
	.masthead__bar { min-height: 60px; gap: 12px; }
	.wordmark { font-size: 1.65rem; }
	.masthead__line { display: none; }
	.nav-toggle {
		display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
		min-height: 44px; padding: 0 12px; background: none; color: #fff;
		border: 2px solid rgba(255, 255, 255, .6); border-radius: 0;
		font: inherit; font-stretch: var(--narrow); font-weight: 800; font-size: 1rem; cursor: pointer;
	}
	.site-nav { display: none; }
	.site-nav.is-open { display: block; }
	.site-nav__inner { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 16px; }
	.site-nav__list { flex-direction: column; }
	.site-nav__list li:first-child a { margin-left: 0; }
	.site-nav__list a { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
	.site-nav__list a[aria-current] { border-bottom-color: rgba(255, 255, 255, .2); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
	.nav-search { margin: 14px 0 0; }
	.nav-search input { flex: 1; width: auto; height: 46px; }
	.nav-search button { height: 46px; }

	.search-form input, .search-form button { height: 56px; }
	.search-form button { padding: 0 18px; font-size: 1.15rem; }
	.search-form input { font-size: 1.05rem; padding: 0 12px; }

	/* Results rows stack: grade on the left, product, then where and date. */
	.results thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.results tbody tr {
		display: grid;
		grid-template-columns: 84px minmax(0, 1fr) auto;
		grid-template-areas: "grade item item" "grade where date";
		gap: 8px 12px;
		padding: 14px 0;
	}
	.results tbody tr:nth-child(even) { background: none; }
	.results tbody .results__day { display: block; padding: 0; background: var(--blue-tint); }
	.results tbody .results__day th { padding: 8px 10px; }
	.results td, .results tbody th { display: block; padding: 0; width: auto; }
	.results__grade { grid-area: grade; }
	.results__item { grid-area: item; }
	.results__where { grid-area: where; }
	.results__date { grid-area: date; text-align: right; }
	.grade { font-size: .92rem; padding: 6px 7px 7px; }
	.results__product { font-size: 1.2rem; }
	.results__hazard { font-size: .95rem; }
	.results__where strong, .results__date time { display: inline; font-size: .95rem; }
	.results__where span, .results__date span { display: inline; font-size: .85rem; margin-left: 4px; }
	.results__date span { display: none; }

	.tally .tally__mostly { display: none; }
	.tally td, .tally tbody th, .tally thead th { padding-left: 8px; padding-right: 8px; }
	.tally .num { width: auto; }

	.report__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "verdict" "prose"; }
	.report__head { padding-bottom: 20px; }
	.report__dek { font-size: 1.12rem; }
	.verdict { position: static; margin-bottom: 36px; display: grid; grid-template-columns: minmax(0, 1fr); }
	.seal__grade { font-size: 2.6rem; }
	.prose { font-size: 1.05rem; }
	.prose h2 { font-size: 1.5rem; }
	.prose tbody td:first-child, .prose tbody th:first-child { width: 40%; }

	.search-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.filters { display: grid; gap: 18px; }
	.filters__group + .filters__group { margin-top: 0; }
	.filters__list { display: flex; flex-wrap: wrap; gap: 0 18px; }
	.filters__list a { border-bottom: 0; padding: 6px 0; justify-content: flex-start; gap: 6px; }

	.key__list { grid-template-columns: minmax(0, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
	.shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
	.shelf__name { font-size: 1.2rem; }
}

@media (max-width: 560px) {
	.shelf__note { display: none; }
	.index--columns .index { column-count: 1; }
	.indexes, .profile { grid-template-columns: minmax(0, 1fr); }
	.key__row { grid-template-columns: 92px 1fr; }
	.section__head { flex-direction: column; }
}

@media (min-width: 600px) and (max-width: 860px) {
	.verdict { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
	.specs { margin-top: 0; }
	.verdict .button { grid-column: 1 / -1; margin-top: 0; }
}

@media print {
	.masthead, .site-footer, .section--index, .button { display: none; }
	.verdict { position: static; }
}

/* A <button> needs resetting to match the link version of .button. */
.contact-form .button { border: 0; border-radius: 0; cursor: pointer; font-family: inherit; font-stretch: var(--narrow); font-weight: 800; font-size: 1.15rem; }
