/* Shared across every page in /blog/ — brand tokens, reset, nav, share
   buttons, footer, and the cookie consent banner. These are the exact
   blocks that were previously duplicated verbatim in every article's
   inline <style>, which is what caused the brand-consistency bugs noted
   in PROJECT.md §9.1. Page-specific styles (hero, article body, gift
   cards, etc.) stay inline per page since they genuinely differ. */

/* Inlined directly (rather than linking fonts.googleapis.com's CSS) so
   font-display:optional is registered before first paint — routing
   through Google's CSS via a late-swapped <link> delayed when the
   browser learned about these rules until after initial layout, which
   caused a real, measured CLS regression (PageSpeed Insights, Aug
   2026: 0.164 layout shift on .finder-card from these two files). One
   file covers all four Inter weights in use (it's a variable font). */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:optional;src:url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2')}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:optional;src:url(https://fonts.gstatic.com/s/playfairdisplay/v40/nuFvD-vYSZviVYUb_rj3ij__anPXJzDwcbmjWBN2PKeiunDXbtM.woff2) format('woff2')}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{--brand:#2c3e50;--accent:#f39c12;--accent-hover:#d68910;--soft:#fef9ec;--text:#1a2535;--text-muted:#4a5568;--border:#e2ddd5;--card-bg:#fff;--page-bg:#fafaf8;--tag-text:#7d5a0a}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;background:var(--page-bg);color:var(--text);font-size:16px;line-height:1.75}

/* NAV */
nav{background:var(--brand);padding:0 2rem;display:flex;align-items:center;justify-content:space-between;height:64px;position:sticky;top:0;z-index:100}
.nav-logo{display:flex;align-items:center;gap:10px;text-decoration:none}
.nav-logo-icon{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.nav-logo-name{font-family:'Playfair Display',Georgia,serif;font-size:1.2rem;font-weight:700;color:#fff}
.nav-logo-name span{color:var(--accent)}
.nav-links{display:flex;gap:1.25rem;align-items:center}
.nav-links a{color:rgba(255,255,255,0.88);text-decoration:none;font-size:0.875rem;font-weight:500}
.nav-links a:hover{color:#fff}
.nav-cta{background:var(--accent);color:#1a2535!important;padding:0.45rem 1.1rem;border-radius:7px;font-weight:700!important}

/* SHARE BAR (article pages) */
.share-bar{display:flex;align-items:center;justify-content:center;gap:0.5rem;margin-top:1.1rem;flex-wrap:wrap}
.share-label{font-size:0.78rem;color:var(--text-muted);margin-right:0.15rem}
.share-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#fff;border:1px solid var(--border);color:var(--text-muted);text-decoration:none;cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease}
.share-btn svg{width:15px;height:15px;fill:currentColor}
.share-btn:hover{background:var(--accent);color:#1a2535;border-color:var(--accent)}
.share-btn.copied{background:#2c3e50;color:#fff;border-color:#2c3e50}

/* FOOTER */
footer{background:#1e2d3d;color:rgba(255,255,255,0.72);text-align:center;padding:2rem;font-size:0.78rem}
footer a{color:var(--accent);text-decoration:none}

/* ARTICLE TOC + KEY TAKEAWAYS (added for SEO/E-E-A-T scannability) */
.toc-box{background:#fff;border:1px solid var(--border);border-radius:14px;padding:1.25rem 1.5rem;margin:1.75rem 0}
.toc-box h2{font-family:'Playfair Display',Georgia,serif;font-size:1.05rem;margin:0 0 0.75rem}
.toc-box ol{margin:0;padding-left:1.25rem}
.toc-box li{margin-bottom:0.45rem;font-size:0.9rem}
.toc-box a{color:var(--tag-text);text-decoration:none}
.toc-box a:hover{text-decoration:underline}
.key-takeaways{background:var(--soft);border:1px solid #f5d98a;border-radius:14px;padding:1.25rem 1.5rem;margin:1.75rem 0}
.key-takeaways h2{font-family:'Playfair Display',Georgia,serif;font-size:1.05rem;margin:0 0 0.75rem}
.key-takeaways ul{margin:0;padding-left:1.25rem}
.key-takeaways li{margin-bottom:0.5rem;font-size:0.9rem}

/* COOKIE CONSENT BANNER */
#cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:9998;background:#1e2d3d;border-top:1px solid rgba(255,255,255,0.1);padding:1rem 1.25rem;display:none;box-shadow:0 -4px 24px rgba(0,0,0,0.2)}
#cookie-banner.visible{display:block}
.cookie-inner{max-width:1000px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}
.cookie-text{color:rgba(255,255,255,0.82);font-size:0.85rem;line-height:1.6;flex:1;min-width:240px}
.cookie-text a{color:#f39c12;text-decoration:underline}
.cookie-actions{display:flex;gap:0.6rem;flex-shrink:0}
.cookie-btn{font-family:'Inter',sans-serif;font-size:0.82rem;font-weight:700;padding:0.55rem 1.1rem;border-radius:8px;cursor:pointer;border:none;transition:opacity 0.15s}
.cookie-btn:hover{opacity:0.88}
.cookie-accept{background:#f39c12;color:#1a2535}
.cookie-decline{background:transparent;color:rgba(255,255,255,0.75);border:1px solid rgba(255,255,255,0.25)!important}
@media(max-width:600px){.cookie-inner{flex-direction:column;align-items:stretch}.cookie-actions{justify-content:stretch}.cookie-btn{flex:1}}
