/* LiveForever Care Brief — visual world: the quick reference handbook.
   A clinical checklist page: paper, ink rules, condensed caps for titles and
   tabs, tabular numerals, dotted leaders between an item and its value, boxed
   memory items for what may not be improvised. Color means state, never
   decoration: signal green = locked / normal, caution amber = quality warning,
   warn red = negative direction or prohibition, ai blue = the bounded model. */

:root {
  --paper: #ffffff;
  --ground: #ebe9e3;
  --ground-2: #f4f3ef;
  --ink: #101315;
  --ink-2: #363c40;
  --muted: #6b7276;
  --hair: #d8d5cd;
  --rule: #101315;
  --spine: #15181b;
  --spine-2: #22262a;
  --tab-ink: #e9e7e1;
  --tab-muted: #9aa0a4;
  --signal: #0f6b57;
  --signal-soft: #e3f0ea;
  --caution: #a86f06;
  --caution-soft: #fbf2dc;
  --warn: #a8351f;
  --ai: #2b5aa5;
  --day-on: #101315;
  --day-off: #ffffff;
  --shadow-sheet: 0 1px 0 rgba(16, 19, 21, 0.12), 0 22px 44px -28px rgba(16, 19, 21, 0.5);
  --shadow-card: 0 1px 0 rgba(16, 19, 21, 0.08), 0 14px 30px -24px rgba(16, 19, 21, 0.35);
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --text: Barlow, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--ink);
  background: var(--ground);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ground);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--ground);
}

button,
input {
  font: inherit;
  color: inherit;
}

button,
summary {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ */
/* Condensed caps: the handbook's label voice                          */
/* ------------------------------------------------------------------ */

.kicker,
.label,
.document-label,
.step-index,
.claim-pill,
.demo-badge,
.trace-toggle,
.button,
.segmented button,
.nav-button,
.readiness-facts dt,
.care-sheet-head dt,
.care-source > div:first-child > span,
.evidence-table thead th,
.brief-warnings h4,
.missing-details summary,
.pause-details summary,
.method-details summary,
.ai-ledger-col h3,
.care-sheet-foot strong,
.privacy-band strong,
.decision strong,
.reading-fact span:first-child,
.source-row span,
.schedule-key,
.legend,
.sidebar-foot strong,
.chart-toolbar p,
.site-footer {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------ */
/* Shell: binder spine + page                                          */
/* ------------------------------------------------------------------ */

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 0 20px;
  display: flex;
  flex-direction: column;
  color: var(--tab-ink);
  background: var(--spine);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0 20px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--spine-2);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--spine);
  background: var(--tab-ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--tab-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.nav {
  counter-reset: tab;
  display: grid;
  gap: 2px;
  padding-top: 22px;
}

.nav-button {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 0 20px 0 56px;
  display: flex;
  align-items: center;
  color: var(--tab-muted);
  background: transparent;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-align: left;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.nav-button::before {
  counter-increment: tab;
  content: counter(tab, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--tab-muted);
  opacity: 0.8;
}

.nav-button:hover {
  color: var(--tab-ink);
  background: var(--spine-2);
}

.nav-button.active {
  color: var(--ink);
  background: var(--ground);
}

.nav-button.active::before {
  color: var(--signal);
  opacity: 1;
}

.sidebar-foot {
  margin: auto 20px 0;
  padding: 14px 14px 15px;
  color: var(--tab-muted);
  border: 1px solid var(--spine-2);
  font-size: 13px;
  line-height: 1.5;
}

.sidebar-foot strong {
  display: block;
  margin-bottom: 4px;
  color: var(--tab-ink);
  font-size: 12px;
  font-weight: 600;
}

.main-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 66px;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1.5px solid var(--rule);
  backdrop-filter: saturate(1.1) blur(6px);
}

.persona {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.persona strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.persona span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.demo-badge::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--signal);
}

.trace-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.trace-toggle-mark {
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  background: transparent;
}

.trace-toggle:hover {
  background: var(--ground-2);
}

.trace-toggle[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
}

.trace-toggle[aria-pressed="true"] .trace-toggle-mark {
  background: var(--signal);
  border-color: var(--signal);
}

/* Trace values: every locked number reveals the contract path behind it. */
[data-trace]::after {
  content: "→ " attr(data-trace);
  display: none;
  margin-top: 10px;
  padding: 3px 7px;
  width: fit-content;
  max-width: 100%;
  color: var(--signal);
  background: var(--signal-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
  overflow-wrap: anywhere;
}

.trace-on [data-trace]::after {
  display: block;
  animation: trace-in 260ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

.trace-scan {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--signal);
  box-shadow: 0 0 18px 2px rgba(15, 107, 87, 0.45), 0 0 48px 10px rgba(15, 107, 87, 0.18);
  pointer-events: none;
  animation: trace-scan 820ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes trace-scan {
  from { transform: translateY(-4px); opacity: 0; }
  12% { opacity: 1; }
  to { transform: translateY(100vh); opacity: 0; }
}

/* The 7-day mean draws itself in when a view opens; points are already there. */
.chart-mean {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: chart-draw 1100ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

@keyframes chart-draw {
  to { stroke-dashoffset: 0; }
}

.trace-on .reading-fact {
  flex-wrap: wrap;
}

.trace-on .reading-fact::after {
  flex-basis: 100%;
  margin-top: 6px;
}

@keyframes trace-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------ */
/* Content frame                                                       */
/* ------------------------------------------------------------------ */

.content {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px 40px 60px;
}

.view {
  display: none;
  animation: view-in 260ms var(--ease-out);
}

.view.active {
  display: block;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-intro {
  max-width: 880px;
  margin-bottom: 28px;
}

.kicker {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.kicker::before {
  width: 26px;
  height: 2px;
  content: "";
  background: var(--ink);
}

h1 {
  max-width: 880px;
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.page-intro > p:last-child {
  max-width: 68ch;
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* Panels and rules                                                    */
/* ------------------------------------------------------------------ */

.workspace,
.reading-panel,
.schedule-panel,
.controls-panel,
.quality-panel,
.context-panel,
.method-panel,
.care-sheet,
.ai-role-band,
.result-band,
.journey,
.quality-strip {
  background: var(--paper);
  border: 1.5px solid var(--rule);
  box-shadow: var(--shadow-card);
}

/* Buttons: handbook controls, square, ink on paper                     */

.button {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.button:hover {
  color: var(--paper);
  background: var(--ink);
}

.button.primary {
  color: var(--paper);
  background: var(--ink);
}

.button.primary:hover {
  background: var(--signal);
  border-color: var(--signal);
}

/* ------------------------------------------------------------------ */
/* Snapshot                                                            */
/* ------------------------------------------------------------------ */

.result-band {
  display: grid;
  grid-template-columns: minmax(300px, 1.15fr) minmax(0, 2fr);
  margin-bottom: 20px;
}

.primary-result {
  position: relative;
  min-height: 200px;
  padding: 28px 32px 30px;
  border-right: 1.5px solid var(--rule);
}

.label {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.result-value {
  margin: 12px 0 8px;
  color: var(--signal);
  font-family: var(--display);
  font-size: 80px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 0.92;
}

.result-copy {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
}

.result-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ink-2);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.claim-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--caution);
  background: var(--paper);
  border: 1.5px solid var(--caution);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.supporting-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-metric {
  min-height: 200px;
  padding: 28px 26px;
  border-right: 1px solid var(--hair);
}

.support-metric:last-child {
  border-right: 0;
}

.support-metric strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 46px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
}

.support-metric p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.journey {
  margin-bottom: 20px;
}

.section-bar {
  min-height: 60px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1.5px solid var(--rule);
}

.section-bar h2,
.section-bar h3 {
  font-size: 24px;
}

.section-bar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.journey-step {
  position: relative;
  min-width: 0;
  min-height: 128px;
  padding: 22px 28px 24px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-right: 1px solid var(--hair);
  text-align: left;
  transition: background-color 160ms var(--ease-out);
}

.journey-step:last-child {
  border-right: 0;
}

.journey-step:hover {
  background: var(--ground-2);
}

.journey-step:focus-visible {
  z-index: 2;
  outline-offset: -4px;
}

.step-index {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.step-value {
  display: block;
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.step-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 20px;
  align-items: stretch;
}

.chart-toolbar {
  min-height: 66px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1.5px solid var(--rule);
}

.chart-toolbar h2 {
  font-size: 24px;
}

.chart-toolbar p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.segmented {
  display: inline-flex;
  border: 1.5px solid var(--ink);
}

.segmented button {
  min-height: 36px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-right: 1.5px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  color: var(--paper);
  background: var(--ink);
}

.workspace {
  display: flex;
  flex-direction: column;
}

.chart-wrap {
  position: relative;
  flex: 1;
  display: grid;
  min-height: 320px;
  padding: 22px 22px 12px;
}

.chart-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 276px;
  overflow: visible;
}

.chart-point {
  cursor: pointer;
}

.chart-point:focus-visible {
  outline: none;
  stroke: var(--signal);
  stroke-width: 3;
}

.chart-tooltip {
  position: absolute;
  z-index: 3;
  max-width: 260px;
  padding: 10px 12px;
  color: var(--paper);
  background: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  pointer-events: none;
}

.chart-tooltip[hidden] {
  display: none;
}

.legend {
  min-height: 46px;
  padding: 12px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  color: var(--ink-2);
  border-top: 1px solid var(--hair);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend i {
  width: 11px;
  height: 11px;
  display: inline-block;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.legend .line-key {
  width: 18px;
  height: 0;
  border: 0;
  border-top: 2.5px solid var(--signal);
  border-radius: 0;
}

.reading-panel {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
}

.reading-panel h2 {
  font-size: 24px;
}

.reading-panel > p {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}

.reading-facts {
  margin: auto 0 0;
  padding-top: 20px;
  border-top: 1.5px solid var(--rule);
}

.reading-fact {
  padding: 13px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
}

.reading-fact span:first-child {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.reading-fact span:first-child::after {
  flex: 1;
  content: "";
  border-bottom: 2px dotted var(--hair);
  transform: translateY(-3px);
}

.reading-fact strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.actions {
  margin-top: 0;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ------------------------------------------------------------------ */
/* Care brief                                                          */
/* ------------------------------------------------------------------ */

.care-titlebar {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.care-titlebar .page-intro {
  margin-bottom: 0;
}

/* On the brief the page title is a label; the document below carries the content. */
#view-care h1 {
  font-size: 30px;
}

#view-care .page-intro > p:last-child {
  margin-top: 8px;
  font-size: 15px;
}

.care-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.export-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

#export-status:empty {
  display: none;
}

.care-sheet {
  overflow: hidden;
  box-shadow: var(--shadow-sheet);
}

/* Title band: black bar, white condensed title, dotted-leader facts    */

.care-sheet-head {
  padding: 22px 36px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 48px;
  color: var(--paper);
  background: var(--ink);
}

.document-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.care-sheet-head .document-label {
  color: var(--tab-ink);
  opacity: 0.8;
}

.care-sheet-head h2 {
  max-width: 24ch;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.care-sheet-head p {
  max-width: 62ch;
  margin: 10px 0 0;
  color: #c9ced2;
  font-size: 16px;
  line-height: 1.5;
}

.care-sheet-head dl {
  margin: 0;
  display: grid;
  align-content: start;
  border-top: 1px solid #3a4045;
}

.care-sheet-head dl div {
  padding: 12px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid #3a4045;
}

.care-sheet-head dt {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 8px;
  color: #9aa0a4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.care-sheet-head dt::after {
  flex: 1;
  content: "";
  border-bottom: 2px dotted #3f4549;
  transform: translateY(-3px);
}

.care-sheet-head dd {
  margin: 0;
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Readiness: status line + three large tabular facts                  */

.care-readiness {
  padding: 20px 36px 18px;
  border-bottom: 1.5px solid var(--rule);
}

.readiness-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.readiness-heading .document-label {
  margin-bottom: 6px;
}

.readiness-heading h3 {
  font-size: 30px;
}

.status-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background: var(--caution);
}

.status-dot.reviewable {
  background: var(--signal);
}

.status-dot.insufficient {
  background: var(--muted);
}

.readiness-facts {
  margin: 14px 0 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  border-top: 1.5px solid var(--rule);
}

.readiness-facts div {
  padding-top: 12px;
}

.readiness-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.readiness-facts dd {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.readiness-facts small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--text);
  font-size: 14px;
  font-weight: 400;
}

.readiness-boundary {
  max-width: 78ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

/* Observed signal + memory items box                                  */

.care-signal {
  padding: 28px 36px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 40px;
  align-items: center;
  background: var(--paper);
  border-bottom: 1.5px solid var(--rule);
}

.care-signal .document-label {
  color: var(--signal);
}

.care-signal h3 {
  color: var(--signal);
  font-size: 60px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  line-height: 0.95;
}

.care-signal > div > p {
  max-width: 58ch;
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}

.care-signal.signal-neutral h3,
.care-signal.signal-neutral .document-label {
  color: var(--ink);
}

.care-lock {
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 10px 26px -18px rgba(16, 19, 21, 0.55);
}

.care-lock-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: stretch;
  color: var(--paper);
  background: var(--ink);
}

.care-lock-head > span {
  display: grid;
  place-items: center;
  min-height: 52px;
  color: var(--paper);
  background: var(--signal);
  font-size: 24px;
  font-weight: 700;
}

.care-lock-head strong {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.care-lock p {
  margin: 0;
  padding: 16px 20px 18px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

/* Two-column checklist blocks                                          */

.care-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.care-block {
  min-width: 0;
  padding: 30px 36px 32px;
  border-bottom: 1.5px solid var(--rule);
}

.care-block:first-child {
  border-right: 1.5px solid var(--rule);
}

.care-block-head {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.care-block-head > span {
  padding-top: 3px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.care-block-head h3 {
  font-size: 26px;
}

.care-block-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.care-source-list {
  border-top: 1.5px solid var(--rule);
}

.care-source {
  padding: 16px 0 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border-bottom: 1px solid var(--hair);
}

.care-source > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.care-source > div:first-child > span {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.care-source > div:first-child > span::after {
  flex: 1;
  content: "";
  min-width: 24px;
  border-bottom: 2px dotted var(--hair);
  transform: translateY(-3px);
}

.care-source > div:first-child > strong {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.care-source p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.care-source .source-role {
  padding-top: 4px;
  color: var(--muted);
}

.care-source .source-coverage {
  padding-top: 4px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.care-source a {
  display: inline-block;
  margin-top: 8px;
  color: var(--signal);
  font-size: 13px;
  font-weight: 600;
}

.care-source .source-unlinked {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.care-list,
.missing-details ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  list-style: square;
}

.care-list li::marker,
.missing-details li::marker {
  color: var(--ink);
}

.care-list li + li,
.missing-details li + li {
  margin-top: 10px;
}

.brief-warnings {
  margin-top: 24px;
}

.brief-warnings h4 {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.brief-warnings h4::before {
  width: 10px;
  height: 10px;
  content: "";
  background: var(--caution);
}

.warning {
  padding: 12px 14px 12px 40px;
  position: relative;
  color: var(--ink);
  background: var(--caution-soft);
  border: 1.5px solid var(--caution);
  font-size: 14px;
  line-height: 1.5;
}

.warning::before {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 14px;
  height: 14px;
  content: "!";
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--caution);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.brief-warnings .warning + .warning,
.warning-list .warning + .warning {
  margin-top: 8px;
}

.missing-details {
  margin-top: 18px;
  border-top: 1px solid var(--hair);
}

.missing-details summary,
.pause-details summary {
  padding: 14px 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  list-style: none;
}

.missing-details summary::before,
.pause-details summary::before {
  content: "▸ ";
  color: var(--signal);
}

.missing-details[open] summary::before,
.pause-details[open] summary::before {
  content: "▾ ";
}

.care-supporting {
  padding: 30px 36px 32px;
}

.care-supporting h3 {
  font-size: 26px;
}

.care-supporting > p {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.evidence-table-wrap {
  overflow-x: auto;
}

.evidence-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.evidence-table th,
.evidence-table td {
  padding: 12px 14px 12px 0;
  text-align: left;
  border-bottom: 1px solid var(--hair);
  white-space: nowrap;
}

.evidence-table thead th {
  color: var(--muted);
  border-bottom: 1.5px solid var(--rule);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.evidence-table tbody th {
  font-weight: 600;
}

.care-questions {
  padding: 30px 36px 34px;
  border-top: 1.5px solid var(--rule);
}

.care-questions ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--rule);
  list-style: none;
}

.care-questions li {
  min-height: 104px;
  padding: 18px 20px 18px 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--hair);
}

.care-questions li:nth-child(odd) {
  margin-right: 22px;
  border-right: 1px solid var(--hair);
}

.care-questions li span {
  padding-top: 2px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.care-questions li p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.care-sheet-foot {
  padding: 20px 36px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  color: var(--paper);
  background: var(--ink);
}

.care-sheet-foot strong {
  display: block;
  color: var(--tab-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.care-sheet-foot p {
  margin: 6px 0 0;
  color: #d5d9dc;
  font-size: 14px;
  line-height: 1.5;
}

/* Bounded AI layer + contract ledger                                   */

.ai-role-band {
  margin-top: 24px;
  padding: 28px 36px 32px;
}

.ai-role-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ai-role-band .kicker {
  color: var(--ai);
}

.ai-role-band .kicker::before {
  background: var(--ai);
}

.ai-role-band h2 {
  font-size: 30px;
}

.ai-role-band p:last-child {
  max-width: 72ch;
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

.ai-ledger {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1.5px solid var(--rule);
}

.ai-ledger-col {
  min-width: 0;
  padding: 18px 24px 6px 0;
}

.ai-ledger-col + .ai-ledger-col {
  padding-left: 24px;
  border-left: 1px solid var(--hair);
}

.ai-ledger-col h3 {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.ai-ledger-col h3::before {
  width: 10px;
  height: 10px;
  content: "";
  background: currentColor;
}

.ai-may h3 {
  color: var(--signal);
}

.ai-may-not h3 {
  color: var(--warn);
}

.ai-locked h3 {
  color: var(--ink);
}

.ai-ledger-col ul {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.5;
  list-style: square;
}

.ai-may ul li::marker {
  color: var(--signal);
}

.ai-may-not ul li::marker {
  color: var(--warn);
}

.ai-ledger-col li + li {
  margin-top: 9px;
}

.ai-ledger-col ul.ai-paths {
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.ai-paths li {
  padding: 5px 8px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.3;
}

.ai-paths li + li {
  margin-top: 0;
}

.ai-ledger-empty {
  margin-left: -18px;
  color: var(--muted);
  list-style: none;
}

/* AI draft: what the bounded model actually wrote, every number checked on the page */

.ai-draft {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1.5px solid var(--rule);
}

.ai-draft .kicker {
  color: var(--ai);
}

.ai-draft .kicker::before {
  background: var(--ai);
}

.ai-draft-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 32px;
  align-items: start;
}

.ai-draft h3 {
  font-size: 26px;
}

.ai-draft-provenance {
  max-width: 68ch;
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.ai-draft-provenance code {
  font-family: var(--mono);
  font-size: 13px;
}

.ai-draft-check {
  padding: 18px 20px 16px;
  display: grid;
  gap: 6px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 0 10px 26px -18px rgba(16, 19, 21, 0.55);
}

.ai-draft-count {
  font-family: var(--display);
  font-size: 46px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--signal);
}

.ai-draft-count small {
  margin-left: 0.12em;
  color: var(--muted);
  font-size: 24px;
  font-weight: 600;
}

.ai-draft-count-label {
  font-size: 14px;
  color: var(--ink-2);
}

.ai-draft-build {
  padding-top: 8px;
  border-top: 1px solid var(--hair);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ai-draft-build.ok {
  color: var(--signal);
}

.ai-draft-build.bad {
  color: var(--warn);
}

.ai-draft-body {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  align-items: start;
  border-top: 1px solid var(--hair);
}

.ai-draft-item {
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--hair);
}

.ai-draft-item h4 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ai-draft-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.ai-draft-item ul {
  margin: 0;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.55;
  list-style: square;
}

.ai-draft-item li + li {
  margin-top: 8px;
}

.ai-draft-empty p {
  max-width: 68ch;
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}

.ai-draft-empty code {
  font-family: var(--mono);
  font-size: 13px;
}

mark.cite {
  padding: 0 1px;
  color: var(--signal);
  background: transparent;
  border-bottom: 2px dotted var(--signal);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

mark.cite.bad {
  color: var(--warn);
  border-bottom: 2px solid var(--warn);
}

.trace-on mark.cite.ok {
  background: var(--signal-soft);
  box-shadow: 0 0 0 3px var(--signal-soft);
  border-bottom-style: solid;
}

/* ------------------------------------------------------------------ */
/* Experiment                                                          */
/* ------------------------------------------------------------------ */

.experiment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.schedule-head {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1.5px solid var(--rule);
}

.schedule-head h2 {
  font-size: 26px;
}

.schedule-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.schedule-key {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.schedule-key span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.schedule-key i {
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 1.5px solid var(--ink);
}

.schedule {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.day {
  min-height: 100px;
  padding: 16px 12px 14px;
  color: var(--ink);
  background: var(--paper);
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  font-size: 13px;
}

.day:nth-child(7n) {
  border-right: 0;
}

.day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.day strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.day span {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}

.day.cutoff {
  color: var(--paper);
  background: var(--day-on);
}

.day.cutoff span {
  color: #c9ced2;
}

.day.usual {
  background: var(--day-off);
}

.controls-panel {
  padding: 24px 28px 26px;
}

.controls-panel h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.control {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
  line-height: 1.5;
}

.check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  color: var(--paper);
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.decision {
  margin-top: 20px;
  padding: 16px 18px 18px;
  border: 1.5px solid var(--ink);
}

.schedule-panel .decision {
  margin: 24px 28px 26px;
  font-size: 15px;
  line-height: 1.5;
}

.decision strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.pause-details {
  margin-top: 14px;
  border-top: 1px solid var(--hair);
}

.pause-details ul {
  margin: 0 0 6px;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.55;
  list-style: square;
}

.pause-details li + li {
  margin-top: 8px;
}

/* ------------------------------------------------------------------ */
/* Data & methods                                                      */
/* ------------------------------------------------------------------ */

.quality-strip {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quality-stat {
  padding: 26px 28px 28px;
  border-right: 1px solid var(--hair);
}

.quality-stat:last-child {
  border-right: 0;
}

.quality-stat strong {
  display: block;
  margin: 12px 0 8px;
  font-family: var(--display);
  font-size: 46px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.quality-stat p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.data-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
}

.quality-panel,
.context-panel,
.method-panel {
  padding: 24px 28px 26px;
}

.method-panel {
  grid-column: 1 / -1;
}

.quality-panel h2,
.context-panel h2,
.method-panel h2 {
  font-size: 26px;
}

.panel-lede {
  max-width: 72ch;
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

.source-list {
  margin-top: 18px;
  border-top: 1.5px solid var(--rule);
}

.source-row {
  padding: 14px 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid var(--hair);
}

.source-row > div {
  display: contents;
}

.source-row span {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.source-row span::after {
  flex: 1;
  content: "";
  min-width: 24px;
  border-bottom: 2px dotted var(--hair);
  transform: translateY(-3px);
}

.source-row strong {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.source-row p {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.warning-list {
  margin-top: 20px;
}

.context-item {
  margin-top: 18px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid var(--hair);
}

.context-item:first-of-type {
  border-top: 1.5px solid var(--rule);
}

.context-value {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.context-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.context-copy p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.method-details {
  margin-top: 18px;
}

.method-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: var(--paper);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  list-style: none;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.method-details summary::-webkit-details-marker {
  display: none;
}

.method-details summary:hover {
  background: var(--signal);
  border-color: var(--signal);
}

.method-content {
  margin-top: 18px;
  padding-top: 6px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.method-content p {
  max-width: 78ch;
}

.formula-list {
  margin-bottom: 14px;
  border-top: 1.5px solid var(--rule);
}

.formula-list div {
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}

.privacy-band {
  margin-top: 20px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--paper);
  background: var(--ink);
}

.privacy-band strong {
  display: block;
  color: var(--tab-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.privacy-band p {
  max-width: 76ch;
  margin: 8px 0 0;
  color: #d5d9dc;
  font-size: 15px;
  line-height: 1.5;
}

.privacy-band .button {
  color: var(--paper);
  background: transparent;
  border-color: var(--paper);
}

.privacy-band .button:hover {
  color: var(--ink);
  background: var(--paper);
}

/* ------------------------------------------------------------------ */
/* Footer, loading, error                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  margin-top: auto;
  padding: 18px 40px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--hair);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a:hover {
  color: var(--ink);
}

.loading,
.error-state {
  max-width: 560px;
  padding: 22px 24px;
  color: var(--ink-2);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  font-size: 15px;
}

.error-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--warn);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1140px) {
  .care-signal {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .care-sheet-head {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 1040px) {
  .overview-grid,
  .experiment-layout,
  .data-layout,
  .care-columns,
  .ai-ledger {
    grid-template-columns: 1fr;
  }

  .method-panel {
    grid-column: auto;
  }

  .care-block:first-child {
    border-right: 0;
  }

  .ai-ledger-col + .ai-ledger-col {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--hair);
  }

  .ai-role-head {
    flex-wrap: wrap;
  }

  .ai-draft-head,
  .ai-draft-body {
    grid-template-columns: 1fr;
  }

  .chart-wrap {
    min-height: 300px;
  }

  .result-value {
    font-size: 60px;
  }
}

@media (max-width: 880px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .brand {
    margin: 0;
    padding: 12px 16px;
    border-bottom: 0;
  }

  .brand-copy {
    display: none;
  }

  .nav {
    padding: 0;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-button {
    width: auto;
    min-height: 60px;
    padding: 0 18px 0 40px;
    font-size: 14px;
    white-space: nowrap;
  }

  .nav-button::before {
    left: 16px;
  }

  .sidebar-foot {
    display: none;
  }

  .topbar {
    position: static;
    padding: 12px 20px;
  }

  .content {
    padding: 28px 20px 44px;
  }

  .site-footer {
    padding: 16px 20px 20px;
  }

  .care-titlebar {
    align-items: flex-start;
  }

  .care-actions {
    align-items: flex-start;
    text-align: left;
  }

  .export-buttons {
    justify-content: flex-start;
  }

  .care-questions ol {
    grid-template-columns: 1fr;
  }

  .care-questions li:nth-child(odd) {
    margin-right: 0;
    border-right: 0;
  }

  .schedule {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }

  .day:nth-child(7n) {
    border-right: 1px solid var(--hair);
  }

  .day:nth-last-child(-n + 7) {
    border-bottom: 1px solid var(--hair);
  }

  .result-band {
    grid-template-columns: 1fr;
  }

  .primary-result {
    border-right: 0;
    border-bottom: 1.5px solid var(--rule);
  }
}

@media (max-width: 680px) {
  .topbar {
    flex-wrap: wrap;
  }

  .topbar-tools {
    flex-wrap: wrap;
  }

  .content {
    padding: 22px 14px 36px;
  }

  h1 {
    font-size: 36px;
  }

  .page-intro > p:last-child {
    font-size: 16px;
  }

  .result-value {
    font-size: 46px;
  }

  .supporting-metrics,
  .quality-strip {
    grid-template-columns: 1fr 1fr;
  }

  .support-metric,
  .quality-stat {
    min-height: 150px;
    border-bottom: 1px solid var(--hair);
  }

  .support-metric:nth-child(2),
  .quality-stat:nth-child(2) {
    border-right: 0;
  }

  .support-metric:nth-last-child(-n + 1),
  .quality-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .support-metric strong,
  .quality-stat strong {
    font-size: 36px;
  }

  .journey-grid {
    grid-template-columns: 1fr 1fr;
  }

  .journey-step:nth-child(2) {
    border-right: 0;
  }

  .journey-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--hair);
  }

  .care-sheet-head,
  .care-readiness,
  .care-signal,
  .care-block,
  .care-supporting,
  .care-questions,
  .care-sheet-foot,
  .ai-role-band {
    padding-left: 20px;
    padding-right: 20px;
  }

  .care-sheet-head h2 {
    font-size: 30px;
  }

  .care-signal h3 {
    font-size: 46px;
  }

  .readiness-facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .readiness-facts div {
    padding: 14px 0;
    border-bottom: 1px solid var(--hair);
  }

  .readiness-facts dd {
    font-size: 36px;
  }

  .care-sheet-foot {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .evidence-table {
    font-size: 13px;
  }

  .evidence-table th,
  .evidence-table td {
    padding: 9px 8px 9px 0;
    white-space: normal;
  }

  .context-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .privacy-band {
    flex-wrap: wrap;
  }
}

/* ------------------------------------------------------------------ */
/* Print: the brief alone, on paper                                    */
/* ------------------------------------------------------------------ */

@media print {
  :root {
    background: #ffffff;
  }

  body {
    background: #ffffff;
  }

  .sidebar,
  .topbar,
  .care-titlebar,
  .ai-role-band,
  .site-footer,
  [data-view-panel]:not([data-view-panel="care"]) {
    display: none !important;
  }

  .app-shell,
  .main-shell,
  .content,
  #view-care {
    width: 100%;
    max-width: none;
    display: block !important;
    margin: 0;
    padding: 0;
  }

  .care-sheet {
    border: 0;
    box-shadow: none;
  }

  .care-sheet-head,
  .care-sheet-foot,
  .care-lock-head,
  .day.cutoff {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .care-sheet-head,
  .care-signal,
  .care-block,
  .care-questions,
  .care-sheet-foot {
    break-inside: avoid;
  }

  [data-trace]::after {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
