/* v2-common.css — Shared component styles for V2 pages
 *
 * Contains CSS for all JS-injected components:
 *   header-common.js  →  .hdr, .logo, .burger, .slide-menu, .menu-*
 *   sidebar-common.js →  .sidebar-nav, .nav-group, .sidebar-engage, .sidebar-actions
 *   footer-common.js  →  footer, .footer-in, .footer-brand
 *   chat injection    →  .chat-section, .chat-cards
 *
 * Also: base reset, :root palette, progress bar, skip link, focus styles,
 *        mobile back-to-top button, toast notification.
 *
 * Usage:  <link rel="stylesheet" href="/css/v2-common.css">
 *         Then inline only page-specific CSS in each page's <style> block.
 *
 * Last updated: 2026-04-11
 */

/* ── BASE RESET ─────────────────────────────────────────── */
*{box-sizing:border-box;margin:0;padding:0;font-family:'Segoe UI',system-ui,-apple-system,sans-serif}

/* ── MOBILE OVERFLOW SAFETY (global) ─────────────────────
 * Prevents horizontal scroll on phones from:
 *   - off-screen slide-out menu (position:fixed right:-280px)
 *   - wide images, iframes, videos
 *   - long unbreakable URLs/tokens in prose
 *   - wide <pre>/<code> blocks
 *   - CSS Grid items not shrinking below content size
 *   - tables wider than the viewport
 */
body{overflow-x:clip;max-width:100%}
img,svg,video,iframe,embed,object{max-width:100%;height:auto}
pre{max-width:100%;overflow-x:auto;white-space:pre-wrap;word-wrap:break-word}
code{overflow-wrap:anywhere;word-break:break-word}
p,li,h1,h2,h3,h4,h5,h6,blockquote,figcaption,dd,dt,summary,a{overflow-wrap:break-word}
/* CSS Grid/Flex items default to min-width:auto which prevents shrinking.
   Force main content containers to be shrinkable. */
main,.page-main,.category-col,.article-wrap,.article-body,.mag-section,.bottom-sections{min-width:0}
/* Tables: on mobile, wrap in a horizontal scroll if they don't have their own
   mobile layout. Pages that already do (e.g. .tools-table card-collapse) are unaffected
   because their own rules win by specificity inside their @media blocks. */
@media(max-width:768px){
  table{max-width:100%}
  .compare-table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
}


:root{
  --bg:#e8e4dd;--surface:#f5f2ec;--surface2:#ede9e1;--text:#2c2a26;--text-2:#6b6560;
  --text-3:#9c9590;--border:#d6d0c8;--border-light:#e5e1da;--accent:#b45309;
  --accent-hover:#92400e;--accent2:#7c5e3c;--header-bg:#3a3632;--header-text:#d6d0c8;
  --blue:#6366f1;--purple:#8b5cf6;--amber:#b45309;--green:#4d7c0f;--red:#be123c;--cyan:#0e7490
}

html{scroll-behavior:smooth;scroll-padding-top:70px}
body{background:var(--bg);color:var(--text);line-height:1.7}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-hover);text-decoration:underline}


/* ── HEADER (header-common.js) ──────────────────────────── */
.hdr{background:var(--header-bg);position:sticky;top:0;z-index:100;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.hdr-in{display:flex;align-items:center;justify-content:space-between;max-width:1200px;margin:0 auto;padding:.5rem 1.5rem}
.logo{font-size:1.2rem;font-weight:800;letter-spacing:-.5px;color:#f5f2ec;display:flex;align-items:center;gap:.4rem;text-decoration:none}
.logo:hover{text-decoration:none}
.logo-mark{flex-shrink:0}
.logo .ai{color:#93c5fd}
.logo .love{color:#fca5a5}
.hdr-r{display:flex;align-items:center;gap:.6rem}
.hdr-primary{display:flex;gap:.6rem;align-items:center}
.hdr-primary a{font-size:.78rem;font-weight:600;color:var(--header-text);transition:color .15s;text-decoration:none}
.hdr-primary a:hover{color:#fff;text-decoration:none}

/* Language switcher */
.lang-switch{display:flex;gap:.3rem;align-items:center}
.lang-flag{flex-shrink:0;border-radius:1px;vertical-align:middle}
.lang{border:1px solid rgba(255,255,255,.15);padding:.15rem .45rem;border-radius:4px;font-size:.7rem;color:var(--header-text);text-decoration:none;display:flex;align-items:center;gap:.25rem;transition:all .15s}
.lang:hover{border-color:rgba(255,255,255,.4);color:#fff;text-decoration:none;background:rgba(255,255,255,.06)}
.lang.active{border-color:var(--accent);color:#fff;background:rgba(180,83,9,.2)}

/* Hamburger button */
.burger{background:none;border:1px solid rgba(255,255,255,.15);cursor:pointer;padding:.35rem .45rem;border-radius:6px;display:flex;flex-direction:column;gap:3px;transition:border-color .15s}
.burger:hover{border-color:rgba(255,255,255,.35)}
.burger span{display:block;width:16px;height:2px;background:#d6d0c8;border-radius:2px}

/* Slide-out menu + overlay */
.menu-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:199}
.menu-overlay.open{display:block}
.slide-menu{position:fixed;top:0;right:-280px;width:280px;height:100%;background:var(--header-bg);z-index:200;transition:right .25s ease;box-shadow:-4px 0 20px rgba(0,0,0,.3);overflow-y:auto;padding:1rem 0}
.slide-menu.open{right:0}
.menu-close{background:none;border:none;color:var(--header-text);font-size:1.3rem;cursor:pointer;padding:.3rem .8rem;display:block;margin-left:auto}
.menu-close:hover{color:#fff}
.menu-section{padding:.5rem 1.2rem}
.menu-section-label{font-size:.6rem;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:rgba(214,208,200,.4);margin-bottom:.35rem}
.menu-section a{display:flex;align-items:center;gap:.5rem;padding:.5rem .4rem;font-size:.85rem;font-weight:600;color:var(--header-text);border-radius:6px;transition:background .15s;text-decoration:none}
.menu-section a:hover{background:rgba(255,255,255,.08);color:#fff;text-decoration:none}
.menu-section a .m-icon{font-size:1rem;width:22px;text-align:center;flex-shrink:0}
.menu-divider{border:none;border-top:1px solid rgba(255,255,255,.08);margin:.4rem 1.2rem}

/* Tagline next to logo */
.hdr-tagline{font-size:.65rem;color:rgba(255,255,255,.35);font-style:italic;margin-left:.6rem;white-space:nowrap}
@media(max-width:900px){.hdr-tagline{display:none}}

@media(max-width:600px){
  .hdr-primary{display:none}
  /* Compact header at phone widths: shrink logo + icon-only lang switch so the burger stays visible */
  .hdr-in{padding:.5rem .8rem;gap:.4rem}
  .hdr-r{gap:.4rem}
  .logo{font-size:1.05rem;gap:.3rem}
  .lang-switch{gap:.2rem}
  .lang{font-size:0;line-height:0;padding:.25rem .35rem;gap:0}
  .lang .lang-flag{width:20px;height:10px}
}

@media(max-width:420px){
  .hdr-in{padding:.5rem .6rem}
  .logo{font-size:.95rem}
  .logo span:last-child{display:none}  /* hide ".com" suffix on very narrow screens */
  .lang{padding:.2rem .28rem}
  .lang .lang-flag{width:18px;height:9px}
}

/* ── TIMELINE PAGES — mobile polish ─────────────────────
   Scopes: .hero-header (timeline hero), .tl-nav-pills (cross-timeline bar),
   .timeline-entry (per-incident card). Applies to all /timelines/* pages. */
@media(max-width:600px){
  .hero-header{padding:1.4rem 1rem 1.2rem}
  .hero-header h1{font-size:1.35rem;letter-spacing:-.3px}
  .hero-header .article-intro{font-size:.85rem;padding-left:.7rem;line-height:1.5}
  .hero-header .article-meta{font-size:.72rem;gap:.5rem}
  /* Cross-timeline pill bar in hero: horizontal scroll on mobile so pills don't wrap to 3+ rows */
  .hero-header .tl-nav-pills{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:.3rem;scrollbar-width:thin}
  .hero-header .tl-nav-pills a{flex:0 0 auto;white-space:nowrap;font-size:.72rem;padding:.35rem .7rem}
  .hero-header .tl-nav-pills::-webkit-scrollbar{height:3px}
  .hero-header .tl-nav-pills::-webkit-scrollbar-thumb{background:rgba(255,255,255,.15);border-radius:3px}
  /* Timeline entries: tighter padding so 280px phones have room for content */
  .timeline{padding:0 .1rem}
  .timeline::before{left:6px}
  .timeline-entry{padding-left:28px;margin-bottom:1.4rem}
  .timeline-entry::before{left:-4px;width:16px;height:16px;border-width:2px}
  .timeline-headline{font-size:.9rem;line-height:1.35}
  .timeline-desc{font-size:.82rem;line-height:1.55}
  .timeline-date{font-size:.7rem}
  .timeline-year{font-size:.72rem}
  /* In-article sidebar month/year pills also scroll horizontally */
  .tl-nav-pills{flex-wrap:wrap}
  .main-content .tl-nav-pills{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:.3rem}
  .main-content .tl-nav-pills a{flex:0 0 auto;white-space:nowrap}
}
@media(max-width:420px){
  .hero-header{padding:1.2rem .8rem 1rem}
  .hero-header h1{font-size:1.2rem}
  .hero-breadcrumb{font-size:.68rem}
  .timeline-entry{padding-left:24px}
  .timeline-entry::before{left:-3px;width:14px;height:14px}
}


/* ── SIDEBAR NAV (sidebar-common.js) ────────────────────── */
.sidebar-nav{padding-top:.5rem}
.sidebar-nav .nav-group{margin-bottom:.6rem}
.sidebar-nav .nav-group-title{font-size:.63rem;font-weight:700;text-transform:uppercase;letter-spacing:.7px;color:var(--text-3);margin-bottom:.25rem;padding:.3rem .5rem;cursor:pointer;display:flex;align-items:center;justify-content:space-between;user-select:none;border-radius:5px;transition:all .15s}
.sidebar-nav .nav-group-title .chevron{font-size:.5rem;transition:transform .2s;color:var(--text-3)}
.sidebar-nav .nav-group-title:hover{color:var(--accent);background:var(--surface)}
.sidebar-nav .nav-group.collapsed .nav-group-links{display:none}
.sidebar-nav .nav-group.collapsed .chevron{transform:rotate(-90deg)}
.sidebar-nav .nav-group-links{padding:.1rem 0 0}
.sidebar-nav a{display:flex;align-items:center;gap:.4rem;font-size:.74rem;color:var(--text-2);padding:.28rem .55rem;border-radius:5px;transition:all .15s;text-decoration:none;line-height:1.3}
.sidebar-nav a:hover{color:var(--accent);background:var(--surface);text-decoration:none}
.sidebar-nav a.current-section{color:var(--accent);background:var(--surface);font-weight:600}
.sidebar-nav .nav-icon{font-size:.82rem;width:16px;text-align:center;flex-shrink:0}
.sidebar-nav .nav-count{font-size:.58rem;color:var(--text-3);margin-left:auto;background:var(--surface2);padding:.05rem .3rem;border-radius:3px;font-weight:600}
.sidebar-nav .nav-divider{border:none;border-top:1px solid var(--border-light);margin:.5rem .3rem}


/* ── SIDEBAR ENGAGE (share, social, bookmark) ───────────── */
.sidebar-engage{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:.8rem .9rem;margin-bottom:1rem}
.sidebar-engage h4{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--text-3);margin-bottom:.5rem;display:flex;align-items:center;gap:.35rem}
.sidebar-engage h4::before{content:'';display:inline-block;width:3px;height:12px;background:var(--accent);border-radius:2px}
.sidebar-social{display:grid;grid-template-columns:repeat(4,1fr);gap:.3rem;margin-bottom:.6rem}
.sidebar-social a{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:6px;border:1px solid var(--border-light);background:var(--surface2);transition:all .2s;text-decoration:none}
.sidebar-social a:hover{border-color:var(--accent);transform:translateY(-1px);box-shadow:0 2px 6px rgba(0,0,0,.1);text-decoration:none}
.sidebar-social svg{width:16px;height:16px}
.sidebar-share-btn{display:flex;align-items:center;justify-content:center;gap:.4rem;width:100%;padding:.55rem .6rem;font-size:.78rem;font-weight:700;color:#fff;background:linear-gradient(135deg,var(--accent),#d97706);border:none;border-radius:8px;cursor:pointer;transition:all .2s;font-family:inherit;box-shadow:0 2px 8px rgba(180,83,9,.2)}
.sidebar-share-btn:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(180,83,9,.3)}
.sidebar-share-btn svg{width:15px;height:15px}
.sidebar-bookmark-btn{display:flex;align-items:center;justify-content:center;gap:.4rem;width:100%;padding:.45rem .6rem;font-size:.74rem;font-weight:600;color:var(--text-2);background:var(--surface2);border:1px solid var(--border);border-radius:8px;cursor:pointer;transition:all .2s;font-family:inherit;margin-top:.4rem}
.sidebar-bookmark-btn:hover{border-color:var(--accent);color:var(--accent)}
.sidebar-bookmark-btn svg{width:14px;height:14px}


/* ── FOOTER ─────────────────────────────────────────────── */
.ai-note{text-align:center;font-size:.7rem;color:var(--text-3);margin:.8rem auto .3rem;max-width:1200px;padding:0 1.5rem}
footer{background:var(--header-bg);color:var(--header-text);margin-top:1rem}
footer .footer-in{max-width:1140px;margin:0 auto;padding:2rem 2rem 1.5rem;display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:center}
footer .footer-brand{display:flex;align-items:center;gap:.4rem;font-size:.95rem;font-weight:800;color:#f5f2ec;letter-spacing:-.3px;text-decoration:none;transition:opacity .15s}
footer .footer-brand:hover{text-decoration:none;opacity:.85}
footer .footer-brand .f-ai{color:#93c5fd}
footer .footer-brand .f-love{color:#fca5a5}
footer .footer-logo-mark{flex-shrink:0}
footer .footer-tagline{font-size:.72rem;color:rgba(214,208,200,.5);margin-top:.15rem}
footer .footer-links{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:flex-end}
footer .footer-links a{font-size:.75rem;color:rgba(214,208,200,.6);text-decoration:none;padding:.2rem .4rem;border-radius:4px;transition:all .15s}
footer .footer-links a:hover{color:#fff;background:rgba(255,255,255,.08);text-decoration:none}
footer .footer-missed{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.08);padding-top:.8rem;display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
footer .footer-missed-heading{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:rgba(214,208,200,.5);margin:0;white-space:nowrap}
footer .footer-missed-label{font-size:.7rem;color:rgba(214,208,200,.45);font-style:italic;margin-left:.3rem}
footer .footer-missed a{font-size:.75rem;color:rgba(214,208,200,.6);text-decoration:none;padding:.2rem .5rem;border:1px solid rgba(255,255,255,.1);border-radius:4px;transition:all .15s}
footer .footer-missed a:hover{color:#fff;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2);text-decoration:none}
footer .footer-bottom{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.08);padding-top:.8rem;text-align:center;font-size:.65rem;color:rgba(214,208,200,.35)}
@media(max-width:600px){footer .footer-in{grid-template-columns:1fr;text-align:center}footer .footer-links{justify-content:center}footer .footer-missed{justify-content:center}}


/* ── CHAT SECTION ───────────────────────────────────────── */
.chat-section{margin:2rem 0 0;padding:0}
.chat-inner{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.2rem}
.engage-card-label{font-size:.78rem;font-weight:700;color:var(--text);margin-bottom:.8rem;text-align:center}
.chat-cards{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:center}
.chat-card{display:flex;align-items:center;gap:.5rem;padding:.5rem .8rem;background:var(--surface2);border:1px solid var(--border);border-radius:8px;transition:all .2s;text-decoration:none}
.chat-card:hover{border-color:var(--accent);box-shadow:0 2px 8px rgba(180,83,9,.12);text-decoration:none}
.chat-logo{width:22px;height:22px;flex-shrink:0}
.chat-name{font-size:.8rem;font-weight:700;color:var(--text);display:block}
.chat-co{font-size:.62rem;color:var(--text-3);display:block}
.bottom-sections{max-width:1200px;margin:0 auto;padding:0 1.5rem}


/* ── READING PROGRESS BAR ───────────────────────────────── */
.progress-bar{position:fixed;top:42px;left:0;height:2.5px;background:linear-gradient(to right,var(--red),#e11d48);width:0%;z-index:101;transition:width .1s}


/* ── SKIP LINK ──────────────────────────────────────────── */
.skip-link{position:absolute;top:-100%;left:1rem;background:var(--accent);color:#fff;padding:.5rem 1rem;border-radius:0 0 6px 6px;font-size:.85rem;font-weight:700;z-index:1001;text-decoration:none}
.skip-link:focus{top:0}


/* ── FOCUS VISIBLE ──────────────────────────────────────── */
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
a:focus-visible{outline-offset:1px}
button:focus-visible{outline-offset:2px}


/* ── TOAST NOTIFICATION ─────────────────────────────────── */
/* ── SIDEBAR ACTION BUTTONS (copy link, print, RSS) ────── */
.sidebar-actions{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.5rem}
.sidebar-action-btn{display:flex;align-items:center;justify-content:center;gap:.3rem;flex:1 1 calc(50% - .15rem);padding:.4rem .5rem;font-size:.68rem;font-weight:600;color:var(--text-2);background:var(--surface2);border:1px solid var(--border);border-radius:6px;cursor:pointer;transition:all .2s;font-family:inherit;text-decoration:none;white-space:nowrap}
.sidebar-action-btn:hover{border-color:var(--accent);color:var(--accent);text-decoration:none}
.sidebar-action-btn svg{width:13px;height:13px;flex-shrink:0}

/* Sidebar back-to-top (inside sidebar) */
.sidebar-top{display:block;width:100%;padding:.4rem .6rem;font-size:.7rem;font-weight:600;color:var(--text-3);background:none;border:1px solid var(--border-light);border-radius:6px;cursor:pointer;transition:all .15s;font-family:inherit;margin-top:.5rem;text-align:center}
.sidebar-top:hover{border-color:var(--accent);color:var(--accent)}


/* ── MOBILE BACK-TO-TOP BUTTON ─────────────────────────── */
.mobile-top-btn{display:flex;position:fixed;bottom:1.5rem;right:1.5rem;width:40px;height:40px;background:var(--header-bg);color:var(--header-text);border:none;border-radius:50%;font-size:1.1rem;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.2);z-index:99;align-items:center;justify-content:center;transition:opacity .3s,transform .3s;opacity:0;transform:translateY(10px);pointer-events:none}
.mobile-top-btn.visible{opacity:1;transform:translateY(0);pointer-events:auto}


/* ── TOAST NOTIFICATION ─────────────────────────────────── */
.toast{position:fixed;bottom:2rem;left:50%;transform:translateX(-50%);background:var(--header-bg);color:#f5f2ec;padding:.6rem 1.2rem;border-radius:8px;font-size:.8rem;font-weight:600;opacity:0;transition:opacity .3s;z-index:300;pointer-events:none}
.toast.show{opacity:1}


/* ──────────────────────────────────────────────────────────
   V2 CATEGORY HUB TEMPLATE
   All rules scoped under `.hub-v2` body class — completely isolated
   from the legacy `.tile`, `.page-layout`, `.sidebar` rules in styles.css.
   Pages that use this: every /tools/{category}/index.html on V2.
   Required on the page:
     <body class="hub-v2">
     <link rel="stylesheet" href="/css/v2-common.css">
   Structure:
     .hero-header > .hero-inner
     .page-layout > aside + main.main-content
     .hub-tile-grid > .hub-tile*
     .info-block, .journey-box (.journey-start/.journey-level/.journey-pro)
     .professional-disclaimer (generic) or .financial-disclaimer (finance-specific colour)
     .actions-strip
   ────────────────────────────────────────────────────────── */
.hub-v2 *{box-sizing:border-box}
.hub-v2{
  color:#2c2a26;line-height:1.7;font-family:'Segoe UI',system-ui,-apple-system,sans-serif;
  --hv2-bg:#e8e4dd;--hv2-surface:#f5f2ec;--hv2-surface2:#ede9e1;--hv2-text:#2c2a26;
  --hv2-text-2:#6b6560;--hv2-text-3:#9c9590;--hv2-border:#d6d0c8;--hv2-border-light:#e5e1da;
  --hv2-accent:#b45309;--hv2-accent-hover:#92400e;--hv2-header-bg:#3a3632;
  --hv2-header-text:#d6d0c8;--hv2-blue:#6366f1;--hv2-purple:#8b5cf6;--hv2-green:#4d7c0f;
  --hv2-red:#be123c
}
.hub-v2 a{color:var(--hv2-accent);text-decoration:none}
.hub-v2 a:hover{color:var(--hv2-accent-hover);text-decoration:underline}

/* Hero header */
.hub-v2 .hero-header{background:linear-gradient(135deg,#5b4a3a 0%,#3a3632 60%,#2c2a26 100%);padding:2.5rem 2rem 2rem;position:relative;overflow:hidden}
.hub-v2 .hero-header::before{content:'';position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(ellipse at 30% 50%,rgba(180,83,9,.06) 0%,transparent 70%);pointer-events:none}
.hub-v2 .hero-inner{max-width:1140px;margin:0 auto}
.hub-v2 .hero-header h1{font-size:2.2rem;font-weight:800;letter-spacing:-.5px;line-height:1.2;color:#f5f2ec;margin:0 0 .6rem}
.hub-v2 .hero-meta{display:flex;gap:.8rem;font-size:.8rem;color:rgba(245,242,236,.45);flex-wrap:wrap;align-items:center}
.hub-v2 .hero-desc{color:rgba(245,242,236,.6);font-size:.95rem;max-width:780px;line-height:1.65;margin-top:.8rem}
.hub-v2 .hero-breadcrumb{font-size:.72rem;color:rgba(245,242,236,.4);margin-bottom:.6rem}
.hub-v2 .hero-breadcrumb a{color:rgba(245,242,236,.55);text-decoration:none;transition:color .15s}
.hub-v2 .hero-breadcrumb a:hover{color:#fff;text-decoration:underline}
.hub-v2 .hero-breadcrumb .sep{margin:0 .3rem;opacity:.4}
.hub-v2 .tool-count-badge{display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .8rem;background:rgba(180,83,9,.2);border:1px solid rgba(180,83,9,.3);border-radius:6px;font-size:.75rem;font-weight:700;color:var(--hv2-accent)}

/* Page layout */
.hub-v2 .page-layout{display:grid;grid-template-columns:240px 1fr;max-width:1140px;margin:0 auto;padding:1.5rem 2rem;gap:2.5rem}

/* Main content typography */
.hub-v2 .main-content{max-width:760px}
.hub-v2 .main-content h2{font-size:1.3rem;font-weight:700;color:var(--hv2-text);margin:2rem 0 .75rem;letter-spacing:-.3px}
.hub-v2 .main-content h3{font-size:1.05rem;font-weight:700;color:var(--hv2-text);margin:1.5rem 0 .5rem}
.hub-v2 .main-content p{font-size:.95rem;line-height:1.85;margin-bottom:1.1rem;color:var(--hv2-text)}

/* Tile grid (subcategory tiles). Uses .hub-tile-grid / .hub-tile
   so it never clashes with .tile in styles.css. h2 margin shorthand
   kills the gap from .main-content h2{margin:2rem 0 .75rem}. */
.hub-v2 .hub-tile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1rem;margin:.5rem 0 2rem}
.hub-v2 .hub-tile{background:var(--hv2-surface);border:1px solid var(--hv2-border);border-radius:10px;padding:1.5rem;transition:all .2s;text-decoration:none;display:block}
.hub-v2 .hub-tile:hover{border-color:var(--hv2-accent);box-shadow:0 4px 12px rgba(180,83,9,.1);text-decoration:none}
.hub-v2 .hub-tile h2{font-size:1.05rem;font-weight:700;color:var(--hv2-text);margin:0 0 .6rem}
.hub-v2 .hub-tile .description{font-size:.85rem;color:var(--hv2-text-2);line-height:1.6;margin-bottom:1rem}
.hub-v2 .hub-tile .visit-link{display:inline-flex;align-items:center;gap:.4rem;padding:.4rem .8rem;background:linear-gradient(135deg,var(--hv2-accent),#d97706);color:#fff;font-size:.8rem;font-weight:700;border-radius:6px;text-decoration:none;transition:all .2s}
.hub-v2 .hub-tile .visit-link:hover{text-decoration:none;transform:translateY(-1px);box-shadow:0 2px 8px rgba(180,83,9,.2);color:#fff}

/* Info blocks (quick-routes, how-to-choose, overlaps) */
.hub-v2 .info-block{background:var(--hv2-surface);border:1px solid var(--hv2-border);border-radius:10px;padding:1.2rem;margin:1.5rem 0}
.hub-v2 .info-block h3{font-size:.9rem;font-weight:700;color:var(--hv2-text);margin:0 0 .6rem}
.hub-v2 .info-block p{font-size:.85rem;line-height:1.6;margin-bottom:.4rem;color:var(--hv2-text-2)}

/* Journey boxes (Start Here / Level Up / Go Pro) */
.hub-v2 .journey-box{border-radius:10px;padding:1.2rem;margin-bottom:1rem;border:1px solid}
.hub-v2 .journey-box h3{font-size:.9rem;font-weight:700;margin:0 0 .5rem;display:flex;align-items:center;gap:.4rem}
.hub-v2 .journey-box p{font-size:.85rem;line-height:1.6;color:var(--hv2-text-2);margin-bottom:.8rem}
.hub-v2 .journey-box ul{list-style:none;padding:0;margin:.5rem 0 0}
.hub-v2 .journey-box li{font-size:.82rem;padding:.3rem 0;border-bottom:1px solid var(--hv2-border-light);line-height:1.5}
.hub-v2 .journey-box li:last-child{border:none}
.hub-v2 .journey-box a{font-weight:600}
.hub-v2 .journey-pros{font-size:.8rem;margin-top:.6rem;padding:.5rem .8rem;background:rgba(77,124,15,.04);border-radius:6px}
.hub-v2 .journey-pros strong{color:var(--hv2-green);font-size:.72rem;text-transform:uppercase;letter-spacing:.3px}
.hub-v2 .journey-cons{font-size:.8rem;margin-top:.3rem;padding:.5rem .8rem;background:rgba(190,18,60,.03);border-radius:6px}
.hub-v2 .journey-cons strong{color:var(--hv2-red);font-size:.72rem;text-transform:uppercase;letter-spacing:.3px}
.hub-v2 .journey-start{background:rgba(77,124,15,.06);border-color:rgba(77,124,15,.15)}
.hub-v2 .journey-start h3{color:var(--hv2-green)}
.hub-v2 .journey-level{background:rgba(99,102,241,.06);border-color:rgba(99,102,241,.15)}
.hub-v2 .journey-level h3{color:var(--hv2-blue)}
.hub-v2 .journey-pro{background:rgba(139,92,246,.06);border-color:rgba(139,92,246,.15)}
.hub-v2 .journey-pro h3{color:var(--hv2-purple)}

/* Disclaimers — .financial-disclaimer for money-related hubs,
   .professional-disclaimer for health/legal/other sensitive categories. */
.hub-v2 .financial-disclaimer,
.hub-v2 .professional-disclaimer{background-color:#f9f3cd;border:1px solid #ffeaa7;border-radius:5px;padding:1.2rem;margin:2rem 0;color:#333;font-size:.9rem;line-height:1.6}
.hub-v2 .financial-disclaimer strong,
.hub-v2 .professional-disclaimer strong{color:#333;font-weight:700}

/* Actions strip (copy link / bookmark / print) */
.hub-v2 .actions-strip{max-width:1140px;margin:0 auto;padding:.6rem 2rem}
.hub-v2 .actions-strip-inner{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center;padding:.6rem 0;border-top:1px solid var(--hv2-border-light);border-bottom:1px solid var(--hv2-border-light)}
.hub-v2 .act{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .7rem;font-size:.75rem;font-weight:600;color:var(--hv2-text-2);background:var(--hv2-surface);border:1px solid var(--hv2-border);border-radius:6px;cursor:pointer;transition:all .2s;text-decoration:none;font-family:inherit}
.hub-v2 .act:hover{border-color:var(--hv2-accent);color:var(--hv2-accent);text-decoration:none}
.hub-v2 .act svg{width:14px;height:14px}
.hub-v2 .toast{position:fixed;bottom:2rem;left:50%;transform:translateX(-50%) translateY(20px);background:var(--hv2-header-bg);color:var(--hv2-header-text);padding:.5rem 1.2rem;border-radius:8px;font-size:.8rem;opacity:0;transition:all .3s;z-index:300;pointer-events:none}
.hub-v2 .toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* Responsive */
@media(max-width:850px){
  .hub-v2 .hero-header{padding:1.8rem 1.2rem 1.5rem}
  .hub-v2 .hero-header h1{font-size:1.6rem}
}
@media(max-width:768px){
  .hub-v2 .page-layout{grid-template-columns:1fr;padding:1rem 1.2rem;gap:1.5rem}
  .hub-v2 .hub-tile-grid{grid-template-columns:1fr}
  .hub-v2 .hero-header{padding:1.2rem 1.2rem 1rem}
  .hub-v2 .hero-header h1{font-size:1.5rem}
}
