/* design: v2 */
/* babyfeedingchart.com, design v2 A "The growing wall" (design/home-v2-A.png, picked by James on 27 Nov 2026).
   A sunny nursery picture book: a cornflower sky wall for the header, the hero and every page head, white clouds for
   the headings to sit on, a pale butter reading surface, marigold tool cards, a tomato button, leaf-green answers and a
   meadow footer. Drawings in src/art.ts. Baloo 2 for headings, the wordmark and the tables of numbers (it has tabular
   figures), Quicksand for text. Both OFL, self-hosted.
   Text never sits straight on the sky (navy on cornflower is only 4:1): it sits on a cloud, a pill or a card.
   Light surfaces in dark mode too (color-scheme: light), so every pair is checked once, by tests/design.test.ts. */

@font-face { font-family: "Baloo 2"; src: url("/fonts/baloo2.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("/fonts/quicksand.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --brand: #5b8def;        /* cornflower: the sky wall behind the header, hero and page heads */
  --sky-light: #86aef5;
  --sky-pale: #dceafd;
  --bg: #fff8e2;           /* pale butter: the reading surface */
  --card: #ffffff;
  --butter: #fff4cc;       /* the tool cards */
  --marigold: #ffc83d;
  --marigold-soft: #ffd970;
  --marigold-deep: #f5a623;
  --tomato: #f24b3c;
  --leaf: #5fb358;
  --leaf-deep: #3f9440;
  --navy: #0b2d6b;
  --text: #0b2d6b;
  --muted: #3d5280;
  --line: #f0dfae;
  --link: #1a4fbf;
  --on-brand: #0b2d6b;     /* only ever on white or butter shapes over the sky */
  --btn: #d93526;          /* the tomato button, a shade deeper so white text reads */
  --btn-hover: #c42d1f;
  --btn-text: #ffffff;
  --green-btn: #5fb358;
  --answer: #e8f6d8;
  --pink: #fde4e1;
  --meadow: #e5f4d3;
  --tile: #e9f6dc;
  --ok: #1f5c1a; --ok-bg: #dff3cf;
  --warn: #7a2a12; --warn-bg: #ffe6cf;
  --stop: #8a1630; --stop-bg: #ffdce0;
  --display: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --sans: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
  --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 90'%3E%3Cpath fill='%23ffffff' d='M30 86C8 86 0 70 6 58C12 46 28 44 36 48C36 28 56 16 74 22C82 6 108 0 124 14C138 4 166 10 168 32C188 32 200 48 196 64C192 80 180 86 166 86z'/%3E%3C/svg%3E");
  --cloud-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 90'%3E%3Cpath fill='%23ffffff' fill-opacity='.55' d='M30 86C8 86 0 70 6 58C12 46 28 44 36 48C36 28 56 16 74 22C82 6 108 0 124 14C138 4 166 10 168 32C188 32 200 48 196 64C192 80 180 86 166 86z'/%3E%3C/svg%3E");
  --grass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Cpath fill='%235fb358' d='M0 30Q5 12 9 30Q13 6 19 30Q24 16 29 30Q35 2 41 30Q47 18 51 30Q57 8 63 30Q69 16 73 30Q79 4 85 30Q91 14 95 30Q101 8 107 30Q113 18 120 30Z'/%3E%3C/svg%3E");
  --meadow-strip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'%3E%3Cpath fill='%239bd57a' d='M0 52Q180 8 380 40T760 34T1120 30T1440 40V110H0z'/%3E%3Cpath fill='%235fb358' d='M0 78Q240 48 520 70T1040 64T1440 70V110H0z'/%3E%3C/svg%3E");
  --flowers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 60'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='30' cy='30' r='5'/%3E%3Ccircle cx='38' cy='26' r='5'/%3E%3Ccircle cx='38' cy='35' r='5'/%3E%3Ccircle cx='22' cy='26' r='5'/%3E%3Ccircle cx='22' cy='35' r='5'/%3E%3C/g%3E%3Ccircle cx='30' cy='30' r='4' fill='%23ffc83d'/%3E%3Cg fill='%23ffc83d'%3E%3Ccircle cx='170' cy='22' r='4.5'/%3E%3Ccircle cx='177' cy='18' r='4.5'/%3E%3Ccircle cx='177' cy='27' r='4.5'/%3E%3Ccircle cx='163' cy='18' r='4.5'/%3E%3Ccircle cx='163' cy='27' r='4.5'/%3E%3C/g%3E%3Ccircle cx='170' cy='22' r='3.5' fill='%23f24b3c'/%3E%3C/svg%3E");
  --sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cg stroke='%23ffc83d' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M5 9l9-4M5 16h12M5 23l9 4'/%3E%3C/g%3E%3C/svg%3E");
  --heart-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-14 -12 28 24'%3E%3Cpath d='M0 9C-13 1-11-9-5-9C-2-9 0-6 0-4C0-6 2-9 5-9C11-9 13 1 0 9Z' fill='none' stroke='%23f24b3c' stroke-width='3.2' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* ---------- type ---------- */
body { font-family: var(--sans); font-weight: 500; font-size: 18px; line-height: 1.6; background: var(--bg); color: var(--text); }
main { overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; color: var(--navy); text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.02; margin: 0.1em 0 0.25em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 1.95rem); line-height: 1.1; margin: 1.5em 0 0.45em; }
h3 { font-size: 1.24rem; line-height: 1.2; margin: 1.2em 0 0.3em; font-weight: 700; }
.page-body h2::after, .home-panel h2::after { content: ""; display: inline-block; width: 0.9em; height: 0.9em; margin-left: 0.25em; vertical-align: -0.05em; background: var(--sparkle) center / contain no-repeat; }
p, li { text-wrap: pretty; }
strong, b { font-weight: 700; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }
a:hover { text-decoration-color: var(--marigold-deep); text-decoration-thickness: 3px; }
.wrap { max-width: 1180px; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 17px; } }
::selection { background: var(--marigold); color: var(--navy); }
.small, .src { font-size: 0.93rem; line-height: 1.5; color: var(--muted); }
.section-sub { color: var(--muted); margin-top: -0.2em; max-width: 46em; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* ---------- header: the wordmark on a white cloud pill, the menu as white pills, on the sky ---------- */
.site-header { background: var(--brand); border-bottom: 0; position: relative; z-index: 5; }
.header-row { min-height: 76px; gap: 10px 24px; padding-top: 14px; padding-bottom: 10px; max-width: 1392px; }
.brand { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--navy); text-decoration: none; padding: 6px 20px 6px 12px; border-radius: 999px; box-shadow: 0 4px 0 rgba(11, 45, 107, 0.16); position: relative; }
.brand::before, .brand::after { content: ""; position: absolute; background: #fff; border-radius: 50%; z-index: -1; }
.brand::before { width: 46px; height: 40px; top: -9px; left: 34px; }
.brand::after { width: 38px; height: 32px; top: -6px; left: 76px; }
.brand { isolation: isolate; }
.brand:hover { color: var(--navy); }
.brand svg.logo-mark { width: 34px; height: 34px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.36rem; line-height: 1; color: var(--navy); white-space: nowrap; letter-spacing: -0.015em; padding-top: 3px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: flex-end; }
.main-nav a { background: #fff; color: var(--navy); text-decoration: none; font: 700 1.02rem/1 var(--display); padding: 10px 17px 8px; border-radius: 999px; box-shadow: 0 3px 0 rgba(11, 45, 107, 0.16); }
.main-nav a:hover { background: var(--butter); color: var(--navy); text-decoration: none; }
.main-nav a[aria-current="page"] { background: var(--marigold); color: var(--navy); text-decoration: none; }
@media (max-width: 1100px) and (min-width: 761px) { .header-row { justify-content: center; } }
@media (max-width: 760px) {
  .site-header { background: #fff; box-shadow: 0 2px 0 rgba(11, 45, 107, 0.08); }
  .header-row { min-height: 60px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
  .brand { box-shadow: none; padding: 4px 0; }
  .brand::before, .brand::after { display: none; }
  .wordmark { font-size: 1.24rem; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--sky-pale); color: var(--navy); border: 0; border-radius: 999px; font: 700 1rem var(--display); padding: 8px 14px 6px; }
  .menu-btn::before { content: ""; width: 18px; height: 14px; background: linear-gradient(var(--navy) 0 0) 0 0 / 100% 3px no-repeat, linear-gradient(var(--navy) 0 0) 0 50% / 100% 3px no-repeat, linear-gradient(var(--navy) 0 0) 0 100% / 100% 3px no-repeat; margin-top: -2px; }
  .menu-open .menu-btn { background: var(--marigold); }
  .has-menu.js-menu.menu-open .main-nav { gap: 8px; padding: 10px 0 12px; }
  .has-menu.menu-open .main-nav a { border-top: 0; padding: 13px 18px 11px; background: var(--bg); box-shadow: none; font-size: 1.08rem; }
  .has-menu.menu-open .main-nav a[aria-current="page"] { background: var(--marigold); }
}

/* ---------- buttons and form bits ---------- */
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--btn); color: var(--btn-text); border: 0; border-radius: 999px; font: 800 1.18rem/1.1 var(--display); padding: 13px 30px 11px; text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 #a82618; }
.btn:hover { background: var(--btn-hover); color: var(--btn-text); text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #a82618; }
.btn-green { background: var(--green-btn); color: var(--navy); box-shadow: 0 4px 0 var(--leaf-deep); }
.btn-green:hover { background: #6cc064; color: var(--navy); }
.btn-green:active { box-shadow: 0 2px 0 var(--leaf-deep); }
.printer-icon { width: 24px; height: 24px; }
.btn-quiet { background: none; border: 0; color: var(--link); font: 700 1rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0; }
label, legend, .label { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--navy); }
input[type="number"], input[type="text"], input[type="date"], input[type="time"], input[type="datetime-local"], select, .tool input, .tool select {
  font: 600 1.08rem var(--sans); color: var(--navy); background: #ffffff; border: 2px solid #e8d49a; border-radius: 14px; padding: 9px 13px; min-height: 48px; width: 100%; box-sizing: border-box; margin-top: 0;
}
.tool label { display: block; font-size: 1.05rem; font-weight: 700; }
.tool .hint { display: inline; font-size: 0.9rem; }
select, .tool select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%230b2d6b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
input::placeholder { color: #7486ab; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; }

/* country picker: a row of white pills; the chosen one goes leaf green with a tick */
.countries { display: flex; flex-wrap: wrap; gap: 7px; }
.countries label { position: relative; }
.countries input { position: absolute; opacity: 0; inset: 0; }
.countries span { display: inline-block; padding: 7px 15px 5px; border-radius: 999px; background: #fff; border: 2px solid #e8d49a; font: 700 1rem var(--display); cursor: pointer; color: var(--navy); }
.countries span:hover { border-color: var(--marigold-deep); }
.countries input:checked + span { background: var(--answer); border-color: var(--leaf); padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%233f9440' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 17px; }
.countries input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.seg { display: inline-flex; border: 2px solid #e8d49a; border-radius: 999px; overflow: hidden; background: #fff; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 7px 16px 5px; font: 700 1rem var(--display); cursor: pointer; }
.seg input:checked + span { background: var(--answer); color: var(--navy); }
.seg input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: -3px; }

/* ---------- the tool cards: butter with a marigold border ---------- */
.tool { background: var(--butter); border: 4px solid var(--marigold); border-radius: 26px; padding: 22px 26px 24px; box-shadow: 0 6px 0 rgba(11, 45, 107, 0.1); margin: 0 0 30px; }
.tool h2, .tool h3 { margin-top: 0; }
.tool h2::after { display: none; }
.tool-form > p:last-of-type { margin: 18px 0 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 18px; align-items: start; margin-top: 14px; }
.tool-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 16px; }
.field { display: grid; gap: 6px; }
.field .hint { font: 600 0.9rem var(--sans); color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.answer, .answer-hint { margin-top: 18px; border-radius: 26px; background: var(--answer); border: 0; padding: 18px 22px; color: var(--navy); }
.answer[hidden] { display: none; }
.answer h3 { font-size: 1.15rem; margin-top: 0; }
.answer-hint { display: flex; gap: 12px; align-items: center; font: 700 1.08rem/1.35 var(--display); margin-bottom: 0; }
.sprout-icon { width: 34px; height: 34px; flex: none; }
.big { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 2.8rem); line-height: 1.02; color: var(--navy); margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.big small { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 700; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 10px 0; }
.figure { background: #fff; border-radius: 16px; padding: 12px 14px; }
.figure b { display: block; font: 800 1.5rem/1.15 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.figure span { font-size: 0.93rem; color: var(--muted); }
.by { font-size: 0.93rem; color: var(--muted); margin: 8px 0 0; }
.note-ok, .note-warn, .note-stop { border-radius: 14px; padding: 10px 14px; margin: 10px 0; font-weight: 700; }
.note-ok { background: var(--ok-bg); color: var(--ok); }
.note-warn { background: var(--warn-bg); color: var(--warn); }
.note-stop { background: var(--stop-bg); color: var(--stop); }

/* the not-medical-advice line: a soft pink panel with a heart */
.ask { display: flex; gap: 12px; align-items: flex-start; background: var(--pink); color: var(--navy); border-radius: 22px; padding: 16px 20px; margin: 18px 0 0; font-size: 1rem; font-weight: 600; }
.ask a { color: var(--navy); font-weight: 700; }
.heart-icon { width: 26px; height: 24px; flex: none; margin-top: 1px; }
.hero-sub .heart-icon { display: inline-block; vertical-align: -3px; width: 24px; height: 22px; }

/* ---------- charts (tables): rounded, a marigold head row, source pills ---------- */
.chart-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 22px; background: #fff; margin: 12px 0 8px; border: 3px solid var(--marigold); }
table.chart { border-collapse: collapse; width: 100%; font-family: var(--display); font-weight: 500; font-size: 1.04rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
table.chart.wide { min-width: 640px; }
table.chart caption { text-align: left; padding: 12px 16px 6px; font-weight: 800; font-size: 1.05rem; background: #fff; }
table.chart th, table.chart td { text-align: left; vertical-align: top; padding: 10px 14px 9px; border-bottom: 2px solid #f6ebc8; }
table.chart td + td, table.chart th + td, table.chart thead th + th { border-left: 2px solid #f6ebc8; }
table.chart thead th { background: var(--marigold-soft); color: var(--navy); font-weight: 800; font-size: 1rem; position: sticky; top: 0; border-bottom: 0; }
table.chart thead th + th { border-left-color: #f2c94c; }
table.chart tbody th { font-weight: 700; background: #fff; position: sticky; left: 0; color: var(--navy); }
table.chart tbody tr:nth-child(even) td, table.chart tbody tr:nth-child(even) th { background: #fffbef; }
table.chart tbody tr:last-child th, table.chart tbody tr:last-child td { border-bottom: 0; }
table.chart .alt { display: block; font-weight: 500; color: var(--muted); font-size: 0.9rem; }
table.chart .src, table.chart .alt a { font-family: var(--sans); }
.chart-foot { font-size: 0.93rem; color: var(--muted); margin: 0 0 22px; }
.none { color: var(--muted); font-style: italic; }
a.q { display: inline-block; font: 800 0.76rem/1 var(--display); letter-spacing: 0.02em; padding: 5px 9px 3px; border-radius: 999px; text-decoration: none; margin: 0 0 0 4px; vertical-align: 1px; white-space: nowrap; background: #e6ecf7; color: var(--navy); }
a.q:hover { text-decoration: underline; }
a.q.m-us { background: #ffdcd8; color: #9e2016; }
a.q.m-uk { background: #d8e6ff; color: #1d4a9e; }
a.q.m-ca { background: #ffe6c7; color: #8a4500; }
a.q.m-au { background: #d7f1ec; color: #0d5f52; }
a.q.m-nz { background: #d4f0fb; color: #0b5873; }
a.q.m-ie { background: #e7defc; color: #55349c; }
a.q.m-who { background: #dcf2d2; color: #25651d; }
td > a.q:first-child { margin-left: 0; font-size: 0.95rem; padding: 6px 11px 4px; }

/* ---------- the "what they say" quotes ---------- */
.says { margin: 12px 0 20px; padding: 0; list-style: none; display: grid; gap: 10px; }
.says li { background: #fff; border-radius: 18px; padding: 12px 18px; border-left: 6px solid var(--leaf); }
.says q { quotes: "\201C" "\201D"; }
.says .who { display: block; font-size: 0.92rem; color: var(--muted); margin-top: 4px; }

/* ---------- home: the hero, the nursery wall ---------- */
.page-home main { background: var(--brand); padding-bottom: 46px; }
.hero { position: relative; background:
    var(--cloud-soft) 46% 6% / 150px auto no-repeat,
    var(--cloud-soft) 62% 64% / 110px auto no-repeat,
    var(--cloud-soft) 98% 30% / 120px auto no-repeat,
    var(--brand); }
.hero-in { position: relative; max-width: 1440px; margin: 0 auto; min-height: 640px; padding: 4px 0 70px; }
.hero-left { position: absolute; left: 0; bottom: 18px; width: clamp(260px, 26vw, 374px); z-index: 0; }
.hero-right { position: absolute; right: 0; bottom: 8px; width: clamp(380px, 39vw, 566px); z-index: 0; }
.hero-left svg, .hero-right svg { display: block; width: 100%; height: auto; }
.hero-main { position: relative; z-index: 2; margin-left: clamp(150px, 15vw, 214px); width: min(664px, 47vw); }
.title-cloud { position: relative; isolation: isolate; background: #fff; border-radius: 90px; padding: 26px 40px 28px; margin: 22px 0 0; }
.title-cloud::before, .title-cloud::after { content: ""; position: absolute; z-index: -1; background: #fff; border-radius: 50%; }
.title-cloud::before { width: 220px; height: 150px; top: -40px; left: 16%; }
.title-cloud::after { width: 170px; height: 120px; top: -26px; right: 12%; }
.title-cloud h1 { font-size: clamp(2.8rem, 4.4vw, 4rem); line-height: 0.98; margin: 0 0 8px; letter-spacing: -0.02em; white-space: nowrap; }
.hero-sub { font: 700 1.2rem/1.38 var(--sans); color: var(--navy); margin: 0; max-width: 30em; }
.calc-card { position: relative; margin: 16px 0 0 clamp(0px, 8vw, 112px); padding: 16px 24px 18px; box-shadow: 0 8px 0 rgba(11, 45, 107, 0.16); }
.calc-card h2 { font-size: 1.62rem; margin: 0; }
.calc-card .tool-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 10px 16px; margin-top: 8px; }
.calc-card .field { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px; }
.calc-card .field > label, .calc-card .field > .label { font-size: 1rem; line-height: 1.15; }
.calc-card [data-kg], .calc-card [data-lb] { grid-column: 1 / -1; grid-template-columns: 7.2em minmax(0, 170px) auto; }
.calc-card .field .hint { display: block; font-size: 0.82rem; line-height: 1.2; margin-top: 2px; }
@media (min-width: 861px) { .calc-card .answer-hint { padding: 12px 18px; } .calc-card .tool-form > p:last-of-type { margin-top: 10px; } }
.calc-card .btn-quiet { font-size: 0.95rem; white-space: nowrap; }
.page-home .chart-sec caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.calc-card .tool-form > p:last-of-type { text-align: center; margin-top: 14px; }
.calc-card .tool-form > p:last-of-type::before, .calc-card .tool-form > p:last-of-type::after { content: ""; display: inline-block; width: 26px; height: 26px; vertical-align: middle; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cg stroke='%23f24b3c' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M5 9l9-4M5 16h12M5 23l9 4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.calc-card .tool-form > p:last-of-type::before { transform: scaleX(-1); margin-right: 10px; }
.calc-card .tool-form > p:last-of-type::after { margin-left: 10px; }
.calc-card .btn { font-size: 1.22rem; padding: 13px 36px 11px; }
.calc-card .answer, .calc-card .answer-hint { margin-top: 14px; }
.calc-card .countries span { font-size: 0.97rem; padding: 6px 13px 4px; }
.calc-card .countries input:checked + span { padding-right: 32px; }

/* ---------- home: the butter panel below the hero ---------- */
.home-panel { position: relative; z-index: 3; max-width: 1392px; margin: -54px auto 0; background: var(--bg); border-radius: 34px; padding: 26px 34px 64px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 34px; align-items: start; box-shadow: 0 -4px 0 rgba(11, 45, 107, 0.06); }
.home-panel::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 30px; background: var(--grass) 0 100% / 120px 30px repeat-x; opacity: 0.9; border-radius: 0 0 30px 30px; pointer-events: none; }
.home-panel::before { content: ""; position: absolute; left: 18px; right: 18px; bottom: 10px; height: 50px; background: var(--flowers) 0 100% / 240px auto no-repeat, var(--flowers) 100% 100% / 240px auto no-repeat, var(--flowers) 46% 100% / 200px auto no-repeat; pointer-events: none; z-index: 1; }
.home-panel h2 { margin: 0.35em 0 0.45em; font-size: clamp(1.6rem, 2.3vw, 2rem); }
.home-panel section + section { margin-top: 20px; padding-top: 18px; border-top: 2px dashed #ecd9a0; }
.mid-col { border-left: 2px dashed #ecd9a0; padding-left: 30px; }
.chart-sec .section-sub { font-size: 1rem; margin-bottom: 6px; }
.chart-sec table.chart { font-size: 0.99rem; }
.chart-sec table.chart th, .chart-sec table.chart td { padding: 9px 11px 8px; }
.print-row { text-align: center; margin: 18px 0 0; }
.print-row::before, .print-row::after { content: ""; display: inline-block; width: 26px; height: 26px; vertical-align: middle; background: var(--sparkle) center / contain no-repeat; }
.print-row::before { transform: scaleX(-1); margin-right: 10px; }
.print-row::after { margin-left: 10px; }
.country-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 8px 0 12px; }
.country-row a { flex: 1 1 128px; background: var(--sky-pale); color: var(--navy); text-decoration: none; padding: 9px 14px 8px; border-radius: 18px; font: 800 1.04rem/1.15 var(--display); text-align: center; box-shadow: inset 0 -4px 0 #bcd3f8; }
.country-row a:hover { background: var(--marigold-soft); box-shadow: inset 0 -4px 0 var(--marigold-deep); color: var(--navy); }
.country-row a small { display: block; font: 600 0.8rem/1.25 var(--sans); color: var(--muted); margin-top: 2px; }
.country-row a:hover small { color: var(--navy); }
.tool-tiles { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tool-tiles a { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; background: var(--tile); border-radius: 18px; padding: 12px 8px 12px; text-align: center; text-decoration: none; color: var(--navy); font: 800 0.98rem/1.12 var(--display); box-shadow: inset 0 -4px 0 #cfe8b8; }
.tool-tiles a:hover { background: #dcf0c8; color: var(--navy); }
.tool-tiles .icon { width: 58px; height: 58px; flex: none; }
.sources-card { position: relative; background: var(--sky-pale); border-radius: 26px; padding: 22px 24px 14px; margin-top: 104px; }
.chart-sec .ask { margin-top: 22px; }
.sources-card h2 { margin-top: 0; font-size: 1.55rem; line-height: 1.08; }
.sources-card h2::after { display: none; }
.sources-card p { font-size: 1rem; margin: 0 0 10px; }
.sources-card .peek { position: absolute; top: -84px; right: 22px; width: 160px; }
.sources-card .peek svg { display: block; width: 100%; height: auto; }
.faq-panel { margin-top: 26px; grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
.faq-panel .faq-art .spot { width: 200px; height: auto; display: block; margin-top: 20px; }
.faq-panel .faqs { max-width: 900px; }

@media (max-width: 1100px) {
  .hero-main { margin-left: clamp(16px, 3vw, 40px); width: min(580px, 55vw); }
  .hero-left { display: none; }
  .hero-right { width: min(42vw, 500px); }
}
@media (max-width: 960px) {
  .home-panel { grid-template-columns: minmax(0, 1fr); padding: 22px 22px 60px; }
  .mid-col { border-left: 0; padding-left: 0; margin-top: 22px; padding-top: 18px; border-top: 2px dashed #ecd9a0; }
}
@media (max-width: 960px) {
  .hero-in { min-height: 0; padding: 0 16px 0; display: flex; flex-direction: column; }
  .hero-main { width: auto; margin: 0; }
  .title-cloud { padding: 24px 26px 24px; border-radius: 60px; margin-top: 30px; }
  .title-cloud::before { width: 150px; height: 100px; top: -30px; }
  .title-cloud::after { width: 110px; height: 80px; top: -18px; }
  .calc-card { margin-left: 0; }
  .hero-right { position: relative; width: min(100%, 460px); margin: -6px auto 0; bottom: auto; right: auto; }
  .home-panel { margin-top: -40px; border-radius: 28px; margin-left: 8px; margin-right: 8px; }
  .faq-panel { grid-template-columns: minmax(0, 1fr); }
  .faq-panel .faq-art { display: none; }
}
@media (max-width: 600px) {
  .title-cloud h1 { font-size: 2.7rem; }
  .hero-sub { font-size: 1.08rem; }
  .calc-card { padding: 16px 16px 18px; border-radius: 22px; }
  .calc-card h2 { font-size: 1.42rem; }
  .calc-card .tool-grid { grid-template-columns: 1fr; }
  .calc-card .tool-form > p:last-of-type::before, .calc-card .tool-form > p:last-of-type::after { display: none; }
  .calc-card .btn { width: 100%; }
  .home-panel { padding: 18px 14px 60px; margin-left: 6px; margin-right: 6px; }
  .tool-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .country-row a { flex-basis: 130px; }
}

/* ---------- article pages: the sky head with the title on a cloud, a character on the meadow ---------- */
.article-wrap { max-width: 1180px; padding-top: 0; }
.crumbs { width: fit-content; max-width: 100%; position: relative; z-index: 1; margin: 0; padding: 6px 16px 4px; background: #fff; border-radius: 999px; font: 700 0.95rem var(--display); color: var(--muted); box-shadow: 0 0 0 100vmax var(--brand); clip-path: inset(-14px -100vmax 0 -100vmax); top: 0; }
.crumbs a { color: var(--navy); }
.page-head, .page-head.has-art {
  max-width: none; margin: 0 calc(50% - 50vw) 30px; padding: 26px calc(50vw - 50%) 0; min-height: 280px;
  background:
    var(--flowers) 6% calc(100% - 8px) / 220px auto no-repeat,
    var(--flowers) 70% calc(100% - 4px) / 200px auto no-repeat,
    var(--meadow-strip) 0 100% / 100% 92px no-repeat,
    var(--cloud-soft) 58% 18% / 130px auto no-repeat,
    var(--cloud-soft) 96% 70% / 110px auto no-repeat,
    var(--brand);
}
.page-head.has-art { display: flex; align-items: flex-end; gap: 30px; }
.page-head-text, .page-head > h1:first-child { position: relative; isolation: isolate; background: #fff; border-radius: 48px; padding: 22px 32px 6px; margin: 10px 0 70px; max-width: 780px; }
.page-head.has-art .page-head-text { flex: 1 1 auto; max-width: 780px; }
.page-head-text::before, .page-head-text::after { content: ""; position: absolute; z-index: -1; background: #fff; border-radius: 50%; }
.page-head-text::before { width: 150px; height: 90px; top: -24px; left: 10%; }
.page-head-text::after { width: 110px; height: 70px; top: -16px; left: 34%; }
.page-head h1 { color: var(--navy); font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin: 0 0 8px; }
.page-head .lede { color: var(--navy); font-size: 1.14rem; font-weight: 600; line-height: 1.5; max-width: 42em; margin: 0 0 10px; }
.page-head .byline, .page-head .byline time { color: var(--muted); font-size: 0.92rem; }
.page-head-art { flex: 0 0 auto; width: clamp(150px, 20vw, 250px); align-self: flex-end; margin-bottom: 6px; }
.page-head-art .spot { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .crumbs { margin-top: 12px; clip-path: inset(-12px -100vmax 0 -100vmax); }
  .page-head, .page-head.has-art { flex-direction: column; align-items: stretch; gap: 0; padding-top: 18px; min-height: 0; background-size: 150px auto, 140px auto, 100% 70px, 100px auto, 90px auto, auto; }
  .page-head-text { padding: 18px 20px 4px; border-radius: 30px; margin: 6px 0 0; }
  .page-head-text::before { width: 110px; height: 70px; top: -18px; }
  .page-head-text::after { display: none; }
  .page-head h1 { font-size: 2.05rem; }
  .page-head .lede { font-size: 1.04rem; }
  .page-head-art { width: 150px; align-self: center; margin: -10px 0 4px; }
}
.page-body { max-width: 860px; }
.page.has-toc .page-body { max-width: none; }
.toc { background: #fff; border: 3px solid var(--marigold-soft); border-radius: 22px; padding: 14px 18px; }
.toc-title { font: 800 1.08rem var(--display); color: var(--navy); margin: 0 0 4px; }
.toc a { color: var(--navy); }
.page-body > p:first-child { margin-top: 0; }
ul.plain-list { padding-left: 1.2em; }
ul.plain-list li { margin: 0 0 8px; }
ul.plain-list li::marker { color: var(--marigold-deep); }

/* ---------- lists of tools (tools page, country pages) ---------- */
.tools-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.tools-list li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; background: var(--tile); border-radius: 20px; padding: 14px 16px; box-shadow: inset 0 -4px 0 #cfe8b8; }
.tools-list li:nth-child(3n+2) { background: var(--sky-pale); box-shadow: inset 0 -4px 0 #bcd3f8; }
.tools-list li:nth-child(3n) { background: #fff1c2; box-shadow: inset 0 -4px 0 #f3d98a; }
.tools-list .icon { width: 64px; height: 64px; }
.tools-list a { font: 800 1.16rem/1.15 var(--display); text-decoration: none; color: var(--navy); }
.tools-list a:hover { text-decoration: underline; }
.tools-list p { margin: 4px 0 0; font-size: 0.97rem; color: var(--muted); }
.country-row a[data-market] { min-width: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.faqs details, details { background: #fff; border-radius: 18px; padding: 12px 18px; margin: 10px 0; border: 0; }
.faqs summary, details summary { cursor: pointer; font: 700 1.1rem/1.3 var(--display); color: var(--navy); }
.faqs details p { margin: 8px 0 2px; }

/* ---------- the tracker ---------- */
.log { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.log li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; background: #fff; border-radius: 14px; padding: 10px 14px; border: 2px solid var(--line); }
.log .t { font-weight: 700; font-family: var(--display); font-variant-numeric: tabular-nums; }
.log button { background: none; border: 0; color: var(--stop); font: 700 0.92rem var(--sans); cursor: pointer; text-decoration: underline; }
.dial { width: 100%; max-width: 360px; height: auto; display: block; margin: 8px auto; }
ol.times { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
ol.times li { background: var(--sky-pale); color: var(--navy); border-radius: 999px; padding: 7px 15px 5px; font: 800 1.05rem var(--display); font-variant-numeric: tabular-nums; }

/* ---------- footer: the meadow ---------- */
.site-footer { position: relative; background: var(--meadow); color: var(--navy); margin-top: 70px; padding: 44px 0 26px; border-top: 0; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 30px; background: var(--grass) 0 100% / 120px 30px repeat-x; }
.page-home .site-footer { margin-top: 0; }
.site-footer a, .site-footer .brand { color: var(--navy); }
.site-footer .brand { box-shadow: none; }
.site-footer h2 { color: var(--navy); font: 800 1.15rem var(--display); margin: 0 0 8px; text-transform: none; letter-spacing: 0; }
.site-footer p, .footer-note, .footer-publisher, .footer-links { color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0 0 6px; font-size: 0.98rem; }
.footer-legal { border-top: 2px dashed #bfe0a3; margin-top: 26px; padding-top: 18px; font-size: 0.93rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- the 404 (the kit's page, no head): the lost mouse on the sky ---------- */
.page:not(:has(.page-head)) { margin: 0 calc(50% - 50vw) -70px; padding: 40px calc(50vw - 50% + 24px) 200px; min-height: 420px; background: url("/img/art/lost-mouse.svg") right calc(50vw - 50% + 40px) bottom 60px / 230px auto no-repeat, var(--meadow-strip) 0 100% / 100% 92px no-repeat, var(--brand); }
.page:not(:has(.page-head)) > h1, .page:not(:has(.page-head)) > p { width: fit-content; max-width: 100%; background: #fff; border-radius: 40px; padding: 16px 30px 10px; margin: 0 0 14px; }
.page:not(:has(.page-head)) > p { padding: 12px 24px; font-weight: 700; }

/* ---------- print: the fridge charts ---------- */
@media print {
  .site-header, .site-footer, .crumbs, .toc, .no-print, .page-head-art, .tool form { display: none !important; }
  body { background: #ffffff; font-size: 11pt; }
  .page-head, .page-head.has-art { background: none; color: #000; padding: 0; margin: 0 0 8pt; min-height: 0; }
  .page-head-text { padding: 0; margin: 0; }
  .page-head h1, .page-head .lede, .page-head .byline { color: #000; }
  .chart-wrap { box-shadow: none; overflow: visible; border-color: #999; }
  table.chart { min-width: 0; font-size: 10pt; }
  table.chart thead th { background: #eee; color: #000; }
  table.chart tbody tr:nth-child(even) td, table.chart tbody tr:nth-child(even) th { background: #f6f6f6; }
  a { color: #000; text-decoration: none; }
  a.q { background: none; color: #000; padding: 0; }
  .print-page { break-after: page; }
}

/* ---------- small pieces ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-body .says, .page-body .plain-list { max-width: 820px; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  table.chart th, table.chart td { padding: 8px 10px 7px; }
  table.chart { font-size: 0.98rem; }
  table.chart.wide tbody th { min-width: 8.5em; }
  .figures { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .figure { padding: 10px; }
  .figure b { font-size: 1.2rem; }
  .tool { padding: 16px 16px 18px; border-radius: 22px; }
}
.page-compare .page-body, .page-breast-milk-storage .page-body, .page-how-long-is-formula-good-for .page-body { max-width: none; }
@media (min-width: 601px) {
  .calc-card .pair { grid-template-columns: 60px minmax(112px, 1fr); }
  .calc-card .pair input { padding-left: 10px; padding-right: 6px; }
  .calc-card .pair select { padding-left: 10px; padding-right: 32px; background-position: right 9px center; }
  .calc-card .tool-grid { grid-template-columns: minmax(212px, auto) minmax(0, 1fr); }
  .calc-card .field-country select { min-width: 96px; }
}
@media (max-width: 960px) { .title-cloud h1 { white-space: normal; } }
@media (max-width: 600px) {
  .calc-card .field { grid-template-columns: 7.2em minmax(0, 1fr); }
  .calc-card .pair { grid-template-columns: 64px minmax(0, 1fr); }
  .calc-card [data-kg], .calc-card [data-lb] { grid-template-columns: 7.2em minmax(0, 1fr); }
  .calc-card [data-kg] .btn-quiet, .calc-card [data-lb] .btn-quiet { grid-column: 2; justify-self: start; }
  /* charts of 4 columns or more: one card per row */
  table.chart.stack, table.chart.stack tbody { display: block; min-width: 0; }
  table.chart.stack thead { display: none; }
  table.chart.stack caption { display: block; }
  table.chart.stack tr { display: block; border-bottom: 3px solid var(--marigold-soft); }
  table.chart.stack tr:last-child { border-bottom: 0; }
  table.chart.stack tbody th { display: block; position: static; background: #fff6d6 !important; font-size: 1.12rem; font-weight: 800; padding: 10px 14px 8px; border: 0; }
  table.chart.stack tbody th:empty { display: none; }
  table.chart.stack td { display: block; position: relative; border-left: 0 !important; background: #fff !important; padding: 8px 14px 8px calc(14px + 6.4em); }
  table.chart.stack td::before { content: attr(data-label); position: absolute; left: 14px; top: 9px; width: 6em; font-weight: 800; color: var(--muted); font-size: 0.9rem; line-height: 1.3; }
  table.chart.stack td[data-label=""] { padding-left: 14px; }
  table.chart.stack td[data-label=""]::before { display: none; }
}
/* the contents column: the text track fills the article, so the page head's full-width sky lines up with the window */
@media (min-width: 1100px) { .page.has-toc { grid-template-columns: minmax(0, 1fr) 250px; column-gap: 56px; } .page.has-toc .page-body { max-width: 860px; } }
