/* OpenCarePath · North, Central & East Texas — studio design system 6.0
   Travertine paper, gallery white, forest cypress, burnished bronze, espresso ink.
   1 tokens · 2 base · 3 type · 4 layout · 5 controls · 6 top bar · 7 home · 8 explore · 9 cards · 10 map
   11 overlays & wizard · 12 profile sheet · 13 brief · 14 journey · 15 clinicians · 16 footer · 17 responsive · 18 print */

/* ============ 1 · TOKENS ============ */
:root {
  --paper: #F5F0E8; --paper-2: #FAF7F1; --paper-deep: #ECE5D8; --white: #FFFFFF;
  --cypress: #152B23; --cypress-2: #1E3A30; --cypress-3: #0F211A;
  --bronze: #A47E52; --bronze-ink: #7A5A34; --bronze-soft: #D9BE9C; --brass: #C9A671;
  --ink: #171411; --ink-2: rgba(23, 20, 17, 0.76); --ink-3: rgba(23, 20, 17, 0.62);
  --rule: rgba(23, 20, 17, 0.12); --rule-2: rgba(23, 20, 17, 0.24); --rule-soft: rgba(23, 20, 17, 0.07);
  --sage: #EAF1ED; --alert: #9A3B26; --alert-wash: #F8ECE7;

  /* Validated seven-stage categorical set (CVD all-pairs ΔE ≥ 8, normal ≥ 15) */
  --st-LTACH: #097553; --st-IRF: #2E6AA9; --st-VENT_SNF: #B08A17; --st-SNF: #5CBD7B;
  --st-CARDIOPULM: #1D7A74; --st-HOME_HEALTH: #A34B11; --st-HOSPICE: #C978B7;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --topbar-h: 72px;

  /* 4 / 8 / 16 / 24 / 32 spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-pill: 999px;

  /* Ambient elevation, tinted with cypress so shadows sit warm on travertine */
  --e-1: 0 1px 2px rgba(21, 43, 35, 0.04), 0 12px 28px -12px rgba(21, 43, 35, 0.10);
  --e-2: 0 2px 4px rgba(21, 43, 35, 0.05), 0 22px 44px -18px rgba(21, 43, 35, 0.22);
  --e-3: 0 4px 12px rgba(21, 43, 35, 0.07), 0 36px 80px -28px rgba(21, 43, 35, 0.40);
  --ring: 0 0 0 3px rgba(164, 126, 82, 0.24);
  --shadow-1: var(--e-1); --shadow-2: var(--e-3);

  /* Optical paper grain: ink speckle for light stock, light speckle for cypress */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0 0.07 0.075 0 0 0 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.94 0 0 0 0 0.91 0.07 0 0 0 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ 2 · BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0; background: var(--paper) var(--grain); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, h5, p, figure, blockquote, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(164, 126, 82, 0.3); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Quiet, paper-toned scrollbars wherever a pane scrolls */
.list-pane, .sheet-body, .loc-menu, .brief, .overlay { scrollbar-width: thin; scrollbar-color: rgba(23, 20, 17, 0.24) transparent; }

/* ============ 3 · TYPE ============ */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(2.75rem, 5.4vw, 4.25rem); line-height: 1; letter-spacing: -0.028em; font-optical-sizing: auto; text-wrap: balance; }
.display.sm { font-size: clamp(2.25rem, 4.2vw, 3.5rem); line-height: 1.04; }
.display em, .headline em { font-style: italic; color: var(--bronze-ink); letter-spacing: -0.02em; }
.headline { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.5vw, 3.125rem); line-height: 1.06; letter-spacing: -0.024em; text-wrap: balance; }
.title { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.14; letter-spacing: -0.016em; text-wrap: balance; }
.title.lg { font-size: clamp(1.75rem, 2.8vw, 2.25rem); line-height: 1.1; letter-spacing: -0.02em; }
.lede { font-size: 1.125rem; line-height: 1.62; color: var(--ink-2); max-width: 38em; text-wrap: pretty; }
.body-lg { font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.body { color: var(--ink-2); text-wrap: pretty; }
.eyebrow { display: flex; align-items: baseline; gap: 14px; font-size: 0.75rem; font-weight: 600; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-ink); }
.eyebrow .no { flex: none; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.0625rem; line-height: 1.1; letter-spacing: 0; text-transform: none; white-space: nowrap; padding-right: 14px; border-right: 1px solid var(--bronze); }
.eyebrow.on-dark { color: var(--bronze-soft); }
.eyebrow.on-dark .no { border-color: rgba(217, 190, 156, 0.55); }
.fineprint { font-size: 0.84375rem; line-height: 1.62; color: var(--ink-2); }
.fineprint.on-dark { color: rgba(245, 240, 232, 0.78); }
.subhead { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-ink); }
.kpi-num { font-family: var(--serif); font-weight: 400; font-size: 2.25rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.kpi-num.xl { font-size: 2.75rem; }
.kpi-num small { font-size: 0.5em; color: var(--ink-3); letter-spacing: 0; }
.kpi-label { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); line-height: 1.35; }
/* Every figure on the page sets in tabular lining numerals */
.count-chip, .pill b, .chip, .fc-drive, .figure-num, .cc-stage-count, .cc-stage-no, .tele, .rows .v, .loc-item-meta, .brief-phone, .call-phone, .quick, .path-step-stay, .ref-card-stay, .plan-price, .ledger-row { font-variant-numeric: tabular-nums lining-nums; }

/* ============ 4 · LAYOUT ============ */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.wrap.narrow { max-width: 920px; }
.band { position: relative; padding: 120px 0; }
.band.figures-band { padding: 0; }
.band-white { background: var(--white); }
.band-paper { background: var(--paper) var(--grain); }
.band-cypress { background: var(--cypress); color: var(--paper); }
.band-cypress .lede { color: #F2EFE7; font-size: 1.0625rem; line-height: 1.68; max-width: 52ch; }
.band-cypress .lede strong { color: var(--white); font-weight: 600; }
.section-head { display: grid; gap: 20px; margin-bottom: 64px; max-width: 780px; }
.view-section { display: none; }
.view-section.active { display: block; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ============ 5 · CONTROLS ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--r-1); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.005em; white-space: nowrap; text-decoration: none; transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.3s var(--ease), transform 0.25s var(--ease); }
.btn .ic { transition: transform 0.35s var(--ease-out); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn-primary { background: var(--cypress); color: var(--paper); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(21, 43, 35, 0.2), 0 10px 22px -12px rgba(21, 43, 35, 0.55); }
.btn-primary:hover { background: var(--cypress-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 4px rgba(21, 43, 35, 0.2), 0 16px 28px -12px rgba(21, 43, 35, 0.6); }
.btn-primary .ic { color: var(--brass); }
.btn-outline { border: 1px solid var(--rule-2); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--bronze-ink); box-shadow: var(--e-1); }
.btn-quiet { color: var(--ink); min-height: 40px; padding: 0 14px; }
.btn-quiet:hover { color: var(--bronze-ink); }
.btn-light { background: var(--paper); color: var(--cypress); }
.btn-light:hover { background: var(--white); }
.btn-ghost-light { color: var(--paper); border: 1px solid rgba(245, 240, 232, 0.3); }
.btn-ghost-light:hover { border-color: var(--paper); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--cypress); text-align: left; padding: 4px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease-out), color 0.2s; }
.text-link:hover { background-size: 100% 1px; }
.text-link .ic { width: 16px; height: 16px; color: var(--bronze-ink); transition: transform 0.35s var(--ease-out); }
.text-link:hover .ic { transform: translateX(3px); }
.text-link.muted { color: var(--ink-2); font-weight: 500; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: background 0.2s, color 0.2s; }
.icon-btn:hover { background: rgba(23, 20, 17, 0.07); color: var(--ink); }
.round-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule-2); color: var(--ink); background: var(--white); transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.25s var(--ease); }
.round-btn:hover:not(:disabled) { border-color: var(--cypress); background: var(--cypress); color: var(--paper); }
.round-btn:active:not(:disabled) { transform: scale(0.94); }
.round-btn:disabled { opacity: 0.35; cursor: default; }
.round-btn .ic { width: 16px; height: 16px; }
.count-chip { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--cypress); color: var(--paper); font-size: 0.75rem; font-weight: 700; line-height: 1; }

/* Single-caret selects (never the native picker icon) */
.capsule select, .field select, .form select {
  -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A5A34' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 16px 16px; background-position: right 0 center;
  padding-right: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
select::picker-icon { display: none !important; content: none !important; }
select::-ms-expand { display: none; }

/* Form fields share one height, one border, one focus halo */
textarea, .form input, .form select { width: 100%; min-width: 0; min-height: 48px; padding: 11px 14px; border: 1px solid var(--rule-2); border-radius: var(--r-1); background-color: var(--white); font-size: 0.9375rem; line-height: 1.3; outline: none; transition: border-color 0.2s, box-shadow 0.25s; }
.form input, .form select { height: 48px; padding-top: 0; padding-bottom: 0; }
.form select { background-position: right 14px center; padding: 0 42px 0 14px; line-height: 46px; }
textarea { resize: vertical; line-height: 1.5; }
textarea:hover, .form input:hover, .form select:hover { border-color: var(--ink-3); }
textarea:focus, .form input:focus, .form select:focus { border-color: var(--bronze-ink); box-shadow: var(--ring); }
::placeholder { color: var(--ink-3); opacity: 1; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 500; cursor: pointer; min-height: 32px; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex: none; border: 1.5px solid var(--rule-2); border-radius: 3px; background: var(--white); display: grid; place-items: center; cursor: pointer; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; margin: 0; }
.check:hover input { border-color: var(--bronze-ink); }
.check input:focus-visible { outline: none; box-shadow: var(--ring); border-color: var(--bronze-ink); }
.check input:checked { background: var(--cypress) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F0E8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--cypress); }

/* ============ 6 · TOP BAR ============ */
.topbar { position: sticky; top: 0; z-index: 1000; background: rgba(245, 240, 232, 0.84); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--rule); transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease); }
.topbar.scrolled { background: rgba(245, 240, 232, 0.9); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 10px 30px -18px rgba(21, 43, 35, 0.35); }
.topbar-inner { max-width: 1400px; margin: 0 auto; height: 72px; padding: 0 24px; display: flex; align-items: center; gap: 16px; }
.brand-btn { display: flex; align-items: center; gap: 10px; flex: none; border-radius: var(--r-1); }
.brand-mark { width: 36px; height: 36px; flex: none; overflow: visible; filter: drop-shadow(0 4px 8px rgba(21, 43, 35, 0.2)); transition: transform 0.5s var(--ease-out); }
.brand-btn:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }
.brand-mark .bm-seal { fill: var(--cypress); }
.brand-mark .bm-keyline { fill: none; stroke: rgba(217, 190, 156, 0.4); stroke-width: 0.75; }
.brand-mark .bm-path { fill: none; stroke: var(--paper); stroke-width: 1.7; stroke-linecap: round; }
.brand-mark .bm-step { fill: var(--paper); }
.brand-mark .bm-end { fill: var(--cypress); stroke: var(--paper); stroke-width: 1.6; }
.brand-mark .bm-dot { fill: var(--brass); stroke: var(--cypress); stroke-width: 1.4; }
.brand-wordmark { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.024em; line-height: 1; color: var(--ink); padding-bottom: 2px; }
.brand-region { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-left: 2px; padding: 2px 0 2px 12px; border-left: 1px solid var(--rule-2); line-height: 1.5; white-space: nowrap; text-align: left; }
.topnav { display: flex; gap: 2px; margin-left: auto; }
.topnav-link { position: relative; height: 72px; padding: 0 11px; white-space: nowrap; font-size: 0.90625rem; font-weight: 500; color: var(--ink-2); transition: color 0.2s; }
.topnav-link::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 2px; background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out); }
.topnav-link:hover, .topnav-link.active { color: var(--ink); }
.topnav-link.active { font-weight: 600; }
.topnav-link:hover::after { transform: scaleX(0.3); }
.topnav-link.active::after { transform: scaleX(1); }
.topbar-right { display: flex; align-items: center; gap: 6px; flex: none; }
.topbar-right .btn-quiet { padding: 0 10px; font-size: 0.875rem; }
@media (max-width: 1220px) {
  .brand-region { display: none; }
  .topnav-link { padding: 0 9px; font-size: 0.875rem; }
}
.lang-toggle { display: flex; align-items: center; padding: 3px; border: 1px solid var(--rule); border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.5); }
.lang-toggle button { min-width: 36px; height: 28px; padding: 0 9px; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3); transition: background 0.3s var(--ease), color 0.2s; }
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button.active { color: var(--paper); background: var(--cypress); }
.lang-toggle span { display: none; }
.shortlist-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px 0 14px; border: 1px solid var(--rule-2); border-radius: var(--r-1); background: rgba(255, 255, 255, 0.6); font-size: 0.9375rem; font-weight: 600; transition: border-color 0.25s, background 0.25s, box-shadow 0.3s; }
.shortlist-btn:hover { border-color: var(--bronze-ink); background: var(--white); box-shadow: var(--e-1); }
.shortlist-btn .ic { color: var(--bronze-ink); }
.mobile-subnav { display: none; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: 0.07s; }
.js .reveal:nth-child(3) { transition-delay: 0.14s; }
.js .reveal:nth-child(4) { transition-delay: 0.21s; }
.js .reveal:nth-child(5) { transition-delay: 0.28s; }

/* ============ 7 · HOME ============ */
/* Hero */
.hero { position: relative; min-height: min(calc(100vh - var(--topbar-h)), 780px); display: flex; align-items: center; background: #EFE7DA; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; animation: heroDrift 24s var(--ease) both; }
@keyframes heroDrift { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245, 240, 232, 0.96) 0%, rgba(245, 240, 232, 0.9) 32%, rgba(245, 240, 232, 0.42) 52%, rgba(245, 240, 232, 0) 68%), var(--grain); }
.hero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(245, 240, 232, 0), rgba(245, 240, 232, 0.5)); pointer-events: none; }
.hero-grid { position: relative; padding-top: 72px; padding-bottom: 72px; }
.hero-copy { max-width: 760px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hero-copy .eyebrow { align-items: center; }
.hero-copy .eyebrow::before { content: ""; flex: none; width: 28px; height: 1px; background: var(--bronze); }
.eyebrow .k-sep { white-space: pre; }
.hero-copy .lede { max-width: 31em; }

/* Search capsule */
.capsule { position: relative; z-index: 20; display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr) auto; align-items: stretch; width: min(1040px, calc(100vw - 64px)); margin-top: 8px; background: var(--white); border: 1px solid rgba(23, 20, 17, 0.1); border-radius: var(--r-3); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35), var(--e-3); }
.capsule-field { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; row-gap: 3px; align-content: center; padding: 15px 18px 14px; min-width: 0; cursor: text; transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.capsule-field::after { content: ""; position: absolute; right: 0; top: 16px; bottom: 16px; width: 1px; background: var(--rule); }
.capsule-field:first-child { border-radius: calc(var(--r-3) - 1px) 0 0 calc(var(--r-3) - 1px); }
.capsule-field:hover { background: var(--paper-2); }
.capsule-field:focus-within { background: var(--paper-2); box-shadow: inset 0 -2px 0 var(--bronze); }
.capsule-ic { grid-row: 1 / span 2; align-self: center; width: 20px; height: 20px; color: var(--bronze-ink); }
.capsule-label { grid-column: 2; min-width: 0; font-size: 0.6875rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capsule-need { cursor: pointer; }
.capsule select { grid-column: 2; border: 0; background-color: transparent; padding: 2px 26px 2px 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.4; width: 100%; outline: none; }
.capsule-submit { margin: 8px; min-height: 0; padding: 0 28px; border-radius: var(--r-2); font-size: 1rem; }
.hero-links { display: grid; gap: 8px; justify-items: start; margin-top: 4px; }

/* Location autocomplete (hero, Explore, clinician facility pickers) */
.loc-wrap { position: relative; }
.loc-input-row { grid-column: 2; display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }
.loc-input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 2px 0; font-size: 0.96875rem; font-weight: 500; line-height: 1.4; color: var(--ink); outline: none; text-overflow: ellipsis; }
.loc-input::placeholder { color: var(--ink-3); font-weight: 400; }
.loc-clear { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); transition: background 0.15s, color 0.15s; }
.loc-clear:hover { background: var(--paper-deep); color: var(--ink); }
.loc-clear .ic { width: 13px; height: 13px; }
.loc-menu { position: absolute; left: 0; top: calc(100% + 10px); z-index: 1600; width: max(100%, 480px); max-width: calc(100vw - 32px); max-height: 392px; overflow-y: auto; overscroll-behavior: contain; background: var(--white); border: 1px solid rgba(23, 20, 17, 0.14); border-radius: var(--r-3); box-shadow: var(--e-3); padding: 8px; animation: menuIn 0.28s var(--ease-out); cursor: default; }
.loc-menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
.loc-group { padding: 10px 12px 6px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-ink); }
.loc-group:not(:first-child) { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--rule-soft); }
.loc-item { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-2); transition: background 0.14s; cursor: pointer; }
.loc-item:hover, .loc-item.hi { background: var(--paper); }
.loc-item-main { display: grid; gap: 1px; min-width: 0; }
.loc-item-main strong { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.loc-item-main small { font-size: 0.8125rem; line-height: 1.4; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-item-meta { flex: none; padding: 3px 9px; border-radius: var(--r-pill); background: var(--paper); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bronze-ink); white-space: nowrap; transition: background 0.14s; }
.loc-item:hover .loc-item-meta, .loc-item.hi .loc-item-meta { background: var(--white); }
.loc-empty { padding: 16px 14px; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }

/* Bespoke studio select dropdowns (replaces clunky native OS gray popups) */
.sr-select { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; pointer-events: none; }
.csel-wrap { position: relative; }
.csel-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 0; background: transparent; border: 0; text-align: left; cursor: pointer; color: var(--ink); }
.csel-val { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csel-chev { flex: none; width: 15px; height: 15px; color: var(--bronze-ink); transition: transform 0.22s var(--ease); }
.csel-btn[aria-expanded="true"] .csel-chev { transform: rotate(180deg); }
.hero-csel-btn { grid-column: 2; padding: 2px 0; font-size: 0.96875rem; font-weight: 500; line-height: 1.4; }
.bar-csel-btn { height: 100%; padding: 0; font-size: 0.90625rem; font-weight: 500; }
.csel-menu { z-index: 1650; }
.need-menu { width: max(100%, 380px); max-height: 440px; }
.compact-menu { width: max(100%, 236px); max-height: 360px; right: 0; left: auto; }
.csel-opt { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: var(--r-2); transition: background 0.14s; cursor: pointer; }
.csel-opt:hover, .csel-opt.hi { background: var(--paper); }
.csel-opt.active { background: var(--sage); }
.csel-opt-main { display: grid; gap: 1px; min-width: 0; }
.csel-opt-main strong { font-size: 0.90625rem; font-weight: 500; line-height: 1.35; color: var(--ink); }
.csel-opt.active .csel-opt-main strong { font-weight: 600; color: var(--cypress); }
.csel-opt-main small { font-size: 0.78125rem; line-height: 1.35; color: var(--ink-3); }
.csel-opt .ic { width: 15px; height: 15px; color: var(--cypress); flex: none; opacity: 0; }
.csel-opt.active .ic { opacity: 1; }

/* Four-figure ledger bar */
.figures-band { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figure { position: relative; display: grid; gap: 14px; align-content: start; padding: 44px 32px 42px 0; }
.figure + .figure { padding-left: 32px; }
.figure + .figure::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 1px; background: var(--rule); }
.figure-num { font-family: var(--serif); font-size: clamp(2.75rem, 4.6vw, 4rem); line-height: 0.95; letter-spacing: -0.035em; }
.figure-num small { font-size: 0.42em; color: var(--ink-3); letter-spacing: 0; }
.figure-label { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; max-width: 17em; text-wrap: balance; }

/* No. 01 · Seven Care Settings · Tactile 3-Place Interactive Selector */
.places-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr; background: #F4EFE4; border: 1px solid #DFD7C6; border-radius: var(--r-3); overflow: hidden; box-shadow: 0 2px 12px rgba(21, 43, 35, 0.04); }
.place-col { display: grid; grid-template-rows: subgrid; grid-row: span 2; padding: 24px 22px 24px; }
.place-col + .place-col { border-left: 1px solid #E2DACB; }
.place-col-head { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: baseline; align-content: start; padding-bottom: 15px; margin-bottom: 14px; border-bottom: 1px solid #E2DACB; }
.place-no { font-family: var(--serif); font-style: italic; font-size: 1.125rem; font-weight: 600; color: var(--bronze-ink); line-height: 1; }
.place-col-head h3 { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; line-height: 1.18; letter-spacing: -0.012em; color: var(--cypress); }
.place-col-head p { margin: 4px 0 0; font-size: 0.875rem; line-height: 1.44; color: #363E3A; }
.place-list { display: grid; gap: 10px; align-content: start; }
.place-item { position: relative; text-align: left; display: grid; gap: 5px; padding: 14px 16px; border-radius: 11px; background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(21, 43, 35, 0.11); box-shadow: 0 1px 2px rgba(21, 43, 35, 0.03); transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s; }
.place-item:hover { background: var(--white); border-color: rgba(164, 126, 82, 0.65); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(21, 43, 35, 0.07); }
.place-item.active { background: var(--cypress); border-color: var(--cypress); box-shadow: 0 10px 24px -12px rgba(21, 43, 35, 0.65); transform: none; }
.place-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.place-item-name { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.place-item-name strong { font-size: 0.96875rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.place-item.active .place-item-name strong { color: var(--white); }
.place-item.active .place-item-name .dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }
.place-item-count { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1; color: var(--ink-2); flex: none; font-variant-numeric: tabular-nums; }
.place-item.active .place-item-count { color: #E8CE9B; }
.place-item-line { padding-left: 19px; font-size: 0.875rem; line-height: 1.46; color: #363E3A; }
.place-item.active .place-item-line { color: rgba(245, 240, 232, 0.88); }

/* Stage showcase · editorial spread */
.showcase { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: center; margin-top: 28px; padding: 34px 36px; background: #FAF8F3; border: 1px solid #E2DBCD; border-radius: var(--r-3); box-shadow: var(--e-1); }
.showcase-photo { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--paper-deep); box-shadow: var(--e-2); }
.showcase-photo::after, .closing-photo::after, .page-head-photo::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, 0.55); pointer-events: none; }
.showcase-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), opacity 0.45s ease, object-position 1.2s var(--ease-out); }
.showcase-photo:hover img { transform: scale(1.035); }
.showcase.swapping .showcase-photo img { opacity: 0.3; }
.showcase.swapping .showcase-body { opacity: 0; transform: translateY(10px); }
.showcase-body { display: grid; gap: 18px; justify-items: start; transition: opacity 0.35s ease, transform 0.45s var(--ease-out); }
.showcase-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.showcase-nav { display: flex; gap: 8px; }
.showcase-body .title { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.06; letter-spacing: -0.024em; }
.showcase-count { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule); width: 100%; }
.showcase-count .kpi-num { color: var(--cypress); }
.showcase-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-2); overflow: hidden; }
.showcase-specs > div { display: grid; gap: 6px; align-content: start; padding: 18px 22px; border-bottom: 1px solid var(--rule-soft); }
.showcase-specs > div:nth-child(odd) { border-right: 1px solid var(--rule-soft); }
.showcase-specs > div:nth-last-child(-n+2) { border-bottom: 0; }
.showcase-specs span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--bronze-ink); }
.showcase-specs strong { font-size: 0.9375rem; font-weight: 400; line-height: 1.52; color: #1E2320; }
.showcase-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.showcase-next { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); padding: 2px 0 2px 16px; border-left: 2px solid var(--bronze); }
.showcase-next strong { color: var(--ink); font-weight: 600; }
.benefit-pill { position: absolute; z-index: 1; left: 22px; bottom: 22px; max-width: calc(100% - 44px); display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 14px; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 600; line-height: 1.3; box-shadow: 0 8px 20px -10px rgba(21, 43, 35, 0.45); }
.benefit-pill::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--bronze); }

/* No. 02 · Three-midnight Medicare checker */
.band-cypress { background-color: var(--cypress); background-image: radial-gradient(900px 540px at 84% 4%, rgba(201, 166, 113, 0.14), transparent 62%), radial-gradient(760px 520px at -4% 104%, rgba(46, 84, 70, 0.55), transparent 68%), var(--grain-light); background-repeat: no-repeat, no-repeat, repeat; }
.medicare-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 88px; align-items: center; }
.medicare-copy { display: grid; gap: 24px; }
.midnights { display: grid; gap: 12px; margin-top: 12px; }
.midnight-btn { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) 20px; gap: 20px; align-items: center; text-align: left; padding: 20px 22px; border: 1px solid rgba(245, 240, 232, 0.16); border-radius: var(--r-2); background: rgba(255, 255, 255, 0.02); color: rgba(245, 240, 232, 0.68); transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease); }
.midnight-btn::after { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(245, 240, 232, 0.4); transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; }
.midnight-btn:hover { color: var(--paper); border-color: rgba(245, 240, 232, 0.36); background: rgba(255, 255, 255, 0.045); }
.midnight-btn:active { transform: scale(0.995); }
.midnight-btn.active { color: var(--paper); border-color: var(--brass); background: rgba(201, 166, 113, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.midnight-btn.active::after { border-color: var(--brass); background: var(--brass); box-shadow: inset 0 0 0 4px var(--cypress); }
.midnight-btn[data-stay-status="observation"].active { border-color: #E39A82; background: rgba(227, 154, 130, 0.1); }
.midnight-btn[data-stay-status="observation"].active::after { border-color: #E39A82; background: #E39A82; }
.midnight-btn:focus-visible { outline-color: var(--brass); }
.midnight-text { display: grid; gap: 3px; }
.midnight-text strong { font-family: var(--serif); font-weight: 400; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; }
.midnight-text span { font-size: 0.9375rem; line-height: 1.45; opacity: 0.84; }
.moons { display: flex; gap: 6px; }
.moons i { width: 16px; height: 16px; border-radius: 50%; background: var(--bronze-soft); box-shadow: inset -5px 0 0 rgba(21, 43, 35, 0.55); }
.moons i.empty { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(245, 240, 232, 0.5); }
.calc { position: relative; display: grid; gap: 22px; padding: 36px 38px; border: 1px solid rgba(201, 166, 113, 0.36); border-radius: var(--r-3); background: linear-gradient(180deg, rgba(10, 26, 20, 0.56), rgba(9, 23, 18, 0.72)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 36px 68px -36px rgba(0, 0, 0, 0.65); transition: border-color 0.4s; }
.calc[data-status="observation"] { border-color: rgba(227, 154, 130, 0.65); }
.calc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.calc-head .kpi-label { color: #F5F1E9; font-size: 0.96875rem; font-weight: 500; }
.calc-head .kpi-num { font-size: 2.75rem; color: var(--white); white-space: nowrap; }
.calc-head .kpi-num small { margin-left: 4px; font-family: var(--sans); font-size: 0.90625rem; font-weight: 500; color: rgba(245, 240, 232, 0.82); }
.runway { display: grid; gap: 8px; }
.runway-track { position: relative; height: 30px; display: flex; align-items: center; }
.runway-bar { position: relative; display: flex; gap: 2px; width: 100%; height: 10px; border-radius: 5px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.06); }
.rw-free { width: 20%; background: linear-gradient(180deg, #B4DAC6, #86B89F); transition: background 0.4s; }
.rw-copay { flex: 1; background: linear-gradient(180deg, #DDBD88, #B08A58); transition: background 0.4s; }
.rw-marker { position: absolute; top: 0; bottom: 0; right: 0; left: 29.3%; background: rgba(15, 33, 26, 0.74); pointer-events: none; }
.calc[data-status="observation"] .rw-free, .calc[data-status="observation"] .rw-copay { background: linear-gradient(180deg, #F1B49F, #D98A6E); }
.runway input[type="range"] { position: absolute; left: -14px; top: 0; width: calc(100% + 28px); height: 30px; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; cursor: grab; outline: none; touch-action: pan-y; }
.runway input[type="range"]:active { cursor: grabbing; }
.runway input[type="range"]::-webkit-slider-runnable-track { height: 30px; background: transparent; }
.runway input[type="range"]::-moz-range-track { height: 30px; background: transparent; }
.runway input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #FFFFFF, #F3EBDD 58%, #DACDB6); border: 1px solid rgba(21, 43, 35, 0.55); box-shadow: 0 0 0 3px var(--brass), 0 8px 16px rgba(0, 0, 0, 0.5); transition: box-shadow 0.25s, transform 0.25s var(--ease); }
.runway input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #FFFFFF, #F3EBDD 58%, #DACDB6); border: 1px solid rgba(21, 43, 35, 0.55); box-shadow: 0 0 0 3px var(--brass), 0 8px 16px rgba(0, 0, 0, 0.5); }
.runway input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--brass), 0 0 0 9px rgba(201, 166, 113, 0.22), 0 8px 16px rgba(0, 0, 0, 0.5); }
.runway input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.08); }
.runway input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--brass), 0 0 0 9px rgba(201, 166, 113, 0.4), 0 8px 16px rgba(0, 0, 0, 0.5); }
.runway-scale { position: relative; height: 26px; font-size: 0.78125rem; font-weight: 600; letter-spacing: 0.05em; color: rgba(245, 240, 232, 0.84); }
.runway-scale span { position: absolute; top: 9px; white-space: nowrap; }
.runway-scale span::before { content: ""; position: absolute; top: -9px; left: 0; width: 1px; height: 6px; background: rgba(245, 240, 232, 0.55); }
.runway-scale span:first-child { left: 0; }
.runway-scale .rw-20 { left: 20%; transform: translateX(-50%); }
.runway-scale .rw-20::before { left: 50%; }
.runway-scale span:last-child { right: 0; }
.runway-scale span:last-child::before { left: auto; right: 0; }
.calc-result { display: grid; align-content: start; gap: 12px; min-height: 252px; padding-top: 22px; border-top: 1px solid rgba(245, 240, 232, 0.22); font-size: 0.96875rem; line-height: 1.58; color: #F0ECE3; }
.calc-result strong { color: var(--white); font-weight: 600; }
.calc-result .kpi-num { font-size: 3.125rem; letter-spacing: -0.025em; color: var(--white); }
.calc-result .calc-tag { font-size: 0.78125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #BCE6CE; }
.calc-result.warn .calc-tag { display: inline-flex; align-items: center; gap: 8px; color: #F8C0AD; }
.calc-result.warn .calc-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E39A82; box-shadow: 0 0 0 4px rgba(227, 154, 130, 0.25); }
.calc-result.warn .kpi-num { font-size: 2.125rem; line-height: 1.12; letter-spacing: -0.02em; color: #FFF0EA; }
.calc-rows { display: grid; border-top: 1px solid rgba(245, 240, 232, 0.2); }
.calc-rows > div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(245, 240, 232, 0.16); color: #F6F2EB; font-size: 0.9375rem; }
.calc-rows i { width: 10px; height: 10px; border-radius: 2px; background: #8FBFA7; }
.calc-rows i.c { background: #E2BE84; }
.calc-rows .r { color: #DDD6C8; font-size: 0.875rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-rows b { font-weight: 700; color: var(--white); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-rows > div.dim { opacity: 0.76; }
.calc-result > span:last-child { font-size: 0.925rem; line-height: 1.6; color: #EFEAE0; }
.cov-relief-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 14px; border-radius: var(--r-1); background: rgba(92, 189, 123, 0.16); border: 1px solid rgba(143, 191, 167, 0.5); color: #E8FAEE; font-size: 0.875rem; font-weight: 500; text-align: left; line-height: 1.4; transition: background 0.18s, border-color 0.18s; }
.cov-relief-btn:hover { background: rgba(92, 189, 123, 0.26); border-color: #9EE2B6; }
.cov-relief-btn strong { color: #FFFFFF; font-weight: 700; }
.cov-relief-btn .ic { width: 15px; height: 15px; flex: none; color: #9EE2B6; }
.cov-lrd-warn { padding: 10px 13px; border-radius: var(--r-1); background: rgba(217, 107, 79, 0.18); border: 1px solid rgba(235, 138, 112, 0.5); font-size: 0.85rem; line-height: 1.48; color: #FFEBE4; }
.cov-lrd-warn strong { color: #FFFFFF; font-weight: 700; }
.cov-quick-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.cov-act-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(245, 240, 232, 0.28); color: #F5F1E9; font-size: 0.85rem; font-weight: 600; transition: background 0.18s, border-color 0.18s; }
.cov-act-btn:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(245, 240, 232, 0.55); }
.cov-act-btn.accent { background: rgba(226, 190, 132, 0.2); border-color: rgba(226, 190, 132, 0.55); color: #FFF3D9; }
.cov-act-btn.accent:hover { background: rgba(226, 190, 132, 0.32); }
.cov-act-btn .ic { width: 15px; height: 15px; }
.ma-cap-tip { padding: 12px 14px; border-radius: var(--r-1); background: var(--sage); border: 1px solid rgba(45, 98, 79, 0.24); font-size: 0.875rem; line-height: 1.5; color: #193128; }
.ma-cap-tip strong { color: #0F231C; font-weight: 700; }
.ma-picker { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--r-2); background: rgba(10, 26, 20, 0.56); border: 1px solid rgba(226, 190, 132, 0.42); }
.ma-picker-k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #F5DEB3; }
.ma-search-wrap { position: relative; display: flex; gap: 8px; }
.ma-search-input { width: 100%; padding: 11px 14px; border-radius: var(--r-1); border: 1px solid rgba(245, 240, 232, 0.32); background: rgba(255, 255, 255, 0.96); color: #121C17; font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; }
.ma-search-input::placeholder { color: #5C6560; font-weight: 400; }
.ma-search-input:focus { outline: 2px solid var(--brass); border-color: var(--brass); }
.ma-clear-btn { flex: none; padding: 0 12px; border-radius: var(--r-1); border: 1px solid rgba(245, 240, 232, 0.34); background: rgba(255, 255, 255, 0.1); color: #F5F1E9; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.ma-clear-btn:hover { background: rgba(255, 255, 255, 0.2); }
.ma-brand-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ma-bchip { padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid rgba(245, 240, 232, 0.26); background: rgba(255, 255, 255, 0.08); color: #F2EFE7; font-size: 0.78125rem; font-weight: 600; transition: background 0.15s, border-color 0.15s; }
.ma-bchip:hover { background: rgba(226, 190, 132, 0.24); border-color: rgba(226, 190, 132, 0.6); color: #FFFFFF; }
.ma-results { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; padding-top: 4px; }
.ma-opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--r-1); background: rgba(255, 255, 255, 0.95); border: 1px solid transparent; text-align: left; color: #121C17; transition: border-color 0.15s, background 0.15s; }
.ma-opt:hover { background: #FFFFFF; border-color: var(--brass); }
.ma-opt-main { display: grid; gap: 2px; min-width: 0; }
.ma-opt-main strong { font-size: 0.875rem; font-weight: 700; color: #121C17; line-height: 1.25; }
.ma-opt-main small { font-size: 0.75rem; color: #4A5550; }
.ma-opt-moop { flex: none; text-align: right; font-size: 0.78125rem; font-weight: 700; color: var(--cypress); white-space: nowrap; }
.ma-selected-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-1); background: rgba(92, 189, 123, 0.18); border: 1px solid rgba(143, 191, 167, 0.55); color: #E8FAEE; }
.ma-selected-bar strong { display: block; font-size: 0.90625rem; color: #FFFFFF; }
.ma-selected-bar small { font-size: 0.78125rem; color: #D4F3DF; }
.ma-plan-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ma-pbadge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 700; background: rgba(255, 255, 255, 0.12); color: #F5F1E9; border: 1px solid rgba(245, 240, 232, 0.24); }
.ma-pbadge.good { background: rgba(92, 189, 123, 0.22); border-color: rgba(143, 191, 167, 0.55); color: #DCF8E6; }
.ma-pbadge.warn { background: rgba(226, 190, 132, 0.22); border-color: rgba(226, 190, 132, 0.55); color: #FFF1D2; }
.ma-appeal-mini { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-1); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(245, 240, 232, 0.22); font-size: 0.84375rem; color: #F0ECE3; }
.ma-appeal-mini a { color: #F5DEB3; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.sc-sync-note { padding: 10px 14px; border-radius: var(--r-1); background: var(--sage); border: 1px solid rgba(45, 98, 79, 0.22); font-size: 0.875rem; color: var(--cypress); font-weight: 500; }

/* No. 03 · Why stars are not enough */
.story { display: grid; grid-template-columns: 5fr 6fr; gap: 104px; align-items: center; }
.story-photo { position: relative; }
.story-photo::before { content: ""; position: absolute; left: 22px; right: -22px; top: 22px; height: calc(100% - 46px); border: 1px solid var(--bronze); border-radius: 2px; }
.story-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 58% 50%; border-radius: 2px; box-shadow: var(--e-2); }
.story-photo figcaption { position: relative; display: flex; align-items: center; gap: 12px; height: 46px; padding-top: 34px; margin-bottom: -22px; font-family: var(--serif); font-style: italic; font-size: 0.9375rem; line-height: 1.2; color: var(--ink-2); white-space: nowrap; }
.story-photo figcaption::before { content: ""; flex: none; width: 28px; height: 1px; background: var(--bronze); }
.story-copy { display: grid; gap: 28px; }
.pullquote { position: relative; font-family: var(--serif); font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.2; letter-spacing: -0.016em; }
.pullquote::before { content: "\201C"; display: block; height: 0.36em; margin: 0 0 0.16em -0.05em; font-size: 3em; line-height: 0.92; font-style: italic; color: var(--bronze); }
.pullquote span { font-style: italic; color: var(--bronze-ink); }
.vows { display: grid; border-top: 1px solid var(--rule-2); }
.vows li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.vow-no { font-family: var(--serif); font-style: italic; font-size: 1.375rem; line-height: 1; color: var(--bronze-ink); }
.vows strong { display: block; font-weight: 600; line-height: 1.4; }
.vows div span { display: block; margin-top: 2px; line-height: 1.55; color: var(--ink-2); }

/* Closing */
.closing { display: grid; grid-template-columns: 6fr 5fr; gap: 88px; align-items: center; }
.closing-copy { display: grid; gap: 24px; justify-items: start; }
.closing-photo { position: relative; }
.closing-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 2px; box-shadow: var(--e-2); }

/* Page heads (journey / clinicians) */
.band.page-head { padding: 88px 0 80px; border-bottom: 1px solid var(--rule); }
.page-head .wrap { display: grid; gap: 24px; }
.page-head-grid { grid-template-columns: 7fr 4fr; gap: 72px !important; align-items: end; }
.page-head-grid > div { display: grid; gap: 24px; }
.page-head-photo { position: relative; }
.page-head-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; box-shadow: var(--e-2); }

/* ============ 8 · EXPLORE ============ */
#view-explore.active { display: flex; flex-direction: column; height: calc(100dvh - var(--topbar-h)); overflow: hidden; background: var(--paper) var(--grain); }
.explore-bar { flex: none; position: relative; z-index: 30; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--rule); box-shadow: 0 12px 24px -22px rgba(21, 43, 35, 0.55); }
.xb-tools { display: grid; grid-template-columns: minmax(240px, 1.3fr) 204px minmax(200px, 1fr) 226px auto; gap: 10px; padding: 14px 24px 10px; }
.field { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: var(--r-1); background: var(--white); color: var(--ink-2); min-width: 0; transition: border-color 0.2s, box-shadow 0.25s, background 0.25s; }
.field:hover { border-color: var(--ink-3); }
.field:focus-within { border-color: var(--bronze-ink); box-shadow: var(--ring); }
.field > .ic { color: var(--bronze-ink); }
.field select, .field input { flex: 1; min-width: 0; height: 44px; border: 0; background-color: transparent; outline: none; font-size: 0.9375rem; font-weight: 500; color: var(--ink); text-overflow: ellipsis; }
.field select { white-space: nowrap; }
.field input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; width: 14px; height: 14px; margin-left: 8px; cursor: pointer; opacity: 0.6; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171411' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat; }
.field-origin .loc-input { height: 44px; font-size: 0.9375rem; }
.field-origin .loc-menu { left: -1px; top: calc(100% + 8px); }
.field-btn { font-size: 0.9375rem; font-weight: 600; color: var(--ink); white-space: nowrap; cursor: pointer; }
.field-btn > .ic { color: currentColor; }
.field-btn[aria-expanded="true"] { border-color: var(--cypress); background: var(--sage); }
.stage-pills { display: flex; gap: 6px; padding: 2px 24px 14px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding: 0 24px; }
.stage-pills::-webkit-scrollbar { display: none; }
.stage-pills.is-scroll { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.stage-pills.is-scroll.at-end { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(270deg, #000 calc(100% - 56px), transparent); }
.pill { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border: 1px solid var(--rule); border-radius: var(--r-pill); font-size: 0.84375rem; font-weight: 600; color: var(--ink-2); background: var(--white); white-space: nowrap; transition: border-color 0.25s, color 0.25s, background 0.3s var(--ease), box-shadow 0.3s, transform 0.2s; }
.pill:hover { border-color: var(--bronze-ink); color: var(--ink); }
.pill:active { transform: scale(0.97); }
.pill.active { background: var(--cypress); border-color: var(--cypress); color: var(--paper); box-shadow: 0 8px 16px -10px rgba(21, 43, 35, 0.8); }
.pill b { font-weight: 500; opacity: 0.66; }
.dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--c, var(--ink)); box-shadow: 0 0 0 1.5px var(--white); }
.dot.ring { background: var(--white); box-shadow: inset 0 0 0 2.5px var(--c); }
.needs-drawer { display: grid; gap: 14px; padding: 16px 24px 18px; border-top: 1px solid var(--rule); background: var(--paper); animation: menuIn 0.3s var(--ease-out); max-height: 62vh; overflow-y: auto; }
.needs-section { display: grid; gap: 8px; }
.needs-kicker { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--bronze-ink); }
.combo-row { display: flex; flex-wrap: wrap; gap: 7px; }
.combo-pill { padding: 6px 13px; border-radius: var(--r-pill); border: 1px solid rgba(164, 126, 82, 0.42); background: var(--white); font-size: 0.8125rem; font-weight: 600; color: var(--cypress); transition: background 0.18s, border-color 0.18s, color 0.18s; }
.combo-pill:hover { border-color: var(--cypress); background: var(--sage); }
.combo-pill.active { background: var(--cypress); border-color: var(--cypress); color: var(--white); }
.needs-grid { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.needs-foot { display: flex; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--rule-soft); }
.active-needs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 24px 10px; border-top: 1px solid var(--rule-soft); background: var(--paper-2); font-size: 0.8125rem; }
.active-needs-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-ink); margin-right: 4px; }
.need-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--cypress); color: var(--paper); font-size: 0.78125rem; font-weight: 600; }
.need-tag button { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: var(--paper); opacity: 0.8; }
.need-tag button:hover { opacity: 1; background: rgba(255, 255, 255, 0.18); }
.need-tag .ic { width: 11px; height: 11px; }
.fc-matched { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: var(--r-1); background: var(--sage); border: 1px solid rgba(9, 117, 83, 0.22); font-size: 0.8125rem; line-height: 1.4; color: var(--cypress); }
.fc-matched .ic { width: 15px; height: 15px; margin-top: 2px; flex: none; color: var(--st-LTACH); }
.fc-matched strong { font-weight: 600; }
.match-banner { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; background: var(--sage); border-bottom: 1px solid var(--rule); font-size: 0.9375rem; line-height: 1.5; }
.match-banner strong { font-weight: 600; }
.split { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(440px, 46%) 1fr; position: relative; }
.list-pane { overflow-y: auto; overscroll-behavior: contain; padding: 26px 24px 120px; scroll-behavior: smooth; }
.list-meta { display: grid; gap: 6px; margin-bottom: 20px; }
.list-count { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.016em; }
.list-count span { font-variant-numeric: tabular-nums lining-nums; }
.desk-note { display: flex; align-items: baseline; gap: 9px; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.desk-note::before { content: ""; position: relative; top: -1px; width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); flex: none; box-shadow: 0 0 0 3px rgba(164, 126, 82, 0.18); }
.desk-note.open::before { background: #2F9C6B; box-shadow: 0 0 0 3px rgba(47, 156, 107, 0.2); }
.desk-note:empty { display: none; }
.range-note { margin: 4px 0; padding: 10px 14px; background: var(--sage); border-left: 2px solid var(--cypress); border-radius: 0 var(--r-1) var(--r-1) 0; font-size: 0.875rem; font-weight: 500; line-height: 1.5; color: var(--cypress); }
.facility-list { display: grid; gap: 16px; }
.facility-list.stagger .fc { animation: cardIn 0.6s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.load-more { display: grid; place-items: center; padding: 28px 0 0; }

/* ============ 9 · FACILITY CARDS ============ */
.fc { position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-2); padding: 22px 24px 0; cursor: pointer; box-shadow: 0 1px 2px rgba(21, 43, 35, 0.03); transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s; }
.fc::before { content: ""; position: absolute; left: 24px; top: -1px; width: 32px; height: 3px; border-radius: 0 0 2px 2px; background: var(--stage, var(--bronze)); }
.fc::after { content: ""; position: absolute; left: -1px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px; background: var(--bronze); transform: scaleY(0); transform-origin: top; transition: transform 0.5s var(--ease-out); }
.fc:hover, .fc:focus-within, .fc.is-hot { transform: translateY(-2px); box-shadow: var(--e-2); border-color: rgba(164, 126, 82, 0.55); }
.fc:hover::after, .fc:focus-within::after, .fc.is-hot::after { transform: scaleY(1); }
.fc:active { transform: translateY(0); transition-duration: 0.12s; }
.fc:focus-visible { outline-offset: 2px; }
.fc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; row-gap: 6px; }
.stage-tag { display: inline-flex; align-items: center; gap: 9px; font-size: 0.6875rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.fc-drive { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.fc-drive .ic { width: 15px; height: 15px; color: var(--bronze-ink); }
.fc-drive em { font-style: normal; font-weight: 500; color: var(--ink-3); padding-left: 9px; margin-left: 3px; border-left: 1px solid var(--rule-2); }
.fc-name { font-family: var(--serif); font-weight: 600; font-size: 1.6875rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--cypress); margin-top: 10px; text-wrap: balance; transition: color 0.2s; }
.fc:hover .fc-name, .fc:focus-within .fc-name { color: #0C221A; }
.fc-loc { font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); margin-top: 4px; }
.fc-flag { display: inline-flex; align-items: center; gap: 6px; margin: 10px 6px 0 0; padding: 3px 10px; border-radius: var(--r-pill); background: var(--alert-wash); color: var(--alert); font-size: 0.8125rem; font-weight: 600; }
.fc-flag .ic { width: 14px; height: 14px; }
.fc-flag.note { background: var(--sage); color: var(--cypress); }

/* Telemetry ledger: three top-aligned cells, each value / label / context, so density stays even */
.tele { display: grid; grid-template-columns: calc((100% - 74px) / 3 + 14px) minmax(0, 1fr) minmax(0, 1fr); margin-top: 16px; border-top: 1px solid var(--rule); }
.tele-cell { display: grid; align-content: start; gap: 4px; padding: 14px 14px 14px 0; min-width: 0; }
.tele-cell + .tele-cell { padding-left: 16px; border-left: 1px solid var(--rule); }
.tele-val { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; min-height: 1.75rem; margin-bottom: 2px; }
.tele .kpi-num { font-size: 1.4375rem; font-weight: 500; line-height: 1.08; color: var(--ink); }
.tele .kpi-num.txt { font-size: 1.1875rem; line-height: 1.2; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tele .kpi-num.nr { font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; line-height: 1.3; letter-spacing: 0; color: var(--ink-3); }
.tele-label { font-size: 0.8125rem; font-weight: 600; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.tele-ctx { font-size: 0.75rem; line-height: 1.4; color: var(--ink-3); }
.tele-ctx:empty { display: none; }
.tele-ctx.drop { color: var(--bronze-ink); font-weight: 600; }
.stars { display: inline-flex; gap: 3px; vertical-align: middle; }
.stars svg { width: 14px; height: 14px; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 11px; border-radius: var(--r-pill); background: var(--paper); color: var(--ink-2); font-size: 0.8125rem; font-weight: 500; line-height: 1.3; }
.chip b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.chip .ic { width: 14px; height: 14px; }
.chip .stars svg { width: 12px; height: 12px; }
.chip.good { background: var(--sage); color: var(--cypress); }
.chip.good b { color: var(--cypress); }
.chip.warn { background: var(--alert-wash); color: var(--alert); }
.chip.warn b { color: var(--alert); }
.chip.mute { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.chip.verified { background: transparent; box-shadow: inset 0 0 0 1px rgba(164, 126, 82, 0.5); color: var(--bronze-ink); font-weight: 600; }
.chip.verified .ic { color: var(--bronze); stroke-width: 1.7; }
.svc { display: flex; flex-wrap: wrap; gap: 6px; }
.svc span { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 3px 11px; border-radius: var(--r-pill); background: var(--sage); color: var(--cypress); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.svc span.off { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--rule); text-decoration: line-through; font-weight: 500; }
.fc-foot { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--rule); }
.fc-act { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); transition: color 0.2s; }
.fc-act:hover { color: var(--ink); }
.fc-act.primary { color: var(--cypress); }
.fc-act .ic { width: 16px; height: 16px; }
.fc-act.primary .ic { color: var(--bronze-ink); transition: transform 0.4s var(--ease-out); }
.fc:hover .fc-act.primary .ic { transform: translateX(4px); }
.fc-act.save { margin-left: auto; }
.fc-act.save.saved { color: var(--bronze-ink); }
.fc-act.save.saved .ic { fill: var(--bronze); stroke: var(--bronze); }
.empty-state { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 64px 24px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-2); }
.empty-state p { color: var(--ink-2); max-width: 30em; text-wrap: pretty; }

/* Shared instruments: meters, position strips */
.meter { display: block; position: relative; height: 6px; border-radius: 3px; background: var(--paper-deep); }
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--cypress); transform-origin: left; animation: barIn 0.9s var(--ease) both; }
@keyframes barIn { from { transform: scaleX(0); } }
.meter-tick { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--bronze); box-shadow: 0 0 0 1.5px var(--white); }
.meter.ghost { background: none; box-shadow: inset 0 0 0 1px var(--rule); }

/* ============ 10 · MAP ============ */
.map-pane { position: relative; isolation: isolate; z-index: 1; background: var(--paper-deep); border-left: 1px solid var(--rule); }
.map-pane::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 14px 0 22px -18px rgba(21, 43, 35, 0.4); }
.dfw-map { position: absolute; inset: 0; background: #EDE6D9; z-index: 1; }
.leaflet-container { font-family: var(--sans); background: #EDE6D9; }
.leaflet-tile-pane { filter: sepia(0.42) saturate(0.5) brightness(1.05) contrast(0.92) hue-rotate(-6deg); }
.leaflet-control-zoom { border: 1px solid var(--rule) !important; border-radius: var(--r-2) !important; box-shadow: var(--e-1) !important; overflow: hidden; margin: 0 20px 28px 0 !important; }
.leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 38px !important; color: var(--ink) !important; background: rgba(255, 255, 255, 0.92) !important; font-weight: 400 !important; font-size: 20px !important; border-bottom-color: var(--rule) !important; transition: background 0.2s, color 0.2s; }
.leaflet-control-zoom a:hover { background: var(--cypress) !important; color: var(--paper) !important; }
.leaflet-control-attribution { background: rgba(245, 240, 232, 0.82) !important; font-size: 11px !important; color: var(--ink-3) !important; }
.leaflet-control-attribution a { color: var(--ink-2) !important; }
.leaflet-tooltip { border: 0; border-radius: var(--r-2); padding: 10px 14px; box-shadow: var(--e-3); color: var(--ink-2); font-size: 0.8125rem; line-height: 1.45; }
.leaflet-tooltip strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.0625rem; line-height: 1.25; color: var(--ink); }
.leaflet-tooltip-top::before { border-top-color: var(--white); }
.origin-pin-wrap { background: none; border: 0; }
.origin-pin { position: relative; width: 26px; height: 26px; border-radius: 6px; background: var(--cypress); border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--cypress), 0 6px 14px rgba(21, 43, 35, 0.4); display: grid; place-items: center; }
.origin-pin::before, .origin-pin::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--white); border-radius: 1px; }
.origin-pin::before { width: 10px; height: 2px; }
.origin-pin::after { width: 2px; height: 10px; }
.corridor-line { stroke-dasharray: 6 8; animation: corridor 1.1s linear infinite; }
@keyframes corridor { to { stroke-dashoffset: -28; } }
.radius-ring { animation: ringIn 0.9s var(--ease) both; }
@keyframes ringIn { from { opacity: 0; } }
.map-legend { position: absolute; left: 18px; top: 16px; bottom: auto; z-index: 2; display: flex; flex-wrap: wrap; max-width: calc(100% - 36px); gap: 6px 18px; padding: 9px 15px; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border: 1px solid rgba(255, 255, 255, 0.85); border-radius: var(--r-2); font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); box-shadow: 0 0 0 1px var(--rule), var(--e-1); }
body.has-dock .map-legend { top: 16px; bottom: auto; }
.map-legend > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.lgd { width: 11px; height: 11px; flex: none; border-radius: 50%; background: var(--ink-2); }
.lgd-ring { background: var(--white); box-shadow: inset 0 0 0 2.5px var(--ink-2); }
.lgd-origin { border-radius: 3px; background: var(--cypress); }
.lgd-radius { background: transparent; border: 1.5px dashed var(--bronze); }
.map-toggle { display: none; }

/* ============ 11 · DOCK, OVERLAYS, TOAST, WIZARD ============ */
.dock { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1500; display: flex; align-items: center; gap: 32px; padding: 14px 14px 14px 28px; background: var(--cypress); background-image: var(--grain-light); color: var(--paper); border: 1px solid rgba(201, 166, 113, 0.35); border-radius: var(--r-3); box-shadow: var(--e-3); max-width: calc(100vw - 32px); animation: dockIn 0.5s var(--ease-out); }
body:not(.is-explore) .dock { display: none; }
@keyframes dockIn { from { opacity: 0; transform: translate(-50%, 16px); } }
.dock-text { display: grid; }
.dock-text strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.2; }
.dock-text span { font-size: 0.875rem; color: rgba(245, 240, 232, 0.72); }
.dock-actions { display: flex; gap: 8px; }
.dock .btn { min-height: 44px; padding: 0 18px; }
.overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 22, 19, 0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 24px; overflow-y: auto; animation: fadeIn 0.3s ease; }
.overlay-drawer { display: flex; justify-content: flex-end; align-items: stretch; padding: 0; overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } }
.toast { position: fixed; left: 50%; top: 92px; transform: translateX(-50%); z-index: 3000; padding: 12px 20px; background: var(--ink); color: var(--paper); border-radius: var(--r-2); font-size: 0.9375rem; font-weight: 500; line-height: 1.45; box-shadow: var(--e-3); max-width: calc(100vw - 32px); text-align: center; animation: toastIn 0.35s var(--ease-out); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } }

.wizard { width: 100%; max-width: 760px; max-height: calc(100dvh - 32px); margin: auto; display: flex; flex-direction: column; overflow: hidden; background: var(--white); border-radius: var(--r-3); box-shadow: var(--e-3); padding: 24px 0 0; animation: riseIn 0.5s var(--ease-out); }
@keyframes riseIn { from { opacity: 0; transform: translateY(20px); } }
.wizard-top { flex: none; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; margin: 0 48px 20px; }
.wiz-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 200px; }
.wiz-progress i { height: 2px; border-radius: 1px; background: var(--rule); transition: background 0.4s; }
.wiz-progress i.on { background: var(--bronze); }
/* Heading and actions stay put; only the list of choices scrolls */
.wiz-step { display: none; min-height: 0; }
.wiz-step.active { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; animation: stepIn 0.45s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } }
.wiz-step > h2, .wiz-step > .body { flex: none; margin: 0 48px; }
.wiz-step > .body { margin-top: 12px; }
.wiz-tiles { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(23, 20, 17, 0.24) transparent; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 0 32px; margin: 20px 48px 0; border-top: 1px solid var(--rule-2); }
.wiz-tile { display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; gap: 16px; align-items: center; text-align: left; padding: 11px 4px; border-bottom: 1px solid var(--rule); transition: background 0.25s, padding 0.3s var(--ease); }
.wiz-tile > .ic { width: 22px; height: 22px; color: var(--bronze-ink); }
.wiz-tile strong { display: block; font-weight: 600; line-height: 1.3; }
.wiz-tile small { display: block; font-size: 0.875rem; color: var(--ink-2); line-height: 1.4; }
.wiz-tile .tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--rule-2); display: grid; place-items: center; transition: background 0.25s, border-color 0.25s; }
.wiz-tile .tick .ic { width: 12px; height: 12px; stroke-width: 2.5; color: var(--paper); opacity: 0; }
.wiz-tile:hover { background: var(--paper); }
.wiz-tile.active { background: var(--sage); padding-left: 12px; padding-right: 12px; }
.wiz-tile.active .tick { background: var(--cypress); border-color: var(--cypress); }
.wiz-tile.active .tick .ic { opacity: 1; }
#wizStep2 .wiz-tile { padding-top: 10px; padding-bottom: 10px; }
.wiz-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 16px 48px 20px; border-top: 1px solid var(--rule); background: var(--paper-2); }
.wiz-zip { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 48px; padding: 16px 4px 0; }
.wiz-zip label { font-size: 0.9375rem; font-weight: 600; }
.wiz-zip-note { font-size: 0.875rem; font-weight: 600; }
.wiz-zip-note.ok { color: var(--st-LTACH); }
.wiz-zip-note.err { color: var(--alert); }
.zip-input { flex: none; width: 60px; min-width: 0; height: auto; padding: 2px 0; border: 0; border-radius: 0; background: transparent; outline: none; font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.zip-input::placeholder { color: var(--ink-3); font-weight: 500; letter-spacing: 0.08em; }
.zip-input.boxed { width: 112px; min-height: 46px; padding: 10px 14px; border: 1px solid var(--rule-2); border-radius: var(--r-1); background: var(--white); transition: border-color 0.2s, box-shadow 0.25s; }
.zip-input.boxed:focus { border-color: var(--bronze-ink); box-shadow: var(--ring); }

/* ============ 12 · PROFILE SHEET ============ */
.sheet { --sheet-top-h: 300px; --sheet-foot-h: 76px; position: relative; width: min(760px, 100vw); max-width: 100vw; height: 100dvh; background: var(--white); display: flex; flex-direction: column; box-shadow: -30px 0 80px -30px rgba(15, 33, 26, 0.55); animation: sheetIn 0.55s var(--ease-out); }
@keyframes sheetIn { from { transform: translateX(48px); opacity: 0; } }
/* Frosted parchment header: floats over the scrolling dossier and condenses once you read on */
.sheet-top { position: absolute; left: 0; right: 0; top: 0; z-index: 3; background: rgba(245, 240, 232, 0.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--rule-2); transition: box-shadow 0.35s var(--ease); }
.sheet.condensed .sheet-top { box-shadow: 0 16px 30px -24px rgba(21, 43, 35, 0.6); }
.sheet-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tag close" "title title" "meta meta" "quick quick"; column-gap: 12px; row-gap: 10px; padding: 20px 40px 18px; min-width: 0; }
.sheet-head-top { display: contents; }
.sheet-head .stage-tag { grid-area: tag; align-self: center; align-items: flex-start; min-width: 0; line-height: 1.45; }
.sheet-head .stage-tag .dot { margin-top: 3px; }
.sheet-head .icon-btn { grid-area: close; margin: -4px -10px -4px 0; }
.sheet-head h2 { grid-area: title; min-width: 0; overflow-wrap: anywhere; }
.sheet-meta { grid-area: meta; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.sheet-quick { grid-area: quick; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sheet-quick:empty { display: none; }
.quick { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--rule-2); border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-size: 0.875rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color 0.2s, box-shadow 0.25s, background 0.2s, transform 0.25s var(--ease); }
.quick:hover { border-color: var(--bronze-ink); box-shadow: var(--e-1); transform: translateY(-1px); }
.quick:active { transform: translateY(0); }
.quick .ic { width: 16px; height: 16px; color: var(--bronze-ink); }
.quick.primary { background: var(--cypress); border-color: var(--cypress); color: var(--paper); }
.quick.primary:hover { background: var(--cypress-2); border-color: var(--cypress-2); }
.quick.primary .ic { color: var(--brass); }
.quick .ic.ext { width: 13px; height: 13px; margin-left: -2px; opacity: 0.8; }
.lbl-short, .quick .lbl-short { display: none; }
.sheet.condensed .sheet-head { grid-template-areas: "title close" "quick quick"; row-gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.sheet.condensed .sheet-head .stage-tag, .sheet.condensed .sheet-meta { display: none; }
.sheet.condensed .sheet-head h2 { align-self: center; font-size: 1.375rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet.condensed .sheet-quick { margin-top: 0; }
.sheet.condensed .quick { min-height: 34px; padding: 0 13px; font-size: 0.8125rem; }
.sheet-tabs { display: flex; gap: 28px; padding: 0 40px; overflow-x: auto; scrollbar-width: none; }
.sheet-tabs::-webkit-scrollbar { display: none; }
.sheet-tab { position: relative; flex: none; padding: 14px 0; font-size: 0.9375rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; transition: color 0.2s; }
.sheet-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out); }
.sheet-tab:hover, .sheet-tab.active { color: var(--ink); }
.sheet-tab.active::after { transform: scaleX(1); }
.sheet-body { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: var(--sheet-top-h) 40px calc(var(--sheet-foot-h) + 40px); scroll-padding: calc(var(--sheet-top-h) + 16px) 0 calc(var(--sheet-foot-h) + 16px); }
.sheet-body > section { padding: 36px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 20px; animation: stepIn 0.5s var(--ease-out) backwards; }
.sheet-body > section:last-child { border-bottom: 0; }
.sheet-body > section:nth-child(2) { animation-delay: 0.06s; }
.sheet-body > section:nth-child(3) { animation-delay: 0.12s; }
.sheet-body > section:nth-child(n + 4) { animation-delay: 0.18s; }
.sheet-body .subhead { margin-top: 8px; }
.sheet-body .subhead:first-child { margin-top: 0; }
.sheet-body .btn { max-width: 100%; white-space: normal; padding-top: 10px; padding-bottom: 10px; line-height: 1.3; text-align: left; }
.sec-head { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-soft); }
.sec-src { font-size: 0.72rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-ink); }
.sec-title { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.014em; color: var(--cypress); text-wrap: balance; }
.signal-card { display: grid; gap: 6px; padding: 16px 20px; background: #FAF8F3; border: 1px solid var(--rule); border-left: 3px solid var(--cypress); border-radius: var(--r-2); }
.signal-head { margin: 0; font-family: var(--sans); font-size: 1.03125rem; font-weight: 600; line-height: 1.42; color: #121C17; }
.signal-sub { margin: 0; font-family: var(--sans); font-size: 0.90625rem; font-weight: 400; line-height: 1.5; color: #36403B; }
.signal { font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1.52; padding: 14px 18px; background: #FAF8F3; border: 1px solid var(--rule); border-left: 3px solid var(--cypress); border-radius: var(--r-2); color: #151F1B; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.signal + .kpi-row { margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--rule); }
.kpi { display: grid; gap: 10px; align-content: start; padding-right: 16px; min-width: 0; }
.kpi + .kpi { padding-left: 24px; border-left: 1px solid var(--rule); }
.kpi .kpi-num.txt { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; }
.kpi .kpi-num.nr { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; line-height: 2.25rem; }
.kpi-sub { font-size: 0.875rem; color: var(--ink-3); margin-top: -6px; }
.telemetry { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.dial { display: grid; gap: 6px; justify-items: center; margin: 0; }
.gauge { width: 100%; height: auto; overflow: visible; }
.gauge .tk { stroke: var(--rule-2); stroke-width: 1; stroke-linecap: round; }
.gauge .tk.major { stroke: var(--ink-3); stroke-width: 1.25; }
.gauge .track { fill: none; stroke: var(--paper-deep); stroke-width: 9; stroke-linecap: round; }
.gauge .val { fill: none; stroke: var(--cypress); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 0 100; animation: gaugeIn 1.3s var(--ease-out) 0.15s forwards; }
@keyframes gaugeIn { to { stroke-dasharray: var(--v) 100; } }
.gauge .med-halo { stroke: var(--white); stroke-width: 6; stroke-linecap: round; }
.gauge .med { stroke: var(--bronze); stroke-width: 2.5; stroke-linecap: round; }
.gauge text { font-family: var(--sans); font-size: 11px; font-weight: 600; fill: var(--ink-3); font-variant-numeric: tabular-nums lining-nums; }
.gauge .num { font-family: var(--serif); font-size: 42px; font-weight: 400; fill: var(--ink); letter-spacing: -0.03em; }
.gauge .cap { font-size: 12px; fill: var(--ink-2); font-weight: 500; }
.dial-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); text-align: center; }
.dial-legend span:first-child { font-weight: 600; color: var(--bronze-ink); }
.dial-legend i { display: inline-block; width: 2px; height: 12px; margin-right: 7px; vertical-align: -2px; border-radius: 1px; background: var(--bronze); }
.dial-empty { display: grid; gap: 8px; align-content: center; padding: 22px 24px; background: var(--paper-2); border: 1px solid var(--rule); border-left: 3px solid var(--bronze); border-radius: var(--r-2); }
.dial-empty-k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-ink); }
.dial-empty strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: var(--ink); line-height: 1.25; }
.dial-empty p { margin: 0; font-size: 0.90625rem; line-height: 1.56; color: #2B302C; }
.omit-note { margin: 12px 0 0; font-size: 0.84375rem; line-height: 1.5; color: var(--ink-2); }
.dial-note { font-size: 0.9375rem; line-height: 1.6; color: #252926; padding-left: 16px; border-left: 2px solid var(--bronze); }
.kpi-stack { display: grid; }
.kpi-stack > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.kpi-stack > div:first-child { border-top: 1px solid var(--rule); }
.kpi-stack .kpi-num { font-size: 2rem; white-space: nowrap; }
.kpi-stack .kpi-num small { margin-left: 3px; font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; }
.kpi-stack .kpi-num.nr { font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.kpi-stack .kpi-label { text-align: left; flex: 1; }
.kpi-stack .kpi-label small { display: block; margin-top: 3px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); }
.rows { display: grid; border-top: 1px solid var(--rule); }
.rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.rows dt, .rows .k { color: var(--ink-2); }
.rows .v { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.rows .v a { color: var(--cypress); text-decoration: none; background: linear-gradient(var(--bronze), var(--bronze)) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; transition: color 0.2s; }
.rows .v a:hover { color: var(--bronze-ink); }
.rows .v a .ic { width: 13px; height: 13px; margin-left: 4px; vertical-align: -1px; color: var(--bronze-ink); }
.rows .v.nr { font-weight: 500; color: var(--ink-3); }
.rows .v.yes { display: inline-flex; align-items: center; gap: 6px; color: var(--st-LTACH); }
.rows .v.warn { color: var(--alert); }
.rows .v small { display: block; margin-top: 2px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); }
.note { font-size: 0.9375rem; line-height: 1.62; color: #1E2421; padding: 15px 18px; background: #FAF8F3; border: 1px solid var(--rule); border-left: 3px solid var(--bronze); border-radius: var(--r-1); text-wrap: pretty; }
.note.good { background: var(--sage); border-color: rgba(45, 98, 79, 0.22); border-left-color: var(--st-LTACH); color: var(--cypress); font-weight: 500; }
.info-list-card { display: grid; gap: 12px; padding: 18px 22px; background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--cypress); border-radius: var(--r-2); box-shadow: 0 1px 2px rgba(21, 43, 35, 0.03); }
.info-list-card.subtle { border-left-color: var(--bronze); }
.info-list-card ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.info-list-card li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.9375rem; line-height: 1.55; color: #222825; }
.info-list-card li .ic { width: 15px; height: 15px; margin-top: 4px; color: var(--cypress); }
.info-list-card.subtle li .ic { color: var(--bronze-ink); }
.info-list-card li strong { color: #111A16; font-weight: 600; }

/* Architectural Facility Dossier (verified official website & brochure records) */
.dossier { position: relative; display: grid; gap: 0; background: var(--white); border: 1px solid var(--rule); border-top: 2px solid var(--bronze); border-radius: var(--r-2); box-shadow: var(--e-1); overflow: hidden; }
.dossier-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 14px 24px; background: var(--paper) var(--grain); border-bottom: 1px solid var(--rule); }
.web-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-ink); }
.web-badge .ic { width: 16px; height: 16px; color: var(--bronze); }
.web-date { font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums lining-nums; }
.dossier-intro { padding: 20px 24px 18px; border-bottom: 1px solid var(--rule-soft); display: grid; gap: 6px; }
.dossier-operator { font-size: 0.78125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--bronze-ink); }
.dossier-beds-line { font-size: 0.875rem; font-weight: 500; line-height: 1.45; color: var(--ink-2); font-variant-numeric: tabular-nums lining-nums; }
.dossier-summary { margin: 4px 0 0; font-size: 0.96875rem; line-height: 1.62; color: var(--ink); text-wrap: pretty; }
.dossier-block { padding: 20px 24px; border-bottom: 1px solid var(--rule-soft); display: grid; gap: 16px; }
.dossier-block:last-of-type { border-bottom: 0; }
.dossier-kicker { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-ink); }
.dossier-stack { display: grid; gap: 22px; }
.dossier-sub { display: grid; gap: 12px; }
.dossier-stack > .dossier-sub + .dossier-sub { padding-top: 20px; border-top: 1px solid var(--rule-soft); }
.dossier-rooms-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 18px; border-bottom: 1px solid var(--rule-soft); }
.dossier-room-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dossier-room-pill { display: inline-flex; align-items: center; padding: 5px 13px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--rule); font-size: 0.84375rem; font-weight: 500; color: var(--ink); }
.dossier-staff-note { display: grid; gap: 6px; padding: 16px 18px; background: var(--paper-2); border: 1px solid var(--rule-soft); border-left: 2px solid var(--cypress); border-radius: 0 var(--r-1) var(--r-1) 0; }
.dossier-staff-note p { margin: 0; font-size: 0.90625rem; line-height: 1.62; color: var(--ink); }
.dossier-notes-stack { display: grid; gap: 10px; }
.dossier-note-box { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r-1); background: #FAF8F3; border: 1px solid var(--rule); border-left: 3px solid var(--bronze); }
.dossier-note-box p { margin: 0; font-size: 0.90625rem; line-height: 1.56; color: #222825; }
.dossier-ins-bar { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--rule-soft); }
.dossier-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.dossier-spec { display: grid; gap: 5px; align-content: start; }
.dossier-spec.full { grid-column: 1 / -1; }
.dossier-spec-k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.dossier-spec-v { font-size: 0.9375rem; line-height: 1.55; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.hours-list { display: grid; gap: 5px; margin-top: 2px; }
.hours-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 0.90625rem; line-height: 1.45; }
.hours-row.single { grid-template-columns: 1fr; }
.hours-day { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.hours-time { color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.dossier-checks { columns: 2; column-gap: 32px; }
.dossier-check { display: flex; align-items: flex-start; gap: 7px; break-inside: avoid; margin-bottom: 10px; font-size: 0.90625rem; line-height: 1.48; color: var(--ink); }
.dossier-check .ic { width: 14px; height: 14px; flex: none; margin-top: 4px; color: var(--cypress); }
.dossier-more-wrap { margin-top: 2px; }
.dossier-more-wrap summary { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--cypress); cursor: pointer; list-style: none; padding: 4px 0; }
.dossier-more-wrap summary::-webkit-details-marker { display: none; }
.dossier-more-wrap .dossier-checks { margin-top: 10px; }
.dossier-prose { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var(--ink); }
.dossier .sep { margin: 0 7px; color: var(--bronze); }
.dossier-lead-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.dossier-lead { padding: 12px 14px; background: var(--paper-2); border: 1px solid var(--rule-soft); border-radius: var(--r-1); display: grid; gap: 3px; align-content: start; }
.dossier-lead-role { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-ink); line-height: 1.3; }
.dossier-lead-name { font-family: var(--serif); font-size: 1.0625rem; color: var(--ink); line-height: 1.3; }
.dossier-accred { display: grid; gap: 8px; }
.dossier-accred-row { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.875rem; line-height: 1.45; color: var(--ink); }
.dossier-accred-row .ic { width: 15px; height: 15px; margin-top: 3px; color: var(--bronze); }
.dossier-block .rows { border-top: 0; }
.dossier-block .rows > div:first-child { padding-top: 2px; }
.dossier-block .rows > div:last-child { border-bottom: 0; padding-bottom: 2px; }
.dossier-updates { display: grid; gap: 8px; }
.dossier-update { padding-left: 12px; border-left: 2px solid var(--bronze-soft); font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }
.dossier-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; padding: 14px 24px; background: var(--paper-2); border-top: 1px solid var(--rule); }
.dossier-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dossier-foot .fineprint { flex: 1 1 220px; margin: 0; }

/* Violations & Inspection Ledger */
.viol-snap { display: grid; gap: 16px; padding: 20px 24px; background: var(--white); border: 1px solid var(--rule); border-top: 2px solid var(--cypress); border-radius: var(--r-2); box-shadow: var(--e-1); }
.viol-snap.has-harm { border-top-color: var(--alert); }
.viol-snap-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--rule-soft); }
.viol-stat { display: grid; gap: 2px; align-content: start; }
.viol-stat b { font-family: var(--serif); font-size: 1.625rem; font-weight: 400; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.viol-stat.warn b { color: var(--alert); }
.viol-stat span { font-size: 0.75rem; line-height: 1.3; color: var(--ink-3); }
.viol-key { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 11px 14px; background: var(--paper-2); border: 1px solid var(--rule-soft); border-radius: var(--r-1); font-size: 0.78125rem; color: var(--ink-2); }
.viol-key span { display: inline-flex; align-items: center; gap: 6px; }
.viol-key i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.viol-key i.ij { background: var(--alert); }
.viol-key i.harm { background: #C25A2C; }
.viol-key i.pot { background: var(--bronze); }
.viol-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.vpill { padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--rule); background: var(--white); font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); transition: background 0.16s, border-color 0.16s, color 0.16s; font-variant-numeric: tabular-nums lining-nums; }
.vpill:hover { border-color: var(--rule-2); color: var(--ink); }
.vpill.active { background: var(--cypress); border-color: var(--cypress); color: var(--white); }
.vpill.harm-pill.active { background: var(--alert); border-color: var(--alert); }
.vlist { display: grid; gap: 0; border-top: 1px solid var(--rule-2); }
.vcard { display: grid; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.vcard.sev-ij, .vcard.sev-harm { padding-left: 14px; border-left: 3px solid var(--alert); }
.vcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.vcard-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.vsev { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.vsev.ij { background: var(--alert); color: var(--white); }
.vsev.harm { background: var(--alert-wash); color: var(--alert); border: 1px solid rgba(154, 59, 38, 0.35); }
.vsev.pot { background: var(--paper); color: var(--bronze-ink); border: 1px solid rgba(164, 126, 82, 0.32); }
.vsev.min { background: var(--paper-2); color: var(--ink-3); border: 1px solid var(--rule); }
.vtag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--r-1); background: var(--paper-2); border: 1px solid var(--rule); font-size: 0.75rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums lining-nums; }
.vcomp { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--r-pill); background: #FDF3E7; color: #8A4A10; border: 1px solid rgba(138, 74, 16, 0.28); font-size: 0.72rem; font-weight: 600; }
.vdate { font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums lining-nums; }
.vcard-cat { font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.vcard-desc { margin: 0; font-size: 0.90625rem; line-height: 1.55; color: var(--ink-2); }
.vcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.78125rem; color: var(--ink-3); }
.vcard-pdf { display: inline-flex; align-items: center; gap: 4px; color: var(--cypress); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.vcard-pdf:hover { color: #0B2018; }
.vcard-pdf .ic { width: 12px; height: 12px; }
.hosp-scope-note { padding: 12px 16px; border-radius: var(--r-1); background: var(--paper-2); border: 1px solid var(--rule); border-left: 3px solid var(--bronze); font-size: 0.875rem; line-height: 1.5; color: #252926; }
.hosp-scope-note strong { color: var(--ink); font-weight: 600; }
.pen-list { display: grid; border-top: 1px solid var(--rule-2); }
.pen-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 0.875rem; }
.pen-row-main { display: grid; gap: 3px; min-width: 0; }
.pen-row-sub { font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); }
.pen-row strong { font-family: var(--serif); font-size: 1.125rem; font-weight: 500; color: var(--alert); font-variant-numeric: tabular-nums lining-nums; }
.viol-ext-bar { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.chip.alert { background: var(--alert-wash); border-color: rgba(154, 59, 38, 0.34); color: var(--alert); }

/* Dignified Patient & Family Reviews Module */
.reviews-card { display: grid; gap: 18px; padding: 22px 26px; background: var(--white); border: 1px solid var(--rule); border-top: 2px solid var(--bronze); border-radius: var(--r-2); box-shadow: var(--e-1); }
.reviews-lead { margin: 0; font-size: 0.96875rem; line-height: 1.62; color: #252926; }
.reviews-tips { display: grid; gap: 10px; padding: 16px 18px; background: var(--paper-2); border: 1px solid var(--rule-soft); border-radius: var(--r-1); }
.reviews-tips-k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-ink); }
.reviews-tips ul { display: grid; gap: 9px; }
.reviews-tips li { display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 9px; align-items: start; font-size: 0.90625rem; line-height: 1.56; color: #252926; }
.reviews-tips li .ic { width: 13px; height: 13px; margin-top: 3px; color: var(--cypress); }
.reviews-tips strong { color: var(--ink); font-weight: 600; }
.reviews-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Medicare Advantage & 48-Hr Appeal Card (Section No. 02) */
.med-mode-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 36px; }
.med-mode-copy { display: grid; gap: 8px; max-width: 36em; }
.med-mode-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(245, 240, 232, 0.2); }
.med-mode-btn { padding: 10px 18px; border-radius: var(--r-pill); font-size: 0.875rem; font-weight: 600; color: rgba(245, 240, 232, 0.82); transition: background 0.22s, color 0.22s; }
.med-mode-btn:hover { color: var(--white); }
.med-mode-btn.active { background: var(--paper); color: var(--cypress); box-shadow: var(--e-1); }
.med-ma-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 36px 48px; align-items: start; }
.med-ma-grid[hidden], .medicare-grid[hidden] { display: none; }
.ma-facts { display: grid; gap: 20px; }
.title.on-dark { color: var(--paper); }
.lede.on-dark { color: rgba(245, 240, 232, 0.84); }
.ma-stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px 0; border-top: 1px solid rgba(245, 240, 232, 0.16); border-bottom: 1px solid rgba(245, 240, 232, 0.16); }
.ma-stat { display: grid; gap: 4px; align-content: start; }
.ma-stat b { font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1; color: var(--brass); font-variant-numeric: tabular-nums lining-nums; }
.ma-stat span { font-size: 0.8125rem; line-height: 1.4; color: rgba(245, 240, 232, 0.8); }
.ma-tx-notes { display: grid; gap: 10px; font-size: 0.90625rem; line-height: 1.55; color: rgba(245, 240, 232, 0.84); }
.ma-tx-notes p { margin: 0; }
.ma-tx-notes strong { color: var(--paper); font-weight: 600; }
.appeal-card { display: grid; gap: 18px; padding: 30px 32px; background: var(--paper) var(--grain); color: var(--ink); border-radius: var(--r-3); border: 1px solid rgba(201, 166, 113, 0.45); box-shadow: var(--e-3); }
.appeal-card .calc-tag { color: var(--bronze-ink); }
.appeal-card .title { font-size: 1.5rem; line-height: 1.24; color: var(--ink); }
.appeal-body { margin: 0; font-size: 0.96875rem; line-height: 1.64; color: #252926; }
.appeal-phone { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r-2); background: var(--cypress); color: var(--paper); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.appeal-phone:hover { transform: translateY(-1px); box-shadow: var(--e-2); }
.appeal-phone .ic { width: 22px; height: 22px; color: var(--brass); flex: none; }
.appeal-phone span { display: grid; gap: 3px; }
.appeal-phone strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.1; color: var(--white); letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; }
.appeal-phone small { font-size: 0.8125rem; line-height: 1.4; color: rgba(245, 240, 232, 0.86); }
.appeal-steps { display: grid; gap: 11px; }
.appeal-steps li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.9375rem; line-height: 1.58; color: #252926; }
.appeal-steps li .ic { width: 15px; height: 15px; margin-top: 4px; color: var(--cypress); }
.appeal-steps strong { color: var(--ink); }
.needs-cov-note { margin: 0; font-size: 0.875rem; line-height: 1.58; color: #2E3330; max-width: 78ch; }
.needs-cov-note strong { color: var(--ink); }
.fc-drive.serves { color: var(--st-LTACH); font-weight: 600; }
.fc-drive.serves .ic { color: var(--st-LTACH); }
.call-appeal-box { display: grid; gap: 8px; padding: 18px 20px; background: var(--paper-2); border: 1px solid rgba(164, 126, 82, 0.35); border-left: 3px solid var(--bronze); border-radius: 0 var(--r-2) var(--r-2) 0; font-size: 0.9375rem; line-height: 1.6; color: #252926; }
.call-appeal-box strong { color: var(--ink); }
.call-appeal-box a { color: var(--cypress); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
/* All-Settings Insurance & Days Covered Translator (First-Class Pillar + Home Preview) */
.cov-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.cov-head { display: grid; gap: 10px; max-width: 44em; margin-bottom: 28px; }
.cov-mount { display: grid; gap: 28px; }
.cov-step-k { font-size: 0.78125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #E8CE9B; margin-bottom: 12px; display: block; }
/* Step 1: Visual Wallet Cards */
.wallet-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.wallet-card { position: relative; overflow: hidden; min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 5px; padding: 18px 15px 14px; border-radius: var(--r-2); background: rgba(255, 255, 255, 0.085); border: 1px solid rgba(245, 240, 232, 0.24); color: #F5F0E8; transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.wallet-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; }
.wallet-card[data-wcard="trad"]::before { background: linear-gradient(90deg, #B83A3A 0 33.3%, #F5F0E8 33.3% 66.6%, #244F8C 66.6% 100%); }
.wallet-card[data-wcard="medigap"]::before { background: linear-gradient(90deg, #B83A3A 0 25%, #244F8C 25% 50%, #C9A671 50% 100%); }
.wallet-card[data-wcard="ma"]::before { background: #3A7BC0; }
.wallet-card[data-wcard="medicaid"]::before { background: #D49B38; }
.wallet-card[data-wcard="commercial"]::before { background: #36A08E; }
.wallet-card:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(245, 240, 232, 0.42); transform: translateY(-2px); }
.wallet-card.active { background: #FAF7F1; color: var(--ink); border-color: var(--brass); box-shadow: 0 0 0 2px rgba(201, 166, 113, 0.55), var(--e-2); }
.wallet-card strong { font-size: 0.96875rem; font-weight: 700; line-height: 1.24; color: var(--white); }
.wallet-card small { font-size: 0.8125rem; line-height: 1.38; color: rgba(248, 244, 236, 0.88); }
.wcard-tag { margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(245, 240, 232, 0.14); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; color: #E8CE9B; line-height: 1.3; }
.wallet-card.active strong { color: var(--cypress); }
.wallet-card.active small { color: var(--ink); }
.wallet-card.active .wcard-tag { border-top-color: var(--rule); color: var(--bronze-ink); }
/* Step 2: Visual Care-Line Transit Map */
.careline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; position: relative; }
.careline-stop { position: relative; overflow: hidden; min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 15px 15px 14px; border-radius: var(--r-2); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(245, 240, 232, 0.22); color: #F5F0E8; transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s; }
.careline-stop:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(245, 240, 232, 0.4); transform: translateY(-1px); }
.careline-stop.active { background: #FAF7F1; color: var(--ink); border-color: var(--brass); box-shadow: 0 0 0 2px rgba(201, 166, 113, 0.55), var(--e-2); }
.careline-head { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.careline-no { font-family: var(--serif); font-style: italic; font-size: 0.9375rem; color: #E8CE9B; font-weight: 600; flex: none; }
.careline-stop.active .careline-no { color: var(--bronze-ink); }
.careline-stop strong { font-size: 0.96875rem; font-weight: 700; color: var(--white); line-height: 1.24; }
.careline-stop small { font-size: 0.8125rem; line-height: 1.38; color: rgba(248, 244, 236, 0.86); margin-bottom: 4px; }
.careline-pill { margin-top: auto; width: fit-content; max-width: 100%; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.15); color: var(--white); line-height: 1.2; }
.careline-pill.shared { background: rgba(226, 190, 132, 0.24); color: #F5DEB3; }
.careline-pill.free { background: rgba(92, 189, 123, 0.24); color: #B4F2C7; }
.careline-pill.gate { background: rgba(227, 130, 102, 0.26); color: #FFD0C2; }
.careline-stop.active .careline-pill { background: var(--cypress-wash); color: var(--cypress); }
.careline-stop.active .careline-pill.shared { background: #F3E8D3; color: #6E4E1B; }
.careline-stop.active .careline-pill.free { background: #E3F3E8; color: #195E36; }
.careline-stop.active .careline-pill.gate { background: #FCE9E3; color: #8F321E; }
.careline-stop.active strong { color: var(--cypress); }
.careline-stop.active small { color: var(--ink-2); }
/* Five Things Plain-English Family Guide (Calm Single-Column Editorial List + Expandable Clinician Details) */
.plain-rules { display: grid; max-width: 820px; border-top: 1.5px solid var(--ink); }
.prule { padding: 30px 0; border-bottom: 1px solid var(--rule); }
.prule-head { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; align-items: start; }
.prule-num { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.25; color: var(--bronze-ink); }
.prule-main { display: grid; gap: 12px; }
.prule-main h3 { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 400; line-height: 1.22; letter-spacing: -0.014em; color: var(--ink); }
.prule-main > p { margin: 0; font-size: 1.03125rem; line-height: 1.68; color: #2B3430; }
.prule-main strong { color: var(--ink); font-weight: 700; }
.prule-do { padding: 14px 18px; border-radius: var(--r-2); background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--cypress); font-size: 0.96875rem !important; line-height: 1.58 !important; color: var(--ink) !important; }
.prule-do strong { color: var(--cypress); }
.prule-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 2px; }
.prule-phone { display: grid; gap: 3px; padding: 14px 18px; border-radius: var(--r-2); background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--cypress); text-decoration: none; transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s; }
.prule-phone:hover { border-color: var(--cypress); transform: translateY(-1px); box-shadow: var(--e-1); }
.prule-phone strong { font-size: 1.125rem; color: var(--cypress); letter-spacing: 0.01em; }
.prule-phone span { font-size: 0.875rem; color: #36403B; }
.prule-more { margin-top: 2px; }
.prule-more summary { display: inline-flex; align-items: center; gap: 6px; font-size: 0.84375rem; font-weight: 600; color: var(--ink-2); cursor: pointer; list-style: none; padding: 4px 0; transition: color 0.18s; }
.prule-more summary::-webkit-details-marker { display: none; }
.prule-more summary::after { content: "▾"; font-size: 0.9em; color: var(--bronze-ink); transition: transform 0.2s; }
.prule-more[open] summary::after { transform: rotate(180deg); }
.prule-more summary:hover { color: var(--cypress); }
.prule-more p { margin: 10px 0 0; padding: 16px 18px; border-radius: var(--r-1); background: rgba(255, 255, 255, 0.82); border: 1px solid var(--rule-soft); font-size: 0.90625rem; line-height: 1.62; color: #252926; }
.cov-controls { display: grid; gap: 14px; padding: 18px 20px; margin-bottom: 32px; border-radius: var(--r-3); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(245, 240, 232, 0.14); }
.cov-ctrl-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 18px; align-items: center; }
.cov-ctrl-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.cov-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cov-pill { padding: 8px 15px; border-radius: var(--r-pill); font-size: 0.84375rem; font-weight: 600; color: rgba(245, 240, 232, 0.84); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(245, 240, 232, 0.16); transition: background 0.18s, color 0.18s, border-color 0.18s; }
.cov-pill:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.cov-pill.active { background: var(--paper); color: var(--cypress); border-color: var(--paper); box-shadow: var(--e-1); }
.cov-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 36px 48px; align-items: start; }
.cov-left { display: grid; gap: 20px; align-content: start; }
.cov-left .lede.on-dark { font-size: 1.03125rem; line-height: 1.65; color: #F5F1E9; }
.cov-left .lede.on-dark strong { color: var(--white); font-weight: 700; }
.cov-clock-tag { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 13px; border-radius: var(--r-pill); background: rgba(226, 190, 132, 0.22); border: 1px solid rgba(226, 190, 132, 0.5); font-size: 0.78125rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #F5DEB3; }
.cov-bullets { display: grid; gap: 12px; margin: 2px 0 4px; padding: 0; list-style: none; }
.cov-bullets li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.96875rem; line-height: 1.62; color: #F2EFE7; max-width: 54ch; }
.cov-bullets li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #E2BE84; margin-top: 10px; }
.cov-bullets strong { color: var(--white); font-weight: 600; }
.cov-ask-box { display: grid; gap: 12px; padding: 20px 22px; border-radius: var(--r-2); background: rgba(10, 26, 20, 0.52); border: 1px solid rgba(245, 240, 232, 0.22); border-left: 3px solid #E2BE84; }
.cov-ask-k { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #F2D8A7; }
.cov-ask-box ul { display: grid; gap: 11px; }
.cov-ask-box li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.95rem; line-height: 1.6; color: #F4F1E8; }
.cov-ask-box li .ic { width: 15px; height: 15px; margin-top: 4px; color: #E8CE9B; }
.cov-ask-box strong { color: var(--white); font-weight: 600; }
.cov-sliders { display: grid; gap: 20px; }
.cov-slider-row { display: grid; gap: 10px; }
.cov-slider-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cov-slider-head .kpi-label { color: #F5F1E9; font-size: 0.96875rem; font-weight: 500; }
.cov-slider-head .kpi-num { font-size: 1.875rem; color: var(--white); white-space: nowrap; }
.cov-slider-head .kpi-num small { font-size: 0.90625rem; font-family: var(--sans); color: rgba(245, 240, 232, 0.84); margin-left: 3px; }
.cov-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 9px 0; border-radius: 999px; background: linear-gradient(to right, var(--brass) 0%, var(--brass) var(--pct, 50%), rgba(245, 240, 232, 0.2) var(--pct, 50%), rgba(245, 240, 232, 0.2) 100%); outline: none; cursor: grab; touch-action: pan-y; }
.cov-range:active { cursor: grabbing; }
.cov-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #FFFFFF, #F3EBDD 58%, #DACDB6); border: 1px solid rgba(21, 43, 35, 0.55); box-shadow: 0 0 0 3px var(--brass), 0 6px 14px rgba(0, 0, 0, 0.45); cursor: grab; transition: box-shadow 0.2s, transform 0.14s var(--ease-out); }
.cov-range:hover::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--brass), 0 0 0 8px rgba(201, 166, 113, 0.22), 0 6px 14px rgba(0, 0, 0, 0.45); }
.cov-range:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.08); }
.cov-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--brass), 0 0 0 8px rgba(201, 166, 113, 0.4), 0 6px 14px rgba(0, 0, 0, 0.45); }
.cov-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #FFFFFF, #F3EBDD 58%, #DACDB6); border: 1px solid rgba(21, 43, 35, 0.55); box-shadow: 0 0 0 3px var(--brass), 0 6px 14px rgba(0, 0, 0, 0.45); cursor: grab; }
.cov-clock-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: rgba(255, 255, 255, 0.12); gap: 2px; }
.cov-clock-bar .seg-hosp { background: rgba(245, 240, 232, 0.55); }
.cov-clock-bar .seg-free { background: #5CBD7B; }
.cov-clock-bar .seg-coin { background: var(--brass); }
.cov-clock-bar .seg-lrd { background: #D96B4F; }
.cov-clock-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8125rem; color: rgba(245, 240, 232, 0.92); }
.cov-clock-key span { display: inline-flex; align-items: center; gap: 6px; }
.cov-clock-key i { width: 9px; height: 9px; border-radius: 2px; }
.cov-clock-key .k-hosp { background: rgba(245, 240, 232, 0.55); }
.cov-clock-key .k-free { background: #5CBD7B; }
.cov-clock-key .k-coin { background: var(--brass); }
.cov-clock-key .k-lrd { background: #D96B4F; }
.cov-paper-list { display: grid; gap: 16px; border-top: 1px solid var(--rule); padding-top: 16px; }
.cov-paper-row { display: grid; gap: 5px; padding-bottom: 16px; border-bottom: 1px solid var(--rule-soft); }
.cov-paper-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cov-paper-row strong { font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.cov-paper-row span { font-size: 0.9375rem; line-height: 1.62; color: #252926; }
.cov-paper-row span strong { font-size: inherit; font-weight: 600; color: var(--ink); }
/* Profile quick coverage card (3-tab switcher — zero 3-paragraph walls) */
.cov-quick { display: grid; gap: 18px; padding: 22px 24px; background: var(--white); border: 1px solid var(--rule); border-top: 2px solid var(--cypress); border-radius: var(--r-2); box-shadow: var(--e-1); }
.cov-q-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--paper-2); border: 1px solid var(--rule-soft); border-radius: var(--r-pill); }
.cov-q-tab { padding: 8px 10px; border: 0; border-radius: var(--r-pill); background: transparent; font-size: 0.84375rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background 0.18s, color 0.18s, box-shadow 0.18s; }
.cov-q-tab:hover { color: var(--ink); }
.cov-q-tab.active { background: var(--cypress); color: var(--white); box-shadow: var(--e-1); }
.cov-q-body { display: grid; gap: 10px; }
.cov-q-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-ink); }
.cov-q-head { font-family: var(--serif); font-size: 1.375rem; font-weight: 400; line-height: 1.25; color: var(--ink); }
.cov-q-pts { display: grid; gap: 10px; margin: 2px 0 0; padding: 0; list-style: none; }
.cov-q-pts li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.9375rem; line-height: 1.58; color: #252926; }
.cov-q-pts li .ic { width: 15px; height: 15px; margin-top: 4px; color: var(--cypress); }
.cov-q-pts a { color: var(--cypress); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cov-quick-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--rule-soft); }
@media (max-width: 960px) {
  .wallet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .careline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .careline-stop:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .prule-head { grid-template-columns: 1fr; gap: 6px; }
  .prule-phones { grid-template-columns: 1fr; }
  .cov-grid { grid-template-columns: 1fr; gap: 28px; }
  .cov-ctrl-row { grid-template-columns: 1fr; gap: 6px; }
  .ma-stat-row { grid-template-columns: 1fr; gap: 12px; }
}

.cites { display: grid; }
.cite { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--rule); }
.cite-when { display: grid; gap: 6px; align-content: start; font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.sev { width: fit-content; padding: 2px 9px; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 600; background: var(--paper); color: var(--ink-2); }
.sev.high { background: var(--alert-wash); color: var(--alert); }
.cite-what { display: grid; gap: 4px; }
.cite-what p { line-height: 1.5; }
.cite-what small { font-size: 0.8125rem; color: var(--ink-3); }
.cite.resp { border-left: 2px solid var(--alert); padding-left: 16px; margin-left: -18px; }
details.raw { border-top: 1px solid var(--rule); }
details.raw summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; font-weight: 600; font-size: 0.9375rem; cursor: pointer; list-style: none; }
details.raw summary::-webkit-details-marker { display: none; }
details.raw summary .ic { transition: transform 0.3s var(--ease); }
details.raw[open] summary .ic { transform: rotate(180deg); }
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; gap: 6px; }
.bar-row > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 0.9375rem; line-height: 1.4; }
.bar-row b { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.bar-row b small { display: inline-block; min-width: 2.6em; margin-left: 10px; text-align: right; font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); }
.bar-track { height: 6px; background: var(--paper-deep); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--cypress); border-radius: 3px; transform-origin: left; animation: barIn 0.9s var(--ease) both; }
.script { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; padding: 24px 28px; background: var(--sage); border-left: 2px solid var(--cypress); border-radius: 0 var(--r-2) var(--r-2) 0; text-wrap: pretty; }
.call-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.call-phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; color: var(--ink); text-decoration: none; }
.call-phone .ic { width: 20px; height: 20px; color: var(--bronze-ink); }
.checklist { display: grid; border-top: 1px solid var(--rule); }
.checklist .check { align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; font-weight: 400; line-height: 1.5; }
.checklist .check input { margin-top: 3px; }
.checklist .check input:checked + span { color: var(--ink-3); text-decoration: line-through; }
.mini-path { display: grid; grid-template-columns: repeat(7, 1fr); position: relative; padding-top: 6px; }
.mini-path::before { content: ""; position: absolute; left: 7.14%; right: 7.14%; top: 12px; height: 1px; background: var(--rule-2); }
.mini-path span { position: relative; display: grid; gap: 10px; justify-items: center; text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--ink-3); line-height: 1.25; }
.mini-path span::before { content: ""; width: 13px; height: 13px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--rule-2); }
.mini-path span.here { color: var(--ink); }
.mini-path span.here::before { background: var(--bronze); border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(164, 126, 82, 0.2); }
.mini-path span.next { color: var(--cypress); }
.mini-path span.next::before { border-color: var(--cypress); border-width: 2px; }
/* Frosted action bar */
.sheet-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 40px; border-top: 1px solid var(--rule-2); background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); box-shadow: 0 -16px 30px -26px rgba(21, 43, 35, 0.6); }
.sheet-foot .btn-row { flex: none; flex-wrap: nowrap; gap: 8px; }
.sheet-foot .btn { min-height: 46px; padding: 0 16px; gap: 9px; }
.sheet-foot.tight #profGroupTextBtn { width: 46px; padding: 0; flex: none; }
.sheet-foot.tight #profGroupTextBtn span { display: none; }
.sheet-foot .btn-primary .ic { color: var(--brass); }
.sheet-foot .btn:hover .ic { transform: none; }
.ext-links { display: flex; align-items: center; gap: 12px; flex: none; }
.ext-links a { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.ext-links a:hover { color: var(--bronze-ink); }
.ext-links .ic { width: 12px; height: 12px; color: var(--bronze-ink); }

/* Dossier instruments */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.kpi-grid .kpi { padding: 20px 16px 20px 20px; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); gap: 9px; }
.kpi-grid .kpi:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.kpi-grid.two { grid-template-columns: 1fr 1fr; }
.kpi-grid.two .kpi:nth-child(n) { padding-left: 20px; border-left: 1px solid var(--rule); }
.kpi-grid.two .kpi:nth-child(odd) { padding-left: 0; border-left: 0; }
.kpi-grid .kpi-num { font-size: 2rem; }
.kpi-grid .kpi .kpi-num.txt { display: inline-flex; align-items: center; gap: 8px; font-size: 1.1875rem; line-height: 1.25; }
.kpi-grid .kpi .kpi-num.txt .ic { width: 18px; height: 18px; color: var(--st-LTACH); }
.kpi-grid .kpi .kpi-num.nr { font-size: 0.9375rem; line-height: 2rem; }
.kpi-grid .kpi-sub { margin-top: -4px; font-size: 0.8125rem; }
.kpi-cms { font-size: 0.8125rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.kpi-cms.good, .tone.good { color: var(--st-LTACH); }
.kpi-cms.warn, .tone.warn { color: var(--alert); }
.pos { display: block; position: relative; height: 12px; }
.pos::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 999px; background: var(--paper-deep); }
.pos-m { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--bronze); }
.pos-d { position: absolute; top: 1px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--cypress); box-shadow: 0 0 0 2px var(--white); animation: posIn 0.9s var(--ease) backwards; }
@keyframes posIn { from { left: 0; opacity: 0; } }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; }
.legend span:last-child:not(:first-child):not(:nth-child(2)) { color: var(--ink-3); }
.lg-fill { width: 16px; height: 6px; margin-right: 8px; border-radius: 3px; background: var(--cypress); }
.lg-tick { width: 2px; height: 12px; margin-right: 8px; border-radius: 1px; background: var(--bronze); }
.mrows { display: grid; gap: 20px; }
.mrow { display: grid; gap: 9px; }
.mrow-head { display: flex; align-items: baseline; gap: 12px; }
.mrow-head > span { flex: 1; min-width: 0; font-size: 0.9375rem; font-weight: 500; line-height: 1.35; }
.mrow-head small { flex: none; font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.mrow-head b { flex: none; min-width: 3.4em; text-align: right; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.mrow-head b.nr { font-family: var(--sans); font-size: 0.875rem; font-weight: 500; color: var(--ink-3); }
.mrow .meter { height: 8px; border-radius: 4px; }
.mrow .meter-fill { border-radius: 4px; }
.mrow:nth-child(2) .meter-fill { animation-delay: 0.06s; }
.mrow:nth-child(3) .meter-fill { animation-delay: 0.12s; }
.mrow:nth-child(4) .meter-fill { animation-delay: 0.18s; }
.mrow:nth-child(5) .meter-fill { animation-delay: 0.24s; }
.mrow:nth-child(6) .meter-fill { animation-delay: 0.3s; }
.sir-list { display: grid; border-top: 1px solid var(--rule); }
.sir-row { display: grid; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.sir-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sir-head strong { font-size: 1rem; font-weight: 600; color: var(--ink); }
.sir-head span.nr { font-size: 0.875rem; font-weight: 500; color: var(--ink-3); }
.sir-pill { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.sir-pill.good { background: #E4F2EA; color: #16593C; }
.sir-pill.mid { background: var(--paper-2); color: #2B302C; border: 1px solid var(--rule); }
.sir-pill.warn { background: #FBE9E3; color: #96361D; }
.sir-explain { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 0.9375rem; color: #252926; line-height: 1.45; }
.sir-explain small { font-size: 0.78125rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.sir-meter { display: grid; gap: 6px; padding-top: 2px; }
.sir-bar { position: relative; height: 9px; border-radius: 999px; background: linear-gradient(90deg, #89C9A5 0%, #CEE5D6 32%, #E8E1D4 50%, #F0C7B9 68%, #DF9B86 100%); }
.sir-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--bronze-ink); }
.sir-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--cypress); border: 2px solid var(--white); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22); }
.sir-dot.good { background: #1B6B48; }
.sir-dot.warn { background: #B03E22; }
.sir-scale { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 500; color: var(--ink-2); }
.star-strip { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.star-cell { display: grid; gap: 10px; align-content: space-between; padding: 16px 14px 18px; min-width: 0; }
.star-cell + .star-cell { border-left: 1px solid var(--rule); }
.star-cell:first-child { padding-left: 0; }
.star-cell .kpi-label { font-size: 0.8125rem; min-height: 2.2em; }
.star-cell .kpi-num { font-size: 1.875rem; }
.star-cell.lead .kpi-num { font-size: 2.5rem; }
.star-cell .kpi-num.nr { font-family: var(--sans); font-size: 0.875rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; line-height: 1.875rem; }
.pips { display: flex; gap: 3px; }
.pips i { flex: 1; height: 4px; border-radius: 2px; background: var(--paper-deep); }
.pips i.on { background: var(--bronze); }
.mix { display: grid; gap: 14px; }
.mix-bar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; }
.mix-bar i { height: 100%; transform-origin: left; animation: barIn 0.9s var(--ease) both; }
.mix-bar .a, .mix-key .a { background: var(--cypress); }
.mix-bar .b, .mix-key .b { background: var(--bronze); }
.mix-bar .c, .mix-key .c { background: var(--paper-deep); }
.mix-key { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.9375rem; color: var(--ink-2); }
.mix-key span { display: inline-flex; align-items: center; gap: 8px; }
.mix-key i { width: 10px; height: 10px; border-radius: 2px; }
.mix-key b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.team { display: grid; border-top: 1px solid var(--rule); }
.team-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(90px, 1fr) 76px; gap: 18px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.team-role strong { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.team-role small { display: block; margin-top: 2px; font-size: 0.8125rem; color: var(--ink-3); line-height: 1.4; font-variant-numeric: tabular-nums lining-nums; }
.team-val { text-align: right; }
.team-val b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.team-val.nr { font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); }
/* Weekday / weekend staffing bars */
.rhythm-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 32px; align-items: end; }
.rhythm { display: block; width: 100%; height: auto; overflow: visible; }
.rhythm text { font-family: var(--sans); fill: var(--ink-2); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.rhythm .v { font-family: var(--serif); font-size: 26px; font-weight: 400; fill: var(--ink); letter-spacing: -0.02em; }
.rhythm .u { font-family: var(--sans); font-size: 12px; font-weight: 500; fill: var(--ink-3); letter-spacing: 0; }
.rhythm .h { font-size: 13px; fill: var(--ink); }
.rhythm .wk { fill: var(--cypress); }
.rhythm .we { fill: var(--bronze); }
.rhythm .base { stroke: var(--rule-2); stroke-width: 1; }
.rhythm .ghost { fill: none; stroke: var(--rule-2); stroke-dasharray: 2 3; }
.rhythm .drop { stroke: var(--bronze); stroke-width: 1; stroke-dasharray: 2 3; }
.rhythm-key { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.875rem; color: var(--ink-2); }
.rhythm-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; background: var(--cypress); }
.rhythm-key i.we { background: var(--bronze); }

/* ============ 13 · SHORTLIST & PRINTABLE BRIEF ============ */
.brief { width: 100%; max-width: 1040px; background: var(--white); border-radius: var(--r-3); box-shadow: var(--e-3); overflow: hidden; align-self: start; margin: 24px 0; animation: riseIn 0.5s var(--ease-out); }
.brief-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 16px 14px 32px; background: var(--paper) var(--grain); border-bottom: 1px solid var(--rule); }
.brief-bar strong { font-weight: 600; }
.brief-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brief-sheet { padding: 48px 56px 56px; }
.brief-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.brief-head .headline { font-size: 2.25rem; margin-top: 10px; }
.brief-head-meta { text-align: right; font-size: 0.875rem; color: var(--ink-2); line-height: 1.5; }
.brief-cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.brief-col { padding: 28px 28px 8px 0; min-width: 0; }
.brief-col + .brief-col { padding-left: 28px; border-left: 1px solid var(--rule); }
.brief-col-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brief-rm { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); transition: background 0.18s, color 0.18s; }
.brief-rm:hover { background: var(--paper-2); color: var(--ink); }
.brief-rm .ic { width: 14px; height: 14px; }
.brief-col .fc-name { margin-top: 10px; font-size: 1.5rem; }
.brief-col .fc-loc { font-size: 0.9375rem; }
.brief-phone { font-family: var(--serif); font-size: 1.25rem; margin-top: 8px; }
.brief-subcontact { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 0.8125rem; color: var(--ink-2); }
.brief-subcontact a { color: var(--cypress); text-decoration: underline; text-underline-offset: 2px; }
.brief-rows { display: grid; margin-top: 20px; border-top: 1px solid var(--rule-2); }
.brief-rows > div { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.brief-rows .k { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-ink); }
.brief-rows .v { font-size: 0.9375rem; line-height: 1.45; text-align: left; font-weight: 400; }
.brief-rows .v b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; font-variant-numeric: tabular-nums lining-nums; margin-right: 6px; }
.brief-flags { position: relative; margin-top: 28px; padding: 22px 24px 20px; background: var(--paper) var(--grain); border: 1px solid rgba(164, 126, 82, 0.42); border-radius: var(--r-2); }
.brief-flags::before { content: ""; position: absolute; left: 24px; top: -1px; width: 44px; height: 3px; border-radius: 0 0 2px 2px; background: var(--bronze); }
.brief-flags-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.brief-flags-sub { font-size: 0.8125rem; color: var(--ink-3); }
.brief-flags ul { display: grid; gap: 9px; }
.brief-flags li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; font-size: 0.90625rem; line-height: 1.48; color: var(--ink-2); }
.brief-flags li i { width: 6px; height: 6px; border-radius: 50%; background: var(--bronze); margin-top: 8px; }
.brief-flags li.warn i { background: var(--alert); }
.brief-flags li strong { color: var(--ink); font-weight: 600; }
.brief-q { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ink); }
.brief-q ol { display: grid; gap: 12px; margin-top: 16px; counter-reset: q; }
.brief-q li { display: grid; grid-template-columns: 32px 1fr; counter-increment: q; line-height: 1.5; font-size: 0.9375rem; }
.brief-q li::before { content: counter(q); font-family: var(--serif); font-size: 1.25rem; color: var(--bronze-ink); line-height: 1.2; }
.brief-q li strong { font-weight: 600; }
.brief-notes { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule-2); }
.brief-notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.brief-note-box { border: 1px solid var(--rule); border-radius: var(--r-1); padding: 12px 14px 36px; background: var(--white); }
.brief-note-box span { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.brief-foot { margin-top: 28px; }
.brief-empty { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 56px 16px; }
.brief-empty p { max-width: 32em; color: var(--ink-2); text-wrap: pretty; }

/* ============ 14 · CARE JOURNEY ============ */
.path-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.path-tab { position: relative; text-align: left; display: grid; gap: 5px; align-content: start; padding: 18px 18px 20px; border: 1px solid var(--rule-2); border-radius: var(--r-2); background: var(--white); box-shadow: 0 1px 2px rgba(21, 43, 35, 0.03); transition: border-color 0.25s, background 0.35s var(--ease), box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.path-tab::before { content: ""; position: absolute; left: 18px; top: -1px; width: 28px; height: 3px; border-radius: 0 0 2px 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out); }
.path-tab i { font-family: var(--serif); font-style: italic; font-size: 0.9375rem; line-height: 1.2; color: var(--bronze-ink); transition: color 0.3s; }
.path-tab strong { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--ink); transition: color 0.3s; }
.path-tab small { font-size: 0.8125rem; line-height: 1.4; color: var(--ink-2); transition: color 0.3s; }
.path-tab:hover { border-color: var(--bronze-ink); transform: translateY(-2px); box-shadow: var(--e-1); }
.path-tab.active { background: var(--cypress); border-color: var(--cypress); transform: translateY(-2px); box-shadow: var(--e-2); }
.path-tab.active::before { transform: scaleX(1); }
.path-tab.active i { color: var(--brass); }
.path-tab.active strong { color: var(--paper); }
.path-tab.active small { color: rgba(245, 240, 232, 0.78); }
.path-view { margin-top: 20px; padding: 36px 40px 40px; background: var(--paper) var(--grain); border: 1px solid var(--rule); border-radius: var(--r-3); display: grid; gap: 28px; }
.path-view-head { display: grid; gap: 8px; max-width: 70ch; animation: stepIn 0.45s var(--ease-out); }
.path-view-head h3 { font-family: var(--serif); font-size: 1.875rem; font-weight: 400; line-height: 1.14; letter-spacing: -0.018em; text-wrap: balance; }
.path-view-head p { font-size: 1rem; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.path-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; gap: 0 44px; }
.path-step { position: relative; grid-row: 1 / span 5; display: grid; grid-template-rows: subgrid; row-gap: 10px; padding: 22px 24px 18px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-2); box-shadow: var(--e-1); animation: cardIn 0.55s var(--ease-out) backwards; }
.path-step:nth-child(2) { animation-delay: 0.08s; }
.path-step:nth-child(3) { animation-delay: 0.16s; }
/* Directional connectors between steps */
.path-step + .path-step::before { content: ""; position: absolute; left: -45px; top: 50%; width: 45px; height: 1px; background: var(--bronze); opacity: 0.55; }
.path-step + .path-step::after { content: ""; position: absolute; left: -36px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; border: 1px solid var(--bronze); box-shadow: var(--e-1); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A5A34' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px 14px no-repeat; }
.path-step-top { display: contents; }
.path-step-badge { font-size: 0.6875rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-ink); }
.path-step-stay { justify-self: start; padding: 2px 10px; border-radius: var(--r-pill); background: var(--paper); font-size: 0.8125rem; font-weight: 500; line-height: 1.5; color: var(--ink-2); white-space: nowrap; }
.path-step h4 { margin-top: 4px; font-family: var(--serif); font-size: 1.3125rem; font-weight: 400; line-height: 1.22; letter-spacing: -0.012em; text-wrap: balance; }
.path-step p { font-size: 0.9375rem; line-height: 1.58; color: var(--ink-2); text-wrap: pretty; }
.path-step-ctas { align-self: end; display: flex; flex-wrap: wrap; gap: 4px 22px; padding-top: 10px; border-top: 1px solid var(--rule); }
.path-step-ctas .text-link { font-size: 0.875rem; min-height: 36px; }
.ref-section { margin-top: 96px; padding-top: 80px; border-top: 1px solid var(--rule-2); display: grid; gap: 48px; }
.ref-section .section-head { margin-bottom: 0; }
.ref-groups { display: grid; gap: 56px; }
.ref-tier { display: grid; gap: 20px; }
.ref-tier-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 6px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.ref-tier-head i { min-width: 1.5em; font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1; color: var(--bronze-ink); }
.ref-tier-head h3 { font-family: var(--serif); font-size: 1.625rem; font-weight: 400; line-height: 1.15; letter-spacing: -0.016em; }
.ref-tier-head span { font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); text-align: right; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 20px; }
.ref-card { position: relative; grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 12px; margin-bottom: 20px; padding: 26px 24px 18px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-2); box-shadow: 0 1px 2px rgba(21, 43, 35, 0.03); transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s; }
.ref-card::before { content: ""; position: absolute; left: 24px; top: -1px; width: 32px; height: 3px; border-radius: 0 0 2px 2px; background: var(--stage, var(--bronze)); }
.ref-card:hover { transform: translateY(-2px); box-shadow: var(--e-2); border-color: rgba(164, 126, 82, 0.55); }
.ref-card-meta { display: grid; gap: 4px; }
.ref-card-benefit { display: inline-flex; align-items: center; gap: 9px; font-size: 0.6875rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.ref-card-stay { font-size: 0.8125rem; line-height: 1.4; color: var(--ink-3); }
.ref-card h4 { font-family: var(--serif); font-size: 1.4375rem; font-weight: 400; line-height: 1.18; letter-spacing: -0.014em; text-wrap: balance; }
.ref-card p { font-size: 0.9375rem; line-height: 1.58; color: var(--ink-2); text-wrap: pretty; }
.ref-card .ref-tip { padding: 16px 18px; background: var(--paper); border-left: 3px solid var(--bronze); border-radius: 0 var(--r-1) var(--r-1) 0; font-size: 0.9375rem; line-height: 1.58; color: #252926; }
.ref-card .ref-tip strong { color: var(--ink); font-weight: 600; }
.ref-card .text-link { justify-self: start; min-height: 40px; }
.journey-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: 60px; padding: 36px 40px; border-radius: var(--r-3); background-color: var(--cypress); background-image: radial-gradient(620px 320px at 92% 0%, rgba(201, 166, 113, 0.18), transparent 64%), var(--grain-light); background-repeat: no-repeat, repeat; color: var(--paper); box-shadow: var(--e-2); }
.journey-foot .title { max-width: 22em; }

/* ============ 15 · FOR CLINICIANS ============ */
.band.clin-head { padding-bottom: 0; }
.clin-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.clin-tabs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.clin-tab { position: relative; z-index: 1; text-align: left; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 3px; align-items: baseline; padding: 18px 22px 20px; background: rgba(255, 255, 255, 0.5); border: 1px solid var(--rule); border-bottom: 0; border-radius: var(--r-2) var(--r-2) 0 0; transition: background 0.25s, border-color 0.25s, box-shadow 0.35s; }
.clin-tab i { grid-row: 1 / span 2; font-family: var(--serif); font-style: italic; font-size: 1.125rem; line-height: 1.3; color: var(--bronze-ink); }
.clin-tab strong { font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); transition: color 0.2s; }
.clin-tab span { grid-column: 2; font-size: 0.8125rem; line-height: 1.4; color: var(--ink-3); transition: color 0.2s; }
.clin-tab:hover { background: rgba(255, 255, 255, 0.88); }
.clin-tab:hover strong { color: var(--ink); }
.clin-tab.active { background: var(--white); border-color: var(--rule-2); margin-bottom: -1px; padding-bottom: 21px; box-shadow: inset 0 3px 0 var(--bronze), 0 -12px 24px -18px rgba(21, 43, 35, 0.45); }
.clin-tab.active strong { color: var(--ink); }
.clin-tab.active span { color: var(--bronze-ink); }
.band.clin-body { padding-top: 56px; }
.clin-pane[hidden] { display: none; }
.clin-pane { animation: stepIn 0.45s var(--ease-out); }
.clin-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-3); padding: 40px 44px; display: grid; gap: 22px; align-content: start; box-shadow: var(--e-1); }
.narrow-card { max-width: 980px; margin: 0 auto; }
.clin-card-head { display: grid; gap: 10px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.clin-card-head .body { max-width: 62ch; }
.form { display: grid; gap: 16px; margin-top: 12px; justify-items: start; width: 100%; }
.form > label, .form > .form-2, .form-2 > label { width: 100%; min-width: 0; }
.form label { display: grid; gap: 6px; }
.form label > span { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.form-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: end; }
.form-msg { font-size: 0.9375rem; font-weight: 600; color: var(--st-LTACH); min-height: 1.5em; }
.form-msg:empty { display: none; }
.clin-form { gap: 0; margin-top: 0; }
.clin-step { width: 100%; display: grid; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.clin-step:first-child { padding-top: 6px; }
.clin-step-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.step-no { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--bronze); font-family: var(--serif); font-size: 0.9375rem; line-height: 1; color: var(--bronze-ink); font-variant-numeric: tabular-nums lining-nums; }
.clin-step-head strong { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.step-hint { margin-left: auto; font-size: 0.875rem; color: var(--ink-3); }
.clin-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; width: 100%; padding-top: 28px; }
/* Searchable facility picker */
.fac-picker { width: 100%; display: grid; gap: 8px; }
.fac-search-box { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border: 1px solid var(--rule-2); border-radius: var(--r-1); background: var(--white); transition: border-color 0.2s, box-shadow 0.25s; }
.fac-search-box:hover { border-color: var(--ink-3); }
.fac-search-box:focus-within { border-color: var(--bronze-ink); box-shadow: var(--ring); }
.fac-search-box .ic { width: 18px; height: 18px; color: var(--bronze-ink); flex: none; }
.fac-search-box input, .fac-search-box input:hover, .fac-search-box input:focus { width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 1rem; outline: none; }
.fac-picker .loc-menu { top: calc(100% + 8px); width: 100%; }
.fac-picked { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; background: var(--sage); border: 1px solid rgba(21, 43, 35, 0.28); border-radius: var(--r-2); animation: menuIn 0.3s var(--ease-out); }
.fac-picked-check { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--cypress); color: var(--paper); display: grid; place-items: center; }
.fac-picked-check .ic { width: 16px; height: 16px; stroke-width: 2; }
.fac-picked-info { flex: 1; display: grid; gap: 2px; min-width: 0; }
.fac-picked-info strong { font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.fac-picked-info span { font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); }
.fac-picked button { flex: none; min-height: 36px; padding: 0 14px; border: 1px solid rgba(21, 43, 35, 0.3); border-radius: var(--r-pill); background: var(--white); font-size: 0.8125rem; font-weight: 600; color: var(--cypress); transition: border-color 0.2s, box-shadow 0.25s; }
.fac-picked button:hover { border-color: var(--cypress); box-shadow: var(--e-1); }
/* One-tap segmented capability rows: every option sits on the same four-column grid */
.seg-field { width: 100%; display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 10px 24px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.clin-step-head + .seg-field { padding-top: 0; }
.clin-step .seg-field:last-of-type { border-bottom: 0; padding-bottom: 0; }
.seg-label { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.seg-group { --n: 4; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; width: calc(var(--n) * 25%); padding: 3px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-2); }
.seg-btn { min-height: 40px; padding: 6px 5px; border-radius: 6px; background: transparent; color: var(--ink-2); font-size: 0.8125rem; font-weight: 500; line-height: 1.25; text-align: center; text-wrap: balance; transition: background 0.2s, color 0.2s, box-shadow 0.25s; }
.seg-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.92); }
.seg-btn.active { background: var(--cypress); color: var(--paper); font-weight: 600; box-shadow: 0 1px 2px rgba(21, 43, 35, 0.3), 0 6px 12px -6px rgba(21, 43, 35, 0.65); }
.seg-btn[data-tone="no"].active { background: var(--alert); box-shadow: 0 1px 2px rgba(154, 59, 38, 0.3), 0 6px 12px -6px rgba(154, 59, 38, 0.6); }
.seg-btn small { display: block; margin-bottom: 2px; font-size: 0.625rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase; color: var(--st-LTACH); }
.seg-btn[data-tone="no"] small { color: var(--alert); }
.seg-btn.active small { color: rgba(245, 240, 232, 0.78); }
/* Acceptance ledger */
.clin-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 24px; align-items: start; }
#ledgerForm { gap: 20px; margin-top: 4px; }
#ledgerForm .seg-field { grid-template-columns: minmax(0, 1fr); padding: 0; border-bottom: 0; gap: 8px; }
#ledgerForm .seg-group { width: 100%; }
#ledgerForm .seg-group.outcomes { --n: 6; }
#ledgerForm .seg-group.outcomes .seg-btn { grid-column: span 2; min-height: 52px; }
#ledgerForm .seg-group.outcomes .seg-btn[data-tone="ok"] { grid-column: span 3; }
#ledgerForm .seg-label, #ledgerForm label > span { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.ledger-feed { position: sticky; top: calc(var(--topbar-h) + 24px); }
.ledger-list { display: grid; }
.ledger-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ledger-row:first-child { border-top: 1px solid var(--rule); }
.ledger-badge { grid-row: 1 / span 3; align-self: start; margin-top: 1px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--sage); color: var(--cypress); font-size: 0.75rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.ledger-badge.no { background: var(--alert-wash); color: var(--alert); }
.ledger-row strong { grid-column: 2; font-weight: 600; line-height: 1.35; }
.ledger-row span { grid-column: 2; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.ledger-row em { font-style: normal; font-weight: 600; color: var(--cypress); }
.ledger-empty { display: grid; justify-items: center; gap: 10px; padding: 44px 24px 40px; text-align: center; border: 1px dashed var(--rule-2); border-radius: var(--r-2); background: var(--paper-2); }
.ledger-empty-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--bronze); color: var(--bronze-ink); box-shadow: var(--e-1); }
.ledger-empty strong { font-family: var(--serif); font-weight: 400; font-size: 1.3125rem; line-height: 1.2; }
.ledger-empty p { max-width: 27em; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
/* Pro workspace */
.pro-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pro-top-row > div { flex: 1 1 420px; display: grid; gap: 10px; max-width: 46em; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 4px; }
.plan { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; align-content: start; justify-items: start; text-align: left; padding: 32px 32px 26px; border: 1px solid var(--rule-2); border-radius: var(--r-3); background: var(--paper-2) var(--grain); cursor: pointer; transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s; }
.plan:hover { transform: translateY(-2px); box-shadow: var(--e-2); border-color: rgba(164, 126, 82, 0.6); }
.plan.selected { box-shadow: 0 0 0 2px var(--bronze), var(--e-2); border-color: transparent; }
.plan-tag { font-size: 0.6875rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-ink); }
.plan .kpi-num { font-size: 3.25rem; letter-spacing: -0.03em; }
.plan .kpi-num small { margin-left: 4px; font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; }
.plan strong { font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.plan-desc { display: block; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.plan-pick { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.875rem; font-weight: 600; color: var(--cypress); }
.plan-pick .ic { width: 16px; height: 16px; color: var(--bronze-ink); transition: transform 0.4s var(--ease-out); }
.plan:hover .plan-pick .ic { transform: translateX(4px); }
.plan.featured { background-color: var(--cypress); background-image: radial-gradient(540px 320px at 100% 0%, rgba(201, 166, 113, 0.22), transparent 62%), var(--grain-light); background-repeat: no-repeat, repeat; border-color: rgba(201, 166, 113, 0.45); color: var(--paper); }
.plan.featured .plan-tag { color: var(--brass); }
.plan.featured .kpi-num { color: var(--white); }
.plan.featured .kpi-num small { color: rgba(245, 240, 232, 0.68); }
.plan.featured .plan-desc { color: rgba(245, 240, 232, 0.82); }
.plan.featured .plan-pick { color: var(--paper); }
.plan.featured .plan-pick .ic { color: var(--brass); }
.plan.featured.selected { box-shadow: 0 0 0 2px var(--brass), var(--e-2); }
.pro-form-head { display: grid; gap: 8px; padding-top: 32px; border-top: 1px solid var(--rule); margin-top: 12px; }
.pro-form-head + .form { margin-top: 4px; }

/* ============ 16 · FOOTER ============ */
.site-footer { position: relative; background-color: var(--cypress-3); background-image: var(--grain-light); color: rgba(245, 240, 232, 0.84); padding: 72px 0 36px; border-top: 1px solid rgba(201, 166, 113, 0.35); }
.footer-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 44px 72px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-lockup { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-wordmark { color: var(--paper); font-size: 1.75rem; }
.footer-brand .brand-mark { filter: none; }
.footer-brand .brand-mark .bm-seal { fill: var(--paper); }
.footer-brand .brand-mark .bm-keyline { stroke: rgba(21, 43, 35, 0.2); }
.footer-brand .brand-mark .bm-path { stroke: var(--cypress); }
.footer-brand .brand-mark .bm-step { fill: var(--cypress); }
.footer-brand .brand-mark .bm-end { fill: var(--paper); stroke: var(--cypress); }
.footer-brand .brand-mark .bm-dot { fill: var(--bronze); stroke: var(--paper); }
.footer-brand p { line-height: 1.6; text-wrap: pretty; }
.footer-brand p.footer-contact { font-size: 0.9rem; color: rgba(245, 240, 232, 0.84); }
.footer-brand p.footer-contact a { color: #E8CE9B; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer-brand p.footer-contact a:hover { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer-links a { color: rgba(245, 240, 232, 0.85); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: #E8CE9B; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .fineprint { color: rgba(245, 240, 232, 0.64); text-wrap: pretty; }
.footer-base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px 32px; flex-wrap: wrap; margin-top: 8px; padding-top: 20px; border-top: 1px solid rgba(245, 240, 232, 0.14); font-size: 0.6875rem; font-weight: 700; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 240, 232, 0.6); }
body.is-explore .site-footer { display: none; }

/* ============ 17 · RESPONSIVE ============ */
@supports not (grid-template-rows: subgrid) {
  .cc-stage-name { min-height: 2.5em; }
}
@media (max-width: 1360px) {
  .stage-pills { gap: 5px; }
  .pill { padding: 0 11px; gap: 6px; font-size: 0.8125rem; }
}
@media (max-width: 1199px) {
  .xb-tools { grid-template-columns: repeat(6, minmax(0, 1fr)) auto; }
  .field-origin { grid-column: 1 / span 4; }
  .field-radius { grid-column: 5 / span 2; }
  .field-btn { grid-column: 7; grid-row: 1; }
  .field-search { grid-column: 1 / span 3; grid-row: 2; }
  .field-sort { grid-column: 4 / -1; grid-row: 2; }
}
@media (max-width: 1180px) {
  .brand-region { display: none; }
  .hero-veil { background: linear-gradient(90deg, rgba(245, 240, 232, 0.97) 0%, rgba(245, 240, 232, 0.93) 44%, rgba(245, 240, 232, 0.62) 62%, rgba(245, 240, 232, 0) 84%), var(--grain); }
}
@media (max-width: 1100px) {
  #openWizardHeaderBtn { display: none; }
}
@media (max-width: 1080px) {
  .topbar-inner { padding: 0 24px; gap: 16px; }
  .wrap { padding: 0 28px; }
  .band { padding: 96px 0; }
  .band.page-head { padding: 72px 0 64px; }
  .band.clin-head { padding-bottom: 0; }
  .showcase, .closing, .medicare-grid { gap: 48px; }
  .story { gap: 72px; }
  .split { grid-template-columns: minmax(400px, 48%) 1fr; }
  .continuum { --cc-gutter: 116px; }
  .cc-datum { font-size: 0.625rem; letter-spacing: 0.12em; }
  .cc-axis-lead { font-size: 0.625rem; padding-right: 14px; }
  .cc-stage-name { font-size: 0.8125rem; }
  .calc { padding: 32px 28px; }
  .clin-card { padding: 32px 32px; }
  .path-view { padding: 28px 28px 32px; }
  .path-steps { gap: 0 36px; }
  .path-step + .path-step::before { left: -37px; width: 37px; }
  .path-step + .path-step::after { left: -32px; }
}
@media (max-width: 999px) {
  .seg-field { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .seg-group { width: 100%; }
  .path-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .path-tab { grid-column: span 2; }
  .path-tab:nth-child(n + 4) { grid-column: span 3; }
  .topnav-link { padding: 0 10px; font-size: 0.875rem; }
  .topnav-link::after { left: 10px; right: 10px; }
  .shortlist-btn .hide-sm { display: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 860px) {
  :root { --topbar-h: 100px; }
  .hide-sm { display: none !important; }
  .topbar-inner { height: 56px; padding: 0 16px; }
  .topnav { display: none; }
  .topbar-right { margin-left: auto; gap: 8px; }
  .brand-btn { gap: 10px; }
  .brand-wordmark { font-size: 1.375rem; }
  .brand-mark { width: 30px; height: 30px; }
  .shortlist-btn { padding: 0 9px 0 11px; }
  .mobile-subnav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 44px; border-top: 1px solid var(--rule); }
  .mnav-link { position: relative; font-size: 0.78125rem; font-weight: 600; color: var(--ink-3); padding: 0 2px; white-space: nowrap; transition: color 0.2s; }
  .mnav-link.active { color: var(--ink); }
  .mnav-link::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 2px; background: var(--bronze); transform: scaleX(0); transition: transform 0.4s var(--ease-out); }
  .mnav-link.active::after { transform: scaleX(1); }

  .wrap { padding: 0 20px; }
  .band { padding: 72px 0; }
  .section-head { margin-bottom: 40px; gap: 16px; }
  .lede { font-size: 1.0625rem; }
  .eyebrow { letter-spacing: 0.14em; }

  .hero { display: block; min-height: 0; background: var(--paper) var(--grain); }
  .hero-media { position: relative; height: 220px; }
  .hero-photo { object-position: 84% 40%; animation: none; }
  .hero-veil { display: none; }
  .hero-media::after { height: 72px; background: linear-gradient(180deg, rgba(245, 240, 232, 0), var(--paper)); }
  .hero-grid { padding-top: 28px; padding-bottom: 52px; }
  .hero-copy { gap: 22px; }
  .hero-copy .eyebrow::before { display: none; }
  .capsule { grid-template-columns: minmax(0, 1fr); width: auto; }
  .capsule-field { padding: 15px 18px 14px; }
  .capsule-field::after { left: 18px; right: 18px; top: auto; bottom: 0; width: auto; height: 1px; }
  .capsule-field:first-child { border-radius: calc(var(--r-3) - 1px) calc(var(--r-3) - 1px) 0 0; }
  .capsule-submit { min-height: 54px; }
  .loc-menu { width: 100%; max-height: 320px; }
  .hero-links { gap: 12px; }

  .figures { grid-template-columns: 1fr 1fr; }
  .figure { padding: 34px 16px 30px 0; }
  .figure + .figure { padding-left: 20px; }
  .figure + .figure::before { top: 22px; bottom: 22px; }
  .figure + .figure::after { left: 20px; }
  .figure:nth-child(3) { padding-left: 0; }
  .figure:nth-child(3)::before { display: none; }
  .figure:nth-child(3)::after { left: 0; }
  .figure:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .figure:nth-child(n + 3)::after { top: -1px; }

  .continuum { --cc-gutter: 0px; }
  .cc-frame { position: relative; grid-template-columns: minmax(0, 1fr); }
  .cc-scale { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .cc-plot { height: 196px; border-left: 0; }
  .cc-plumb { display: none; }
  .cc-datum { left: auto; right: 0; display: block; transform: translateY(-100%); padding-bottom: 5px; font-size: 0.6875rem; letter-spacing: 0.1em; }
  .cc-datum::after { display: none; }
  .cc-datum.d3 { left: 0; right: auto; transform: none; padding: 6px 0 0; }
  .cc-datum .dl, .lbl-long { display: none; }
  .cc-datum .ds, .lbl-short { display: inline; }
  .cc-axis { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .cc-axis-lead { display: none; }
  .cc-stage { padding: 12px 1px 14px; row-gap: 3px; }
  .cc-stage:first-of-type { border-left: 0; }
  .cc-stage-name { display: none; }
  .cc-stage-short { display: block; font-size: 0.6875rem; }
  .cc-stage-count { font-size: 1.25rem; }
  .cc-stage-no { font-size: 0.875rem; }
  .showcase, .story, .closing, .medicare-grid, .page-head-grid, .clin-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .showcase { margin-top: 24px; padding: 24px 20px; gap: 24px; }
  .showcase-photo { aspect-ratio: 3 / 2; }
  .showcase-body { gap: 18px; }
  .benefit-pill { left: 16px; bottom: 16px; max-width: calc(100% - 32px); }
  .medicare-grid { gap: 40px; }
  .calc { padding: 26px 20px 24px; }
  .calc-head .kpi-num { font-size: 2.25rem; }
  .calc-result { min-height: 0; }
  .calc-result .kpi-num { font-size: 2.75rem; }
  .calc-result.warn .kpi-num { font-size: 1.875rem; }
  .midnight-btn { gap: 14px; padding: 16px 16px; }
  .midnight-text strong { font-size: 1.1875rem; }
  .story { gap: 44px; }
  .story-photo { margin-right: 14px; }
  .story-photo::before { left: 14px; right: -14px; top: 14px; }
  .story-photo img { aspect-ratio: 4 / 3.4; }
  .story-photo figcaption { display: none; }
  .story-photo::before { height: 100%; }
  .runway-scale span:first-child { font-size: 0; }
  .eyebrow .k-a { display: block; }
  .eyebrow .k-sep { display: none; }
  .footer-base span { text-wrap: balance; }
  .closing { gap: 36px; }
  .closing-photo { order: -1; }
  .band.page-head { padding: 52px 0 48px; }
  .band.clin-head { padding-bottom: 0; }
  .page-head-photo { display: none; }

  .path-view { padding: 24px 18px 26px; margin-top: 14px; border-radius: var(--r-2); }
  .path-view-head h3 { font-size: 1.5rem; }
  .path-steps { grid-auto-flow: row; grid-template-rows: none; grid-auto-columns: auto; gap: 40px; }
  .path-step { grid-row: auto; grid-template-rows: none; padding: 20px 18px 16px; }
  .path-step + .path-step::before { left: 50%; top: -40px; width: 1px; height: 40px; }
  .path-step + .path-step::after { left: 50%; top: -20px; margin: -14px 0 0 -14px; transform: rotate(90deg); }
  .ref-section { margin-top: 64px; padding-top: 56px; gap: 36px; }
  .ref-groups { gap: 44px; }
  .ref-tier-head { grid-template-columns: auto minmax(0, 1fr); }
  .ref-tier-head span { grid-column: 2; text-align: left; }
  .ref-tier-head h3 { font-size: 1.4375rem; }
  .journey-foot { margin-top: 44px; padding: 28px 22px; }

  .band.clin-body { padding-top: 32px; }
  .clin-card { padding: 26px 20px; border-radius: var(--r-2); }
  .step-hint { margin-left: 0; flex-basis: 100%; }
  .clin-grid { gap: 20px; }
  .ledger-feed { position: static; }
  .plan { padding: 26px 22px 22px; }
  .plan .kpi-num { font-size: 2.75rem; }
  .footer-grid { gap: 28px; }
  .site-footer { padding: 56px 0 32px; }
  .footer-base { margin-top: 0; }

  .xb-tools { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 10px 16px 8px; }
  .field { padding: 0 12px; }
  .field-origin { grid-column: 1 / -1; grid-row: 1; }
  .field-search { grid-column: 1 / span 2; grid-row: 2; }
  .field-btn { grid-column: 3; grid-row: 2; justify-content: center; }
  .field-radius { grid-column: 1; grid-row: 3; }
  .field-sort { grid-column: 2 / -1; grid-row: 3; }
  .field-radius > .ic, .field-sort > .ic, .field-btn-label { display: none; }
  .stage-pills { padding: 2px 16px 10px; scroll-padding: 0 16px; }
  .needs-drawer { padding: 14px 16px; gap: 12px; }
  .active-needs { padding: 8px 16px; }
  .reviews-card { padding: 18px; }
  .match-banner { padding: 10px 16px; font-size: 0.875rem; }
  .split { display: block; }
  .list-pane { height: 100%; padding: 20px 16px 140px; }
  .map-pane { position: absolute; inset: 0; display: none; border-left: 0; }
  .map-pane::after { display: none; }
  .split.map-open .map-pane { display: block; }
  .split.map-open .list-pane { display: none; }
  .map-legend { left: 12px; right: 12px; bottom: auto; top: 12px; gap: 4px 14px; justify-content: center; max-width: none; padding: 8px 12px; font-size: 0.75rem; }
  body.has-dock .map-legend { bottom: auto; top: 12px; }
  .map-legend .lgd-wide { display: none; }
  .leaflet-control-zoom { margin: 0 12px 96px 0 !important; }
  .list-pane { padding-bottom: 148px; }
  .map-toggle { display: inline-flex; align-items: center; gap: 7px; position: fixed; left: auto; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); transform: none; z-index: 1400; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); background: var(--cypress); color: var(--paper); border: 1px solid rgba(201, 166, 113, 0.5); font-size: 0.875rem; font-weight: 600; box-shadow: var(--e-3); }
  .map-toggle .ic { color: var(--brass); }
  body.has-dock .map-toggle { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .list-count { font-size: 1.5rem; }
  .fc { padding: 20px 18px 0; }
  .fc::before { left: 18px; }
  .fc-name { font-size: 1.5rem; }
  .stage-tag { letter-spacing: 0.12em; }
  .fc-chips { padding-bottom: 14px; }
  .fc-foot { gap: 0 16px; }

  .dock { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); transform: none; gap: 10px; padding: 10px 12px 10px 16px; justify-content: space-between; animation: none; }
  .dock-text strong { font-size: 0.9375rem; white-space: nowrap; }
  .dock .btn-ghost-light span { display: none; }
  .dock .btn { padding: 0 13px; min-height: 40px; font-size: 0.84375rem; white-space: nowrap; }
  .overlay { padding: 0; place-items: end stretch; }
  .wizard { max-width: none; max-height: 94dvh; margin: 0; align-self: end; border-radius: 16px 16px 0 0; padding-top: 20px; }
  .wizard-top { margin: 0 20px 20px; }
  .wiz-step > h2, .wiz-step > .body { margin-left: 20px; margin-right: 20px; }
  .wiz-tiles { grid-template-columns: minmax(0, 1fr); margin: 14px 20px 0; }
  .wiz-tile { padding: 13px 4px; }
  .wiz-zip { margin: 0 20px; padding-top: 14px; }
  .wiz-foot { margin-top: 14px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); }

  .sheet { width: 100vw; box-shadow: none; }
  .sheet-head { padding: 14px 20px 14px; row-gap: 8px; }
  .sheet-head h2 { font-size: 1.625rem; }
  .sheet.condensed .sheet-head { padding-top: 8px; padding-bottom: 10px; }
  .sheet.condensed .sheet-head h2 { font-size: 1.1875rem; }
  .sheet-tabs { padding: 0 24px 0 16px; gap: 16px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, #000 88%, transparent 100%); }
  .sheet-tab { padding: 12px 0; font-size: 0.875rem; }
  .sheet-body { padding-left: 20px; padding-right: 20px; }
  .sheet-body > section { padding: 28px 0; }
  .signal-card, .signal { padding: 14px 16px; }
  .telemetry { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .telemetry .gauge { max-width: 260px; margin: 0 auto; }
  .kpi + .kpi { padding-left: 14px; }
  .kpi { padding-right: 8px; }
  .kpi .kpi-num { font-size: 1.875rem; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid .kpi:nth-child(n) { padding: 16px 10px 16px 14px; border-left: 1px solid var(--rule); }
  .kpi-grid .kpi:nth-child(odd) { padding-left: 0; border-left: 0; }
  .kpi-grid .kpi-num { font-size: 1.75rem; }
  .star-strip { grid-template-columns: 1fr 1fr; }
  .star-cell { padding: 14px 10px 16px 14px; border-top: 1px solid var(--rule); }
  .star-cell:nth-child(even) { padding-left: 0; border-left: 0; }
  .star-cell.lead { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: end; padding-left: 0; border-top: 0; }
  .star-cell.lead .kpi-label { min-height: 0; align-self: center; }
  .star-cell.lead .pips { grid-column: 1 / -1; }
  .team-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; }
  .team-row .team-role { grid-column: 1; grid-row: 1; }
  .team-row .team-val { grid-column: 2; grid-row: 1; }
  .team-row .meter { grid-column: 1 / -1; grid-row: 2; }
  .mrow-head b { font-size: 1.375rem; min-width: 0; }
  .sir-head { flex-direction: column; gap: 4px; }
  .sir-head span { text-align: left; }
  .cite { grid-template-columns: 1fr; gap: 8px; }
  .cite-when { display: flex; align-items: center; gap: 12px; }
  .script { font-size: 1.125rem; padding: 20px; }
  .rhythm-pair { grid-template-columns: minmax(0, 1fr); }
  .rhythm { max-width: 320px; }
  .dossier-head, .dossier-intro, .dossier-block, .dossier-foot, .viol-snap { padding-left: 18px; padding-right: 18px; }
  .dossier-spec-grid, .dossier-lead-grid { grid-template-columns: 1fr; gap: 10px; }
  .dossier-checks { columns: 1; }
  .viol-snap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows > div { gap: 16px; }
  .sheet-foot { flex-wrap: wrap; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .sheet-foot .btn-row { width: 100%; }
  .sheet-foot .btn { min-height: 46px; padding: 0 16px; }
  .sheet-foot #profSaveBtn { flex: 1; }
  .sheet-foot #profGroupTextBtn { width: 46px; padding: 0; flex: none; }
  .sheet-foot #profGroupTextBtn span { display: none; }
  .ext-links { width: 100%; justify-content: space-between; }
  .brief { margin: 0; border-radius: 16px 16px 0 0; max-height: 94dvh; overflow-y: auto; align-self: end; }
  .brief-bar { padding: 14px 56px 12px 20px; position: sticky; top: 0; z-index: 2; }
  .brief-actions { width: 100%; gap: 8px; }
  .brief-actions #closeBriefBtn { position: absolute; top: 6px; right: 8px; }
  .brief-actions #briefShareBtn, .brief-actions #briefCopyAllBtn { width: 40px; padding: 0; }
  .brief-actions #briefShareBtn span, .brief-actions #briefCopyAllBtn span { display: none; }
  .brief-notes-grid { grid-template-columns: 1fr; gap: 10px; }
  .brief-sheet { padding: 28px 20px 40px; }
  .brief-head { flex-direction: column; align-items: flex-start; }
  .brief-head-meta { text-align: left; }
  .brief-cols { grid-auto-flow: row; }
  .brief-col { padding: 24px 0 8px; }
  .brief-col + .brief-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--ink); }
  .toast { top: 112px; }
}

/* Narrow phones: the card ledger turns into three clean label / value rows */
@media (max-width: 560px) {
  .btn { max-width: 100%; white-space: normal; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; }
  .path-tabs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .path-tab { padding: 14px 14px 15px; }
  .path-tab small { display: none; }
  .path-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ref-grid { grid-template-columns: minmax(0, 1fr); }
  .ref-card { grid-row: auto; grid-template-rows: none; margin-bottom: 16px; padding: 24px 20px 16px; }
  .clin-tabs, .clin-tabs.two { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; padding-bottom: 24px; }
  .clin-tab { border-bottom: 1px solid var(--rule); border-radius: var(--r-2); padding: 14px 18px 15px; }
  .clin-tab.active { margin-bottom: 0; padding-bottom: 15px; box-shadow: inset 3px 0 0 var(--bronze), var(--e-1); }
  .seg-group, #ledgerForm .seg-group, #ledgerForm .seg-group.outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  #ledgerForm .seg-group.outcomes .seg-btn, #ledgerForm .seg-group.outcomes .seg-btn[data-tone="ok"] { grid-column: auto; }
  .seg-btn { min-height: 44px; font-size: 0.78125rem; }
  .seg-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .form-2, .plans { grid-template-columns: minmax(0, 1fr); }
  .sheet-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .quick { justify-content: center; padding: 0 12px; min-width: 0; }
  .quick .lbl-long { display: none; }
  .quick .lbl-short { display: inline; }
  .path-tab:nth-child(n) { grid-column: auto; }
  .path-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tele { grid-template-columns: minmax(0, 1fr); }
  .tele-cell { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 2px; align-items: center; padding: 12px 0; }
  .tele-cell + .tele-cell { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-soft); }
  .tele-cell:last-child { padding-bottom: 16px; }
  .tele-label { grid-column: 1; grid-row: 1; text-wrap: wrap; }
  .tele-ctx { grid-column: 1; grid-row: 2; }
  .tele-ctx:empty { display: none; }
  .tele-val { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-content: flex-end; min-height: 0; margin: 0; text-align: right; }
  .tele .kpi-num { font-size: 1.375rem; }
  .tele .kpi-num.txt { font-size: 1.0625rem; }
  .display { font-size: clamp(2.5rem, 11.6vw, 2.9rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .gauge .val { stroke-dasharray: var(--v) 100; }
}

/* ============ 17B · ASK THEM THIS, NEXT BRANCHES, CHOICE LIST & HONESTY BOX ============ */
.list-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.choice-trigger-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--rule); font-size: 0.78125rem; font-weight: 600; color: var(--cypress); transition: border-color 0.18s, background 0.18s; }
.choice-trigger-btn:hover { border-color: var(--cypress); background: var(--cypress-wash); }
.choice-trigger-btn .ic { width: 14px; height: 14px; }
.ask-this { display: grid; gap: 14px; padding: 20px 22px; background: var(--paper-2); border: 1px solid var(--rule); border-left: 3px solid var(--cypress); border-radius: var(--r-2); }
.ask-this-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ask-k { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-ink); margin-bottom: 3px; }
.ask-this-head h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: var(--ink); line-height: 1.2; }
.ask-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ask-list li { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--rule-soft); }
.ask-list li:first-child { padding-top: 0; border-top: 0; }
.ask-tag { width: fit-content; padding: 2px 8px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--rule); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cypress); }
.ask-list p { margin: 0; font-size: 0.9375rem; line-height: 1.58; color: #1E2320; }
.next-branches { display: grid; gap: 12px; margin-top: 6px; }
.next-branch-card { display: grid; gap: 6px; padding: 16px 18px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-2); }
.next-branch-card.note-only { background: var(--paper-2); border-left: 3px solid var(--bronze); }
.nb-head { display: flex; align-items: center; gap: 9px; }
.nb-head strong { font-size: 1rem; color: var(--ink); }
.next-branch-card p { margin: 0; font-size: 0.90625rem; line-height: 1.5; color: var(--ink-2); }
.brief-ins-strip { display: grid; gap: 8px; margin-top: 20px; padding: 16px 20px; background: var(--paper-2); border: 1px solid var(--rule); border-left: 3px solid var(--cypress); border-radius: var(--r-2); }
.brief-ins-k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--cypress); }
.brief-ins-strip ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; font-size: 0.90625rem; line-height: 1.58; color: #252926; }
.brief-ins-strip strong { color: var(--ink); }
.choice-modal { max-width: 1080px; }
.choice-order-toggle { display: inline-flex; padding: 3px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-pill); gap: 2px; }
.choice-ord { padding: 5px 11px; border-radius: var(--r-pill); font-size: 0.78125rem; font-weight: 600; color: var(--ink-2); }
.choice-ord.active { background: var(--cypress); color: var(--white); }
.choice-sub { margin: 6px 0 0; font-size: 0.90625rem; color: var(--ink-2); }
.choice-disclose { display: grid; gap: 6px; margin-top: 18px; padding: 12px 16px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-1); font-size: 0.84375rem; color: var(--ink); }
.choice-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.choice-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.875rem; }
.choice-table th { text-align: left; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 10px 10px 10px 0; border-bottom: 1.5px solid var(--ink); }
.choice-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; color: var(--ink); }
.choice-table td strong { display: block; font-weight: 600; color: var(--ink); }
.choice-table td small { display: block; font-size: 0.78125rem; color: var(--ink-2); margin-top: 2px; }
.choice-table td:nth-child(3) { white-space: nowrap; }
.choice-check-cell { text-align: center; font-size: 1.15rem; width: 52px; }
.clin-tool-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.clin-tool-row .btn { min-height: 42px; padding: 0 16px; font-size: 0.875rem; }
.dm-sources { display: grid; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.dm-sources > div { display: grid; grid-template-columns: minmax(210px, 0.92fr) minmax(0, 1.08fr); gap: 8px 28px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.dm-sources > div:last-child { border-bottom: 0; }
.dm-sources .k { font-size: 0.9375rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.dm-sources .v { font-size: 0.9375rem; color: #252926; line-height: 1.5; }
.dm-sources .v a { color: var(--cypress); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.clin-honesty-box { display: grid; gap: 12px; padding: 22px 24px; background: var(--paper-2); border: 1px solid var(--rule); border-left: 3px solid var(--cypress); border-radius: var(--r-2); }
.clin-honesty-box > strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: var(--ink); }
.clin-honesty-box ul { display: grid; gap: 11px; margin: 0; padding-left: 18px; font-size: 0.9375rem; line-height: 1.6; color: #252926; }
.clin-honesty-box li strong { color: var(--ink); font-weight: 600; }
.clin-honesty-box code { padding: 1px 5px; border-radius: 4px; background: var(--white); border: 1px solid var(--rule); font-size: 0.82em; color: var(--cypress); }
/* Zero-PHI Phone Stay Clock & Calendar Alerts */
.stay-clock { max-width: 860px; display: grid; gap: 22px; padding: 28px 30px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-3); }
.sc-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sc-field { display: grid; gap: 6px; }
.sc-field span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-ink); }
.sc-field input, .sc-field select { width: 100%; min-height: 44px; padding: 9px 14px; border: 1px solid var(--rule-2); border-radius: var(--r-2); background: var(--white); color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 500; }
.sc-field select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23181A19' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.sc-list { display: grid; gap: 12px; }
.sc-item { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 6px 20px; align-items: start; padding: 16px 18px; background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--cypress); border-radius: var(--r-2); }
.sc-item.warn { border-left-color: #B94E34; }
.sc-date { display: grid; gap: 2px; }
.sc-date strong { font-size: 0.9375rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.sc-date small { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bronze-ink); }
.sc-body { display: grid; gap: 4px; }
.sc-body strong { font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.sc-body p { margin: 0; font-size: 0.9375rem; line-height: 1.56; color: #252926; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--rule-soft); }
.sc-priv { font-size: 0.84375rem; color: var(--ink-2); }
@media (max-width: 720px) { .dm-sources > div { grid-template-columns: 1fr; gap: 3px; } .stay-clock { padding: 20px 18px; } .sc-controls { grid-template-columns: 1fr; } .sc-item { grid-template-columns: 1fr; } }

@media (max-width: 960px) {
  .places-board { grid-template-columns: 1fr; grid-template-rows: auto; }
  .place-col { display: flex; flex-direction: column; grid-row: auto; padding: 20px 18px; }
  .place-col + .place-col { border-left: 0; border-top: 1px solid #E2DACB; }
  .showcase-specs { grid-template-columns: 1fr; }
  .showcase-specs > div:nth-child(odd) { border-right: 0; }
  .showcase-specs > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule-soft); }
  .showcase-specs > div:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .view-section { overflow-x: clip; }
  .stage-pills { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, #000 88%, transparent 100%); padding-right: 24px; }
  .choice-table th:nth-child(4), .choice-table td:nth-child(4) { display: none; }
  .choice-table { font-size: 0.78125rem; }
  .choice-table th, .choice-table td { padding: 8px 6px 8px 0; }
  .choice-table td:nth-child(3) { white-space: normal; word-break: break-word; }
  .choice-check-cell { width: 38px; padding-right: 0; }
}

/* ============ 18 · PRINT: one-page bedside brief & neutral choice list ============ */
@media print {
  @page { size: letter landscape; margin: 0.45in; }
  body { background: #fff; }
  .no-print, main, .site-footer, .topbar { display: none !important; }
  .overlay[hidden] { display: none !important; }
  .overlay:not([hidden]) { position: static; display: block; background: none; padding: 0; backdrop-filter: none; overflow: visible; }
  .brief { box-shadow: none; max-width: none; margin: 0; border-radius: 0; max-height: none; overflow: visible; }
  .brief-sheet { padding: 0; }
  .brief-head .headline { font-size: 1.75rem; }
  .brief-col { padding-top: 16px; break-inside: avoid; }
  .brief-rows > div { padding: 7px 0; }
  .brief-ins-strip { margin-top: 14px; padding: 12px 14px; break-inside: avoid; }
  .brief-flags { margin-top: 14px; padding: 14px 16px; break-inside: avoid; }
  .brief-q { margin-top: 14px; padding-top: 14px; break-inside: avoid; }
  .brief-q ol { gap: 6px; margin-top: 10px; }
  .brief-q li, .brief-rows .v, .brief-flags li, .brief-ins-strip li { font-size: 0.8125rem; }
  .brief-notes { margin-top: 14px; padding-top: 12px; break-inside: avoid; }
  .brief-note-box { padding: 8px 10px 26px; }
  .brief-foot { margin-top: 14px; }
  .choice-table th, .choice-table td { font-size: 0.78rem; padding: 6px 8px 6px 0; }
}

/* Printable QR code footer strip on CMS Neutral Choice List & Family Comparison Brief */
.print-qr-strip { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(21, 43, 35, 0.16); border-radius: 10px; background: #F5F0E8; break-inside: avoid; }
.print-qr-img { width: 68px; height: 68px; flex: none; border-radius: 6px; border: 1px solid rgba(21, 43, 35, 0.14); background: #FFFDF9; }
.print-qr-copy { display: grid; gap: 3px; }
.print-qr-copy strong { font-size: 0.9375rem; color: var(--cypress); line-height: 1.3; }
.print-qr-copy span { font-size: 0.84375rem; color: var(--ink-2); line-height: 1.45; }
