/* Does it keep? - direction "A1 at a glance". Mobile first. */
:root {
  --ink: #14171F; --muted: #5B6170; --soft: #3A3F4B; --line: #E3E5EA; --chip: #D5D8DF;
  --bg: #FFFFFF; --panel: #F2F3F6; --blue: #2442D6; --blue-dark: #152C9E; --blue-soft: #EEF1FD; --on-blue: #FFFFFF;
  --ok-bg: #E4F4EE; --ok-fg: #0B5A42; --ok-dot: #12A06F;
  --warn-bg: #FFF1DC; --warn-fg: #7A4300; --warn-dot: #E08A00;
  --bad-bg: #FDE7E5; --bad-fg: #9A1F17; --bad-dot: #D93025;
  --r: 20px;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EEF0F4; --muted: #A6ACB8; --soft: #C9CDD6; --line: #2C313B; --chip: #3A404C;
    --bg: #12151B; --panel: #1C2029; --blue: #4D68F0; --blue-dark: #8DA0FF; --blue-soft: #1D2547;
    --ok-bg: #0F2E24; --ok-fg: #8FE0BE; --warn-bg: #3A2A10; --warn-fg: #FFCB7A; --bad-bg: #3B1614; --bad-fg: #FFAAA3;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.45; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2 { margin: 0; letter-spacing: -0.02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--bg); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.top, main, .foot { max-width: 640px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { padding-top: 18px; padding-bottom: 6px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--blue); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 14px; background: var(--panel); }
.langs a { min-width: 34px; height: 34px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.langs a[aria-current] { background: var(--ink); color: var(--bg); }

.search { position: relative; }
.search-box { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 26px; background: var(--panel); color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); outline: none; }
.results { position: absolute; left: 0; right: 0; top: 58px; z-index: 5; margin: 0; padding: 6px; list-style: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 32px rgba(20, 23, 31, .14); }
.results a, .results .none { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.results small { color: var(--muted); }
.results [aria-selected="true"] a, .results a:hover { background: var(--blue-soft); }

main { padding-top: 10px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 20px; }
.crumb { margin: 0; font-size: 15px; }
.crumb a { color: var(--muted); }
.food { display: flex; flex-direction: column; gap: 18px; }
.food h1, .hero h1, main > h1, .prose h1 { font-size: clamp(38px, 11vw, 52px); line-height: 1; font-weight: 800; letter-spacing: -0.035em; }
.lead { margin: 0; color: var(--soft); }

.forms { min-inline-size: 0; min-width: 0; border: 0; margin: 0 -16px; padding: 2px 16px 6px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; }
.forms::-webkit-scrollbar { display: none; }
.form { position: relative; flex-shrink: 0; scroll-snap-align: start; max-width: 78vw; min-height: 44px; display: flex; align-items: center; padding: 8px 16px;
  border-radius: 22px; border: 1px solid var(--chip); font-size: 15px; font-weight: 600; color: var(--soft); cursor: pointer; }
.form span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form input { position: absolute; opacity: 0; pointer-events: none; }
.form.on, .form:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.form:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.places { display: flex; flex-direction: column; gap: 8px; }
.place { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); }
.place.fridge { background: var(--blue); color: var(--on-blue); }
.place.freezer { background: var(--blue-soft); }
.place.freezer svg { color: var(--blue); }
.place.pantry { background: var(--panel); color: var(--soft); }
.place svg { flex-shrink: 0; }
.what { flex: 1; min-width: 0; }
.what h2 { font-size: 20px; font-weight: 600; letter-spacing: 0; }
.what p { margin: 2px 0 0; font-size: 14px; opacity: .9; }
.how { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; max-width: 46%; text-align: right; }
.big { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.big.word { font-size: 17px; letter-spacing: 0; white-space: normal; }
.small { font-size: 14px; font-weight: 600; }

.calc { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r); border: 1.5px solid var(--line); }
.calc h2, .refreeze h2, .all h2, .nuances h2, .sources h2, .popular h2, .cats h2 { font-size: 20px; font-weight: 600; }
.calc h2 { font-size: 17px; }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.chips button { height: 46px; padding: 0 2px; border-radius: 12px; border: 1px solid var(--chip); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.verdict { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; }
.verdict .dot { width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%; }
.verdict .v-title { display: block; font-size: 19px; }
.verdict .v-text { display: block; font-size: 15px; }
.verdict.ok { background: var(--ok-bg); color: var(--ok-fg); } .verdict.ok .dot { background: var(--ok-dot); }
.verdict.warn { background: var(--warn-bg); color: var(--warn-fg); } .verdict.warn .dot { background: var(--warn-dot); }
.verdict.bad { background: var(--bad-bg); color: var(--bad-fg); } .verdict.bad .dot { background: var(--bad-dot); }

.refreeze dl { margin: 6px 0 0; }
.refreeze dl div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.refreeze dt { margin: 0; } .refreeze dd { margin: 0; font-weight: 600; text-align: right; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
tbody th { font-weight: 600; }
td { white-space: nowrap; }

.nuances ul, .sources ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.nuances em { font-style: normal; color: var(--muted); white-space: nowrap; }
.sources small { color: var(--muted); }
details.hidden-values { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel); font-size: 15px; }
details summary { cursor: pointer; font-weight: 600; }

.hero { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.pills { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--chip);
  color: var(--ink); text-decoration: none; font-weight: 600; }
.pills a:hover { border-color: var(--blue); background: var(--blue-soft); }
.cat-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cat-grid a { display: flex; flex-direction: column; gap: 4px; min-height: 76px; padding: 14px; border-radius: 16px; background: var(--panel);
  color: var(--ink); text-decoration: none; font-weight: 600; }
.cat-grid small { color: var(--muted); font-weight: 400; }
.cat-grid a:hover { background: var(--blue-soft); }
.prose .points { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.src-list { padding-left: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.src-list small { color: var(--muted); }

.foot { padding-top: 18px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot p { margin: 0 0 6px; }
@media (min-width: 720px) {
  .places { flex-direction: row; } .place { flex: 1; flex-direction: column; align-items: flex-start; }
  .how { align-items: flex-start; text-align: left; max-width: none; } .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .top, main, .foot { max-width: 880px; }
}

/* ---- SEO pages: answer-first, one section per question ---- */
.quick { padding: 16px 18px; border-radius: var(--r); background: var(--blue-soft); display: flex; flex-direction: column; gap: 8px; }
.quick .answer { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 600; }
.quick ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.quick li strong { font-weight: 700; }
.quick li strong::after { content: " :"; }
html[lang^="en"] .quick li strong::after { content: ":"; }
.qa { display: flex; flex-direction: column; gap: 10px; }
.qa h2, .says h2, .faq h2, .related h2 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.qa h3 { margin: 4px 0 0; font-size: 17px; }
.vals { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.vals li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vals li strong { text-align: right; white-space: nowrap; }
.vals li small { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.answer-sm { margin: 0; font-size: 19px; font-weight: 700; }
.note { margin: 0; font-size: 15px; color: var(--muted); }
blockquote.rule { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--panel); }
blockquote.rule p { margin: 0; font-size: 15px; }
blockquote.rule footer { margin-top: 4px; font-size: 13px; color: var(--muted); }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.says { display: flex; flex-direction: column; gap: 10px; }
.faq details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--soft); }
.chart-table tr.first th, .chart-table tr.first td { border-top: 2px solid var(--line); }
.chart-table td { white-space: normal; }
.print-btn { height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--chip); background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
@media print {
  .top, .foot, .no-print { display: none; }
  body { font-size: 11pt; } main { max-width: none; } .chart-table { font-size: 10pt; }
}

/* ---- site navigation and cross links ---- */
.sections { display: flex; gap: 18px; font-size: 15px; font-weight: 600; }
.sections a { color: var(--soft); text-decoration: none; }
.sections a:hover { color: var(--blue); }
.sublinks { display: flex; flex-wrap: wrap; gap: 8px; }
.sublinks a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 22px; background: var(--blue-soft);
  color: var(--blue-dark); text-decoration: none; font-weight: 600; font-size: 15px; }
.sublinks a::after { content: " →"; }
.brand { font-size: 18px; }
.bar { flex-wrap: wrap; row-gap: 10px; }
article.chart, article.prose { display: flex; flex-direction: column; gap: 16px; }
article.chart h1, article.prose h1 { line-height: 1.05; }
