:root {
  --navy: #19324b;
  --navy-2: #244866;
  --indigo: #285f69;
  --indigo-dark: #1c4d56;
  --blue: #dff0f7;
  --gold: #f4bd55;
  --gold-soft: #fff3d8;
  --ink: #172333;
  --muted: #5c6977;
  --line: #dbe3eb;
  --soft: #f4f7fa;
  --white: #fff;
  --danger: #9c2d2d;
  --radius: 1.1rem;
  --shadow: 0 18px 45px rgba(24, 50, 75, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.62; }
a { color: var(--indigo-dark); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { color: var(--navy); line-height: 1.14; letter-spacing: -.025em; }
h1 { margin: .55rem 0 1rem; font-size: clamp(2.25rem, 6vw, 4.4rem); max-width: 14ch; }
h2 { margin: 0 0 1rem; font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { margin: 0 0 .6rem; font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.soft { background: var(--soft); }
.eyebrow { margin: 0; color: var(--indigo-dark); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-lede, .section-lede { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 68ch; }
.microcopy, .field-help, small { color: var(--muted); font-size: .88rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: .5rem; left: .5rem; padding: .7rem 1rem; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid rgba(219, 227, 235, .92); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--navy); text-decoration: none; }
.brand > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: var(--white); font-weight: 900; letter-spacing: -.04em; }
.brand strong { display: grid; line-height: 1.15; }
.brand small { margin-top: .22rem; color: var(--muted); font-size: .72rem; font-weight: 600; }
.site-menu { display: flex; align-items: center; gap: 1.15rem; }
.site-menu a { color: var(--navy); font-size: .94rem; font-weight: 750; text-decoration: none; }
.site-menu .nav-cta { padding: .65rem .9rem; border-radius: .7rem; background: var(--indigo); color: var(--white); }
.menu-button { display: none; width: 48px; height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: .75rem; background: var(--white); }
.menu-button i { display: block; height: 2px; margin: 5px 0; background: var(--navy); }

.disclosure { margin-top: 1rem; padding: .75rem 1rem; border: 1px solid #e5cf9e; border-radius: .8rem; background: var(--gold-soft); color: #513f20; font-size: .88rem; }
.breadcrumb { display: flex; align-items: center; gap: .6rem; margin-top: 1.35rem; color: var(--muted); font-size: .88rem; }
.breadcrumb a { color: var(--navy-2); }
.home-hero { padding: clamp(3.5rem, 7vw, 6.2rem) 0; overflow: hidden; background: radial-gradient(circle at 88% 15%, #edf0ff 0, transparent 31%), linear-gradient(145deg, #f8fafc, #f2f6f9); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 .9rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .78rem 1.1rem; border: 2px solid transparent; border-radius: .76rem; cursor: pointer; font-weight: 800; text-decoration: none; }
.button.primary { background: var(--indigo); color: var(--white); }
.button.primary:hover { background: var(--indigo-dark); }
.button.secondary { border-color: var(--navy); background: transparent; color: var(--navy); }
.hero-map { position: relative; display: grid; gap: .85rem; padding: 1.35rem; border: 1px solid #d8dfec; border-radius: 1.5rem; background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.hero-map:before { position: absolute; content: ""; left: 35px; top: 54px; bottom: 54px; width: 2px; background: #d8defb; }
.hero-map div { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; align-items: center; min-height: 74px; padding: .75rem; border-radius: .9rem; background: var(--white); }
.hero-map span { z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--indigo); color: var(--white); font-weight: 900; }
.hero-map strong, .hero-map small { grid-column: 2; }
.hero-map small { color: var(--muted); }
.page-hero { padding: clamp(3.2rem, 7vw, 5.7rem) 0 clamp(2.3rem, 5vw, 4rem); }

.feature-grid, .path-grid, .link-grid, .source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature-card, .link-card { border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.feature-card { min-height: 275px; display: flex; flex-direction: column; align-items: flex-start; padding: 1.35rem; color: var(--ink); box-shadow: 0 10px 25px rgba(24, 50, 75, .06); }
.feature-card p { flex: 1; color: #405162; }
.feature-card.indigo { background: #eef0ff; }
.feature-card.blue { background: #e9f6fa; }
.feature-card.gold { background: #fff5df; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 14px; background: var(--navy); color: var(--white); font-size: 1.25rem; font-weight: 900; }
.path-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.path-grid article, .quiet-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.path-grid article { display: flex; flex-direction: column; }
.path-grid p { flex: 1; color: var(--muted); }
.link-card { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem; color: var(--navy); background: var(--white); font-weight: 800; }
.link-card:hover { border-color: var(--indigo); box-shadow: 0 7px 20px rgba(24, 50, 75, .08); }
.reading-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .7fr); align-items: start; gap: clamp(2rem, 5vw, 4.5rem); }
.article-flow { max-width: 760px; }
.article-flow > section + section { margin-top: 2.6rem; padding-top: 2.6rem; border-top: 1px solid var(--line); }
.article-flow p { color: #354657; font-size: 1.04rem; }
.quiet-card { position: sticky; top: 100px; background: var(--soft); }
.quiet-card h2 { font-size: 1.25rem; }
.quiet-card ul { margin: 0; padding-left: 1.2rem; }
.quiet-card li + li { margin-top: .45rem; }

.sources { background: var(--navy); color: var(--white); }
.sources h2, .sources h3 { color: var(--white); }
.sources .eyebrow { color: #ffd782; }
.sources .section-lede { color: #dbe5ec; }
.source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.source-card { padding: 1.2rem; border: 1px solid #3d5b73; border-radius: var(--radius); background: #213e57; }
.source-card a { color: #fff1c7; }
.source-card dl, .source-card dd { margin: 0; }
.source-card dl > div { padding: .65rem 0; border-top: 1px solid #39576f; }
.source-card dt { color: #b7c9d7; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.source-card dd { color: #f1f5f8; }

.tool-section { padding-top: 2rem; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: start; gap: 1.2rem; }
.tool-card, .result-card { padding: clamp(1.1rem, 3vw, 1.8rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.tool-card.wide { box-shadow: none; }
.tool-card fieldset { min-width: 0; margin: 0 0 1.5rem; padding: 0; border: 0; }
.tool-card legend, .field > span, .number-field > span { margin-bottom: .55rem; color: var(--navy); font-weight: 800; }
.choice { min-height: 48px; display: flex; align-items: center; gap: .65rem; margin: .45rem 0; padding: .7rem; border: 1px solid var(--line); border-radius: .7rem; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--indigo); background: #f0f1ff; }
.choice input { width: 1.2rem; height: 1.2rem; accent-color: var(--indigo); }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.field, .number-field { display: grid; margin-bottom: 1.25rem; }
.field input, .field select, .field textarea, .number-field input { width: 100%; min-height: 48px; padding: .72rem .8rem; border: 1px solid #abb9c7; border-radius: .65rem; background: var(--white); color: var(--ink); }
.field textarea { resize: vertical; }
.field select:focus, .field input:focus, .field textarea:focus, .number-field input:focus, .button:focus-visible, a:focus-visible, .choice:focus-within { outline: 3px solid rgba(89,102,201,.32); outline-offset: 2px; }
.number-field { grid-template-columns: minmax(90px, 1fr) 90px 44px; align-items: center; gap: .5rem; }
.number-field > span { margin: 0; }
.number-field.stacked { grid-template-columns: 1fr; }
.day-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-bottom: 1.5rem; }
.day-card { padding: 1rem !important; border: 1px solid var(--line) !important; border-radius: .9rem; background: var(--soft); }
.day-card legend { padding: 0 .35rem; }
.result-card { min-height: 240px; border-top: 5px solid var(--gold); }
.result-below { margin-top: 1.2rem; }
.result-empty { color: var(--muted); }
.result-card h2 { font-size: 1.45rem; }
.result-card h3 { margin-top: 1.3rem; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0; }
.metric { padding: .8rem; border-radius: .8rem; background: var(--soft); }
.metric strong { display: block; color: var(--navy); font-size: 1.45rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.form-error { min-height: 1.5em; margin-top: .8rem; color: var(--danger); font-weight: 700; }
.status { padding: .8rem; border-radius: .6rem; }
.status.success { background: #e8f6ed; color: #195f34; }
details { margin: 1.2rem 0; }
summary { min-height: 48px; display: flex; align-items: center; color: var(--navy); cursor: pointer; font-weight: 800; }
.consent { margin: 1rem 0; }
.legal { max-width: 820px; }

.site-footer { padding: 3rem 0 1.5rem; background: #10283d; color: #d7e2ea; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer-grid strong { color: var(--white); font-size: 1.1rem; }
.footer-grid nav { display: grid; align-content: start; gap: .55rem; }
.footer-grid a { color: #e8f0f5; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid #355066; font-size: .82rem; }

@media (max-width: 860px) {
  .menu-button { display: block; }
  .site-menu { position: absolute; left: 1rem; right: 1rem; top: 70px; display: none; padding: .7rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--white); box-shadow: var(--shadow); }
  .site-menu.open { display: grid; }
  .site-menu a { min-height: 48px; display: flex; align-items: center; padding: .4rem .6rem; }
  .hero-grid, .reading-grid, .tool-layout { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: repeat(2, 1fr); }
  .quiet-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 1.25rem, 1120px); }
  .brand small { display: none; }
  .brand strong { font-size: .92rem; }
  .brand > span { width: 42px; height: 42px; }
  h1 { font-size: clamp(2.05rem, 11vw, 3rem); }
  .section { padding: 3.4rem 0; }
  .home-hero { padding-top: 2.8rem; }
  .button-row { display: grid; }
  .button { width: 100%; }
  .feature-grid, .path-grid, .link-grid, .source-grid, .choice-grid, .day-grid, .footer-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 225px; }
  .number-field { grid-template-columns: 1fr 86px 40px; }
  .metric-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media print {
  .site-header, .disclosure, .breadcrumb, .page-hero, .site-footer, .related, .sources, .tool-card, .result-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .tool-section { padding: 0; }
  .result-card { display: none; min-height: 0; border: 0; box-shadow: none; }
  body.care-printing #care-output,
  body.hours-printing #hours-output,
  body.cost-printing #cost-output { display: block !important; }
}

/* Family life, budget, and transition planning 007. */
.priorities-panel { border-left: 5px solid var(--gold); }
.family-brief-panel { border-left: 5px solid var(--indigo); }
.rate-start { padding: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: #f7fafb; }
.rate-start > legend { padding: 0 .35rem; }
.local-band-details { margin-top: .8rem; border-color: #a8c9be; background: #f0f8f4; }
.three-fields { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem; }
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }
.result-callout { padding: .8rem 1rem; border-left: 4px solid var(--gold); border-radius: .4rem; background: #fff8e8; }
.brief-copy { margin-bottom: 1rem; padding: .8rem; border-radius: .6rem; background: #f7fafb; }
.brief-copy h2 { font-size: 1.05rem; }
.guide-checklist { margin: 0 0 2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: #f5f9f8; }
.checklist-heading h2 { margin-bottom: .45rem; }
.checklist-groups { display: grid; gap: .75rem; }
.checklist-groups fieldset { padding: .8rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; }
.checklist-groups legend { padding: 0 .25rem; font-size: 1rem; font-weight: 780; }
.compact-status { display: grid; grid-template-columns: minmax(0,1fr) minmax(145px,.6fr); align-items: center; gap: .75rem; margin: .45rem 0; }
.compact-status select { min-width: 0; }
body[data-route="/ihss-private-pay-insurance-guide/"] .article-flow > section[id^="guide-section-"] { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: #fff; }
body[data-route="/ihss-private-pay-insurance-guide/"] .article-flow > section[id="guide-section-1"] { border-top: 5px solid #587f72; }
body[data-route="/ihss-private-pay-insurance-guide/"] .article-flow > section[id="guide-section-2"] { border-top: 5px solid #c89742; }
body[data-route="/ihss-private-pay-insurance-guide/"] .article-flow > section[id="guide-section-3"] { border-top: 5px solid #586f9a; }
body[data-route="/ihss-private-pay-insurance-guide/"] .article-flow > section[id="guide-section-4"] { border-top: 5px solid #806f98; }

@media (max-width: 700px) {
  .three-fields, .two-fields { grid-template-columns: minmax(0,1fr); }
  .compact-status { grid-template-columns: minmax(0,1fr); gap: .2rem; }
  .rate-start { padding: .75rem; }
}

@media print {
  body.brief-printing > * { display: none !important; }
  body.brief-printing main, body.brief-printing .care-start-section, body.brief-printing .care-workspace,
  body.brief-printing #care-expansion, body.brief-printing .family-brief-panel,
  body.brief-printing #family-brief-output[data-current] { display: block !important; }
  body.brief-printing main > *, body.brief-printing .care-workspace > *, body.brief-printing #care-expansion > *,
  body.brief-printing .family-brief-panel > * { display: none !important; }
  body.brief-printing #family-brief-output[data-current] { margin: 0; padding: 0; border: 0; box-shadow: none; }
  body.brief-printing #family-brief-output .result-actions { display: none !important; }

  body.return-printing > *, body.return-printing main > *, body.return-printing .guide-body .reading-grid > *,
  body.return-printing .article-flow > * { display: none !important; }
  body.return-printing main, body.return-printing .guide-body, body.return-printing .guide-body .reading-grid,
  body.return-printing .article-flow, body.return-printing .guide-checklist { display: block !important; }
  body.return-printing .guide-checklist { margin: 0; padding: 0; border: 0; }
  body.return-printing .print-return-checklist { display: none !important; }
}



/* Family UX 003: warm editorial imagery around compact, practical tools. */
[hidden] { display: none !important; }
html { scroll-padding-top: 100px; }
body { font-size: 1rem; }
h1 { max-width: 18ch; font-size: clamp(2.2rem, 4.4vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
button:disabled { cursor: not-allowed; opacity: .6; }
button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #ad6c12; outline-offset: 3px; }
.section { padding: clamp(2.6rem, 5vw, 4.25rem) 0; }
.nav-wrap { min-height: 72px; }
.brand small { font-size: .8rem; }
.disclosure { margin-block: .65rem; padding: .5rem .75rem; background: #f4f7f8; border-color: var(--line); font-size: .875rem; }
.home-hero { background: #f4f8f9; padding: 2.5rem 0; }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.75rem; }
.hero-copy h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -.04em; line-height: 1.08; }
.hero-copy .hero-lede { font-size: 1.1rem; }
.hero-copy .button-row { margin: 1.2rem 0 .8rem; gap: .6rem; }
.hero-family { margin: 0; position: relative; }
.family-photo { display: block; overflow: hidden; border-radius: 1rem; background: #edf1f3; }
.family-photo img { width: 100%; height: 100%; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-family .family-photo { border-radius: 1.5rem 1.5rem 1.5rem .25rem; }
.hero-family img { height: 360px; }
.hero-family figcaption { font-size: .875rem; padding: .7rem 0 0; color: var(--navy-2); }
.button.text-button { padding-inline: .7rem; background: transparent; color: var(--indigo-dark); text-decoration: underline; text-underline-offset: .2em; }
.eyebrow { font-size: .8rem; letter-spacing: .09em; }
.situation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.situation-card { display: flex; flex-direction: column; color: var(--ink); border: 1px solid var(--line); border-radius: 1rem; text-decoration: none; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.situation-card .family-photo { border-radius: 0; }
.situation-card > div { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.situation-card h3 { font-size: 1.15rem; line-height: 1.25; }
.situation-card p { font-size: .94rem; color: var(--muted); flex: 1; }
.card-link { font-size: .9rem; font-weight: 750; color: var(--indigo-dark); }
.situation-card:hover { border-color: var(--indigo); box-shadow: 0 8px 20px #19324b12; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1rem; }
.section-heading > p { max-width: 33ch; color: var(--muted); }
.feature-card { background: #fff; min-height: 240px; border-top: 4px solid var(--indigo); box-shadow: none; padding: 1.4rem; }
.feature-card h3 { margin-top: .6rem; }
.feature-card strong { color: var(--indigo-dark); text-decoration: underline; text-underline-offset: .2em; }
.step-label { display: block; color: var(--indigo-dark); font-size: .8rem; font-weight: 800; letter-spacing: .08em; margin-bottom: .55rem; }
.path-grid h3 { line-height: 1.3; }
.path-grid p { font-size: .98rem; }
.editorial-grid, .assurance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.budget-band { background: #f5f1e9; }
.budget-band .family-photo img { min-height: 290px; }
.under-link { display: block; margin-top: 1rem; }
.page-hero { padding: 2rem 0; }
.page-hero h1 { font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 23ch; }
.guide-hero { background: #f4f8f9; margin-top: 1rem; }
.guide-hero .hero-lede { font-size: 1.07rem; }
.guide-hero .family-photo img { max-height: 345px; }
.guide-contents { padding: 1.2rem; background: var(--soft); border-radius: .8rem; margin-bottom: 2.2rem; }
.guide-contents h2 { font-size: 1.2rem; }
.guide-contents ul { padding-left: 1.2rem; margin-bottom: 0; }
.guide-contents li + li { margin-top: .55rem; }
.article-flow > section { scroll-margin-top: 110px; }
.article-flow > section + section { margin-top: 2rem; padding-top: 2rem; }
.sources { background: #193b4a; }
.source-card { background: transparent; padding: 1.1rem; }
.source-card h3 { font-size: 1.1rem; line-height: 1.4; }
.source-card dl > div { padding: .4rem 0; }
.source-card .source-limit > div { border: 0; }
.source-card dt { font-size: .8rem; }
.source-card dd { font-size: .94rem; }
.source-card details { margin: .45rem 0 0; }
.source-card summary { color: #e8f0f5; font-size: .9rem; }
summary::after { content: '+'; margin-left: auto; padding-left: .6rem; font-size: 1.2rem; }
details[open] > summary::after { content: '−'; }
.tools-menu { position: relative; margin: 0; }
.tools-menu > summary { font-size: .94rem; min-height: 48px; gap: .3rem; }
.tools-links { position: absolute; top: 100%; left: 0; width: 230px; padding: .6rem; border: 1px solid var(--line); border-radius: .8rem; background: #fff; box-shadow: var(--shadow); }
.tools-links a { display: block; padding: .7rem; border-radius: .4rem; }
.tools-links a:hover { background: var(--soft); }
.tool-hero { padding-bottom: 1rem; }
.tool-intro { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 2rem; align-items: center; }
.tool-intro .hero-lede { font-size: 1.04rem; max-width: 66ch; }
.tool-intro-photo img { max-height: 155px; }
.tool-section { padding-top: .6rem; }
.tool-layout { grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); }
.tool-card, .result-card { box-shadow: 0 6px 20px #19324b08; }
.tool-card legend { font-size: 1.1rem; }
.tool-card .safety-question { background: #f7f8fa; border-radius: .6rem; padding: .85rem; }
.safety-question legend { float: left; width: 100%; font-size: .95rem; }
.inline-choices { display: flex; gap: .6rem; clear: both; }
.inline-choices .choice { min-width: 80px; background: #fff; }
.photo-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.photo-choice { display: block; border: 2px solid var(--line); border-radius: .85rem; overflow: hidden; cursor: pointer; }
.photo-choice .family-photo { border-radius: 0; }
.photo-choice img { height: 115px; }
.photo-choice-text { display: flex; align-items: start; padding: .75rem; gap: .5rem; }
.photo-choice-text input { flex: 0 0 1.15rem; width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--indigo); }
.photo-choice-text strong, .photo-choice-text small { display: block; }
.photo-choice-text strong { font-size: .98rem; line-height: 1.35; }
.photo-choice-text small { margin-top: .3rem; font-size: .875rem; line-height: 1.4; }
.photo-choice:has(input:checked) { border-color: var(--indigo); background: #edf6f7; box-shadow: inset 0 0 0 1px var(--indigo); }
.photo-choice:focus-within { outline: 3px solid #ad6c12; outline-offset: 3px; }
.pattern-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.preset-buttons { display: flex; gap: .6rem; margin-bottom: .6rem; }
.preset-buttons .button { min-height: 44px; padding: .4rem .8rem; }
.day-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: .25rem .6rem; }
.day-choices .choice { margin: 0; }
#apply-pattern { margin-top: .8rem; }
#pattern-status { font-size: .95rem; color: var(--navy); }
.form-section-heading { font-size: 1.3rem; }
.day-grid { grid-template-columns: 1fr 1fr; }
.day-card { margin: 0; padding: .5rem 1rem !important; align-self: start; }
.day-card > summary { gap: .4rem; flex-wrap: wrap; }
.day-total { display: block; font-size: .875rem; font-weight: 400; }
.day-fields { padding-top: .8rem; }
.result-card { scroll-margin-top: 95px; }
.result-card .metric-grid { grid-template-columns: 1fr; }
.result-card .metric strong { overflow-wrap: anywhere; font-size: 1.6rem; }
.result-card .metric span { font-size: .94rem; }
.result-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 1rem; }
.result-table th, .result-table td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--line); }
.benchmark-details { background: #edf6f7; padding: .1rem .8rem .6rem; border-radius: .65rem; }
.benchmark-details a { display: block; margin-bottom: .8rem; font-size: .9rem; }
.final-step { background: #eff6f6; text-align: center; }
.imagery-note { padding-top: 1rem; color: #c3d2de; font-size: .875rem; }
.imagery-note p { max-width: 85ch; }
.quiet-card > .family-photo { margin-bottom: 1rem; }
@media (max-width: 1000px) { .site-menu { gap: .75rem; } .hero-grid { gap: 1.6rem; } }
@media (max-width: 860px) {
  .hero-grid, .editorial-grid, .assurance, .tool-layout { grid-template-columns: 1fr; }
  .hero-family img { height: 290px; }
  .situation-grid { grid-template-columns: 1fr 1fr; }
  .section-heading { display: block; }
  .tools-links { position: static; width: auto; box-shadow: none; border: 0; border-left: 2px solid var(--line); margin-left: .6rem; }
  .tools-menu > summary { padding-inline: .6rem; }
  .site-menu { max-height: calc(100dvh - 85px); overflow-y: auto; }
  .pattern-layout { gap: 1.2rem; }
  .tool-intro { grid-template-columns: minmax(0, 1fr) 160px; gap: 1rem; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 2rem); }
  .nav-wrap { min-height: 64px; }
  .brand { gap: .5rem; }
  .brand strong { font-size: .9rem; }
  .brand > span { width: 36px; height: 36px; border-radius: 10px; }
  .disclosure { font-size: .875rem; line-height: 1.45; padding: .4rem .65rem; }
  .home-hero { padding: 1.5rem 0 1.3rem; }
  .hero-grid { gap: 1rem; }
  .hero-copy h1 { font-size: 2.3rem; max-width: 17ch; margin: .45rem 0 .8rem; }
  .hero-copy .hero-lede { font-size: 1rem; line-height: 1.5; }
  .hero-copy .button-row { margin: .8rem 0 .6rem; gap: .1rem; }
  .hero-copy .button { padding-block: .55rem; }
  .hero-copy .microcopy { font-size: .875rem; margin: 0; }
  .hero-family img { height: 185px; }
  .hero-family figcaption { font-size: .8rem; padding-top: .35rem; }
  .section { padding: 2.25rem 0; }
  .situation-grid { grid-template-columns: 1fr; gap: .7rem; }
  .situation-card { flex-direction: row; flex-wrap: wrap; }
  .situation-card .family-photo { width: 112px; flex: 0 0 112px; }
  .situation-card .family-photo img { height: 100%; min-height: 145px; object-position: center; }
  .situation-card > div { padding: .8rem; min-width: 0; flex: 1 1 9rem; }
  .situation-card h3 { font-size: 1.08rem; margin-bottom: .4rem; }
  .situation-card p { font-size: .9rem; margin-bottom: .5rem; }
  .feature-card { min-height: 0; padding: 1.15rem; }
  .feature-card p { margin-bottom: .7rem; }
  .path-grid { grid-template-columns: 1fr; }
  .editorial-grid { gap: 1.4rem; }
  .budget-band .family-photo img { min-height: 0; height: 200px; }
  .page-hero { padding: 1.4rem 0 .8rem; }
  .page-hero h1 { font-size: 1.85rem; }
  .guide-hero .family-photo img { height: 190px; }
  .guide-hero .editorial-grid { gap: .8rem; }
  .tool-intro { grid-template-columns: 1fr; gap: .25rem; }
  .tool-intro-photo img { height: 140px; object-position: center top; }
  .tool-intro-photo { max-width: 100%; }
  .tool-intro .hero-lede { font-size: 1rem; line-height: 1.5; margin-bottom: .5rem; }
  .tool-section { padding-top: .5rem; }
  .tool-card, .result-card { padding: 1rem; }
  .photo-choice-grid { gap: .5rem; }
  .photo-choice img { height: 95px; }
  .photo-choice-text { padding: .55rem; gap: .4rem; }
  .photo-choice-text strong { font-size: .92rem; }
  .photo-choice-text small { font-size: .875rem; }
  .pattern-layout, .day-grid { grid-template-columns: 1fr; }
  .preset-buttons .button { width: auto; }
  .day-total { margin-left: auto; }
  .number-field { grid-template-columns: minmax(0, 1fr) 76px 38px; }
  .number-field.stacked { grid-template-columns: 1fr; }
  .result-table th, .result-table td { padding: .35rem .2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
/* Allow enlarged text to reflow inside flex and grid children, not off screen. */
body { overflow-wrap: anywhere; }
.hero-grid > *, .editorial-grid > *, .assurance > *, .path-grid > *,
.tool-layout > *, .photo-choice-grid > *, .pattern-layout > * { min-width: 0; }
.button, .path-grid, .assurance, .photo-choice, .choice { overflow-wrap: anywhere; }
.choice-grid > *, .day-choices > * { min-width: 0; }
@media (max-width: 620px) {
  .day-choices { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); }
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  body { font-size: 11pt; }
  .family-photo, figure, .skip-link, .cost-explanation, .guide-contents, .result-actions, noscript { display: none !important; }
  .wrap { width: 100% !important; max-width: none; }
  .tool-layout, .tool-intro { display: block !important; }
  .result-card { width: 100%; padding: 0; margin: 0; }
  .result-card .metric-grid { display: block; }
  .metric { display: inline-block; vertical-align: top; margin-right: 1rem; padding: .5rem; }
  .result-card a { color: #000; overflow-wrap: anywhere; }
  .result-card .print-source::after { content: ' (' attr(href) ')'; font-size: 9pt; }
  .result-card h2, .result-card h3 { break-after: avoid; }
  .metric, .result-table tr { break-inside: avoid; }
}

/* Usability 004: one useful group at a time, with a small visual introduction. */
[hidden] { display: none !important; }
.flow-layout { display: block; }
.flow-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin-bottom: .5rem; scroll-margin-top: 90px; }
.flow-step { min-height: 48px; padding: .55rem .35rem; font-size: .875rem; border: 1px solid var(--line); background: var(--soft); color: var(--navy); border-radius: .6rem; cursor: pointer; overflow-wrap: anywhere; }
.flow-step[aria-current] { color: #fff; background: var(--indigo); border-color: var(--indigo); font-weight: 800; }
.flow-step:disabled { color: var(--muted); cursor: default; opacity: 1; }
.flow-status { font-size: .875rem; color: var(--muted); margin: 0 0 1rem; }
.flow-panel:focus { outline: none; }
.flow-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.flow-actions .flow-next { margin-left: auto; }
.flow-actions button[type="submit"] { flex: 1; }
.hour-stepper { display: flex; align-items: center; margin: 0 !important; border: 1px solid #abb9c7; border-radius: .65rem; overflow: hidden; background: #fff; }
.hour-stepper input { border: 0; border-radius: 0; padding: .45rem .15rem; min-width: 0; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.hour-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.hour-stepper button { flex: 0 0 42px; min-height: 48px; padding: 0; border: 0; background: var(--soft); color: var(--navy); font-size: 1.35rem; cursor: pointer; }
.number-field:has(.hour-stepper) { grid-template-columns: minmax(0,1fr) 156px 38px; }
.pattern-preview { padding: .75rem; border-radius: .65rem; background: #eaf4f4; font-size: .94rem; color: var(--navy); }
.pattern-preview:empty { display: none; }
.plan-separate { font-size: .9rem; font-weight: 650; text-align: left; justify-content: flex-start; padding: .5rem 0; }
.tool-section .result-card:not([data-current]) { min-height: 0; box-shadow: none; padding: .8rem 1rem; border: 1px solid var(--line); }
.tool-section .result-card:not([data-current]) .microcopy { margin-bottom: 0; }
@media (max-width: 860px) {
  .tool-section .result-card:not([data-current]) { display: none; }
}
@media (max-width: 620px) {
  .tool-intro { grid-template-columns: minmax(0, 1fr) 92px; align-items: start; gap: .65rem; }
  .tool-intro-photo img { height: 100px; object-position: center; }
  .tool-intro h1 { font-size: 1.5rem; margin-bottom: .5rem; }
  .tool-intro .hero-lede { font-size: .94rem; }
  .tool-intro .eyebrow { display: none; }
  .flow-actions .button { width: auto; }
  .flow-actions .flow-next { flex: 1; }
  .flow-panel .preset-buttons { gap: .35rem; }
  .flow-panel .preset-buttons .button { padding: .55rem .65rem; font-size: .875rem; }
  .flow-panel .day-choices { grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.5rem), 1fr)); }
  .day-choices .choice { padding: .5rem; gap: .4rem; }
  .number-field:has(.hour-stepper) { grid-template-columns: minmax(0,1fr) 132px 40px; gap: .4rem; }
  .hour-stepper button { flex-basis: 36px; }
  .tool-card .safety-question { padding: .65rem; font-size: .9rem; margin-bottom: 1rem; }
  .flow-panel .photo-choice img { height: 84px; }
}
@media print { .flow-progress, .flow-status, .flow-actions { display: none !important; } }

/* Guided starting point 006: recognize the situation before introducing care terms. */
.care-start-section { background: linear-gradient(180deg, #f7fafb 0, #eef5f5 100%); scroll-margin-top: 82px; }
.care-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); align-items: start; gap: 1.1rem; }
.care-workspace > *, .care-guide .flow-progress, .care-guide .flow-panel, .clinical-choices { min-width: 0; max-width: 100%; }
.care-guide .flow-step { min-width: 0; overflow-wrap: anywhere; }
.care-guide { border-top: 5px solid var(--indigo); }
.care-guide .flow-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.care-guide .safety-note { margin: 0 0 1.1rem; padding: .7rem .85rem; border-left: 4px solid var(--gold); border-radius: .35rem; background: #fff8e8; color: #4f4124; font-size: .9rem; }
.starting-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.starting-choice { display: flex; flex-direction: column; min-width: 0; border: 2px solid var(--line); border-radius: .9rem; overflow: hidden; background: #fff; cursor: pointer; }
.starting-choice .family-photo { border-radius: 0; }
.starting-choice img { height: 108px; object-position: center; }
.starting-choice-text { display: flex; align-items: start; gap: .5rem; padding: .7rem; }
.starting-choice-text input { flex: 0 0 1.15rem; width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--indigo); }
.starting-choice-text strong, .starting-choice-text small { display: block; }
.starting-choice-text strong { font-size: .94rem; line-height: 1.3; }
.starting-choice-text small { margin-top: .25rem; font-size: .82rem; line-height: 1.35; }
.starting-choice:has(input:checked) { border-color: var(--indigo); background: #eaf5f4; box-shadow: inset 0 0 0 1px var(--indigo); }
.starting-choice:focus-within { outline: 3px solid #ad6c12; outline-offset: 3px; }
.clinical-choices { display: grid; gap: .45rem; }
.clinical-choices .choice { margin: 0; background: #fff; }
.care-workspace > #care-output:not([data-current]),
.care-workspace #discussion-output:not([data-current]) { display: none; }
.care-workspace > #care-output { position: sticky; top: 92px; }
.result-limit { margin-top: 1rem; padding: .8rem; border-radius: .65rem; background: #f4f7fa; color: #405162; font-size: .9rem; }
.care-expansion { grid-column: 1 / -1; margin-top: .8rem; scroll-margin-top: 90px; }
.expansion-heading { max-width: 720px; }
.expansion-heading h2 { outline: none; }
.expansion-panel { margin: .7rem 0; border: 1px solid var(--line); border-radius: .9rem; background: #fff; overflow: hidden; }
.expansion-panel > summary { padding: .85rem 1rem; font-size: 1.02rem; }
.expansion-panel[open] > summary { border-bottom: 1px solid var(--line); background: #f4f8f9; }
.expansion-panel > .tool-card, .expansion-panel > .embedded-tool, .expansion-panel > .result-card { margin: 1rem; }
.embedded-tool > .result-card { margin-top: 1rem; }
.compact-tool { box-shadow: none; border: 0; border-radius: 0; }
.compact-tool + .result-card { margin: 0 1rem 1rem; }
.direct-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: 1rem; padding: .8rem 1rem; border-radius: .75rem; background: #fff; font-size: .92rem; }
.direct-tools span { color: var(--muted); }
.direct-tools a { font-weight: 750; }
.use-planned-hours { width: 100%; margin-bottom: .5rem; }
.planned-hours-status:empty { display: none; }

@media (max-width: 900px) {
  .care-workspace { grid-template-columns: minmax(0, 1fr); }
  .care-workspace > #care-output { position: static; }
  .starting-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .home-hero .hero-grid { grid-template-columns: minmax(0, 1fr) 108px; align-items: start; gap: .75rem; }
  .home-hero .hero-copy h1 { font-size: 1.9rem; line-height: 1.04; }
  .home-hero .hero-copy .hero-lede { font-size: .92rem; line-height: 1.4; }
  .home-hero .hero-copy .button-row { display: block; }
  .home-hero .hero-copy .button { width: 100%; font-size: .88rem; padding-inline: .6rem; }
  .home-hero .hero-copy .button-row .text-button { display: none; }
  .home-hero .hero-copy .microcopy { display: none; }
  .home-hero .hero-family img { height: 150px; }
  .home-hero .hero-family figcaption { display: none; }
  .care-start-section { padding-top: 1.75rem; }
  .care-start-section .section-heading { display: none; }
  .care-guide { padding: .8rem; }
  .care-guide .safety-note { font-size: .83rem; padding: .55rem .65rem; }
  .care-guide .flow-step { font-size: .8rem; min-height: 44px; }
  .care-guide .flow-status { font-size: .8rem; margin-bottom: .65rem; }
  .care-guide legend { font-size: 1rem; }
  .starting-choice-grid { gap: .45rem; }
  .starting-choice img { height: 82px; }
  .starting-choice-text { padding: .5rem; gap: .35rem; }
  .starting-choice-text strong { font-size: .87rem; }
  .starting-choice-text small { font-size: .77rem; }
  .starting-choice-text input { width: 1.05rem; height: 1.05rem; flex-basis: 1.05rem; }
  .clinical-choices .choice { font-size: .9rem; padding: .6rem; }
  .direct-tools { align-items: flex-start; flex-direction: column; }
  .expansion-panel > .tool-card, .expansion-panel > .embedded-tool, .expansion-panel > .result-card { margin: .6rem; }
  .compact-tool + .result-card { margin: 0 .6rem .6rem; }
}
@media print {
  body.care-printing main > *, body.care-printing .care-workspace > *, body.care-printing .care-expansion > * { display: none !important; }
  body.care-printing .care-start-section, body.care-printing .care-workspace,
  body.care-printing #care-output[data-current], body.care-printing #care-expansion:not([hidden]),
  body.care-printing .care-expansion .expansion-panel:has(.result-card[data-current]),
  body.care-printing .care-expansion .result-card[data-current] { display: block !important; }
  body.care-printing .care-start-section .section-heading, body.care-printing .direct-tools,
  body.care-printing .expansion-heading, body.care-printing .expansion-panel > summary,
  body.care-printing .expansion-panel > form, body.care-printing .expansion-panel > .embedded-tool > form,
  body.care-printing .expansion-panel > .embedded-tool > .result-card:not([data-current]) { display: none !important; }
  body.care-printing .care-expansion .expansion-panel { margin: 0; border: 0; }
  body.care-printing .care-expansion .embedded-tool { display: block !important; margin: 0; }
  body.care-printing .care-expansion .result-card[data-current] { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #777; }
}
