/* Limi Children's Hospital — design system.
   One stylesheet for chrome, page furniture and the reading components.
   Interactive tools add lch-tools.css on the pages that use them.

   Colour is information here, not decoration:
   the six letters of "Children's" in the wordmark become the six stages of
   childhood, and red is kept for one job only — urgent. */

/* ─────────────────────────── tokens ─────────────────────────── */
:root {
  --ink: #13233F;          /* navy ink, not black: the logo's type sits on navy in print */
  --ink-2: #44536B;        /* secondary text, 7.4:1 on white */
  --ink-3: #6A778C;        /* captions, meta, 4.6:1 on white */
  --paper: #FFFFFF;
  --wash: #F1F5F9;         /* cool section wash */
  --wash-2: #E6EDF4;
  --line: #D6DEE8;
  --line-2: #BCC8D6;

  --blue: #0068B7;         /* action colour: the wordmark "C", darkened to 5.6:1 */
  --blue-deep: #00508E;
  --sky: #00A0E3;          /* the logo's cyan parent, decorative only */

  --red: #D8000C;          /* urgent — and nothing else */
  --red-deep: #A5000A;
  --red-tint: #FDECEC;
  --amber: #B45F00;        /* "today" in the act-now scale */
  --amber-tint: #FFF3E0;
  --green: #00703C;        /* "at home" in the act-now scale */
  --green-tint: #E3F4EA;

  /* stage palette: bold swatch / readable ink / quiet tint */
  --st-pregnancy: #A8518A;  --st-pregnancy-ink: #7B2F63; --st-pregnancy-tint: #F7EAF3;
  --st-newborn:   #00A0E3;  --st-newborn-ink:   #005E8C; --st-newborn-tint:   #E2F4FC;
  --st-baby:      #FFC32D;  --st-baby-ink:      #7A5000; --st-baby-tint:      #FFF6DC;
  --st-toddler:   #00A85A;  --st-toddler-ink:   #00693A; --st-toddler-tint:   #E1F5EA;
  --st-child:     #F5873A;  --st-child-ink:     #9A4306; --st-child-tint:     #FEEFE3;
  --st-teen:      #3F4096;  --st-teen-ink:      #3F4096; --st-teen-tint:      #ECECF7;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-s: 6px;
  --r-m: 12px;
  --r-l: 22px;

  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(56px, 8vw, 112px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
}

/* ─────────────────────────── base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 600; letter-spacing: -.022em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.22; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
small, .meta { font-size: .875rem; color: var(--ink-3); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─────────────────────────── group bar ─────────────────────────── */
.groupbar { background: var(--ink); color: #D9E2EE; font-size: .8125rem; }
.groupbar__in { display: flex; align-items: center; gap: 18px; min-height: 40px; }
.groupbar__label { color: #9FB0C6; white-space: nowrap; }
.groupbar__nav { display: flex; align-items: center; gap: 4px; }
.groupbar__nav a { display: flex; align-items: center; padding: 6px 10px; border-radius: 6px; opacity: .62; transition: opacity .2s, background .2s; }
.groupbar__nav a:hover, .groupbar__nav a.is-active { opacity: 1; background: rgba(255,255,255,.08); }
.gb__logo { height: 17px; width: auto; }
.gb__logo--cmh { height: 15px; }
.groupbar__tel { margin-left: auto; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 600; }
.groupbar__tel:hover { color: #fff; text-decoration: underline; }
@media (max-width: 760px) { .groupbar__label, .groupbar__nav { display: none; } .groupbar__tel { margin: 0 auto; } }

/* ─────────────────────────── header ─────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.hdr.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(19,35,63,.35); }
.hdr__in { display: flex; align-items: center; gap: 22px; min-height: 76px; transition: min-height .25s var(--ease); }
.hdr.is-stuck .hdr__in { min-height: 62px; }
.hdr__brand { display: block; flex: none; }
.hdr__brand img { height: 46px; width: auto; transition: height .25s var(--ease); }
.hdr.is-stuck .hdr__brand img { height: 38px; }
.hdr__nav { display: flex; gap: 2px; margin-left: auto; }
.hdr__nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; padding: 10px 11px; border-radius: 8px; position: relative; white-space: nowrap; }
.hdr__nav a:hover { background: var(--wash); color: var(--ink); }
.hdr__nav a.is-on { color: var(--blue); }
.hdr__nav a.is-on::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px; border-radius: 2px; background: currentColor; }
.hdr__acts { display: flex; gap: 8px; align-items: center; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; transition: transform .25s var(--ease), opacity .2s; }
.burger span { top: 22px; }
.burger span::before { left: 0; right: 0; top: -7px; }
.burger span::after { left: 0; right: 0; top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.mnav { display: none; }
@media (max-width: 1180px) { .hdr__nav a { padding: 10px 8px; font-size: .9rem; } }
@media (max-width: 1060px) {
  .hdr__nav, .hdr__acts .btn--book { display: none; }
  .hdr__acts { margin-left: auto; }
  .burger { display: block; }
  .mnav { position: fixed; inset: 0; top: 0; z-index: 49; background: #fff; padding: 120px var(--gut) 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .22s, transform .22s var(--ease), visibility .22s; }
  .mnav.is-open { opacity: 1; transform: none; visibility: visible; }
  .mnav a { color: var(--ink); text-decoration: none; font: 600 1.35rem/1.2 var(--serif); padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mnav .btn { margin-top: 18px; font: 700 1rem/1 var(--sans); border: 0; justify-content: center; }
  .mnav__k { margin: 26px 0 4px; color: var(--ink-3); font-size: .875rem; }
  .mnav a.mnav__sm { font: 500 1rem/1.3 var(--sans); }
}
@media (max-width: 520px) { .hdr__brand img { height: 36px; } .hdr__acts .btn--urgent { padding: 0 14px; } }

/* ─────────────────────────── buttons ─────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--blue); background: var(--blue); color: #fff; font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s, transform .18s var(--ease), box-shadow .18s; white-space: nowrap; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--wash); color: var(--blue-deep); }
.btn--ink { background: var(--ink); border-color: var(--ink); }
.btn--ink:hover { background: #0A1629; border-color: #0A1629; }
.btn--white { background: #fff; border-color: #fff; color: var(--ink); }
.btn--white:hover { background: var(--wash); border-color: var(--wash); color: var(--ink); }
.btn--urgent { background: var(--red); border-color: var(--red); }
.btn--urgent:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .9375rem; }
.btn--block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-more { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-more::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .2s var(--ease); }
.link-more:hover::after { transform: translateX(3px) rotate(45deg); }

/* pulse dot for the 24-hour line */
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #3DDC84; opacity: 0; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } }

/* ─────────────────────────── sections ─────────────────────────── */
.sec { padding: var(--sec) 0; }
.sec--wash { background: var(--wash); }
.sec--ink { background: var(--ink); color: #E3EAF3; }
.sec--ink h2, .sec--ink h3 { color: #fff; }
.sec--ink a { color: #8FD3FF; }
.sec--tight { padding: clamp(40px, 5vw, 64px) 0; }
.sec__h { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec__h p { color: var(--ink-2); font-size: 1.125rem; }
.sec--ink .sec__h p { color: #BCC9DA; }
.sec__h--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sec__h--row > div { max-width: 700px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9375rem; color: var(--blue); margin: 0 0 14px; }
.kicker::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: currentColor; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ─────────────────────────── stage system ─────────────────────────── */
[data-stage="pregnancy"] { --st: var(--st-pregnancy); --st-ink: var(--st-pregnancy-ink); --st-tint: var(--st-pregnancy-tint); }
[data-stage="newborn"]   { --st: var(--st-newborn);   --st-ink: var(--st-newborn-ink);   --st-tint: var(--st-newborn-tint); }
[data-stage="baby"]      { --st: var(--st-baby);      --st-ink: var(--st-baby-ink);      --st-tint: var(--st-baby-tint); }
[data-stage="toddler"]   { --st: var(--st-toddler);   --st-ink: var(--st-toddler-ink);   --st-tint: var(--st-toddler-tint); }
[data-stage="child"]     { --st: var(--st-child);     --st-ink: var(--st-child-ink);     --st-tint: var(--st-child-tint); }
[data-stage="teen"]      { --st: var(--st-teen);      --st-ink: var(--st-teen-ink);      --st-tint: var(--st-teen-tint); }
[data-stage="all"]       { --st: var(--blue);         --st-ink: var(--blue);             --st-tint: var(--wash); }
[data-stage="urgent"]    { --st: var(--red);          --st-ink: var(--red-deep);         --st-tint: var(--red-tint); }

.stag { display: inline-flex; align-items: center; gap: 7px; font-size: .8125rem; font-weight: 700; color: var(--st-ink, var(--ink-2)); background: var(--st-tint, var(--wash)); padding: 5px 11px 5px 9px; border-radius: 999px; line-height: 1.2; }
.stag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--st, var(--ink-3)); flex: none; }
.stags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ─────────────────────────── page hero ─────────────────────────── */
.phero { position: relative; padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); background: var(--st-tint, var(--wash)); overflow: hidden; }
.phero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--st, var(--blue)); }
.phero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.phero__in--solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.phero h1 { margin-bottom: 18px; }
.phero .lede { margin-bottom: 26px; }
.phero__art { justify-self: end; width: 100%; max-width: 420px; }
.phero__art img { border-radius: var(--r-l); aspect-ratio: 4/3.2; object-fit: cover; width: 100%; }
.phero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 22px; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 860px) { .phero__in { grid-template-columns: 1fr; } .phero__art { justify-self: start; max-width: 520px; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--ink-3); margin: 0 0 22px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ─────────────────────────── cards ─────────────────────────── */
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
a.card:hover { border-color: var(--st, var(--blue)); color: var(--ink); text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 34px -24px rgba(19,35,63,.45); }
.card h3 { margin: 0; font-size: 1.25rem; }
.card p { margin: 0; color: var(--ink-2); font-size: .975rem; }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 10px; font-size: .875rem; color: var(--ink-3); }
.card--stage { border-top: 5px solid var(--st, var(--blue)); }
.card__kind { font-size: .8125rem; font-weight: 700; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.card__kind svg { width: 16px; height: 16px; }
.card--photo { padding: 0; overflow: hidden; }
.card--photo img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card--photo .card__b { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card--quiet { background: var(--wash); border-color: transparent; }
.sec--wash .card--quiet { background: #fff; }

/* list of links, used in hubs */
.linklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 4px; color: var(--ink); text-decoration: none; font-weight: 600; }
.linklist a:hover { color: var(--blue); background: linear-gradient(90deg, var(--wash), transparent); }
.linklist a span { font-weight: 400; color: var(--ink-3); font-size: .9rem; }

/* ─────────────────────────── urgent strip ─────────────────────────── */
.urgent { background: var(--red-tint); border-left: 6px solid var(--red); border-radius: var(--r-m); padding: 22px 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.urgent__ico { width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.urgent__ico svg { width: 22px; height: 22px; }
.urgent h2, .urgent h3, .worry .urgent h2 { font-family: var(--sans); font-size: 1.125rem; font-weight: 700; margin: 0 0 4px; color: var(--red-deep); letter-spacing: 0; }
.urgent p { margin: 0; color: var(--ink); }
@media (max-width: 720px) { .urgent { grid-template-columns: 1fr; } .urgent__ico { display: none; } }

/* ─────────────────────────── act-now scale ───────────────────────────
   The one pattern every health guide shares: what needs the emergency
   department now, what needs a doctor today, what is safe to watch at home. */
.act { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0; }
.act__col { border-radius: var(--r-m); padding: 20px 20px 18px; background: var(--wash); border-top: 6px solid var(--line-2); }
.act__col h3, .act__col h4 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; margin: 0 0 4px; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.act__col > p:first-of-type { font-size: .9rem; color: var(--ink-2); margin-bottom: 10px; }
.act__col ul { margin: 0; padding-left: 1.15em; }
.act__col li { margin: 0 0 6px; font-size: .975rem; }
.act__col li::marker { color: var(--ink-3); }
.act__now { background: var(--red-tint); border-top-color: var(--red); }
.act__now h3, .act__now h4 { color: var(--red-deep); }
.act__today { background: var(--amber-tint); border-top-color: #F29100; }
.act__today h3, .act__today h4 { color: var(--amber); }
.act__home { background: var(--green-tint); border-top-color: var(--green); }
.act__home h3, .act__home h4 { color: var(--green); }
.act__dot { width: 12px; height: 12px; border-radius: 50%; background: currentColor; flex: none; }
@media (max-width: 860px) { .act { grid-template-columns: 1fr; } }

/* ─────────────────────────── article layout ─────────────────────────── */
.article { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding: clamp(40px, 5vw, 72px) 0 var(--sec); }
.article--wide { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1000px) { .article { grid-template-columns: 1fr; } }

.toc { position: sticky; top: 100px; font-size: .9375rem; }
.toc summary { font: 700 .875rem/1.3 var(--sans); color: var(--ink-3); margin: 0 0 10px; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
@media (min-width: 1001px) { .toc summary { pointer-events: none; } }
.toc h2 { font: 700 .875rem/1.3 var(--sans); color: var(--ink-3); margin: 0 0 10px; letter-spacing: 0; }
.toc ol { list-style: none; margin: 0 0 22px; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-on { color: var(--st-ink, var(--blue)); border-left-color: var(--st, var(--blue)); font-weight: 700; }
@media (max-width: 1000px) {
  .toc { position: static; background: var(--wash); border-radius: var(--r-m); padding: 16px 18px 4px; }
  .toc summary { cursor: pointer; font-size: 1rem; color: var(--ink); padding-bottom: 12px; margin: 0; display: flex; justify-content: space-between; align-items: center; }
  .toc summary::after { content: ""; width: 9px; height: 9px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
  .toc details[open] summary::after { transform: rotate(-135deg); }
}

/* ─────────────────────────── prose ─────────────────────────── */
.prose { max-width: 72ch; font-size: 1.0938rem; line-height: 1.7; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin: 2.2em 0 .6em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 .5em; }
.prose h4 { margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--st, var(--blue)); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--st, var(--blue)); font: italic 400 1.25rem/1.5 var(--serif); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: .9rem; color: var(--ink-3); margin-top: 10px; }
.prose .act, .prose .check, .prose .tbl-wrap, .prose .keypoints, .prose .callout, .prose .steps, .prose .player, .prose .tool { max-width: none; }
.prose-wide { max-width: none; }

/* callouts */
.callout { border-radius: var(--r-m); padding: 20px 22px; margin: 1.6em 0; background: var(--wash); border-left: 5px solid var(--blue); }
.callout > :last-child { margin-bottom: 0; }
.callout h3, .callout h4 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; margin: 0 0 6px; letter-spacing: 0; }
.callout--urgent { background: var(--red-tint); border-color: var(--red); }
.callout--urgent h3, .callout--urgent h4 { color: var(--red-deep); }
.callout--today { background: var(--amber-tint); border-color: #F29100; }
.callout--today h3, .callout--today h4 { color: var(--amber); }
.callout--home { background: var(--green-tint); border-color: var(--green); }
.callout--home h3, .callout--home h4 { color: var(--green); }
.callout--local { background: var(--st-tint, var(--wash)); border-color: var(--st, var(--blue)); }

/* "If you remember nothing else" — the teachable card, printable on its own */
.keypoints { position: relative; margin: 2em 0; padding: 26px 26px 22px; border-radius: var(--r-l); background: var(--ink); color: #E7EEF7; }
.keypoints h2, .keypoints h3 { color: #fff; font-size: 1.35rem; margin: 0 0 14px; }
.keypoints ol, .keypoints ul { margin: 0; padding-left: 1.3em; }
.keypoints li { margin-bottom: 9px; }
.keypoints li::marker { color: var(--st, var(--sky)); font-weight: 700; }
.keypoints strong { color: #fff; }
.keypoints__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: .875rem; color: #A9B8CB; }
.keypoints__foot button { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 700; font-size: .875rem; }
.keypoints__foot button:hover { background: rgba(255,255,255,.18); }

/* myth / fact pairs */
.myths { display: grid; gap: 12px; margin: 1.6em 0; }
.myth { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.myth > div { padding: 16px 18px; }
.myth > div:first-child { background: var(--wash); }
.myth b { display: block; font-size: .8125rem; margin-bottom: 4px; color: var(--ink-3); }
.myth > div:last-child b { color: var(--green); }
.myth p { margin: 0; }
@media (max-width: 640px) { .myth { grid-template-columns: 1fr; } }

/* numbered sequence */
.steps { list-style: none; counter-reset: s; margin: 1.6em 0; padding: 0; display: grid; gap: 4px; }
.steps > li { counter-increment: s; position: relative; padding: 4px 0 18px 58px; margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--st-tint, var(--wash)); color: var(--st-ink, var(--blue)); font: 700 1.05rem/1 var(--sans); border: 2px solid var(--st, var(--blue)); }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 2px; width: 2px; background: var(--line); }
.steps > li > b:first-child, .steps > li > strong:first-child { display: block; font-size: 1.0625rem; margin-bottom: 2px; }
.steps > li::marker { content: none; }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--r-m); -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .975rem; min-width: 520px; }
.tbl th, .tbl td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--wash); font-weight: 700; font-size: .875rem; color: var(--ink-2); }
.tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 0; }
.tbl tbody th { font-weight: 700; }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin: 1.2em 0 2em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative; font-weight: 700; font-size: 1.0625rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 10px; height: 10px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq details > div { padding: 0 0 18px; color: var(--ink); }
.faq details > div > :last-child { margin-bottom: 0; }

/* glossary: term + plain-language meaning */
.gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 1.4em 0; }
.gloss > div { border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; }
.gloss dt { font-weight: 700; margin-bottom: 4px; }
.gloss dd { margin: 0; color: var(--ink-2); font-size: .975rem; }
@media (max-width: 640px) { .gloss { grid-template-columns: 1fr; } }

/* a figure holding an illustration */
.illus { margin: 2em 0; background: var(--st-tint, var(--wash)); border-radius: var(--r-l); padding: clamp(16px, 3vw, 28px); }
.illus svg, .illus img { margin: 0 auto; width: 100%; height: auto; max-width: 560px; }
.illus figcaption { text-align: center; margin-top: 12px; color: var(--ink-2); font-size: .9375rem; }
.illus--row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.illus--row figure { margin: 0; text-align: center; }
.illus--row svg { max-width: 180px; }

/* sources and review stamp */
.sources { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.sources h2 { font: 700 1rem/1.3 var(--sans); letter-spacing: 0; margin: 0 0 10px; color: var(--ink); }
.sources ol { padding-left: 1.2em; margin: 0 0 1em; }
.sources li { margin-bottom: 6px; }
.review { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; font-size: .875rem; color: var(--ink-3); }
.review b { color: var(--ink-2); font-weight: 700; }

/* share bar */
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share__b { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: .875rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s; }
.share__b:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.share__b svg { width: 16px; height: 16px; flex: none; }
.share__b--wa { background: #1FAF55; border-color: #1FAF55; color: #fff; }
.share__b--wa:hover { background: #178F45; border-color: #178F45; color: #fff; }
.share__ok { font-size: .875rem; color: var(--green); font-weight: 700; min-width: 1px; }

/* ─────────────────────────── checklists ───────────────────────────
   <div class="check" data-checklist="hospital-bag"> ... <input type=checkbox> ...
   State is kept in this browser only. */
.check { margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: #fff; }
.check__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: var(--st-tint, var(--wash)); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.check__head h2, .check__head h3 { margin: 0; font-size: 1.3rem; }
.check__prog { display: flex; align-items: center; gap: 12px; font-size: .875rem; font-weight: 700; color: var(--ink-2); }
.check__bar { width: 120px; height: 8px; border-radius: 99px; background: rgba(19,35,63,.1); overflow: hidden; }
.check__bar i { display: block; height: 100%; width: 0; background: var(--st, var(--blue)); border-radius: inherit; transition: width .35s var(--ease); }
.check__group { padding: 8px 22px 14px; }
.check__group + .check__group { border-top: 1px solid var(--line); }
.check__group h3, .check__group h4 { font: 700 .9375rem/1.3 var(--sans); color: var(--ink-2); margin: 14px 0 4px; letter-spacing: 0; }
.check ul { list-style: none; margin: 0; padding: 0; }
.check li { margin: 0; }
.check label { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 10px 0; cursor: pointer; border-bottom: 1px dashed var(--line); }
.check li:last-child label { border-bottom: 0; }
.check input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; border: 2px solid var(--line-2); border-radius: 8px; margin: 0; display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; background: #fff; }
.check input::after { content: ""; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--spring); margin-top: -3px; }
.check input:checked { background: var(--st-ink, var(--blue)); border-color: var(--st-ink, var(--blue)); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check input:checked + span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.check label span small { display: block; color: var(--ink-3); text-decoration: none; margin-top: 2px; font-size: .875rem; }
.check__foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 14px 22px; background: var(--wash); border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-3); }
.check__foot button { background: none; border: 0; color: var(--blue); font-weight: 700; cursor: pointer; padding: 6px 0; }

/* ─────────────────────────── step player (shared with the group sites) ─────────────────────────── */
.player { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; margin: 2em 0; background: #fff; }
.stage { position: relative; background: var(--st-tint, var(--wash)); display: grid; place-items: center; padding: 18px; min-height: 280px; }
.stage > figure { margin: 0; width: 100%; animation: stepin .45s var(--ease); }
.stage svg { width: 100%; height: auto; max-height: 360px; }
.stage figcaption { text-align: center; font-weight: 700; margin-top: 8px; font-size: .9375rem; }
@keyframes stepin { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.plist { list-style: none; margin: 0; padding: 10px; counter-reset: p; display: flex; flex-direction: column; gap: 2px; }
.plist li { counter-increment: p; }
.plist button { display: grid; grid-template-columns: 30px 1fr; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 11px 12px; border-radius: 10px; cursor: pointer; color: var(--ink-2); line-height: 1.4; font-size: .9375rem; }
.plist button::before { content: counter(p); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); font-weight: 700; font-size: .875rem; color: var(--ink-3); }
.plist button b { display: block; color: var(--ink); font-size: 1rem; }
.plist button:hover { background: var(--wash); }
.plist button[aria-current="step"] { background: var(--st-tint, var(--wash)); color: var(--ink); }
.plist button[aria-current="step"]::before { background: var(--st-ink, var(--blue)); border-color: var(--st-ink, var(--blue)); color: #fff; }
.pctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--wash); }
.pctl button { background: #fff; border: 1px solid var(--line-2); border-radius: 999px; min-height: 38px; padding: 0 14px; font-weight: 700; font-size: .875rem; cursor: pointer; }
.pctl button:hover { border-color: var(--ink); }
.pctl__c { margin-left: auto; font-size: .875rem; color: var(--ink-3); font-weight: 700; }
@media (max-width: 820px) { .player { grid-template-columns: 1fr; } }

/* ─────────────────────────── contact cards (end of every page) ─────────────────────────── */
.cta3 { padding: var(--sec) 0; background: var(--wash); border-top: 1px solid var(--line); }
.cta3__h { max-width: 720px; margin-bottom: 32px; }
.cta3__h h2 { margin: 0; }
.cta3__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cta3__c { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; color: var(--ink); text-decoration: none; transition: border-color .2s, transform .25s var(--ease); }
.cta3__c:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-2px); text-decoration: none; }
.cta3__c svg { width: 28px; height: 28px; color: var(--blue); }
.cta3__c b { font: 600 1.3rem/1.2 var(--serif); }
.cta3__c span { color: var(--ink-2); font-size: .975rem; }
.cta3__c em { font-style: normal; font-weight: 700; color: var(--blue); margin-top: auto; padding-top: 6px; }
.cta3__c--book { background: var(--blue); border-color: var(--blue); color: #fff; }
.cta3__c--book:hover { color: #fff; border-color: var(--blue-deep); background: var(--blue-deep); }
.cta3__c--book svg, .cta3__c--book em { color: #fff; }
.cta3__c--book span { color: #D5E7F7; }
.cta3__note { margin: 22px 0 0; font-size: .9375rem; color: var(--ink-2); max-width: 820px; }
.cta3__note b { color: var(--red-deep); }
@media (max-width: 860px) { .cta3__grid { grid-template-columns: 1fr; } }

/* ─────────────────────────── footer ─────────────────────────── */
.ft { background: var(--ink); color: #B9C6D8; font-size: .9375rem; padding: clamp(48px, 6vw, 80px) 0 0; }
.ft a { color: #E3EAF3; text-decoration: none; }
.ft a:hover { color: #fff; text-decoration: underline; }
.ft__in { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.ft__brand img { width: 230px; height: auto; margin-bottom: 18px; }
.ft__brand p { max-width: 34ch; }
.ft__col { display: flex; flex-direction: column; gap: 10px; }
.ft__col h4 { color: #fff; margin: 0 0 6px; font-size: .9375rem; }
.ft__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding: 22px var(--gut) 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8125rem; color: #8FA0B6; }
.ft__base p { margin: 0; max-width: 70ch; }
@media (max-width: 980px) { .ft__in { grid-template-columns: 1fr 1fr; } .ft__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ft__in { grid-template-columns: 1fr; } }

/* floating call button */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 0 20px 0 16px; min-height: 54px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(165,0,10,.6); transform: translateY(120px); transition: transform .35s var(--ease); }
.fab.is-in { transform: none; }
.fab:hover { background: var(--red-deep); color: #fff; }
.fab svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .fab { transition: none; } }

/* ─────────────────────────── reveal ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ─────────────────────────── filters (library, services) ─────────────────────────── */
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.search { position: relative; max-width: 620px; }
.search input { width: 100%; min-height: 56px; border-radius: 999px; border: 2px solid var(--line-2); padding: 0 22px 0 52px; font: 400 1.0625rem/1 var(--sans); color: var(--ink); background: #fff; transition: border-color .2s; }
.search input:focus { outline: none; border-color: var(--blue); }
.search svg { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--ink-2); transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[data-stage]::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--st); }
.chip[data-stage][aria-pressed="true"] { background: var(--st-tint); border-color: var(--st); color: var(--st-ink); }
.filters__count { font-size: .9rem; color: var(--ink-3); font-weight: 700; }
.empty { padding: 32px; text-align: center; border: 2px dashed var(--line); border-radius: var(--r-m); color: var(--ink-2); }

/* ─────────────────────────── print ───────────────────────────
   Guides and checklists are meant to be printed and pinned to a fridge. */
@media print {
  @page { margin: 14mm; }
  body { font-size: 11pt; color: #000; }
  .groupbar, .hdr, .mnav, .fab, .cta3, .ft, .share, .toc, .skip, .no-print, .keypoints__foot button, .check__foot button, .pctl { display: none !important; }
  .phero { padding: 0 0 12px; background: none; }
  .phero::after { display: none; }
  .phero__art { display: none; }
  .article { display: block; padding: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { color: #000; text-decoration: none; }
  .keypoints { background: #fff; color: #000; border: 2px solid #000; }
  .keypoints h2, .keypoints h3, .keypoints strong { color: #000; }
  .act__col, .callout, .check, .myth, .gloss > div { break-inside: avoid; }
  .check input { border-color: #000; }
  .player { display: block; }
  .plist button[aria-current] { background: none; }
  /* print just the card */
  body.print-card main > *:not(.print-target):not(:has(.print-target)) { display: none !important; }
  body.print-card .article > *:not(.print-target):not(:has(.print-target)) { display: none !important; }
  body.print-card .prose > *:not(.print-target) { display: none !important; }
  body.print-card .print-target { display: block !important; margin: 0; }
}

/* ═══════════════════════════ home ═══════════════════════════ */
.hero { position: relative; padding: clamp(32px, 5vw, 72px) 0 clamp(36px, 5vw, 64px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__mark { max-width: 200px; justify-self: start; }
}

/* the heart: the genuine mark, in six parts, gathering into place */
.hero__mark { position: relative; width: 100%; max-width: 440px; justify-self: center; isolation: isolate; }
.hero__mark::before { content: ""; position: absolute; inset: 0 -8% -6%; border-radius: 50%; background: radial-gradient(closest-side, var(--st-newborn-tint), rgba(226,244,252,0)); z-index: -1; }
.hheart { width: 100%; height: auto; overflow: visible; }
.hheart path { transform-box: view-box; transform-origin: 37.3px 78px; }
.hheart.is-armed path { opacity: 0; }
.hheart.is-armed .hh-blue  { transform: translate(-10px, 4px) rotate(-26deg); }
.hheart.is-armed .hh-red   { transform: translate(10px, -2px) rotate(26deg); }
.hheart.is-armed .hh-child { transform: translateY(10px) scale(.55); }
.hheart.is-armed .hh-head  { transform: translateY(-14px) scale(.4); }
.hheart .hh-child { transform-origin: 44px 66px; }
.hheart .hh-head--child { transform-origin: 42px 42.9px; }
.hheart .hh-head--blue  { transform-origin: 19.9px 15.9px; }
.hheart .hh-head--red   { transform-origin: 54.7px 4.1px; }
.hheart.is-armed.is-go path { opacity: 1; transform: none; }
.hheart.is-go .hh-child { transition: transform .9s var(--spring) .05s, opacity .5s ease .05s; }
.hheart.is-go .hh-blue  { transition: transform 1.25s var(--ease) .35s, opacity .6s ease .35s; }
.hheart.is-go .hh-red   { transition: transform 1.25s var(--ease) .5s, opacity .6s ease .5s; }
.hheart.is-go .hh-head--child { transition: transform .7s var(--spring) .75s, opacity .3s ease .75s; }
.hheart.is-go .hh-head--blue  { transition: transform .7s var(--spring) 1.25s, opacity .3s ease 1.25s; }
.hheart.is-go .hh-head--red   { transition: transform .7s var(--spring) 1.4s, opacity .3s ease 1.4s; }

/* "what is worrying you" quick routes */
.worry { margin-top: clamp(32px, 4vw, 48px); padding-top: 28px; border-top: 1px solid var(--line); }
.worry h2 { font: 700 1.0625rem/1.3 var(--sans); letter-spacing: 0; margin: 0 0 14px; color: var(--ink-2); }
.worry__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.worry__list a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 7px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--ink); font-weight: 700; text-decoration: none; transition: border-color .15s, transform .2s var(--ease), background .15s; }
.worry__list a:hover { border-color: var(--st, var(--blue)); background: var(--st-tint, var(--wash)); transform: translateY(-1px); color: var(--ink); }
.worry__list i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--st-tint, var(--wash)); color: var(--st-ink, var(--blue)); }
.worry__list svg { width: 18px; height: 18px; }

/* the stage ribbon */
.ribbon__bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0 0 22px; padding: 0; }
.ribbon__tab { position: relative; text-align: left; border: 0; cursor: pointer; background: var(--st-tint); color: var(--st-ink); border-radius: 14px; padding: 16px 16px 14px; min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; transition: color .25s, transform .3s var(--ease); overflow: hidden; }
.ribbon__tab::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--st); transition: height .35s var(--ease); z-index: 0; }
.ribbon__tab > * { position: relative; z-index: 1; }
.ribbon__tab b { font: 600 1.25rem/1.1 var(--serif); }
.ribbon__tab span { font-size: .8125rem; font-weight: 700; opacity: .9; }
.ribbon__tab:hover { transform: translateY(-2px); }
.ribbon__tab[aria-selected="true"] { color: #fff; }
.ribbon__tab[aria-selected="true"]::before { height: 100%; }
.ribbon__tab[data-stage="baby"][aria-selected="true"] { color: var(--ink); }
.ribbon__panel { border-radius: var(--r-l); background: var(--st-tint); padding: clamp(22px, 3.5vw, 40px); border-top: 6px solid var(--st); animation: stepin .4s var(--ease); }
.ribbon__panel[hidden] { display: none; }
.ribbon__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 48px); }
.ribbon__intro h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 12px; }
.ribbon__intro p { color: var(--ink-2); }
.ribbon__watch { margin: 18px 0 0; padding: 16px 18px; border-radius: var(--r-m); background: #fff; border-left: 4px solid var(--red); }
.ribbon__watch b { display: block; color: var(--red-deep); margin-bottom: 6px; }
.ribbon__watch ul { margin: 0; padding-left: 1.1em; font-size: .9375rem; }
.ribbon__watch li { margin-bottom: 4px; }
.ribbon__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.ribbon__more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 6px; }
@media (max-width: 980px) {
  .ribbon__bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ribbon__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ribbon__bar { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-right: calc(var(--gut) * -1); padding-right: var(--gut); }
  .ribbon__tab { flex: 0 0 44%; scroll-snap-align: start; min-height: 84px; }
  .ribbon__cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ribbon__panel, .ribbon__tab, .ribbon__tab::before { animation: none; transition: none; } }

/* pathways: the care products from the 2026 plan */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.path { position: relative; display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.path:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -30px rgba(19,35,63,.55); color: var(--ink); text-decoration: none; }
.path__img { overflow: hidden; }
.path__img img { aspect-ratio: 16/10; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
.path:hover .path__img img { transform: scale(1.03); }
.path__b { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.path__b h3 { margin: 0; }
.path__b p { margin: 0; color: var(--ink-2); }
.path__b .path__promise { margin-top: auto; padding-top: 12px; font: italic 400 1.05rem/1.45 var(--serif); color: var(--ink); }
@media (max-width: 980px) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .paths { grid-template-columns: 1fr; } }

/* facts that need no adjective */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.16); }
.fact { padding: 26px 22px 6px 0; }
.fact + .fact { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.16); }
.fact b { display: block; font: 600 clamp(2.4rem, 4.4vw, 3.4rem)/1 var(--serif); color: #fff; margin-bottom: 10px; letter-spacing: -.02em; }
.fact > span { color: #BCC9DA; font-size: .975rem; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { padding-left: 0; border-left: 0; } }

/* the library search on the home page */
.bigsearch { display: flex; gap: 10px; max-width: 720px; }
.bigsearch .search { flex: 1; max-width: none; }
@media (max-width: 560px) { .bigsearch { flex-direction: column; } }

/* photo with a caption bar */
.photo { margin: 0; border-radius: var(--r-l); overflow: hidden; position: relative; }
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; background: rgba(19,35,63,.84); color: #fff; font-size: .875rem; padding: 10px 14px; border-radius: 10px; }

/* promise list */
.promises { list-style: none; margin: 0; padding: 0; }
.promises li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.promises li:first-child { border-top: 1px solid var(--line); }
.promises i { width: 44px; height: 44px; border-radius: 50%; background: var(--wash); display: grid; place-items: center; color: var(--blue); }
.promises svg { width: 22px; height: 22px; }
.promises b { display: block; font-size: 1.0625rem; margin-bottom: 2px; }
.promises p { margin: 0; color: var(--ink-2); }
.sec--wash .promises i { background: #fff; }

/* urgent page: sign groups */
.emerg__c { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--red); }
.emerg__c h3 { font: 700 1.125rem/1.3 var(--sans); letter-spacing: 0; color: var(--red-deep); }
.emerg__c ul { margin: 0; padding-left: 1.15em; }
.emerg__c li { margin-bottom: 8px; line-height: 1.45; }
.emerg__c li::marker { color: var(--red); }
.keypoints p { color: #C9D5E4; }

/* library: start-here tiles and topic drawer */
.lib-start { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lib-start__c { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--r-m); background: var(--st-tint); border-left: 5px solid var(--st); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease); }
.lib-start__c:hover { transform: translateY(-2px); color: var(--ink); text-decoration: none; }
.lib-start__c b { font: 600 1.2rem/1.2 var(--serif); }
.lib-start__c span { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 860px) { .lib-start { grid-template-columns: 1fr 1fr; } }
.lib-topics summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 4px 0 10px; }
.lib-grid .card { min-height: 100%; }
.path__img--illus { background: var(--st-child-tint); }
.path__img--illus img { object-fit: contain; padding: 10px 0 0; }
.sec--flush { padding-top: 0; }
.article > * { min-width: 0; }
.toc a { overflow-wrap: anywhere; }
.path__b > .stag, .card > .stag, .card__b > .stag { align-self: flex-start; }
@media (max-width: 860px) { .hero__mark { max-width: 170px; justify-self: start; } }

/* ═══════ home: photo watermark behind the heart ═══════ */
.hero__mark { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 11%; border-radius: 40px; background: var(--st-newborn-tint); overflow: hidden; }
.hero__mark::before { inset: 0; border-radius: inherit; z-index: 0;
  background: url(../img/photos/reassuring-child.jpg) 38% center / cover no-repeat;
  opacity: .26; mix-blend-mode: luminosity; filter: contrast(.9);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 50%, #000 45%, transparent 100%);
          mask-image: radial-gradient(120% 100% at 50% 50%, #000 45%, transparent 100%); }
.hero__mark::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; background: linear-gradient(160deg, rgba(255,255,255,.35), rgba(226,244,252,.15) 60%, rgba(0,160,227,.10)); }
.hheart { position: relative; z-index: 1; filter: drop-shadow(0 10px 24px rgba(19,35,63,.14)); }
@media (max-width: 860px) { .hero__mark { max-width: 220px; padding: 9%; border-radius: 28px; } }

/* ═══════ home: strengths band ═══════ */
.strengths { background: var(--ink); color: #C9D5E4; }
.strengths__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strength { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 2px; padding: 28px 22px 28px 0; }
.strength + .strength { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.12); }
.strength i { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--sky); }
.strength:nth-child(2) i { color: #FF6B6B; } .strength:nth-child(3) i { color: var(--st-baby); } .strength:nth-child(4) i { color: #4FD58E; }
.strength i svg { width: 20px; height: 20px; }
.strength b { color: #fff; font: 600 1.2rem/1.25 var(--serif); }
.strength span { font-size: .9375rem; line-height: 1.45; }
@media (max-width: 980px) { .strengths__in { grid-template-columns: 1fr 1fr; } .strength:nth-child(3) { padding-left: 0; border-left: 0; } .strength:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); } }
@media (max-width: 560px) { .strengths__in { grid-template-columns: 1fr; } .strength, .strength + .strength { padding: 20px 0; border-left: 0; } .strength + .strength { border-top: 1px solid rgba(255,255,255,.12); } }

/* ═══════ home: specialties directory ═══════ */
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.specs__col { background: #fff; border-radius: var(--r-m); padding: 22px 22px 16px; border-top: 5px solid var(--st); }
.specs__col h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--st-ink); }
.specs__col ul { list-style: none; margin: 0; padding: 0; }
.specs__col li { border-top: 1px solid var(--line); }
.specs__col a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9375rem; }
.specs__col a::after { content: ""; flex: none; width: 7px; height: 7px; border: solid var(--st); border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .2s var(--ease); }
.specs__col a:hover { color: var(--st-ink); }
.specs__col a:hover::after { transform: translateX(3px) rotate(45deg); }
@media (max-width: 980px) { .specs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .specs { grid-template-columns: 1fr; } }

/* ═══════ home: inside the hospital ═══════ */
.mosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 220px)); gap: 12px; }
.mosaic figure { position: relative; margin: 0; border-radius: var(--r-m); overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaic figure:hover img { transform: scale(1.03); }
.mosaic__big { grid-row: span 2; }
.mosaic figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(19,35,63,.84); color: #fff; font-size: .8125rem; font-weight: 700; padding: 6px 11px; border-radius: 999px; }
@media (max-width: 860px) { .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 170px; } .mosaic__big { grid-column: span 2; grid-row: auto; } }
.teach { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; margin-top: 28px; padding: 28px; background: #fff; border-radius: var(--r-l); border-left: 6px solid var(--st-pregnancy); }
.teach__n b { display: block; font: 600 3.4rem/1 var(--serif); color: var(--st-pregnancy-ink); }
.teach__n > span { color: var(--ink-2); font-size: .9375rem; }
.teach h3 { margin-bottom: 8px; }
.teach p { color: var(--ink-2); max-width: 70ch; }
@media (max-width: 720px) { .teach { grid-template-columns: 1fr; gap: 12px; } }

/* ═══════ printed and PDF copies carry the hospital's branding ═══════ */
.print-brand, .print-foot { display: none; }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-brand { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding: 0 0 12px; margin-bottom: 16px; position: relative; }
  .print-brand img { height: 48px; width: auto; }
  .print-brand__c { text-align: right; font-size: 8.5pt; line-height: 1.45; color: #44536B; display: flex; flex-direction: column; }
  .print-brand__c b { font: 600 11pt/1.3 var(--serif); color: #13233F; }
  .print-brand__bar { grid-column: 1 / -1; display: block; height: 5px; border-radius: 3px; margin-top: 8px;
    background: linear-gradient(90deg, #A8518A 0 16.66%, #00A0E3 16.66% 33.33%, #FFC32D 33.33% 50%, #00A85A 50% 66.66%, #F5873A 66.66% 83.33%, #3F4096 83.33%); }
  .print-foot { display: block; margin-top: 18px; padding-top: 10px; border-top: 2px solid #13233F; font-size: 8.5pt; line-height: 1.45; color: #44536B; break-inside: avoid; }
  .print-foot p { margin: 0 0 4px; }
  .print-foot b { color: #A5000A; }
  /* the key-points card prints as a branded card, not a dark block */
  .keypoints { background: #fff !important; color: #13233F !important; border: 2px solid #13233F; border-top: 8px solid var(--st, #0068B7); border-radius: 14px; }
  .keypoints h2, .keypoints h3, .keypoints strong, .keypoints p, .keypoints li { color: #13233F !important; }
  .keypoints__foot { border-top-color: #D6DEE8 !important; color: #44536B !important; }
  .check__head { background: var(--st-tint, #F1F5F9) !important; }
  .phero { background: none !important; }
  .act__now, .act__today, .act__home, .callout, .verdict { break-inside: avoid; }
  /* when a single card is printed, keep the brand header and footer around it */
  body.print-card .print-brand, body.print-card .print-foot { display: grid; }
  body.print-card .print-foot { display: block; }
}
@media print {
  .keypoints li, .act__col li, .check li, .steps > li { break-inside: avoid; }
  body.print-card .keypoints { break-inside: avoid; }
}

/* ═══════════════════════════ watermarks ═══════════════════════════
   Section to section, every band after the hero carries a watermark, and
   they alternate: the genuine heart mark (in the page's stage colour), then
   a faded hospital photograph, then the heart again. Heroes, the key-points
   card, the contact block and the footer carry their own. */
.phero > *, .cta3 > *, .keypoints > *, .ft > *, .wm > * { position: relative; z-index: 1; }
.wm, .cta3, .ft { position: relative; overflow: clip; }
.wm::before, .cta3::before { content: ""; position: absolute; z-index: 0; pointer-events: none; }

/* the heart mark */
.phero::before, .wm--heart::before, .keypoints::before, .ft::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; aspect-ratio: 75.82 / 78.42;
  -webkit-mask: url(../img/brand/lch-heart.svg) center / contain no-repeat;
          mask: url(../img/brand/lch-heart.svg) center / contain no-repeat;
}
.phero::before { top: -14%; right: -5%; width: min(52vw, 620px); background: var(--st, var(--blue)); opacity: .085; transform: rotate(-12deg); animation: wm-drift 22s ease-in-out infinite alternate; }
.phero:has(.phero__art)::before { right: auto; left: 44%; top: -24%; opacity: .07; }
.wm--heart::before { bottom: -16%; left: -6%; width: min(40vw, 460px); background: var(--st, var(--blue)); opacity: .055; transform: rotate(14deg); }
.wm--heart.wm--flip::before { left: auto; right: -6%; transform: rotate(-14deg) scaleX(-1); }
.sec--ink.wm--heart::before, .strengths.wm--heart::before { background: #fff; opacity: .06; }
.keypoints { overflow: hidden; }
.keypoints::before { right: -40px; bottom: -50px; width: 230px; background: #fff; opacity: .06; transform: rotate(-10deg); }
.ft::before { right: -4%; top: 6%; width: min(40vw, 480px); background: #fff; opacity: .035; transform: rotate(-8deg); }
@keyframes wm-drift { from { transform: rotate(-12deg) translateY(0); } to { transform: rotate(-6deg) translateY(18px); } }

/* the photographs */
.wm--photo::before, .cta3::before { top: 0; bottom: 0; right: 0; width: min(55%, 720px);
  background: var(--wm-photo, url(../img/photos/reassuring-child.jpg)) center / cover no-repeat;
  opacity: .1; filter: grayscale(1) contrast(.9); mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.wm--photo.wm--flip::before { right: auto; left: 0;
  -webkit-mask-image: linear-gradient(270deg, transparent, #000 60%); mask-image: linear-gradient(270deg, transparent, #000 60%); }
.sec--ink.wm--photo::before, .strengths.wm--photo::before { opacity: .18; filter: none; }
.cta3::before { opacity: .12; }
.wm--p1 { --wm-photo: url(../img/photos/nicu-incubators.jpg); }
.wm--p2 { --wm-photo: url(../img/photos/laboratory.jpg); }
.wm--p3 { --wm-photo: url(../img/photos/ward-coordination.jpg); }
.wm--p4 { --wm-photo: url(../img/photos/team-smiling.jpg); }
.wm--p5 { --wm-photo: url(../img/photos/nicu-newborn.jpg); }
.wm--p6 { --wm-photo: url(../img/photos/pharmacy-team.jpg); }
body[data-kind="service"] .cta3 { --wm-photo: url(../img/photos/surgical-team.jpg); }
body[data-kind="tool"] .cta3 { --wm-photo: url(../img/photos/clinician-computer.jpg); }
body[data-kind="checklist"] .cta3 { --wm-photo: url(../img/photos/pharmacy-desk.jpg); }
body[data-kind="firstaid"] .cta3 { --wm-photo: url(../img/photos/bedside-assessment.jpg); }
body[data-kind="hub"] .cta3 { --wm-photo: url(../img/photos/team-smiling.jpg); }
body[data-kind="page"] .cta3 { --wm-photo: url(../img/photos/front-desk-team.jpg); }
@media (max-width: 760px) {
  /* phones: the photo fades up from the bottom of the band instead of the side */
  .wm--photo::before, .wm--photo.wm--flip::before, .cta3::before { top: auto; left: 0; right: 0; width: auto; height: 60%; opacity: .08;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%); mask-image: linear-gradient(180deg, transparent, #000 70%); }
  .wm--heart::before { width: 70vw; }
}
@media print {
  .phero::before, .wm::before, .cta3::before, .keypoints::before, .ft::before, .progress { display: none !important; }
}

/* ═══════════════════════════ motion ═══════════════════════════ */
/* page heroes arrive in order: trail, title, lede, actions, art */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes art-in { from { opacity: 0; transform: translateX(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.phero .crumbs, .phero h1, .phero .lede, .phero .share, .phero .btn-row, .phero__meta { animation: rise .8s var(--ease) both; }
.phero h1 { animation-delay: .06s; }
.phero .lede { animation-delay: .16s; }
.phero .share, .phero .btn-row { animation-delay: .26s; }
.phero__meta { animation-delay: .34s; }
.phero__art { animation: art-in 1s var(--ease) .2s both; }
.phero__art img { animation: float 7s ease-in-out 1.4s infinite; }
.phero::after { transform-origin: left; animation: bar-in 1.1s var(--ease) .3s both; }

/* scroll reveal, applied by lch.js to cards and blocks across every page */
.reveal { transition-delay: var(--rd, 0s); }

/* reading progress, in the six stage colours */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 4px; transform-origin: left; transform: scaleX(0); pointer-events: none;
  background: linear-gradient(90deg, #A8518A 0 16.66%, #00A0E3 16.66% 33.33%, #FFC32D 33.33% 50%, #00A85A 50% 66.66%, #F5873A 66.66% 83.33%, #3F4096 83.33%); }

/* hover effects, only where there is a real pointer */
@media (hover: hover) and (pointer: fine) {
  .card, .path, .cta3__c, .specs__col, .lib-start__c { background-image: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), color-mix(in srgb, var(--st, var(--blue)) 9%, transparent), transparent 60%); }
  .cta3__c--book { background-image: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(255,255,255,.18), transparent 60%); }
  .btn { position: relative; overflow: hidden; isolation: isolate; }
  .btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); }
  .btn:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
  .btn--ghost::after, .btn--white::after { background: linear-gradient(110deg, transparent 30%, rgba(0,104,183,.12) 50%, transparent 70%); }
  .hdr__nav a:not(.is-on)::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform .25s var(--ease); }
  .hdr__nav a:hover::after { transform: scaleX(1); }
  .illus img, .illus svg { transition: transform .5s var(--ease); }
  .illus:hover img, .illus:hover svg { transform: scale(1.02); }
  .card__kind svg, .cta3__c svg { transition: transform .35s var(--spring); }
  a.card:hover .card__kind svg, .cta3__c:hover svg { transform: scale(1.15) rotate(-6deg); }
}

/* mobile menu: links slide in one after another */
@keyframes slide-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.mnav.is-open > * { animation: slide-in .4s var(--ease) both; }
.mnav.is-open > *:nth-child(2) { animation-delay: .03s; } .mnav.is-open > *:nth-child(3) { animation-delay: .06s; }
.mnav.is-open > *:nth-child(4) { animation-delay: .09s; } .mnav.is-open > *:nth-child(5) { animation-delay: .12s; }
.mnav.is-open > *:nth-child(6) { animation-delay: .15s; } .mnav.is-open > *:nth-child(n+7) { animation-delay: .18s; }

/* urgent cues breathe, gently */
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.1); } 24% { transform: scale(1); } 36% { transform: scale(1.06); } }
.urgent__ico { animation: beat 2.8s ease-in-out infinite; }
.fab.is-in { animation: fab-ring 3.6s ease-out 1s infinite; }
@keyframes fab-ring { 0%, 70%, 100% { box-shadow: 0 14px 30px -12px rgba(165,0,10,.6), 0 0 0 0 rgba(216,0,12,.35); } 85% { box-shadow: 0 14px 30px -12px rgba(165,0,10,.6), 0 0 0 12px rgba(216,0,12,0); } }

/* checklist progress shimmers */
.check__bar i { background-color: var(--st, var(--blue)); background-image: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); background-size: 200% 100%; background-repeat: no-repeat; animation: shimmer 2.4s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

@media (prefers-reduced-motion: reduce) {
  .phero::before, .phero::after, .phero .crumbs, .phero h1, .phero .lede, .phero .share, .phero .btn-row, .phero__meta, .phero__art, .phero__art img,
  .mnav.is-open > *, .urgent__ico, .fab.is-in, .check__bar i { animation: none !important; }
  .progress { display: none; }
}

/* ═══════════════════════════ phones ═══════════════════════════ */
html { -webkit-tap-highlight-color: rgba(0,104,183,.12); }
.mnav a.btn, .mnav a.btn:hover { color: #fff; }
.mnav a.btn--white, .mnav a.btn--ghost { color: var(--blue); }
.fab { bottom: calc(18px + env(safe-area-inset-bottom)); right: calc(18px + env(safe-area-inset-right)); }
/* wide tables show a shadow on the side that scrolls */
.tbl-wrap { background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)), linear-gradient(90deg, rgba(255,255,255,0), #fff 70%) 100% 0,
  radial-gradient(farthest-side at 0 50%, rgba(19,35,63,.16), transparent), radial-gradient(farthest-side at 100% 50%, rgba(19,35,63,.16), transparent) 100% 0;
  background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
@media (hover: none) {
  a.card:hover, .path:hover, .cta3__c:hover, .lib-start__c:hover, .ribbon__tab:hover, .worry__list a:hover { transform: none; }
  a.card:active, .path:active, .cta3__c:active, .lib-start__c:active, .worry__list a:active, .chip:active, .btn:active, .share__b:active { transform: scale(.98); transition-duration: .08s; }
}
@media (max-width: 760px) {
  .phero::before, .phero:has(.phero__art)::before { width: 78vw; top: -6%; right: -22%; left: auto; opacity: .07; }
  .sec--wash::before { width: 62vw; }
  .phero__art { max-width: 340px; }
  .phero .lede, .hero .lede { font-size: 1.075rem; }
  .sec__h p { font-size: 1.05rem; }
  .card { padding: 20px; }
  .share { gap: 6px; }
  .share__b { padding: 0 12px; }
  .ft__col a { display: block; padding: 5px 0; }
  .ft__base { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .cta3__c { padding: 20px; }
  .keypoints { padding: 22px 20px 18px; }
  .check__head, .check__group, .check__foot { padding-left: 16px; padding-right: 16px; }
  .mosaic { grid-auto-rows: 140px; }
  .fact { padding-right: 12px; }
  .fact + .fact { padding-left: 12px; }
}
@media (max-width: 420px) {
  .hdr__in { gap: 10px; }
  .hdr__acts { gap: 6px; }
  .hdr__brand img, .hdr.is-stuck .hdr__brand img { height: 32px; }
  .hdr__acts .btn--urgent { padding: 0 12px; font-size: .875rem; }
  .burger { width: 44px; height: 44px; }
  .burger span { top: 21px; }
  .hero__mark { max-width: 170px; }
  .groupbar__tel { white-space: normal; text-align: center; justify-content: center; font-size: .75rem; line-height: 1.3; padding: 6px 0; }
  h1, .hero h1 { font-size: clamp(1.95rem, 8.4vw, 2.3rem); }
  h2 { font-size: clamp(1.5rem, 6.6vw, 1.75rem); }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .fab span { display: none; }
  .fab { width: 56px; min-height: 56px; padding: 0; justify-content: center; }
  .act { gap: 10px; }
  .act__col { padding: 16px; }
}
@media (max-width: 360px) {
  .hdr__brand img, .hdr.is-stuck .hdr__brand img { height: 28px; }
  .hdr__acts .btn--urgent { padding: 0 10px; font-size: .8125rem; min-height: 40px; }
  .lib-start { grid-template-columns: 1fr; }
}

/* ═══════════════════════════ hybrid theme ═══════════════════════════
   The live limichildrenshospital.ng theme merged into this design.
   From the live site: warm cream paper, mint washes, the deeper navy and
   blue, a teal accent, heavy sans headlines with an italic serif phrase in
   blue, uppercase ✦ eyebrows, squarer buttons, framed floating photos and
   navy gradient bands.
   Kept from this design: the six stage colours, red for urgent only, the
   heart mark and its watermarks, serif card titles and every reading
   component in the parent library. */
:root {
  --ink: #102A43; --ink-2: #3F566E; --ink-3: #5F7185;
  --paper: #FBFAF6;
  --wash: #F2FAF8; --wash-2: #E5F6F3;
  --line: #DCE5EA; --line-2: #C3D2DB;
  --blue: #176BAF; --blue-deep: #0F5690;
  --teal: #2E9D91; --mint: #D8EDF1; --peach: #FFF0ED;
  --navy-deep: #0B2235;
  --band: linear-gradient(135deg, #0B2235 0%, #0E3A63 55%, #135E9C 100%);
  --r-m: 16px; --r-l: 26px;
  --lift: 0 1px 2px rgba(16,42,67,.04), 0 14px 32px -26px rgba(16,42,67,.4);
}

/* type: the original serif headlines (fonts unchanged from the pre-hybrid design);
   an italic phrase in blue carries the live site's accent */
h1 em, h2 em { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; color: var(--blue); letter-spacing: -.012em; }
.sec--ink h2 em, .keypoints h2 em, .strengths h2 em { color: #8FD3FF; }
.kicker, .sec__h p.kicker, .split p.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.kicker::before { content: "\2726"; width: auto; height: auto; border-radius: 0; background: none; font-size: .95em; letter-spacing: 0; }
.sec--ink .kicker, .sec--ink .sec__h p.kicker { color: #8FD3FF; }

/* chrome */
.groupbar, .ft { background: var(--navy-deep); }
.hdr { background: rgba(255,255,255,.96); }
.btn { border-radius: 11px; }
.btn--sm { border-radius: 10px; }
.btn--ghost { background: #fff; }
.mnav .btn { border-radius: 12px; }

/* surfaces: white cards lifted off the cream */
.card, .path, .cta3__c, .specs__col, .check, .player, .gloss > div, .myth, .lib-start__c { box-shadow: var(--lift); }
.card, .cta3__c, .path { border-color: #E4EBEF; }
.card--quiet { box-shadow: none; }
.sec--wash { background: var(--wash); }
.cta3 { background: linear-gradient(180deg, var(--wash), #fff 140%); }

/* navy gradient bands, as on the live site's featured service */
.sec--ink, .strengths, .keypoints { background: var(--band); }
.keypoints { box-shadow: 0 24px 48px -30px rgba(11,34,53,.7); }

/* photos: one big soft corner, like the live hero */
.phero__art img, .photo, .card--photo img { border-radius: 64px var(--r-l) var(--r-l) var(--r-l); }
.card--photo img { border-radius: 0; }
.photo { box-shadow: var(--lift); }
.mosaic figure { border-radius: var(--r-l); }
.mosaic__big { border-radius: 64px var(--r-l) var(--r-l) var(--r-l) !important; }

/* page heroes: the stage tint, with the live site's soft circles */
.phero { background:
  radial-gradient(circle at 92% 8%, rgba(255,255,255,.6) 0 170px, transparent 171px),
  radial-gradient(circle at 2% 100%, rgba(255,255,255,.45) 0 130px, transparent 131px),
  var(--st-tint, var(--wash)); }
.phero[data-stage="all"] { --st-tint: var(--wash); }

/* ── home hero: copy first, then the heart framed by floating photos ── */
.hero { background:
  radial-gradient(circle at 78% -4%, var(--mint) 0 230px, transparent 231px),
  radial-gradient(circle at -3% 78%, var(--peach) 0 150px, transparent 151px),
  var(--paper); }
.hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.hero__copy { order: -1; }
.hero__visual { position: relative; width: 100%; max-width: 460px; justify-self: end; margin: 24px 36px 48px 0; }
.hero__visual .hero__mark { max-width: none; width: 100%; border-radius: 90px 40px 40px 40px; box-shadow: 0 30px 60px -40px rgba(16,42,67,.55); }
.hero__float { position: absolute; margin: 0; border: 6px solid #fff; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 22px 44px -22px rgba(16,42,67,.5); z-index: 2; }
.hero__float img { width: 100%; height: 100%; object-fit: cover; }
.hero__float--a { width: 40%; aspect-ratio: 4 / 5; top: 6%; right: -12%; transform: rotate(3deg); animation: float-a 9s ease-in-out 2s infinite; }
.hero__float--b { width: 48%; aspect-ratio: 4 / 3; bottom: -10%; left: -14%; transform: rotate(-3deg); animation: float-b 11s ease-in-out 2.4s infinite; }
@keyframes float-a { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-10px); } }
@keyframes float-b { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(8px); } }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; font-weight: 700; font-size: .9375rem; color: var(--ink-2); }
.ticks li::before { content: "\2713"; color: var(--teal); font-weight: 700; margin-right: 7px; }

/* ── "what is worrying you": the live site's concern bar ── */
.worry { display: grid; grid-template-columns: 250px minmax(0, 1fr); padding: 0; border: 0; border-radius: var(--r-l); overflow: hidden; background: #fff; box-shadow: var(--lift); }
.worry > h2 { display: flex; flex-direction: column; justify-content: center; gap: 6px; margin: 0; padding: 26px 28px; background: var(--band); color: #fff; font: 600 1.45rem/1.2 var(--serif); letter-spacing: -.01em; }
.worry__k { font-size: .8125rem; font-weight: 700; letter-spacing: 0; color: #9FC4E6; }
.worry__list { margin: 0; padding: 22px 24px; align-content: center; }
.worry .urgent { grid-column: 1 / -1; border-radius: 0; }
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__visual { max-width: 300px; justify-self: center; margin: 8px 0 40px; }
  .worry { grid-template-columns: 1fr; }
  .worry > h2 { padding: 20px 22px; font-size: 1.2rem; }
  .worry__list { padding: 18px 16px; }
}
@media (max-width: 420px) {
  .hero__visual { max-width: 230px; }
  .hero__float { border-width: 4px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .hero__float--a, .hero__float--b { animation: none; } }
@media print { .hero__float, .ticks { display: none; } h1 em, h2 em { color: inherit; } }

/* ── home: featured service band (NIPT), kept from the live site ── */
.feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); border-radius: var(--r-l); overflow: hidden; background: var(--band); color: #D5E3F1; box-shadow: 0 30px 60px -36px rgba(11,34,53,.65); }
.feature__b { padding: clamp(28px, 5vw, 64px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.feature .kicker { color: #7FE0D0; }
.feature h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 18px; }
.feature p:not(.kicker) { font-size: 1.075rem; line-height: 1.6; max-width: 56ch; }
.feature__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; padding: 0; }
.feature__chips li { padding: 7px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; font-weight: 700; font-size: .875rem; }
.feature__img { position: relative; min-height: 320px; }
.feature__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.btn--line { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--line:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature__img { order: -1; min-height: 220px; }
}
@media print { .feature { background: none; color: #000; box-shadow: none; } .feature h2 { color: #000; } .feature__img { display: none; } }

/* italic accents: Georgia italic in blue, as on the live site; red on the urgent page */
.phero[data-stage="urgent"] h1 em { color: var(--red-deep); }
.feature h2 em, .worry h2 em { color: #9FD8FF; }

/* ── home: "What do you need right now?" — structure from limihospital.org ── */
.triage h2 { margin-bottom: 26px; }
.triage__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tri { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 22px; border-radius: var(--r-m); background: #fff; border: 1px solid #E4EBEF; box-shadow: var(--lift); color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.tri:hover { transform: translateY(-3px); border-color: var(--blue); color: var(--ink); text-decoration: none; box-shadow: 0 22px 44px -30px rgba(16,42,67,.55); }
.tri__k { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.tri__t { font: 600 1.35rem/1.2 var(--serif); }
.tri__d { color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.tri__go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }
.tri__go::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .2s var(--ease); }
.tri:hover .tri__go::after { transform: translateX(3px) rotate(45deg); }
.tri--now { background: var(--navy-deep); border-color: var(--navy-deep); border-left: 5px solid var(--red); color: #fff; }
.tri--now:hover { color: #fff; border-color: var(--navy-deep); border-left-color: var(--red); }
.tri--now .tri__k { color: #FF8A8A; }
.tri--now .tri__d { color: #C9D5E4; }
.tri--now .tri__go { color: #FF8A8A; }
.triage__route { margin: 18px 0 0; font-size: .9375rem; color: var(--ink-2); }
.triage__route a { font-weight: 700; }
@media (max-width: 980px) { .triage__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .triage__grid { grid-template-columns: 1fr; } }

/* ── home: the strengths band as a numbers band (limihospital.org's facts band, in LCH blue) ── */
.strengths { background: var(--blue); }
.strengths .strength i { display: none; }
.strength { grid-template-columns: 1fr; padding-top: 34px; padding-bottom: 34px; }
.strength + .strength { border-left-color: rgba(255,255,255,.22); }
.strength__n { display: block; font: italic 400 clamp(2.4rem, 4.2vw, 3.4rem)/1 Georgia, "Times New Roman", serif; color: #fff; margin-bottom: 12px; letter-spacing: -.01em; }
.strength b { color: #fff; }
.strength span { color: #DCEBF8; }
@media (max-width: 980px) { .strength:nth-child(n+3) { border-top-color: rgba(255,255,255,.22); } }

/* photo heroes on inner pages sit on the page like the live site's hero photo */
.phero__art img[src$=".jpg"] { box-shadow: 0 30px 60px -36px rgba(16,42,67,.55); }
