/* Everyday Circuit — redesign 2026 (Outfit, light/dark, soft cards) */
:root{
  --bg:#f7f6f2;--surface:#fff;--surface-2:#f0efe9;--text:#141414;--muted:#5b5b58;
  --primary:#1b44c8;--primary-contrast:#fff;--accent:#d98a0b;--accent-contrast:#141414;
  --border:#e3e1d9;--shadow:0 24px 48px -12px #1414141f;--radius:.875rem;--radius-lg:1.5rem;--pill:9999px;
  --font:"Outfit",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --gutter:clamp(1.25rem,5vw,6rem);--max:76rem;
  --band-1:#1b44c8;--band-2:#5b7cf0;
}
.dark{--bg:#101010;--surface:#191919;--surface-2:#202020;--text:#f3f2ee;--muted:#9c9c97;--primary:#7b99f5;--primary-contrast:#101010;--accent:#edb13c;--accent-contrast:#101010;--border:#282827;--shadow:0 24px 48px -12px #00000073;--band-1:#6e8cf0;--band-2:#9db2f7}
@media (prefers-color-scheme:dark){:root:not(.light){--bg:#101010;--surface:#191919;--surface-2:#202020;--text:#f3f2ee;--muted:#9c9c97;--primary:#7b99f5;--primary-contrast:#101010;--accent:#edb13c;--accent-contrast:#101010;--border:#282827;--shadow:0 24px 48px -12px #00000073;--band-1:#6e8cf0;--band-2:#9db2f7}}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:6rem;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:17px;line-height:1.7;-webkit-font-smoothing:antialiased;transition:background .25s,color .25s}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
h1,h2,h3,h4,p{margin:0}
h1,h2,h3{font-weight:600;letter-spacing:-.025em;line-height:1.12}
h1{font-size:clamp(2.4rem,5.2vw,3.6rem)}
h2{font-size:clamp(1.75rem,3.4vw,2.6rem)}
h3{font-size:1.3rem;letter-spacing:-.015em;line-height:1.3}
p{color:var(--muted)}
:focus-visible{outline:2px solid var(--primary);outline-offset:3px;border-radius:6px}
.wrap{max-width:calc(var(--max) + 2*var(--gutter));margin-inline:auto;padding-inline:var(--gutter)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:0;background:var(--primary);color:var(--primary-contrast);padding:.6rem 1rem;z-index:100;border-radius:var(--pill)}
.skip:focus{left:1rem;top:1rem}
.muted-heading{color:var(--muted)}
.eyebrow{display:inline-block;color:var(--accent);font-size:.78rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.eyebrow a{color:inherit}
.pill{display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:var(--pill);padding:.1rem .65rem;font-size:.78rem;color:var(--muted);background:var(--surface)}

/* Buttons */
.button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:2.75rem;padding:.6rem 1.35rem;border-radius:var(--pill);font-weight:500;font-size:.95rem;line-height:1.2;border:1px solid transparent;transition:transform .15s,background .2s,border-color .2s,opacity .2s;white-space:nowrap}
.button:hover{transform:translateY(-1px)}
.button,.button-primary{background:var(--primary);color:var(--primary-contrast)}
.button-ghost,.button.outline{background:transparent;color:var(--text);border-color:var(--border)}
.button-ghost:hover,.button.outline:hover{border-color:var(--text)}
.button-accent{background:var(--accent);color:var(--accent-contrast)}
.button-on-color{background:transparent;color:#fff;border-color:#ffffff66}
.button-on-color:hover{border-color:#fff}
.arrow-link{color:var(--primary);font-weight:500}
.arrow-link:hover{text-decoration:underline;text-underline-offset:4px}

/* Promo bar + header */
.promo-bar{text-align:center;font-size:.85rem;color:var(--muted);padding:.55rem 1rem;border-bottom:1px solid var(--border)}
.promo-bar span{color:var(--accent);margin-right:.35rem}
.promo-bar a{color:var(--primary);font-weight:500}
.site-header{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid transparent;transition:border-color .2s}
.site-header.scrolled{border-bottom-color:var(--border)}
.header-inner{max-width:calc(var(--max) + 2*var(--gutter));margin:auto;padding:.85rem var(--gutter);display:flex;align-items:center;gap:1.5rem}
.brand{display:inline-flex;align-items:center;gap:.7rem;flex-shrink:0}
.logo-tile{width:2.5rem;height:2.5rem;border-radius:.75rem;background:var(--primary);color:var(--primary-contrast);display:grid;place-items:center;font-weight:700;font-size:1.05rem;letter-spacing:-.06em;position:relative}
.logo-tile span{position:absolute;top:.15rem;right:.3rem;font-size:.6rem;color:var(--accent)}
.dark .logo-tile span{color:var(--primary-contrast)}
.brand-text{display:flex;flex-direction:column;line-height:1.15}
.brand-text strong{font-weight:600;font-size:1.02rem;letter-spacing:-.01em}
.brand-text small{color:var(--muted);font-size:.74rem}
#main-nav{display:flex;align-items:center;gap:1.75rem;margin-inline:auto;font-size:.93rem}
#main-nav>a,.nav-dropdown summary{color:var(--muted);transition:color .15s;cursor:pointer}
#main-nav>a:hover,.nav-dropdown summary:hover{color:var(--text)}
.nav-dropdown{position:relative}
.nav-dropdown summary{list-style:none}
.nav-dropdown summary::-webkit-details-marker{display:none}
.dropdown-menu{position:absolute;top:calc(100% + .9rem);left:50%;transform:translateX(-50%);min-width:14rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:.5rem;display:grid}
.dropdown-menu a{padding:.55rem .75rem;border-radius:.6rem;display:flex;gap:.6rem;align-items:center}
.dropdown-menu a:hover{background:var(--surface-2)}
.topic-symbol{width:1.6rem;height:1.6rem;display:grid;place-items:center;border-radius:.5rem;background:var(--surface-2);color:var(--primary);font-size:.9rem}
.header-actions{display:flex;align-items:center;gap:.75rem}
.theme-toggle{width:2.6rem;height:2.6rem;border-radius:50%;border:1px solid var(--border);display:grid;place-items:center;color:var(--text)}
.theme-toggle svg{width:1.1rem;height:1.1rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.icon-moon{display:none}
.dark .icon-sun{display:none}.dark .icon-moon{display:block}
@media (prefers-color-scheme:dark){:root:not(.light) .icon-sun{display:none}:root:not(.light) .icon-moon{display:block}}
.menu-toggle{display:none;width:2.6rem;height:2.6rem;border-radius:50%;border:1px solid var(--border);flex-direction:column;gap:5px;align-items:center;justify-content:center}
.menu-toggle span{display:block;width:16px;height:1.6px;background:currentColor;border-radius:2px;transition:transform .2s}
.menu-toggle[aria-expanded="true"] span:first-child{transform:translateY(3.3px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:last-child{transform:translateY(-3.3px) rotate(-45deg)}

/* Hero */
.hero{padding-top:clamp(3.5rem,8vw,6.5rem);padding-bottom:clamp(2.5rem,5vw,4rem)}
.hero h1{margin-top:1.1rem;max-width:22ch}
.hero-lead{margin-top:1.4rem;max-width:40rem;font-size:1.12rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:2rem}
.hero-stats{list-style:none;padding:0;margin:3rem 0 0;display:flex;flex-wrap:wrap;gap:2.5rem;border-top:1px solid var(--border);padding-top:1.5rem}
.hero-stats li{display:flex;flex-direction:column}
.hero-stats strong{font-size:1.9rem;font-weight:600;letter-spacing:-.03em;line-height:1.1}
.hero-stats span{color:var(--muted);font-size:.9rem}

/* Featured */
.section-featured{padding-bottom:1rem}
.featured-post{display:grid;grid-template-columns:1.4fr 1fr;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow)}
.featured-image{background:var(--surface-2);display:grid;place-items:center;padding:2rem;min-height:20rem}
.featured-image img{max-height:22rem;width:auto;object-fit:contain}
.featured-body{padding:clamp(1.75rem,3.5vw,3rem);display:flex;flex-direction:column;gap:1rem;justify-content:center}
.featured-body h2{font-size:clamp(1.6rem,2.6vw,2.2rem)}
.featured-body h2 a:hover{color:var(--primary)}
.featured-body .button{align-self:flex-start;margin-top:.5rem}

/* Sections */
.section{padding-block:clamp(4rem,8vw,6.5rem)}
.section-heading{text-align:center;max-width:44rem;margin:0 auto 3rem}
.section-heading h2{margin-top:.8rem}
.section-heading p{margin-top:1rem}
.section-heading.align-left{text-align:left;margin-left:0}

/* Topic cards (pricing-style) */
.topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;align-items:stretch}
@media (max-width:1020px){.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.topic-grid{grid-template-columns:minmax(0,1fr)}}
.topic-card{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.75rem;display:flex;flex-direction:column;gap:.9rem;box-shadow:var(--shadow)}
.topic-card.is-popular{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary),var(--shadow)}
.popular-badge{position:absolute;top:-.8rem;left:1.5rem;background:var(--primary);color:var(--primary-contrast);font-size:.75rem;font-weight:600;padding:.2rem .75rem;border-radius:var(--pill)}
.topic-icon{width:2.75rem;height:2.75rem;border-radius:.8rem;background:var(--surface-2);display:grid;place-items:center;font-size:1.25rem;color:var(--primary)}
.topic-card p{font-size:.95rem}
.topic-count{font-size:.9rem;color:var(--muted)}
.topic-count strong{font-size:2rem;color:var(--text);font-weight:600;letter-spacing:-.03em;margin-right:.3rem}
.check-list{list-style:none;padding:0;margin:0;display:grid;gap:.55rem;font-size:.9rem;flex:1}
.check-list li{position:relative;padding-left:1.5rem;line-height:1.45}
.check-list li::before{content:"✓";position:absolute;left:0;color:var(--primary);font-weight:600}
.topic-card .button{margin-top:.5rem;width:100%}

/* Search + filters */
.hero-search{display:flex;align-items:center;gap:.75rem;max-width:36rem;margin:0 auto 1.25rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--pill);padding:.35rem .5rem .35rem 1.15rem}
.hero-search svg{width:1.15rem;height:1.15rem;fill:none;stroke:var(--muted);stroke-width:2;flex-shrink:0}
.hero-search input{flex:1;border:0;background:transparent;outline:0;padding:.55rem 0;min-width:0}
.hero-search:focus-within{border-color:var(--primary)}
.topic-filters{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-bottom:1rem}
.topic-filters button{border:1px solid var(--border);border-radius:var(--pill);padding:.4rem 1rem;font-size:.9rem;color:var(--muted);background:var(--surface);transition:all .15s}
.topic-filters button:hover{color:var(--text);border-color:var(--text)}
.topic-filters button.selected{background:var(--text);color:var(--bg);border-color:var(--text)}
.results-count{text-align:center;font-size:.85rem;margin-bottom:2rem}
.empty-posts,#emptyPosts{text-align:center;padding:2rem}
.load-row{display:flex;justify-content:center;margin-top:2.5rem}

/* Post cards */
.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(19rem,1fr));gap:1.5rem}
.post-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}
.post-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.post-card[hidden]{display:none}
.card-image{display:flex;align-items:center;justify-content:center;background:var(--surface-2);height:13rem;padding:1.5rem;overflow:hidden}
.card-image img{max-height:100%;max-width:100%;width:auto;height:auto;object-fit:contain}
.post-content{padding:1.5rem;display:flex;flex-direction:column;gap:.7rem;flex:1}
.card-meta{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.post-content h3 a:hover{color:var(--primary)}
.post-content p{font-size:.95rem;flex:1}
.card-footer{display:flex;gap:1rem;font-size:.83rem;color:var(--muted);border-top:1px solid var(--border);padding-top:.9rem;margin-top:.3rem}

/* FAQ */
.faq-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:3rem;align-items:start}
.faq-list{border-top:1px solid var(--border)}
.faq-item{border-bottom:1px solid var(--border)}
.faq-item summary{list-style:none;display:flex;justify-content:space-between;gap:1rem;padding:1.35rem 0;font-weight:500;font-size:1.08rem;cursor:pointer}
.faq-item summary::-webkit-details-marker{display:none}
.faq-plus{font-size:1.4rem;line-height:1;color:var(--muted);transition:transform .2s}
.faq-item[open] .faq-plus{transform:rotate(45deg)}
.faq-item p{padding:0 0 1.35rem;max-width:42rem}

/* CTA band */
.cta-band{position:relative;overflow:hidden;border-radius:var(--radius-lg);padding:clamp(2.25rem,5vw,4rem);background:linear-gradient(135deg,var(--band-1),var(--band-2));color:#fff;display:flex;flex-wrap:wrap;gap:2rem;align-items:flex-end;justify-content:space-between;margin-block:2rem clamp(4rem,8vw,6rem)}
.cta-band::after{content:"";position:absolute;width:26rem;height:26rem;border-radius:50%;right:-6rem;top:-10rem;background:#ffffff1f}
.cta-band h2{color:#fff;max-width:20ch}
.cta-band p{color:#ffffffd9;margin-top:.8rem}
.cta-band>*{position:relative;z-index:1}
.cta-actions{display:flex;flex-wrap:wrap;gap:.75rem}
.dark .cta-band,.dark .cta-band h2{color:#101010}
.dark .cta-band p{color:#101010cc}
.dark .button-on-color{color:#101010;border-color:#10101055}
@media (prefers-color-scheme:dark){:root:not(.light) .cta-band,:root:not(.light) .cta-band h2{color:#101010}:root:not(.light) .cta-band p{color:#101010cc}:root:not(.light) .button-on-color{color:#101010;border-color:#10101055}}

/* Footer */
.site-footer{border-top:1px solid var(--border);background:var(--surface);padding-top:4rem;margin-top:2rem}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:2.5rem}
.footer-brand p{margin-top:1rem;max-width:22rem;font-size:.95rem}
.footer-link-accent{display:inline-block;margin-top:1rem;color:var(--primary);font-size:.92rem}
.footer-grid h3{font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:600;margin-bottom:1rem}
.footer-grid div>a:not(.brand):not(.footer-link-accent){display:block;padding:.3rem 0;font-size:.95rem}
.footer-grid div>a:not(.brand):hover{color:var(--primary)}
.footer-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;border-top:1px solid var(--border);margin-top:3rem;padding-top:1.5rem;padding-bottom:2rem;font-size:.83rem;color:var(--muted)}

/* Breadcrumb + archive */
.breadcrumb{display:flex;flex-wrap:wrap;gap:.35rem .5rem;font-size:.85rem;color:var(--muted);padding-top:2rem}
.breadcrumb a:hover{color:var(--primary)}
.archive-intro{padding-top:2.5rem;padding-bottom:2.5rem}
.archive-intro>*{max-width:52rem}
.archive-intro h1{margin-top:.9rem}
.archive-intro h1 em{font-style:normal;color:var(--muted)}
.archive-intro p{margin-top:1.1rem;font-size:1.08rem}
.archive-section{padding-bottom:4rem}
.archive-controls{display:grid;gap:1rem;margin-bottom:1rem}
.search-field{display:grid;gap:.4rem;max-width:36rem;font-size:.85rem;color:var(--muted)}
.search-field input{background:var(--surface);border:1px solid var(--border);border-radius:var(--pill);padding:.75rem 1.15rem;outline:0}
.search-field input:focus{border-color:var(--primary)}
.archive-controls .topic-filters{justify-content:flex-start}
.archive-section .results-count{text-align:left}
.section-title{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.75rem}
.content-section{padding-block:3.5rem}

/* Article */
.article-heading{padding-top:2rem}
.article-heading>*{max-width:52rem}
.article-heading h1{margin-top:1rem;font-size:clamp(2.1rem,4.4vw,3.2rem)}
.article-deck{margin-top:1.1rem;font-size:1.2rem}
.byline{display:flex;align-items:center;gap:.85rem;margin-top:1.75rem;flex-wrap:wrap;font-size:.92rem}
.byline small{color:var(--muted);font-size:.85rem}
.author-icon,.author-avatar{width:2.6rem;height:2.6rem;border-radius:50%;background:var(--primary);color:var(--primary-contrast);display:grid;place-items:center;font-weight:700;font-size:.85rem}
.share-button{margin-left:auto;border:1px solid var(--border);border-radius:var(--pill);padding:.45rem 1rem;font-size:.85rem;color:var(--muted)}
.share-button:hover{color:var(--text);border-color:var(--text)}
.share-status{font-size:.82rem;color:var(--primary)}
.article-hero{margin-top:2.25rem}
.article-hero figure{margin:0;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-lg);padding:2.5rem;display:grid;place-items:center}
.article-hero img{max-height:26rem;width:auto}
.article-hero figcaption{margin-top:1.25rem;font-size:.82rem;color:var(--muted);text-align:center}
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 19rem;gap:clamp(2rem,5vw,4.5rem);padding-top:3rem;align-items:start}
.article-body{max-width:44rem}
.article-body section{margin-bottom:2.5rem}
.article-body h2{font-size:1.65rem;margin-bottom:1rem}
.article-body p{color:var(--text);opacity:.86;margin-bottom:1.1rem;font-size:1.08rem;line-height:1.8}
.article-body ul{padding-left:1.25rem}
.article-body a:not(.button){color:var(--primary);text-decoration:underline;text-underline-offset:3px}
.quick-take{background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--accent);border-radius:var(--radius);padding:1.5rem 1.75rem;margin-bottom:2rem}
.quick-take h2{font-size:1.3rem;margin:.4rem 0 .6rem}
.quick-take p{margin:0}
.pros-cons{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:2.5rem}
.pros-cons>div{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.4rem}
.pros-cons h3{font-size:1rem;margin-bottom:.75rem}
.pros-cons ul{list-style:none;padding:0;margin:0;display:grid;gap:.5rem;font-size:.95rem}
.pros-cons li{position:relative;padding-left:1.4rem;line-height:1.5}
.pros-cons>div:first-child li::before{content:"✓";position:absolute;left:0;color:var(--primary);font-weight:600}
.pros-cons>div:last-child li::before{content:"–";position:absolute;left:.2rem;color:var(--accent);font-weight:700}
.source-box{background:var(--surface-2);border-radius:var(--radius-lg);padding:1.75rem;margin:2.5rem 0}
.source-box h3{margin-bottom:.75rem}
.source-box p{font-size:.95rem}
.source-box .button{margin-top:.5rem}
.small-note{font-size:.82rem!important;margin-top:.75rem}
.article-sidebar{position:sticky;top:6.5rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;display:grid;gap:.85rem;box-shadow:var(--shadow)}
.article-sidebar h3{font-size:1.1rem}
.article-sidebar dl{margin:0;display:grid;gap:.5rem;font-size:.88rem}
.article-sidebar dl div{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px dashed var(--border);padding-bottom:.45rem}
.article-sidebar dt{color:var(--muted)}
.article-sidebar dd{margin:0;text-align:right;font-weight:500}
.toc-title{margin-top:.5rem}
.toc{display:grid;gap:.15rem;border-left:2px solid var(--border)}
.toc a{padding:.3rem 0 .3rem .85rem;margin-left:-2px;border-left:2px solid transparent;font-size:.9rem;color:var(--muted);line-height:1.4}
.toc a:hover,.toc a.active{color:var(--primary);border-left-color:var(--primary)}
.sidebar-image{background:var(--surface-2);border-radius:var(--radius);padding:1rem;display:grid;place-items:center}
.sidebar-image img{max-height:10rem;width:auto}
.sidebar-note{font-size:.88rem;color:var(--primary)}

/* Article rich content */
.article-body h3{font-size:1.2rem;margin:1.6rem 0 .6rem}
.article-body ul,.article-body ol{margin:0 0 1.3rem;padding-left:1.4rem;font-size:1.05rem;line-height:1.75}
.article-body li{margin-bottom:.45rem;color:var(--text)}
.article-body li::marker{color:var(--primary);font-weight:600}
.article-body strong{color:var(--text);font-weight:600}
.article-body em{color:var(--muted)}
.article-body h2{scroll-margin-top:6.5rem;margin-top:2.6rem}
.article-body>p:first-child{font-size:1.15rem}
.answer-box{margin:1.75rem 0 2rem;background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--accent);border-radius:var(--radius);padding:1.4rem 1.6rem}
.answer-box p{margin:0 0 .6rem;font-size:1.02rem}
.answer-box p:last-child{margin:0}
.answer-box p:first-child strong{display:block;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}
.article-body .table-scroll{margin:1.25rem 0 1.75rem}
.article-body table{font-size:.94rem}
.article-body td,.article-body th{vertical-align:top}
.article-body thead th{background:var(--surface-2)}
.article-body tbody tr:last-child td{border-bottom:0}
.sidebar-notice{background:var(--surface-2);border-radius:.8rem;padding:.9rem 1rem;font-size:.85rem;color:var(--muted);line-height:1.5}
.sidebar-notice strong{color:var(--text)}
.article-sidebar .button{width:100%;white-space:normal;text-align:center}
.check-list a:hover{color:var(--primary)}
.article-hero figure{padding:0;overflow:hidden;max-height:24rem}
.article-hero img{width:100%;max-height:none;height:24rem;object-fit:cover}
.card-image{padding:0;height:auto;aspect-ratio:1200/630}
.card-image img{width:100%;height:100%;max-height:none;object-fit:cover}
.featured-image{padding:0;min-height:0;display:flex;align-items:stretch}
.featured-image img{width:100%;height:100%;max-height:none;object-fit:cover;object-position:left center}

/* Prose pages, tables, calculator */
.prose{padding-bottom:4rem}
.prose>*{max-width:46rem}
.prose h2{font-size:1.6rem;margin:2rem 0 .8rem}
.prose p{margin-bottom:1rem;font-size:1.05rem}
.prose a{color:var(--primary)}
.table-scroll{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}
table{width:100%;border-collapse:collapse;font-size:.93rem}
th,td{padding:.9rem 1.1rem;text-align:left;border-bottom:1px solid var(--border)}
thead th{font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:600}
tbody th a{color:var(--primary)}
.calculator{display:grid;grid-template-columns:1.2fr 1fr;gap:1.5rem;margin-bottom:3rem}
.calc-controls,.calc-result{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:2rem;display:grid;gap:1rem;align-content:start}
.calc-controls label{display:grid;gap:.4rem;font-size:.9rem;color:var(--muted)}
.calc-controls input,.calc-controls select{background:var(--bg);border:1px solid var(--border);border-radius:.7rem;padding:.7rem .9rem;color:var(--text)}
.input-pair{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.calc-result strong{font-size:3rem;font-weight:600;letter-spacing:-.04em;line-height:1}
.calc-result dl{margin:0;display:grid;gap:.5rem}
.calc-result dl div{display:flex;justify-content:space-between;border-bottom:1px dashed var(--border);padding-bottom:.4rem}
.calc-result dd{margin:0;font-weight:500}

/* Responsive */
@media (max-width:1020px){
  .article-layout{grid-template-columns:minmax(0,1fr)}
  .article-sidebar{position:static}
  .featured-post{grid-template-columns:1fr}
  .faq-section{grid-template-columns:1fr;gap:1.5rem}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .nav-cta{display:none}
  .menu-toggle{display:inline-flex}
  #main-nav{position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:var(--surface);border-bottom:1px solid var(--border);padding:.5rem var(--gutter) 1rem;display:none;box-shadow:var(--shadow)}
  #main-nav.open{display:flex}
  #main-nav>a,.nav-dropdown summary{padding:.8rem 0;border-bottom:1px solid var(--border);color:var(--text)}
  .dropdown-menu{position:static;transform:none;box-shadow:none;border:0;padding:.25rem 0 .5rem}
  .header-actions{margin-left:auto}
  .calculator,.pros-cons{grid-template-columns:1fr}
}
@media (max-width:560px){
  body{font-size:16px}
  .brand-text small{display:none}
  .footer-grid{grid-template-columns:1fr}
  .hero-stats{gap:1.5rem}
  .post-grid{grid-template-columns:1fr}
  .cta-actions,.cta-actions .button{width:100%}
  .share-button{margin-left:0}
  .input-pair{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* calculadora de préstamos */
.loan-calc{margin:1.5rem 0 2rem;padding:clamp(1rem,3vw,1.5rem);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}
.loan-calc-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.loan-calc label{display:flex;flex-direction:column;gap:.4rem;font-size:.9rem;font-weight:500;color:var(--muted)}
.loan-calc input{font:inherit;font-size:1.05rem;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:.7rem .85rem;width:100%}
.loan-calc input:focus{outline:2px solid var(--primary);outline-offset:1px}
.loan-calc-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1.25rem}
.loan-calc-results div{background:var(--bg);border-radius:14px;padding:.9rem 1rem}
.loan-calc-results span{display:block;font-size:.85rem;color:var(--muted)}
.loan-calc-results strong{display:block;font-size:1.45rem;font-weight:600;color:var(--primary);margin-top:.2rem}
.loan-calc-note{font-size:.82rem;color:var(--muted);margin:.9rem 0 0}
@media (max-width:640px){.loan-calc-fields,.loan-calc-results{grid-template-columns:minmax(0,1fr)}}

/* Legal documents */
.footer-grid{grid-template-columns:1.5fr repeat(4,minmax(0,1fr))}
.legal-prose{overflow-wrap:anywhere}
.legal-prose ul{padding-left:1.4rem;margin:1rem 0}
.legal-prose li{margin-bottom:.8rem}
.legal-draft{max-width:46rem;padding:1.2rem;border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:.6rem;background:var(--surface);margin-bottom:1.5rem}
.legal-draft strong{display:block;margin-bottom:.35rem}
.legal-nav{display:flex;flex-wrap:wrap;gap:.55rem 1rem;border-block:1px solid var(--border);padding:1rem 0;margin-bottom:2rem;font-size:.9rem}
.legal-identity{max-width:46rem;display:grid;grid-template-columns:minmax(8rem,1fr) 2fr;gap:.7rem 1rem;padding:1.3rem;border:1px solid var(--border);border-radius:.7rem;background:var(--surface)}
.legal-identity dt{font-weight:600}.legal-identity dd{margin:0}
.legal-directory li{padding:.8rem 0;border-bottom:1px solid var(--border)}
.legal-directory a{font-weight:600}.legal-directory p{margin:.4rem 0 0}
.legal-prose .table-scroll{max-width:100%;margin:1.4rem 0}
.legal-prose table{min-width:34rem}.legal-prose caption{text-align:left;padding:1rem;font-weight:600}
@media(max-width:1020px){.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.footer-grid{grid-template-columns:1fr}.legal-identity{grid-template-columns:1fr;gap:.25rem}.legal-identity dd{margin-bottom:.8rem}}
