/* Final shared presentation layer. Page generators set data-family; do not fork
   equivalent pages into category-specific typography or shell styles. */
:root{--font-body:Arial,Helvetica,sans-serif;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--radius-control:4px;--radius-panel:6px;--type-small:12px;--type-body:14px;--type-reading:15px;--type-title:34px;--type-section:25px;--color-border:#dbe2eb;--color-surface:#fff;--color-muted:#526071;--muted:#526071}
body[data-family]{font-family:var(--font-body);color:var(--ink,#142744);background:var(--bg,#f3f5f8);line-height:1.5}
body[data-family] .wrap{width:100%;max-width:1224px;margin-left:auto;margin-right:auto;padding-left:32px;padding-right:32px}
body[data-family] :is(main,section,article,aside,.detail-hero-copy,.comparison,.results-list){min-width:0}
body[data-family] :is(h1,h2,h3,p,li,dd){overflow-wrap:break-word}
body[data-family] :is(input,select,textarea,button){font-family:inherit}
body[data-family] :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #4f8de0;outline-offset:3px}
body[data-family] [hidden]{display:none!important}
body[data-family] .portal-header .header-inner{height:68px;min-height:0;display:flex;align-items:center;gap:32px}
body[data-family] .portal-header .brand-logo{width:300px;height:36px;padding:0;border:0;margin:0}
body[data-family] .portal-header .header-inner nav{display:flex;gap:24px;margin-left:auto;font-size:13px}
body[data-family] .market{display:block;font-size:12px;padding-left:24px}
body[data-family] .category-nav nav{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-start;min-height:49px}
body[data-family] .category-nav a{padding:13px 16px;font-size:13px;min-height:49px;font-weight:600;line-height:23px}
body[data-family] .breadcrumb{display:flex;flex-wrap:wrap;gap:6px 10px;font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 12px}
body[data-family] .breadcrumb ol{display:flex;flex-wrap:wrap;gap:6px 10px;list-style:none;margin:0;padding:0}
body[data-family] .breadcrumb li+li:before{content:'/';margin-right:10px;color:var(--muted)}
body[data-family] .panel{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-panel);box-shadow:none}
body[data-family] .content-panel{padding:24px}
body[data-family] .content-panel>h2{font-size:var(--type-section);line-height:1.3;letter-spacing:-.4px;margin:0 0 16px}
body[data-family] .content-panel :is(p,li){font-size:var(--type-body);line-height:1.75}
body[data-family] .section{margin-top:28px;scroll-margin-top:20px}
body[data-family] .section-intro{font-size:14px;line-height:1.7;margin:8px 0 20px;color:var(--muted)}
body:is([data-family="directory"],[data-family="article"],[data-family="utility"],[data-family="offers"]) main h1{font-size:var(--type-title);line-height:1.2;letter-spacing:-.8px;max-width:900px;margin-bottom:16px}
body:is([data-family="directory"],[data-family="article"],[data-family="utility"],[data-family="offers"]) main :is(.lead,.publisher-intro>p:first-of-type){font-size:18px;line-height:1.7;max-width:78ch}
body[data-family="directory"] :is(.guide-index-header,.receptionist-editorial-hero){margin-bottom:28px;padding-top:0}
body[data-family="article"] .guide-article-heading{margin-bottom:28px}
body[data-family="article"] .guide-prose{padding:24px;border-radius:var(--radius-panel);font-size:var(--type-reading);line-height:1.8}
body[data-family="article"] .guide-prose :is(p,li){font-size:var(--type-reading);line-height:1.8}
body[data-family="article"] .guide-prose h2{font-size:var(--type-section);line-height:1.3}
body[data-family="directory"] :is(.guide-index-library-head,.guide-library-heading) h2{font-size:var(--type-section)}
body[data-family="awards"] .award-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}
body[data-family="awards"] .award-category-grid h2{margin-top:0;font-size:22px}
body[data-family] :is(.support-copy,.comparison-copy,.guide-article) p{font-size:var(--type-reading);line-height:1.8}
body[data-family] .table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
body[data-family] .tariff-table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;text-align:left;font-size:13px;line-height:1.6}
body[data-family] .tariff-table :is(th,td){border-bottom:1px solid var(--line);padding:12px 10px;vertical-align:top;overflow-wrap:anywhere}
body[data-family] .tariff-table thead{background:#f0f5fc;color:var(--muted);font-size:12px}
body[data-family] .tariff-table th{font-weight:600}
body[data-family] .tariff-table small{display:block;font-size:11px;line-height:1.6;color:var(--muted);margin-top:6px}
body[data-family] :is(.button,.provider-cta){border-radius:var(--radius-control);min-height:44px}
body[data-family] :is(.button.primary,.provider-cta,#compare-selected){background:var(--orange);border:1px solid var(--orange);color:#18263a}
body[data-family] :is(.button.primary,.provider-cta,#compare-selected):hover{background:#e58508;border-color:#e58508}
body[data-family] textarea{max-width:100%;font:13px/1.6 var(--font-body);border:1px solid #ccd6e3;border-radius:4px}
body:is([data-family="provider"],[data-family="plan"],[data-family="article"],[data-family="utility"],[data-family="directory"],[data-family="awards"]) .detail-main{padding-top:24px;padding-bottom:32px}
body:is([data-family="provider"],[data-family="plan"]) .detail-hero{display:grid;grid-template-columns:minmax(0,1fr) 355px;align-items:start;gap:40px;margin-top:24px}
body:is([data-family="provider"],[data-family="plan"]) .detail-hero h1{font-size:var(--type-title);line-height:1.18;letter-spacing:-.8px;margin:16px 0 0}
body:is([data-family="provider"],[data-family="plan"]) .detail-hero .lead{font-size:18px;line-height:1.6;max-width:66ch;margin:16px 0}
body:is([data-family="provider"],[data-family="plan"]) .detail-hero-copy>p:not(.lead){font-size:14px;line-height:1.7}
body:is([data-family="provider"],[data-family="plan"]) .detail-nav{display:flex;flex-wrap:wrap;white-space:normal;gap:4px 24px;overflow:visible;font-size:13px;padding:0 0 12px;margin-top:28px;border-bottom:1px solid var(--line)}
body:is([data-family="provider"],[data-family="plan"]) .detail-nav a{display:inline-flex;align-items:center;min-height:36px;text-decoration:none}
body:is([data-family="provider"],[data-family="plan"]) .scenario-box{padding:22px;border-radius:6px}
body:is([data-family="provider"],[data-family="plan"]) .scenario-box .button{width:100%}
body:is([data-family="provider"],[data-family="plan"]) .fit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
body[data-family] :is(.support-discovery-grid,.receptionist-discovery-grid,.industry-hub-grid){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body[data-family] :is(.support-discovery-grid,.receptionist-discovery-grid)>a{padding:18px;border:1px solid var(--line);border-radius:6px;background:#fff;text-decoration:none}
body[data-family] :is(.support-discovery-grid,.receptionist-discovery-grid) strong{font-size:14px;line-height:1.6}
body[data-family] :is(.support-discovery-grid,.receptionist-discovery-grid) span{font-size:12px;line-height:1.6;color:var(--muted)}
/* Shared recommendation treatment; both category engines supply evidence. */
body[data-family="comparison"] .offer-highlights{grid-area:highlight;display:flex;align-items:center;gap:8px 12px;margin:0 0 14px;padding:0;min-width:0}
body[data-family="comparison"] .offer-badge{font-size:11px;line-height:1.4;padding:5px 8px;border-radius:4px;background:#e7eff5;color:#244d69;min-height:30px;display:inline-flex;align-items:center;gap:4px;text-decoration:none;font-weight:600}
body[data-family="comparison"] .badge-cheapest{background:#e5f1eb;color:#215b44}
body[data-family="comparison"] .recommendation-why{font-size:12px;line-height:1.5;color:#4d6273;flex:1;min-width:0}
body[data-family="comparison"] .estimate-details>summary::before{content:none}
body[data-family="comparison"] :is(.amount small,.offer-price>strong small){margin-left:3px;font-size:12px;font-weight:400;letter-spacing:0}
body[data-comparison="support"] .provider.recommended-card{border-color:#6b96a3;border-left:3px solid #527f8e;grid-template-areas:"highlight highlight highlight" "brand facts price" "brand checks actions" "footer footer footer"}
body[data-family] .compare-tray{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 16px;background:#fff;border:1px solid #c9d4df;border-radius:6px;box-shadow:0 3px 18px #17304b15;min-width:0;max-width:calc(100% - 24px);font-size:13px;z-index:20}
body[data-family] .compare-tray button{min-height:44px;font-size:13px;padding:8px 12px;border-radius:4px;white-space:nowrap}
body[data-family] .compare-tray #clear-selected{border:0;background:transparent;color:var(--blue)}
body[data-family].has-shortlist{padding-bottom:84px}
body[data-family] #compare-dialog{width:min(1120px,calc(100% - 32px));max-width:calc(100% - 32px);max-height:90dvh;padding:24px;border:1px solid var(--line);border-radius:8px;color:var(--ink)}
body[data-family] #compare-dialog::backdrop{background:#132b4870}
body[data-family] #compare-dialog .dialog-head{display:flex;justify-content:space-between;gap:16px;align-items:start;margin-bottom:12px}
body[data-family] #compare-dialog .dialog-head h2{font-size:24px}
body[data-family] #compare-dialog .dialog-head button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:auto;height:auto;min-height:44px;padding:8px 12px;border:1px solid #ccd6e3;border-radius:4px;background:#fff;font-size:14px;line-height:1.5}
body[data-family] .comparison-scroll-hint{display:none}
body[data-family] #comparison-matrix{overflow-x:auto;max-width:100%;margin:16px 0;overscroll-behavior:contain}
body[data-family] #comparison-matrix table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;line-height:1.6}
body[data-family] #comparison-matrix :is(td,th){padding:12px;border:1px solid var(--line);vertical-align:top;min-width:170px;overflow-wrap:anywhere}
/* Keep provider-action words intact inside scrollable comparison columns. */
body[data-family] #comparison-matrix :is(a.button,a.cta){overflow-wrap:normal;word-break:normal}
body[data-family] #comparison-matrix th{background:#f0f5fc;font-weight:600}
body[data-family] #comparison-matrix tr>:first-child{position:sticky;left:0;z-index:1;background:#f0f5fc}
@media(min-width:761px) and (max-width:1100px){
 body[data-family] .wrap{padding-left:24px;padding-right:24px}
 body[data-family] .portal-header .header-inner{gap:20px}
 body[data-family] .portal-header .header-inner nav{gap:16px;font-size:12px}
 body[data-family] .portal-header .brand-logo{width:260px}
 body:is([data-family="provider"],[data-family="plan"]) .detail-hero{grid-template-columns:minmax(0,1fr) 310px;gap:24px}
 body[data-comparison="support"] .provider.recommended-card{grid-template-areas:"highlight highlight" "brand price" "facts price" "checks actions" "footer footer"}
}
@media(max-width:760px){
 :root{--type-title:28px;--type-section:22px;--type-reading:14px}
 body[data-family] .wrap{padding-left:18px;padding-right:18px}
 body[data-family] .portal-header .header-inner{height:54px;gap:10px;justify-content:space-between}
 body[data-family] .portal-header .brand-logo{width:clamp(185px,60vw,250px);height:30px}
 body[data-family] .portal-header .header-inner nav{display:none}
 body[data-family] .market{font-size:10px;padding-left:10px}
 body[data-family] .category-nav .wrap{padding-left:8px;padding-right:8px}
 body[data-family] .category-nav nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;min-height:44px}
 body[data-family] .category-nav a{white-space:normal;text-align:center;padding:8px 5px;font-size:11px;line-height:1.4;min-height:44px;display:flex;align-items:center;justify-content:center}
 body[data-family] .category-nav .active:after{left:5px;right:5px}
 body[data-family] .content-panel{padding:18px}
 body[data-family] .section{margin-top:22px}
 body[data-family] .section-intro{font-size:13px}
 body[data-family="article"] .guide-prose{padding:18px}
 body[data-family="comparison"] .decision-facts small{font-size:11px;line-height:1.5}
 body[data-family="comparison"] :is(.offer-price>p,.cost-workload,.cost-label,.offer-price>span){font-size:11px;line-height:1.5}
 body[data-family] .tariff-table,body[data-family] .tariff-table tbody{display:block;width:100%;min-width:0}
 body[data-family] .tariff-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 body[data-family] .tariff-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid var(--line);padding:14px;border-radius:6px;margin:0 0 12px}
 body[data-family] .tariff-table :is(th,td){display:block;min-width:0;padding:0;border:0;font-size:12px}
 body[data-family] .tariff-table tbody th{grid-column:1/-1;font-size:15px}
 body[data-family] .tariff-table td:before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:4px}
 body[data-family] .tariff-table td:last-child{grid-column:1/-1;border-top:1px solid var(--line);padding-top:10px}
 body:is([data-family="directory"],[data-family="article"],[data-family="utility"],[data-family="offers"]) main :is(.lead,.publisher-intro>p:first-of-type){font-size:16px}
 body[data-family="awards"] .award-category-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 body:is([data-family="provider"],[data-family="plan"]) .detail-hero{grid-template-columns:minmax(0,1fr);gap:24px;margin-top:18px}
 body:is([data-family="provider"],[data-family="plan"]) .detail-hero h1{font-size:var(--type-title);line-height:1.2}
 body:is([data-family="provider"],[data-family="plan"]) .detail-hero .lead{font-size:16px}
 body:is([data-family="provider"],[data-family="plan"]) .detail-nav{gap:2px 18px;font-size:12px;margin-top:22px}
 body:is([data-family="provider"],[data-family="plan"]) .fit-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 body[data-family] :is(.support-discovery-grid,.receptionist-discovery-grid,.industry-hub-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body[data-family] :is(.support-discovery-grid,.receptionist-discovery-grid)>a{padding:14px}
 body[data-comparison="support"] .provider.recommended-card{grid-template-areas:"highlight highlight" "brand price" "facts facts" "checks checks" "actions actions" "footer footer"}
 body[data-family="comparison"] .offer-highlights{margin-bottom:0}
 body[data-family="comparison"] .recommendation-why{display:none}
 body[data-comparison="support"] .offer-actions .sources-jump,body[data-family="comparison"] .result-count-suffix{display:none}
 body[data-family="comparison"] .offer-badge{min-height:30px;max-width:100%}
 body[data-family] .compare-tray{width:calc(100% - 16px);max-width:calc(100% - 16px);padding:8px 10px;gap:6px;font-size:12px}
 body[data-family] .compare-tray button{font-size:12px;padding:8px}
 body[data-family] #compare-dialog{padding:18px;width:calc(100% - 20px);max-width:calc(100% - 20px)}
 body[data-family] #compare-dialog .dialog-head h2{font-size:21px}
 body[data-family] .comparison-scroll-hint{display:block;font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0}
 body[data-family] #comparison-matrix :is(td,th){min-width:145px;padding:10px;font-size:12px}
}
@media(max-width:359px){body[data-family] :is(.support-discovery-grid,.receptionist-discovery-grid,.industry-hub-grid){grid-template-columns:minmax(0,1fr)}}
