/*
Theme Name: calculatorsforex
Theme URI: https://calculatorsforex.com
Author: calculatorsforex.com
Description: Custom theme for calculatorsforex.com — site chrome (header, nav, footer) and generic page templates. The actual Calculator post type and its page template live in the calculatorsforex-calculators plugin, not here.
Version: 0.3.44
Text Domain: calculatorsforex
*/

:root{
  /* Tells the browser this page fully manages its own light/dark
     palette (added 2026-09-20). Without this, some mobile browsers'
     own auto-dark-mode heuristics can selectively re-color individual
     elements — seen on the fixed cookie-consent banner rendering with
     mismatched, near-invisible button text even though the rest of the
     page was correctly dark-themed via our own CSS above. */
  color-scheme: light dark;
  --bg:#F5F7F9; --surface:#FFFFFF; --surface-2:#EEF1F4;
  --ink:#12161C; --ink-muted:#5B6472; --ink-faint:#667080;
  --border:#E1E5EA; --border-strong:#CBD2DA;
  --accent:#0B7C75; --accent-strong:#095F5A; --accent-soft:#E4F2F0; --accent-ink:#FFFFFF;
  --up:#1B8A5A; --down:#C4432E;
  --shadow-1: 0 1px 2px rgba(18,22,28,.06), 0 1px 1px rgba(18,22,28,.04);
  --shadow-2: 0 8px 24px rgba(18,22,28,.10), 0 2px 6px rgba(18,22,28,.06);

  /* The one place to change the site's typeface — every rule below
     (in this file and in the calculatorsforex-calculators plugin's own
     CSS, which loads on the same page and can see these same tokens)
     references these instead of naming a font directly. Change the
     font once here rather than hunting through every stylesheet. */
  --font-heading: 'Montserrat', 'Montserrat Fallback', system-ui, sans-serif;
  --font-body: 'Montserrat', 'Montserrat Fallback', system-ui, sans-serif;
  --font-mono: 'Montserrat', 'Montserrat Fallback', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0B0E13; --surface:#141922; --surface-2:#1A212B;
    --ink:#E7EAEE; --ink-muted:#96A0AC; --ink-faint:#8A94A1;
    --border:#232B36; --border-strong:#2E3844;
    --accent:#2EA39A; --accent-strong:#3FB6AC; --accent-soft:rgba(46,163,154,.15); --accent-ink:#06110F;
    --up:#3AC17E; --down:#E5645A;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 12px 28px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"]{
  --bg:#0B0E13; --surface:#141922; --surface-2:#1A212B;
  --ink:#E7EAEE; --ink-muted:#96A0AC; --ink-faint:#8A94A1;
  --border:#232B36; --border-strong:#2E3844;
  --accent:#2EA39A; --accent-strong:#3FB6AC; --accent-soft:rgba(46,163,154,.15); --accent-ink:#06110F;
  --up:#3AC17E; --down:#E5645A;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 12px 28px rgba(0,0,0,.5);
}

*{box-sizing:border-box;}
body{ margin:0; background:var(--bg); color:var(--ink); font-family:var(--font-body); font-size:15.5px; line-height:1.6; }
h1,h2,h3{ font-family:var(--font-heading); font-weight:600; text-wrap:balance; margin:0; color:var(--ink); }
.mono, .tabnum{ font-family:var(--font-mono); font-variant-numeric:tabular-nums; }
a{ color:var(--accent-strong); text-decoration:underline; text-underline-offset:2px; text-decoration-thickness:1px; }
a:hover{ color:var(--accent); }

/* UI components (nav, buttons, cards) read as clickable through their own
   shape/color, not underlined text — carve these out of the default.
   `.btn:hover` here was narrowed to `a.btn:hover` (2026-09-20 fix) — it
   only ever existed to stop the global `a:hover{ color:var(--accent) }`
   rule from tinting the header's anchor-based CTA on hover. But
   `.btn:hover{ color:inherit }` has HIGHER CSS specificity than
   `.btn-primary{ color:var(--bg) }`, so it was also winning on
   `<button>` elements like the cookie-consent Accept button — and on a
   touchscreen, a tap leaves the button in a "stuck" :hover state (no
   mouse to un-hover), permanently overriding its text color to
   `inherit` (the page's own light text color), which happens to exactly
   equal that button's own light background: invisible text. Confirmed
   with a real headless-browser test (Edge, mobile emulation, dark mode)
   reproducing the exact bug before this fix. */
.wordmark,
.main-nav > a, .navitem a, .megamenu a,
.btn, a.btn:hover,
.cat-card, .cat-card:hover,
.blog-card, .blog-card:hover,
.related-card, .related-card:hover,
.footer-grid a, .footer-grid a:hover{
  color:inherit; text-decoration:none;
}
button{ font-family:inherit; cursor:pointer; }
img{ max-width:100%; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }
@media (prefers-reduced-motion: reduce){ *{ animation-duration:.001ms !important; transition-duration:.001ms !important; } }
.wrap{ max-width:1120px; margin:0 auto; padding:0 24px; }
.eyebrow{ font-family:var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--accent-strong); font-weight:500; }
.lede{ color:var(--ink-muted); font-size:16.5px; max-width:60ch; }

/* ---------- header / nav (shared on every page) ---------- */
.site-header{ background:var(--surface); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:40; }
/* padding-block, not the padding shorthand (2026-09-20 fix) — this
   element also carries the .wrap class, which sets the site's 24px side
   gutter via `padding:0 24px`. A same-specificity `padding:16px 0` here
   was a full shorthand too, so it silently reset left/right back to 0
   for the whole header row on every page. padding-block only touches
   top/bottom, leaving .wrap's own horizontal padding alone. */
.header-inner{ display:flex; align-items:center; gap:28px; padding-block:16px; }
.wordmark{ font-family:var(--font-heading); font-weight:600; font-size:19px; display:flex; align-items:baseline; gap:2px; white-space:nowrap; }
.wordmark .dim{ color:var(--ink-faint); font-weight:500; }
.main-nav{ display:flex; align-items:center; gap:4px; flex:1; }
.main-nav > a, .navitem > button{ font-size:14.5px; font-weight:500; color:var(--ink-muted); padding:8px 12px; border-radius:7px; background:none; border:none; }
.main-nav > a:hover, .navitem > button:hover{ color:var(--ink); background:var(--surface-2); }
.navitem{ position:relative; }
.navitem > button{ display:flex; align-items:center; gap:6px; }
/* z-index needed explicitly (2026-09-26, user report: opening this while
   the header's own scrolling ticker sits right below it let the ticker's
   moving price text show through on top of the dropdown) — .ticker-inner's
   own CSS animation (translateX) creates a stacking context of its own,
   and with .megamenu previously left at the default z-index:auto, a tied
   auto-vs-auto stacking level falls back to DOM order, and the ticker
   comes after this dropdown in the markup — so it painted over it despite
   sitting visually below. An explicit z-index above .site-header's own 40
   settles that regardless of DOM order. */
.megamenu{ position:absolute; top:calc(100% + 10px); left:0; width:640px; background:var(--surface); border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow-2); padding:18px; display:none; grid-template-columns:1fr 1fr; gap:4px; z-index:45; }
.navitem.open .megamenu{ display:grid; }
.megamenu a{ display:flex; gap:12px; padding:10px 12px; border-radius:9px; }
.megamenu a:hover{ background:var(--surface-2); }
.megamenu .mm-icon{ width:32px; height:32px; border-radius:8px; background:var(--accent-soft); color:var(--accent-strong); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.megamenu .mm-icon svg{ width:16px; height:16px; }
.megamenu a > span:last-child{ display:block; min-width:0; }
.megamenu .mm-title{ display:block; font-weight:600; font-size:14px; line-height:1.3; }
.megamenu a.mm-featured{ grid-column:1 / -1; background:var(--accent-soft); align-items:center; }
.megamenu a.mm-featured:hover{ background:var(--accent-soft); filter:brightness(.97); }
.megamenu .mm-badge{ display:block; font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--accent-strong); margin-bottom:2px; }
.megamenu .mm-sub{ display:block; font-size:12.5px; line-height:1.4; color:var(--ink-muted); margin-top:2px; }
.btn{ display:inline-flex; align-items:center; gap:6px; font-weight:600; font-size:14px; padding:10px 18px; border-radius:8px; border:1px solid transparent; background:transparent; font-family:inherit; appearance:none; -webkit-appearance:none; }
.btn-primary{ background:var(--ink); color:var(--bg); }
.btn-accent{ background:var(--accent); color:var(--accent-ink); }
.btn-outline{ border-color:var(--border-strong); color:var(--ink); }
a.btn-primary:hover{ color:var(--bg); }
a.btn-accent:hover{ color:var(--accent-ink); }
a.btn-outline:hover{ color:var(--ink); }
.theme-toggle{ display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:9px; border:1px solid var(--border-strong); background:var(--surface); color:var(--ink-muted); }
.theme-toggle:hover{ color:var(--ink); background:var(--surface-2); }
.theme-toggle-icon{ width:18px; height:18px; display:block; }
.theme-toggle-icon svg{ width:100%; height:100%; }
/* Site-wide header search (2026-10-01) — .calc-switcher inside is the same
   shared widget every calculator page/home page already uses (styled by
   symbol-switcher.css); this just adds the header-specific sizing/layout
   and the visible Search button next to it. */
.search-strip{ padding:14px 0 0; }
.header-search{ display:flex; align-items:center; gap:8px; width:100%; max-width:520px; }
.header-search .calc-switcher{ max-width:none; flex:1; margin:0; }
.header-search-btn{ display:flex; align-items:center; justify-content:center; height:38px; padding:0 16px; border-radius:8px; border:1px solid var(--border-strong); background:var(--surface); color:var(--ink); font-weight:600; font-size:13.5px; font-family:inherit; appearance:none; -webkit-appearance:none; white-space:nowrap; }
.header-search-btn:hover{ background:var(--surface-2); }
.ticker{ background:var(--surface-2); border-top:1px solid var(--border); }
/* Continuously scrolling ticker tape (2026-09-21, user request) — the
   track is rendered TWICE back-to-back by renderTicker() in theme.js,
   then animated exactly half its own width so the loop point is
   invisible. .ticker-viewport carries .wrap (2026-09-21 fix, was
   full-bleed to the browser edge) so the visible window matches the
   same centered content column as the header/nav above it and the page
   below it, instead of starting at the far left of the screen. */
.ticker-viewport{ overflow:hidden; }
.ticker-inner{ display:flex; gap:26px; padding-block:7px; min-height:34px; box-sizing:border-box; width:max-content; animation:cfx-ticker-scroll 34s linear infinite; }
.ticker-inner:hover{ animation-play-state:paused; }
@keyframes cfx-ticker-scroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .ticker-inner{ animation:none; } }
.tick{ display:flex; align-items:baseline; gap:7px; font-size:12.5px; white-space:nowrap; }
.tick .sym{ font-weight:600; color:var(--ink-muted); }
.tick .delta.up{ color:var(--up); } .tick .delta.down{ color:var(--down); }
.tick .px.flash{ background:var(--accent-soft); border-radius:3px; }

.mobile-nav-toggle{ display:none; flex-direction:column; justify-content:center; align-items:center; gap:4px; width:36px; height:36px; border:1px solid var(--border-strong); border-radius:9px; background:var(--surface); flex-shrink:0; }
.mobile-nav-toggle span{ display:block; width:16px; height:2px; background:var(--ink); border-radius:1px; }

/* Below this width the nav/CTA never fit alongside the logo without
   forcing the whole header (and with it the page) to scroll
   horizontally — collapse them behind a hamburger instead. Measured
   2026-10-05: the full header overflowed at every width up to ~1137px,
   so the breakpoint is 1140px (it used to be 760px). */
@media (max-width:1140px){
	.header-inner{ flex-wrap:wrap; row-gap:10px; }
	.mobile-nav-toggle{ display:flex; order:3; }
	.theme-toggle{ order:2; }
	.main-nav{ display:none; flex:none; flex-direction:column; align-items:stretch; gap:2px; width:100%; order:5; }
	/* Scoped to .header-inner specifically (2026-09-20 fix) — this used to
	   be a bare `.btn.btn-primary` selector, which matched ANY button
	   with those two classes anywhere on the site, not just the header's
	   own CTA. That silently hid the cookie-consent banner's Accept
	   button (also .btn.btn-primary, see footer.php) on every mobile
	   screen, leaving only Decline visible. */
	.header-inner .btn.btn-primary{ display:none; }
	.header-inner.nav-open .main-nav,
	.header-inner.nav-open .btn.btn-primary{ display:flex; }
	.header-inner.nav-open .btn.btn-primary{ order:6; width:100%; justify-content:center; }
	.main-nav > a, .navitem{ width:100%; }
	.navitem > button{ width:100%; justify-content:space-between; }
	/* the desktop megamenu is a wide floating panel with a fixed px
	   width — inline it as part of the stacked mobile menu instead. */
	.megamenu{ position:static; width:auto; box-shadow:none; border:none; padding:2px 0 6px 14px; grid-template-columns:1fr; }
	.navitem.open .megamenu{ display:flex; flex-direction:column; }
	/* sticky header taller than the screen when the menu is open: let it scroll inside itself */
	.site-header{ max-height:100vh; max-height:100dvh; overflow-y:auto; overscroll-behavior:contain; }
}

/* ---------- hero (home) ---------- */
.hero{ padding:52px 0 44px; border-bottom:1px solid var(--border); }
.hero-grid{ display:grid; grid-template-columns:1.15fr 1fr; gap:56px; align-items:center; }
@media (max-width:880px){ .hero-grid{ grid-template-columns:1fr; gap:32px; } }
.hero h1{ font-size:46px; font-weight:600; line-height:1.08; margin:12px 0 14px; max-width:14ch; letter-spacing:-.01em; }
.hero .lede{ font-size:16.5px; margin-bottom:24px; }
.hero-stats-inline{ font-family:var(--font-mono); font-size:12px; color:var(--ink-faint); }
.hero-stats-inline b{ color:var(--ink-muted); font-weight:600; }
.hero-stats-inline .sep{ margin:0 10px; }

/* Symbol-then-calculator picker (2026-09-21) — Option A (stacked) from
   the two layouts reviewed. .calc-switcher's own bottom margin is reset
   here since .calc-picker-step already provides that spacing via its
   own margin, avoiding doubled gaps. */
.calc-picker{ max-width:420px; margin-bottom:20px; }
.calc-picker-step{ margin-bottom:14px; }
.calc-picker-step .calc-switcher{ margin-bottom:0; max-width:none; }
.calc-picker-label{ display:block; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-faint); margin-bottom:6px; }
.calc-type-select{ width:100%; box-sizing:border-box; padding:10px 12px; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--ink); font-size:14px; font-family:inherit; }
.calc-picker-btn{ width:100%; justify-content:center; }

.hero-calc{ display:flex; flex-direction:column; gap:10px; min-width:0; }
.hero-calc iframe{ display:block; width:100%; height:560px; border:0; border-radius:16px; box-shadow:var(--shadow-2); color-scheme:normal; background:transparent; }
.hero-calc-link{ text-align:center; font-size:13px; font-weight:600; color:var(--accent-strong); }
.section-more{ margin:28px 0 0; text-align:center; }

/* ---------- generic sections ---------- */
section{ padding:52px 0; }
section.tight{ padding:26px 0; }
.section-head{ margin-bottom:28px; max-width:56ch; }
.section-head h2{ font-size:26px; margin:6px 0 6px; }

.cat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
@media (max-width:900px){ .cat-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .cat-grid{ grid-template-columns:1fr; } }
.cat-card{ background:var(--surface); border:1px solid var(--border); border-radius:13px; padding:20px; display:flex; flex-direction:column; gap:10px; box-shadow:var(--shadow-1); }
.cat-card:hover{ border-color:var(--border-strong); box-shadow:var(--shadow-2); }
.cat-icon{ width:44px; height:44px; border-radius:11px; background:var(--accent-soft); color:var(--accent-strong); display:flex; align-items:center; justify-content:center; }
.cat-icon svg{ width:22px; height:22px; }
.cat-card h3{ font-size:15.5px; font-family:var(--font-body); font-weight:600; }
.cat-card p{ font-size:13px; color:var(--ink-muted); margin:0; flex:1; }
.cat-card .go{ font-size:12.5px; font-weight:600; color:var(--accent-strong); }


.embed-section{ display:grid; grid-template-columns:1.1fr 1fr; gap:40px; align-items:center; background:#0F1A1E; color:#E7EAEE; border:1px solid rgba(255,255,255,.08); border-radius:18px; padding:44px; }
.embed-section h2{ color:#fff; font-size:24px; margin:8px 0 12px; }
.embed-section p{ color:rgba(255,255,255,.72); font-size:14.5px; max-width:44ch; }
.code-block{ font-family:var(--font-mono); font-size:12.5px; background:rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.12); border-radius:10px; padding:16px; color:#cfe9e6; line-height:1.7; white-space:pre; overflow-x:auto; }
.code-block .tag{ color:#7fd1c9; } .code-block .attr{ color:#e3b06b; } .code-block .str{ color:#a5d6a7; }
.embed-section > *{ min-width:0; }
@media (max-width:760px){ .embed-section{ grid-template-columns:1fr; gap:22px; padding:26px 20px; } .embed-section h2{ font-size:22px; line-height:1.25; } .embed-section p{ max-width:none; } .code-block{ font-size:12px; } }

.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:900px){ .blog-grid{ grid-template-columns:1fr; } }
.blog-card{ background:var(--surface); border:1px solid var(--border); border-radius:13px; padding:20px; box-shadow:var(--shadow-1); display:flex; flex-direction:column; gap:8px; }
.blog-card h3{ font-size:16px; }
.blog-card p{ font-size:13.5px; color:var(--ink-muted); margin:0; }
.uses-tag{ font-family:var(--font-mono); font-size:11px; color:var(--accent-strong); background:var(--accent-soft); align-self:flex-start; padding:4px 9px; border-radius:6px; margin-top:auto; }

/* ---------- generic page (About, Legal, hub pages for now) ---------- */
/* Same padding-shorthand-vs-.wrap collision as .header-inner above,
   here zeroing the side gutter on every generic page (About, legal
   pages, Editorial Policy, Contact, blog index, calculator-type hubs)
   — reported by the user as body text running to the screen edge on
   mobile. padding-block fixes it the same way. (2026-09-20) */
.page-content{ padding-block:44px 64px; }
.page-content .page-title{ font-size:32px; margin-bottom:22px; }
.page-content .entry-content{ max-width:70ch; color:var(--ink); }
.about-photo{ width:100px; height:100px; border-radius:50%; object-fit:cover; float:left; margin:0 20px 12px 0; }
@media (max-width:480px){ .about-photo{ float:none; display:block; margin:0 0 16px; } }
.page-content .entry-content p{ color:var(--ink-muted); }
.page-content .entry-content h2{ font-size:22px; margin-top:32px; margin-bottom:10px; }
.page-content .entry-content h3{ font-size:18px; margin-top:24px; margin-bottom:8px; }
.page-content .entry-content ul, .page-content .entry-content ol{ color:var(--ink-muted); }

/* ---------- generic form styling (contact form, any future form) ---------- */
.cfx-contact-form{ max-width:560px; margin-top:24px; display:flex; flex-direction:column; gap:16px; }
.cfx-contact-form .form-row{ display:flex; gap:16px; }
.cfx-contact-form .form-row .form-field{ flex:1; }
.cfx-contact-form .form-field{ display:flex; flex-direction:column; gap:6px; }
.cfx-contact-form label{ font-size:13px; font-weight:600; color:var(--ink); }
.cfx-contact-form input[type="text"], .cfx-contact-form input[type="email"],
.cfx-contact-form select, .cfx-contact-form textarea{
  padding:11px 13px; border-radius:9px; border:1px solid var(--border-strong);
  background:var(--surface); color:var(--ink); font-size:14.5px; font-family:inherit;
}
.cfx-contact-form textarea{ resize:vertical; }
.cfx-contact-form .btn{ align-self:flex-start; border:none; cursor:pointer; }
.cfx-hp-field{ position:absolute; left:-9999px; top:-9999px; }
.cfx-form-notice{ padding:14px 16px; border-radius:10px; font-size:14px; margin-bottom:8px; }
.cfx-form-success{ background:var(--surface-2); color:var(--up); border:1px solid var(--up); }
.cfx-form-error{ background:var(--surface-2); color:var(--down); border:1px solid var(--down); }
@media (max-width:600px){ .cfx-contact-form .form-row{ flex-direction:column; } }

/* ---------- footer ---------- */
.site-footer{ border-top:1px solid var(--border); padding:48px 0 26px; margin-top:20px; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:32px; padding-bottom:32px; }
@media (max-width:700px){ .footer-grid{ grid-template-columns:1fr 1fr; gap:24px; } }
@media (max-width:460px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-brand p{ font-size:13.5px; color:var(--ink-muted); max-width:32ch; margin:10px 0 0; }
.footer-grid h4, .footer-grid .footer-h{ font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:12px; }
.footer-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.footer-grid a{ font-size:13.5px; color:var(--ink-muted); }
.footer-grid a:hover{ color:var(--ink); }
.footer-bottom{ display:flex; justify-content:space-between; padding-top:22px; border-top:1px solid var(--border); font-size:12.5px; color:var(--ink-faint); flex-wrap:wrap; gap:8px; }

.cookie-banner{ position:fixed; left:0; right:0; bottom:0; z-index:200; background:var(--surface); border-top:1px solid var(--border); box-shadow:var(--shadow-2); padding:16px 24px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
/* Without this, setting the `hidden` attribute in theme.js's dismiss()
   has no visual effect at all: the browser's own `[hidden]{display:none}`
   rule is a user-agent-origin rule, which always loses to this file's
   own `.cookie-banner{ display:flex }` (an author-origin rule) no matter
   how the specificity compares — confirmed with a real headless-browser
   test where `banner.hidden` read true but the banner kept rendering.
   This author-origin override rule beats it back. (2026-09-20 fix) */
.cookie-banner[hidden]{ display:none; }
.cookie-banner p{ margin:0; font-size:13.5px; color:var(--ink-muted); max-width:70ch; flex:1 1 320px; }
.cookie-banner-actions{ display:flex; gap:10px; flex-shrink:0; }
@media (max-width:600px){ .cookie-banner{ padding:14px 16px; } .cookie-banner-actions{ width:100%; } .cookie-banner-actions .btn{ flex:1; justify-content:center; } }

/* Blog (2026-09-23) — own copies of a few components the calculator
   plugin's calculator.css already defines (.calc-toc, .callout,
   .faq-item), since that stylesheet is only enqueued on Calculator
   entries and blog posts are a plain 'post' — kept deliberately
   independent rather than cross-loading a plugin stylesheet from a
   theme template, so deactivating the calculator plugin could never
   break blog posts. Class names match on purpose for visual
   consistency between the two content types. */
.calc-toc{ border:1px solid var(--border); border-radius:10px; padding:14px 18px 16px; margin-bottom:26px; background:var(--surface); max-width:360px; }
.calc-toc-heading{ display:block; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-faint); margin-bottom:8px; }
.calc-toc ol{ margin:0; padding-left:20px; }
.calc-toc li{ margin-bottom:6px; font-size:13.5px; }
.calc-toc li:last-child{ margin-bottom:0; }
.calc-toc a{ color:var(--ink-muted); text-decoration:none; }
.calc-toc a:hover{ color:var(--accent-strong); text-decoration:underline; text-underline-offset:2px; }

.callout{ display:flex; gap:12px; background:#F6E9D2; border:1px solid rgba(184,121,31,.35); border-radius:11px; padding:16px 18px; margin-top:16px; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .callout{ background:rgba(217,162,75,.15); } }
:root[data-theme="dark"] .callout{ background:rgba(217,162,75,.15); }
.callout .ci{ font-size:17px; }
.callout strong{ display:block; margin-bottom:3px; font-size:13.5px; }
.callout p{ margin:0; font-size:13px; color:var(--ink-muted); }

.faq-item{ border-bottom:1px solid var(--border); }
.faq-item summary{ padding:16px 4px; font-weight:600; font-size:15px; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; font-family:var(--font-mono); color:var(--ink-faint); font-size:18px; }
.faq-item[open] summary::after{ content:"\2013"; }
.faq-item p{ padding:0 4px 18px; color:var(--ink-muted); max-width:68ch; }

/* Blog post byline — simpler than the calculator trust-card (no
   helpfulness vote / share row, since that's a calculator-specific
   trust signal, not a blog-post one) but shares the same photo/date
   language for visual consistency across the site. */
.blog-byline{ display:flex; align-items:center; gap:12px; margin:6px 0 28px; padding-bottom:20px; border-bottom:1px solid var(--border); }
.blog-byline-photo{ width:40px; height:40px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.blog-byline-text{ font-size:13px; color:var(--ink); }
.blog-byline-text b{ font-weight:600; }
.blog-byline-meta{ margin-top:2px; font-size:12px; color:var(--ink-faint); }
.blog-byline-meta a{ color:var(--ink-faint); text-decoration:underline; text-underline-offset:2px; }
.blog-byline-meta a:hover{ color:var(--accent-strong); }

/* The mandatory "link to the specific calculator this post discusses"
   rule (site-structure.md) as a visible on-page component, not just a
   plain inline link a reader could skim past. */
.calc-cta{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; background:var(--accent-soft); border:1px solid var(--accent); border-radius:12px; padding:20px 22px; margin:28px 0; }
.calc-cta-text{ flex:1 1 260px; }
.calc-cta-text strong{ display:block; font-size:15.5px; margin-bottom:3px; color:var(--ink); }
.calc-cta-text span{ font-size:13.5px; color:var(--ink-muted); }
.calc-cta .btn{ flex-shrink:0; }

.blog-entry-content{ font-size:16px; line-height:1.7; max-width:70ch; }
.blog-entry-content h2{ font-size:22px; margin:36px 0 14px; }
.blog-entry-content h3{ font-size:18px; margin:26px 0 10px; }
.blog-entry-content p{ margin:0 0 16px; color:var(--ink); }
.blog-entry-content ul, .blog-entry-content ol{ margin:0 0 16px; padding-left:22px; }
.blog-entry-content li{ margin-bottom:6px; }
.blog-entry-content code{ background:var(--surface-2); padding:2px 6px; border-radius:4px; font-family:var(--font-mono); font-size:.9em; }

/* Blog index (/blog/) */
.blog-list{ display:flex; flex-direction:column; gap:22px; margin-top:28px; }
.blog-card{ display:block; border:1px solid var(--border); border-radius:12px; padding:20px 22px; background:var(--surface); }
.blog-card:hover{ border-color:var(--border-strong); }
.blog-card h2{ font-size:19px; margin-bottom:6px; }
.blog-card .meta{ font-size:12px; color:var(--ink-faint); margin-bottom:8px; }
.blog-card p{ color:var(--ink-muted); margin:0; max-width:70ch; }
.blog-empty{ color:var(--ink-muted); padding:40px 0; text-align:center; }

/* Human-readable sitemap (/sitemap/) — 2026-09-23 */
.sitemap-section{ padding:28px 0; border-bottom:1px solid var(--border); }
.sitemap-section:last-child{ border-bottom:none; }
.sitemap-section > h2{ font-size:20px; margin-bottom:14px; }
.sitemap-group{ margin-bottom:20px; }
.sitemap-group:last-child{ margin-bottom:0; }
.sitemap-group h3{ font-size:15px; margin-bottom:8px; }
.sitemap-list{ margin:0; padding-left:20px; }
.sitemap-list li{ margin-bottom:6px; font-size:14px; }
.sitemap-list a{ color:var(--ink-muted); text-decoration:none; }
.sitemap-list a:hover{ color:var(--accent-strong); text-decoration:underline; text-underline-offset:2px; }
.sitemap-list-cols{ column-count:2; column-gap:32px; }
@media (max-width:600px){ .sitemap-list-cols{ column-count:1; } }
.calc-picker-step.is-muted{ opacity:.45; }
.calc-picker-step.is-muted input{ cursor:not-allowed; }

.hub-group-title{ display:flex; align-items:baseline; gap:10px; margin:34px 0 0; font-size:20px; }
.hub-group-count{ font-size:13px; font-weight:500; color:var(--ink-muted, #6b7685); }

/* Language switcher and suggestion bar (language versions) */
.cfx-lang{ position:relative; font-size:.82rem; font-weight:600; }
.cfx-lang > summary{ list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:center; min-width:36px; height:36px; padding:0 10px; border-radius:9px; border:1px solid var(--border-strong); background:var(--surface); color:var(--ink-muted); letter-spacing:.04em; }
.cfx-lang > summary::-webkit-details-marker{ display:none; }
.cfx-lang > summary:hover, .cfx-lang[open] > summary{ color:var(--ink); background:var(--surface-2); }
.cfx-lang > summary:focus-visible{ outline:2px solid var(--accent, #3FB6AC); outline-offset:2px; }
.cfx-lang ul{ position:absolute; right:0; top:calc(100% + 6px); z-index:60; margin:0; padding:6px; list-style:none; min-width:150px; background:var(--surface); border:1px solid var(--border-strong); border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.18); }
.cfx-lang li a{ display:block; padding:7px 10px; border-radius:7px; color:var(--ink); text-decoration:none; white-space:nowrap; }
.cfx-lang li a:hover, .cfx-lang li a[aria-current]{ background:var(--surface-2); }
#cfx-lang-bar{ position:fixed; left:12px; right:12px; bottom:12px; z-index:80; display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; padding:10px 40px 10px 14px; border:1px solid var(--border-strong); border-radius:10px; background:var(--surface); color:var(--ink); box-shadow:0 8px 24px rgba(0,0,0,.2); font-size:.9rem; }
#cfx-lang-bar a{ font-weight:700; color:var(--accent, #3FB6AC); }
#cfx-lang-bar button{ position:absolute; right:8px; top:50%; transform:translateY(-50%); width:28px; height:28px; border:0; background:transparent; color:var(--ink-muted); font-size:1.2rem; cursor:pointer; }
@media (max-width:640px){ .cfx-lang{ order:2; } }
/* the header scrolls inside itself up to 1140px wide, which would clip the language list: fixed + top:auto keeps it right under the button but outside the clipping (must come after the base .cfx-lang ul rule) */
@media (max-width:1140px){ .cfx-lang ul{ position:fixed; top:auto; right:12px; left:auto; max-height:70vh; overflow-y:auto; } html[dir="rtl"] .cfx-lang ul{ right:auto; left:12px; } }
