.cms-card-rating{display:flex;flex-direction:column;gap:4px;color:var(--teal-dk);font-size:13px;line-height:1.35}.cms-card-rating small{font-size:10px;color:var(--t3)}
#cms-compare-button:disabled{opacity:.5;cursor:not-allowed}#cms-selection-hint{font-size:10px;color:#fff;flex-basis:100%;text-align:center}.pdf-bar{flex-wrap:wrap}
#cms-comparison{margin:auto;width:96vw;max-width:1440px;max-height:92dvh;padding:0;border:1px solid var(--border);border-radius:20px;background:var(--white);color:var(--t1);box-shadow:0 24px 100px #0004;font-family:inherit}
#cms-comparison::backdrop{background:#102c2bcc;backdrop-filter:blur(3px)}
.cms-dialog-head{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;padding:18px 26px;background:var(--white);border-bottom:1px solid var(--border)}
.cms-dialog-body{padding:28px}.cms-eyebrow{color:var(--teal-dk);font-size:11px;letter-spacing:.12em;font-weight:700;margin-bottom:10px}.cms-dialog-body h1{font-size:30px;letter-spacing:-1px;color:var(--navy);margin:0 0 8px}.cms-intro{color:var(--t2);margin-bottom:24px}
.cms-priorities{padding:18px 20px;border:1px solid var(--border);border-radius:14px;background:var(--bg);display:flex;align-items:center;gap:12px;flex-wrap:wrap}.cms-priorities label{font-weight:700;color:var(--navy)}.cms-priorities select{padding:9px 30px 9px 12px;border-radius:20px;border:1px solid var(--teal-dk);background:var(--white);font:inherit;color:var(--navy)}#cms-emphasis-note{flex-basis:100%;color:var(--t2);font-size:12px;line-height:1.5}
#cms-source{margin:20px 0;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:var(--t2)}#cms-source small{color:var(--t3)}.cms-stale{width:100%;color:var(--warn-text)}
.cms-table-scroll{overflow:auto;border:1px solid var(--border);border-radius:14px}.cms-table{border-collapse:separate;border-spacing:0;width:100%;text-align:left;font-size:13px}.cms-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.cms-table th,.cms-table td{padding:18px 20px;border-bottom:1px solid var(--border);border-right:1px solid var(--border);min-width:220px;max-width:280px;vertical-align:top;background:var(--white)}.cms-table th:first-child{position:sticky;left:0;z-index:2;min-width:200px;width:200px}.cms-table thead th{background:var(--bg)}.cms-table small{display:block;font-size:11px;color:var(--t3);font-weight:400;line-height:1.5;margin-top:7px}.cms-facility-name{display:block;font-size:16px;line-height:1.4;color:var(--navy)}.cms-facility-area{display:block;color:var(--t2);font-size:11px;font-weight:400;margin-top:8px;line-height:1.5}.cms-match{display:block;font-size:10px;letter-spacing:.025em;color:var(--teal-dk);margin-top:12px}.cms-emphasized td,.cms-emphasized th{background:var(--teal-lt)}.cms-focus-label{display:block;text-transform:uppercase;letter-spacing:.04em;font-size:9px;color:var(--teal-dk);margin-top:5px}.cms-stars{color:var(--teal-dk);font-size:17px;white-space:nowrap;letter-spacing:1px}.cms-empty-stars{opacity:.45}.cms-score{display:block;font-size:23px;margin-top:5px;color:var(--navy)}.cms-score small{display:inline;font-size:12px;margin-left:3px}.cms-number{font-size:24px;color:var(--navy)}.cms-missing{color:var(--t3);font-size:12px}.cms-alert{display:block;color:var(--warn-text);font-size:11px;margin-top:7px}
.cms-method{margin-top:20px;font-size:12px;color:var(--t2);line-height:1.6}.cms-method summary{cursor:pointer;font-weight:600;color:var(--navy)}.cms-method p,.cms-method ul{margin-top:12px}.cms-method ul{padding-left:20px}.cms-method a{color:var(--teal-dk)}.cms-disclaimer{font-size:11px;color:var(--t3);margin-top:24px;line-height:1.6;max-width:850px}
#cms-comparison :focus-visible{outline:3px solid var(--teal-dk);outline-offset:3px}
@media(max-width:640px){#cms-comparison{width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.cms-dialog-head{padding:14px 16px}.cms-dialog-body{padding:20px 12px}.cms-dialog-body h1{font-size:26px}.cms-table th,.cms-table td{padding:14px 12px;min-width:190px}.cms-table th:first-child{min-width:145px;width:145px;max-width:145px}.cms-priorities{padding:14px}.pdf-bar{max-width:96vw;gap:6px}.pdf-bar-print{padding:7px 10px!important}}

/* Facility rows and compact metric columns, following the comparison reference. */
#cms-comparison{max-width:1560px;border-radius:12px}
.cms-dialog-body{padding:0 14px 18px}
.cms-eyebrow{margin:0 -14px;padding:17px 24px 4px;background:var(--navy);color:#a9ece1}
.cms-dialog-body h1{margin:0 -14px;padding:0 24px 8px;background:var(--navy);color:white;font-family:Georgia,serif;font-size:clamp(24px,2.5vw,37px);letter-spacing:-.5px;text-align:center;line-height:1.2}
.cms-intro{margin:0 -14px 14px;padding:0 24px 18px;background:var(--navy);color:#edfafa;text-align:center;font-size:17px;line-height:1.45}
.cms-priorities{padding:10px 14px;gap:8px 14px;border-radius:8px}.cms-priorities select{padding:6px 28px 6px 10px}#cms-emphasis-note{flex-basis:auto;flex:1;min-width:230px;margin:0}
#cms-source{margin:12px 2px;font-size:11px}
.cms-table-scroll{border-radius:7px;border-color:#92b9bb}
.cms-table{table-layout:fixed;min-width:1130px;font-size:13px}
.cms-table th,.cms-table td{min-width:0;max-width:none;padding:10px 8px;text-align:center;vertical-align:middle;border-color:#a9c1c3;background:var(--cms-row,#fff)}
.cms-table th:first-child{width:220px;min-width:220px;max-width:220px;text-align:left;background:var(--cms-row,#fff)}
.cms-table thead th{background:#d4efed!important;color:var(--navy);font-size:15px;padding:13px 7px;line-height:1.25}
.cms-table thead th:first-child{text-align:center}.cms-table thead small{font-size:11px;margin-top:6px;color:var(--t2)}
.cms-table tbody tr:nth-child(6n+1){--cms-row:#edf8f2}.cms-table tbody tr:nth-child(6n+2){--cms-row:#edf4fc}.cms-table tbody tr:nth-child(6n+3){--cms-row:#fff7e9}.cms-table tbody tr:nth-child(6n+4){--cms-row:#fceef2}.cms-table tbody tr:nth-child(6n+5){--cms-row:#f2eefb}.cms-table tbody tr:nth-child(6n){--cms-row:#eaf8fa}
.cms-facility-name{font-size:15px;line-height:1.3}.cms-facility-area{font-size:12px;margin-top:3px}.cms-match{font-size:9px;margin-top:5px}
.cms-stars{font-size:21px;letter-spacing:-1px;color:#edaa12;text-shadow:0 1px 0 #aa7408;white-space:nowrap}.cms-empty-stars{color:#c1c8ce;opacity:1;text-shadow:none}
.cms-score{font-size:16px;margin-top:1px}.cms-score small{font-size:14px;margin-left:0;color:inherit}.cms-number{font-size:21px}.cms-table td>small{font-size:9px;margin-top:4px}
.cms-table .cms-emphasized{box-shadow:inset 2px 0 #159c92,inset -2px 0 #159c92}.cms-focus-label{font-size:8px;color:#146d65;letter-spacing:.04em}
.cms-explain-grid{display:grid;grid-template-columns:1.15fr 1.1fr 1fr;gap:12px;margin-top:12px}.cms-explain{border:1px solid #abd1ce;border-radius:8px;padding:12px 14px;background:#f6fbfa;color:var(--navy);font-size:12px;line-height:1.45}.cms-explain h2{font-size:15px;line-height:1.3;margin:0 0 7px}.cms-explain ul{padding-left:16px;margin:0}.cms-explain li+li{margin-top:5px}
.cms-rating-key{display:flex;flex-wrap:wrap;align-items:center;gap:7px 18px;border:1px solid #abd1ce;border-radius:8px;padding:10px 14px;margin-top:10px;font-size:11px}.cms-rating-key span{color:#cb8a00;font-size:16px;white-space:nowrap}.cms-rating-key b{font-size:11px;color:var(--navy)}.cms-rating-key i{font-style:normal;color:#aebac0}.cms-rating-key small{color:var(--t2)}
.cms-method{font-size:11px;margin-top:12px}.cms-disclaimer{max-width:none;padding:10px 14px;border-radius:8px;background:var(--teal-lt);margin-top:12px;color:var(--navy)}
@media(max-width:640px){.cms-dialog-body{padding:0 8px 12px}.cms-eyebrow,.cms-dialog-body h1,.cms-intro{margin-left:-8px;margin-right:-8px}.cms-eyebrow{padding:12px 14px 5px}.cms-dialog-body h1{padding:0 14px 8px;font-size:25px}.cms-intro{padding:0 14px 14px;font-size:14px}.cms-explain-grid{grid-template-columns:1fr}.cms-table th:first-child{width:170px;min-width:170px;max-width:170px}.cms-table{min-width:1080px}.cms-priorities{padding:10px}#cms-emphasis-note{flex-basis:100%}}
.cms-view-switch{display:flex;gap:6px;margin:14px 0;flex-wrap:wrap}.cms-view-switch button{font:inherit;font-size:13px;font-weight:600;border:1px solid var(--teal-dk);border-radius:8px;padding:10px 18px;color:var(--navy);background:var(--white);cursor:pointer}.cms-view-switch button[aria-pressed=true]{background:var(--navy);color:#fff;border-color:var(--navy)}.cms-priorities[hidden]{display:none}.cms-survey-intro{font-size:12px;color:var(--t2);line-height:1.5;margin:10px 0 14px}.cms-table td a{color:#126f68;font-size:12px}

.cms-export-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}.cms-export-actions button{cursor:pointer}.cms-export-actions button:disabled{opacity:.5;cursor:wait}#cms-export-status{font-size:12px;color:var(--t2)}
.cms-export-sheet{position:fixed;left:-20000px;top:0;width:1560px;box-sizing:border-box;background:#fff;color:var(--t1);font-family:inherit;pointer-events:none}
.cms-export-sheet .cms-dialog-head{position:static}.cms-export-sheet .cms-dialog-body{padding:0 14px 18px}.cms-export-sheet .cms-table-scroll{overflow:visible}.cms-export-sheet .cms-table{width:100%;min-width:0}.cms-export-sheet .cms-table th:first-child{position:static;width:220px;min-width:220px;max-width:220px}.cms-export-sheet .cms-explain-grid{grid-template-columns:1.15fr 1.1fr 1fr}.cms-export-sheet .cms-eyebrow,.cms-export-sheet h1,.cms-export-sheet .cms-intro{margin-left:-14px;margin-right:-14px}.cms-export-sheet h1{font-size:34px}.cms-export-sheet .cms-intro{font-size:17px}.cms-export-sheet [data-export-id=cms-source]{margin:12px 2px;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:11px;color:var(--t2)}.cms-export-sheet [data-export-id=cms-emphasis-note]{font-size:12px;color:var(--t2)}

/* The main site's dark mobile header must not restyle the white comparison. */
#cms-comparison .brand-name{color:var(--navy)!important;-webkit-text-fill-color:var(--navy)!important}
#cms-comparison .brand-name em{-webkit-text-fill-color:transparent!important}
#cms-comparison .hbtn{background:#fff!important;color:#1a2e2d!important;border:1px solid #127e79!important;padding:10px 16px!important;font-size:14px!important;min-height:44px;justify-content:center}
#cms-comparison .cms-export-actions [data-cms-export]{background:#1a2e2d!important;color:#fff!important;border-color:#1a2e2d!important;font-weight:600}
#cms-comparison .cms-dialog-head{gap:12px}
#cms-comparison .cms-dialog-head .brand{min-width:0;flex-shrink:0}
#cms-comparison #cms-close{flex-shrink:0}
@media(max-width:640px){
 #cms-comparison{position:fixed;inset:0;margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;box-sizing:border-box;border:0;border-radius:0;overflow-x:hidden;overflow-y:auto}
 #cms-comparison>.cms-dialog-head{padding:calc(10px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 10px max(12px,env(safe-area-inset-left,0px))}
 #cms-comparison>.cms-dialog-body{padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))}
 #cms-comparison .cms-export-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
 #cms-comparison #cms-export-status{grid-column:1 / -1;line-height:1.4}
 #cms-comparison .cms-export-actions .hbtn{padding:10px 6px!important;font-size:13px!important;white-space:normal}
 #cms-comparison .cms-view-switch button{flex:1;padding:10px 8px;min-height:44px;font-size:12px}
 #cms-comparison .cms-priorities select{max-width:100%;min-width:0}
 #cms-comparison .cms-table-scroll{max-width:100%;-webkit-overflow-scrolling:touch}
}
/* Resource selection: clear controls and comfortable touch targets. */
#sel-toggle{background:#127e79;color:#fff;border:2px solid #127e79;min-height:44px;padding:10px 18px;font-size:14px;box-shadow:0 3px 9px #127e7926;white-space:nowrap}
#sel-toggle:hover{background:#0e6864;border-color:#0e6864}
#sel-toggle:focus-visible,.pdf-bar button:focus-visible,.cms-save-menu summary:focus-visible{outline:3px solid #127e79;outline-offset:3px}
.selection-help{font-size:13px;line-height:1.5;color:#506561;margin:4px 0 16px}
body.select-mode .sel-check{width:30px!important;height:30px!important;bottom:12px;right:12px;accent-color:#127e79;outline-offset:4px}
body.select-mode .bubble{padding-bottom:54px}
.bubble.pdf-sel:nth-child(n){outline:3px solid #127e79;background:linear-gradient(115deg,#d0f5f1 0%,#e1f8df 65%,#f0fad9 100%)}
#pdf-bar{background:#fff;color:#1a2e2d;border:1px solid #cbdedb;border-radius:18px;padding:12px 16px;min-width:360px;max-width:calc(100vw - 24px);box-shadow:0 -3px 24px #1a2e2d26;white-space:normal;gap:8px}
#pdf-bar.show{display:flex;flex-direction:column;align-items:stretch}
.selection-status{display:flex;align-items:center;justify-content:space-between;gap:12px}
#pdf-bar-lbl{font-size:14px}
#pdf-bar .pdf-bar-clear{background:transparent;color:#127e79;min-height:44px;font-weight:600;text-decoration:underline;padding:8px 12px}
.selection-actions{display:flex;gap:10px}
.selection-actions>button,.selection-share-wrap{flex:1;min-width:0}
#pdf-bar .pdf-bar-print{min-height:46px;border-radius:12px;padding:12px 18px!important;font-size:15px;background:#127e79;color:#fff;border:1px solid #127e79}
#pdf-bar #selection-share{width:100%;background:#fff;color:#127e79}
#pdf-bar .pdf-bar-print:disabled{opacity:.55;cursor:not-allowed}
#pdf-bar #cms-selection-hint{color:#506561;font-size:12px;line-height:1.4;max-width:100%}
#cms-selection-hint:empty{display:none}
.selection-share-wrap{position:relative}
.selection-share-options{position:absolute;bottom:calc(100% + 10px);right:0;min-width:210px;background:#fff;border:1px solid #cbdedb;box-shadow:0 6px 24px #1a2e2d26;padding:6px;border-radius:14px;z-index:2}
.selection-share-options button{display:block;width:100%;padding:14px;text-align:left;background:#fff;color:#1a2e2d;border:0;border-radius:8px;font-family:inherit;font-size:15px;font-weight:600;cursor:pointer;min-height:48px}
.selection-share-options button:hover{background:#e7f7f3}
body.selection-bar-visible .results-wrap{padding-bottom:230px!important}
#cms-comparison .cms-export-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.cms-save-menu{position:relative}
.cms-save-menu summary{background:#127e79;color:#fff;padding:13px 18px;border-radius:12px;font-weight:600;cursor:pointer;list-style:none;min-height:44px;box-sizing:border-box}
.cms-save-menu summary::-webkit-details-marker{display:none}
.cms-save-options{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0}
@media(max-width:640px){
 #sel-toggle{flex:1;min-width:175px}
 .selection-help{font-size:12px}
 #pdf-bar{left:10px;right:10px;transform:none;min-width:0;max-width:none;width:auto;bottom:calc(66px + env(safe-area-inset-bottom,0px));padding:8px 12px 12px;border-radius:16px}
 body.selection-bar-visible .results-wrap{padding-bottom:calc(260px + env(safe-area-inset-bottom,0px))!important}
 #pdf-bar .pdf-bar-print{padding:12px 8px!important}
 #cms-comparison .cms-save-menu{width:100%}
 #cms-comparison .cms-save-options .hbtn{flex:1}
 #cms-comparison #cms-export-status{width:100%}
}
/* Compact selection controls: preserve room for resource cards. */
#sel-toggle{flex:0 0 auto;min-width:0;min-height:32px;padding:5px 11px;font-size:12px;border-width:1px;box-shadow:none}
.selection-help{font-size:12px;margin:2px 0 9px;line-height:1.4}
#pdf-bar{min-width:320px;padding:6px 10px 8px;gap:3px;border-radius:13px}
#pdf-bar-lbl{font-size:12px;line-height:1.3}
#pdf-bar .pdf-bar-clear{min-height:28px;padding:3px 8px;font-size:12px}
.selection-actions{gap:8px;align-items:flex-start}
.selection-actions>button,.selection-actions>.selection-share-wrap{flex:1 1 0;width:0;min-width:0;box-sizing:border-box}
#pdf-bar .selection-actions .pdf-bar-print,#pdf-bar #selection-share{height:40px;min-height:40px;box-sizing:border-box;margin:0;padding:7px 8px!important;border:0;border-radius:10px;background:linear-gradient(90deg,#31D9D4,#7BE17C);color:#1a2e2d;font-size:13px;font-weight:700;line-height:1.2;white-space:nowrap}
#pdf-bar #cms-selection-hint{font-size:11px;line-height:1.3;margin:2px 0 0}
body.selection-bar-visible .results-wrap{padding-bottom:150px!important}
@media(max-width:640px){
 .results-meta{display:grid;grid-template-columns:auto auto minmax(0,1fr);column-gap:6px;row-gap:5px}
 .results-meta .results-count{grid-column:1 / -1}
 #sel-toggle{flex:none;min-width:0;min-height:30px;padding:5px 9px;font-size:11px}
 .results-meta #filters-chip{font-size:11px;padding:5px 9px;min-height:30px}
 .results-meta .sort-btn{min-width:0;width:100%;max-width:100%;margin-left:0;font-size:11px;padding:5px 4px;box-sizing:border-box;height:30px}
 body.select-mode .selection-help{display:none}
 #pdf-bar{min-width:0;padding:5px 10px 7px;gap:3px;bottom:calc(62px + env(safe-area-inset-bottom,0px))}
 body.selection-bar-visible .results-wrap{padding-bottom:calc(185px + env(safe-area-inset-bottom,0px))!important}
}

/* Massachusetts records remain inside Compare; resource cards are unchanged. */
.ma-survey-section{margin:16px 0 28px;padding-bottom:18px;border-bottom:1px solid var(--border)}
.ma-survey-section h2,.cms-survey-heading{font-size:20px;line-height:1.3;color:var(--navy);margin:14px 0 8px}
.ma-survey-section p{font-size:13px;line-height:1.5;margin:8px 0 12px;color:var(--t2)}
.ma-survey-section .ma-source{font-size:11px;color:var(--t2)}
.ma-survey-table{min-width:1030px}.ma-survey-table td{vertical-align:top;text-align:left;line-height:1.45;overflow-wrap:anywhere}
.ma-survey-table th:first-child{width:200px;min-width:200px;max-width:200px}
.ma-survey-table .ma-event+.ma-event{margin-top:10px;padding-top:8px;border-top:1px solid var(--border)}
.ma-survey-table .ma-event small{margin-top:3px}.ma-survey-table .ma-newer{color:var(--teal-dk);font-weight:600}
.ma-survey-table a,.ma-survey-section a{color:var(--teal-dk);text-decoration:underline}
@media(max-width:640px){.ma-survey-table th:first-child{width:155px;min-width:155px;max-width:155px}.ma-survey-section h2,.cms-survey-heading{font-size:18px}}

/* Assisted-living comparisons use the same compact, scrollable comparison shell. */
.cms-view-switch[hidden]{display:none}
.al-table{min-width:1220px}
.al-table td{text-align:left;vertical-align:top;line-height:1.45;padding:12px}
.al-table th:first-child{vertical-align:top}
.al-table td small{font-size:11px;color:var(--t2);margin-top:8px}
.al-table a,.cms-explain a{color:#126f68;text-decoration:underline;overflow-wrap:anywhere}
.al-table th a{display:block;margin-top:10px;font-size:12px;font-weight:500}
.al-reports{border-top:1px solid #b6d2ce;margin-top:10px;padding-top:8px}
.al-reports>strong{display:block;font-size:12px;margin-bottom:6px}
@media(max-width:640px){.al-table th:first-child{width:145px;min-width:145px;max-width:145px}}

/* Research-led assisted-living comparison: five useful columns. */
.al-table{min-width:1180px}
.al-table th:first-child{width:205px;min-width:205px;max-width:205px}
.al-table th,.al-table td{padding:14px 12px;overflow-wrap:break-word}
.al-facts{margin:0;padding-left:16px;font-size:13px;line-height:1.5}
.al-facts li+li{margin-top:10px}
.al-source-links{font-size:11px;margin-top:10px}
.al-source-links a{font-size:11px;white-space:nowrap}
.al-checked{display:block;font-size:10px;font-weight:400;color:var(--t2);margin-top:9px}
.al-price-cell .al-facts{font-weight:600}
.al-detail{font-size:11px;margin-top:10px;line-height:1.5}
.al-detail summary{cursor:pointer;color:#126f68;font-weight:600;padding:4px 0}
.al-detail p{margin:6px 0}
.al-report-status{font-size:12px;margin-top:12px;line-height:1.4}
.al-directory-link{display:inline-block;margin-top:10px}
.al-unmatched{vertical-align:middle!important}
.al-unmatched p{margin:7px 0;max-width:700px}
.al-questions{margin-top:20px}
.al-questions>h2{font-size:18px;color:var(--navy);margin:0 0 10px}
.al-questions h3{font-size:14px;margin:0 0 8px}
.al-method{font-size:11px;color:var(--t2);line-height:1.6;margin-top:14px}
.al-method a{color:#126f68;text-decoration:underline}
@media(max-width:640px){.al-table th:first-child{width:145px;min-width:145px;max-width:145px}.al-table th,.al-table td{padding:12px 9px}.al-detail summary{padding:10px 0}}

/* Fixed white-background brand for both PDF and JPEG, including mobile exports. */
.cms-export-sheet .cms-dialog-head{background:#fff;padding:24px 30px}
.cms-export-sheet .cms-export-logo{display:block;height:68px;width:auto;max-width:none;flex:none}
