/* SmartyBuzz homepage. All styles are original; no framework or build step. */
@font-face{font-family:Inter;src:url('../fonts/inter-400.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Inter;src:url('../fonts/inter-600.woff') format('woff');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Inter;src:url('../fonts/inter-700.woff') format('woff');font-weight:700;font-style:normal;font-display:swap}
:root{--ink:#101112;--muted:#75787c;--pale:#a9acaf;--rule:#202123;--footer:#f5f5f5;--gutter:clamp(1.25rem,2vw,1.5625rem);--section-space:clamp(2.5rem,4.5vw,3.75rem);--card-gap:2%;--content-width:76.25rem}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:#fff;font-family:Inter,Arial,Helvetica,sans-serif;font-size:1rem;line-height:1.45}
img{display:block;max-width:100%;object-fit:cover}
a{color:inherit;text-decoration:none}
a:hover{color:#686d73}
a:focus-visible,button:focus-visible{outline:3px solid #2365c9;outline-offset:5px}
button{font:inherit;color:inherit}
h1,h2,h3,p{margin:0}
.container{width:100%;max-width:var(--content-width);margin-inline:auto;padding-inline:var(--gutter)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:0;left:1rem;z-index:30;padding:.7rem 1rem;background:white;transform:translateY(-150%)}
.skip-link:focus{transform:translateY(0)}
/* Header: wordmark is intentionally temporary and replaceable. */
.site-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;min-height:3.8rem;padding:.65rem var(--gutter);border-bottom:1px solid #dedfe0;background:rgba(255,255,255,.97)}
.wordmark{font-size:1.45rem;font-weight:700;letter-spacing:-.06em;line-height:1.1;white-space:nowrap}
.wordmark img{width:11rem;height:auto}
.primary-navigation{display:flex;align-items:center;gap:clamp(1.2rem,2.25vw,2.25rem)}
.primary-navigation a{display:flex;align-items:center;min-height:2.75rem;font-size:.875rem;font-weight:600}
.menu-toggle{display:none;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;padding:.65rem;background:transparent;border:1px solid #dadbdd;cursor:pointer}
.menu-icon,.menu-icon::before,.menu-icon::after{display:block;width:1.15rem;height:2px;background:currentColor}
.menu-icon{position:relative}
.menu-icon::before,.menu-icon::after{content:'';position:absolute;left:0}
.menu-icon::before{top:-6px}.menu-icon::after{top:6px}
.menu-toggle[aria-expanded=true] .menu-icon{background:transparent}
.menu-toggle[aria-expanded=true] .menu-icon::before{top:0;transform:rotate(45deg)}
.menu-toggle[aria-expanded=true] .menu-icon::after{top:0;transform:rotate(-45deg)}
/* Trending: two narrow columns flank the lead story, as in the reference. */
.trending-section{padding-top:1.8rem}
.display-heading{font-size:clamp(2.65rem,4.2vw,3.125rem);font-weight:600;line-height:1.12;letter-spacing:-.035em}
.display-heading span{color:var(--pale)}
.ruled-heading{padding-bottom:1rem;margin-bottom:2.2rem;border-bottom:1px solid var(--rule)}
.trending-grid{display:grid;grid-template-columns:1fr 2.1fr 1fr;gap:var(--card-gap);align-items:stretch}
.trending-side{display:flex;flex-direction:column;justify-content:space-between;gap:2rem;min-width:0}
.story-card{min-width:0;border-bottom:1px solid var(--rule);padding-bottom:1.1rem}
.story-image{display:block;overflow:hidden;background:#ebedef;aspect-ratio:1.76}
.story-image img{width:100%;height:100%;transition:transform .25s ease}
.story-image:hover img,.topic-image:hover img{transform:scale(1.025)}
.story-copy{padding:.05rem .4rem 0}
.category-tag{display:inline-block;max-width:100%;border:1px solid currentColor;border-radius:2rem;padding:0 .65rem;margin-top:.8rem;font-size:.6875rem;font-weight:400;letter-spacing:.025em;line-height:1.5;text-transform:uppercase}
.category-tag:hover{background:var(--ink);color:#fff}
.story-card h3{font-size:1rem;font-weight:600;line-height:1.38;margin-top:.6rem}
.story-card--lead .story-image{aspect-ratio:1.5}
.story-card--lead h2{font-size:clamp(1.75rem,2.6vw,2rem);font-weight:600;line-height:1.28;letter-spacing:-.025em;margin-top:.7rem}
.byline{font-size:.875rem;margin-top:.75rem}
/* Explore retains the wide four-card band and two-line heading. */
.explore-section{padding-block:var(--section-space)}
.explore-section .display-heading{margin-bottom:2.5rem}
.topic-container{max-width:80rem;margin-inline:auto;padding-inline:var(--gutter)}
.topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2.3%}
.topic-image{display:block;aspect-ratio:1;overflow:hidden;background:#ebedef}
.topic-image img{width:100%;height:100%;transition:transform .25s ease}
.topic-copy{padding-inline:.4rem}
.topic-card h3{font-size:1rem;font-weight:400}
.topic-copy p{margin-top:.6rem;line-height:1.5}
.topic-link{display:inline-flex;align-items:center;min-height:2.75rem;font-size:.875rem;font-weight:600;margin-top:.5rem}
/* Four equal Editors' Choice stories in one dark, full-width section. */
.editors-section{color:#fff;background:radial-gradient(ellipse at 15% 95%,#191a1c 0,transparent 55%),radial-gradient(ellipse at 85% 10%,#1d1e20 0,transparent 50%),#08090a;padding-block:var(--section-space)}
.section-heading{font-size:2rem;font-weight:600;line-height:1.2;letter-spacing:-.02em;margin-bottom:1.8rem}
.editors-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--card-gap)}
.editors-section .story-card{border-color:#a3a3a3;padding-bottom:1.35rem}
.editors-section .category-tag:hover{background:#fff;color:var(--ink)}
.editors-section a:hover{color:#c9ccd1}
/* Popular and Auto share this grid at every size. */
.popular-auto-section{display:grid;grid-template-columns:minmax(0,3.2fr) minmax(0,1fr);gap:3%;padding-block:var(--section-space)}
.block-heading{font-size:1.4rem;font-weight:600;line-height:1.25;margin-bottom:1.6rem}
.popular-list{display:grid;gap:1.7rem}
.popular-card{display:grid;grid-template-columns:8.5rem minmax(0,1fr) 4.5rem;align-items:start;gap:clamp(1rem,3vw,3.5rem);padding-bottom:1.4rem;border-bottom:1px solid var(--rule)}
.popular-image{display:block;aspect-ratio:1.36;overflow:hidden;background:#ebedef}
.popular-image img{width:100%;height:100%}
.popular-card h3{font-size:clamp(1.125rem,1.8vw,1.5rem);font-weight:600;line-height:1.33;letter-spacing:-.015em}
.popular-rank{font-size:clamp(2.5rem,4vw,3.75rem);font-weight:600;line-height:1;text-align:center;color:#b3b5b7}
.auto-column .story-card+.story-card{margin-top:2rem}
/* Three footer levels. Only disclosure and legal copy use the requested 8pt. */
.site-footer{background:var(--footer);padding-top:var(--section-space);padding-bottom:1.25rem}
.footer-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3rem;padding-bottom:2.7rem}
.footer-column{min-width:0;font-size:.875rem;line-height:1.65}
.footer-column h2{font-size:1.125rem;font-weight:600;margin-bottom:1rem}
.footer-column nav{display:flex;flex-direction:column;align-items:flex-start}
.footer-column nav a{display:flex;align-items:center;min-height:2rem}
.footer-column>a{display:inline-flex;align-items:center;min-height:2.75rem;overflow-wrap:anywhere}
.footer-disclosure{border-top:1px solid #dbdcde;padding-block:1.5rem;font-size:8pt;line-height:1.7;color:#62666b}
.footer-legal{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-top:1px solid #dbdcde;padding-top:.6rem;font-size:14px;line-height:1.7;color:#62666b}
.footer-legal nav{display:flex;align-items:center;flex-wrap:wrap;gap:.2rem 1.25rem}
.footer-legal a{display:inline-flex;align-items:center;min-height:2.75rem}
.footer-legal p{flex-shrink:0}
/* Reference tablet layout keeps the flanking stories and four-card bands. */
@media(max-width:61.99rem){
 .site-header{flex-wrap:wrap}.menu-toggle{display:inline-flex}.primary-navigation{width:100%;gap:0;flex-direction:column;align-items:stretch;padding:.5rem 0;border-top:1px solid #e2e2e2}
 .primary-navigation a{min-height:3rem}.site-header.menu-ready .primary-navigation:not(.is-open){display:none}
 .display-heading{font-size:3rem}.trending-grid{grid-template-columns:1fr 2.05fr 1fr;gap:3%}
 .story-card--lead h2{font-size:1.875rem}.popular-card{grid-template-columns:7rem minmax(0,1fr) 2.5rem;gap:1.25rem}
}
@media(max-width:47.99rem){
 .display-heading{font-size:2.875rem}.trending-grid{grid-template-columns:1fr 1.85fr 1fr;gap:3%}
 .story-card--lead h2{font-size:1.75rem}.story-copy{padding-inline:0}.topic-copy{padding-inline:0}
 .popular-card{grid-template-columns:5rem minmax(0,1fr) 2rem;gap:.8rem}.popular-rank{font-size:2.5rem}
 .footer-columns{gap:1.5rem}.topic-copy p{font-size:.9375rem}
}
/* Reference phone breakpoint: side column, lead, side column; all bands stack. */
@media(max-width:29.99rem){
 .site-header{min-height:3.5rem}.wordmark{font-size:1.35rem}.trending-section{padding-top:1.7rem}
 .display-heading{font-size:clamp(2.3rem,10vw,2.75rem);line-height:1.2}
 .ruled-heading{margin-bottom:1.8rem}.trending-grid{grid-template-columns:minmax(0,1fr);gap:2.7rem}
 .trending-side{gap:2.5rem}.story-card{padding-bottom:1.2rem}.story-image{aspect-ratio:2.05}.editors-section .story-image{aspect-ratio:2}.story-copy{padding-inline:.35rem}
 .story-card h3{font-size:1rem}.story-card--lead h2{font-size:1.75rem}
 .topic-grid{grid-template-columns:minmax(0,1fr);gap:2.3rem;max-width:90%;margin-inline:auto}.topic-copy{padding-inline:.4rem}
 .explore-section .display-heading{margin-bottom:2rem}.editors-grid{grid-template-columns:minmax(0,1fr);gap:2.5rem}
 .section-heading{font-size:1.85rem}.popular-auto-section{grid-template-columns:minmax(0,1fr);gap:2.7rem}
 .popular-card{grid-template-columns:minmax(0,1fr) 2.5rem;gap:.7rem 1rem;padding-bottom:1.3rem}
 .popular-image{grid-column:1/-1;aspect-ratio:2.6}.popular-card h3{font-size:1.125rem}
 .popular-rank{font-size:2.4rem}.footer-columns{grid-template-columns:minmax(0,1fr);gap:2rem;padding-bottom:2.2rem}
 .footer-column nav a{min-height:2.75rem}.footer-column h2{margin-bottom:.65rem}
 .footer-legal{flex-direction:column;align-items:flex-start;gap:.2rem}.footer-legal nav{column-gap:1rem}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.story-image img,.topic-image img{transition:none}}

/* Homepage footer: start Menu, Address, and plain-text Contact content on the same line. */
body[data-page-type="homepage"] .footer-column nav a{align-items:flex-start}
body[data-page-type="homepage"] .footer-email{overflow-wrap:anywhere}

/* Show the entire HELOC homepage image and its embedded disclaimer. */
.story-card--lead .heloc-homepage-image{aspect-ratio:3/2}
.story-card--lead .heloc-homepage-image img{display:block;width:100%;height:100%;object-fit:contain}
.story-card--lead .heloc-homepage-image:hover img{transform:none}

/* Match the article disclaimer typography on homepage and topic pages. */
body[data-page-type="home"] .footer-disclosure,body[data-page-type="homepage"] .footer-disclosure,body[data-page-type="category"] .footer-disclosure{font-size:14px;line-height:1.6;color:#6b6f76}
body[data-page-type="home"] .footer-disclosure p,body[data-page-type="homepage"] .footer-disclosure p,body[data-page-type="category"] .footer-disclosure p{font-size:14px;line-height:1.6;margin:0 0 1rem}
.footer-disclosure-updated p:last-child{margin-bottom:0}

/* Match bottom legal links and copyright to the 14px disclaimer text. */
.footer-legal,.footer-legal a,.footer-legal p{font-size:14px}
