/* Affirm section geometry, SCALZ Luminous Ether identity. Scoped to blog templates. */
.affirm-template{--blog-paper:#f5f3ee;--blog-ink:#192f32;--blog-accent:#0d8a87;--blog-orange:#ff5c00;background:var(--blog-paper);color:var(--blog-ink);font-family:Satoshi,Arial,sans-serif}
.affirm-template main{display:block;max-width:none;width:100%;padding:0;margin:0}
.affirm-template .container{width:min(1200px,calc(100% - 3rem));max-width:1200px;margin-inline:auto}
.affirm-template main.container{width:100%;max-width:none;padding:0;margin:0}
.affirm-template h1,.affirm-template h2,.affirm-template h3{font-family:"Cabinet Grotesk",Satoshi,Arial,sans-serif;line-height:1.12;text-wrap:balance}
.affirm-template a{color:var(--blog-accent)}
.affirm-template a:focus-visible,.affirm-template summary:focus-visible,.affirm-template button:focus-visible,.affirm-template input:focus-visible{outline:3px solid var(--blog-orange);outline-offset:4px}
.affirm-template .hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:28rem;padding:5rem 0;background:#142e32;color:#fff;overflow:hidden}
.affirm-template .hero__content{position:relative;z-index:2}
.affirm-template .hero h1{color:#fff;max-width:20ch;font-size:clamp(2.25rem,4.5vw,4.5rem);margin:1rem 0;letter-spacing:-.025em}
.affirm-template .hero__content>p{font-size:1.15rem;max-width:64ch;line-height:1.65;color:#f5f3ee}
.affirm-template .hero__media,.affirm-template .hero__scrim{position:absolute;inset:0;z-index:0}
.affirm-template .hero__media img{width:100%;height:100%;object-fit:cover;opacity:.3}
.affirm-template .hero__scrim{background:linear-gradient(90deg,rgba(13,40,43,.95),rgba(13,40,43,.35));z-index:1;pointer-events:none}
.affirm-template .breadcrumbs{font-size:.85rem;line-height:1.5;color:#fff;max-width:85ch}
.affirm-template .breadcrumbs a{color:#fff;text-decoration:underline;text-underline-offset:.2em}
.affirm-template .breadcrumbs ol{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0;margin:0}
.affirm-template .breadcrumbs ol li+li:before{content:"/";margin-right:.5rem;opacity:.7}
.affirm-template .author-line{display:flex;flex-wrap:wrap;gap:.65rem 1.5rem;max-width:85ch;font-size:.9rem;line-height:1.6;margin-top:1.5rem}
.affirm-template .author-line a{color:#fff;text-decoration:underline}
.affirm-template .section,.affirm-template #posts,.affirm-template #filter{padding:3.5rem max(1.5rem,calc((100% - 1200px)/2));max-width:none;margin:0}
.affirm-template .section>.container{width:100%}
.affirm-template .blog-hubs{background:#e4eeea}
.affirm-template .blog-hubs__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 2rem;padding-left:1.25rem;margin-top:1.5rem}
.affirm-template .blog-hubs__list a{font-weight:600;text-decoration:underline;text-underline-offset:.2em}
.affirm-template .featured-resource .split{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:3rem}
.affirm-template .featured-resource img{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:cover;border-radius:1rem}
.affirm-template .featured-resource h2{font-size:clamp(1.75rem,3vw,2.8rem);margin:.75rem 0}
.affirm-template .featured-resource p{line-height:1.7}
.affirm-template .eyebrow{color:var(--blog-accent);font-size:.85rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.affirm-template .blog-category:nth-child(odd){background:#e4eeea}
.affirm-template .blog-category__heading,.affirm-template .archive-heading{margin-bottom:1.75rem}
.affirm-template .blog-grid,.affirm-template .blog-category__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem;list-style:none;padding:0;margin:0}
.affirm-template .blog-grid>li{display:flex;min-width:0}
.affirm-template .post-card,.affirm-template .category-card{display:flex;flex-direction:column;width:100%;min-width:0;background:#fbfaf6;color:var(--blog-ink);border:1px solid #cbd5ce;border-radius:1rem;overflow:hidden;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease}
.affirm-template .post-card:hover,.affirm-template .category-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px #12333018}
.affirm-template .post-card__image img,.affirm-template .category-card__image img{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:cover}
.affirm-template .post-card__body,.affirm-template .category-card__body{padding:1.5rem;display:flex;flex-direction:column;gap:.8rem;flex:1}
.affirm-template .post-card h3,.affirm-template .category-card h3{font-size:1.4rem;margin:0}
.affirm-template .post-card p,.affirm-template .category-card p{margin:0;line-height:1.6}
.affirm-template .post-card__meta{font-size:.8rem;color:#476064}
.affirm-template .post-card__arrow{color:var(--blog-accent);margin-top:auto;font-size:1.6rem}
.affirm-template .archive-pagination{display:flex;flex-wrap:wrap;gap:.5rem;padding:0;list-style:none;margin-top:2rem}
.affirm-template .archive-pagination__pages{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0}
.affirm-template .archive-pagination__page{display:inline-flex;align-items:center;justify-content:center;min-width:2.75rem;min-height:2.75rem;border:1px solid #96aaa7;border-radius:.4rem;text-decoration:none}
.affirm-template .archive-pagination [aria-current=page]{background:var(--blog-accent);color:#fff}
.affirm-template .article-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 18rem!important;gap:3rem!important;max-width:1200px;margin-inline:auto;align-items:start}
.affirm-template .article-sidebar{grid-column:2;grid-row:1;position:sticky;top:7rem;min-width:0;max-height:calc(100vh - 8rem);overflow:auto}
.affirm-template .post-body{grid-column:1;grid-row:1;min-width:0;max-width:76ch;font-size:1.1rem;line-height:1.85}
.affirm-template .post-body h2{margin-top:2.5rem;font-size:clamp(1.6rem,2.4vw,2.2rem);scroll-margin-top:7rem}
.affirm-template .post-body h3{margin-top:1.75rem;font-size:1.3rem}
.affirm-template .post-body p,.affirm-template .post-body ul,.affirm-template .post-body ol{margin-block:1.25rem}
.affirm-template .post-body li+li{margin-top:.55rem}
.affirm-template .post-body img{max-width:100%;height:auto;border-radius:.75rem}
.affirm-template .post-body table{display:block;max-width:100%;overflow:auto}
.affirm-template .sidebar-card{background:#e4eeea;border:1px solid #cbd5ce;border-radius:.75rem;padding:1.5rem}
.affirm-template .article-sidebar a{color:#076865;text-decoration:underline;text-underline-offset:.2em}
.affirm-template .faq-section{max-width:1200px;margin-inline:auto}
.affirm-template details.faq,.affirm-template .faq>details{border-bottom:1px solid #b8c8c3;padding:1rem 0;line-height:1.75}
.affirm-template .faq__question{cursor:pointer;font-weight:700;font-size:1.1rem;list-style:revert;color:var(--blog-ink)}
.affirm-template .faq__answer{padding-top:1rem;max-width:78ch}
.affirm-template .shared-mega-menu{transition:opacity .18s ease,transform .18s ease,visibility .18s;transform:translateY(.5rem)}
.affirm-template .shared-nav-group:hover>.shared-mega-menu,.affirm-template .shared-nav-group:focus-within>.shared-mega-menu,.affirm-template .shared-nav-group:has([aria-expanded=true])>.shared-mega-menu{transform:translateY(0)}
@media(max-width:64rem){.affirm-template .article-layout{grid-template-columns:minmax(0,1fr)!important}.affirm-template .article-sidebar{grid-column:1;grid-row:2;position:static;max-height:none}.affirm-template .post-body{grid-row:1}.affirm-template .blog-grid,.affirm-template .blog-category__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:40rem){.affirm-template .hero{min-height:23rem;padding:3rem 0}.affirm-template .blog-grid,.affirm-template .blog-category__grid,.affirm-template .blog-hubs__list,.affirm-template .featured-resource .split{grid-template-columns:minmax(0,1fr)}.affirm-template .section,.affirm-template #posts,.affirm-template #filter{padding:2.5rem 1.25rem}.affirm-template .container{width:calc(100% - 2.5rem)}.affirm-template .author-line{display:grid;gap:.5rem}.affirm-template h1{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.affirm-template *{transition:none!important;scroll-behavior:auto!important;animation:none!important}}
