/* /sit-down/ — the week ahead, sat down for once a week (UX run-21, DESIGN.md § 8g). A v2 page on the
   css/toys.css tokens: putty surface, physical depth, springy keys, light and dark, Geist + Geist Mono
   like the other family pages. One mint accent, the family week's colour: the week slab, the step you
   are on and the key that moves on. The steps sit on an ink «table» in both schemes, and each step is an
   off-white sheet on it with ink text in both schemes, so the sheet reads the same at night. Mint is an
   object colour and stays the same in dark mode; text on it is ink. */
body.sd {
  --t-display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --sd-gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --sd-ink: #141414;               /* text on mint: 8.38:1; text on the sheet: 17:1 */
  --sd-ink-2: #5d5b55;             /* secondary text on the sheet: 6.3:1 */
  --sd-paper: #f7f6f2;             /* the sheet, in both schemes */
  --sd-paper-2: #e9e7e0;           /* wells on the sheet */
  --sd-line: rgba(20,20,20,.14);
  --sd-table: #141414;             /* the stage */
  --sd-mint-text: #096b47;         /* mint-coloured text on putty and card, light: 5.49 / 6.06:1 */
  padding-top: var(--header-h);
  font-family: var(--t-display);
  font-variation-settings: normal;
}
@media (prefers-color-scheme: dark) {
  body.sd { --sd-table: #0e0e0d; --sd-mint-text: #17c787; }
}
html:has(body.sd) { scroll-padding-top: calc(var(--header-h) + 18px); }
body.sd .t-wrap,
body.sd .container-wide { width: min(100% - 2 * var(--sd-gutter), 1240px); }
.sd-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Until sit-down.js has drawn the week, everything under the masthead is laid out but not painted. */
html.sd-wait #sd-week,
html.sd-wait #sd-stage,
html.sd-wait #sd-more,
html.sd-wait .sd-real,
html.sd-wait .site-foot { visibility: hidden; animation: sd-show 0s 3s forwards; }
@keyframes sd-show { to { visibility: visible; } }
@media (scripting: none) { #sd-stage, #sd-week, .sd-remind { display: none; } }
.sd-noscript { margin: 0 0 32px; padding: 18px 20px; border-radius: var(--t-r-m); background: var(--t-card); box-shadow: inset 0 0 0 2px var(--t-line); }

/* ---------- Masthead and the week slab ---------- */
.sd-main { padding-bottom: 40px; }
.sd-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 48px; padding-bottom: 28px; }
@media (min-width: 1000px) { .sd-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; padding-top: 28px; } }
.sd-mast { padding: 36px 0 24px; }
@media (min-width: 1000px) { .sd-mast { padding: 28px 0 8px; } }
.sd-kicker { margin: 0 0 14px; color: var(--t-ink-2); }
.sd-mast h1 {
  margin: 0; max-width: 12ch;
  font-size: 2.5rem; line-height: .94; font-weight: 800; letter-spacing: -.02em; text-wrap: balance;
  animation: sd-rise .7s var(--t-spring) both;
}
.sd-mast h1:focus { outline: none; } /* focused only by script, when the toast that had the keyboard closes */
.sd-lede { margin: 20px 0 0; max-width: 48ch; font-size: 1.125rem; line-height: 1.4; color: var(--t-ink-2); text-wrap: pretty; }
.sd-lede strong { color: var(--t-ink); font-weight: 600; }
@keyframes sd-rise { from { transform: translateY(28px) scale(.97); } }
@media (min-width: 380px) { .sd-mast h1 { font-size: 2.75rem; } }
@media (min-width: 600px) { .sd-mast h1 { font-size: 4.25rem; } .sd-lede { font-size: 1.3125rem; } }
@media (min-width: 1100px) { .sd-mast h1 { font-size: 5.25rem; } }

.sd-week {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 22px 20px 20px; border-radius: 34px;
  background: var(--t-mint); color: var(--sd-ink);
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.14), 0 24px 44px -26px rgba(11,138,91,.85);
  animation: sd-slab .8s var(--t-spring) .08s both;
}
@keyframes sd-slab { from { transform: translateY(36px) scale(.97); } }
@media (min-width: 600px) { .sd-week { padding: 28px 30px 26px; } }
/* Seven squares in the slab's corner: the week, one for each day. Decoration only. */
.sd-cal { position: absolute; z-index: -1; top: 18px; right: 18px; display: grid; grid-template-columns: repeat(7, 14px); gap: 5px; }
.sd-cal i { display: block; width: 14px; height: 14px; border-radius: 4px; background: rgba(20,20,20,.16); animation: sd-dot .5s var(--t-spring) both; }
.sd-cal i:nth-child(2) { animation-delay: .06s; } .sd-cal i:nth-child(3) { animation-delay: .12s; }
.sd-cal i:nth-child(4) { animation-delay: .18s; } .sd-cal i:nth-child(5) { animation-delay: .24s; }
.sd-cal i:nth-child(6) { animation-delay: .3s; } .sd-cal i:nth-child(7) { animation-delay: .36s; }
.sd-week.is-sat .sd-cal i { background: var(--sd-ink); }
@keyframes sd-dot { from { transform: scale(.2); opacity: 0; } }
@media (min-width: 600px) { .sd-cal { top: 26px; right: 28px; grid-template-columns: repeat(7, 18px); gap: 6px; } .sd-cal i { width: 18px; height: 18px; } }
body.sd .sd-week :focus-visible { outline: 3px solid var(--sd-ink); outline-offset: 3px; }
.sd-week-k { margin: 0; max-width: calc(100% - 140px); font: 600 .8125rem/1.3 var(--t-mono); letter-spacing: .08em; text-transform: uppercase; }
.sd-range {
  margin: 36px 0 6px;
  font-size: clamp(2.25rem, 10vw, 4rem); line-height: .95; font-weight: 800; letter-spacing: -.02em; text-wrap: balance;
}
.sd-sat { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 .9375rem/1.45 var(--t-mono); }
.sd-sat::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--sd-ink); }
.sd-week.is-sat .sd-sat::before { background: var(--sd-ink); }
.sd-week-keys { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 18px; }
.sd-seg { display: flex; gap: 6px; }
body.sd .sd-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 14px; border: 0; border-radius: var(--t-r-btn, 10px); cursor: pointer;
  background: transparent; color: var(--sd-ink); font: 600 .9375rem/1.2 var(--t-display);
  box-shadow: inset 0 0 0 2px rgba(20,20,20,.7);
  transition: transform var(--t-base) var(--t-spring), background-color var(--t-base);
}
body.sd .sd-chip:active { transform: translateY(2px) scale(.97); }
body.sd .sd-chip[aria-pressed="true"] { background: var(--sd-ink); color: #fff; box-shadow: inset 0 -3px 0 rgba(255,255,255,.18); }
@media (max-width: 599px) { .sd-seg { flex: 1 1 100%; } .sd-seg .sd-chip { flex: 1 1 0; } }

/* ---------- Keys ---------- */
body.sd .sd-key {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 18px; border: 0; border-radius: var(--t-r-btn, 10px); cursor: pointer;
  background: var(--t-card); color: var(--t-ink); text-decoration: none; text-align: center;
  font: 600 .9375rem/1.2 var(--t-display);
  box-shadow: inset 0 0 0 1.5px var(--t-line), inset 0 -4px 0 rgba(0,0,0,.08);
  transition: transform var(--t-base) var(--t-spring);
}
body.sd .sd-key:active { transform: translateY(2px) scale(.97); }
body.sd .sd-key:disabled { cursor: default; opacity: .6; }
body.sd .sd-key[hidden] { display: none; }
body.sd .sd-key-ink { background: var(--t-ink); color: var(--t-surface); box-shadow: inset 0 -4px 0 rgba(255,255,255,.14); font-weight: 700; }
body.sd .sd-key-mint { background: var(--t-mint); color: var(--sd-ink); font-weight: 800; box-shadow: inset 0 -5px 0 rgba(0,0,0,.16); }
body.sd .sd-key-s { min-height: 44px; padding: 8px 14px; font-size: .875rem; }
/* On the sheet the colours are fixed: it is paper in both schemes. */
body.sd .sd-sheet .sd-key { background: #ecebe6; color: var(--sd-ink); box-shadow: inset 0 0 0 1.5px var(--sd-line), inset 0 -4px 0 rgba(0,0,0,.08); }
body.sd .sd-sheet .sd-key-ink { background: var(--sd-ink); color: var(--sd-paper); box-shadow: inset 0 -4px 0 rgba(255,255,255,.14); font-weight: 700; }
body.sd .sd-sheet .sd-key-mint { background: var(--t-mint); color: var(--sd-ink); box-shadow: inset 0 -5px 0 rgba(0,0,0,.16); font-weight: 800; }
body.sd .sd-sheet .sd-key-line { background: transparent; color: var(--sd-ink); box-shadow: inset 0 0 0 2px var(--sd-ink); }
body.sd .sd-sheet .sd-key[aria-pressed="true"] { background: var(--sd-ink); color: var(--sd-paper); box-shadow: inset 0 -3px 0 rgba(255,255,255,.18); }
body.sd .sd-sheet a:not(.sd-key) { color: var(--sd-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
body.sd .sd-sheet :focus-visible { outline: 3px solid var(--sd-ink); outline-offset: 2px; }

/* ---------- The stage: the rail and the sheet on the table ---------- */
.sd-stage {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px;
  padding: 14px; border-radius: 34px;
  background: var(--sd-table); color: #ecebe6;
  box-shadow: inset 0 -8px 0 rgba(255,255,255,.06), 0 28px 50px -30px rgba(0,0,0,.6);
  animation: sd-slab .8s var(--t-spring) .14s both;
}
@media (prefers-color-scheme: dark) { .sd-stage { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.1), inset 0 -8px 0 rgba(255,255,255,.04); } }
@media (min-width: 600px) { .sd-stage { padding: 20px; } }
@media (min-width: 900px) { .sd-stage { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; padding: 24px; } }
body.sd .sd-stage .sd-rail :focus-visible { outline: 3px solid var(--t-mint); outline-offset: 2px; }

.sd-rail-wrap { min-width: 0; }
.sd-rail-now { margin: 4px 6px 8px; font: 600 .75rem/1.3 var(--t-mono); letter-spacing: .08em; text-transform: uppercase; color: #c9c7c0; }
@media (min-width: 900px) { .sd-rail-now { position: absolute !important; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .sd-rail-wrap { padding-top: 6px; } }
.sd-rail { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
/* The line the five discs sit on. */
.sd-rail::before { content: ""; position: absolute; left: 10%; right: 10%; top: 21px; height: 2px; background: rgba(236,235,230,.22); }
@media (min-width: 900px) {
  .sd-rail { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sd-rail::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
}
.sd-rail li { position: relative; min-width: 0; }
/* The rail's labels set their own face: `body.v2 button { font: inherit }` in toys.css, at (0,1,2), outranks
   a bare class, so these selectors carry `body.sd` (0,2,1). */
body.sd .sd-rail-b {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%;
  min-height: 44px; padding: 0 5px 4px; border: 0; background: transparent; color: #c9c7c0; cursor: pointer;
  font: 600 .6875rem/1.2 var(--t-mono); letter-spacing: .02em; text-align: center; border-radius: var(--t-r-btn, 10px);
}
@media (min-width: 900px) {
  body.sd .sd-rail-b { flex-direction: row; gap: 14px; padding: 0 8px 0 0; font: 600 1rem/1.25 var(--t-display); letter-spacing: 0; text-align: left; }
}
.sd-disc {
  position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--sd-table); color: #ecebe6; font: 600 .9375rem/1 var(--t-mono);
  box-shadow: inset 0 0 0 2px rgba(236,235,230,.4);
  transition: transform var(--t-base) var(--t-spring), background-color var(--t-base);
}
.sd-rail-b.is-done .sd-disc { background: #ecebe6; color: var(--sd-ink); box-shadow: none; }
/* A drawn tick on a step that is behind you. */
.sd-rail-b.is-done .sd-disc b { display: none; }
.sd-rail-b.is-done .sd-disc::after { content: ""; width: 12px; height: 7px; margin-top: -3px; border: solid var(--sd-ink); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.sd-rail-b[aria-current="step"] { color: #fff; }
.sd-rail-b[aria-current="step"] .sd-disc { background: var(--t-mint); color: var(--sd-ink); box-shadow: 0 0 0 5px rgba(23,199,135,.25); transform: scale(1.06); }
.sd-rail-b[aria-current="step"] .sd-disc b { display: inline; }
.sd-rail-b[aria-current="step"] .sd-disc::after { content: none; }
.sd-rail-b:active .sd-disc { transform: scale(.94); }
/* A fifth of a 360 px stage leaves «Dinners» about 2 px of air in Geist Mono, so a wider fallback face (Linux CI
   before the web font lands) must not split the word: labels wrap only at spaces and may lean into the padding. */
@media (max-width: 899px) { .sd-rail-t { display: block; max-width: 100%; overflow-wrap: normal; } }
@media (max-width: 359px) { .sd-rail-t { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

.sd-sheet {
  display: flex; flex-direction: column; min-width: 0; min-height: 440px;
  padding: 20px 18px 16px; border-radius: 24px;
  background: var(--sd-paper); color: var(--sd-ink);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.08);
}
@media (min-width: 600px) { .sd-sheet { padding: 28px 30px 20px; } }
@media (min-width: 900px) { .sd-sheet { min-height: 520px; } }
.sd-sheet.is-in { animation: sd-sheet .45s var(--t-spring) both; }
@keyframes sd-sheet { from { transform: translateY(14px) scale(.985); } }
.sd-step-k { margin: 0 0 8px; font: 600 .75rem/1.3 var(--t-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sd-ink-2); }
.sd-step-title { margin: 0 0 8px; font-size: 1.875rem; line-height: 1; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
.sd-step-title:focus { outline: none; }
@media (min-width: 600px) { .sd-step-title { font-size: 2.5rem; } }
.sd-body { flex: 1 1 auto; min-width: 0; }
.sd-body > p, .sd-p { margin: 0 0 14px; max-width: 62ch; color: var(--sd-ink-2); }
.sd-body h3 { margin: 22px 0 10px; font: 600 .75rem/1.3 var(--t-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sd-ink-2); }
.sd-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1.5px solid var(--sd-line); }
.sd-foot #sd-next { margin-left: auto; }
@media (max-width: 599px) { .sd-foot .sd-key { flex: 1 1 0; } }

/* Last week's one thing, quoted. */
.sd-body .sd-quote { margin: 0 0 12px; color: var(--sd-ink); padding: 4px 0 4px 16px; border-left: 4px solid var(--t-mint); font-size: 1.25rem; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.sd-keys { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 599px) { .sd-keys > .sd-key { flex: 1 1 auto; } }

/* Rows: loose ends, days without school, the week's days. */
.sd-rows { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.sd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; border-top: 1.5px solid var(--sd-line); }
.sd-rows > .sd-row:first-child { border-top: 0; }
.sd-row-main { flex: 1 1 14em; min-width: 0; }
.sd-row-t { display: block; font-weight: 700; overflow-wrap: anywhere; }
.sd-row-s { display: block; font: 500 .8125rem/1.35 var(--t-mono); color: var(--sd-ink-2); }
.sd-row.is-gone .sd-row-t { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--sd-ink-2); }
.sd-row-state { font: 600 .8125rem/1.3 var(--t-mono); color: var(--sd-ink); }
.sd-empty { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; padding: 14px 16px; border-radius: 16px; background: var(--sd-paper-2); }
.sd-empty::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--t-mint); box-shadow: inset 0 0 0 2px rgba(20,20,20,.25); }
.sd-empty p { margin: 0; }
.sd-empty strong { display: block; margin-bottom: 2px; }

/* Who has the kids: radio keys, as on /days-off/ (mint when picked). */
.sd-who { display: flow-root; margin: 0; padding: 0; border: 0; min-width: 0; }
.sd-who-day { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; width: 100%; margin: 0 0 8px; padding: 0; font: 600 .9375rem/1.3 var(--t-mono); }
.sd-who-day small { font: 500 .8125rem/1.3 var(--t-display); color: var(--sd-ink-2); }
.sd-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 600px) { .sd-opts { display: flex; flex-wrap: wrap; } }
.sd-opt { position: relative; display: inline-flex; cursor: pointer; }
.sd-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.sd-opt span {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: var(--t-r-btn, 10px);
  background: #ecebe6; color: var(--sd-ink); font: 600 .875rem/1.2 var(--t-display); overflow-wrap: anywhere;
  box-shadow: inset 0 0 0 1.5px var(--sd-line);
  transition: background-color var(--t-base), transform var(--t-base) var(--t-spring);
}
@media (min-width: 600px) { .sd-opt span { width: auto; } }
.sd-opt-none span { background: transparent; color: var(--sd-ink-2); box-shadow: inset 0 0 0 1.5px var(--sd-ink-2); }
.sd-opt input:checked + span { background: var(--t-mint); color: var(--sd-ink); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); transform: scale(1.03); }
.sd-opt-none input:checked + span { background: var(--sd-paper-2); color: var(--sd-ink); box-shadow: inset 0 0 0 1.5px var(--sd-ink-2); transform: none; }
.sd-opt input:focus-visible + span { outline: 3px solid var(--sd-ink); outline-offset: 2px; }
.sd-pill { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 999px; background: var(--sd-paper-2); color: var(--sd-ink); font: 500 .75rem/1.2 var(--t-mono); }
.sd-pill-ink { background: var(--sd-ink); color: var(--sd-paper); }

/* What's on: the seven days. */
.sd-days { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 0 6px; padding: 0; list-style: none; }
.sd-day { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 4px 12px; padding: 9px 0; border-top: 1.5px solid var(--sd-line); }
.sd-days > .sd-day:first-child { border-top: 0; }
.sd-day-l { font: 600 .875rem/1.5 var(--t-mono); }
.sd-day ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.sd-day li { min-width: 0; overflow-wrap: break-word; }
.sd-day-time { font: 600 .875rem/1.5 var(--t-mono); margin-right: 6px; }
.sd-day-who { color: var(--sd-ink-2); }
.sd-day-none { color: var(--sd-ink-2); }
.sd-day.is-past { opacity: .62; }

/* Add a thing: the week's own reader, its reading shown before it is kept. */
.sd-add { display: flex; gap: 8px; margin: 12px 0 8px; }
/* `body.sd` again outranks the v2 sheet's `body.v2 input { font: inherit }`; no field under 16 px, or iOS Safari
   zooms the page when it takes the focus. */
body.sd .sd-add input, body.sd .sd-one input, body.sd .sd-field select {
  min-height: 48px; min-width: 0; width: 100%; padding: 10px 14px; border: 0; border-radius: var(--t-r-s);
  background: #fff; color: var(--sd-ink); font: 500 1rem/1.3 var(--t-display);
  box-shadow: inset 0 0 0 1.5px rgba(20,20,20,.3);
}
.sd-add input { flex: 1 1 auto; }
.sd-add input::placeholder, .sd-one input::placeholder { color: var(--sd-ink-2); opacity: 1; }
.sd-add input:focus-visible, .sd-one input:focus-visible { outline: 3px solid var(--t-mint-deep); outline-offset: 1px; box-shadow: inset 0 0 0 1.5px var(--sd-ink); }
.sd-read { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 28px; margin: 0 0 6px; font-size: .875rem; color: var(--sd-ink-2); }
.sd-read .sd-pill:first-of-type { background: transparent; box-shadow: inset 0 0 0 1.5px var(--sd-ink); font-weight: 600; }

/* Dinners: seven nights. */
.sd-nights { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 0 14px; padding: 0; list-style: none; }
@media (min-width: 700px) { .sd-nights { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; } }
.sd-night { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 9px 0; border-top: 1.5px solid var(--sd-line); }
.sd-nights > .sd-night:first-child { border-top: 0; }
@media (min-width: 700px) {
  .sd-night { grid-template-columns: minmax(0, 1fr); align-content: start; min-height: 112px; padding: 10px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--sd-line); }
  .sd-night.is-open { background: transparent; box-shadow: none; outline: 2px dashed rgba(20,20,20,.3); outline-offset: -2px; }
}
.sd-night-l { font: 600 .8125rem/1.4 var(--t-mono); }
.sd-night-n { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.sd-night.is-open .sd-night-n { font-weight: 500; color: var(--sd-ink-2); }
.sd-night.is-past { opacity: .62; }
.sd-list { margin: 6px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--sd-paper-2); }
.sd-list p { margin: 0 0 6px; }
.sd-list-n { font-weight: 800; font-size: 1.125rem; }

/* One thing. */
.sd-one { display: grid; gap: 6px; max-width: 640px; margin: 8px 0 12px; font-size: .875rem; font-weight: 600; color: var(--sd-ink-2); }
body.sd .sd-one input { font-size: 1.125rem; }
.sd-samples { display: flex; flex-wrap: wrap; gap: 6px; }
body.sd .sd-sheet .sd-sample { min-height: 44px; padding: 8px 12px; font-weight: 500; font-size: .875rem; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(20,20,20,.3); }

/* ---------- The week on one card (the end of the sit-down, and a printed sheet) ---------- */
.sd-body .sd-done-stamp { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 12px; border-radius: 999px; background: var(--t-mint); color: var(--sd-ink); font: 600 .8125rem/1.3 var(--t-mono); }
.sd-done-stamp::before { content: ""; width: 10px; height: 6px; margin-top: -3px; border: solid var(--sd-ink); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.sd-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 0 14px; padding: 0; list-style: none; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--sd-line); }
@media (min-width: 1000px) { .sd-card { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.sd-cday { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 4px 12px; padding: 12px 14px; border-top: 1.5px solid var(--sd-line); }
.sd-card > .sd-cday:first-child { border-top: 0; }
@media (min-width: 1000px) {
  .sd-cday { grid-template-columns: minmax(0, 1fr); align-content: start; min-height: 220px; padding: 12px 10px; border-top: 0; border-left: 1.5px solid var(--sd-line); }
  .sd-card > .sd-cday:first-child { border-left: 0; }
}
.sd-cday-l { font: 600 .8125rem/1.4 var(--t-mono); }
.sd-cday-l b { display: block; font: 800 1.5rem/1 var(--t-display); }
@media (max-width: 999px) { .sd-cday-l b { display: inline; font-size: .8125rem; font-family: var(--t-mono); font-weight: 600; } }
.sd-cday ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .9375rem; line-height: 1.3; }
.sd-cday li { overflow-wrap: break-word; min-width: 0; }
.sd-c-time { display: inline-block; margin-right: 6px; font: 600 .875rem/1.5 var(--t-mono); white-space: nowrap; }
@media (min-width: 1000px) { .sd-c-time { display: block; margin: 0; } }
.sd-c-school { display: grid; gap: 1px; padding: 5px 8px; border-radius: 8px; background: var(--sd-ink); color: var(--sd-paper); font-size: .8125rem; line-height: 1.3; }
.sd-c-school b { font: 600 .6875rem/1.3 var(--t-mono); letter-spacing: .04em; text-transform: uppercase; }
.sd-c-school span { font-weight: 600; }
.sd-c-school.is-open { background: transparent; color: var(--sd-ink); box-shadow: inset 0 0 0 2px var(--sd-ink); }
.sd-c-dinner { display: flex; gap: 6px; align-items: baseline; color: var(--sd-ink-2); }
.sd-c-dinner::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--t-mint-deep); transform: translateY(-1px); }
.sd-c-none { color: var(--sd-ink-2); }
.sd-cday.is-past { opacity: .62; }
.sd-card-foot { display: grid; gap: 8px; margin: 0 0 6px; }
.sd-card-foot p { margin: 0; }
.sd-card-one { padding-left: 14px; border-left: 4px solid var(--t-mint); font-weight: 700; overflow-wrap: anywhere; }
.sd-print-head { display: none; }

/* ---------- Below the stage ---------- */
.sd-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; margin-top: 48px; }
.sd-h2 { margin: 0 0 8px; font-size: 1.75rem; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
@media (min-width: 900px) { .sd-h2 { font-size: 2.25rem; } }
.sd-sub { margin: 0 0 18px; max-width: 64ch; color: var(--t-ink-2); }
.sd-field { display: grid; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--t-ink-2); }
.sd-field select { background: var(--t-card); color: var(--t-ink); box-shadow: inset 0 0 0 1.5px var(--t-line); }
.sd-remind-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.sd-remind-form .sd-field { flex: 0 1 12em; }
.sd-fine { margin: 10px 0 0; font-size: .875rem; color: var(--t-ink-2); }
body.sd .sd-more :focus-visible, body.sd .sd-real :focus-visible { outline: 3px solid var(--t-ink); outline-offset: 2px; }
.sd-how-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .sd-how-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sd-how-list li { display: flex; gap: 14px; padding: 18px; border-radius: var(--t-r-l); background: var(--t-card); box-shadow: inset 0 0 0 1.5px var(--t-line); }
.sd-how-n { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--t-mint); color: var(--sd-ink); font: 600 .9375rem/1 var(--t-mono); }
.sd-how-list h3 { margin: 4px 0 6px; font-size: 1.125rem; line-height: 1.2; font-weight: 800; }
.sd-how-list p { margin: 0; color: var(--t-ink-2); }
.sd-how-list a { color: var(--sd-mint-text); font-weight: 600; text-underline-offset: 3px; }
.sd-keep { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 18px; border-top: 1.5px solid var(--t-line); }
.sd-note { flex: 1 1 22em; margin: 0; font-size: .9375rem; color: var(--t-ink-2); }

/* The answer to every action: a toast fixed at the bottom (as on /days-off/ and /dinners/). */
.sd-status {
  position: fixed; z-index: 10000; left: 0; right: 0;
  bottom: calc(16px + var(--sd-toast-lift, 0px) + env(safe-area-inset-bottom, 0px));
  width: min(100% - 2 * var(--sd-gutter), 560px); margin: 0 auto; pointer-events: none;
}
.sd-toast {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px;
  padding: 8px 8px 8px 18px; border-radius: var(--t-r-m);
  background: var(--t-ink); color: var(--t-surface); pointer-events: auto;
  box-shadow: inset 0 -4px 0 rgba(255,255,255,.12), 0 22px 44px -16px rgba(0,0,0,.55);
  animation: sd-toast-in var(--t-base) var(--t-spring);
}
@keyframes sd-toast-in { from { transform: translateY(18px) scale(.97); } }
.sd-toast-keys { display: flex; flex: none; gap: 6px; margin-left: auto; }
.sd-toast-t { flex: 1 1 12em; min-width: 0; padding: 6px 0; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
body.sd .sd-toast-a, body.sd .sd-toast-x {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px;
  border: 0; border-radius: var(--t-r-btn, 10px); cursor: pointer; text-decoration: none;
  font: 700 .875rem/1.2 var(--t-display);
}
body.sd .sd-toast-a { background: var(--t-surface); color: var(--t-ink); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
body.sd .sd-toast-x { background: transparent; color: var(--t-surface); font-weight: 600; box-shadow: inset 0 0 0 1.5px currentColor; }
body.sd .sd-toast :focus-visible { outline: 3px solid var(--t-mint); outline-offset: 2px; }
body.sd .sd-toast-a:active, body.sd .sd-toast-x:active { transform: translateY(2px) scale(.97); }

.sd-real { margin-top: 48px; padding: 26px 22px; border-radius: var(--t-r-l); background: var(--t-surface-2); }
.sd-real .t-label { margin: 0 0 10px; color: var(--t-ink-2); }
.sd-real h2 { margin: 0 0 10px; max-width: 24ch; font-size: 1.75rem; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.sd-real p { margin: 0 0 16px; max-width: 62ch; color: var(--t-ink-2); }
@media (min-width: 900px) { .sd-real { padding: 36px 40px; } .sd-real h2 { font-size: 2.25rem; } }

@media (prefers-reduced-motion: reduce) {
  .sd-mast h1, .sd-week, .sd-cal i, .sd-stage, .sd-sheet.is-in, .sd-toast { animation: none !important; }
  .sd-disc, .sd-opt span, body.sd .sd-key, body.sd .sd-chip { transition: none; }
  .sd-rail-b[aria-current="step"] .sd-disc { transform: none; }
  body.sd .sd-key:active, body.sd .sd-chip:active, .sd-rail-b:active .sd-disc, body.sd .sd-toast-a:active, body.sd .sd-toast-x:active { transform: none; }
}

/* Print: the week on one card, for the fridge. Everything else stays on screen. */
@media print {
  body.sd { padding-top: 0; background: #fff; }
  body.sd .site-head, body.sd .site-foot, .sd-top, .sd-rail-wrap, .sd-foot, .sd-more, .sd-real, .sd-status, .sd-done-keys, .sd-step-k, #sd-sosw-consent, #sosw-consent-banner { display: none !important; }
  .sd-stage { display: block; padding: 0; background: #fff; box-shadow: none; animation: none; }
  .sd-sheet { min-height: 0; padding: 0; box-shadow: none; background: #fff; animation: none !important; }
  .sd-print-head { display: block; margin: 0 0 8px; font: 600 10pt/1.3 var(--t-mono); }
  .sd-card { grid-template-columns: repeat(7, minmax(0, 1fr)); box-shadow: inset 0 0 0 1pt #141414; }
  .sd-cday { grid-template-columns: minmax(0, 1fr); align-content: start; min-height: 120mm; padding: 8pt 6pt; border-top: 0; border-left: 1pt solid #141414; }
  .sd-card > .sd-cday:first-child { border-left: 0; }
  .sd-cday-l b { display: block; font: 800 18pt/1 var(--t-display); }
  .sd-cday.is-past { opacity: 1; }
}
@page { size: A4 landscape; margin: 12mm; }
