/* Mother's wellbeing page (/ejeler/ruhy/): only what hub.css does not give.
   Colours come from the hub.css variables only, so dark mode follows them.
   Mobile first (320 / 375 px); tap targets at least 48 px. */

.wb-h1 { font-size: 26px; line-height: 1.15; margin: 4px 0 12px; letter-spacing: -.015em; }

/* quick links to the sections. On a phone they are one row that scrolls
   sideways (the red "Cannot wait" chip first, the next chip cut at the edge
   so the row reads as scrollable); from 560 px they wrap. A scroller clips
   what overflows it, so it carries 7 px of padding for hub.css's focus ring
   (3 px outline + 3 px offset), cancelled by a negative margin: the chips sit
   where they would without it. */
.wb-nav { margin: 0 0 6px; }
.wb-nav ul {
  list-style: none; margin: -7px; padding: 7px 7px 13px; display: flex; flex-wrap: nowrap; gap: 8px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 7px;
  scrollbar-width: none;
}
.wb-nav ul::-webkit-scrollbar { display: none; }
.wb-nav li { flex: none; scroll-snap-align: start; }
.wb-nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 999px;
  background: var(--band); border: 1px solid var(--line); color: var(--ink);
  font-weight: 800; font-size: 14px; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.wb-nav a.red { background: var(--red-bg); border-color: var(--red-line); color: var(--red-ink); }

/* sections and linked cards land below the sticky site header */
.wb-sec, .wb-red, .wb-tier { scroll-margin-top: 84px; }
.wb-sublead { margin: -2px 0 12px; font-size: 15.5px; color: var(--ink-mid); line-height: 1.45; }
.wb-after { margin: 12px 0 0; font-size: 15px; color: var(--ink-mid); line-height: 1.45; }
.wb-h3 { font-size: 16.5px; font-weight: 800; margin: 18px 0 8px; line-height: 1.3; }
.wb-do { font-weight: 800; color: var(--ink) !important; }

/* red cards: cannot wait */
.wb-reds { display: grid; gap: 12px; }
.wb-red { background: var(--red-bg); border: 2px solid var(--red-line); border-radius: 22px; padding: 16px; color: var(--red-ink); }
/* --red-ink on --red-bg: 7.7:1 light, 9.7:1 dark (--red was 4.0:1 in light);
   the icon keeps --red (a graphic: 4.0:1 / 5.7:1, above 3:1) */
.wb-red h3 { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; font-size: 19px; line-height: 1.25; color: var(--red-ink); }
.wb-red h3 svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wb-red p { margin: 10px 0 0; font-size: 15px; line-height: 1.45; }
.wb-red .wb-lead { margin-top: 0; font-weight: 700; }
.wb-red .rflist { margin-top: 8px; }
.wb-red .rflist li { font-size: 15.5px; font-weight: 700; margin: 7px 0; line-height: 1.35; }

/* tier cards in WHO's colours: red (a doctor today), amber (needs attention) */
.wb-tier { border-radius: 22px; padding: 16px; border: 2px solid var(--line); background: var(--surface); }
.wb-tier.green { background: var(--green-bg); border-color: var(--green-line); }
.wb-tier.amber { background: var(--amber-bg); border-color: var(--amber-line); }
.wb-tier.red { background: var(--red-bg); border-color: var(--red-line); }
.wb-tier.red h3 { color: var(--red-ink); }
.wb-tier.red .wb-list li::marker { color: var(--red); }
/* hub.css's amber pill is white on --amber (2.3:1); here it sits on --amber-ink:
   6.6:1 light (white text), 11.7:1 dark (hub.css's dark pill text) */
.wb-tier.amber .pill { background: var(--amber-ink); }
.wb-tier h3 { margin: 10px 0 6px; font-size: 18px; line-height: 1.25; }
.wb-tier .pill + h3 { margin-top: 10px; }
.wb-tier > h3:first-child { margin-top: 0; }
.wb-tier p { margin: 8px 0 0; font-size: 15px; color: var(--ink-mid); line-height: 1.45; }
.wb-tier .wb-lead { margin-top: 0; font-weight: 700; color: var(--ink); }
.wb-list { margin: 8px 0 0; padding-left: 20px; }
.wb-list li { margin: 7px 0; font-size: 15px; line-height: 1.4; }
.wb-tier.amber .wb-list li::marker { color: var(--amber-ink); }
.wb-scope { font-size: 13px !important; color: var(--ink-mid) !important; }

/* links to other pages: their own line, a full 48 px target. Ink text (terracotta
   text on the amber and band grounds is under 4.5:1); the chevron carries the colour. */
.wb-go { display: flex; align-items: center; gap: 4px; min-height: 48px; color: var(--ink); font-weight: 800; font-size: 14.5px; text-decoration: underline; text-decoration-color: var(--terracotta); text-underline-offset: 3px; }
.wb-go svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--terracotta); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wb-up { display: flex; align-items: center; min-height: 48px; color: var(--red-ink); font-weight: 800; font-size: 14.5px; text-decoration-color: var(--red); text-underline-offset: 3px; }

.wb-grid2 { display: grid; gap: 12px; }
.wb-year { margin: 12px 0 0; font-size: 15px; font-weight: 700; color: var(--ink); }

/* the two-week date helper */
.wb-date { margin-top: 14px; }
.wb-date h3 { margin: 0 0 10px; font-size: 17px; }
.wb-date .field { margin-bottom: 0; }
.wb-date .inp { width: 100%; max-width: 280px; min-height: 52px; }
.wb-date-out { margin: 12px 0 0; font-size: 15.5px; font-weight: 700; line-height: 1.45; border-radius: 14px; }
.wb-date-out p { margin: 0; }
/* before / on the day: nothing urgent waits for the date (C1) */
.wb-nowait { margin-top: 10px; padding: 10px 12px 2px; border-radius: 12px; background: var(--red-bg); border: 1px solid var(--red-line); color: var(--red-ink); font-size: 14.5px; font-weight: 700; }
.wb-date-out.hint { color: var(--ink-mid); font-weight: 600; }
.wb-date-out.info { padding: 12px 14px; background: var(--band); color: var(--ink); }
/* past the day: E7's yellow follow-up, in amber (H11); --amber-ink on --amber-bg 5.8:1 light, 9.5:1 dark */
.wb-date-out.amber { padding: 12px 14px; background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber-ink); }
.wb-date-out.err { color: var(--red); }
.wb-child { margin-top: 8px; }

/* plain lists in a card */
.wb-dots { margin: 0; padding: 6px 16px 6px 36px; }
.wb-dots li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.wb-dots li:last-child { border-bottom: 0; }
.wb-dots li::marker { color: var(--terracotta); }
.wb-dots .wb-go { margin-top: 2px; }

/* the thoughts: one unit, three parts */
.wb-th { padding: 0; overflow: hidden; }
.wb-part { padding: 14px 16px; }
.wb-part + .wb-part { border-top: 1px solid var(--line); }
.wb-part h3 { margin: 0 0 6px; font-size: 16.5px; line-height: 1.25; }
.wb-part p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-mid); }
.wb-part p + p, .wb-part blockquote + p { margin-top: 10px; }
.wb-part.green { background: var(--green-bg); }
.wb-part.amber { background: var(--amber-bg); }
.wb-part.amber h3 { color: var(--amber-ink); }
.wb-part.red { background: var(--red-bg); }
.wb-part.red h3, .wb-part.red p { color: var(--red-ink); }
.wb-rule { font-weight: 800; color: var(--ink) !important; }
.wb-saylead { margin-top: 12px !important; font-weight: 700; }

/* sentences to say */
.wb-quotes { display: grid; gap: 8px; }
.wb-quote {
  margin: 8px 0 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line);
  border-left: 5px solid var(--terracotta); border-radius: 14px; font-weight: 700; font-size: 15.5px; line-height: 1.4; color: var(--ink);
}
.wb-quotes .wb-quote { margin: 0; }

/* what helps */
.wb-dwm { margin-top: 14px; }
.wb-dwm h3 { display: flex; gap: 10px; align-items: center; margin: 0 0 6px; font-size: 17px; line-height: 1.25; }
.wb-dwm h3 svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--terracotta); stroke-width: 2; stroke-linejoin: round; }
.wb-dwm p { margin: 0; font-size: 15px; color: var(--ink-mid); line-height: 1.45; }
.wb-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wb-links .btn2 { flex: 1 1 200px; font-size: 14.5px; }
.wb-links .ext { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wb-meds { margin-top: 14px; padding: 12px 16px; border-radius: 18px; background: var(--band); }
.wb-meds p { margin: 0; font-size: 14.5px; color: var(--ink-mid); }

/* the family */
.wb-take { margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--tint-t); font-weight: 800; font-size: 15.5px; line-height: 1.4; color: var(--ink); }
.wb-words { display: grid; gap: 12px; margin-top: 14px; }
.wb-words h3 { margin: 0 0 4px; font-size: 15.5px; }
.wb-words ul { list-style: none; margin: 0; padding: 0; }
.wb-words li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.wb-words li::before { position: absolute; left: 2px; top: 8px; font-weight: 800; font-size: 16px; }
.wb-words .close li { color: var(--ink-mid); }
.wb-words .close li::before { content: "\2715"; color: var(--red); }
.wb-words .open li { font-weight: 700; }
.wb-words .open li::before { content: "\2713"; color: var(--green); }

/* this week's card: legible as a phone screenshot */
.wb-sub { margin: 26px 0 0; font-size: 14px; color: var(--ink-mid); }
.wb-card { margin-top: 8px; }
.wb-cardh { margin: 0 0 6px; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.wb-checks { list-style: none; margin: 8px 0 0; padding: 0; }
.wb-checks li { position: relative; padding: 10px 0 10px 34px; border-top: 1px solid var(--line); font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.wb-checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border: 2px solid var(--ink-soft); border-radius: 6px; }
.wb-cardred { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--red-bg); border: 1px solid var(--red-line); color: var(--red-ink); font-size: 14.5px; line-height: 1.4; }
.wb-cardgrp + .wb-cardgrp { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--red-line); }
.wb-cardred b { color: var(--red-ink); font-size: 15.5px; }
.wb-cardred ul { margin: 6px 0 0; padding-left: 18px; }
.wb-cardred li { margin: 4px 0; font-weight: 700; }
.wb-card .brandline img { width: 28px; height: 28px; border-radius: 50%; }

.wb-clinic { margin: 14px 0 0; font-size: 15px; font-weight: 700; color: var(--ink); }

/* one column on phones (the word cards and the two tiers stack at 320-559 px) */
.wb-words, .wb-grid2, .wb-quotes { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) {
  .wb-nav ul { flex-wrap: wrap; overflow-x: visible; padding: 0; margin: 0; }
  .wb-words { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (min-width: 760px) {
  .wb-h1 { font-size: 34px; margin: 8px 0 14px; }
  .wb-red, .wb-tier { padding: 20px 22px; }
  .wb-red h3 { font-size: 20px; }
  .wb-grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .wb-quotes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wb-quotes .wb-quote:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .wb-part { padding: 18px 22px; }
  .printcard.wb-card { padding: 26px 28px; }
}

@media print {
  /* the printout is the card and the danger signs; the long reading is for the screen */
  .wb-long, .wb-nav, .wb-date, .wb-sub, .wb-up, .wb-go { display: none !important; }
  .wb-red, .wb-tier, .wb-cardred, .wb-part { background: #fff !important; color: #000 !important; border-color: #999 !important; break-inside: avoid; }
  .wb-red h3, .wb-cardred b, .wb-tier h3 { color: #000 !important; }
  .wb-red h3 svg { stroke: #000; }
  .wb-cardgrp + .wb-cardgrp { border-top-color: #999; }
  .wb-red .call { background: #fff !important; color: #000 !important; border: 2px solid #000; }
  .wb-checks li::before { border-color: #000; }
  .wb-card { break-before: page; }
}
