/* The sitter's page (R15-B, js/sitter-page.js): the same cards on the wall's Sitter view and in the pocket edition.
   Every color is a token from tokens.css; each page sets the sizes (--care-*) for its own screen. */
.care-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--care-gap, 14px);
  align-content: start;
}
.care-card {
  display: grid;
  gap: calc(var(--care-gap, 14px) * 0.75);
  align-content: start;
  padding: var(--care-pad, 18px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: var(--care-text, 17px);
  line-height: 1.35;
  min-width: 0;               /* a card never grows past its column... */
  overflow-wrap: anywhere;    /* ...so a long word (a Wi-Fi password, a web address) breaks instead */
}
.care-title { display: flex; align-items: center; gap: 0.5em; margin: 0; font-size: var(--care-title, 20px); font-weight: 800; line-height: 1.15; }
.care-title svg { flex-shrink: 0; width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* The numbers come first and read from across the room. */
.care-emergency { border-top: calc(var(--care-pad, 18px) * 0.45) solid var(--alarm); background: color-mix(in oklab, var(--alarm) 5%, var(--surface)); }
.care-emergency .care-title svg { color: var(--alarm); fill: color-mix(in oklab, var(--alarm) 18%, var(--surface)); }
.care-address { margin: 0; color: var(--ink-soft); }
.care-address strong { color: var(--ink); }
.care-contacts, .care-house-notes, .care-steps { list-style: none; margin: 0; padding: 0; }
.care-contacts { display: grid; grid-template-columns: minmax(0, 1fr); }
.care-contact { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; padding: 0.55em 0; border-top: 1px dashed var(--line); }
.care-contact:last-child { padding-bottom: 0; }
.care-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6em; min-width: 0; }
.care-relation { font-family: var(--font-story); font-style: italic; color: var(--ink-soft); }
.care-phone { flex-shrink: 0; font-size: var(--care-phone, 20px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; color: var(--ink); white-space: nowrap; }
a.care-phone { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; }

/* A card per child, in the child's color, as on Routines. */
.care-kids { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--care-kid-min, 240px)), 1fr)); gap: var(--care-gap, 14px); }
.care-kid { --k: var(--cal-green); border-top: calc(var(--care-pad, 18px) * 0.45) solid var(--k); background: color-mix(in oklab, var(--k) 9%, var(--surface)); }
.care-kid-name { font-size: calc(var(--care-title, 20px) * 1.25); color: color-mix(in oklab, var(--k) 40%, var(--ink)); }
.care-notes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.7em; margin: 0; }
.care-note dt { font-size: 0.72em; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.care-note dd { margin: 0.1em 0 0; }
.care-note-allergies dd { font-weight: 800; }
.care-bedtime { display: grid; gap: 0.6em; padding-top: 0.8em; border-top: 1px dashed color-mix(in oklab, var(--k) 35%, var(--line)); }
.care-bedtime-when { display: flex; align-items: center; gap: 0.45em; margin: 0; color: var(--ink-soft); }
.care-bedtime-when strong { color: var(--ink); }
.care-bedtime-when svg { flex-shrink: 0; width: 1.3em; height: 1.3em; fill: none; stroke: color-mix(in oklab, var(--k) 55%, var(--ink)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.care-steps { display: flex; flex-wrap: wrap; gap: 0.45em; }
.care-step { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.3em 0.75em 0.3em 0.5em; border-radius: 999px; background: color-mix(in oklab, var(--k) 16%, var(--surface)); font-weight: 700; font-size: 0.92em; }
.care-step svg { flex-shrink: 0; width: 1.5em; height: 1.5em; fill: none; stroke: color-mix(in oklab, var(--k) 45%, var(--ink)); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.care-house .care-title svg { color: var(--accent); }
.care-house-notes { display: grid; grid-template-columns: minmax(0, 1fr); }
.care-house-notes li { padding: 0.5em 0; border-top: 1px dashed var(--line); font-family: var(--font-story); }
.care-house-notes li:last-child { padding-bottom: 0; }
.care-bare { margin: 0; font-family: var(--font-story); font-style: italic; color: var(--ink-soft); font-size: var(--care-text, 17px); }
