/* Blog-only layer. Existing global navigation, forms, and business pages are untouched. */
body.hm-blog{--guide-paper:#f4efe4;--guide-tint:#a9d8c9;--guide-ink:#102a2c;--guide-accent:#c64b32;--guide-white:#fffdf8;--guide-rule:#c6cbc5;--guide-muted:#3e5555;background:var(--guide-white);color:var(--guide-ink)}
body.hm-blog main#main{display:block}
body.hm-blog main#main>*{order:initial}
.hm-blog .hm-blog-hero,.hm-blog .hm-article-hero{background:var(--guide-paper);padding:56px 0}
.hm-blog .hm-blog-hero-grid{display:grid;gap:40px;align-items:center}
.hm-blog .hm-has-blog-art{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.hm-blog .hm-blog-kicker{font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin:0 0 16px}
.hm-blog .hm-blog-hero h1,.hm-blog .hm-article-hero h1{font-size:clamp(34px,4.6vw,64px);line-height:1.1;letter-spacing:-.025em;text-transform:none;text-wrap:balance;max-width:20ch;margin:16px 0 24px}
.hm-blog .hm-blog-hero p:not(.hm-blog-kicker){font-size:19px;line-height:1.6;max-width:52ch}
.hm-blog .hm-blog-hero figure{margin:0}.hm-blog .hm-blog-hero figure img{width:100%;height:auto;display:block;box-shadow:7px 7px 0 var(--guide-tint)}
.hm-blog .hm-blog-topics{background:var(--guide-ink);color:var(--guide-white)}
.hm-blog .hm-blog-topics>.wrap{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;padding-block:16px}
.hm-blog .hm-blog-topics span{font-weight:700}.hm-blog .hm-blog-topics a{padding:9px 0;text-underline-offset:5px;min-height:44px}
.hm-blog .hm-blog-feed{padding:56px 0 72px}.hm-blog .hm-blog-section-title{font-size:30px;text-transform:none;margin:0 0 28px}
.hm-blog .hm-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.hm-blog .hm-guide-card{min-width:0;display:flex;flex-direction:column;border:1px solid var(--guide-rule);background:var(--guide-white)}
.hm-blog .hm-guide-card-image{display:block;background:var(--guide-paper)}
.hm-blog .hm-guide-card-image img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.hm-blog .hm-guide-card-body{padding:26px;display:flex;flex-direction:column;flex:1}
.hm-blog .hm-guide-card h2{font-size:26px;line-height:1.22;letter-spacing:-.015em;text-transform:none;margin:16px 0;text-wrap:balance}
.hm-blog .hm-guide-card h2 a{text-decoration:none}.hm-blog .hm-guide-card p{font-size:16px;line-height:1.6;color:var(--guide-muted);margin:0 0 24px}
.hm-blog .hm-blog-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:13px;line-height:1.5;letter-spacing:.015em;color:var(--guide-muted)}
.hm-blog .hm-guide-link{font-size:16px;font-weight:700;text-underline-offset:5px;padding:8px 0;min-height:44px}.hm-blog .hm-guide-card .hm-guide-link{margin-top:auto}
.hm-blog .hm-blog-pagination .nav-links{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:36px}
.hm-blog .hm-blog-pagination .page-numbers{min-width:44px;min-height:44px;display:grid;place-items:center;padding:8px 14px;border:1px solid var(--guide-ink);text-decoration:none}
.hm-blog .hm-blog-pagination .current{background:var(--guide-ink);color:var(--guide-white)}
.hm-blog .hm-blog-cta{width:min(1120px,calc(100% - 48px));margin:0 auto 84px;padding:30px;background:var(--guide-tint);border:2px solid var(--guide-ink);box-shadow:6px 6px 0 var(--guide-ink);display:flex;align-items:center;justify-content:space-between;gap:28px}
.hm-blog .hm-blog-cta h2{font-size:32px;line-height:1.15;text-transform:none;margin:0 0 12px}.hm-blog .hm-blog-cta p{margin:0}.hm-blog .hm-blog-cta .hm-blog-kicker{margin-bottom:12px}
.hm-blog .hm-blog-cta .btn{background:var(--guide-accent);color:var(--guide-white);white-space:nowrap}
.hm-blog .hm-blog-breadcrumbs{display:flex;flex-wrap:wrap;gap:10px;font-size:14px;line-height:1.6;margin-bottom:24px}
.hm-blog .hm-article-hero h1{max-width:24ch}.hm-blog .hm-article-deck{max-width:65ch;font-size:20px;line-height:1.6;margin:0 0 30px}
.hm-blog .hm-article-featured{margin:32px 0 0;max-width:960px}.hm-blog .hm-article-featured img{width:100%;height:auto;display:block}
@media(min-width:901px){
 .hm-blog .hm-article-featured img{height:clamp(360px,30vw,440px);object-fit:cover;object-position:center 52%}
}
.hm-blog .hm-article-layout{padding-top:52px;padding-bottom:64px;display:grid;grid-template-columns:minmax(0,720px);justify-content:center;gap:40px}
.hm-blog .hm-article-layout.hm-has-toc{grid-template-columns:240px minmax(0,720px);gap:48px}
.hm-blog .hm-article-rail{position:sticky;top:100px;align-self:start;max-height:calc(100vh - 180px);overflow-y:auto;border-top:4px solid var(--guide-accent);padding-top:18px}
.hm-blog .hm-article-toc h2{font-size:17px;text-transform:none;margin:0 0 14px}.hm-blog .hm-article-toc ol{padding-left:22px;margin:0}
.hm-blog .hm-article-toc li{margin:0 0 10px}.hm-blog .hm-article-toc a{font-size:15px;line-height:1.45;display:block;padding:5px 0;text-underline-offset:3px}
.hm-blog .hm-article-content{font-size:18px;line-height:1.7;min-width:0;max-width:68ch;overflow-wrap:anywhere}
.hm-blog .hm-article-content p{margin:0 0 1.35em;text-wrap:pretty}.hm-blog .hm-article-content h2{font-size:32px;line-height:1.2;letter-spacing:-.015em;text-transform:none;text-wrap:balance;margin:1.65em 0 .65em}
.hm-blog .hm-article-content h2:first-child{margin-top:0}.hm-blog .hm-article-content h3{font-size:24px;line-height:1.3;text-transform:none;margin:1.45em 0 .6em}
.hm-blog .hm-article-content h4{font-size:20px;line-height:1.4;text-transform:none}.hm-blog .hm-article-content [id]{scroll-margin-top:110px}
.hm-blog .hm-article-content a{color:var(--guide-ink);text-decoration-thickness:2px;text-underline-offset:3px}.hm-blog .hm-article-content ul,.hm-blog .hm-article-content ol{padding-left:1.5em;margin:0 0 1.5em}
.hm-blog .hm-article-content li{margin:.55em 0}.hm-blog .hm-article-content figure{margin:32px 0}.hm-blog .hm-article-content img{max-width:100%;height:auto}
.hm-blog .hm-article-content figcaption{font-size:14px;line-height:1.5;color:var(--guide-muted);margin-top:10px}
.hm-blog .hm-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;margin:32px 0;border:1px solid var(--guide-rule)}
.hm-blog .hm-table-scroll table{width:100%;min-width:600px;border-collapse:collapse;font-size:16px;line-height:1.5;font-variant-numeric:tabular-nums}
.hm-blog .hm-table-scroll caption{text-align:left;padding:14px;font-weight:700;background:var(--guide-paper)}
.hm-blog .hm-table-scroll th,.hm-blog .hm-table-scroll td{padding:14px;vertical-align:top;text-align:left;border:1px solid var(--guide-rule);overflow-wrap:normal}
.hm-blog .hm-table-scroll th{background:var(--guide-ink);color:var(--guide-white)}.hm-blog .hm-table-scroll tbody tr:nth-child(even){background:var(--guide-paper)}
.hm-blog .hm-article-content .hm-callout,.hm-blog .hm-article-content .hm-quick-answer,.hm-blog .hm-article-content blockquote{margin:32px 0;padding:24px;background:var(--guide-tint);border-left:5px solid var(--guide-ink)}
.hm-blog .hm-article-content .hm-callout>:last-child,.hm-blog .hm-article-content .hm-quick-answer>:last-child,.hm-blog .hm-article-content blockquote>:last-child{margin-bottom:0}
.hm-blog .hm-article-content .hm-steps{list-style:decimal;padding-left:1.8em}.hm-blog .hm-steps>li{padding-left:10px;margin:22px 0}.hm-blog .hm-steps>li::marker{font-weight:800;color:var(--guide-accent)}
.hm-blog .hm-article-updated{font-size:14px;color:var(--guide-muted);margin-bottom:40px}
.hm-blog main :focus-visible{outline:3px solid var(--guide-accent);outline-offset:4px}
@media(max-width:1000px){.hm-blog .hm-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-blog .hm-article-layout.hm-has-toc{grid-template-columns:200px minmax(0,1fr);gap:30px}}
@media(max-width:760px){.hm-blog .hm-has-blog-art,.hm-blog .hm-article-layout.hm-has-toc{grid-template-columns:minmax(0,1fr)}.hm-blog .hm-blog-hero,.hm-blog .hm-article-hero{padding:36px 0}.hm-blog .hm-guide-grid{grid-template-columns:minmax(0,1fr)}.hm-blog .hm-blog-feed{padding:40px 0 52px}.hm-blog .hm-article-rail{position:static;max-height:none;overflow:visible}.hm-blog .hm-blog-cta{width:calc(100% - 32px);display:block;margin-bottom:100px;padding:24px}.hm-blog .hm-blog-cta .btn{margin-top:22px;white-space:normal}.hm-blog .hm-article-content{font-size:17px}.hm-blog .hm-article-content h2{font-size:28px}.hm-blog .hm-article-deck{font-size:18px}.hm-blog .hm-article-layout{padding-top:36px;padding-bottom:44px}}

/* The existing estimate form sits beside the introduction in reading order. */
@media(max-width:900px){
 .hm-blog .hm-blog-hero,.hm-blog .hm-article-hero{padding:24px 0}
 .hm-blog .hm-blog-hero h1,.hm-blog .hm-article-hero h1{font-size:clamp(30px,4.6vw,40px);line-height:1.12}
 body.hm-blog.hm-layout-enabled:not(.home):not(.hm-page-contact) .quick-lead.quick-lead-inline-mobile{margin:20px 0 24px;max-width:680px}
}

/* Keep guide headings clear of sticky navigation. */
#latest-guides{scroll-margin-top:130px}
@media(max-width:900px){#latest-guides{scroll-margin-top:105px}}
