/* Compact glass homepage: page-scoped, uses frozen DS V2 semantic tokens. */
body.compact-home{font-family:-apple-system,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;background:var(--p7-bg);color:var(--p7-label);font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
.compact-home .wrap{max-width:1080px;width:calc(100% - 64px);margin-left:auto;margin-right:auto}
.compact-home main{padding-bottom:0}
.compact-home h1,.compact-home h2,.compact-home h3{color:var(--p7-label);font-family:inherit;letter-spacing:-.025em}
.compact-home .hero{padding:40px 32px;text-align:center;margin:32px 0 36px;background:rgba(255,255,255,.72);border:1px solid var(--p7-sep);border-radius:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 8px 28px rgba(23,32,43,.07)}
.compact-home h1{font-size:48px;line-height:1.12;margin:0;font-weight:700}
.compact-home .hero-subtitle{font-size:18px;color:var(--p7-label2);margin:18px 0 28px}
.compact-home .hero-search{max-width:720px;width:100%;box-sizing:border-box;margin:0 auto;display:flex;align-items:center;gap:14px;padding:8px 20px;border:1px solid var(--p7-brand);border-radius:16px;background:rgba(255,255,255,.72);box-shadow:0 8px 28px rgba(23,32,43,.07);color:var(--p7-brand)}
.compact-home .hero-search:focus-within{border-color:var(--p7-brand);box-shadow:0 0 0 3px var(--p7-tint)}
.compact-home .hero-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--p7-label);font:inherit;font-size:18px;height:46px;padding:0;box-shadow:none}
.compact-home .hero-search input::placeholder{color:var(--p7-label2);opacity:1}
.compact-home .search-hint{font-size:13px;color:var(--p7-label2);margin:14px 0 0}
.compact-home h2{font-size:22px;line-height:1.3;margin:0 0 20px;font-weight:650}
.compact-home .categories,.compact-home .quick-picks{margin-bottom:40px}
.compact-home .category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.compact-home .category-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:23px 20px;border:1px solid var(--p7-sep);border-radius:20px;background:rgba(255,255,255,.72);box-shadow:0 4px 16px rgba(23,32,43,.04);color:var(--p7-label);font-weight:600;text-decoration:none}
.compact-home .category-card svg{color:var(--p7-brand);grid-column:1 / -1;flex-shrink:0}
.compact-home .category-count{margin-left:auto;color:var(--p7-label2);font-size:14px;font-weight:400}
.compact-home .quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.compact-home .quick-grid a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;color:var(--p7-label);text-decoration:none;border-bottom:1px solid var(--p7-sep);font-size:15px}
.compact-home .quick-grid a span,.compact-home .directory a span{color:var(--p7-brand)}
.compact-home .all-calculators h2{display:flex;gap:12px;align-items:center;justify-content:space-between}
.compact-home #total-count{font-size:14px;font-weight:400;color:var(--p7-label2)}
.compact-home .directory{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;align-items:start}
.compact-home .directory-group{border:1px solid var(--p7-sep);border-radius:20px;padding:24px;background:rgba(255,255,255,.72);box-shadow:0 4px 16px rgba(23,32,43,.035);scroll-margin-top:90px}
.compact-home .directory-group:first-child{grid-row:span 3}
.compact-home h3{display:flex;align-items:center;gap:10px;font-size:17px;margin:0 0 12px;font-weight:650}
.compact-home .group-count{margin-left:auto;color:var(--p7-label2);font-size:13px;font-weight:400}
.compact-home .directory ul{list-style:none;padding:0;margin:0}
.compact-home .directory li{margin:0;border-bottom:.5px solid var(--p7-sep)}
.compact-home .directory li:last-child{border-bottom:0}
.compact-home .directory a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;font-size:15px;color:var(--p7-label);text-decoration:none}
.compact-home a:hover{color:var(--p7-brand)}
.compact-home .category-card{transition:transform .15s,box-shadow .15s}
.compact-home .category-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(23,32,43,.08)}
.compact-home :focus-visible{outline:2px solid var(--p7-brand);outline-offset:3px}
.compact-home .trust-band{text-align:left;border-top:1px solid var(--p7-sep);border-bottom:1px solid var(--p7-sep);padding:23px 0;margin:40px 0 0;font-size:13px;color:var(--p7-label2)}
.compact-home .trust-band a{color:var(--p7-label2);font-weight:400;text-decoration:none}
.compact-home .trust-band a span{color:var(--p7-brand)}
.compact-home .directory-group h3 svg{color:var(--p7-brand);flex-shrink:0}
.compact-home .compact-footer{display:flex;justify-content:space-between;gap:24px;padding-top:30px;padding-bottom:36px;font-size:12px;color:var(--p7-label2)}
.compact-home .footer-brand{font-weight:650;color:var(--p7-label);text-decoration:none;font-size:15px}
.compact-home .compact-footer p{margin:8px 0 0}
.compact-home .compact-footer nav{display:flex;gap:20px;align-items:center}
.compact-home .compact-footer nav a{color:inherit;text-decoration:none;display:inline-flex;align-items:center;min-height:44px}
.compact-home #search-empty{text-align:center;padding:24px;color:var(--p7-label2)}
.compact-home #browse-all{border:0;background:none;color:var(--p7-brand);font:inherit;text-decoration:underline;min-height:44px;cursor:pointer}
.compact-home [hidden]{display:none!important}
:root[data-theme="dark"] .compact-home .hero,:root[data-theme="dark"] .compact-home .hero-search,:root[data-theme="dark"] .compact-home .category-card,:root[data-theme="dark"] .compact-home .directory-group{background:rgba(28,28,30,.55)}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .compact-home .hero,:root:not([data-theme="light"]) .compact-home .hero-search,:root:not([data-theme="light"]) .compact-home .category-card,:root:not([data-theme="light"]) .compact-home .directory-group{background:rgba(28,28,30,.55)}}
@media(max-width:760px){
 .compact-home .wrap{width:calc(100% - 32px)}
 .compact-home .hero{padding:16px 20px;margin:8px 0 12px;text-align:left}
 .compact-home h1{font-size:36px;max-width:340px;margin:0}
 .compact-home .hero-subtitle{font-size:16px;line-height:1.5;margin:12px 0 20px}
 .compact-home .hero-search{padding:6px 16px;gap:10px}
 .compact-home .hero-search input{font-size:16px}
 .compact-home h2{font-size:20px;margin-bottom:16px}
 .compact-home .categories,.compact-home .quick-picks{margin-bottom:32px}
 .compact-home .category-grid{grid-template-columns:repeat(2,1fr);gap:12px}
 .compact-home .category-card{padding:18px 16px;gap:10px;font-size:14px}
 .compact-home .category-card svg{width:20px;height:20px}
 .compact-home .category-card>span:not(.category-count){min-width:0}
 .compact-home .category-count{margin-left:0}
 .compact-home .quick-grid,.compact-home .directory{grid-template-columns:1fr;gap:0}
 .compact-home .quick-grid a{min-height:52px}
 .compact-home .directory{gap:16px}
 .compact-home .directory-group{padding:20px}
 .compact-home .directory-group:first-child{grid-row:auto}
 .compact-home .trust-band{line-height:1.8;padding:20px 10px;margin-top:32px}
 .compact-home .compact-footer{flex-direction:column;gap:12px;padding-top:24px}
 .compact-home .compact-footer nav{gap:24px}
}
@media(prefers-reduced-motion:reduce){.compact-home .category-card{transition:none}}
.compact-home .trust-band{display:block;width:auto;max-width:none;border-radius:0;background:none;font-weight:400;box-shadow:none}

.compact-home #calculators{scroll-margin-top:90px}

body.compact-home{--p7-brand:#145cc4}
:root[data-theme="dark"] body.compact-home{--p7-brand:#5b93ff}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) body.compact-home{--p7-brand:#5b93ff}}
