/* TOG-radar v2.0 — one stylesheet for all pages.
   Design idea: the evening sky on top (it is about tonight), calm paper below.
   Sections: tokens · base · sky/header · cards & buttons · advice · settings ·
   safety · FAQ · support · footer · cookie notice · info page ·
   text pages · responsive. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('res/fraunces-600.woff2') format('woff2');
}

:root {
  --night: #0f2342;
  --night-2: #1b3d6d;
  --navy: #173a6b;
  --ink: #15273a;
  --text: #3b5165;
  --muted: #5b6f81;
  --paper: #fbf6ee;
  --card: #ffffff;
  --line: #e9e3d8;
  --line-cool: #dfe7ef;
  --blue: #2467b5;
  --tint: #eaf2fb;
  --tint-hover: #dbe9f8;
  --moon: #ffd27a;
  --amber-bg: #fff7e6;
  --amber-line: #f1e2bf;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(21, 39, 58, .04), 0 12px 32px rgba(21, 39, 58, .07);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --overlap: 76px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* The page itself is paper; the canvas behind it is night blue, so the elastic
   overscroll above the header and below the footer continues their colour.
   Safari mixes an opaque body background-color into the overscroll colour, so the
   paper is painted as a background-image and the body's background-color stays transparent. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background-color: var(--night); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: var(--ink); background: linear-gradient(var(--paper), var(--paper)); font: 16px/1.55 var(--sans); }
a { color: var(--blue); text-underline-offset: 3px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #4a90d3; outline-offset: 3px; }
svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
/* Right arrows mark off-site links only (affiliate and other external links). */
a[href^="https://"]:not(.donate-link):not(.cta-link)::after { content: " \2192"; white-space: nowrap; }

/* ---------- Evening sky: header and intro ---------- */
.sky {
  position: relative; isolation: isolate; color: #fff;
  background: linear-gradient(180deg, var(--night) 0%, #15305a 55%, var(--night-2) 100%);
  padding: env(safe-area-inset-top, 0px) 0 calc(var(--overlap) + 18px);
}
/* Quiet stars; purely decorative. */
.sky::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 19% 64%, #cfe0f7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 33% 14%, var(--moon) 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 48%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 20%, #cfe0f7 50%, transparent 51%),
    radial-gradient(1px 1px at 69% 70%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 81% 30%, var(--moon) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 58%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 4% 48%, #cfe0f7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 13% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 26% 38%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 29% 78%, var(--moon) 50%, transparent 51%),
    radial-gradient(1px 1px at 39% 30%, #cfe0f7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 52% 6%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 53% 74%, #cfe0f7 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 74% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 77% 52%, #cfe0f7 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 82%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 96% 16%, var(--moon) 50%, transparent 51%),
    radial-gradient(1px 1px at 98% 40%, #fff 50%, transparent 51%);
}
.sky :focus-visible { outline-color: var(--moon); }
/* As a home-screen web app the header sits right under the status bar; give it some air. */
@media (display-mode: standalone) {
  .sky { padding-top: calc(env(safe-area-inset-top, 0px) + 14px); }
}
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 0; }
.brand img { display: block; width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.brand strong { font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.brand small { font-size: 10px; color: #a9c2e3; font-weight: 700; letter-spacing: .1em; line-height: 1.25; text-transform: uppercase; white-space: nowrap; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: 8px 14px; border-radius: 999px; transition: background-color .15s ease; }
.nav-link:hover { background: rgba(255, 255, 255, .2); }
/* Main navigation: text links on wider screens, a menu button on phones. */
.site-header { flex-wrap: wrap; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { display: block; padding: 8px 13px; border-radius: 999px; color: #c9d8ec; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.nav-toggle { display: none; align-items: center; gap: 7px; font: inherit; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: 8px 13px; border-radius: 999px; cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .nav-icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-icon-close { display: inline; }
@media (max-width: 760px) {
  /* Without JavaScript the links simply sit in a row under the logo. */
  .site-nav { order: 3; flex-basis: 100%; flex-wrap: wrap; margin-top: 4px; }
}
@media (max-width: 760px) and (scripting: enabled) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; flex-direction: column; align-items: stretch; gap: 2px; margin-top: 12px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 15px; border-radius: 11px; }
}
.nav-link svg { width: 17px; height: 17px; }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0 14px; }
.intro-copy { max-width: 660px; min-width: 0; }
.mission { display: flex; align-items: center; gap: 7px; color: #bcd1ec; font-size: 13px; line-height: 1.4; font-weight: 500; margin: 0 0 14px; }
.mission svg { width: 14px; height: 14px; stroke: none; color: var(--moon); }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -.025em; line-height: 1.08; color: #fff; margin: 0 0 12px; }
.intro-copy > p:last-child { font-size: clamp(15px, 1.7vw, 18px); color: #c9d8ec; line-height: 1.5; margin: 0; max-width: 600px; text-wrap: pretty; }
.intro-decoration { width: 190px; flex: none; }
.intro-decoration svg { width: 100%; height: auto; stroke: none; display: block; }

/* ---------- Page body, cards, buttons ---------- */
.main { position: relative; margin-top: calc(-1 * var(--overlap)); padding-bottom: 44px; display: flex; flex-direction: column; gap: 18px; }
.main > * { min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.section-heading h2, .safety h2 { font-family: var(--display); font-weight: 600; margin: 0 0 3px; font-size: 22px; line-height: 1.2; letter-spacing: -.015em; }
.section-heading p, .safety p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.icon-circle { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-circle.blue { background: var(--tint); color: var(--blue); }
.icon-circle.amber { background: #ffe9bd; color: #a8660b; }
.cta-link { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.3; color: #fff; background: var(--navy); border-radius: var(--radius-sm); padding: 13px 18px; min-height: 50px; box-shadow: 0 6px 16px rgba(23, 58, 107, .18); transition: background-color .15s ease, transform .1s ease; }
.cta-link:hover { background: #1f4b88; }
.cta-link:active, .secondary-button:active, .room-apply:active, .support-button:active { transform: scale(.985); }
.text-link { font-weight: 700; font-size: 14px; }

/* ---------- Advice card ---------- */
.advice-card { --tog-bg: #eff2f4; --tog-fg: #8a98a3; overflow: hidden; border-color: var(--line-cool); scroll-margin-top: 12px; }
.source-bar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 11px 16px 11px 20px; border: 0; border-bottom: 1px solid var(--line-cool); background: #f4f8fc; color: #1d4170; font-size: 13.5px; font-weight: 600; line-height: 1.35; text-align: left; cursor: pointer; transition: background-color .15s ease; }
.source-bar:hover { background: var(--tint); }
.source-bar > svg { width: 18px; height: 18px; }
.source-bar #sourceText { flex: 1; min-width: 0; }
.source-edit { flex: none; font-size: 12.5px; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid #cfdcea; border-radius: 999px; padding: 5px 12px; }
.source-bar .chevron { display: none; width: 16px; }
.advice-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(230px, .9fr); grid-template-areas: 'copy image' 'actions image'; grid-template-rows: auto 1fr; column-gap: 28px; row-gap: 20px; padding: 28px; }
.advice-copy { grid-area: copy; min-width: 0; }
.advice-copy h2 { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; line-height: 1.3; margin: 0 0 10px; }
.tog-hero { position: relative; display: inline-block; vertical-align: top; }
.tog-peek { display: none; }
.tog-value { display: inline-block; min-width: 150px; font-family: var(--display); font-weight: 600; font-size: clamp(52px, 6.4vw, 72px); line-height: 1; letter-spacing: -.03em; color: var(--tog-fg); background: var(--tog-bg); padding: 12px 20px 14px; border-radius: 20px; transition: background-color .2s ease, color .2s ease; }
/* One colour language for warm to cold, shared with the table on the info page. */
.advice-card[data-tog="05"] { --tog-bg: #fdecea; --tog-fg: #9f3a38; }
.advice-card[data-tog="10"] { --tog-bg: #fff0db; --tog-fg: #8a5a1f; }
.advice-card[data-tog="15"] { --tog-bg: #fff5c7; --tog-fg: #735600; }
.advice-card[data-tog="20"] { --tog-bg: #e7f2eb; --tog-fg: #1e6b3a; }
.advice-card[data-tog="25"] { --tog-bg: #e2f3ef; --tog-fg: #1b6b63; }
.advice-card[data-tog="30"] { --tog-bg: #e6effb; --tog-fg: #2b5c9a; }
.advice-card[data-tog="35"] { --tog-bg: #eceff4; --tog-fg: #3a4a5a; }
/* Seven-step scale: shows where tonight sits between light and warm. Decorative. */
.tog-scale { max-width: 330px; margin: 16px 0 0; }
.tog-scale ol { display: flex; align-items: flex-end; gap: 4px; height: 12px; list-style: none; margin: 0; padding: 0; }
.tog-scale li { flex: 1; height: 6px; border-radius: 999px; background: var(--c); opacity: .45; transition: opacity .2s ease, height .2s ease; }
.tog-scale li:nth-child(1) { --c: #e58378; } .tog-scale li:nth-child(2) { --c: #eba25a; }
.tog-scale li:nth-child(3) { --c: #dcb834; } .tog-scale li:nth-child(4) { --c: #4f9e6c; }
.tog-scale li:nth-child(5) { --c: #3d9c93; } .tog-scale li:nth-child(6) { --c: #4f84c9; }
.tog-scale li:nth-child(7) { --c: #7c8ba0; }
.advice-card[data-tog="05"] .tog-scale li:nth-child(1), .advice-card[data-tog="10"] .tog-scale li:nth-child(2),
.advice-card[data-tog="15"] .tog-scale li:nth-child(3), .advice-card[data-tog="20"] .tog-scale li:nth-child(4),
.advice-card[data-tog="25"] .tog-scale li:nth-child(5), .advice-card[data-tog="30"] .tog-scale li:nth-child(6),
.advice-card[data-tog="35"] .tog-scale li:nth-child(7) { opacity: 1; height: 12px; }
.tog-scale-ends { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }
.clothing-heading { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; margin: 18px 0 6px; }
.clothing-detail { color: var(--text); font-size: 16px; line-height: 1.5; margin: 0; max-width: 46ch; }
.advice-image { grid-area: image; position: relative; min-width: 0; min-height: 340px; }
.advice-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; border-radius: 18px; }
.advice-actions { grid-area: actions; align-self: end; display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; }
.advice-info-cta { background: var(--tint); color: var(--navy); box-shadow: none; }
.advice-info-cta:hover { background: var(--tint-hover); }
.advice-info-cta svg { width: 18px; height: 18px; }
.disclosure { font-size: 12px; line-height: 1.4; color: var(--muted); margin: 4px 0 0; text-align: center; }

/* ---------- Settings ---------- */
.settings { padding: 24px; scroll-margin-top: 12px; }
.place-form label, .room-controls label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.place-input-row { display: flex; gap: 8px; }
.place-input-row input, .room-entry input { border: 1px solid #cdd8e3; border-radius: 12px; background: #fff; color: var(--ink); padding: 10px 14px; min-height: 48px; min-width: 0; font-size: 16px; transition: border-color .15s ease; }
.place-input-row input { flex: 1; width: 100%; }
.place-input-row input:focus, .room-entry input:focus { border-color: #4a90d3; }
.secondary-button { background: var(--tint); color: var(--navy); border: 0; border-radius: 12px; padding: 10px 20px; min-height: 48px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .15s ease, transform .1s ease; }
.secondary-button:hover { background: var(--tint-hover); }
.secondary-button:disabled { opacity: .6; cursor: wait; }
.helper-text { font-size: 13px; color: var(--muted); margin: 8px 0 0; line-height: 1.45; min-height: 18px; }
.settings-grid { display: block; }
.settings-divider { height: 1px; background: var(--line); margin: 20px 0; }
.toggle-row { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.toggle-copy { flex: 1; }
.toggle-copy strong, .toggle-copy small { display: block; }
.toggle-copy strong { font-size: 16px; line-height: 1.3; }
.toggle-copy small { font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 3px; }
.toggle-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track { position: relative; flex: none; width: 48px; height: 28px; border-radius: 999px; background: #c8d2dc; transition: background-color .15s ease; }
.toggle-track::before { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s ease; }
.toggle-row input:checked + .toggle-track { background: var(--navy); }
.toggle-row input:checked + .toggle-track::before { transform: translateX(20px); }
.toggle-row input:focus-visible + .toggle-track { outline: 3px solid #4a90d3; outline-offset: 3px; }
.room-controls { margin-top: 18px; padding: 16px; border-radius: 16px; background: #f4f8fc; }
.room-entry { display: flex; align-items: stretch; gap: 10px; width: 100%; margin-top: 7px; }
.room-number { position: relative; flex: 1; min-width: 0; max-width: 210px; }
.room-number input { width: 100%; padding-right: 44px; }
.room-number span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; pointer-events: none; }
.room-apply { border: 0; border-radius: 12px; padding: 10px 18px; min-height: 48px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color .15s ease, transform .1s ease; }
.room-apply:hover { background: #1f4b88; }

/* ---------- Safe sleep ---------- */
.safety { display: flex; gap: 16px; align-items: center; padding: 20px 24px; background: var(--amber-bg); border-color: var(--amber-line); box-shadow: none; }
.safety h2 { font-size: 20px; }
.safety p { color: #5f5237; }
.safety a { color: #7a4f08; font-weight: 600; }


/* ---------- FAQ (homepage and info page share one look) ---------- */
/* A small compliment for parents. */
.compliment { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 30px 0; padding: 0 16px; text-align: center; }
.compliment p { margin: 0; max-width: 34em; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.4; letter-spacing: -.01em; color: #5a3554; text-wrap: balance; }
.compliment-label { display: block; font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a0587a; margin-bottom: 4px; }
.compliment-heart { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #e0789a; box-shadow: 0 4px 12px rgba(160, 88, 122, .15); }
.compliment-heart svg { width: 19px; height: 19px; }
.info-article .info-card.info-card-warm { background: linear-gradient(150deg, #fdf0f2, #fff 55%, #f4f1fb); border-color: #f1dde4; }
.info-card-warm .compliment-heart { margin-bottom: 12px; }
@media (max-width: 640px) {
  .compliment { margin: 24px 0; padding: 0 12px; }
  .compliment p { font-size: 16.5px; }
  .compliment-heart { width: 34px; height: 34px; }
}

/* Advice page: the two content pages side by side. */
/* Two separate cards, no container around them. */
.explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.explore-tile { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.explore-tile:hover { border-color: #b9cfe8; box-shadow: 0 12px 30px rgba(15, 35, 66, .1); transform: translateY(-1px); }
.explore-art { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.explore-art .tog-chip { font-size: 12.5px; padding: 3px 9px; }
.time-chip { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #dfeaf7; color: var(--navy); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.time-chip-night { background: var(--navy); color: #fff; }
.explore-question { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.explore-text { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.explore-link { margin-top: auto; padding-top: 6px; color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .explore-grid { grid-template-columns: 1fr; gap: 13px; }
  .explore-tile { padding: 18px; }
  .explore-question { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .explore-tile { transition: none; } .explore-tile:hover { transform: none; } }

.faq { padding: 24px; }
.faq .section-heading { margin-bottom: 10px; }
.faq-list { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 36px; align-items: start; }
.faq-col { min-width: 0; }
.faq details, .info-faq details { border-bottom: 1px solid var(--line); }
.faq summary, .info-faq summary { position: relative; display: block; list-style: none; cursor: pointer; padding: 15px 44px 15px 0; font-size: 15.5px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.faq summary::-webkit-details-marker, .info-faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .info-faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--navy); font-size: 19px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after, .info-faq details[open] summary::after { content: '\2212'; }
.faq summary:hover, .info-faq summary:hover { color: var(--blue); }
.faq details p, .info-faq details p { margin: 0; padding: 0 44px 16px 0; color: var(--text); font-size: 15px; line-height: 1.6; }
.info-faq details p + p { margin-top: -6px; }
.faq-all { margin: 18px 0 0; text-align: center; line-height: 1.9; }
.faq-all .text-link { white-space: nowrap; }

/* ---------- Support ---------- */
.support { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 22px 24px; background: linear-gradient(110deg, #fff, #f3f8fd); border-color: var(--line-cool); }
.support-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tint); color: var(--blue); }
.support-icon svg { width: 23px; height: 23px; stroke-width: 1.9; }
.support-copy { min-width: 0; }
.support-copy h2 { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 5px; }
.support-copy p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
.support-copy .support-note { font-size: 12.5px; margin-top: 8px; }
.support-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; max-width: 100%; padding: 12px 18px; border: 1px solid #c7d9ec; border-radius: 999px; background: #fff; color: var(--navy); text-decoration: none; text-align: center; font-weight: 700; font-size: 14px; line-height: 1.3; transition: background-color .15s ease, transform .1s ease; }
.support-button:hover { background: var(--tint); }
.support-button svg { width: 16px; height: 16px; stroke-width: 2; }

/* ---------- Footer: the night sky returns ---------- */
.site-footer { position: relative; isolation: isolate; margin-top: auto; padding: 34px 0 calc(34px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 13px; line-height: 1.5; color: #b9cbe3; background: linear-gradient(180deg, var(--night-2), var(--night)); }
.site-footer::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .8;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 72%, #cfe0f7 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 22%, var(--moon) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 64%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 28%, #cfe0f7 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 70%, var(--moon) 50%, transparent 51%); }
.site-footer p { margin: 5px 0; }
.site-footer a { color: #e3ecf8; }
.site-footer :focus-visible { outline-color: var(--moon); }
.site-footer .footer-nav { margin: 4px 0 10px; font-weight: 600; }
.site-footer .footer-line { color: #fff; font-family: var(--display); font-size: 17px; margin-bottom: 8px; }
.site-footer .site-version { font-size: 11px; color: #8ba3c4; letter-spacing: .03em; margin-top: 12px; }
.privacy-trigger { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.legal .privacy-trigger { color: var(--blue); }

/* ---------- Cookie notice: quiet, never blocks the advice ---------- */
.cookie-notice { position: fixed; z-index: 90; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(700px, calc(100vw - 24px)); display: flex; align-items: center; gap: 18px; padding: 16px 18px; background: #fff; color: var(--ink); border: 1px solid var(--line-cool); border-radius: 18px; box-shadow: 0 12px 40px rgba(15, 35, 66, .22); font-size: 14px; line-height: 1.45; }
.cookie-content { flex: 1; min-width: 0; }
.cookie-content strong { display: block; font-size: 15px; }
.cookie-content p { margin: 4px 0 0; color: var(--text); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-button { min-height: 44px; padding: 9px 16px; border: 1px solid #c7d6e3; border-radius: 999px; font-weight: 700; cursor: pointer; }
.cookie-no { color: var(--navy); background: #f3f7fa; }
.cookie-yes { color: #fff; background: var(--navy); border-color: var(--navy); }

/* ---------- Info page ---------- */
.info-main { display: flex; flex-direction: column; gap: 18px; }
.info-article { display: flex; flex-direction: column; gap: 18px; color: var(--ink); }
.info-article section[id], .info-article h3[id] { scroll-margin-top: 14px; }
.info-article .info-card > p + h3 { margin-top: 26px; }
.info-article .info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 34px; min-width: 0; }
.info-article p { color: var(--text); font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.info-article h2 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 27px); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 14px; }
.info-article .info-card > h3 { font-size: 17px; line-height: 1.4; color: var(--navy); margin: 0 0 12px; }
.info-article a { font-weight: 600; }
.info-eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); font-weight: 700; margin: 0 0 8px; }
.info-article .info-eyebrow { font-size: 11.5px; line-height: 1.4; margin: 0 0 8px; color: var(--blue); }
.info-article .info-summary h2 { font-size: clamp(24px, 3vw, 30px); }
.info-primary-link { display: inline-block; font-weight: 700; font-size: 15px; }
.info-jump-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 2px; }
.info-article .info-jump-links a { display: inline-block; padding: 9px 15px; border: 1px solid var(--line-cool); border-radius: 999px; background: #fff; color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 600; transition: background-color .15s ease; }
.info-article .info-jump-links a:hover { background: var(--tint); }
.info-article .cardImageWrap { overflow: hidden; border-radius: 16px; margin: 0 0 24px; background: #f4ede5; }
.info-article .cardImageWrap img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: center 42%; }
.info-callout { display: flex; align-items: flex-start; gap: 14px; margin: 22px 0 0; padding: 18px 20px; border: 1px solid var(--line-cool); border-radius: 16px; background: #f4f8fc; }
.info-callout-amber { background: var(--amber-bg); border-color: var(--amber-line); }
.info-callout-green { background: #eef8f1; border-color: #d7eadd; }
.info-callout-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: #dcebfa; color: var(--blue); font-weight: 800; font-size: 14px; }
.info-callout-amber .info-callout-icon { background: #ffe9bd; color: #8a5a10; }
.info-callout-green .info-callout-icon { background: #d7eedf; color: #216842; }
.info-callout strong { display: block; font-size: 16px; color: var(--ink); }
.info-article .info-callout p { font-size: 15px; line-height: 1.6; margin: 4px 0 0; }
/* TOG table: a real table; every row reads as a card with a colour band. */
.togtable { width: 100%; margin: 14px 0 0; border-collapse: separate; border-spacing: 0 10px; text-align: left; }
.togtable thead th { padding: 0 18px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.togtable tbody tr > * { padding: 16px 18px; vertical-align: middle; background: #fff; border-top: 1px solid var(--line-cool); border-bottom: 1px solid var(--line-cool); }
.togtable tbody tr > :first-child { border-left: 1px solid var(--line-cool); border-radius: 16px 0 0 16px; }
.togtable tbody tr > :last-child { border-right: 1px solid var(--line-cool); border-radius: 0 16px 16px 0; }
.togtable .tog-temp { width: 142px; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.togtable .tog-name { width: 122px; font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.togtable .t05 > .tog-temp, .togtable .t05 > .tog-name, .tog-chip.t05 { background: #fdecea; color: #9f3a38; }
.togtable .t10 > .tog-temp, .togtable .t10 > .tog-name, .tog-chip.t10 { background: #fff0db; color: #8a5a1f; }
.togtable .t15 > .tog-temp, .togtable .t15 > .tog-name, .tog-chip.t15 { background: #fff5c7; color: #735600; }
.togtable .t20 > .tog-temp, .togtable .t20 > .tog-name, .tog-chip.t20 { background: #e7f2eb; color: #1e6b3a; }
.togtable .t25 > .tog-temp, .togtable .t25 > .tog-name, .tog-chip.t25 { background: #e2f3ef; color: #1b6b63; }
.togtable .t30 > .tog-temp, .togtable .t30 > .tog-name, .tog-chip.t30 { background: #e6effb; color: #2b5c9a; }
.togtable .t35 > .tog-temp, .togtable .t35 > .tog-name, .tog-chip.t35 { background: #eceff4; color: #3a4a5a; }
.info-article .togtable h3 { font-size: 16px; line-height: 1.35; color: var(--ink); margin: 0 0 4px; }
.info-article .togtable p { font-size: 15px; line-height: 1.55; margin: 0 0 8px; }
.info-article .togtable a { display: inline-block; font-size: 14px; padding: 2px 0; }
/* Per-degree answers: a real table, shown as a compact grid of small tiles. */
.gradentable { display: block; margin: 18px 0 0; }
.gradentable thead { position: absolute; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.gradentable tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gradentable tr { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 12px; border: 1px solid var(--line-cool); border-radius: 12px; background: #fff; }
.gradentable th { font-size: 14.5px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.tog-chip { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.info-article .info-table-note { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 16px 0 0; }
.info-article .info-byline { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 18px 0 0; }
.info-tips-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.info-tip { padding: 18px; border: 1px solid var(--line-cool); border-radius: 16px; background: #f8fafc; }
.info-tip strong, .info-tip span { display: block; }
.info-tip strong { margin-bottom: 5px; color: var(--navy); }
.info-tip span { font-size: 15px; line-height: 1.55; color: var(--text); }
.info-article .info-tip a { display: block; width: fit-content; margin-top: 10px; font-size: 14px; }
.info-article .info-tip a + a { margin-top: 6px; }
.info-tip .info-tip-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 10px; border-radius: 12px; background: var(--tint); color: var(--navy); }
.info-tip .info-tip-icon svg { width: 20px; height: 20px; }
.info-tip .info-tip-note { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Sleep page: the two notes that hung on our fridge. */
.info-article .info-tip-inline { padding: 12px 16px; border-radius: 12px; background: var(--tint); font-size: 15px; }
.fridge { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 22px; margin: 20px 0 0; padding: 30px 24px 26px; border-radius: 18px; background: linear-gradient(160deg, #eef2f6, #e1e8ef); }
.fridge-note { position: relative; margin: 0; padding: 30px 22px 20px; background: #fffdf8; border-radius: 4px; box-shadow: 0 10px 24px rgba(15, 35, 66, .13), 0 1px 3px rgba(15, 35, 66, .1); transform: rotate(-.7deg); }
.fridge-note-steps { transform: rotate(.6deg); }
.fridge-note::before, .fridge-note::after { content: ''; position: absolute; top: -9px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c9, #e2b23c 45%, #9c7317); box-shadow: 0 3px 5px rgba(0, 0, 0, .22); }
.fridge-note::before { left: 16px; }
.fridge-note::after { right: 16px; }
.fridge-note figcaption { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.2; color: var(--ink); margin: 0 0 14px; }
.day-list, .step-list { margin: 0; padding: 0; list-style: none; }
.day-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 8px 0 8px 14px; border-bottom: 1px dashed #e4ddcf; position: relative; font-size: 14.5px; line-height: 1.45; color: var(--text); }
.day-list li:last-child { border-bottom: 0; }
.day-list li::before { content: ''; position: absolute; left: 0; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: #f0b44c; }
.day-list .is-sleep::before, .day-list .is-night::before { background: #4a86c8; }
.day-list .is-awake::before { background: #8fc79f; }
.day-list .is-dark { background: linear-gradient(90deg, rgba(23, 58, 107, .06), transparent); }
.day-list time { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.day-list .is-night time, .day-list .is-night span { font-weight: 700; color: var(--ink); }
.info-article .day-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.day-legend span::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; background: #f0b44c; }
.day-legend .lg-sleep::before { background: #4a86c8; }
.day-legend .lg-awake::before { background: #8fc79f; }
.step-list { counter-reset: step; }
.step-list li { counter-increment: step; position: relative; padding: 6px 0 6px 36px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--navy); font-size: 12.5px; font-weight: 800; line-height: 24px; text-align: center; }

/* Sleep per age: a real table; rows become small cards on phones. */
.slaaptable { width: 100%; margin: 16px 0 0; border-collapse: collapse; font-size: 15px; text-align: left; }
.slaaptable th, .slaaptable td { padding: 11px 12px; border-bottom: 1px solid var(--line-cool); vertical-align: middle; }
.slaaptable thead th { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom-width: 2px; }
.slaaptable tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.slaaptable td { color: var(--text); }
.slaaptable td strong { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--navy); white-space: nowrap; }
.slaaptable tbody tr:nth-child(odd) { background: #f8fafc; }
.info-article .info-handy { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 8px 0 0; }
/* TOG card: its own highlighted block, with the card peeking out of the corner. */
.kaart-promo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 28px; overflow: hidden; padding: 30px 34px 0; border: 1px solid #cfe0f3; border-radius: var(--radius); background: linear-gradient(135deg, #eef5fc, #d9e8f8); scroll-margin-top: 14px; }
.kaart-promo-copy { padding-bottom: 30px; align-self: center; }
.info-article .kaart-promo h2 { margin-bottom: 10px; }
.info-article .kaart-promo p { color: #34506c; }
.info-article .kaart-promo .info-eyebrow { color: var(--blue); }
.kaart-promo .kaart-promo-button { display: inline-block; margin-top: 4px; padding: 13px 20px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-size: 15px; font-weight: 700; transition: background-color .15s ease; }
.kaart-promo .kaart-promo-button:hover { background: var(--night); }
.info-article .kaart-promo .kaart-promo-note { font-size: 13.5px; margin: 12px 0 0; color: #4d6781; }
.kaart-promo-visual { display: block; align-self: end; height: 250px; margin-top: 4px; }
.kaart-promo-visual img { display: block; width: 100%; height: auto; border-radius: 8px 8px 0 0; background: #fff; box-shadow: 0 14px 34px rgba(15, 35, 66, .22), 0 2px 6px rgba(15, 35, 66, .12); transform: rotate(-3deg) translateY(14px); transform-origin: 50% 0; transition: transform .25s ease; }
.kaart-promo-visual:hover img { transform: rotate(-1.5deg) translateY(6px); }
@media (prefers-reduced-motion: reduce) { .kaart-promo-visual img { transition: none; } }
/* Compact version on the advice page. */
.kaart-promo-home { grid-template-columns: minmax(0, 1fr) 190px; padding: 24px 24px 0; }
.kaart-promo-home .kaart-promo-copy { padding-bottom: 24px; }
.kaart-promo-home h2 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); margin: 0 0 8px; }
.kaart-promo-home p { font-size: 15px; line-height: 1.6; color: #34506c; margin: 0 0 14px; }
.kaart-promo-home .info-eyebrow { font-size: 11.5px; line-height: 1.4; color: var(--blue); margin: 0 0 8px; }
.kaart-promo-home .kaart-promo-visual { height: 190px; }

.info-tool-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 20px 22px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, var(--night), var(--night-2)); }
.info-tool-cta strong { font-family: var(--display); font-size: 19px; font-weight: 600; color: #fff; }
.info-article .info-tool-cta p { font-size: 14px; color: #c9d8ec; margin: 3px 0 0; }
.info-article .info-tool-cta a { flex: none; display: inline-block; padding: 12px 18px; border-radius: 999px; background: #fff; color: var(--navy); text-align: center; text-decoration: none; font-size: 14px; font-weight: 700; transition: background-color .15s ease; }
.info-article .info-tool-cta a:hover { background: var(--tint); }
.info-faq { margin-top: 4px; }
.info-article .info-sources p { font-size: 15px; line-height: 1.65; }
.info-sources-list { margin: 10px 0 16px; padding-left: 22px; color: var(--text); font-size: 15px; line-height: 1.75; }
.info-sources-list li { padding-left: 2px; margin-bottom: 4px; }
.info-bottom-cta { display: flex; justify-content: center; text-align: center; margin: 6px 0 2px; }
.support-compact { padding: 18px 22px; }
.support-compact .support-copy h2 { font-size: 18px; }

/* ---------- Text pages: privacy and 404 ---------- */
.text-main { display: block; max-width: 760px; }
.legal { padding: clamp(22px, 4vw, 40px); }
.legal h1 { color: var(--ink); font-size: clamp(27px, 4vw, 36px); margin-bottom: 12px; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.3; letter-spacing: -.01em; margin: 28px 0 6px; }
.legal p { margin: 0 0 12px; color: var(--text); font-size: 16px; line-height: 1.7; }
.not-found { text-align: center; }
.not-found .cta-link { margin-top: 22px; }

/* ---------- Desktop: two columns under the advice ---------- */
@media (min-width: 861px) {
  .settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .settings-divider { align-self: stretch; width: 1px; height: auto; margin: 0; }
  .faq-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Info page on wide screens: topics as a sticky side list, text at reading width. */
@media (min-width: 961px) {
  .info-article { display: grid; grid-template-columns: 216px minmax(0, 1fr); column-gap: 24px; row-gap: 18px; align-items: start; }
  .info-article > * { grid-column: 2; }
  .info-article > .info-jump-links { grid-column: 1; grid-row: 1 / span 12; position: sticky; top: 16px; flex-direction: column; flex-wrap: nowrap; gap: 2px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .info-article .info-jump-links a { display: block; padding: 10px 12px; border: 0; border-radius: 12px; background: none; }
  .info-main > .support { margin-left: 240px; }
}

/* ---------- Tablet and below ---------- */
@media (max-width: 860px) {
  .intro-decoration { display: none; }
  .support { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .support-button { grid-column: 1 / -1; width: 100%; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  :root { --radius: 20px; --overlap: 64px; }
  .wrap { padding: 0 12px; }
  .site-header { padding: 12px 2px 6px; gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 22px; }
  .brand small { font-size: 9px; letter-spacing: .06em; }
  .nav-link { font-size: 13px; padding: 8px 12px; }
  /* Compact intro on phones: the advice comes first. The heading stays
     available to screen readers and search engines. */
  .intro { padding: 6px 0 4px; justify-content: center; }
  .intro-copy { width: 100%; max-width: 100%; }
  .intro h1 { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; margin: -1px !important; padding: 0 !important; border: 0 !important; }
  .intro-copy > p:last-child:not(.mission) { display: none; }
  .intro .mission { justify-content: center; text-align: center; margin: 8px 0; font-size: 12.5px; }
  .main { gap: 13px; }
  .info-main, .info-article { gap: 13px; }
  .source-bar { padding: 10px 12px 10px 16px; font-size: 13px; }
  .advice-body { display: flex; flex-direction: column; gap: 0; padding: 20px 18px 18px; }
  .advice-copy { text-align: center; }
  /* The TOG value becomes a full-width band; the photo of this sleeping bag
     fades in from the right, so the card has a face without a separate image. */
  .tog-hero { display: flex; align-items: center; min-height: 104px; overflow: hidden; border-radius: 20px; background: var(--tog-bg); transition: background-color .2s ease; }
  .tog-value { position: relative; z-index: 1; min-width: 0; background: none; text-align: left; font-size: clamp(44px, 13.4vw, 58px); padding: 12px 0 14px 20px; }
  .tog-peek { display: block; position: absolute; top: 0; right: 0; width: 46%; height: 100%; object-fit: cover; object-position: center 24%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 70%); mask-image: linear-gradient(to right, transparent 0, #000 70%); }
  .advice-card:not([data-tog]) .tog-peek { visibility: hidden; }
  .tog-scale { max-width: none; margin: 12px 2px 0; }
  .clothing-heading { font-size: 21px; margin-top: 16px; }
  .clothing-detail { font-size: 15px; max-width: 34ch; margin-inline: auto; }
  .advice-image { display: none; }
  .advice-actions { align-self: stretch; padding-top: 18px; gap: 9px; }
  .cta-link { font-size: 14.5px; }
  .disclosure { font-size: 11.5px; }
  .settings, .faq { padding: 18px; }
  .section-heading { gap: 12px; margin-bottom: 15px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading p, .safety p { font-size: 13.5px; }
  .icon-circle { width: 40px; height: 40px; border-radius: 13px; }
  .secondary-button { padding: 10px 16px; }
  .safety { padding: 16px 18px; gap: 12px; }
  .safety h2 { font-size: 18px; }
  .faq summary, .info-faq summary { font-size: 15px; padding-top: 14px; padding-bottom: 14px; }
  .faq details p, .info-faq details p { padding-right: 8px; }
  .support { padding: 18px; }
  .support-copy h2 { font-size: 19px; }
  .main { padding-bottom: 32px; }
  .info-article .info-card { padding: 20px 18px; }
  .info-article p { font-size: 15.5px; line-height: 1.65; }
  .info-article .cardImageWrap { margin-bottom: 18px; border-radius: 14px; }
  .info-article .cardImageWrap img { height: 210px; }
  .info-article .info-jump-links a { font-size: 13px; padding: 8px 12px; }
  .info-callout { gap: 11px; padding: 14px; }
  .info-callout-icon { width: 30px; height: 30px; }
  /* Phones: each table row becomes a small card; the column headings stay for screen readers. */
  .togtable, .togtable tbody { display: block; }
  .togtable { margin-top: 18px; }
  .togtable thead { position: absolute; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .info-article .info-card { position: relative; }
  .togtable tbody { display: grid; gap: 10px; }
  .togtable tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; overflow: hidden; border: 1px solid var(--line-cool); border-radius: 16px; }
  .togtable tbody tr > *, .togtable tbody tr > :first-child, .togtable tbody tr > :last-child { border: 0; border-radius: 0; padding: 11px 15px; }
  .togtable .tog-temp { width: auto; display: flex; align-items: center; }
  .togtable .tog-name { width: auto; font-size: 22px; }
  .togtable tbody tr > td:last-child { grid-column: 1 / -1; padding: 13px 15px 14px; }
  .gradentable tbody { grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 7px; }
  .gradentable tr { gap: 6px; padding: 7px 7px 7px 10px; }
  .gradentable th { font-size: 14px; }
  .gradentable .tog-chip { padding: 3px 8px; font-size: 13px; }
  .info-tips-grid { grid-template-columns: 1fr; }
  .info-tool-cta { flex-direction: column; align-items: stretch; padding: 18px; }
  .fridge { grid-template-columns: 1fr; gap: 26px; padding: 26px 12px 18px; }
  .fridge-note { padding: 28px 16px 16px; transform: rotate(-.4deg); }
  .fridge-note-steps { transform: rotate(.4deg); }
  .slaaptable, .slaaptable tbody { display: block; }
  .slaaptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .slaaptable tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; margin-bottom: 8px; padding: 11px 13px; border: 1px solid var(--line-cool); border-radius: 12px; background: #fff; }
  .slaaptable tbody tr:nth-child(odd) { background: #fff; }
  .slaaptable th, .slaaptable td { padding: 0; border: 0; }
  .slaaptable td:nth-of-type(1) { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; }
  .slaaptable td:nth-of-type(2), .slaaptable td:nth-of-type(3) { grid-column: 1; font-size: 13.5px; color: var(--muted); }
  .slaaptable td:nth-of-type(2)::before, .slaaptable td:nth-of-type(3)::before { content: attr(data-label) ': '; }
  .slaaptable td:nth-of-type(3) { grid-row: 3; }
  .kaart-promo { grid-template-columns: 1fr; gap: 0; padding: 22px 18px 0; }
  .kaart-promo-copy { padding-bottom: 20px; }
  .kaart-promo .kaart-promo-button { display: block; text-align: center; }
  .kaart-promo-home .kaart-promo-visual { height: 140px; }
  .kaart-promo-visual { height: 150px; width: min(250px, 78%); margin: 0 auto; }
  .cookie-notice { display: block; padding: 14px 16px; bottom: calc(9px + env(safe-area-inset-bottom, 0px)); }
  .cookie-actions { margin-top: 12px; }
  .cookie-button { flex: 1; }
}

/* Narrow phones: the edit label makes room for the location text. */
@media (max-width: 480px) {
  .source-edit { display: none; }
  .source-bar .chevron { display: block; }
}
@media (max-width: 380px) {
  .source-edit { display: none; }
  .source-bar .chevron { display: block; }
  .brand strong { font-size: 20px; }
  .brand small { font-size: 8px; letter-spacing: .02em; }
  .nav-link { padding: 7px 10px; font-size: 12.5px; }
  .room-entry { gap: 7px; }
  .room-apply { padding: 9px 12px; }
  .room-number { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
