/* style.css */
*{box-sizing:border-box}body{margin:0;background:#f6f5fa;color:#231c31;font:15px/1.55 system-ui,-apple-system,Segoe UI,sans-serif}header{background:white;border-bottom:1px solid #e6e0ed}.wrap{max-width:1150px;margin:auto;padding:0 22px}.top{display:flex;align-items:center;justify-content:space-between;padding-top:17px;padding-bottom:17px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#29183c;font-weight:800;font-size:22px}.brand small{display:block;font-size:11px;letter-spacing:.04em;font-weight:500;color:#776b84}.logo{display:grid;place-items:center;background:#693ca0;color:white;border-radius:13px;width:42px;height:42px}.release,.muted{color:#746b7d;font-size:13px}.hero{padding:54px 0 35px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.17em;color:#7246a6}.hero h1{font-size:clamp(31px,5vw,52px);line-height:1.1;letter-spacing:-.035em;margin:12px 0}.hero p{max-width:720px;color:#645c6e;font-size:17px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:28px}.stat,.panel{background:white;border:1px solid #e9e4ee;border-radius:15px;box-shadow:0 3px 15px #30213d08}.stat{padding:18px}.stat b{display:block;font-size:29px;color:#4e2b75}.stat span{color:#776b84;font-size:12px}.panel{padding:24px;margin:20px 0}.heading{display:flex;justify-content:space-between;align-items:center;gap:10px}h2{font-size:23px;margin:0 0 6px}.heading p{margin:0 0 17px;color:#746b7d}.filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;margin-bottom:15px}input,select{font:inherit;padding:12px;border:1px solid #ded5e6;border-radius:9px;background:white;min-width:0}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#7b7184;background:#faf8fc}td,th{padding:12px;border-bottom:1px solid #f0ebf3}td{font-size:13px}tr:hover td{background:#faf7fd}button{font:inherit;cursor:pointer;border:1px solid #ddd1e8;background:white;color:#5b3489;border-radius:8px;padding:9px 14px}button:hover{background:#f3eafa}button:disabled{opacity:.35;cursor:default}.hospital{border:0;background:none;color:#5c318c;font-weight:750;padding:0;text-align:left}.paging{display:flex;justify-content:center;align-items:center;gap:16px;padding:20px 0 0}.pill{display:inline-block;border-radius:7px;background:#f0e9f8;color:#5b3489;padding:3px 8px;font-size:12px}.profiletop{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.profiletop p{margin:0;color:#736a7d}.close{white-space:nowrap}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.card{background:#f8f6fb;border-radius:10px;padding:15px}.card b{font-size:25px;display:block;color:#48266b}.card small{color:#766d80}.subheading{font-size:16px;margin:23px 0 9px}.bar{height:12px;border-radius:10px;background:#ebe4f2;overflow:hidden;margin:6px 0 13px}.fill{height:100%;background:#7043a5}.detailgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.detail{border-top:1px solid #eee8f2;padding-top:12px}.detail small{display:block;color:#796f84}.notice{padding:13px;border-radius:9px;background:#f8f4e9;color:#675a3b}footer{padding:32px 0;color:#81778a;font-size:12px}@media(max-width:700px){.stats,.cards{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:1fr}.detailgrid{grid-template-columns:1fr}.release{display:none}.panel{padding:16px}.hero{padding-top:35px}}
.compare-chip{display:inline-flex;align-items:center;gap:8px;background:#f0eafb;border-radius:18px;padding:5px 9px;margin:4px;font-size:12px}.compare-chip button{border:0;background:transparent;cursor:pointer;font-size:18px}.compare-selection{margin:12px 0}#cohortMode{padding:8px;border:1px solid #ccc;border-radius:7px}#cohortResults{margin-top:12px}#addCompare{margin-top:12px}

#profile table th,#profile table td{padding:9px;border-bottom:1px solid #d6d1e4;text-align:left;white-space:nowrap;font-size:13px}#profile table th{font-weight:700}

/* Version 2.8 responsive layouts */
.compare-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0}.compare-toolbar label{flex-basis:100%;font-weight:600}.compare-toolbar input{flex:1 1 230px;min-width:0;padding:12px;border:1px solid #c8bfd7;border-radius:8px}.compare-toolbar button,.compare-row-btn{cursor:pointer;background:#6940a6;color:white;border:0;border-radius:8px;padding:10px 14px;min-height:44px}.compare-row-btn{white-space:nowrap}.chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:16px;margin:20px 0}.chart-card{border:1px solid #ded8e9;border-radius:12px;padding:16px;min-width:0;background:#fff}.chart-card h4{margin:0 0 12px}.chart-card svg{display:block;width:100%;height:auto;overflow:visible}.bar-compare{display:grid;gap:12px}.bar-item{display:grid;grid-template-columns:minmax(90px,1fr) minmax(70px,2fr) 80px;gap:8px;align-items:center;font-size:12px}.bar-label{overflow-wrap:anywhere}.bar-track{position:relative;height:16px;background:#f0edf5;border-radius:4px}.bar-track span{position:absolute;top:0;height:100%;border-radius:3px}.bar-item strong{text-align:right}.tablewrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}button,input,select{font:inherit}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9b70e2;outline-offset:2px}@media(max-width:700px){.wrap{width:calc(100% - 24px)!important}.hero{padding:22px 0}.panel{padding:16px!important}.filters{display:grid!important;grid-template-columns:1fr!important}.filters input,.filters select{width:100%;min-width:0}.stats,.cards,.detailgrid{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))!important}.chart-grid{grid-template-columns:1fr}.bar-item{grid-template-columns:minmax(80px,1fr) minmax(50px,1.4fr) 70px}table{min-width:580px}#compareOutput table{min-width:620px}button{min-height:44px}.top{flex-wrap:wrap}.release{font-size:12px}}

/* CAHStory 2.9: touch-friendly mobile and hospital-specific comparison */
[hidden]{display:none!important} .row-actions,.actions{display:flex;gap:8px;flex-wrap:wrap}.row-actions button{white-space:nowrap}.chart-scroll{width:100%;overflow-x:auto}.chart-scroll svg{width:100%;min-width:340px;height:auto;display:block}.chart-legend{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;margin-top:8px}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{display:inline-block;width:11px;height:11px;border-radius:50%}.chart-card{min-width:0}.chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.chart-card h4{margin-top:0}.compare-chip{display:inline-flex;align-items:center;gap:8px;margin:4px;padding:7px 10px;border-radius:20px;background:#eee6fa;color:#321b55}.compare-chip button{min-width:28px;min-height:28px}.tablewrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.tablewrap table{min-width:620px}button,input,select{min-height:42px}button{cursor:pointer}.card b{overflow-wrap:anywhere}#compareOutput{margin:14px 0}.panel{scroll-margin-top:18px}@media(max-width:720px){.wrap{width:min(100% - 24px,1200px)}.hero h1{font-size:clamp(28px,7vw,44px)}.chart-grid{grid-template-columns:1fr}.filters,.compare-toolbar{display:flex;flex-direction:column;align-items:stretch}.filters input,.filters select,.compare-toolbar input,.compare-toolbar button{width:100%;max-width:none}.row-actions{flex-direction:column}.row-actions button{width:100%}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.heading{align-items:flex-start;flex-wrap:wrap}.top{flex-wrap:wrap;gap:10px}.release{font-size:12px}.panel{padding:16px}.chart-card{padding:12px}}@media(max-width:420px){.cards{grid-template-columns:1fr}.chart-scroll svg{min-width:300px}}

/* Version 3.0 hospital story and small-screen refinements */
.story-block{padding:clamp(16px,3vw,28px);border:1px solid #d7c8ec;background:linear-gradient(145deg,#faf7ff,#fff);border-radius:18px;margin:20px 0 24px}.story-block p{line-height:1.75;max-width:95ch}.story-block h3{margin:5px 0 12px}.story-tag{font-size:.8rem;color:#67429b;background:#efe6fa;border-radius:99px;padding:6px 12px;white-space:normal}.chart-card{min-width:0}.chart-scroll svg{width:100%;height:auto;min-width:320px}.tablewrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}@media(max-width:640px){.story-block{padding:16px}.story-block .heading{display:block}.story-tag{display:inline-block;margin-top:10px}.chart-grid{display:grid;grid-template-columns:minmax(0,1fr)}.chart-card{padding:12px}.chart-scroll svg{min-width:290px}.hero h1{font-size:clamp(1.7rem,7vw,2.5rem)}.compare-toolbar{flex-wrap:wrap}.compare-toolbar input{min-width:0;flex:1 1 100%}button,input,select{min-height:44px}}

.methodology{margin:20px 0;padding:15px 20px;background:#fff;border:1px solid #e6e0ed;border-radius:12px}.methodology summary{cursor:pointer;font-weight:650;color:#5b3489}.baseline-chip,.baseline-cell{background:#e9dcfa!important;color:#321b55;font-weight:700}.delta-cell{font-weight:600}.comparison-story{border-left:4px solid #7546b7;background:#faf7ff;border-radius:8px;padding:14px 18px;margin:16px 0}.comparison-story p{line-height:1.6}.compare-chip{max-width:100%;overflow-wrap:anywhere}@media(max-width:640px){.comparison-story{padding:12px}.compare-chip{font-size:12px}}

/* V3.4 clarity, hierarchy, accessibility */
html{scroll-behavior:smooth}body{background:#f7f6fa}header{position:sticky;top:0;z-index:10}.hero{padding:38px 0 22px}.hero p{margin-bottom:0}.quick-nav,.profile-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.quick-nav a,.profile-tabs a,.share-link{display:inline-flex;align-items:center;text-decoration:none;color:#60378c;background:#fff;border:1px solid #e4d8ed;padding:9px 13px;border-radius:24px;font-size:13px;font-weight:650}.quick-nav a:hover,.profile-tabs a:hover{background:#eee5fa}.profile-tabs{border-top:1px solid #eee8f2;border-bottom:1px solid #eee8f2;padding:10px 0}.profile-actions{display:flex;gap:12px;flex-wrap:wrap;margin:15px 0}.primary{background:#663b9b;color:white;border-color:#663b9b}.primary:hover{background:#4d267d}.profile-section{padding-top:12px;scroll-margin-top:90px}.profile-section h3{font-size:21px;margin:20px 0 12px}.quality-line{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;border-bottom:1px solid #eee8f2;padding:12px 0}.small-value{font-size:16px!important}.more-data{border:1px solid #e8e1ed;border-radius:10px;margin:18px 0;padding:14px}.more-data summary{cursor:pointer;font-weight:700;color:#5c3489}.more-data[open] summary{margin-bottom:16px}.story-block{background:#fbfaff;border:1px solid #eee8f2}.story-block p{margin:9px 0;line-height:1.65}.story-block .heading{margin-bottom:8px}.profile-heading{scroll-margin-top:90px}.panel{scroll-margin-top:90px}a:focus-visible,summary:focus-visible{outline:3px solid #9b70e2;outline-offset:2px}footer a{color:inherit}@media(max-width:720px){header{position:static}.hero{padding:22px 0 10px}.quick-nav a,.profile-tabs a{flex:1 1 auto;justify-content:center}.profile-actions>*{flex:1 1 100%;justify-content:center}.profile-section{scroll-margin-top:16px}.quality-line{display:grid;gap:3px}.tablewrap table{min-width:570px}.panel{margin:12px 0}.story-block p{line-height:1.55}}

/* Highlights responsive controls */
.highlight-filters label{display:flex;flex-direction:column;gap:.4rem;min-width:0;font-weight:600;font-size:.9rem}.highlight-filters select{width:100%;min-width:0}.highlight-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}#highlightResults button{white-space:nowrap}#highlightResults td{vertical-align:middle}#highlightSummary{margin-bottom:12px}@media(max-width:760px){.highlight-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#highlights .tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch}#highlights table{min-width:560px}}@media(max-width:420px){.highlight-filters{grid-template-columns:1fr 1fr;gap:8px}}

/* 3.7 usability */
.state-map{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));grid-template-rows:repeat(6,56px);gap:5px;overflow-x:auto;padding:8px 2px 14px;min-width:0}.state-tile{background:#ede5f7;color:#402365;border:1px solid #cbb5e5;border-radius:8px;font-weight:750;min-width:0;padding:4px 1px;font-size:12px;cursor:pointer}.state-tile small{display:block;font-size:10px;font-weight:400}.state-tile:hover,.state-tile:focus-visible{background:#7345ac;color:white;outline:2px solid #47276f}.scorecard{margin:20px 0}.score-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.score-item{background:#f5f1fa;border:1px solid #e4d9ef;border-radius:12px;padding:14px;display:grid;gap:7px}.score-item strong{font-size:1.3rem}.score-item small{color:#645c6f}.signals{background:#f7f3fb;border-radius:12px;padding:12px 20px;margin:16px 0}.signals li{margin:5px 0}html{scroll-behavior:smooth}button,input,select{min-height:40px}@media(max-width:700px){.score-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.state-map{grid-template-rows:repeat(6,43px);gap:3px}.state-tile{font-size:10px}.state-tile small{font-size:8px}.quick-nav{overflow-x:auto;white-space:nowrap}.chart-grid{grid-template-columns:minmax(0,1fr)}.panel{min-width:0}.chart-card{min-width:0}}@media(max-width:400px){.score-grid{grid-template-columns:1fr 1fr}.state-map{grid-template-rows:repeat(6,36px)}.state-tile{font-size:9px}}

/* Dedicated pages: keep DOM present for shared data engine, show only relevant content. */
body[data-page="index"] #compareSection,body[data-page="index"] #highlights,body[data-page="index"] #insights,body[data-page="index"] #mapSection,body[data-page="index"] #methodology,
body[data-page="compare"] #directory,body[data-page="compare"] #highlights,body[data-page="compare"] #insights,body[data-page="compare"] #mapSection,body[data-page="compare"] #methodology,
body[data-page="highlights"] #directory,body[data-page="highlights"] #compareSection,body[data-page="highlights"] #insights,body[data-page="highlights"] #mapSection,body[data-page="highlights"] #methodology,
body[data-page="insights"] #directory,body[data-page="insights"] #compareSection,body[data-page="insights"] #highlights,body[data-page="insights"] #mapSection,body[data-page="insights"] #methodology,
body[data-page="map"] #directory,body[data-page="map"] #compareSection,body[data-page="map"] #highlights,body[data-page="map"] #insights,body[data-page="map"] #methodology,
body[data-page="about"] #directory,body[data-page="about"] #compareSection,body[data-page="about"] #highlights,body[data-page="about"] #insights,body[data-page="about"] #mapSection{display:none!important}
body:not([data-page="index"]) #profile{display:none!important}
body[data-page="index"] #profile:not([hidden]){display:block!important}
.quick-nav a[aria-current="page"]{background:#ede7ff;color:#4d269a;font-weight:700}
@media(max-width:600px){.quick-nav{display:flex;overflow-x:auto;flex-wrap:nowrap;gap:8px;padding-bottom:8px;scroll-snap-type:x proximity}.quick-nav a{white-space:nowrap;flex-shrink:0;scroll-snap-align:start}.tablewrap{overflow-x:auto;max-width:100%}main.wrap{min-width:0}}

/* Prelaunch usability refinements */
.page-intro{padding:12px 0 2px}.page-intro h1{font-size:clamp(1.6rem,4vw,2.35rem);line-height:1.2;margin:12px 0 4px;color:#332143}
.map-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;padding-bottom:8px}
.map-scroll:focus-visible{outline:3px solid #9b70e2;outline-offset:2px}
@media(max-width:760px){.map-scroll .state-map{width:720px;min-width:720px;grid-template-rows:repeat(6,54px);gap:5px}.map-scroll .state-tile{font-size:12px;min-height:44px}.map-scroll .state-tile small{font-size:10px}}

/* V3.9 Watch and page separation */
body[data-page="watch"] #directory,body[data-page="watch"] #compareSection,body[data-page="watch"] #highlights,body[data-page="watch"] #insights,body[data-page="watch"] #mapSection,body[data-page="watch"] #methodology,body[data-page="watch"] #profile{display:none!important}
#watchSection .tablewrap{overflow-x:auto}#watchSection table{min-width:680px}#watchSection a{color:#60378c;font-weight:700}
@media(max-width:600px){#watchSection .tablewrap{max-width:100%}.page-intro{padding-top:4px}}

/* 4.0 transparency and maintenance page */
.maintenance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0 60px}.maintenance-card{border:1px solid #e5dff0;background:#fff;border-radius:16px;padding:22px;line-height:1.65;min-width:0}.maintenance-card h2{margin:0 0 12px;font-size:1.16rem}.maintenance-card p{margin:8px 0}.maintenance-card li{margin:6px 0}.maintenance-card code{overflow-wrap:anywhere}@media(max-width:740px){.maintenance-grid{grid-template-columns:1fr}.maintenance-card{padding:18px}}

/* CAH News */
.news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.news-card{min-width:0;background:#fff;border:1px solid #e7e0ef;border-radius:16px;padding:20px;line-height:1.55}.news-card h3{font-size:1.18rem;margin:10px 0}.news-card p{margin:8px 0}.news-card a{color:#60378c;font-weight:700;overflow-wrap:anywhere}.news-meta{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;font-size:.82rem;color:#675b74}.news-tag{border-radius:20px;padding:4px 10px;background:#eee7f8;color:#4d269a;font-weight:700}.news-impact{background:#f7f4fa;border-radius:10px;padding:10px 12px;margin:14px 0}.news-impact p{margin:4px 0 0}@media(max-width:740px){.news-grid{grid-template-columns:1fr}.news-card{padding:16px}}

/* 4.2 visual consistency and accessible interactions */
:root{--brand:#60378c;--ink:#29213a;--line:#e7e1ed;--muted:#655d71;--surface:#fff}
body{color:var(--ink);font-size:15px;line-height:1.58;-webkit-font-smoothing:antialiased}
.wrap{width:100%;max-width:1200px;padding-inline:clamp(16px,3vw,32px)}
.top{gap:14px;flex-wrap:wrap}.release{font-size:.78rem;color:var(--muted)}
.hero{padding-block:clamp(26px,4vw,52px) 18px;max-width:860px}.hero h1{font-size:clamp(2rem,4.5vw,3.5rem);letter-spacing:-.035em;line-height:1.12;margin:8px 0 14px}.hero p{font-size:clamp(1rem,1.45vw,1.14rem);color:var(--muted);max-width:67ch}
.quick-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;scrollbar-width:thin;padding:6px 2px 12px;margin:12px 0 20px;scroll-snap-type:x proximity}
.quick-nav a{white-space:nowrap;flex:0 0 auto;min-height:44px;display:inline-flex;align-items:center;justify-content:center;scroll-snap-align:start}
.quick-nav a[aria-current="page"]{background:#60378c;color:#fff;border-color:#60378c}
.panel,.maintenance-card,.news-card,.chart-card{border:1px solid var(--line);box-shadow:0 2px 12px rgba(43,24,63,.035);border-radius:16px}
.panel{padding:clamp(16px,2.6vw,28px);margin-block:18px}.panel h2,.maintenance-card h2{letter-spacing:-.015em}
.filters{gap:12px}.filters label{min-width:0}input,select,button{font:inherit;max-width:100%;min-height:44px;border-radius:9px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}
:where(a,button,input,select,summary):focus-visible{outline:3px solid #9669d2;outline-offset:3px}
.tablewrap{border:1px solid #ebe5ef;border-radius:12px;overflow-x:auto;max-width:100%}.tablewrap table{border-collapse:separate;border-spacing:0;width:100%}.tablewrap th{position:sticky;top:0;background:#f6f2fa;color:#433451;text-align:left;font-size:.82rem;white-space:nowrap;z-index:1}.tablewrap th,.tablewrap td{padding:12px 14px;border-bottom:1px solid #eee8f2}.tablewrap tr:last-child td{border-bottom:0}.tablewrap tbody tr:hover{background:#faf8fc}
.news-card{display:flex;flex-direction:column;gap:6px}.news-card .news-impact{margin-top:auto}.news-meta time{font-variant-numeric:tabular-nums}
.section-kicker{font-size:.75rem;letter-spacing:.13em;font-weight:800;color:var(--brand)}.home-explore{margin:30px 0}.home-explore h2{margin:6px 0 18px;font-size:clamp(1.3rem,2.5vw,1.8rem)}.explore-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.explore-card{display:flex;flex-direction:column;align-items:flex-start;gap:9px;text-decoration:none;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;min-height:205px;transition:box-shadow .15s,border-color .15s}.explore-card:hover{border-color:#ac92cc;box-shadow:0 7px 25px rgba(76,42,109,.1)}.explore-card strong{font-size:1.12rem}.explore-card>span:not(.explore-symbol):not(.explore-more){color:var(--muted);font-size:.91rem}.explore-symbol{background:#f1eaf8;color:#60378c;border-radius:12px;width:40px;height:40px;display:grid;place-items:center;font-size:1.35rem}.explore-more{margin-top:auto;color:#60378c;font-weight:750;font-size:.85rem}
.skip-link{position:absolute;top:-80px;left:16px;z-index:100;background:#fff;padding:12px 16px;border:2px solid #60378c;border-radius:8px}.skip-link:focus{top:8px}
footer{margin-top:36px}footer .wrap{padding-block:24px}
@media(max-width:950px){.explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.top{align-items:flex-start}.release{width:100%}.hero{padding-top:22px}.quick-nav{margin-block:10px 14px}.explore-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.explore-card{padding:14px;min-height:190px}.explore-card strong{font-size:1rem}.panel{margin-block:12px}.tablewrap th,.tablewrap td{padding:10px 12px}.news-grid{grid-template-columns:1fr}.score-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.explore-grid{grid-template-columns:1fr}.explore-card{min-height:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.explore-card{transition:none}}

/* v4.3: make the full profile unmissable on search landing pages */
.full-profile-cta{margin:20px 0 24px;padding:22px 24px;border:1px solid #d6c4e8;border-radius:16px;background:#f7f2fc;color:#2c2040}
.full-profile-cta strong{font-size:1.25rem}.full-profile-cta p{margin:8px 0 16px}
.primary-profile-link{display:inline-block;background:#60378c;color:#fff!important;padding:13px 18px;border-radius:9px;text-decoration:none;font-weight:700}
.primary-profile-link:hover,.primary-profile-link:focus-visible{background:#45246b;text-decoration:underline}
@media(max-width:600px){.full-profile-cta{padding:17px}.primary-profile-link{display:block;text-align:center}}

/* ux.css */
/* CAHStory 4.5 public navigation and accessibility */
.quick-nav{display:flex;align-items:center;gap:5px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:7px}.quick-nav a{white-space:nowrap;flex-shrink:0}.quick-nav .nav-search-link{margin-left:auto;background:#60378c;color:#fff!important;border-radius:9px;padding:10px 14px;font-weight:750}.quick-nav .nav-search-link:hover{background:#45246b}.ux-helper{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:#f7f3fa;border:1px solid #e9def1;border-radius:12px;padding:11px 15px;margin:12px 0 18px;font-size:.9rem}.ux-helper a{font-weight:750;color:#60378c}.getting-started{border-top:1px solid #e9e3ed;padding-top:30px}.getting-started .landing-tile{min-height:175px}.quick-nav a:focus-visible,.landing-tile:focus-visible,.ux-helper a:focus-visible{outline:3px solid #b98ce1;outline-offset:3px}@media(max-width:650px){.quick-nav .nav-search-link{position:sticky;right:0;box-shadow:-8px 0 15px #fff}.ux-helper{font-size:.85rem}.getting-started .landing-grid{grid-template-columns:1fr}.getting-started .landing-tile{min-height:0}}
/* friendly.css */
/* CAHStory 4.6: clearer hierarchy, colorful highlights, full-detail access */
:root{--purple-strong:#6533a3;--purple-light:#f5efff;--teal-strong:#087b79;--teal-light:#e7f7f5;--amber-strong:#925a08;--amber-light:#fff5dd}
body{line-height:1.55}a,button,input,select{transition:box-shadow .16s ease,background-color .16s ease,transform .16s ease}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9b69e5;outline-offset:3px}
.landing-hero{background:linear-gradient(125deg,#f7f1ff 0%,#f6faff 65%,#e9f8f6 100%);border:1px solid #e7dbf4;border-radius:24px;padding:clamp(22px,4vw,46px)}
.landing-tile,.explore-card{border:1px solid #e6dfec;border-radius:16px;box-shadow:0 3px 14px rgba(56,31,87,.05)}.landing-tile:hover,.explore-card:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(56,31,87,.12);border-color:#b8a0d9}
.landing-tile:nth-child(6n+1) .landing-icon{background:#eee2ff;color:#6431a0}.landing-tile:nth-child(6n+2) .landing-icon{background:#e2f4f1;color:#087b79}.landing-tile:nth-child(6n+3) .landing-icon{background:#fff1d6;color:#925a08}.landing-tile:nth-child(6n+4) .landing-icon{background:#e7efff;color:#305ea3}.landing-tile:nth-child(6n+5) .landing-icon{background:#fceaf0;color:#a73e69}.landing-tile:nth-child(6n+6) .landing-icon{background:#e5f4e8;color:#2b7b4d}
.spotlight-section{margin:32px 0 48px}.spotlight-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:0 0 18px}.spotlight-heading h2{margin:6px 0}.spotlight-heading p{margin:0;color:#62606b}.spotlight-link{color:var(--purple-strong);font-weight:700;white-space:nowrap}.spotlight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.spotlight-card{display:flex;flex-direction:column;gap:12px;min-width:0;text-decoration:none;color:inherit;background:#fff;border:1px solid #e6e0eb;border-top:5px solid #7445a6;border-radius:16px;padding:20px;box-shadow:0 5px 18px rgba(35,22,51,.05)}.spotlight-card:nth-child(3n+2){border-top-color:#0a8984}.spotlight-card:nth-child(3n+3){border-top-color:#d19a35}.spotlight-card:hover{box-shadow:0 10px 28px rgba(35,22,51,.12);transform:translateY(-2px)}.spotlight-card strong{font-size:1.05rem;line-height:1.35}.spotlight-tag{font-size:.76rem;color:#615c6d;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.spotlight-metric{font-size:1.7rem;font-weight:800;letter-spacing:-.035em}.spotlight-metric.up{color:#087b79}.spotlight-metric.down{color:#9c5634}.spotlight-description{color:#595765;font-size:.9rem;line-height:1.5;flex:1}.spotlight-more{color:#6533a3;font-weight:750;font-size:.89rem}.news-heading{margin-top:34px}.news-card{border-top-color:#0b7b79}.news-card .spotlight-description{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
/* Consistent section emphasis without hiding tables or details */
.hero{border-left:5px solid #7b4db0;padding-left:clamp(14px,3vw,26px)}.quick-nav a[aria-current="page"]{background:#efe6fa;color:#53278c;font-weight:800;border-radius:10px}.card{border-radius:14px}table{font-variant-numeric:tabular-nums}thead th{background:#f3eef9}tbody tr:nth-child(even){background:rgba(108,68,150,.035)}tbody tr:hover{background:rgba(108,68,150,.08)}
@media(max-width:760px){.spotlight-grid{grid-template-columns:1fr}.spotlight-heading{align-items:start;flex-direction:column}.spotlight-link{white-space:normal}.spotlight-card{padding:17px}.landing-hero{padding:20px}.landing-hero-panel{max-width:100%}}
@media(min-width:761px) and (max-width:1020px){.spotlight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){a,button,input,select{transition:none!important}.spotlight-card:hover,.landing-tile:hover,.explore-card:hover{transform:none}}

/* distinct.css */
/* CAHStory 4.7: distinct editorial visual system, layered on top of existing functionality */
:root{--v47-ink:#231936;--v47-purple:#62349a;--v47-teal:#087f83;--v47-blue:#315eac;--v47-gold:#a46b14;--v47-border:#e5deed}
body{background:linear-gradient(180deg,#fbf9ff 0,#f7f6fa 390px,#f7f6fa 100%);color:var(--v47-ink)}
header{border-bottom:3px solid #7145aa;box-shadow:0 2px 16px #3820510a}
.brand{letter-spacing:-.045em}.logo{background:linear-gradient(135deg,#7042b2,#3b2474);box-shadow:0 5px 14px #60378c30}
.quick-nav{background:#fff;border:1px solid #eae4f1;border-radius:14px;padding:8px;box-shadow:0 4px 18px #32204d09;gap:4px}
.quick-nav a{border-radius:9px;font-weight:650;padding-inline:13px}
.quick-nav a:hover{background:#f1eafb;color:#4c237c}
.quick-nav a[aria-current=page],body[data-page=home] .quick-nav a[href="index.html"]{background:#60378c!important;color:#fff!important;box-shadow:0 3px 9px #60378c26}
.nav-search-link{background:#e6f5f4!important;color:#096f73!important;font-weight:800!important}
.landing-hero{position:relative;overflow:hidden;background:linear-gradient(117deg,#f0e6ff 0%,#faf8ff 52%,#e3f6f3 100%);border:1px solid #d7c5ef;border-radius:26px;box-shadow:0 16px 38px #39205a0d}
.landing-hero:before{content:"";position:absolute;width:230px;height:230px;border:40px solid #fff7;border-radius:50%;right:-100px;top:-120px;pointer-events:none}
.landing-hero-copy{position:relative;z-index:1}.landing-hero h1{color:#2c174d;font-size:clamp(2.4rem,5vw,4.25rem);letter-spacing:-.055em;line-height:1.07}
.landing-hero-copy>p{color:#50415e;font-size:clamp(1rem,1.7vw,1.2rem)}
.landing-search{background:#fff;border:1px solid #ded2eb;border-radius:16px;padding:15px;box-shadow:0 6px 18px #43236b0c}
.landing-search-row button{background:#5d318f;min-height:48px;font-weight:800}
.landing-hero-panel{border:1px solid #d7e6e8;box-shadow:0 8px 22px #174d4a0a;background:#ffffffee}
.landing-hero-panel .landing-kicker{color:#087f83}
.landing-stat strong{font-variant-numeric:tabular-nums;letter-spacing:-.045em;color:#3c2461}
.landing-section-title,.spotlight-heading{border-bottom:1px solid #e5deed;padding-bottom:15px}
.landing-section h2,.spotlight-heading h2,.page-intro h1{letter-spacing:-.035em;color:#2e2047}
.landing-kicker,.section-kicker{display:inline-block;font-size:.72rem;font-weight:850;letter-spacing:.15em}
.landing-tile{border-top:5px solid #7342aa;padding:24px;box-shadow:0 5px 18px #2e1d4309;min-height:208px}
.landing-tile:nth-child(6n+2){border-top-color:#0a8984}.landing-tile:nth-child(6n+3){border-top-color:#d49a36}.landing-tile:nth-child(6n+4){border-top-color:#315eac}.landing-tile:nth-child(6n+5){border-top-color:#ad4d77}.landing-tile:nth-child(6n+6){border-top-color:#3d895e}
.landing-tile strong{font-size:1.17rem;letter-spacing:-.02em}
.landing-tile em{display:inline-flex;align-items:center;gap:6px;margin-top:auto}
.landing-feature:first-child{background:#f0e8fc;border:1px solid #e0cff6}.landing-feature:nth-child(2){background:#e9f6f5;border:1px solid #cdeae6}
.spotlight-card{border-radius:18px;border-top-width:6px;box-shadow:0 8px 22px #2e1d4309}
.spotlight-metric{font-size:clamp(1.65rem,2.6vw,2.15rem);letter-spacing:-.05em}
.spotlight-tag,.news-tag{width:fit-content;border-radius:999px;background:#f1eafa;padding:5px 10px;color:#58358b}
.spotlight-card:nth-child(3n+2) .spotlight-tag{background:#e2f4f1;color:#096c6c}
.spotlight-card:nth-child(3n+3) .spotlight-tag{background:#fff2da;color:#82550b}
.panel{background:#fff;border:1px solid var(--v47-border);box-shadow:0 5px 22px #32204d09}
.panel>h2:first-child,.panel>h3:first-child{border-left:4px solid #7342aa;padding-left:13px;letter-spacing:-.025em}
.score-item{background:#f6f1fc;border-top:4px solid #7445a6;border-radius:12px;min-width:0}
.score-item:nth-child(4n+2){background:#eaf7f6;border-top-color:#098a83}.score-item:nth-child(4n+3){background:#edf3ff;border-top-color:#426cbb}.score-item:nth-child(4n+4){background:#fff7e7;border-top-color:#c88d2b}
.score-item strong{font-variant-numeric:tabular-nums;letter-spacing:-.035em}
.chart-card{border-top:4px solid #7445a6}.chart-card:nth-child(2n){border-top-color:#0b8581}
.tablewrap{box-shadow:0 2px 12px #281a3c06}.tablewrap th{background:#eee8f7;color:#3b2653;font-size:.8rem;text-transform:none}.tablewrap tbody tr:nth-child(even){background:#faf8fd}.tablewrap tbody tr:hover{background:#edf7f6}
.news-card{border-top:5px solid #0a8984}.news-card:nth-child(3n+2){border-top-color:#7145aa}.news-card:nth-child(3n+3){border-top-color:#c28b2b}
.news-impact{background:#edf7f6;border-left:3px solid #0a8984}
.page-intro{background:linear-gradient(100deg,#f1e9fc,#fff);border:1px solid #e7dcef;border-radius:18px;padding:22px 25px;margin:12px 0 20px}
.page-intro h1{margin:4px 0 8px}.hero{border-left:6px solid #7145aa}
.landing-disclosure{border-left:3px solid #c6b7d8;padding-left:12px}
footer{border-top:1px solid #e8e1ed;background:#fff}
@media(max-width:760px){.landing-hero{border-radius:19px}.landing-hero h1{font-size:clamp(2.1rem,9vw,3.15rem)}.landing-tile{min-height:165px;padding:19px}.quick-nav{border-radius:11px}.page-intro{padding:16px}.landing-search{padding:12px}.score-grid{gap:9px}.score-item{padding:12px}.spotlight-heading{padding-bottom:12px}}
@media(prefers-reduced-motion:reduce){.landing-tile,.spotlight-card{transition:none!important}}

/* community.css */
/* CAHStory 4.8: community-first editorial design */
.brand small{font-weight:650;color:#685a78;letter-spacing:0;font-size:11px}
body[data-page="home"] .landing-hero{grid-template-columns:minmax(0,1.65fr) minmax(270px,.8fr);background:linear-gradient(125deg,#f6f0fb 0%,#fff 68%,#f2f8f7 100%);border:1px solid #e4d9ec;box-shadow:0 10px 32px #32204d0a}
body[data-page="home"] .landing-hero:before{border-color:#e8dff866}
body[data-page="home"] .landing-hero h1{font-size:clamp(2.15rem,4.2vw,3.65rem);line-height:1.12;max-width:690px;color:#34204d}
body[data-page="home"] .landing-hero-copy>p{max-width:67ch;color:#51485c;font-size:1.075rem;line-height:1.78}
body[data-page="home"] .landing-hero-panel{background:#fff;border:1px solid #e7dfed;padding:27px;gap:12px;justify-content:center;box-shadow:0 7px 25px #32204d08}
.landing-hero-panel h2{font-size:1.65rem;line-height:1.2;color:#32214a;margin:4px 0}
.landing-hero-panel>p{color:#60586a;font-size:.94rem;line-height:1.65;margin:0 0 8px}
.community-question{border-top:1px solid #ebe5ef;padding:12px 0;display:flex;flex-direction:column;gap:3px}
.community-question span{font-size:.8rem;color:#6b6176;font-weight:700}
.community-question strong{font-size:.94rem;color:#352747}
.community-story-link{display:inline-flex;align-items:center;justify-content:center;background:#60378c;color:#fff!important;text-decoration:none;padding:12px 14px;border-radius:10px;font-weight:750;margin-top:4px;text-align:center}
.community-story-link:hover{background:#482569}
body[data-page="home"] .landing-search{box-shadow:none;background:#fff;border:1px solid #ded5e7}
body[data-page="home"] .landing-tile{border-top-width:3px}
/* Calm, focused directory: avoid competing saturated color panels. */
body[data-page="index"]{background:#faf9fc}
body[data-page="index"] .hero{border:0;border-radius:18px;background:#f3eef8;padding:30px 32px;margin:16px 0 24px}
body[data-page="index"] .hero h1{color:#332044}
body[data-page="index"] .hero p{color:#5d5266}
body[data-page="index"] .panel{background:#fff;border:1px solid #e8e3ed;box-shadow:0 3px 16px #32204d06}
body[data-page="index"] .panel>h2:first-child{border-left:0;padding-left:0}
body[data-page="index"] .stat,body[data-page="index"] .score-item{background:#fff;border:1px solid #e7e2ec;border-top:3px solid #c6b5d8;box-shadow:none}
body[data-page="index"] .score-item:nth-child(n){background:#fff;border-top-color:#c6b5d8}
body[data-page="index"] .tablewrap th{background:#f5f2f8;color:#473853}
body[data-page="index"] .tablewrap tbody tr:nth-child(even){background:#fcfbfd}
body[data-page="index"] .tablewrap tbody tr:hover{background:#f2edf8}
body[data-page="index"] .hospital{color:#583187;text-decoration:underline;text-decoration-color:#c9b9da;text-underline-offset:3px}
body[data-page="index"] .hospital:hover{text-decoration-color:#583187}
body[data-page="index"] .quick-nav a[aria-current="page"]{background:#60378c!important;color:#fff!important}
body[data-page="index"] .nav-search-link{background:#f1eaf8!important;color:#583187!important}
@media(max-width:780px){body[data-page="home"] .landing-hero{grid-template-columns:1fr}body[data-page="home"] .landing-hero-panel{display:flex}body[data-page="index"] .hero{padding:22px 19px}}

/* clarity.css */
/* CAHStory 5.1 — clarity-first, purple-led design */
:root{--ink:#262136;--deep:#38245f;--purple:#604098;--teal:#607c7b;--gold:#a88852;--line:#e5e1eb;--wash:#f6f5f8}
html{font-size:16px}body{background:#f8f7fa;color:#282238;font-size:1rem;line-height:1.55}header{background:#fff}.top{min-height:72px}.brand{font-size:1.65rem;font-weight:800;letter-spacing:-.055em}.brand .logo{font-size:1.05rem;width:38px;height:38px}.quick-nav{margin-top:0;padding:8px 0 12px;gap:4px}.quick-nav a{font-size:.94rem;font-weight:650;padding:10px 13px;color:#493b5e}.quick-nav a:hover{background:#f0ebf7;color:#38245f}.quick-nav a[aria-current=page],body[data-page=home] .quick-nav a[href="index.html"]{background:#eae3f4!important;color:#38245f!important}.nav-search-link{display:none}
.clarity-hero{margin-top:24px;background:#3b2665;color:white;border-radius:20px;padding:clamp(30px,5vw,70px);position:relative;overflow:hidden}.clarity-hero:after{content:"";position:absolute;right:-120px;top:-220px;width:500px;height:500px;border-radius:50%;border:90px solid #ffffff0b;pointer-events:none}.clarity-copy{position:relative;z-index:1;max-width:850px}.clarity-overline{color:#d6c7eb;font-size:.84rem;letter-spacing:.085em;font-weight:750;margin:0 0 20px}.clarity-hero h1{color:white!important;font-size:clamp(2.45rem,5.2vw,4.8rem);line-height:1.09;letter-spacing:-.055em;max-width:790px;margin:0 0 20px}.clarity-lead{font-size:clamp(1.08rem,1.55vw,1.25rem);line-height:1.65;color:#eee9f6;max-width:750px;margin:0 0 30px}.clarity-search{background:#fff;color:#30243e;border-radius:13px;padding:19px;max-width:735px;box-shadow:0 8px 30px #21123533}.clarity-search label{display:block;font-size:1rem;font-weight:750;margin-bottom:10px}.clarity-search-row{display:flex;gap:10px}.clarity-search-row input{flex:1;min-width:0;min-height:52px;border:1px solid #d7d0e1;border-radius:8px;padding:12px 15px;font-size:1rem;color:#30243e}.clarity-search-row button{border:0;border-radius:8px;background:#5d3a95;color:white;padding:12px 23px;font-size:1rem;font-weight:750;cursor:pointer}.clarity-search-row button:hover{background:#452975}.clarity-search-hint{font-size:.88rem;color:#ddd3ed;margin:12px 0 0}.clarity-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0 54px}.clarity-paths>a{background:white;border:1px solid #e6e0ec;border-radius:13px;padding:24px;display:flex;flex-direction:column;gap:9px;text-decoration:none;box-shadow:0 3px 13px #2d224508}.clarity-paths>a:hover{border-color:#b6a4ce;box-shadow:0 8px 24px #2d224515}.clarity-path-icon{font-size:.79rem;color:#73569c;font-weight:800;letter-spacing:.08em}.clarity-paths strong{font-size:1.24rem;color:#362351;letter-spacing:-.025em}.clarity-paths span:not(.clarity-path-icon){font-size:.98rem;color:#625a6d;line-height:1.55}.clarity-paths b{font-size:.91rem;color:#5b3b8d;margin-top:auto;padding-top:8px}.spotlight-section{margin-top:38px!important}.spotlight-heading h2{font-size:clamp(1.6rem,3vw,2.3rem)}.landing-kicker,.section-kicker,.eyebrow{color:#6b4a95!important}.spotlight-card{border-top:2px solid #c6b8d8}.spotlight-card:nth-child(3n+2){border-top-color:#b7b7c3}.spotlight-card:nth-child(3n){border-top-color:#c6b6a1}#profile .score-item{border-top-color:#8d76af!important}#profile .score-item:nth-child(3n+2){border-top-color:#b8b1c5!important}#profile .score-item:nth-child(3n){border-top-color:#a89b88!important}body[data-page=index] .hero{background:#3b2665!important;color:white!important}body[data-page=index] .hero h1{color:white!important}body[data-page=index] .hero p{color:#eee9f6!important}body[data-page=index] #directory{background:#fff}body[data-page=index] #directory .filters{background:#f5f3f8}body[data-page=index] .tablewrap th{background:#eeeaf4!important;color:#392852}
@media(max-width:750px){.quick-nav{overflow-x:auto;flex-wrap:nowrap;white-space:nowrap}.quick-nav a{flex-shrink:0;font-size:.9rem}.clarity-hero{padding:28px 22px}.clarity-hero h1{font-size:clamp(2.25rem,9vw,3.3rem)}.clarity-paths{grid-template-columns:1fr;margin-bottom:35px}.clarity-paths>a{padding:19px}.clarity-search-row{flex-direction:column}.clarity-search-row button{min-height:48px}.clarity-overline{font-size:.73rem}.brand{font-size:1.45rem}}

/* profile-polish.css */
/* CAHStory 5.2 — hospital-first profile and unified purple typography */
:root{--deep:#39245d;--purple:#67449a;--ink:#292438;--line:#e5e2ea;--wash:#f7f6f9}
body{font-size:16px;line-height:1.6;background:#f7f6f9;color:var(--ink)}
h1,h2,h3,h4{letter-spacing:-.025em;line-height:1.2}p{line-height:1.65}
header{box-shadow:0 1px 0 #e8e4ed}.top{min-height:70px}
.quick-nav{gap:5px;align-items:center;margin:0 0 20px;padding:10px 0}.quick-nav a{border-radius:9px;font-size:15px;padding:11px 13px}
body[data-page=index] .hero{border-radius:15px;padding:34px 36px;margin-bottom:24px}
body[data-page=index] .hero h1{font-size:clamp(2rem,3.4vw,3.25rem);line-height:1.12}
body[data-page=index] .hero p{font-size:1.06rem;max-width:760px}
#directory .heading h2{font-size:1.6rem}#directory .filters{border-radius:11px;padding:17px}
#directory #search{min-width:260px;flex:2;font-size:1.02rem;min-height:49px}
#directory #state,#directory #sort{min-height:49px;font-size:1rem}
#directory td,#directory th{padding:13px 15px;font-size:.96rem}
#directory td a{font-weight:750;color:#4f3180}
#directory .row-actions{display:flex;gap:7px;flex-wrap:wrap}
#directory .row-actions button{font-size:.89rem;border-radius:8px}
body.profile-open #directory,body.profile-open .home-explore,body.profile-open #compareSection,body.profile-open #insights,body.profile-open #mapSection,body.profile-open #highlights,body.profile-open #methodology,body.profile-open .hero{display:none!important}
body.profile-open #profile{display:block!important}
#profile:not([hidden]){margin:0 0 35px;padding:clamp(18px,3vw,34px);box-shadow:0 8px 24px #30244b0b}
#profile .profile-heading{background:#3d2866!important;color:#fff;border:0!important;border-radius:14px;padding:clamp(22px,3vw,35px);display:flex;align-items:flex-start;gap:16px}
#profile .profile-heading .eyebrow{color:#d8c7ed!important;font-size:.8rem}
#profile .profile-heading h2{color:#fff!important;font-size:clamp(1.9rem,3.5vw,3.15rem)!important;line-height:1.12;margin:9px 0 13px}
#profile .profile-heading p{color:#eee8f7;font-size:1.06rem;margin:0}
#profile #closeProfile{background:#fff;color:#432c6c;border:0;border-radius:8px;padding:10px 15px;font-weight:700;white-space:nowrap}
#profile .profile-actions{margin:19px 0 25px;gap:10px}
#profile .profile-actions>*{border-radius:9px;font-size:1rem;min-height:43px}
#profile .profile-overview{padding:20px 0 6px}
#profile .profile-overview>h3{font-size:1.45rem;margin:0 0 4px;color:#39245d}
#profile .profile-overview>p{color:#635c6d;margin:0 0 17px}
#profile .cards{gap:12px}
#profile .card,#profile .score-item{background:#faf9fc!important;border:1px solid #e6e1ec!important;border-top:3px solid #7656a1!important;border-radius:11px;padding:17px}
#profile .card small,#profile .score-item small{color:#625b6e;font-size:.86rem}
#profile .card b,#profile .score-item strong{font-size:clamp(1.15rem,1.8vw,1.45rem);color:#35254c}
#profile .profile-tabs{position:sticky;top:71px;z-index:5;background:#f1edf7!important;border:1px solid #e3dced;border-radius:12px;padding:9px;gap:6px;display:flex;flex-wrap:wrap}
#profile .profile-tabs a{background:#fff;border:1px solid #e0d9e8;border-radius:8px;padding:9px 13px;font-size:.9rem;color:#4b3174}
#profile .profile-tabs a:hover,#profile .profile-tabs a:focus-visible{background:#604098;color:#fff}
#profile .story-block{background:#faf9fc!important;border-left:4px solid #7553a4!important;padding:23px;border-radius:10px}
#profile .story-block h3{font-size:1.5rem}#profile .story-block p{font-size:1rem;line-height:1.75}
#profile .profile-section{margin-top:37px;padding-top:25px;border-top:1px solid #e4dfeb;scroll-margin-top:145px}
#profile .profile-section h3{font-size:1.55rem;margin-bottom:20px}
#profile .chart-card{padding:20px;background:#fff!important;border:1px solid #e6e2eb;border-radius:12px}
#profile .chart-card h4{font-size:1.05rem;color:#382653}
#profile .tablewrap th{background:#f0edf5;color:#382653}
#profile .tablewrap td,#profile .tablewrap th{padding:12px;font-size:.94rem}
#profile .more-data{background:#faf9fc;border-color:#e5e0ec}
#profile .more-data summary{font-size:1rem;color:#50337f}
@media(max-width:800px){#profile .profile-tabs{position:static}#profile .profile-heading{flex-direction:column}#profile .profile-heading h2{font-size:2rem!important}#profile #closeProfile{align-self:flex-start}#profile .profile-actions>*{flex:1 1 auto}#directory .filters{display:grid;grid-template-columns:1fr 1fr}#directory #search{grid-column:1/-1;min-width:0;width:100%}}
@media(max-width:520px){.quick-nav{margin-bottom:12px}#profile:not([hidden]){padding:15px}#profile .profile-heading{padding:23px 19px}#profile .profile-tabs a{font-size:.85rem;flex:1 1 auto;justify-content:center}#profile .profile-section{scroll-margin-top:20px}#directory .filters{grid-template-columns:1fr}#directory #search{grid-column:auto}#directory .tablewrap{overflow-x:auto}#profile .score-grid{grid-template-columns:1fr 1fr}#profile .profile-overview{padding-top:8px}}
