/* Family stylesheet (FAM13) - the ONE copy of the rules these pages used to carry each in their own
   <style> (DUPE-SITEWIDE1 / COPY-ONE1). Linked by each page immediately BEFORE its own <style>, so
   the cascade order is unchanged. Edit a shared rule HERE, never back in a page.
   The RESULT-STEADY block below was re-measured on 26 Nov 2026 after the children's dose tools redesign.
   Pages: /tools/alcohol-units.html, /tools/bmi-calculator.html, /tools/childrens-ibuprofen-dose.html, /tools/childrens-paracetamol-dose.html, /tools/nhs-prescription-cost.html, /tools/pregnancy-due-date.html, /tools/quit-smoking-savings.html */

:root { --teal: #0f5257; --dark-teal: #0A2E36; --cream: #F5F5F2; --terracotta: #9c4a2f; --text: #1f2937; --muted: #5b6470; --border: #e5e7eb; --ok: #2e7d32; --warn: #c17b00; --error: #c0392b; }

* { box-sizing: border-box; }

body { font-family: 'Proxima Nova', -apple-system, sans-serif; background: var(--cream); color: var(--text); line-height: 1.65; margin: 0; }

h1, h2, h3 { font-family: 'Proxima Nova', sans-serif; color: var(--dark-teal); font-weight: 700; margin: 0 0 14px; }

a { color: var(--teal); }

main { max-width: 820px; margin: 0 auto; padding: 40px 24px 64px; }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.crumbs a { color: var(--muted); text-decoration: none; }

h1 { font-size: 38px; line-height: 1.15; margin-bottom: 10px; }

.lead { font-size: 16.5px; color: var(--text); margin-bottom: 24px; max-width: 700px; }

.context-block { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 22px 28px; margin: 28px 0; }

.context-block h2 { font-size: 20px; margin-bottom: 12px; }

.context-block ul { padding-left: 22px; margin: 0; font-size: 16px; max-width: 70ch; }   /* TASTE-READ2: body size, 65-75ch */

.context-block li { margin-bottom: 6px; }

.context-block li strong { color: var(--dark-teal); }

/* PAED-DOSE-LICENCE1 dose tables (children's ibuprofen and paracetamol pages): rows come from the calculator's
   licence data and are held to it by scripts/check_age_gate.py section 10. */
.dose-tables h3 { font-size: 17px; margin: 24px 0 10px; }
.dose-tables p { font-size: 16px; margin: 0 0 12px; }   /* TASTE-READ2 */
.dose-tables p:not(.dose-note) { max-width: 70ch; }
.dose-table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; margin: 0 0 12px; }
.dose-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; padding: 0 12px 8px 0; border-bottom: 1.5px solid var(--border); vertical-align: bottom; }
.dose-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--dark-teal); font-weight: 600; }
.dose-table td span { display: block; font-weight: 400; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.dose-table tbody tr:last-child td { border-bottom: none; }
.dose-table th:last-child, .dose-table td:last-child { text-align: right; padding-right: 0; }
.dose-table td:nth-child(2), .dose-table td:last-child { white-space: nowrap; }
.dose-tables .dose-note { font-size: 16px; background: var(--cream); border-radius: 8px; padding: 12px 14px; }

/* Below-the-calculator sections of the two children's dose pages (DOSE-BELOW1, 26 Nov 2026). Only those pages use these
   classes; .context-block above is shared with the other tool pages and stays as it is. Rhythm: the product rail and
   the dose tables are the boxed reference; the red flags are a full tinted panel (no side stripe); the paracetamol or
   ibuprofen notes sit open on the page; "After the dose" is the one dark panel with its call button and link rows;
   the sources close the page as a plain list under a rule. */
.dose-tables .dose-table td span { font-size: 16px; }
.red-flags { background: rgba(192,57,43,0.06); border: 1px solid rgba(192,57,43,0.32); border-radius: 12px; padding: 22px 28px; margin: 28px 0; }
.red-flags h2 { font-size: 20px; margin-bottom: 12px; color: var(--error); }
.red-flags ul { padding-left: 22px; margin: 0; font-size: 16px; max-width: 70ch; }
.red-flags li { margin-bottom: 6px; }
.red-flags .rf-sub { margin: 18px 0 8px; }
.red-flags .rf-end { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(192,57,43,0.22); font-size: 16px; }
.dose-open { margin: 44px 0 0; }
.dose-open h2 { font-size: 22px; margin-bottom: 12px; }
.dose-open ul { padding-left: 22px; margin: 0; font-size: 16px; max-width: 70ch; }
.dose-open li { margin-bottom: 8px; }
.dose-open li strong { color: var(--dark-teal); }
.dose-after { background: var(--dark-teal); color: var(--cream); border-radius: 16px; padding: 30px 32px 22px; margin: 44px 0 0; }
.dose-after h2 { color: var(--cream); font-size: 24px; margin-bottom: 14px; }
.dose-after a, .dose-after strong { color: var(--cream); }
.dose-after-first { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid rgba(245,245,242,0.18); }
.dose-after-first p { margin: 0; flex: 1 1 340px; font-size: 16px; max-width: 60ch; }
.dose-after .dose-after-call { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--cream); color: var(--dark-teal); font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .dose-after .dose-after-call:hover { background: white; } }   /* a tap must not leave it lit */
.dose-after-call:focus-visible, .dose-after-links a:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.dose-after-links { list-style: none; margin: 0; padding: 0; }
.dose-after-links li { border-bottom: 1px solid rgba(245,245,242,0.18); }
.dose-after-links li:last-child { border-bottom: none; }
.dose-after-links a { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center; min-height: 56px; padding: 14px 0; text-decoration: none; }
.dose-after-links a::after { content: "›"; grid-column: 2; grid-row: 1 / span 2; font-size: 26px; line-height: 1; opacity: 0.7; }
@media (hover: hover) and (pointer: fine) { .dose-after-links a:hover .dal-label { text-decoration: underline; text-underline-offset: 3px; } }
.dal-label { grid-column: 1; font-weight: 700; font-size: 17px; }
.dal-note { grid-column: 1; font-size: 16px; color: rgba(245,245,242,0.84); margin-top: 3px; }
.dose-after-warn { margin: 6px 0 12px; padding: 14px 16px; border-radius: 10px; background: rgba(245,245,242,0.08); font-size: 16px; }
.dose-sources { margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--border); font-size: 16px; color: var(--muted); }
.dose-sources h2 { font-size: 17px; margin-bottom: 10px; }
.dose-sources p { margin: 0 0 10px; max-width: 70ch; }
.dose-sources ul { margin: 0 0 12px; padding-left: 20px; }
.dose-sources li { margin-bottom: 4px; }
@media (max-width: 480px) {
  .red-flags { padding: 18px 16px; }
  .dose-after { padding: 24px 18px 12px; border-radius: 14px; }
  .dose-after h2 { font-size: 22px; }
  .dose-after .dose-after-call { width: 100%; }
}
@media (max-width: 480px) { .context-block { padding: 18px 16px; } }
/* On a phone the dose tables, their notes and the red flags read at body size (DESIGN-WORKER1, 8 Nov 2026): a child's
   weight band sat at 13.5px and the "do not give" list at 14.5px. Desktop unchanged. `main` outranks each dose page's
   own .red-flags rule, which loads after this sheet. */
@media (max-width: 600px) {
  .dose-tables p, .dose-tables .dose-note { font-size: 16px; }
  .dose-table td span { font-size: 16px; }
  .dose-table th { font-size: 13px; }
  main .red-flags ul { font-size: 16px; }
}

footer.compliance-footer { background: var(--dark-teal); color: var(--cream); padding: 32px 24px; font-size: 13px; margin-top: 60px; }

.compliance-footer .small { opacity: 0.7; font-size: 13px; margin-top: 10px; }

/* Phone feel for the tools pages. Android paints a blue box over a tapped link, so the box goes and each control
   dims while pressed instead (the .ibu7 controls keep their own press state in calculators.css). */
main a, main button, main summary { -webkit-tap-highlight-color: transparent; }
main a:not(.ibu7 *):active, main summary:not(.ibu7 *):active { opacity: .72; }
/* The floating WhatsApp and call buttons stay in their corner; on a phone the footer gets room under its last line so
   they never sit over the footer links when the page is scrolled to the end. */
@media (max-width: 600px) { body:has(.fab-stack) footer.compliance-footer { padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)) !important; } }

/* CALC-RESERVE1 (27 Oct) -> CALC-RESERVE2 (1 Nov) -> RETIRED by DRAW-BEFORE-SHOW1 (1 Nov 2026): calculators were drawn
   into an EMPTY [data-calc] box after the page was on screen, so the boxes held measured min-heights - right for only
   one font state (proxima.css is font-display: optional, so a first visit can draw in the fallback font and run 20-40px
   taller or shorter). Each tools page now loads src/widgets/calculators.js straight after its box, so the calculator is
   drawn before anything below it is shown and no space needs holding. Proof: scripts/mobile-bot/calc_reserve.py --check. */

/* RESULT-STEADY1 heights (1 Nov 2026): the result box of each picker-answered calculator (.calc-output.steady, rules in
   src/widgets/calculators.css) holds the TALLEST answer it can show at that width - every age 0-17 and product for
   the dose tools, LMP 0-400 days back for pregnancy, every drink at 1/3/8 drinks for alcohol - so a pick fills the box
   in place and nothing under it moves. MEASURED by scripts/mobile-bot/calc_reserve.py --write (every 1px, 320-1280px),
   which then measures CALC-RESERVE2 above with these boxes in place; --check proves both. */
/* RESULT-STEADY GENERATED START - scripts/mobile-bot/calc_reserve.py --write; edit THAT, never this block */
[data-calc="alcohol-units"] .calc-output.steady { min-height: 497px; }
[data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 1641px; }
[data-calc="paed-paracetamol"] .calc-output.steady { min-height: 372px; }
[data-calc="pregnancy"] .calc-output.steady { min-height: 294px; }
@media (max-width: 1103px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2718px; } }
@media (max-width: 1086px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2702px; } }
@media (max-width: 1069px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2685px; } }
@media (max-width: 1052px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2669px; } }
@media (max-width: 1035px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2653px; } }
@media (max-width: 1018px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2637px; } }
@media (max-width: 1001px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2620px; } }
@media (max-width: 988px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2634px; } }
@media (max-width: 971px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2617px; } }
@media (max-width: 954px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2601px; } }
@media (max-width: 937px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2585px; } }
@media (max-width: 920px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2568px; } }
@media (max-width: 903px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2552px; } }
@media (max-width: 886px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2536px; } }
@media (max-width: 869px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2519px; } }
@media (max-width: 852px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2503px; } }
@media (max-width: 835px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2492px; } }
@media (max-width: 808px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2476px; } }
@media (max-width: 791px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2459px; } }
@media (max-width: 774px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2443px; } }
@media (max-width: 767px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2482px; } [data-calc="paed-paracetamol"] .calc-output.steady { min-height: 340px; } }
@media (max-width: 750px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2465px; } }
@media (max-width: 733px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2460px; } }
@media (max-width: 712px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2444px; } }
@media (max-width: 695px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2427px; } }
@media (max-width: 678px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2411px; } }
@media (max-width: 667px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2424px; } }
@media (max-width: 660px) { [data-calc="alcohol-units"] .calc-output.steady { min-height: 274px; } [data-calc="pregnancy"] .calc-output.steady { min-height: 274px; } }
@media (max-width: 650px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2408px; } }
@media (max-width: 640px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2243px; } }
@media (max-width: 618px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2226px; } }
@media (max-width: 606px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2238px; } }
@media (max-width: 600px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2254px; } }
@media (max-width: 595px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2274px; } }
@media (max-width: 573px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2258px; } }
@media (max-width: 564px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2269px; } }
@media (max-width: 541px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2265px; } }
@media (max-width: 509px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2248px; } }
@media (max-width: 490px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2241px; } }
@media (max-width: 487px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2265px; } }
@media (max-width: 476px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2274px; } }
@media (max-width: 472px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2295px; } }
@media (max-width: 457px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2278px; } }
@media (max-width: 442px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2262px; } }
@media (max-width: 422px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2245px; } }
@media (max-width: 410px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2263px; } }
@media (max-width: 405px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2279px; } }
@media (max-width: 395px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2300px; } }
@media (max-width: 386px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2318px; } }
@media (max-width: 382px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2360px; } }
@media (max-width: 381px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2387px; } }
@media (max-width: 380px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2438px; } }
@media (max-width: 374px) { [data-calc="alcohol-units"] .calc-output.steady { min-height: 295px; } }
@media (max-width: 365px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2451px; } }
@media (max-width: 360px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2493px; } }
@media (max-width: 359px) { [data-calc="alcohol-units"] .calc-output.steady { min-height: 319px; } [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2518px; } [data-calc="pregnancy"] .calc-output.steady { min-height: 298px; } }
@media (max-width: 356px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2578px; } }
@media (max-width: 345px) { [data-calc="pregnancy"] .calc-output.steady { min-height: 319px; } }
@media (max-width: 334px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2592px; } }
@media (max-width: 327px) { [data-calc="paed-ibuprofen"] .calc-output.steady { min-height: 2632px; } }
/* RESULT-STEADY GENERATED END */
