/*
Theme Name: Mentum20
Theme URI: https://mentum20.com/
Author: Mentum
Description: Dashboard-style fintech WordPress theme for Mentum20 — stock momentum intelligence for stocks priced $5-$20.
Version: 7.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: mentum
*/

:root {
  --bg: #020617;
  --bg-soft: #07101f;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(15, 23, 42, 0.84);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --white: #ffffff;
  --green: #34d399;
  --cyan: #22d3ee;
  --indigo: #f97316; /* Mentum20 orange */
  --amber: #f59e0b;
  --rose: #fb7185;
  --shadow: 0 20px 70px rgba(0,0,0,0.28);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1200px;
  --header-h: 96px; /* topline ~28px + header-inner 68px — update if header height changes */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(99,102,241,.16), transparent 22%),
    radial-gradient(circle at top left, rgba(52,211,153,.08), transparent 18%),
    linear-gradient(180deg, #020617 0%, #07101f 100%);
  color: var(--text);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--white); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
strong { color: var(--white); }
.site { min-height: 100vh; overflow-x: hidden; padding-top: var(--header-h); }
.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.section { padding: 1.6rem 0; }
.section-tight { padding: 1.2rem 0; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.muted, .section-copy, .entry-meta, .site-footer, .widget, .brand-tagline, .site-nav a, .mobile-menu a { color: var(--muted); }
.section-label {
  display: inline-block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 700;
  color: var(--muted);
}
.section-title {
  margin: .8rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.section-copy { max-width: 760px; }
.section-head-inline {
  display:flex; justify-content:space-between; gap:1rem; align-items:end; flex-wrap:wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .92rem 1.28rem;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: .2s ease;
  cursor: pointer;
  font-weight: 700;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); opacity: .9; }
.btn-primary { background: var(--white); color: #0f172a; }
.btn-primary:hover { opacity: .92; }
.btn-primary:active { opacity: .85; }
.btn-secondary { border-color: var(--line-strong); color: var(--white); background: transparent; }
.btn-secondary:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.25); }
.btn-secondary:active { background: rgba(255,255,255,.08); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--white); }
.btn-ghost:active { background: rgba(255,255,255,.09); }
.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid rgba(52,211,153,.25);
  background: rgba(52,211,153,.10); color: #a7f3d0;
  font-size: .78rem; font-weight: 700;
}
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(2,6,23,.72);
  border-bottom: none;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  /* Gradient fade replaces hard border — fades into hero beneath */
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 4px 24px rgba(0,0,0,.18);
  transition: background .3s ease, box-shadow .3s ease;
}
/* Scroll state: darken slightly so text stays readable deeper in page */
.site-header.is-scrolled {
  background: rgba(2,6,23,.88);
  box-shadow: 0 1px 0 rgba(255,255,255,.07), 0 8px 32px rgba(0,0,0,.28);
}
.header-inner {
  min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display:flex; align-items:center; gap:.85rem; min-width: 0; }
.brand-mark, .custom-logo-link img {
  width: 44px; height: 44px; border-radius: 18px; object-fit: cover;
}
.brand-mark {
  display:inline-flex; align-items:center; justify-content:center; background: linear-gradient(135deg, rgba(129,140,248,.35), rgba(34,211,238,.25)); font-weight: 800;
  border: 1px solid rgba(255,255,255,.08);
}
.brand-name { display:block; font-size: 1.1rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; }
.brand-tagline { display:block; font-size: .76rem; }
.site-nav ul, .footer-nav ul { list-style:none; margin:0; padding:0; display:flex; gap:1.45rem; }
.site-nav a:hover, .mobile-menu a:hover, .footer-nav a:hover { color: var(--white); }
.header-actions { display:flex; align-items:center; gap:.75rem; }
/* ── Mobile header chrome ─────────────────────────────────────────────────── */
.mobile-header-right {
  display: none; /* shown only at ≤980px via media query */
  align-items: center;
  gap: .85rem;
}
.btn-sm-mobile {
  padding: .34rem .72rem;
  font-size: .78rem;
  font-weight: 600;
  border-radius: 10px;
  letter-spacing: .01em;
  white-space: nowrap;
}

/* Hamburger button */
.mobile-toggle {
  display: none; /* shown only at ≤980px */
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
/* Animated hamburger → X */
.mobile-toggle .ham-icon { display: block; transition: .2s ease; }
.mobile-toggle .ham-top,
.mobile-toggle .ham-mid,
.mobile-toggle .ham-bottom { transform-origin: center; transition: transform .22s ease, opacity .18s ease; }
.mobile-toggle.is-open .ham-top    { transform: translateY(6px) rotate(45deg); }
.mobile-toggle.is-open .ham-mid    { opacity: 0; transform: scaleX(0); }
.mobile-toggle.is-open .ham-bottom { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile slide-down panel ──────────────────────────────────────────────── */
.mobile-panel {
  /* Use visibility instead of display:none so CSS transitions fire correctly.
     display:none prevents the browser from transitioning anything;
     visibility:hidden keeps the element in layout but invisible and inert. */
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(2, 6, 23, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform .2s cubic-bezier(.16,1,.3,1), opacity .16s ease, visibility 0s linear .2s;
  pointer-events: none;
  will-change: transform, opacity;
}
.mobile-panel.open {
  visibility: visible;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform .2s cubic-bezier(.16,1,.3,1), opacity .16s ease, visibility 0s linear 0s;
}
.mobile-panel-inner {
  padding: 1.25rem 0 1.5rem;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav a {
  display: block;
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: var(--muted);
  font-weight: 500;
  font-size: 1.05rem;
  transition: color .12s ease, opacity .1s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav a:hover,
.mobile-nav a:focus { color: var(--white); }
.mobile-nav a:active {
  color: var(--white);
  opacity: .7;
}
.mobile-nav a:last-child,
.mobile-nav li:last-child a { border-bottom: 0; }
.mobile-panel-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  /* Match the 1rem horizontal padding used on .mobile-nav a links above */
  padding-left: 1rem;
  padding-right: 1rem;
}
.mobile-panel-actions .btn {
  flex: 0 0 auto;
  justify-content: center;
  min-width: 140px;
}

/* Remove old .mobile-menu rules (replaced by .mobile-panel above) */
.mobile-menu { display: none !important; }
.hero { position: relative; overflow: hidden; padding: 1.6rem 0 1.8rem; }
.hero-grid { display:grid; grid-template-columns: 1.08fr .92fr; gap: 2rem; align-items: start; }
.hero h1 {
  margin: 1rem 0 1.25rem; max-width: 760px; font-size: clamp(3rem, 6vw, 5.35rem); line-height: .98; letter-spacing: -.05em;
}
.hero h1 span { color: rgba(255,255,255,.72); }
.hero-copy { max-width: 700px; color: #cbd5e1; font-size: 1.1rem; }
.hero-actions { display:flex; gap:1rem; flex-wrap:wrap; margin-top: 2rem; }
.mini-insights { display:grid; grid-template-columns: repeat(3, 1fr); gap:1rem; margin-top: 2rem; }
.mini-insight { padding:1rem 1.1rem; font-size:.95rem; color:#cbd5e1; }
.panel { padding: 1.25rem; }
.panel-header { display:flex; align-items:flex-start; justify-content:space-between; gap: 1rem; padding-bottom:1rem; border-bottom:1px solid var(--line); }
.panel-title { font-weight: 700; }
.panel-subtitle { font-size: .82rem; color: var(--muted); }
.live-badge, .status-badge, .signal-tag, .price-badge {
  display:inline-flex; padding: .35rem .72rem; border-radius:999px; font-size:.78rem; font-weight:700;
}
.live-badge { color:#a7f3d0; background:rgba(52,211,153,.10); }
.status-badge { color:#fde68a; background:rgba(245,158,11,.12); }
.price-badge { color:#d1fae5; background:rgba(16,185,129,.15); margin-bottom:.9rem; }
.signal-list { display:grid; gap:.85rem; margin-top:1rem; }
.signal-item {
  background: rgba(2,6,23,.6); border:1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 1rem; transition: .2s ease;
}
.signal-item:hover { border-color: rgba(255,255,255,.18); transform: translateY(-1px); }
.signal-top { display:flex; justify-content:space-between; gap:1rem; }
.ticker-row { display:flex; gap:.55rem; align-items:center; flex-wrap:wrap; }
.ticker { font-size:1.1rem; font-weight:800; }
.signal-tag { padding: .22rem .62rem; border:1px solid rgba(255,255,255,.08); }
/* Narrative color system — matches portal watchlist card colors */
.tag-surge        { background: rgba(16,185,129,.15); color:#6ee7b7; border-color:rgba(16,185,129,.25); } /* green — Momentum Surge */
.tag-leader       { background: rgba(59,130,246,.15); color:#93c5fd; border-color:rgba(59,130,246,.25); } /* blue — Sector Leader */
.tag-rotation     { background: rgba(139,92,246,.15); color:#c4b5fd; border-color:rgba(139,92,246,.25); } /* purple — Sector Rotation */
.tag-steady       { background: rgba(20,184,166,.15); color:#5eead4; border-color:rgba(20,184,166,.25); } /* teal — Steady Strength */
.tag-early        { background: rgba(245,158,11,.15); color:#fcd34d; border-color:rgba(245,158,11,.25); } /* amber — Early Momentum */
.tag-early-break  { background: rgba(249,115,22,.15); color:#fdba74; border-color:rgba(249,115,22,.25); } /* orange — Early Breakout */
.tag-repair       { background: rgba(239,68,68,.13);  color:#fca5a5; border-color:rgba(239,68,68,.22); }  /* red — Repair/Weak */
.tag-watch        { background: rgba(100,116,139,.15); color:#cbd5e1; border-color:rgba(100,116,139,.25); } /* slate — Watch */
/* Legacy aliases */
.tag-momentum { background: rgba(16,185,129,.15); color:#6ee7b7; border-color:rgba(16,185,129,.25); }
.tag-volume   { background: rgba(249,115,22,.15); color:#fdba74; border-color:rgba(249,115,22,.25); }
.tag-sector   { background: rgba(59,130,246,.15); color:#93c5fd; border-color:rgba(59,130,246,.25); }
/* Confidence badge colors */
.conf-high     { background: rgba(16,185,129,.18); color:#6ee7b7; }
.conf-moderate { background: rgba(59,130,246,.18); color:#93c5fd; }
.conf-building { background: rgba(245,158,11,.18); color:#fcd34d; }
.conf-early    { background: rgba(100,116,139,.15); color:#cbd5e1; }
.reason, .meta { font-size: .85rem; color: var(--muted); }
.gain { color: #86efac; font-weight:700; text-align:right; }
.progress, .bar-track {
  width:100%; height: 10px; border-radius:999px; background: rgba(255,255,255,.05); overflow:hidden;
}
.progress { margin-top: .9rem; }
.progress span, .bar-fill {
  display:block; height:100%; border-radius:999px; background: linear-gradient(90deg, var(--green), var(--cyan));
}
.bar-fill-alt { background: linear-gradient(90deg, var(--cyan), var(--indigo)); }
.bar-fill-third { background: linear-gradient(90deg, var(--amber), var(--rose)); }
.metrics-grid, .features-grid, .blog-grid, .pricing-grid { display:grid; gap:1rem; }
.metrics-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.metric { padding:1.35rem 1.4rem; }
.metric-value { margin-top:.5rem; font-size: 1.8rem; font-weight:800; letter-spacing:-.03em; }
.features-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.feature { padding:1.55rem; }
.feature h3, .insight-box h3, .post-card h3 { margin:0 0 .7rem; font-size: 1.25rem; }
.feature p, .stack-item, .post-card p { color:#cbd5e1; }
.split-grid, .insight-grid, .cta-grid { display:grid; gap:1.25rem; grid-template-columns: 1fr 1.04fr; }
.stack-list, .bar-list { display:grid; gap: .95rem; margin-top: 1.25rem; }
.stack-item {
  padding: 1rem 1.1rem; border-radius: 18px; border:1px solid rgba(255,255,255,.08); background: rgba(2,6,23,.58);
}
.radar-cards { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:.85rem; margin-top:1.1rem; }
.radar-card {
  border-radius: 20px; padding: 1rem; background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08);
}
.radar-value { font-size:1.9rem; font-weight:800; letter-spacing:-.04em; margin-top:.35rem; }
.radar-note { color:#cbd5e1; font-size:.9rem; }
.bar-head { display:flex; justify-content:space-between; gap:1rem; margin-bottom: .5rem; font-size:.95rem; }
.table-wrap { overflow:hidden; }
.watchlist-table { width:100%; border-collapse:collapse; }
.watchlist-table th, .watchlist-table td { padding: 1rem 1.25rem; text-align:left; border-bottom:1px solid rgba(255,255,255,.06); }
.watchlist-table th { font-size:.9rem; color: var(--muted); background: rgba(255,255,255,.03); }
.watchlist-table tbody tr:hover { background: rgba(255,255,255,.03); }
.watchlist-table .score { text-align:right; color:#86efac; font-weight:700; }
.insight-band { padding: 2rem; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)); }
.insight-box, .newsletter-box {
  border-radius: 24px; border:1px solid rgba(255,255,255,.10); background: rgba(2,6,23,.62); padding: 1.5rem;
}
.blog-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.post-card { padding:1.35rem; }
.post-card .post-kicker { color: var(--green); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight:700; }
.post-card .entry-meta { font-size: .82rem; }
.price-card { padding: 1.8rem; position:relative; }
.price-card.featured { background: rgba(52,211,153,.10); border-color: rgba(52,211,153,.22); }
.price { font-size: 3rem; font-weight: 800; margin: .5rem 0 1rem; letter-spacing: -.04em; }
.price small { font-size: 1rem; color: #cbd5e1; }
.price-features { margin: 1rem 0 0; padding: 0; list-style:none; display:grid; gap:.65rem; color:#dbeafe; }
.price-features li::before { content: "• "; color: #86efac; }
.pricing-grid-two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.cta-band {
  padding: 2.25rem; background:
    radial-gradient(circle at left top, rgba(99,102,241,.16), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}
.newsletter-form { display:flex; gap:.8rem; flex-wrap:wrap; margin-top: 1rem; }
.newsletter-form input[type="email"] {
  min-width: 240px; flex:1; padding: .95rem 1rem; border-radius: 16px; border:1px solid var(--line-strong); background: rgba(255,255,255,.05); color: var(--white);
}
.newsletter-disclaimer { font-size: .8rem; color: var(--muted); margin-top: .7rem; }
.content-area { display:grid; grid-template-columns: minmax(0,1fr) 320px; gap:2rem; padding: 0 0 1.2rem; }
.content-card, .widget-area .widget { padding: 1.5rem; }
.entry-title { font-size: clamp(2rem, 4vw, 2.8rem); line-height:1.08; margin-top:0; }
.entry-content p { margin: 0 0 1rem; }
.post-list { display:grid; gap:1rem; }
.post-list article { padding:1.35rem; }
.widget-title { margin-top:0; }
.site-footer { border-top:1px solid var(--line); padding: 1.2rem 0 2rem; margin-top: 2rem; }
.footer-inner { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; }
.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 !important; width: 1px; word-wrap: normal !important;
}

@media (max-width: 980px) {
  /* Hide desktop-only elements */
  .site-nav,
  .header-actions { display: none; }
  /* Show mobile-only elements */
  .mobile-header-right { display: flex; }
  .mobile-toggle      { display: inline-flex; }
  /* Tighter header on mobile — adjust --header-h to match */
  .header-inner { min-height: 56px; gap: .6rem; }
  /* Mobile header actual height: topline (~42px at mobile) + header-inner (56px) = ~98px.
     Use 104px for a small safe buffer so no content ever clips under the header bar. */
  .site { padding-top: 104px; }
  /* Brand: hide tagline to free horizontal space */
  .brand-tagline { display: none; }
  .brand-name    { font-size: 1rem; }
  .brand         { flex-shrink: 1; min-width: 0; }
  /* Stack layouts */
  .hero-grid,
  .split-grid,
  .insight-grid,
  .cta-grid,
  .content-area,
  .pricing-grid-two,
  .features-grid,
  .metrics-grid,
  .blog-grid,
  .radar-cards,
  .proof-cards { grid-template-columns: 1fr; }
  .mini-insights { grid-template-columns: 1fr; }
  .footer-inner  { flex-direction: column; }
  /* Mobile content offset — ensure first block clears the fixed header.
     integration.php zeroes content-area padding on portal pages, which can
     leave the first card flush against the header on narrow screens.
     This restores a safe top gap for all page types at mobile widths. */
  .hero          { padding-top: 1.2rem; }
  .section:first-of-type { padding-top: 1rem; }
  .content-wide  { padding-top: 0.6rem; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 1.2rem), var(--container)); }
  .hero { padding-top: 1.6rem; }
  .panel, .feature, .price-card, .post-card, .insight-band, .cta-band { padding: 1.1rem; }
  .watchlist-table th, .watchlist-table td { padding: .85rem .9rem; }
}


.topline { display:flex; justify-content:space-between; gap:1rem; align-items:center; min-height:28px; font-size:.78rem; color:var(--muted); border-bottom:1px solid rgba(255,255,255,.04); }
.topline-copy { color:#cbd5e1; }
.topline-status { display:flex; align-items:center; gap:.5rem; }
.status-dot { width:8px; height:8px; border-radius:999px; background:var(--green); display:inline-block; box-shadow: 0 0 0 4px rgba(52,211,153,.12); }

/* ── Pulse animation ─────────────────────────────────────────────────────── */
@keyframes mentum-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(52,211,153,.6); }
  60%       { box-shadow: 0 0 0 5px rgba(52,211,153,.0); }
}
.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--green);
  flex-shrink: 0;
  animation: mentum-pulse 2.2s ease-in-out infinite;
}
.status-dot { animation: mentum-pulse 2.2s ease-in-out infinite; }

/* ── Live ticker strip — signal feed (distinct from .pill status badge) ─────
   .pill  = product status, bold, prominent badge
   .live-ticker = active feed line, text-weight, subordinate                  */
.live-ticker {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .9rem;
  padding: .28rem 0 .28rem .7rem;
  border-radius: 0;
  background: transparent;
  border: none;
  border-left: 2px solid rgba(52,211,153,.35);
  font-size: .76rem;
  color: rgba(167,243,208,.7);   /* #a7f3d0 at 70% — clearly softer than pill */
  font-weight: 400;
  letter-spacing: .01em;
}
.live-ticker-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(52,211,153,.55);
  flex-shrink: 0;
}
.live-ticker-text {
  transition: opacity .25s ease;
}
/* Ticker symbol — focal point */
.live-ticker-ticker {
  color: #e2faf3;
  font-weight: 600;
  letter-spacing: .02em;
}
/* Message text — context, secondary */
.live-ticker-msg {
  color: rgba(167,243,208,.65);
  font-weight: 400;
}
/* Separator dot */
.live-ticker-sep {
  color: rgba(52,211,153,.3);
}
/* Age stamp — most muted element */
.live-ticker-age {
  color: rgba(52,211,153,.4);
  font-size: .72rem;
  margin-left: .3rem;
}

/* ── Homepage freshness badges ───────────────────────────────────────────── */
.hp-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-left: .35rem;
  vertical-align: middle;
}
.hp-badge-new {
  background: rgba(52,211,153,.15);
  color: #6ee7b7;
  border: 1px solid rgba(52,211,153,.3);
}
.hp-badge-leader {
  background: rgba(245,158,11,.12);
  color: #fcd34d;
  border: 1px solid rgba(245,158,11,.25);
}

/* ── Mini-insight freshness label ────────────────────────────────────────── */
.mini-fresh {
  display: block;
  font-size: .74rem;
  color: var(--green);
  font-weight: 500;
  margin-top: .18rem;
  opacity: .8;
}
.hero-stack { position:relative; }
.section-head-inline, .section-head-centered { display:flex; justify-content:space-between; gap:1rem; align-items:end; }
.section-head-centered { flex-direction:column; align-items:center; text-align:center; }
.workspace-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:1rem; margin-top:1.3rem; }
.workspace-card { padding:1.25rem; }
.workspace-kicker { color:var(--green); font-size:.78rem; text-transform:uppercase; letter-spacing:.12em; font-weight:700; }
.member-preview { padding:1.4rem; }
.member-boxes { display:grid; gap:1rem; margin-top:1.1rem; }
.member-box { padding:1rem 1.1rem; border-radius:18px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.member-box p { margin-bottom:0; color:#cbd5e1; }
.api-grid { display:grid; grid-template-columns: 1.08fr .92fr; gap:1.25rem; }
.api-card, .code-card { padding:1.55rem; }
.api-list { display:grid; gap:.8rem; margin: 1.2rem 0 1.4rem; }
.api-row { display:flex; justify-content:space-between; gap:1rem; padding:.95rem 1rem; border-radius:18px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.api-row span { color: var(--muted); }
.code-card pre { margin:0; white-space:pre-wrap; word-break:break-word; color:#c7d2fe; font-size:.95rem; line-height:1.65; }
.content-wide { padding-bottom:3rem; }
.page-hero-simple { padding-bottom:0; }
.faq-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:1rem; }
.signal-list-shortcode { margin-top: 1.1rem; }
@media (max-width: 980px) {
  .topline, .section-head-inline, .api-grid, .workspace-grid, .faq-grid { grid-template-columns: 1fr; display:grid; }
  .topline { padding:.45rem 0; }
}
@media (max-width: 640px) {
  .topline { font-size:.72rem; }
  .api-row { flex-direction:column; }
}


/* Version 5 additions */
.admin-note { color: var(--muted); font-size: .95rem; }
.signal-post-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap:1.25rem; }
.signal-post-card { padding:1.4rem; }
.signal-kicker { display:inline-flex; padding:.35rem .7rem; border-radius:999px; background:rgba(129,140,248,.12); border:1px solid rgba(129,140,248,.2); color:#c7d2fe; font-size:.78rem; font-weight:700; margin-bottom:.8rem; }
.signal-meta-row { display:flex; justify-content:space-between; gap:1rem; color:var(--muted); font-size:.92rem; margin-top:.7rem; flex-wrap:wrap; }
.signal-statline { display:grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap:1rem; margin-top:1rem; }
.signal-stat { padding:1rem 1.1rem; border-radius:18px; border:1px solid var(--line); background:rgba(255,255,255,.04); }
.api-table { width:100%; border-collapse: collapse; }
.api-table th, .api-table td { border-bottom:1px solid var(--line); padding:1rem .5rem; text-align:left; vertical-align:top; }
.api-table th { color: var(--white); }
.checklist { padding-left:1.15rem; }
.checklist li { margin-bottom:.65rem; }
.notice-inline { padding:1rem 1.15rem; border:1px solid rgba(245,158,11,.25); background:rgba(245,158,11,.08); border-radius:18px; color:#fde68a; }
.code-pill { display:inline-flex; padding:.28rem .55rem; border-radius:10px; background:rgba(255,255,255,.07); border:1px solid var(--line); font-size:.82rem; }
@media (max-width: 700px){ .api-table, .api-table tbody, .api-table tr, .api-table td, .api-table th { display:block; width:100%; } .api-table thead{display:none;} .api-table td{padding:.75rem 0;} }

/* Version 7 additions */
.movers-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap:1.2rem; }
.mover-card { padding:1.35rem; }
.mover-card h3 { margin:.35rem 0 .65rem; }

/* ── Early Narrative Signals card system (ENS v1)
   Self-contained — does NOT depend on portal CSS being loaded.
   Feed-style: compact, dense, fast to scan. Matches Radar Alerts cards.
   Grid: max 3 columns desktop, 2 tablet, 1 mobile.
   ──────────────────────────────────────────────── */
.ens-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 1100px) {
    .ens-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ens-grid { grid-template-columns: 1fr; gap: 12px; }
}

.ens-card {
    display: block;
    background: rgba(10,17,36,.82);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 16px 18px;
    color: #e5e7eb;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, transform .1s ease;
    -webkit-tap-highlight-color: transparent;
}
.ens-card:hover,
.ens-card:focus,
.ens-card:visited { color: #e5e7eb; text-decoration: none; border-color: rgba(255,255,255,.18); }
.ens-card:active  { transform: scale(.985); }
.ens-card *       { color: inherit; text-decoration: none; }

/* Head: ticker left, badge right — tight */
.ens-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}
.ens-ticker {
    font-size: 22px;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
    letter-spacing: -.01em;
}
.ens-nar-pill {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 5px;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

/* Stage badge — inline, no bottom gap */
.ens-stage-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    border-radius: 5px;
    padding: 2px 8px;
    margin-bottom: 6px;
    white-space: nowrap;
}

/* Velocity indicator — score momentum, shown only when > ±5 pts in 24h */
.ens-velocity {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin: 0 0 5px;
    line-height: 1;
}

/* Metric line — labels dim, values bright via <strong> */
.ens-metrics {
    font-size: 12px;
    color: #475569 !important;               /* labels: dim */
    margin: 0 0 5px;
    line-height: 1.4;
    font-weight: 400;
}
.ens-metrics strong {
    color: #94a3b8 !important;               /* values: mid-bright */
    font-weight: 600;
}

/* Context line — italic, softest non-footer text */
.ens-context {
    font-size: 11px;
    color: #3f4f64 !important;               /* dimmer than metrics */
    font-style: italic;
    margin: 0 0 6px;
    line-height: 1.3;
}

/* Description — single line clamp */
.ens-summary {
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1 !important;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer: CTA left, meta right — tight divider */
.ens-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.ens-cta {
    font-size: 12px;
    font-weight: 700;
    color: #60a5fa !important;
}
.ens-meta {
    font-size: 11px;
    color: #334155 !important;               /* darkest — purely ambient */
    font-style: italic;
}
/* ────────────────────────────────────────────────── */

/* ── Polish pass v8.0 ────────────────────────────────────────────────────── */

/* How-it-works steps */
.how-step { display:flex; flex-direction:column; gap:.6rem; }
.how-icon { width:2.4rem; height:2.4rem; border-radius:.6rem; display:flex; align-items:center; justify-content:center; font-size:1.1rem; }

/* Proof cards — expanded signal cards on homepage */
/* Use repeat(3,1fr) so 3 cards always fill the row without phantom gap columns   */
/* (auto-fill with minmax creates empty ghost columns when container > 3×280px)   */
.proof-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; }
.proof-card { display:flex; flex-direction:column; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.07); border-radius:var(--radius); padding:1.35rem; }
.proof-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:.5rem; }
.proof-ticker-row { display:flex; align-items:center; gap:.45rem; flex-wrap:wrap; }
.proof-gain { font-size:1.2rem; font-weight:700; color:#a7f3d0; white-space:nowrap; }
.proof-meta { display:flex; gap:1rem; font-size:.8rem; flex-wrap:wrap; margin-top:.2rem; }
.proof-meta span { color:#94a3b8; }
.proof-meta strong { color:#e2e8f0; }

/* Active Movers — terminal-style row list, sits between proof cards and radar section */
.active-movers-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.am-row {
  display: grid;
  grid-template-columns: 6rem 9rem 1fr 9rem 5rem;
  gap: 0 1.2rem;
  align-items: center;
  padding: .85rem 1.3rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .12s;
}
.am-row:last-child { border-bottom: none; }
.am-row:hover { background: rgba(255,255,255,.025); }
/* Odd rows get a very subtle tint for easy scanning */
.am-row:nth-child(odd) { background: rgba(255,255,255,.016); }
.am-row:nth-child(odd):hover { background: rgba(255,255,255,.032); }

.am-ticker-col { display: flex; flex-direction: column; gap: .15rem; }
.am-sector { font-size: .68rem; color: var(--muted); letter-spacing: .02em; }
.am-badge-col { display: flex; align-items: center; }
.am-note-col { min-width: 0; }
.am-note { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.am-meta-col { display: flex; flex-direction: column; gap: .15rem; }
.am-score { font-size: .78rem; color: var(--muted); }
.am-score strong { color: #e2e8f0; }
.am-gain-col { text-align: right; }
.am-gain { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.am-gain-up   { color: #34d399; }
.am-gain-down { color: #fb7185; }

/* Responsive: collapse to stacked mini-cards on mobile */
@media (max-width: 700px) {
  .am-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: .3rem .8rem;
    padding: .8rem 1rem;
  }
  .am-ticker-col { grid-column: 1; grid-row: 1; }
  .am-gain-col   { grid-column: 2; grid-row: 1; }
  .am-badge-col  { grid-column: 1; grid-row: 2; }
  .am-note-col   { grid-column: 1 / -1; grid-row: 3; }
  .am-meta-col   { display: none; } /* keep it compact on mobile */
}

/* Watchlist bucket preview */
/* Match movers-grid: auto-fit with 240px min so buckets stretch to fill the row  */
.watchlist-buckets { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1.2rem; }
/* Bucket block: match .card base (same radius, same background depth as Radar cards) */
.bucket-block { background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08); border-radius:var(--radius); padding:1.35rem 1.4rem; display:flex; flex-direction:column; }
.bucket-head { display:flex; flex-direction:column; gap:.35rem; margin-bottom:1rem; padding-bottom:.75rem; border-bottom:1px solid rgba(255,255,255,.06); }
.bucket-rows { display:flex; flex-direction:column; gap:.6rem; flex:1; }
.bucket-row { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; font-size:.88rem; }
.bucket-row strong { color:#e2e8f0; min-width:3rem; }
.bucket-row .gain { margin-left:auto; }

/* Confidence badge classes */
.conf-high     { background:rgba(16,185,129,.18)!important; color:#6ee7b7!important; border-color:rgba(16,185,129,.3)!important; }
.conf-moderate { background:rgba(59,130,246,.18)!important; color:#93c5fd!important; border-color:rgba(59,130,246,.3)!important; }
.conf-building { background:rgba(245,158,11,.18)!important; color:#fcd34d!important; border-color:rgba(245,158,11,.3)!important; }
.conf-early    { background:rgba(100,116,139,.15)!important; color:#cbd5e1!important; border-color:rgba(100,116,139,.25)!important; }

/* Section head centered */
.section-head-centered { text-align:center; max-width:600px; margin:0 auto 2rem; }

/* ── Mentum Pricing Page Template (template-pricing.php) ────────────────────
   These rules support the dedicated /pricing/ page template.
   The global stylesheet (.price-card, .pricing-grid etc.) covers the
   [mentum_pricing_cards] shortcode used on the homepage.
   These rules cover the full-page pricing layout.
   ────────────────────────────────────────────────────────────────────────── */

/* Page shell */
.pricing-page { background: var(--bg); }

/* Hero */
.pricing-hero { padding: 2.8rem 0 2rem; }
.pricing-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: .97;
  letter-spacing: -.04em;
  color: var(--white);
  margin: 1rem 0 1.2rem;
}
.pricing-hero-copy { font-size: 1.1rem; color: #cbd5e1; max-width: 620px; }

/* Solo pricing card */
.pricing-card-section { padding: 0 0 2.8rem; }
.pricing-solo-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  padding: 2.5rem 2.5rem;
}
.pricing-solo-left { display: flex; flex-direction: column; gap: .75rem; }
.pricing-price-block { display: flex; align-items: baseline; gap: .4rem; margin: .25rem 0; }
.pricing-amount {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--white);
}
.pricing-period { font-size: 1.1rem; color: #94a3b8; }
.pricing-cancel { font-size: .9rem; color: var(--muted); margin: 0; }
.pricing-reassurance { font-size: .82rem; color: var(--muted); margin: .5rem 0 0; }

/* Feature list (right column) */
.pricing-solo-right { display: flex; flex-direction: column; gap: .5rem; }
.pricing-includes-head {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 .75rem;
}
.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .65rem;
}
.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .92rem;
  color: #cbd5e1;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pricing-features-list li:last-child { border-bottom: none; }
.pf-icon {
  flex-shrink: 0;
  font-size: .85rem;
  color: #86efac;
  margin-top: .1rem;
}
.pricing-features-list li strong { color: var(--white); font-weight: 700; display: block; }
.pricing-features-list li span { display: block; font-size: .82rem; color: var(--muted); }

/* Value prop grid */
.pricing-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.pricing-value-card { padding: 1.8rem; }
.pricing-value-icon {
  font-size: 1.6rem;
  margin-bottom: .75rem;
  display: block;
}

/* Bottom CTA band */
.pricing-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.5rem;
}

/* Responsive */
@media (max-width: 860px) {
  .pricing-solo-card { grid-template-columns: 1fr; gap: 2rem; }
  .pricing-value-grid { grid-template-columns: 1fr; }
  .pricing-bottom-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .pricing-hero-title { font-size: 2.2rem; }
  .pricing-solo-card { padding: 1.4rem; }
  .pricing-bottom-cta { padding: 1.4rem; }
}

/* ── UX Polish — tap targets + active feedback (mobile-first) ─────────── */

/* Top IQ signal cards (portal-rendered): the signal-link sits at the bottom.
   On mobile make it easier to tap by enlarging its hit area. We cannot add
   a stretched <a> without editing the portal plugin, but we can use
   position:relative on the card + ::after on the signal-link to expand
   the tap zone upward. */
@media (max-width: 768px) {
  /* Ensure signal cards that are NOT already card-tappable respond to touch */
  .mentum-signal-card:not(.card-tappable):not(.radar-tappable) {
    -webkit-tap-highlight-color: transparent;
  }
  .mentum-signal-card:not(.card-tappable):not(.radar-tappable):active {
    background: rgba(8,16,38,.95);
  }

  /* Expand signal-link hit area to minimum 44px height (Apple HIG / WCAG) */
  .mentum-signal-card .signal-link {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
    padding: 8px 4px !important;
  }

  /* Buttons — ensure 44px minimum tap height on mobile */
  .btn {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  /* Mobile nav pills (homepage/landing) */
  .pill {
    min-height: 40px;
    -webkit-tap-highlight-color: transparent;
  }

  /* Radar cards section head pill */
  .mentum-count-pill {
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
  }
}

/* ── Hover states preserved on desktop ───────────────────────────────── */
@media (hover: hover) {
  /* Signal cards with full-card links get a hover lift */
  .mentum-signal-card.card-tappable:hover,
  .mentum-signal-card.radar-tappable:hover {
    transform: translateY(-1px);
  }
  /* Signal-link hover */
  .signal-link:hover {
    opacity: .85;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MENTUM ARTICLES — index.php + single.php
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Archive / listing page ──────────────────────────────────────────────── */

.mentum-articles-main {
  padding: 2.4rem 0 4rem;
}

.mentum-articles-hero {
  padding: 2rem 0 2.8rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.8rem;
}

.mentum-articles-tagline {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: .4rem;
}

/* Grid: 2-col on desktop, 1-col on mobile */
.mentum-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

/* Article card — full-card clickable <a> */
.mentum-article-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.6rem 1.8rem;
  background: rgba(10, 17, 36, .82);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.mentum-article-card:hover {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(15, 25, 52, .9);
}
.mentum-article-card:active {
  background: rgba(10, 17, 36, .95);
}

.article-card-kicker {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--green);
}

.article-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #f8fafc;
  margin: 0;
}
.mentum-article-card:hover .article-card-title {
  color: #fff;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: var(--muted);
}
.article-card-sep {
  opacity: .4;
}

.article-card-excerpt {
  font-size: .95rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: .2rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-cta {
  margin-top: auto;
  padding-top: .8rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: .01em;
}
.mentum-article-card:hover .article-card-cta {
  color: #a5b4fc;
}

/* Pagination */
.mentum-articles-pagination .nav-links {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.6rem 0;
}
.mentum-articles-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  transition: border-color .15s, background .15s;
}
.mentum-articles-pagination .page-numbers:hover {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: var(--white);
}
.mentum-articles-pagination .page-numbers.current {
  background: rgba(99,102,241,.18);
  border-color: rgba(129,140,248,.35);
  color: #c7d2fe;
}

/* Empty state */
.mentum-articles-empty {
  text-align: center;
  padding: 5rem 1rem;
  max-width: 480px;
  margin: 0 auto;
}
.articles-empty-icon {
  font-size: 2rem;
  color: var(--indigo);
  margin-bottom: 1.2rem;
  opacity: .7;
}
.mentum-articles-empty h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 .6rem;
}
.mentum-articles-empty p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ── Single article page ──────────────────────────────────────────────────── */

.mentum-article-main {
  padding: 2.4rem 0 5rem;
}

.mentum-article-header {
  max-width: 760px;
  padding: 1.6rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.2rem;
}

.mentum-article-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #f8fafc;
  margin: .6rem 0 .8rem;
}

.mentum-article-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  color: var(--muted);
}

/* Article body — constrained width for readability */
.mentum-article-body {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.78;
  color: #cbd5e1;
}
.mentum-article-body h2,
.mentum-article-body h3,
.mentum-article-body h4 {
  color: #f8fafc;
  margin-top: 2rem;
  letter-spacing: -.02em;
}
.mentum-article-body p { margin: 0 0 1.2rem; }
.mentum-article-body a { color: var(--indigo); text-decoration: underline; text-underline-offset: 2px; }
.mentum-article-body a:hover { color: #a5b4fc; }
.mentum-article-body blockquote {
  border-left: 3px solid var(--indigo);
  margin: 1.6rem 0;
  padding: .8rem 1.2rem;
  background: rgba(99,102,241,.06);
  border-radius: 0 8px 8px 0;
  color: #94a3b8;
  font-style: italic;
}
.mentum-article-body code {
  background: rgba(255,255,255,.07);
  border-radius: 4px;
  padding: .1em .4em;
  font-size: .9em;
  color: #c7d2fe;
}
.mentum-article-body pre {
  background: rgba(10,17,36,.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  margin: 1.4rem 0;
}
.mentum-article-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.2rem 0;
}

/* Article footer — back link + prev/next */
.mentum-article-footer {
  max-width: 720px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.mentum-article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  text-decoration: none;
  max-width: 48%;
}
.article-nav-link.article-nav-next {
  text-align: right;
  margin-left: auto;
}
.article-nav-dir {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--muted);
}
.article-nav-title {
  font-size: .95rem;
  font-weight: 700;
  color: #cbd5e1;
  transition: color .15s;
}
.article-nav-link:hover .article-nav-title { color: #fff; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .mentum-articles-grid {
    grid-template-columns: 1fr;
  }
  .mentum-article-card {
    padding: 1.2rem 1.3rem;
  }
  .article-card-title {
    font-size: 1.1rem;
  }
  .mentum-article-nav {
    flex-direction: column;
  }
  .article-nav-link,
  .article-nav-link.article-nav-next {
    max-width: 100%;
    text-align: left;
    margin-left: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MENTUM LEGAL PAGES — Terms, Privacy, Contact
   Shared styles for .mentum-legal-page containers
   ═══════════════════════════════════════════════════════════════════════════ */

.mentum-legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.legal-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.4rem;
}
.legal-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -.03em;
  line-height: 1.08;
  color: #f8fafc;
  margin: .5rem 0 .6rem;
}
.legal-eyebrow {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 700;
  color: var(--muted);
}
.legal-effective {
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
}

/* Legal body text */
.legal-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #cbd5e1;
}
.legal-body h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -.02em;
  margin: 2.2rem 0 .6rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--line);
}
.legal-body h3 {
  font-size: .95rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 1.2rem 0 .4rem;
}
.legal-body p {
  margin: 0 0 1rem;
}
.legal-body ul,
.legal-body ol {
  margin: .4rem 0 1rem 1.4rem;
  padding: 0;
}
.legal-body li {
  margin-bottom: .4rem;
  color: #94a3b8;
}
.legal-body strong {
  color: #e2e8f0;
  font-weight: 700;
}
.legal-body a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a:hover { color: #a5b4fc; }

@media (max-width: 600px) {
  .mentum-legal-page { padding: 1.6rem 0 3rem; }
  .legal-body h2 { font-size: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MENTUM LEGAL PAGES — template-legal.php
   ═══════════════════════════════════════════════════════════════════════════ */

.mentum-legal-main {
  padding: 2.4rem 0 5rem;
}

.mentum-legal-wrap {
  max-width: 760px;
}

.mentum-legal-header {
  padding: 1.6rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.4rem;
}

.mentum-legal-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #f8fafc;
  margin: .5rem 0 .6rem;
}

.mentum-legal-updated {
  font-size: .82rem;
  color: var(--muted);
  margin: 0;
}

/* Legal body — inherits article-body styles, scoped to legal template */
.mentum-legal-body {
  font-size: 1rem;
  line-height: 1.78;
  color: #cbd5e1;
}

.mentum-legal-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 2.4rem 0 .6rem;
  letter-spacing: -.02em;
  padding-top: .6rem;
  border-top: 1px solid var(--line);
}

.mentum-legal-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 1.4rem 0 .4rem;
  letter-spacing: -.01em;
}

.mentum-legal-body p {
  margin: 0 0 1rem;
}

.mentum-legal-body ul,
.mentum-legal-body ol {
  margin: .4rem 0 1rem 1.2rem;
  padding: 0;
}

.mentum-legal-body li {
  margin-bottom: .35rem;
  color: #94a3b8;
}

.mentum-legal-body a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mentum-legal-body a:hover { color: #a5b4fc; }

/* Disclaimer callout box */
.mentum-legal-body .legal-notice {
  background: rgba(99, 102, 241, .06);
  border: 1px solid rgba(129, 140, 248, .18);
  border-left: 3px solid var(--indigo);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
  color: #94a3b8;
  font-size: .95rem;
}

/* Contact form */
.mentum-contact-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mentum-contact-form label {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .88rem;
  font-weight: 600;
  color: #94a3b8;
}

.mentum-contact-form input,
.mentum-contact-form select,
.mentum-contact-form textarea {
  background: rgba(10, 17, 36, .9);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  color: #f8fafc;
  font-size: .95rem;
  padding: .7rem 1rem;
  width: 100%;
  outline: none;
  font-family: inherit;
  transition: border-color .15s;
}
.mentum-contact-form input:focus,
.mentum-contact-form select:focus,
.mentum-contact-form textarea:focus {
  border-color: rgba(129, 140, 248, .5);
}
.mentum-contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.mentum-contact-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.6rem 0;
}

.mentum-contact-channel {
  background: rgba(10, 17, 36, .82);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
}

.mentum-contact-channel h3 {
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 0 0 .4rem;
}

.mentum-contact-channel p {
  font-size: .95rem;
  color: #e2e8f0;
  margin: 0;
}

.mentum-contact-channel a {
  color: var(--indigo);
  text-decoration: none;
  font-weight: 600;
}
.mentum-contact-channel a:hover { color: #a5b4fc; }
