/**
 * Shared stylesheet for /blog pages - reuses the same design tokens
 * (colors, radius, font) as the main site's index.html, but scoped to
 * just what the blog needs so these pages stay lightweight.
 *
 * Loaded via a root-absolute path (/blog/blog.css) from every blog page,
 * regardless of how deeply nested the page's own URL is - see
 * cms/data-service.js for why relative paths are avoided here.
 */
:root{
  --ink:#161616;
  --paper:#eee9dd;
  --paper2:#f7f2e8;
  --orange:#ff5b18;
  --acid:#dfff72;
  --blue:#1937ff;
  --olive:#263823;
  --line:rgba(22,22,22,.16);
  --radius:28px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:"Urbanist",system-ui,sans-serif;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font:inherit}
h1,h2,h3,p{margin:0}
.serif{font-family:"Urbanist",system-ui,sans-serif;font-style:italic;font-weight:500}
.wrap{width:min(1220px,calc(100% - 40px));margin:auto}
.eyebrow{font-size:11px;text-transform:uppercase;font-weight:700;color:var(--orange);letter-spacing:.03em}

/* ---------- Nav ---------- */
.nav{position:fixed;left:50%;top:18px;transform:translateX(-50%);width:min(1120px,calc(100% - 28px));z-index:50;display:flex;justify-content:space-between;align-items:center;padding:11px 14px 11px 16px;border:1px solid rgba(255,255,255,.35);background:rgba(238,233,221,.72);backdrop-filter:blur(18px);border-radius:999px;box-shadow:0 12px 30px rgba(0,0,0,.08)}
.brand{display:flex;align-items:center;gap:10px;font-weight:700}
.brand-dot{width:30px;height:30px;border-radius:50%;background:var(--orange);display:grid;place-items:center;color:#fff;font-size:11px}
.navdock{display:flex;align-items:center;gap:8px;height:40px}
.dock-item{position:relative;height:36px;padding:0 16px;border-radius:999px;background:rgba(22,22,22,.08);display:flex;align-items:center;justify-content:center;flex:0 0 auto;color:var(--ink);font-size:13px;font-weight:600;transition:background-color .2s ease,color .2s ease}
.dock-item:hover,.dock-item.is-active{background:var(--orange);color:#fff}
.navcta{background:var(--ink);color:#fff;padding:10px 16px;border-radius:999px;font-size:13px;position:relative;overflow:hidden}
.navcta .btn-text{position:relative;z-index:2;transition:color .4s ease}
.navcta .hover-bg{position:absolute;width:0;height:0;border-radius:50%;background:var(--orange);top:50%;left:50%;transform:translate(-50%,-50%);transition:width .5s ease,height .5s ease;z-index:1;pointer-events:none}
.navcta:hover .hover-bg{width:500px;height:500px}
@media(max-width:850px){.navdock{display:none}.nav .navcta{display:none}}

/* ---------- Blog header ---------- */
.blog-header{padding:150px 0 60px}
.blog-header h1{font-size:clamp(38px,5.5vw,64px);line-height:1.02;margin-top:14px;max-width:760px}
.blog-header p{margin-top:18px;font-size:17px;max-width:560px;color:#5f5a52}

/* ---------- Category filter ---------- */
.blog-filters{display:flex;flex-wrap:wrap;gap:10px;margin:36px 0 8px}
.blog-filter{border:1px solid var(--line);background:transparent;padding:9px 18px;border-radius:999px;font-size:13px;font-weight:700;cursor:pointer;transition:.2s ease}
.blog-filter:hover{border-color:var(--orange)}
.blog-filter.is-active{background:var(--ink);color:#fff;border-color:var(--ink)}

/* ---------- Post grid / cards ---------- */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;padding:30px 0 120px}
@media(max-width:980px){.blog-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.blog-grid{grid-template-columns:1fr}}
.post-card{display:flex;flex-direction:column;background:var(--paper2);border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);transition:transform .3s ease,box-shadow .3s ease}
.post-card:hover{transform:translateY(-4px);box-shadow:0 20px 40px rgba(0,0,0,.10)}
.post-card-media{aspect-ratio:16/10;background:linear-gradient(135deg,var(--acid),var(--paper2) 60%,var(--orange));display:grid;place-items:center;color:rgba(22,22,22,.4);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;overflow:hidden}
.post-card-media img{width:100%;height:100%;object-fit:cover;display:block}
.post-card-body{padding:22px 22px 26px;display:flex;flex-direction:column;gap:10px;flex:1}
.post-card-meta{display:flex;align-items:center;gap:10px;font-size:12px;color:#8a8477}
.post-card h3{font-size:20px;line-height:1.24}
.post-card p{color:#5f5a52;font-size:14.5px;line-height:1.55}
.post-card-footer{margin-top:auto;padding-top:6px;font-size:13px;font-weight:700;color:var(--orange)}

/* ---------- Single post ---------- */
.post-breadcrumb{padding:150px 0 0;font-size:13px;color:#8a8477}
.post-breadcrumb a:hover{color:var(--orange)}
.post-hero{padding:18px 0 40px}
.post-hero h1{font-size:clamp(32px,5vw,52px);line-height:1.05;margin-top:16px;max-width:820px}
.post-hero-meta{display:flex;flex-wrap:wrap;gap:16px;margin-top:22px;font-size:13.5px;color:#5f5a52}
.post-hero-media{margin:34px 0;aspect-ratio:16/8;border-radius:var(--radius);overflow:hidden;background:var(--paper2)}
.post-hero-media img{width:100%;height:100%;object-fit:cover;display:block}
.post-body{max-width:720px;margin:0 auto;padding-bottom:60px;font-size:17px;line-height:1.75;color:#2b2b2b}
.post-body h2{font-size:clamp(24px,3vw,32px);margin:44px 0 16px;line-height:1.15}
.post-body h3{font-size:22px;margin:34px 0 12px}
.post-body p{margin:0 0 20px}
.post-body ul{margin:0 0 20px;padding-left:22px}
.post-body li{margin-bottom:8px}
.post-body blockquote{margin:32px 0;padding:6px 0 6px 24px;border-left:3px solid var(--orange);font-size:22px;font-style:italic;font-family:"Urbanist",system-ui,sans-serif}
.post-body .post-image{margin:32px 0;border-radius:20px;overflow:hidden}
.post-body .post-image img{width:100%;display:block;object-fit:cover;aspect-ratio:16/9}
.post-body .post-image figcaption{margin-top:10px;font-size:12.5px;color:#8a8477;text-align:center}

/* ---------- TL;DR summary box ---------- */
.post-tldr{max-width:720px;margin:0 auto 40px;background:var(--paper2);border:1px solid var(--line);border-radius:20px;padding:26px 28px}
.post-tldr .post-box-label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--orange);margin-bottom:12px}
.post-tldr ul{margin:0;padding-left:20px;list-style:none}
.post-tldr li{position:relative;margin-bottom:10px;padding-left:6px;font-size:15px;line-height:1.55;color:#332f28}
.post-tldr li:last-child{margin-bottom:0}
.post-tldr li::before{content:"\2192";position:absolute;left:-20px;color:var(--orange);font-weight:800}

/* ---------- Expert verdict box ---------- */
.post-verdict{max-width:720px;margin:44px auto;background:var(--ink);color:#fff;border-radius:20px;padding:30px 32px}
.post-verdict .post-box-label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--acid);margin-bottom:12px}
.post-verdict p{font-size:16.5px;line-height:1.7;color:rgba(255,255,255,.88);margin:0 0 14px}
.post-verdict p:last-of-type{margin-bottom:0}
.post-verdict-byline{margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.16);display:flex;align-items:center;gap:12px}
.post-verdict-byline .avatar{width:36px;height:36px;border-radius:50%;background:var(--orange);flex:0 0 auto;display:grid;place-items:center;color:#fff;font-size:12px;font-weight:800}
.post-verdict-byline strong{display:block;font-size:13.5px}
.post-verdict-byline span{display:block;font-size:12px;color:rgba(255,255,255,.6)}

/* ---------- In-article CTA ---------- */
.post-cta{max-width:720px;margin:44px auto;text-align:center;background:var(--paper2);border:1px solid var(--line);border-radius:20px;padding:34px 30px}
.post-cta h3{font-size:22px;line-height:1.2}
.post-cta p{margin-top:10px !important;font-size:15px;color:#5f5a52}
.post-cta-btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:22px}

/* ---------- Buttons (shared with main site's hover-fill style) ---------- */
.btn{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:13px 24px;font-size:14px;font-weight:700;cursor:pointer;border:none}
.btn-text{position:relative;z-index:2;transition:color .35s ease}
.btn .hover-bg{position:absolute;width:0;height:0;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%);transition:width .5s ease,height .5s ease;z-index:1;pointer-events:none}
.btn:hover .hover-bg{width:480px;height:480px}
.btn-primary{background:var(--ink);color:#fff}
.btn-primary .hover-bg{background:var(--orange)}
.btn-ghost{background:transparent;color:var(--ink);border:1.5px solid var(--line)}
.btn-ghost .hover-bg{background:var(--ink)}
.btn-ghost:hover .btn-text{color:#fff}

.post-tags{max-width:720px;margin:0 auto 60px;display:flex;flex-wrap:wrap;gap:8px}
.post-tag{border:1px solid var(--line);border-radius:999px;padding:7px 14px;font-size:12.5px;font-weight:700;color:#5f5a52}
.post-author{max-width:720px;margin:0 auto 80px;display:flex;gap:16px;align-items:center;padding:22px;border-radius:20px;background:var(--paper2);border:1px solid var(--line)}
.post-author-avatar{width:52px;height:52px;border-radius:50%;background:var(--orange);flex:0 0 auto;display:grid;place-items:center;color:#fff;font-weight:700}
.post-author strong{display:block}
.post-author span{font-size:13.5px;color:#5f5a52}
.related-heading{padding-top:20px}

/* ---------- Footer ---------- */
.blog-footer{background:var(--ink);color:#fff;padding:70px 0 30px;margin-top:60px}
.blog-footer h2{font-size:clamp(24px,2.8vw,36px);max-width:520px}
.blog-footer .eyebrow{margin-bottom:10px}
.blog-footer-socials{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.social-btn{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:10px 16px;font-size:13px;font-weight:600}
.social-btn svg{width:16px;height:16px}
.social-btn .hover-bg{position:absolute;width:0;height:0;border-radius:50%;background:var(--orange);top:50%;left:50%;transform:translate(-50%,-50%);transition:width .5s ease,height .5s ease;z-index:1;pointer-events:none}
.social-btn .btn-text{position:relative;z-index:2;display:inline-flex;align-items:center;gap:8px}
.social-btn:hover .hover-bg{width:400px;height:400px}
.blog-footer-row{margin-top:50px;padding-top:20px;border-top:1px solid rgba(255,255,255,.14);font-size:13px;color:rgba(255,255,255,.6);display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}
