/*
Theme Name: The FX Read
Theme URI: https://thefxread.com
Author: The FX Read
Description: ธีมสื่อเศรษฐกิจและค่าเงินสองภาษา (TH/EN) ของ The FX Read — หน้าแรก หมวดบทความ หน้าอ่านบทความ บริการ B2B Media Kit ฟอร์มติดต่อพร้อมระบบเก็บ Lead รองรับ Polylang
Version: 1.0.3
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thefxread
*/

/* ---------- Tokens (from The FX Read design system) + layout ---------- */
:root {
  --brand-navy: #0b2545; --on-navy: #ffffff;
  --brand-teal: #0e7c86; --brand-teal-hover: #0a636b; --on-teal: #ffffff; --teal-tint: #e3f3f4;
  --accent-gold: #c9972b; --gold-ink: #8a6416;
  --surface: #ffffff; --surface-alt: #f4f6f9; --line: #dde3ea;
  --ink: #0b1b2e; --muted: #51606f;
  --market-up: #137a4a; --market-down: #c2410c; --focus-ring: #0e7c86;
  /* on-navy helpers (dark-theme values of the same tokens) */
  --navy-muted: #c3cfdd; --navy-line: rgba(255,255,255,.16); --teal-on-navy: #62c9d1; --gold-on-navy: #e0b45a;
  --control-border: #7a8796;
  --font-display: "IBM Plex Sans Thai", "IBM Plex Sans", system-ui, sans-serif;
  --font-text: "Inter", "Sarabun", "IBM Plex Sans Thai", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(11,27,46,.06), 0 4px 16px rgba(11,27,46,.06);
  --measure-article: 720px; --container: 1200px;
}

.fx { font-family: var(--font-text); color: var(--ink); background: var(--surface); }
.fx a:focus-visible, .fx button:focus-visible, .fx input:focus-visible, .fx select:focus-visible, .fx textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-16) 0; }
.band-alt { background: var(--surface-alt); }
.band-navy { background: var(--brand-navy); color: var(--on-navy); }

/* Type */
.overline { font: 600 12px/1.4 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-teal); margin: 0; }
.band-navy .overline { color: var(--teal-on-navy); }
.h1 { font: 700 44px/1.3 var(--font-display); margin: 0; }
.h2 { font: 600 30px/1.4 var(--font-display); margin: 0; }
.h3 { font: 600 22px/1.45 var(--font-display); margin: 0; }
.h4 { font: 600 18px/1.5 var(--font-display); margin: 0; }
.lead { font-size: 18px; line-height: 1.75; color: var(--muted); margin: 0; }
.band-navy .lead, .band-navy .muted { color: var(--navy-muted); }
.muted { color: var(--muted); }
.body { font-size: 16px; line-height: 1.7; margin: 0; }
.small { font-size: 14px; line-height: 1.6; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.underline-gold { position: relative; padding-bottom: 12px; }
.underline-gold::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 999px; background: var(--accent-gold); }
.center .underline-gold::after { left: 50%; transform: translateX(-50%); }

/* Layout */
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; align-items: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 320px; min-width: 0; }
.center { text-align: center; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 20px; min-height: 80px; flex-wrap: nowrap; }
.site-header .logo--img img { height: 36px !important; }
.logo { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 26px; line-height: 1.2; }
.logo .the { font-weight: 400; font-size: 18px; }
.logo .fxw { font-weight: 700; }
.logo .read { font-weight: 700; color: var(--brand-teal); border-bottom: 3px solid var(--accent-gold); padding-bottom: 1px; }
.band-navy .logo, .site-footer .logo { color: var(--on-navy); }
.band-navy .logo .read, .site-footer .logo .read { color: var(--teal-on-navy); }
.nav-wrap { margin-left: auto; }
.nav { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--radius-md); font: 600 15px/1.4 var(--font-display); color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--surface-alt); }
.nav a.is-active { color: var(--brand-teal); box-shadow: inset 0 -3px 0 var(--accent-gold); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.head-actions { display: flex; align-items: center; gap: 12px; }
.head-actions { flex: none; }
@media (max-width: 1200px) {
  .site-header .bar { padding-top: 12px; gap: 12px 24px; flex-wrap: wrap; }
  .nav-wrap { order: 3; margin-left: 0; width: 100%; overflow-x: auto; padding-bottom: 8px; }
  .head-actions { margin-left: auto; }
}

/* Footer */
.site-footer { background: var(--brand-navy); color: var(--on-navy); padding: 64px 0 0; }
.foot-top { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; }
.foot-cols { flex: 3 1 640px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-col h3 { font: 600 13px/1.4 var(--font-display); letter-spacing: .06em; color: var(--gold-on-navy); margin: 0 0 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-col a { color: var(--navy-muted); text-decoration: none; font-size: 15px; line-height: 1.5; }
.foot-col a:hover { color: var(--on-navy); text-decoration: underline; text-underline-offset: 3px; }
.foot-col .email { display: block; font-size: 13px; color: var(--navy-muted); }
.foot-risk { margin-top: 48px; border-top: 1px solid var(--navy-line); padding: 20px 0 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--navy-muted); }
.foot-risk a { color: var(--on-navy); }
@media (max-width: 900px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot-cols { grid-template-columns: minmax(0, 1fr); } }

/* Buttons on navy */
.btn-light { background: transparent; color: var(--on-navy); border-color: rgba(255,255,255,.6); }
.btn-light:hover { background: rgba(255,255,255,.08); }
.band-navy .fx-btn--ghost { color: var(--teal-on-navy); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 72px 24px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-side { flex: 1 1 400px; min-width: 0; }
.page-hero { padding: 56px 0 48px; }

/* Featured + list */
.feature-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.feature-row > .big { flex: 3 1 520px; min-width: 0; }
.feature-row > .list { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* Chips, pager */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
a.fx-chip { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; padding: 4px 14px; }
a.fx-chip.is-on { background: var(--brand-navy); color: var(--on-navy); }
.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; font: 600 15px/1 var(--font-display); color: var(--ink); background: var(--surface); }
.pager a[aria-current="page"] { background: var(--brand-navy); color: var(--on-navy); border-color: var(--brand-navy); }
.pager span { border-color: transparent; color: var(--muted); }

/* Panels, icons, stats */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.panel-alt { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.band-navy .panel-navy { background: rgba(255,255,255,.06); border: 1px solid var(--navy-line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.icon-tile { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--teal-tint); color: var(--brand-teal); display: grid; place-items: center; flex: none; }
.icon-tile svg, .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.band-navy .icon-tile { background: rgba(98,201,209,.14); color: var(--teal-on-navy); }
.stat-num { font: 700 36px/1.2 var(--font-display); color: var(--ink); }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-navy); color: var(--on-navy); display: grid; place-items: center; font: 700 15px/1 var(--font-display); flex: none; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.ticks li::before { content: ""; flex: none; width: 6px; height: 11px; margin: 4px 6px 0 4px; border: solid var(--brand-teal); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.band-navy .ticks li::before { border-color: var(--teal-on-navy); }
.ph { color: var(--brand-teal); font-weight: 600; }

/* Video thumbnails */
.vid { position: relative; }
.vid .play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.vid .play span { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--brand-navy); display: grid; place-items: center; }
.vid .play svg { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }

/* Forms */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font: 600 14px/1.4 var(--font-display); color: var(--ink); }
.field .hint { font-size: 13px; line-height: 1.5; color: var(--muted); }
.input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px; border: 1px solid var(--control-border); border-radius: var(--radius-sm); background: var(--surface); font: 400 16px/1.5 var(--font-text); color: var(--ink); }
textarea.input { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand-teal); flex: none; }
.check a { color: var(--brand-teal); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-alt); font-size: 14px; color: var(--muted); }

/* Article extras */
.ad-slot { border: 1px dashed var(--control-border); border-radius: var(--radius-md); padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share a { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-pill); text-decoration: none; color: var(--ink); font: 600 14px/1 var(--font-display); }
.callout-b2b { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; background: var(--brand-navy); color: var(--on-navy); border-radius: var(--radius-lg); padding: 28px 32px; }
.table-scroll { overflow-x: auto; }
.fx-table td.num, .fx-table th.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Legal */
.legal { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.toc { flex: 1 1 240px; min-width: 0; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.toc a { display: block; padding: 10px 14px; border-radius: var(--radius-md); text-decoration: none; color: var(--ink); font: 600 15px/1.4 var(--font-display); }
.toc a:hover { background: var(--surface-alt); }
.toc a[aria-current="page"] { background: var(--teal-tint); color: var(--ink); box-shadow: inset 3px 0 0 var(--brand-teal); }
.legal-body { flex: 999 1 560px; min-width: 0; max-width: var(--measure-article); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 600 17px/1.5 var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--brand-teal); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

/* Cookie consent */
.cookie-wrap { position: sticky; bottom: 0; height: 0; z-index: 20; }
.cookie { position: absolute; left: 16px; right: 16px; bottom: 16px; max-width: 960px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 8px 32px rgba(11,27,46,.18); padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.cookie p { margin: 0; flex: 1 1 420px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cookie a { color: var(--brand-teal); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 16px; }
  .section { padding: 48px 0; }
  .h1 { font-size: 32px; }
  .h2 { font-size: 24px; }
  .callout-b2b { padding: 24px; }
}

/* ---------- Components (design system bundle) ---------- */

/* The FX Read — shared component styles. Values come from tokens.css only. */
.fx { font-family: var(--font-text); color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
.fx *, .fx *::before, .fx *::after { box-sizing: border-box; }

/* Buttons */
.fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: var(--space-3) var(--space-6); border-radius: var(--radius-md); border: 1.5px solid transparent; font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.fx-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.fx-btn--primary { background: var(--brand-teal); color: var(--on-teal); }
.fx-btn--primary:hover { background: var(--brand-teal-hover); }
.fx-btn--secondary { background: transparent; color: var(--brand-teal); border-color: var(--brand-teal); }
.fx-btn--secondary:hover { background: var(--teal-tint); }
.fx-btn--accent { background: var(--accent-gold); color: var(--brand-navy); }
.fx-btn--accent:hover { filter: brightness(1.06); }
.fx-btn--ghost { background: transparent; color: var(--brand-teal); padding-left: 0; padding-right: 0; }
.fx-btn--ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.fx-btn--sm { min-height: 36px; padding: var(--space-2) var(--space-4); font-size: 14px; }
.fx-btn[disabled] { opacity: .45; cursor: not-allowed; }

.fx-lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 2px; }
.fx-lang button { border: 0; background: transparent; color: var(--muted); font: 600 13px/1 var(--font-display); padding: 8px 14px; border-radius: var(--radius-pill); cursor: pointer; }
.fx-lang button[aria-pressed="true"] { background: var(--brand-navy); color: var(--on-navy); }

/* Chips & badges */
.fx-chip { display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--teal-tint); color: var(--ink); font: 600 12px/1.4 var(--font-display); letter-spacing: .02em; }
.fx-badge-featured { display: inline-block; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--accent-gold); color: var(--brand-navy); font: 700 11px/1.3 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.fx-badge-sponsored { display: inline-block; padding: 3px 8px; border-radius: var(--radius-sm); border: 1px solid var(--gold-ink); color: var(--gold-ink); font: 600 11px/1.3 var(--font-display); }

/* Cover image placeholder — "lines of text" with one gold underline, over navy */
.fx-cover { position: relative; overflow: hidden; background: var(--brand-navy); border-radius: var(--radius-lg); aspect-ratio: 16 / 9; }
.fx-cover::before { content: ""; position: absolute; left: 10%; right: 22%; top: 22%; height: 46%; background: repeating-linear-gradient(to bottom, var(--brand-teal) 0 12%, transparent 12% 25%); opacity: .7; border-radius: var(--radius-sm); }
.fx-cover::after { content: ""; position: absolute; left: 10%; width: 38%; bottom: 18%; height: 6%; min-height: 4px; border-radius: var(--radius-pill); background: var(--accent-gold); }
.fx-cover--sq { aspect-ratio: 1; border-radius: var(--radius-md); }
.fx-cover--sq::before { right: 14%; }
.fx-cover--sq::after { width: 56%; }

/* Cards */
.fx-card { display: flex; flex-direction: column; gap: var(--space-3); color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); transition: box-shadow .15s, transform .15s; }
.fx-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.fx-card:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.fx-card__title { margin: 0; font: 600 18px/1.5 var(--font-display); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fx-card--featured .fx-card__title { font-size: 22px; line-height: 1.45; }
.fx-card__dek { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: 14px; line-height: 1.6; color: var(--muted); }
.fx-meta span + span::before { content: "·"; margin-right: var(--space-2); }
.fx-card--compact { flex-direction: row; align-items: center; padding: var(--space-3); }
.fx-card--compact .fx-cover { width: 96px; flex: none; }
.fx-card--compact .fx-card__title { font-size: 16px; -webkit-line-clamp: 2; }
.fx-card--service { gap: var(--space-4); padding: var(--space-6); }
.fx-price { font: 700 28px/1.2 var(--font-display); color: var(--ink); }
.fx-price small { font: 400 14px/1 var(--font-text); color: var(--muted); }

/* Rates */
.fx-rate { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.fx-up { color: var(--market-up); }
.fx-down { color: var(--market-down); }

/* Article reader */
.fx-article { max-width: var(--measure-article); margin: 0 auto; padding: var(--space-8) var(--space-4) var(--space-12); }
.fx-crumb { font-size: 14px; color: var(--muted); display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.fx-crumb a { color: var(--muted); text-decoration: none; }
.fx-article h1 { font: 700 44px/1.3 var(--font-display); margin: var(--space-4) 0 var(--space-3); color: var(--ink); }
.fx-dek { font-size: 20px; line-height: 1.7; color: var(--muted); margin: 0 0 var(--space-6); }
.fx-byline { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: var(--space-6); }
.fx-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-navy); color: var(--on-navy); display: inline-grid; place-items: center; font: 700 14px/1 var(--font-display); }
.fx-figcap { font-size: 13px; color: var(--muted); margin: var(--space-2) 0 var(--space-8); }
.fx-takeaways { background: var(--teal-tint); border-radius: var(--radius-md); padding: var(--space-4) var(--space-6); margin-bottom: var(--space-8); }
.fx-takeaways h2 { font: 600 16px/1.4 var(--font-display) !important; margin: 0 0 var(--space-2) !important; }
.fx-takeaways ul { margin: 0; padding-left: 1.2em; }
.fx-takeaways li { font-size: 16px; line-height: 1.75; }
.fx-prose { font-size: 18px; line-height: 1.8; }
.fx-prose p { margin: 0 0 var(--space-6); }
.fx-prose h2 { font: 600 30px/1.4 var(--font-display); margin: var(--space-8) 0 var(--space-4); color: var(--ink); }
.fx-prose a { color: var(--brand-teal); text-underline-offset: 3px; }
.fx-table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-6); font-size: 15px; }
.fx-table th { text-align: left; font: 600 13px/1.4 var(--font-display); color: var(--muted); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); }
.fx-table td { padding: var(--space-3); border-bottom: 1px solid var(--line); }
.fx-table td.num, .fx-table th.num { text-align: right; }
.fx-notice { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4) var(--space-6); font-size: 14px; line-height: 1.7; color: var(--muted); margin: var(--space-8) 0; }
.fx-notice strong { color: var(--ink); }

@media (max-width: 640px) {
  .fx-article h1 { font-size: 32px; }
  .fx-dek { font-size: 18px; }
  .fx-prose h2 { font-size: 24px; }
}

/* ---------- WordPress additions ---------- */
body { margin: 0; background: var(--surface); }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: var(--surface); clip: auto !important; clip-path: none; color: var(--ink); display: block; height: auto; left: 8px; padding: 12px 16px; top: 8px; width: auto; z-index: 100000; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
img { max-width: 100%; height: auto; }
.fx-cover img, .fx-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.fx-cover.has-img::before, .fx-cover.has-img::after { display: none; }

/* Language switcher as links */
.fx-lang a { display: inline-block; color: var(--muted); font: 600 13px/1 var(--font-display); padding: 8px 14px; border-radius: var(--radius-pill); text-decoration: none; }
.fx-lang a[aria-current="true"] { background: var(--brand-navy); color: var(--on-navy); }

/* Nav from wp_nav_menu */
.nav .current-menu-item > a, .nav .current-menu-parent > a, .nav .current-post-ancestor > a, .nav .current-category-ancestor > a { color: var(--brand-teal); box-shadow: inset 0 -3px 0 var(--accent-gold); border-radius: var(--radius-md) var(--radius-md) 0 0; }

/* Pagination from paginate_links */
.pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; font: 600 15px/1 var(--font-display); color: var(--ink); background: var(--surface); }
.pager .page-numbers.current { background: var(--brand-navy); color: var(--on-navy); border-color: var(--brand-navy); }
.pager .page-numbers.dots { border-color: transparent; color: var(--muted); }

/* Editor content inside articles and pages */
.fx-prose > *:first-child { margin-top: 0; }
.fx-prose h3 { font: 600 22px/1.45 var(--font-display); margin: var(--space-6) 0 var(--space-3); }
.fx-prose ul, .fx-prose ol { margin: 0 0 var(--space-6); padding-left: 1.3em; }
.fx-prose li { margin-bottom: 6px; }
.fx-prose blockquote { margin: 0 0 var(--space-6); padding: var(--space-4) var(--space-6); border-radius: var(--radius-md); background: var(--surface-alt); color: var(--ink); }
.fx-prose blockquote p:last-child { margin-bottom: 0; }
.fx-prose figure { margin: 0 0 var(--space-6); }
.fx-prose figcaption, .fx-prose .wp-element-caption { font-size: 13px; color: var(--muted); margin-top: var(--space-2); }
.fx-prose img { border-radius: var(--radius-md); }
.fx-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fx-prose .wp-block-table { overflow-x: auto; margin: 0 0 var(--space-6); }
.fx-prose th { text-align: left; font: 600 13px/1.4 var(--font-display); color: var(--muted); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); }
.fx-prose td { padding: var(--space-3); border-bottom: 1px solid var(--line); }
.fx-prose .up { color: var(--market-up); }
.fx-prose .down { color: var(--market-down); }
.fx-prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-8) 0; }
.fx-prose code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-alt); padding: 2px 6px; border-radius: 4px; }
.page-body { max-width: var(--measure-article); }

/* Lead form feedback */
.form-alert { border-radius: var(--radius-md); padding: 14px 18px; font-size: 15px; line-height: 1.6; }
.form-alert--error { background: #fdece4; color: #8a2a06; border: 1px solid #f3c3ac; }
.input:invalid:focus { border-color: var(--market-down); }

/* Article tags + empty state */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-8); }
.empty-state { padding: 48px 24px; text-align: center; border: 1px dashed var(--control-border); border-radius: var(--radius-lg); color: var(--muted); }

/* Video thumbnails from YouTube */
.vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); z-index: 0; }

@media (max-width: 640px) {
  .fx-article { padding-top: var(--space-6); }
  .fx-byline { align-items: flex-start; }
  .callout-b2b .btn-row { width: 100%; }
}
.band-navy .fx-crumb, .band-navy .fx-crumb a { color: var(--navy-muted); }
.fx-ad { margin: 0 0 var(--space-6); text-align: center; }
.fx-article .fx-cover { margin-top: 0; }
.fx-prose .wp-block-table table, .fx-prose .wp-block-table th, .fx-prose .wp-block-table td { border: 0; }
.fx-prose .wp-block-table thead { border-bottom: 1px solid var(--line); }
.fx-prose .wp-block-table td { border-bottom: 1px solid var(--line); }
.toc { flex: 0 1 260px; }

/* Header on small phones: keep logo, language switch and Contact on one row */
@media (max-width: 480px) {
  .site-header .bar { gap: 10px 12px; }
  .site-header .logo--img img { height: 24px !important; }
  .head-actions { gap: 6px; }
  .head-actions .fx-lang a { padding: 7px 10px; }
  .head-actions .fx-btn--sm { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 380px) { .site-header .logo--img img { height: 20px !important; } }
