/* Bebis: the logged-in app (.baby) and the public guide (.baby-guide) share these tokens.
   Colours follow the entity everywhere: night = blue, nap = aqua, feeds = orange, awake time = violet (soft tint).
   Light and dark values are the data-viz palette's own steps (checked with the validator against the card surfaces). */
.baby, .baby-guide {
  --night: #2a78d6; --nap: #1baf7a; --feed: #eb6834; --awake: #4a3aa7; --solid: #e87ba4;
  --awake-tint: rgba(74, 58, 167, .17); --win: rgba(74, 58, 167, .09);
  --track: #ece8df; --grid: #e6e2d9; --band: rgba(29, 28, 26, .06); --on-fill: #fff;
  --btn-night: #2a78d6; --over: #9a5b12;
  --h1: #b7d3f6; --h2: #86b6ef; --h3: #5598e7; --h4: #2a78d6; --h5: #184f95; --h0: #f1eee7;
  --ok-text: #1f6b3a; --danger: #b42318; --danger-soft: #fdebe9; --tip-bg: #1d1c1a; --tip-text: #fff;
}
@media (prefers-color-scheme: dark) {
  .baby, .baby-guide {
    --night: #3987e5; --nap: #199e70; --feed: #d95926; --awake: #9085e9; --solid: #d55181;
    --awake-tint: rgba(144, 133, 233, .24); --win: rgba(144, 133, 233, .13);
    --track: #2a2a27; --grid: #2f2e2b; --band: rgba(255, 255, 255, .07);
    --btn-night: #3987e5; --over: #e0a458;
    --h1: #12365f; --h2: #184f95; --h3: #256abf; --h4: #3987e5; --h5: #86b6ef; --h0: #262623;
    --ok-text: #8fd6a8; --danger: #ff9b8f; --danger-soft: #3d1c18; --tip-bg: #ecebe7; --tip-text: #151514;
  }
}

/* ---------- shell ------------------------------------------------------------------------------------------------- */
.baby { max-width: 640px; margin: 0 auto; padding: 10px 16px calc(92px + env(safe-area-inset-bottom)); }
.baby * { min-width: 0; }
.baby button { font: inherit; color: inherit; }
.baby h2 { font-size: 17px; margin: 0 0 8px; letter-spacing: -.01em; }
.baby h3 { font-size: 15px; margin: 14px 0 6px; }
.baby .muted { color: var(--muted); } .baby .small { font-size: 13px; }
.baby .b-foot { margin: 22px 2px 0; color: var(--muted); font-size: 12.5px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.baby svg.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.baby :focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }

.baby .card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin: 0 0 12px; }
.baby .card > h2:first-child, .baby .card > .ch:first-child { margin-top: 0; }
.baby .ch { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.baby .ch h2 { margin: 0; }

/* bottom tab bar on phones, a pill row on wide screens */
.b-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
.b-tabs button { border: 0; background: none; padding: 6px 2px 5px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted);
  font-size: 11.5px; line-height: 1.15; cursor: pointer; border-radius: 12px; min-height: 52px; }
.b-tabs svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.b-tabs button[aria-pressed="true"] { color: var(--accent); font-weight: 700; }
.b-tabs button[aria-pressed="true"] svg { stroke-width: 2.2; }
@media (min-width: 720px) {
  .baby { padding-bottom: 40px; }
  .b-tabs { position: static; z-index: auto; display: flex; gap: 6px; border: 0; background: none; padding: 0; margin: 0 0 14px; }
  .b-tabs button { flex-direction: row; gap: 7px; padding: 8px 14px; font-size: 14px; border: 1px solid var(--line); background: var(--surface); min-height: 0; border-radius: 99px; }
  .b-tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
  .b-tabs svg { width: 18px; height: 18px; }
}

/* ---------- baby header, switcher ----------------------------------------------------------------------------------- */
.b-head { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; flex-wrap: wrap; }
.b-head .who { flex: 1 1 140px; }
.b-head .nm { font-size: 22px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.b-head .age { color: var(--muted); font-size: 14px; }
.b-head .age b { color: var(--text); font-weight: 650; }
.b-head .pill { font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); margin-left: 6px; vertical-align: 2px; }
.b-switch { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 99px; padding: 7px 13px; font-size: 14px; cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 650; }
.chip.add { border-style: dashed; color: var(--accent); background: none; }

/* ---------- buttons, fields ----------------------------------------------------------------------------------------- */
.btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; min-height: 44px; padding: 0 16px; cursor: pointer; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 650; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.ghost { border-color: transparent; background: none; color: var(--accent); padding: 0 8px; }
.btn.danger { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.btn.danger.armed, .btn.danger-fill { background: var(--danger); color: #fff; border-color: var(--danger); font-weight: 650; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; }
.btn.wide { width: 100%; min-height: 50px; font-size: 16px; }
.baby input[type="text"], .baby input[type="number"], .baby input[type="date"], .baby input[type="datetime-local"], .baby select, .baby textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.baby textarea { padding: 10px 12px; min-height: 64px; resize: vertical; }
.baby label.f { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.baby .chk { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 10px 0; }
.baby .chk input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.baby .hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.baby .err { color: var(--danger); background: var(--danger-soft); border-radius: 12px; padding: 9px 12px; font-size: 14px; margin: 10px 0 0; }
.baby .seg { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.baby .seg button { flex: 1; border: 0; background: none; padding: 10px 4px; cursor: pointer; font-size: 14.5px; min-height: 44px; }
.baby .seg button + button { border-left: 1px solid var(--line); }
.baby .seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.baby .row { display: flex; gap: 8px; align-items: center; } .baby .row.wrap { flex-wrap: wrap; } .baby .row.end { justify-content: flex-end; }
.baby .grow { flex: 1; }
.baby .badge { display: inline-block; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.baby .badge.owner { background: var(--accent-soft); color: var(--accent); }

/* banners, empty states */
.banner { border: 1px solid var(--line); background: var(--surface-2); border-radius: 14px; padding: 10px 12px; font-size: 14px; margin: 0 0 12px; display: flex; gap: 10px; align-items: center; }
.banner.warn { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.banner .grow { flex: 1; }
.invite { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 16px; padding: 12px 14px; margin: 0 0 12px; }
.invite p { margin: 0 0 8px; } .invite .row { margin-top: 4px; }
.empty { text-align: center; padding: 28px 12px; }
.empty svg.art { width: 92px; height: 92px; margin: 0 auto 8px; display: block; }
.empty h2 { font-size: 20px; } .empty p { color: var(--muted); max-width: 34ch; margin: 6px auto 14px; }
.empty.err2 h2 { color: var(--text); }

/* skeletons */
.sk { background: linear-gradient(100deg, var(--surface-2) 30%, var(--line) 50%, var(--surface-2) 70%); background-size: 220% 100%; animation: sk 1.4s linear infinite; border-radius: 10px; }
@keyframes sk { from { background-position: 120% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.sk.ring-sk { width: min(340px, 90%); aspect-ratio: 1; border-radius: 50%; margin: 6px auto; }
.sk.line { height: 16px; margin: 10px 0; } .sk.btn-sk { height: 66px; border-radius: 18px; margin: 10px 0; } .sk.card-sk { height: 92px; border-radius: 18px; margin: 0 0 12px; }

/* ---------- Idag: the day ring ----------------------------------------------------------------------------------- */
.ring-card { padding: 10px 8px 12px; }
.ringbox { max-width: 372px; margin: 0 auto; }
svg.ring { display: block; width: 100%; height: auto; overflow: visible; }
.ring text { font-family: var(--font); }
.ring .r-track { stroke: var(--track); }
.ring .r-awake { fill: var(--awake-tint); }
.ring .r-win { fill: var(--win); stroke: var(--awake); stroke-opacity: .55; stroke-width: 1; stroke-dasharray: 3 3; }
.ring .r-sleep.night, .strip .s-sleep.night { fill: var(--night); }
.ring .r-sleep.nap, .strip .s-sleep.nap { fill: var(--nap); }
.ring .r-est, .strip .s-est { stroke-width: 1.5; stroke-dasharray: 4 3; opacity: .95; }
.ring .r-est.night, .strip .s-est.night { stroke: var(--night); }
.ring .r-est.nap, .strip .s-est.nap { stroke: var(--nap); }
.ring .r-est.low, .strip .s-est.low { opacity: .55; stroke-dasharray: 2 4; }
.hatch { stroke-width: 1.7; } .hatch.night { stroke: var(--night); } .hatch.nap { stroke: var(--nap); }
.ring .r-tick, .strip .r-tick { stroke: var(--muted); stroke-opacity: .5; stroke-width: 1; }
.ring .r-tick.major, .strip .r-tick.major { stroke-opacity: .9; stroke-width: 1.5; }
.r-hr { fill: var(--muted); font-size: 12px; font-weight: 650; }
.ring .r-ftrack { stroke: var(--line); stroke-width: 1; }
.fm circle { fill: var(--feed); stroke: var(--surface); stroke-width: 2; }
.fm .g { fill: #fff; }
.fm.est circle { fill: var(--surface); stroke: var(--feed); stroke-width: 1.7; stroke-dasharray: 3 2.4; }
.fm.est circle.dot { fill: var(--feed); stroke: none; }
.fm.est.low { opacity: .55; }
.ring .r-ptrack { stroke: var(--line); stroke-width: 5; }
.ring .r-prog { stroke-width: 5; stroke-linecap: round; stroke: var(--awake); }
.ring .r-prog.early { opacity: .55; } .ring .r-prog.over { stroke: var(--over); } .ring .r-prog.sleep { stroke: var(--night); } .ring .r-prog.sleep.nap { stroke: var(--nap); }
.ring .r-plo { stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; opacity: .7; }
.r-hand-halo { stroke: var(--surface); stroke-width: 6; stroke-linecap: round; }
.r-hand { stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; }
.r-now { fill: var(--text); stroke: var(--surface); stroke-width: 2; }
.ring .r-c1 { fill: var(--muted); font-size: 15px; font-weight: 650; letter-spacing: .01em; }
.ring .r-c1.sleep { fill: var(--night); } .ring .r-c1.awake { fill: var(--awake); }
.ring .r-c2 { fill: var(--text); font-weight: 750; letter-spacing: -.02em; }
.ring .r-c3 { fill: var(--muted); font-size: 12.5px; }
.ring .r-c4 { font-size: 12.5px; font-weight: 700; fill: var(--awake); } .ring .r-c4.over { fill: var(--over); }
.ring [data-d], .strip [data-d] { cursor: pointer; }
.ring .r-sleep:hover, .ring .r-est:hover { opacity: .85; }
.ring-note .pick { color: var(--text); font-size: 14px; }
.ring-note { text-align: center; font-size: 12.5px; color: var(--muted); margin: 4px 8px 0; min-height: 36px; }
.ring-note .low { display: inline-block; background: var(--surface-2); border-radius: 99px; padding: 2px 10px; }

.legend { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 12.5px; color: var(--muted); margin: 10px 4px 0; justify-content: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex: none; }
.legend .sw.night { background: var(--night); } .legend .sw.nap { background: var(--nap); }
.legend .sw.awake { background: var(--awake-tint); border: 1px solid color-mix(in srgb, var(--awake) 45%, transparent); }
.legend .sw.est { background: repeating-linear-gradient(135deg, var(--night) 0 1.6px, transparent 1.6px 4.5px); border: 1.5px dashed var(--night); }
.legend .sw.win { background: var(--win); border: 1px dashed var(--awake); }
.legend svg.lg { display: block; }
.legend svg.lg .fm circle { stroke: none; }

/* big one-tap buttons */
.logrow { display: grid; grid-template-columns: 1.7fr 1fr; gap: 10px; margin: 12px 0 4px; }
.bigbtn { min-height: 70px; border-radius: 20px; border: 0; cursor: pointer; font-size: 19px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px 10px; line-height: 1.2; }
.bigbtn svg.ic { width: 26px; height: 26px; stroke-width: 2; }
.bigbtn .sub { font-size: 13px; font-weight: 600; opacity: .9; }
.bigbtn.sleep { background: var(--btn-night); color: #fff; }
.bigbtn.wake { background: var(--btn-night); color: #fff; }
.bigbtn.feed { background: var(--surface); color: var(--text); border: 2px solid var(--feed); }
.bigbtn.feed svg.ic { stroke: var(--feed); }
.bigbtn:disabled { opacity: .55; cursor: default; }
.bigbtn:active:not(:disabled) { transform: scale(.985); }
.quick { display: flex; justify-content: center; gap: 4px 14px; flex-wrap: wrap; margin: 6px 0 2px; font-size: 13.5px; color: var(--muted); }
.quick button { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 6px 4px; min-height: 36px; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.viewer-note { text-align: center; margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

/* strip */
.strip-card { padding: 10px 10px 8px; }
svg.strip { display: block; width: 100%; height: auto; }
.strip .s-track { fill: var(--track); } .strip .s-awake { fill: var(--awake-tint); } .strip .s-win { fill: var(--win); }
.strip .r-hr { font-size: 11px; }
.strip text { font-family: var(--font); }

/* next cards */
.nexts { display: grid; gap: 8px; margin-bottom: 12px; }
.next { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--surface); }
.next .top { display: flex; align-items: center; gap: 10px; }
.next .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.next .ico.nap { background: var(--nap); } .next .ico.feed { background: var(--feed); } .next .ico.night { background: var(--night); }
.next .ico svg.ic { stroke: #fff; width: 20px; height: 20px; }
.next .t { flex: 1; }
.next .t b { font-size: 16.5px; letter-spacing: -.01em; } .next .t .s { display: block; color: var(--muted); font-size: 13px; }
.next .est-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; border: 1px dashed var(--muted); color: var(--muted); white-space: nowrap; }
.next details { margin-top: 4px; font-size: 13.5px; }
.next summary { cursor: pointer; color: var(--accent); padding: 4px 0; min-height: 28px; }
.next details p { margin: 4px 0 2px; color: var(--muted); }
.next.due { border-color: var(--over); }
.next.due .t b { color: var(--over); }

/* totals vs recommendation */
.tot { display: grid; gap: 12px; }
.tot .rowt .l { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14.5px; }
.tot .rowt .l b { font-size: 16px; }
.tot .rowt .rec { color: var(--muted); font-size: 13px; margin-top: 1px; }
.meter { position: relative; height: 10px; border-radius: 99px; background: var(--track); margin: 7px 0 4px; overflow: hidden; }
.meter .band { position: absolute; top: 0; bottom: 0; background: var(--band); border-left: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); }
.meter .fill { position: absolute; left: 0; top: 2px; bottom: 2px; border-radius: 99px; }
.meter .fill.night { background: var(--night); } .meter .fill.feed { background: var(--feed); } .meter .fill.nap { background: var(--nap); }
.vs { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.vs svg.ic { width: 14px; height: 14px; }
.agecard p { margin: 0; font-size: 14.5px; } .agecard .muted { margin-top: 4px; }
.agecard details.more { margin-top: 6px; font-size: 13.5px; } .agecard details.more summary { cursor: pointer; color: var(--accent); min-height: 32px; padding: 4px 0; }

/* ---------- Logg ------------------------------------------------------------------------------------------------- */
.log-day { margin: 14px 0 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.log-day h3 { margin: 0; font-size: 15px; } .log-day h3::first-letter { text-transform: uppercase; }
.log-day .sum { font-size: 12.5px; color: var(--muted); text-align: right; }
.logcard { padding: 4px 0; }
.lrow { display: grid; grid-template-columns: 56px 34px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border: 0; border-top: 1px solid var(--line); background: none; width: 100%; text-align: left; cursor: pointer; min-height: 56px; }
.lrow:first-child { border-top: 0; }
.lrow.ro { cursor: default; }
.lrow .tm { font-variant-numeric: tabular-nums; font-weight: 650; font-size: 15px; line-height: 1.2; }
.lrow .tm small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.lrow .ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.lrow .ico.night { background: var(--night); } .lrow .ico.nap { background: var(--nap); } .lrow .ico.feed { background: var(--feed); }
.lrow .ico svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lrow .ico svg .fill { fill: #fff; stroke: none; }
.lrow .tx b { font-weight: 650; } .lrow .tx { line-height: 1.3; }
.lrow .tx .s { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.lrow .live { color: var(--night); font-weight: 650; }

/* ---------- Historik --------------------------------------------------------------------------------------------- */
.filters { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.filters .seg { flex: 1; max-width: 300px; }
.chartcard h2 { margin-bottom: 2px; }
.chartcard .cap { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.chartwrap { position: relative; }
.chartwrap.busy { opacity: .5; transition: opacity .15s; }
svg.chart { display: block; width: 100%; height: auto; overflow: visible; touch-action: manipulation; }
.chart text { font-family: var(--font); }
.chart .c-grid { stroke: var(--grid); stroke-width: 1; } .chart .c-grid.base { stroke: var(--muted); stroke-opacity: .5; }
.chart .c-ax { fill: var(--muted); font-size: 10px; } .chart .c-ax.now { fill: var(--text); font-weight: 700; }
.chart .c-bl { fill: var(--muted); font-size: 10px; }
.chart .c-band { fill: var(--band); } .chart .c-band.feed { fill: color-mix(in srgb, var(--feed) 13%, transparent); } .chart .c-band.awake { fill: var(--win); }
.chart .c-bar.night { fill: var(--night); } .chart .c-bar.nap { fill: var(--nap); } .chart .c-bar.feed { fill: var(--feed); } .chart .c-bar.solid { fill: var(--solid); }
.chart .c-bar.today { opacity: .62; }
.chart .c-line { fill: none; stroke: var(--awake); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .c-dot { fill: var(--awake); stroke: var(--surface); stroke-width: 2; }
.chart .c-end { fill: var(--text); font-size: 11px; font-weight: 700; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.chart .hit { fill: transparent; cursor: pointer; } .chart .hit:hover, .chart .hit:focus, .chart .hit.on { fill: var(--text); fill-opacity: .07; outline: none; }
.chart .hm { shape-rendering: crispEdges; }
.chart .hm.h1 { fill: var(--h1); } .chart .hm.h2 { fill: var(--h2); } .chart .hm.h3 { fill: var(--h3); } .chart .hm.h4 { fill: var(--h4); } .chart .hm.h5 { fill: var(--h5); }
.chart .hm-feed { fill: var(--feed); stroke: var(--surface); stroke-width: 1; }
.chart .hit-heat { fill: transparent; cursor: crosshair; } .chart .hit-heat:focus { outline: none; }
.chart .cellmark { fill: none; stroke: var(--text); stroke-width: 1.4; pointer-events: none; }
.chart .c-grid.v { stroke-dasharray: none; stroke-opacity: .8; }
.hlegend { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 12.5px; color: var(--muted); margin: 8px 0 0; align-items: center; }
.hlegend span { display: inline-flex; align-items: center; gap: 6px; }
.hlegend .sw { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.hlegend .sw.solid { background: var(--solid); } .hlegend .sw.night { background: var(--night); } .hlegend .sw.nap { background: var(--nap); } .hlegend .sw.feed { background: var(--feed); }
.hlegend .sw.band { background: var(--band); border: 1px solid var(--muted); } .hlegend .sw.awakeband { background: var(--win); border: 1px solid var(--awake); }
.hlegend .ln { width: 18px; height: 0; border-top: 2px solid var(--awake); position: relative; display: inline-block; }
.hlegend .ln::after { content: ""; position: absolute; left: 5px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--awake); }
.hlegend .ramp { display: inline-flex; gap: 2px; } .hlegend .ramp i { width: 14px; height: 10px; display: inline-block; border-radius: 2px; }
.hlegend .ramp i:nth-child(1) { background: var(--h1); } .hlegend .ramp i:nth-child(2) { background: var(--h2); } .hlegend .ramp i:nth-child(3) { background: var(--h3); }
.hlegend .ramp i:nth-child(4) { background: var(--h4); } .hlegend .ramp i:nth-child(5) { background: var(--h5); }
.hlegend .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--feed); display: inline-block; }
.chartcard details { margin-top: 8px; font-size: 14px; }
.chartcard summary { cursor: pointer; color: var(--accent); min-height: 32px; padding: 4px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.tbl th, .tbl td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; white-space: nowrap; }
.tbl thead th { color: var(--muted); font-size: 12px; font-weight: 600; }
.tbl th.n, .tbl td.n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tbody th { font-weight: 600; }
.tablewrap { overflow-x: auto; }
.tip { position: absolute; z-index: 20; background: var(--tip-bg); color: var(--tip-text); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; pointer-events: none; min-width: 120px; max-width: 220px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.tip b { display: block; font-size: 12.5px; margin-bottom: 3px; opacity: .85; font-weight: 600; }
.tip .tr { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tip .tr strong { font-size: 14px; }
.tip .k { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: 3px; }
.tip .k.solid { background: var(--solid); } .tip .k.night { background: var(--night); } .tip .k.nap { background: var(--nap); } .tip .k.feed { background: var(--feed); } .tip .k.awake { background: var(--awake); }

/* ---------- Månad ------------------------------------------------------------------------------------------------ */
.monthnav { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.monthnav .ttl { flex: 1; text-align: center; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.monthnav .ttl small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.monthnav .btn { width: 46px; padding: 0; font-size: 18px; }
.mchips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -4px 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.mchips .chip { flex: none; min-width: 40px; justify-content: center; padding: 6px 10px; }
.mchips .chip.now:not([aria-pressed="true"]) { border-color: var(--accent); color: var(--accent); }
.mcard.area > h3 { font-size: 16px; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.mcard.area > h3 .dotk { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mcard.safe { background: var(--surface-2); border-style: dashed; }
.mcard.safe > h3 svg.shield { width: 20px; height: 20px; color: var(--accent); }
.mcard.area > h3 .dotk.sleep { background: var(--night); } .mcard.area > h3 .dotk.food { background: var(--feed); } .mcard.area > h3 .dotk.dev { background: var(--awake); } .mcard.area > h3 .dotk.src { background: var(--muted); }
.nighthint { margin: 0 0 6px !important; color: var(--warn); }
.mcard .corrnote { background: var(--accent-soft); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; margin: 0 0 12px; }
.mcard .mhead { font-size: 16px; font-weight: 600; margin: 0 0 12px; line-height: 1.4; }
.mcard .recttl { margin-top: 0; }
.mcard .mlink, .mcard .plink { margin: 10px 0 0; font-size: 14.5px; }
.mcard .headline { font-size: 15.5px; margin: 0 0 8px; font-weight: 600; }
.mcard h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 0 4px; }
.mcard ul { margin: 0; padding-left: 20px; } .mcard li { margin: 7px 0; line-height: 1.5; overflow-wrap: anywhere; }
.mcard details.more, .baby-guide details.more { margin: 4px 0 0; } .mcard details.more summary, .baby-guide details.more summary { cursor: pointer; color: var(--accent); min-height: 36px; padding: 6px 0; }
.mcard .bvc { background: var(--accent-soft); border-radius: 12px; padding: 4px 12px 8px; margin-top: 12px; }
.mcard .bvc h4 { color: var(--accent); }
.mcard .src { font-size: 13px; color: var(--muted); }
.mcard .src ol { padding-left: 20px; } .mcard .src li { margin: 5px 0; overflow-wrap: anywhere; }
.recgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.recgrid div { background: var(--surface-2); border-radius: 12px; padding: 8px 10px; font-size: 13px; color: var(--muted); }
.recgrid b { display: block; color: var(--text); font-size: 15px; letter-spacing: -.01em; }
.disclaimer { border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); padding: 8px 12px; border-radius: 0 10px 10px 0; font-size: 13.5px; margin: 12px 0 0; }

/* ---------- Dela & notiser ----------------------------------------------------------------------------------------- */
.member { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.member:first-of-type { border-top: 0; }
.member .nm { flex: 1 1 120px; font-weight: 600; overflow-wrap: anywhere; } .member .nm small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.member select { width: auto; min-height: 38px; font-size: 14px; }
.roles { display: grid; gap: 8px; margin: 8px 0; }
.roles label { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; cursor: pointer; align-items: flex-start; }
.roles label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.roles input { margin: 3px 0 0; accent-color: var(--accent); }
.roles b { display: block; } .roles span { font-size: 13px; color: var(--muted); }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); min-height: 52px; }
.sw-row:first-of-type { border-top: 0; }
.sw-row .tx { flex: 1; } .sw-row .tx b { font-weight: 600; display: block; } .sw-row .tx span { color: var(--muted); font-size: 13px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .15s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked + i { background: var(--accent); } .switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .switch i, .switch i::after { transition: none; } }
.pushbox { background: var(--surface-2); border-radius: 14px; padding: 12px; margin-top: 10px; }
.pushbox p { margin: 0 0 8px; font-size: 14px; }
.dangerzone { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.dangerzone .box { margin-top: 10px; background: var(--danger-soft); border-radius: 12px; padding: 10px 12px; }

/* ---------- sheets, toasts ---------------------------------------------------------------------------------------- */
.sheet-bg { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); color: var(--text); width: min(560px, 100%); max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0;
  padding: 14px 16px max(20px, env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.3); outline: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.sheet-head h2 { margin: 0; font-size: 19px; }
.sheet .xbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; display: grid; place-items: center; }
.sheet .xbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body.sheet-open { overflow: hidden; }
@media (min-width: 640px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; } }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.side { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 8px 0; }
.side .hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.side .hd b { font-size: 16px; } .side .mins { font-size: 26px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.side .mins small { font-size: 14px; font-weight: 500; color: var(--muted); }
.side .ctl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.side .ctl .btn { padding: 0 4px; }
.side .timer.on { background: var(--feed); color: #fff; border-color: var(--feed); font-weight: 700; }
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; align-items: center; margin: 8px 0; }
.stepper .val { text-align: center; font-size: 30px; font-weight: 750; letter-spacing: -.02em; }
.stepper .val small { font-size: 15px; font-weight: 500; color: var(--muted); }
.stepper .btn { font-size: 22px; padding: 0; min-height: 52px; }
.when .chips .chip { padding: 6px 11px; }

.dlgtxt { margin: 6px 0 10px; color: var(--muted); }
.b-toasts { position: fixed; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 1100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
@media (min-width: 720px) { .b-toasts { bottom: 24px; } }
.b-toast { pointer-events: auto; background: var(--tip-bg); color: var(--tip-text); border-radius: 14px; padding: 11px 14px; font-size: 14.5px; display: flex; align-items: center; gap: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.3); max-width: min(94vw, 460px); animation: tin .18s ease-out; }
.b-toast.err { background: var(--danger); color: #fff; }
.b-toast button { background: none; border: 0; color: inherit; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 4px; min-height: 36px; font-size: 14.5px; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .b-toast { animation: none; } }

/* ---------- the public guide ----------------------------------------------------------------------------------------- */
.baby-guide { max-width: 700px; margin: 0 auto; padding: 18px 16px 48px; line-height: 1.6; }
.baby-guide h1 { font-size: 30px; letter-spacing: -.02em; margin: 6px 0 6px; line-height: 1.15; }
.baby-guide h2 { font-size: 21px; margin: 28px 0 6px; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.baby-guide h2 .dotk { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.baby-guide .sec-card.safe { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 16px; padding: 4px 16px 12px; margin: 20px 0 8px; }
.baby-guide .sec-card.safe h2 { margin-top: 12px; font-size: 18px; }
.baby-guide svg.shield { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.baby-guide .dotk.sleep { background: var(--night); } .baby-guide .dotk.food { background: var(--feed); } .baby-guide .dotk.dev { background: var(--awake); } .baby-guide .dotk.src { background: var(--muted); }
.baby-guide h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 4px; }
.baby-guide .crumbs { font-size: 13.5px; color: var(--muted); } .baby-guide .crumbs a { color: var(--muted); }
.baby-guide .lead { font-size: 18px; color: var(--text); margin: 4px 0 10px; }
.baby-guide ul { padding-left: 22px; margin: 4px 0; } .baby-guide li { margin: 7px 0; }
.baby-guide .headline { font-weight: 650; font-size: 17px; margin: 4px 0 6px; }
.baby-guide .pn { display: flex; justify-content: space-between; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.baby-guide .pn a { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 14px; text-decoration: none; min-height: 44px; }
.baby-guide .pn a.all { order: 3; flex: 1 1 100%; justify-content: center; }
.baby-guide .bvc { background: var(--accent-soft); border-radius: 12px; padding: 2px 14px 10px; margin: 14px 0; }
.baby-guide .bvc h3 { color: var(--accent); }
.baby-guide .recgrid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.baby-guide table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0; }
.baby-guide th, .baby-guide td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.baby-guide th { color: var(--muted); font-weight: 600; font-size: 13px; width: 52%; }
.baby-guide .src ol { padding-left: 22px; font-size: 14px; } .baby-guide .src li { overflow-wrap: anywhere; margin: 6px 0; }
.baby-guide .disclaimer { margin: 22px 0 0; }
.baby-guide .cta { margin: 24px 0 0; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px 16px; }
.baby-guide .cta p { margin: 0 0 8px; }
.baby-guide .cta .btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 650; }
.baby-guide .months { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .baby-guide .months { grid-template-columns: 1fr 1fr; } }
.baby-guide .months a { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: var(--text); border: 1px solid var(--line); background: var(--surface); border-radius: 14px; height: 100%; }
.baby-guide .months a:hover { border-color: var(--accent); }
.baby-guide .months .n { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.baby-guide .months b { display: block; } .baby-guide .months span.s { color: var(--muted); font-size: 13.5px; line-height: 1.4; display: block; }
.baby-guide .allm { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.baby-guide .allm a { min-width: 40px; text-align: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; background: var(--surface); }
.baby-guide .allm a[aria-current="page"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 700; }
/* month page as cards (2026-11-01): chips to jump, number tiles, one card per part, no references on the page */
.baby-guide .jump { display: flex; gap: 6px; overflow-x: auto; margin: 12px -16px 4px; padding: 2px 16px 6px; scrollbar-width: none; }
.baby-guide .jump::-webkit-scrollbar { display: none; }
.baby-guide .jump a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 4px 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 14.5px; }
.baby-guide .jump a:hover { border-color: var(--accent); }
.baby-guide .gcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 2px 16px 12px; margin: 14px 0; scroll-margin-top: 12px; }
.baby-guide .gcard > h2 { margin: 14px 0 6px; font-size: 20px; }
.baby-guide .gcard.safe { background: var(--surface-2); border-style: dashed; }
.baby-guide .gcard.safe > h2 { font-size: 18px; }
.baby-guide .gcard .sub { scroll-margin-top: 12px; } .baby-guide .gcard .sub + .sub { border-top: 1px solid var(--line); margin-top: 10px; }
.baby-guide .gcard p { margin: 6px 0; }
.baby-guide .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
.baby-guide .tiles div { background: var(--surface-2); border-radius: 12px; padding: 9px 11px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.baby-guide .tiles b { display: block; color: var(--text); font-size: 16.5px; margin: 2px 0 1px; letter-spacing: -.01em; }
.baby-guide .tiles span { display: block; } .baby-guide .tiles div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.baby-guide .note { color: var(--muted); font-size: 14px; line-height: 1.5; }
.baby-guide .avoid { background: color-mix(in srgb, var(--warn) 9%, var(--surface)); border-radius: 12px; padding: 2px 14px 8px; margin: 12px 0 4px; }
.baby-guide .avoid h3 { color: var(--warn); }
.baby-guide .golink { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 11px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--text); text-decoration: none; line-height: 1.4; }
.baby-guide .golink b { display: block; font-weight: 650; } .baby-guide .golink span span { display: block; color: var(--muted); font-size: 14px; }
.baby-guide .golink i { margin-left: auto; font-style: normal; font-size: 22px; color: var(--accent); }
.baby-guide .about .disclaimer { margin: 10px 0 4px; }
.baby-guide .srcl { list-style: none; padding: 0; margin: 4px 0; font-size: 14.5px; }
.baby-guide .srcl li { margin: 0; padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; line-height: 1.45; } .baby-guide .srcl li:first-child { border-top: 0; }
.baby-guide .srcl li span { display: block; color: var(--muted); font-size: 13px; }
.baby-guide .method .tag { display: inline-block; margin: 14px 0 0; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 650; background: var(--surface-2); color: var(--muted); }
.baby-guide .method .tag.good { background: var(--accent-soft); color: var(--accent); }
.baby-guide .method .tag.warn { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: var(--warn); }
.baby-guide .method .tag.bad { background: var(--danger-soft); color: var(--danger); }
.baby-guide .method > h2 { margin-top: 8px; }
.baby-guide .pc { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 8px 0 2px; }
@media (min-width: 560px) { .baby-guide .pc { grid-template-columns: 1fr 1fr; } }
.baby-guide .pc > div { border-radius: 12px; padding: 2px 14px 8px; }
.baby-guide .pc .pro { background: var(--accent-soft); } .baby-guide .pc .pro h3 { color: var(--accent); }
.baby-guide .gcard.flags { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); }
.baby-guide .gcard.flags > h2 { font-size: 18px; } .baby-guide .gcard.flags h3 { color: var(--danger); margin-top: 12px; }
.baby-guide .pc .con { background: color-mix(in srgb, var(--warn) 9%, var(--surface)); } .baby-guide .pc .con h3 { color: var(--warn); }

/* time chips under the big button, in the sleep sheet and in "Ändra tid" */
.quick { flex-direction: column; align-items: center; gap: 2px; }
.qrow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.qrow.left { justify-content: flex-start; margin: 8px 0 2px; }
.qrow .ql { color: var(--muted); font-size: 13.5px; }
.qrow.links { gap: 2px 14px; }
.chip.sm { padding: 5px 11px; font-size: 14px; min-height: 36px; }
.quick .qrow .chip.sm { border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; border-radius: 99px; padding: 5px 8px; min-height: 36px; font-size: 14px; }
.chip.sm.num { min-width: 42px; justify-content: center; padding: 5px 8px; font-variant-numeric: tabular-nums; }
.nudge .chip.sm { min-width: 46px; justify-content: center; font-variant-numeric: tabular-nums; }
.recent { margin: 8px 0 4px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.recent .lrow { grid-template-columns: 86px 1fr 20px; }
.recent .chev svg.ic { width: 16px; height: 16px; color: var(--muted); }

/* "Läs om månad X" + chapter reader (footer of every tab) */
.b-guide { margin: 22px 2px 0; }
.b-guide .gl { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.b-guide .glink { font-weight: 650; font-size: 15px; }
.b-guide .btn svg.ic { width: 16px; height: 16px; margin-left: 4px; transition: transform .15s; }
.b-guide .btn[aria-expanded="true"] svg.ic { transform: rotate(180deg); }
#chap-body { margin-top: 10px; }
#chap-body .chips { display: flex; flex-wrap: wrap; gap: 8px; }
#chap-view { margin-top: 12px; }
#chap-view .corrnote { background: var(--accent-soft); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; margin: 0 0 12px; }
#chap-view .mcard:last-of-type { margin-bottom: 8px; }
.chap-more { font-size: 13.5px; color: var(--muted); margin: 0 0 4px; }
@media (prefers-reduced-motion: reduce) { .b-guide .btn svg.ic { transition: none; } }

@media print {
  .site-header, .site-footer, .site-about, .b-tabs, .b-toasts, .b-guide, .baby-guide .cta, .baby-guide .pn, .baby-guide .allm, .baby-guide .crumbs, .baby-guide .jump, .baby-guide .golink { display: none !important; }
  body { background: #fff; color: #000; }
  .baby-guide { max-width: none; padding: 0; font-size: 12pt; line-height: 1.45; --accent-soft: #fff; }
  .baby-guide a { color: #000; text-decoration: none; }
  .baby-guide .src a::after { content: " (" attr(href) ")"; font-size: 10pt; }
  .baby-guide h2 { break-after: avoid; } .baby-guide li, .baby-guide .bvc, .baby-guide .disclaimer { break-inside: avoid; }
  .baby-guide .bvc { border: 1px solid #000; }
  .baby-guide .gcard { border: 0; padding: 0; margin: 10px 0; background: none; break-inside: auto; }
  .baby-guide .tiles div, .baby-guide .avoid, .baby-guide .pc > div { background: none; border: 1px solid #999; }
}
