:root {
  --ink: #12223b;
  --muted: #66748b;
  --paper: #f3f5f8;
  --surface: #ffffff;
  --line: #dfe5ec;
  --providence: #65408c;
  --coral: #f36f56;
  --teal: #0c9b91;
  --gold: #f2b84b;
  --blue: #3478c5;
  --navy: #162846;
  --green: #2c8b68;
  --red: #b85353;
  --shadow: 0 22px 60px rgba(18, 34, 59, .10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
a { color: #215f9d; text-underline-offset: 3px; }
.shell { width: min(1440px, calc(100% - 36px)); margin: 0 auto; }

.app-header { background: radial-gradient(circle at 80% 20%, rgba(243,111,86,.35), transparent 26%), radial-gradient(circle at 62% 120%, rgba(12,155,145,.24), transparent 38%), linear-gradient(130deg, #182947, #352551 68%, #573263); color: white; overflow: hidden; }
.header-inner { min-height: 300px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 54px; align-items: center; padding: 30px 0; }
.brand-row { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; color: #d8cae8; font-size: .69rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 850; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid #f6a07b; border-radius: 13px; color: #12223b; background: #f6844e; font-weight: 900; font-size: .8rem; letter-spacing: -.04em; }
.brand-identity { min-width: 0; }
.brand-name { display: block; color: white; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.025em; text-transform: none; }
.brand-kicker { display: block; margin-top: 5px; font-size: .65rem; line-height: 1.5; letter-spacing: .08em; }
h1 { max-width: 800px; margin: 0 0 15px; font-size: clamp(2.4rem, 3.9vw, 4.1rem); line-height: 1; letter-spacing: -.05em; }
.hero-copy { max-width: 750px; margin: 0; color: #dce4f0; font-size: .94rem; }
.hero-status { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.status-pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: white; font-size: .8rem; font-weight: 750; backdrop-filter: blur(8px); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #6ce0af; box-shadow: 0 0 0 5px rgba(108,224,175,.13); }
.hero-map { position: relative; }
.hero-visual { position: relative; min-height: 300px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.19); border-radius: 50%; }
.orbit.o1 { width: 230px; height: 230px; }
.orbit.o2 { width: 360px; height: 150px; transform: rotate(-20deg); }
.hospital-core { position: relative; z-index: 2; width: 155px; height: 155px; display: grid; place-items: center; text-align: center; padding: 20px; border-radius: 44px; background: linear-gradient(145deg, #fff, #eae4f1); color: var(--providence); box-shadow: 0 25px 70px rgba(0,0,0,.3); font-weight: 900; font-size: 1.05rem; }
.map-node { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 4px; max-width: calc(50% - 8px); padding: 9px 11px; border-radius: 11px; color: #fff; font-size: .75rem; font-weight: 800; text-align: center; line-height: 1.35; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.map-raise { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 2px 5px; font-size: 1rem; font-weight: 900; line-height: 1.3; }
.map-type { font-size: .75rem; font-weight: 700; }
.node-1 { left: 0; top: 0; background: var(--blue); }
.node-2 { right: 0; top: 0; background: var(--coral); color: #12223b; }
.node-3 { left: 0; bottom: 0; background: var(--teal); color: #12223b; }
.node-4 { right: 0; bottom: 0; background: var(--gold); color: var(--ink); }
.hero-wage-note { max-width: 430px; margin: 14px auto 0; color: #e2dfeb; text-align: center; font-size: .75rem; line-height: 1.5; }
.motion-control { display: block; margin: 14px auto 0; border: 1px solid #ffffff55; border-radius: 20px; background: #ffffff0d; color: #e8e2ef; padding: 6px 13px; font-size: .72rem; cursor: pointer; }
.orbit.o1 { border-style: dashed; animation: map-orbit 45s linear infinite; }
.orbit.o2 { animation: map-tilt 15s ease-in-out infinite alternate; }
.orbit.o3 { width: 190px; height: 190px; border-color: #b7a1d9; animation: map-ripple 5s ease-out infinite; }
.orbit.o1::after { content: ''; position: absolute; left: 109px; top: -4px; width: 8px; height: 8px; background: #a9dccd; border-radius: 50%; box-shadow: 0 0 13px #a9dccd; }
.hospital-core { animation: core-hover 7s ease-in-out infinite; }
.map-node { animation: node-hover 6s ease-in-out infinite; }
.node-2 { animation-delay: -1.5s; }.node-3 { animation-delay: -3s; }.node-4 { animation-delay: -4.5s; }
.motion-paused *, .motion-paused *::after { animation-play-state: paused !important; }
@keyframes map-orbit { to { transform: rotate(360deg); } }
@keyframes map-tilt { from { transform: rotate(-20deg); } to { transform: rotate(10deg); } }
@keyframes map-ripple { 0% { transform: scale(.85); opacity: .6; } 85%,100% { transform: scale(1.45); opacity: 0; } }
@keyframes core-hover { 50% { transform: translateY(-5px); box-shadow: 0 30px 75px #0005; } }
@keyframes node-hover { 50% { transform: translateY(-7px); } }

.tabbar-wrap { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.tabbar { display: flex; gap: 5px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.tabbar::-webkit-scrollbar { display: none; }
.mobile-section-nav, .mobile-hospital-picker { display: none; }
.tab { appearance: none; border: 0; background: transparent; color: #5b687d; padding: 10px 14px; border-radius: 10px; white-space: nowrap; cursor: pointer; font-size: .86rem; font-weight: 800; }
.tab:hover { background: #eef1f5; color: var(--ink); }
.tab.active { background: var(--navy); color: white; box-shadow: 0 6px 18px rgba(22,40,70,.18); }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, [tabindex]:focus-visible, summary:focus-visible { outline: 3px solid #3478c5; outline-offset: 4px; }
button:disabled { opacity: .4; cursor: default; }
.panel { scroll-margin-top: 85px; }

main { padding: 30px 0 72px; }
.panel { display: none; }
.panel.active { display: block; }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.panel-title { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin: 5px 0 22px; }
.panel-title h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.04em; line-height: 1.05; }
.panel-title p { max-width: 650px; margin: 0; color: var(--muted); }
.eyebrow { color: var(--providence); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; margin-bottom: 7px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 21px; box-shadow: 0 6px 24px rgba(18,34,59,.045); }
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.metric-card { min-height: 145px; position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 80px; height: 80px; border-radius: 50%; right: -22px; bottom: -22px; background: var(--accent, var(--providence)); opacity: .13; }
.metric-label { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.metric { margin: 10px 0 6px; font-size: 2.4rem; line-height: 1; font-weight: 900; letter-spacing: -.045em; }
.metric-note { color: var(--muted); font-size: .83rem; }
.section-gap { margin-top: 18px; }
.chart-card { min-height: 390px; }
.chart-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 13px; }
.chart-head h3 { font-size: 1.1rem; }
.chart-sub { color: var(--muted); font-size: .82rem; }
.chart-box { position: relative; height: 310px; }
.chart-box.tall { height: 390px; }
.chart-box canvas { width: 100% !important; height: 100% !important; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { appearance: none; border: 1px solid #cfd7e2; background: #fff; color: #536176; padding: 7px 11px; border-radius: 999px; cursor: pointer; font-size: .76rem; font-weight: 800; }
.chip:hover { border-color: #aeb8c6; }
.chip.active { color: white; background: var(--providence); border-color: var(--providence); }
.select { border: 1px solid #cbd4df; background: white; color: var(--ink); border-radius: 10px; padding: 8px 34px 8px 10px; font-size: .82rem; font-weight: 700; }
.insight { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 17px; border-radius: 16px; background: #fff7e8; border: 1px solid #f2d59b; }
.insight-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--gold); font-weight: 950; }
.insight p { margin: 0; color: #5e4a23; }

.filterbar { display: grid; grid-template-columns: minmax(220px,1fr) repeat(3, auto); gap: 10px; align-items: center; margin-bottom: 16px; }
.search { width: 100%; padding: 11px 13px; border: 1px solid #cbd4df; border-radius: 11px; background: #fff; color: var(--ink); }
.compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hospital-card { position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.hospital-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hospital-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--hospital-color, var(--providence)); }
.hospital-card .topline { display: flex; justify-content: space-between; gap: 12px; align-items: start; padding-left: 4px; }
.hospital-card h3 { font-size: 1.13rem; }
.distance { min-width: max-content; color: var(--muted); font-size: .76rem; font-weight: 850; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tag { display: inline-flex; padding: 4px 7px; border-radius: 6px; background: #eef2f6; color: #536176; font-size: .69rem; font-weight: 850; }
.tag.current { background: #e2f5ee; color: #176247; }
.tag.expired { background: #fff0dc; color: #8a5315; }
.tag.summary { background: #eee8f5; color: #5d3b7c; }
.wage-total { font-size: 1.7rem; font-weight: 900; letter-spacing: -.035em; }
.wage-seq { color: var(--muted); font-size: .83rem; }
.contract-period { margin:12px 0; padding:10px 12px; border-radius:10px; background:#f3f5f9; }
.contract-period span,.contract-period strong { display:block; }
.contract-period span { color:#596a81; font-size:.72rem; font-weight:750; }
.contract-period strong { margin-top:3px; font-size:.875rem; line-height:1.5; }
.sequence-controls { display:grid; grid-template-columns:240px minmax(0,1fr); gap:24px; align-items:end; margin:18px 0; }
.sequence-controls label { font-size:.875rem; font-weight:800; }
.sequence-controls label>span:first-of-type { font-weight:500; color:var(--muted); }
.sequence-rate { display:flex; align-items:center; gap:7px; margin-top:6px; border:1px solid #cbd4df; border-radius:10px; padding:0 12px; background:white; }
.sequence-rate input { min-width:0; width:100%; min-height:46px; padding:9px 0; border:0; background:transparent; color:var(--ink); font-size:16px; }
.sequence-controls p { margin:0; color:#596a81; font-size:.875rem; line-height:1.6; }
.sequence-error { color:#922e2e; font-size:.875rem; }
.sequence-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:22px; }
.sequence-summary>div { padding:14px 16px; background:#f3f5f9; border:1px solid var(--line); border-radius:12px; }
.sequence-summary span,.sequence-summary strong,.sequence-summary small { display:block; }
.sequence-summary span { color:#596a81; font-size:.75rem; font-weight:750; }
.sequence-summary strong { margin:5px 0; color:var(--providence); font-size:1.6rem; letter-spacing:-.03em; }
.sequence-summary small { color:#596a81; font-size:.75rem; }
.sequence-details summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-size:.875rem; font-weight:800; }
.sequence-details summary::before { content:'▸'; margin-right:8px; }.sequence-details[open] summary::before { content:'▾'; }
.sequence-table-wrap { overflow-x:auto; }
.sequence-table-wrap table { width:100%; border-collapse:collapse; font-size:.8125rem; }
.sequence-table-wrap caption { text-align:left; color:#596a81; padding:8px 0; }
.sequence-table-wrap th,.sequence-table-wrap td { text-align:left; padding:10px 8px; border-bottom:1px solid var(--line); }
.sequence-table-wrap thead th { background:#f3f5f9; }
.mini-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.benefit { padding: 8px 5px; border-radius: 8px; text-align: center; background: #f4f6f8; color: #526076; font-size: .67rem; font-weight: 850; }
.benefit.yes { background: #e6f4ef; color: #176247; }
.benefit span,.benefit small { display:block; }.benefit small { margin-top:3px; font-size:.65rem; font-weight:650; }
.benefit-scope-note { margin:8px 0 0; color:#596a81; font-size:.75rem; line-height:1.5; }
.related-evidence { margin-top:16px; padding:15px; border:1px solid var(--line); border-radius:12px; background:#f8f9fc; }
.related-evidence h4 { margin:0 0 10px; font-size:.95rem; }.related-evidence ul { margin:0; padding-left:19px; }
.related-evidence li { margin:12px 0; font-size:.85rem; }.related-evidence li>strong,.related-evidence li>span { display:block; color:#596a81; font-size:.75rem; }
.related-evidence a { display:inline-block; min-height:32px; padding:4px 0; }.related-evidence .publisher-link { margin-left:10px; }
.evidence-qualification { padding:12px 14px; border-left:4px solid #b69fce; background:#f6f1fa; color:#554568; font-size:.85rem; }
.evidence-link { display: inline-block; margin-top: 13px; font-size: .78rem; font-weight: 850; }

.explorer { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 18px; }
.explorer-list { max-height: 710px; overflow: auto; padding: 8px; }
.explorer-item { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; padding: 13px 11px; cursor: pointer; border-radius: 9px; color: var(--ink); }
.explorer-item:hover { background: #f1f4f7; }
.explorer-item.active { background: #eee8f5; color: #4d2d6a; }
.explorer-item strong, .explorer-item span { display: block; }
.explorer-item span { color: var(--muted); font-size: .75rem; margin-top: 2px; }
.detail-hero { padding: 25px; color: white; background: linear-gradient(130deg, #12223b66, #172b4b), var(--detail-color, var(--providence)); border-radius: 17px; }
.detail-hero h3[tabindex="-1"]:focus { outline: none; }
.detail-hero h3 { margin: 0 0 6px; font-size: 1.75rem; letter-spacing: -.035em; }
.detail-hero p { margin: 0; color: rgba(255,255,255,.8); }
.detail-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 18px; }
.detail-kpi { padding: 12px; border-radius: 11px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.17); }
.detail-kpi strong, .detail-kpi span { display: block; }
.detail-kpi strong { font-size: 1.25rem; }
.detail-kpi span { color: rgba(255,255,255,.7); font-size: .69rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.terms-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 15px; }
.term { border: 1px solid var(--line); border-radius: 13px; padding: 14px; }
.term h4 { margin: 0 0 6px; font-size: .86rem; }
.term p { margin: 0; color: var(--muted); font-size: .82rem; }
.citation { padding: 13px 15px; border-left: 4px solid var(--gold); background: #fffaf0; border-radius: 0 10px 10px 0; font-size: .82rem; }
.history-section { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.history-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.history-head h3 { margin: 0; font-size: 1.45rem; letter-spacing: -.025em; }
.history-stats { display: flex; flex-wrap: wrap; gap: 7px; }
.history-stats span { padding: 7px 9px; border-radius: 8px; color: var(--muted); background: #f1f4f7; font-size: .72rem; }
.history-stats strong { color: var(--ink); }
.coverage-note { padding: 12px 14px; margin-bottom: 16px; border: 1px solid #ecd195; border-radius: 11px; background: #fff8e9; color: #695225; font-size: .79rem; }
.coverage-note.complete { border-color: #b9decf; background: #edf8f4; color: #1e654f; }
.contract-timeline { position: relative; }
.history-item { display: grid; grid-template-columns: 24px minmax(0,1fr); }
.history-rail { position: relative; }
.history-rail::after { content: ""; position: absolute; top: 15px; bottom: -15px; left: 7px; width: 2px; background: #d9e0e8; }
.history-item:last-child .history-rail::after { display: none; }
.history-rail span { position: absolute; z-index: 1; top: 13px; left: 2px; width: 12px; height: 12px; border: 3px solid white; border-radius: 50%; background: var(--providence); box-shadow: 0 0 0 2px #c9b9d8; }
.history-card { margin: 0 0 13px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; }
.history-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.history-top h4 { margin: 1px 0 0; font-size: 1rem; }
.history-term { color: var(--providence); font-size: .72rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.history-wage { display: grid; grid-template-columns: 75px 1fr; gap: 9px; margin-top: 11px; padding: 10px; border-radius: 9px; background: white; border: 1px solid #e8ecf1; }
.history-wage span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 850; }
.history-wage strong { font-size: .82rem; }
.history-benefits { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 22px; margin: 12px 0; padding-left: 19px; color: #4f5e73; font-size: .8rem; }
.history-evidence { display: flex; flex-wrap: wrap; gap: 9px 13px; align-items: center; color: var(--muted); font-size: .72rem; }
.history-evidence span { flex: 1 1 310px; }

.election-banner { display: grid; grid-template-columns: 1.2fr .8fr; overflow: hidden; padding: 0; }
.election-main { padding: 28px; background: linear-gradient(135deg, #182947, #45305d); color: white; }
.election-main h3 { font-size: 2rem; letter-spacing: -.04em; }
.election-main p { color: #d9e2ef; }
.election-side { padding: 28px; background: #fff; }
.schedule-day { padding: 11px 0; border-bottom: 1px solid var(--line); }
.schedule-day:last-child { border-bottom: 0; }
.schedule-day strong, .schedule-day span { display: block; }
.schedule-day span { color: var(--muted); }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 15px 0; font-weight: 850; }
.qa p { color: var(--muted); margin: 0 0 15px; }

.library-row { display: grid; grid-template-columns: minmax(0,1.4fr) .65fr .5fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.library-row:last-child { border-bottom: 0; }
.library-row a:first-child { font-weight: 800; }
.library-row .meta { color: var(--muted); font-size: .76rem; }
.button { appearance: none; display: inline-block; border: 0; border-radius: 9px; padding: 8px 11px; background: var(--navy); color: white; text-decoration: none; font-size: .76rem; font-weight: 850; cursor: pointer; }
.button:hover { background: var(--providence); }
.source-list li + li { margin-top: 8px; }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.method-note { font-size: .78rem; color: var(--muted); }
.dashboard-filters { padding: 16px 20px; }
.filter-toolbar, .show-filter-results { display: none; }
.filter-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 12px; border: 1px solid #cec0de; border-radius: 10px; color: #563374; background: #f4eef9; font-size: .875rem; font-weight: 800; cursor: pointer; }
.filter-count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 50%; background: #65408c; color: white; font-size: .75rem; line-height: 20px; text-align: center; }
.filter-chevron { font-size: 1rem; }.filter-toggle[aria-expanded="true"] .filter-chevron { transform: rotate(180deg); }
.filter-topline { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 14px; }
.dashboard-selects { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 15px; }
.back-topics { display: none; }
.dashboard-selects label { color: #536176; font-size: .73rem; font-weight: 800; }
.dashboard-selects select { display: block; width: 100%; min-width: 0; margin-top: 4px; height: 42px; }
.filter-context { margin-top: 12px; font-size: .74rem; color: var(--muted); }
.evidence-scope-note { margin: 5px 0 0; font-size: .7rem; color: #66748b; }
.text-button { border: 0; background: transparent; padding: 8px 0; color: #255799; font-size: .76rem; font-weight: 800; cursor: pointer; text-align: left; }
.text-button:hover { text-decoration: underline; }
.overview-nav { display: flex; flex-wrap: wrap; gap: 7px; margin: 26px 0 18px; padding-bottom: 12px; border-bottom: 1px solid #d7dfe9; }
.overview-tab { padding: 12px 18px; background: transparent; border: 1px solid transparent; border-radius: 11px; color: #536176; font-size: .88rem; font-weight: 850; cursor: pointer; }
.overview-tab.active { background: #fff; color: #563374; border-color: #cab8da; box-shadow: 0 3px 10px #12223b08; }
.overview-tab:hover { background: #fff; }
.overview-view { display: none; }.overview-view.active { display: block; }
.benefit-dashboard { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; align-items: start; }
.topic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 19px; }
.topic-button { display: flex; align-items: center; position: relative; gap: 9px; min-height: 83px; padding: 13px 10px 15px; background: #fcfcfe; border: 1px solid #dfe5ec; border-radius: 12px; text-align: left; cursor: pointer; overflow: hidden; color: var(--ink); }
.topic-button:hover { border-color: var(--topic-color); background: #f5f6fa; }
.topic-button.active { border-color: var(--topic-color); box-shadow: 0 0 0 1px var(--topic-color); background: #f3f7fb; }
.topic-code { color: var(--topic-color); font-size: .63rem; font-weight: 900; opacity: .85; align-self: start; margin-top: 3px; }
.topic-name { font-weight: 850; font-size: .85rem; line-height: 1.3; }
.topic-name small { display: block; font-size: .65rem; font-weight: 550; margin-top: 4px; color: #627086; }
.topic-arrow { margin-left: auto; font-size: .9rem; color: var(--topic-color); }
.topic-meter { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #e9edf2; }.topic-meter span { height: 100%; display: block; background: var(--topic-color); }
.topic-detail { scroll-margin-top: 85px; }
.topic-detail-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.topic-detail-head h3 { font-size: 1.7rem; letter-spacing: -.04em; margin: 0; }
.topic-count { display: flex; flex-direction: column; align-items: center; min-width: 64px; color: var(--topic-color); font-size: 2rem; font-weight: 900; line-height: 1.1; padding: 10px; border: 1px solid #e2e7ee; border-radius: 12px; }.topic-count small { font-size: .62rem; font-weight: 750; margin-top: 4px; }
.topic-description { color: #536176; font-size: .85rem; margin: 14px 0 10px; }
.evidence-caption { color: #68758a; font-size: .72rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.provision-card { border: 1px solid #dde4ec; border-left: 3px solid var(--hospital-color); border-radius: 12px; padding: 14px; margin-top: 12px; }
.provision-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }.provision-heading h4 { font-size: .88rem; margin: 0; }.provision-heading>span { color: #626d80; white-space: nowrap; font-size: .7rem; font-weight: 750; }
.provision-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; align-items: center; }.unit-label { color: #66748b; font-size: .66rem; font-weight: 750; }.separate-unit { color: #8a5315; background: #fff0dc; padding: 3px 6px; border-radius: 5px; }
.provision-card ul { padding-left: 17px; margin: 10px 0; color: #495a71; font-size: .8rem; }.provision-card li+li { margin-top: 4px; }
.provision-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; }.provision-links a { font-size: .73rem; font-weight: 800; }
.page-note { font-size: .65rem; margin: 3px 0 0; color: #6a7687; }
.evidence-pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; font-size: .74rem; color: #66748b; }.evidence-pagination>div { display: flex; gap: 7px; }
.page-button { height: 38px; width: 42px; border-radius: 9px; border: 1px solid #cfd7e1; background: #fff; color: #255799; cursor: pointer; font-weight: 850; }
.empty-state { padding: 40px 15px; text-align: center; color: #58677d; font-size: .85rem; }.empty-state strong { color: var(--ink); }
.method-details { padding: 16px 20px; margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; color: #536176; font-size: .78rem; }.method-details summary { cursor: pointer; font-weight: 800; }.method-details p { max-width: 1000px; }
.view-intro { font-size: .85rem; color: #5b6980; max-width: 1000px; }
.matrix-legend { padding: 12px; border-radius: 10px; background: #f1f4f8; color: #536176; font-size: .78rem; }
.table-scroll { overflow-x: auto; max-height: 740px; }.benefit-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .76rem; }.benefit-table caption { text-align: left; margin-bottom: 16px; color: #657187; font-size: .73rem; }
.benefit-table th, .benefit-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; min-width: 82px; }.benefit-table thead th { background: #f4f6f9; position: sticky; top: 0; z-index: 3; color: #536176; }.benefit-table th:first-child { min-width: 210px; max-width: 230px; text-align: left; position: sticky; left: 0; background: #fff; z-index: 2; }.benefit-table thead th:first-child { background: #f4f6f9; z-index: 4; }.benefit-table th small { display: block; margin-top: 4px; font-size: .65rem; font-weight: 500; color: #66748b; }
.matrix-cell { height: 36px; width: 40px; cursor: pointer; border-radius: 8px; font-size: .72rem; font-weight: 850; border: 1px solid; }.matrix-cell.signed { background: #e4f4ed; color: #176247; border-color: #b7dace; }.matrix-cell.reported { background: #f0eaf7; color: #633e87; border-color: #d6c4e8; }.matrix-cell:hover { box-shadow: 0 0 0 2px #255799; }.no-evidence { color: #8a96a8; }
.chart-text { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 12px; font-size: .78rem; color: #536176; }.chart-text-row { display: flex; width: 100%; justify-content: space-between; gap: 12px; padding: 9px 0; border: 0; border-bottom: 1px solid #e8edf2; color: #255799; background: transparent; text-align: left; font-size: .76rem; cursor: pointer; }.chart-text-row small { display: block; font-size: .65rem; color: #657187; margin-top: 3px; }.chart-text-row strong { white-space: nowrap; }
.noscript { margin: 16px auto; padding: 14px; width: min(900px, calc(100% - 32px)); background: #fff3d9; border: 1px solid #e5bf72; border-radius: 12px; }
.footer { padding: 22px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.footer-brand { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; color: var(--ink); font-size: .95rem; }
.footer-brand strong { color: var(--providence); }
.footer p { margin: 10px 0 0; }
.research-footer-links { display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:12px; }
.research-footer-links a { display:inline-flex; align-items:center; min-height:44px; font-size:.875rem; font-weight:750; }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: 1.15fr .85fr; gap: 25px; }
  .hero-visual { min-height: 300px; }.hospital-core { width: 125px; height: 125px; border-radius: 33px; }.orbit.o2 { width: 275px; }
  .g4 { grid-template-columns: repeat(2,1fr); }
  .compare-grid { grid-template-columns: repeat(2,1fr); }
  .explorer { grid-template-columns: 250px 1fr; }
  .benefit-dashboard { grid-template-columns: 1fr 1.1fr; gap: 14px; }.topic-grid { grid-template-columns: 1fr; }.topic-button { min-height: 65px; }.topic-card { max-height: 940px; overflow: auto; }
}
@media (max-width: 760px), (max-width: 950px) and (max-height: 500px) {
  .tabbar-wrap::after { content: 'More sections → swipe tabs'; display: block; padding: 0 14px 5px; text-align: right; font-size: .62rem; color: #66748b; }
  .tabbar { padding-bottom: 5px; }
  .shell { width: min(100% - 22px, 1440px); }
  .header-inner { min-height: auto; padding: 25px 0; grid-template-columns: 1fr; }
  h1 { font-size: 2.55rem; }.hero-copy { font-size: .88rem; }.hero-map { max-width: 390px; width: 100%; margin: 0 auto; }.orbit.o1 { width: 180px; height: 180px; }.orbit.o1::after { left: 85px; }.orbit.o3 { width: 155px; height: 155px; }.motion-control { margin-top: 8px; }
  .panel-title, .chart-head { display: block; }
  .panel-title p { margin-top: 8px; }
  .g2, .g3, .g4, .compare-grid, .election-banner { grid-template-columns: 1fr; }
  .filterbar { grid-template-columns: 1fr 1fr; }
  .filterbar .search { grid-column: 1 / -1; }
  .explorer { grid-template-columns: 1fr; }
  .explorer-list { max-height: 260px; }
  .detail-kpis, .terms-grid, .history-benefits { grid-template-columns: 1fr; }
  .history-head { display: block; }
  .history-stats { margin-top: 9px; }
  .dashboard-selects { grid-template-columns: 1fr; gap: 10px; }.filter-topline { align-items: start; }.filter-topline .controls { gap: 5px; }.chip { font-size: .7rem; padding: 8px; }.text-button { font-size: .72rem; white-space: nowrap; }
  .overview-nav { flex-wrap: nowrap; overflow-x: auto; }.overview-tab { padding: 10px; white-space: nowrap; font-size: .77rem; }.benefit-dashboard { grid-template-columns: 1fr; }.topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.topic-card { max-height: none; overflow: visible; }.topic-name { font-size: .77rem; }.topic-code { display: none; }.topic-name small { font-size: .6rem; }.topic-button { min-height: 78px; }
  .metric-card { min-height: 118px; padding: 16px; }.metric { font-size: 2rem; }.metric-label { font-size: .65rem; }.metric-note { font-size: .71rem; }.g4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .provision-heading { flex-direction: column; gap: 3px; }.benefit-table th:first-child { min-width: 160px; }.dashboard-filters { padding: 14px; }
  .back-topics { display: inline-block; margin-bottom: 12px; min-height: 38px; }#topicGrid { scroll-margin-top: 80px; }
  .library-row { grid-template-columns: 1fr; }
  .library-row .button { width: max-content; }
  /* Phone reading scale: responsive layout, independent of device/browser detection. */
  body { font-size: 16px; line-height: 1.6; }
  .shell { width: calc(100% - 24px); }
  .panel-title h2 { font-size: 1.85rem; line-height: 1.15; }
  .hero-copy, .panel-title p { font-size: 1rem; }
  .brand-row { font-size: .75rem; line-height: 1.5; }
  .brand-mark { flex: 0 0 42px; }
  .brand-name { font-size: 1.375rem; }
  .brand-kicker { font-size: .75rem; letter-spacing: .035em; }
  .status-pill { font-size: .8rem; }
  .map-node { font-size: .75rem; }
  .hero-visual { min-height: 300px; }
  .hero-wage-note { font-size: .8125rem; }
  .motion-control { font-size: .875rem; min-height: 44px; }
  .tab { font-size: .875rem; min-height: 44px; padding: 10px 13px; }
  .tabbar-wrap::after { font-size: .75rem; }
  .panel, .topic-detail, #topicGrid { scroll-margin-top: 100px; }
  .dashboard-selects label { font-size: .875rem; }
  .select, .search { font-size: 16px; min-height: 48px; max-width: 100%; }
  .dashboard-selects select { height: auto; min-height: 48px; }
  .filterbar { grid-template-columns: minmax(0,1fr); }
  .filterbar .search { grid-column: auto; }
  .filter-topline { flex-wrap: wrap; gap: 4px 12px; }
  .filter-topline .controls { flex: 1 1 100%; }
  .chip { min-height: 44px; font-size: .875rem; padding: 9px 11px; }
  .text-button, .button, .page-button { min-height: 44px; font-size: .875rem; }
  .text-button { white-space: normal; }
  .page-button { width: 44px; }
  .filter-context, .evidence-scope-note, .method-note, .chart-sub, .metric-note, .evidence-caption, .page-note, .citation, .method-details, .footer { font-size: .875rem; line-height: 1.55; }
  .eyebrow, .metric-label { font-size: .75rem; line-height: 1.4; }
  .metric-card { min-height: 148px; }
  .overview-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); overflow: visible; gap: 6px; }
  .overview-tab { font-size: .875rem; white-space: normal; min-height: 62px; line-height: 1.35; padding: 10px 6px; }
  .view-intro, .topic-description, .provision-card ul, .term p, .history-benefits, .history-wage strong, .wage-seq { font-size: .9375rem; line-height: 1.6; }
  .topic-name { font-size: .9375rem; }.topic-name small { font-size: .75rem; }
  .topic-button { min-height: 92px; }
  .topic-arrow { display: none; }
  .topic-detail-head h3 { font-size: 1.75rem; }
  .topic-count small, .unit-label, .tag, .provision-heading>span, .distance { font-size: .75rem; }
  .provision-heading h4 { font-size: 1rem; line-height: 1.4; }
  .provision-links { align-items: stretch; }
  .provision-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
  .evidence-pagination { font-size: .875rem; }
  .benefit-table, .benefit-table caption, .matrix-legend { font-size: .875rem; }
  .benefit-table th small { font-size: .75rem; }
  .benefit-table th:first-child { min-width: 155px; max-width: 170px; overflow-wrap: anywhere; }
  .matrix-cell { min-width: 44px; min-height: 44px; font-size: .875rem; }
  .chart-head .select { width: 100%; margin-top: 12px; }
  .chart-text-row { font-size: .9375rem; min-height: 56px; padding: 12px 0; }
  .chart-text-row>span { min-width: 0; }
  .chart-text-row small { font-size: .8125rem; line-height: 1.55; }
  .chart-box.tall { height: 440px; }
  .explorer-item { min-height: 54px; font-size: 1rem; }
  .explorer-item span, .detail-kpi span, .history-term, .history-stats span, .history-evidence, .library-row .meta { font-size: .8125rem; }
  .detail-hero { padding: 20px; }.detail-hero h3 { font-size: 1.5rem; }
  .term h4, .history-top h4, .chart-head h3 { font-size: 1.0625rem; }
  .history-top { flex-wrap: wrap; }
  .history-wage { grid-template-columns: 1fr; }
  .history-evidence { overflow-wrap: anywhere; }
  .library-row { min-width: 0; overflow-wrap: anywhere; }
  .evidence-link { font-size: .9375rem; min-height: 44px; display: inline-flex; align-items: center; }
  .mini-benefits { gap: 4px; }.benefit { font-size: .75rem; }
  /* Compact phone navigation and progressive disclosure. */
  .header-inner { padding: 22px 0; gap: 20px; }
  .hero-intro { text-align: center; }
  .sequence-controls { grid-template-columns:1fr; gap:12px; }
  .sequence-summary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .sequence-summary>div { padding:12px; }
  .sequence-summary>div:last-child { grid-column:1/-1; }
  .sequence-summary strong { font-size:1.4rem; }
  .contract-period span { font-size:.8125rem; }.contract-period strong { font-size:.9375rem; }
  .brand-row { justify-content: center; }
  .brand-identity { text-align: center; }
  h1 { font-size: clamp(1.9rem,8.3vw,2.3rem); line-height: 1.08; }
  .hero-copy { max-width: 35ch; margin-inline: auto; }
  .hero-copy-scope { display: none; }
  .hero-status { justify-content: center; gap: 0; margin-top: 12px; }
  .hero-status .status-pill { padding: 6px 10px; font-size: .75rem; line-height: 1.4; }
  .hero-status .status-pill:not(:first-child) { display: none; }
  .tabbar { display: none; }
  .tabbar-wrap::after { display: none; }
  .mobile-section-nav { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
  .mobile-section-nav label { font-size: .875rem; color: #536176; font-weight: 800; }
  .mobile-section-nav .select { flex: 1; min-width: 0; background: #f4f6fa; }
  .panel, .topic-detail, #topicGrid, .dashboard-filters { scroll-margin-top: 84px; }
  main { padding-top: 22px; }
  .panel-title { text-align: center; margin-bottom: 18px; }
  .panel-title h2 { font-size: 1.65rem; line-height: 1.15; }
  .panel-title p { max-width: 36ch; margin: 10px auto 0; font-size: .9375rem; line-height: 1.55; }
  .dashboard-filters { padding: 13px 14px; }
  .filter-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .filter-toolbar>div { min-width: 0; }
  .filter-toolbar-label { display: block; font-size: .6875rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .08em; color: #66748b; font-weight: 850; }
  #overviewFilterSummary { margin: 3px 0 0; font-size: .8125rem; line-height: 1.45; color: #46566d; }
  .filter-toggle { flex-shrink: 0; }
  .filter-fields { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 14px; }
  .show-filter-results { display: block; width: 100%; margin-top: 14px; }
  .metric-card { min-height: 0; padding: 12px; }
  .metric { margin: 7px 0 5px; font-size: 1.8rem; }
  .metric-label { font-size: .6875rem; line-height: 1.3; letter-spacing: .06em; }
  .metric-note { font-size: .75rem; line-height: 1.4; }
  .overview-nav { margin-top: 20px; }
  .mobile-hospital-picker { display: block; padding: 14px; margin-bottom: 16px; background: white; border: 1px solid var(--line); border-radius: 14px; }
  .mobile-hospital-picker label { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 800; color: #536176; }
  .mobile-hospital-picker select { width: 100%; min-width: 0; }
  .explorer { display: block; }
  .explorer-list { display: none; }
  #explorerDetail { padding: 0; background: transparent; border: 0; box-shadow: none; }
  .detail-hero { padding: 18px 16px; text-align: center; }
  .detail-hero h3 { font-size: 1.4rem; line-height: 1.25; margin: 8px 0; }
  .detail-hero>p { font-size: .875rem; line-height: 1.5; }
  .detail-hero .eyebrow { font-size: .75rem; letter-spacing: .07em; }
  .detail-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 14px; gap: 8px; }
  .detail-kpi { padding: 10px; }
  .detail-kpi strong { font-size: 1.3rem; }
  .detail-kpi span { font-size: .75rem; line-height: 1.35; text-transform: none; letter-spacing: 0; margin-top: 4px; }
  .detail-kpi:last-child { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .detail-kpi:last-child strong { font-size: .875rem; }
  .detail-kpi:last-child span { max-width: 70%; margin: 0; text-align: right; }
  .term { background: white; }
}
@media (min-width: 761px) and (max-width: 950px) and (max-height: 500px) {
  .header-inner { grid-template-columns: 1.2fr .8fr; }
  .hero-visual { min-height: 300px; }
  .dashboard-selects { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-map *, .hero-map *::after { animation-play-state: paused !important; }
  .hero-map:not(.motion-paused) *, .hero-map:not(.motion-paused) *::after { animation-play-state: running !important; }
  .panel { animation: none; }.hospital-card { transition: none; }
}
@media print {
  body { background: white; font-size: 11px; }
  .tabbar-wrap, .controls, .filterbar { display: none !important; }
  .panel { display: block !important; break-before: page; }
  .panel:first-child { break-before: auto; }
  .card { box-shadow: none; }
}
