/**
 * base.css
 *
 * Design tokens, reset, typography, layout, shared components, and utilities.
 * Loaded on every page. Single source of truth for reusable patterns.
 *
 * @package BeatTheFish
 * @since   2.1.0
 */

/* ═══ 1. Design Tokens ════════════════════════════════════════════ */

:root {
  --bg:        #F4EFE6;
  --bg2:       #EDE8DE;
  --bg3:       #E5DFD3;
  --surface:   #FDFBF7;

  --ink:       #1C1814;
  --ink2:      #3A342C;
  --ink3:      #6B6258;
  --ink4:      #9C9488;

  --felt:      #1B3A2D;
  --felt2:     #254D3C;
  --felt3:     #3A7057;
  --felt-bg:   #EDF3EF;

  --brass:     #9A7B3C;
  --brass-bg:  rgba(154, 123, 60, 0.07);

  --red:       #8B2D2D;
  --red-bg:    rgba(139, 45, 45, 0.05);

  --purple:    #5C3A6B;
  --purple-bg: rgba(92, 58, 107, 0.08);

  --amber:     #92700A;
  --amber-bg:  rgba(146, 112, 10, 0.06);

  --radius:    16px;
  --radius-sm: 10px;
  --rule:      rgba(28, 24, 20, 0.08);
  --max-width: 1100px;
  --gutter:    24px;

  --fs-sm:   0.82rem;
  --fs-base: 1rem;
  --fs-3xl:  1.9rem;

  --space-xl:  56px;

  /* Additional colors */
  --changelog-bg: #d5cfc3;
  --felt-hover:   #dceae3;
  --felt-grad:    #2a6045;

  /* Dark-section palette (felt / hero / footer) */
  --on-dark:       rgba(244, 239, 230, 0.95);
  --on-dark-muted: rgba(244, 239, 230, 0.5);
  --on-dark-dim:   rgba(255, 255, 255, 0.35);
  --on-dark-rule:  rgba(255, 255, 255, 0.08);
}

/* ═══ 2. Reset ════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  font-family: 'Outfit', sans-serif;
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.018;
  pointer-events: none;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--felt); }
::selection { background: rgba(27, 58, 45, 0.15); color: var(--ink); }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ═══ 3. Typography ═══════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Instrument Serif', serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.65rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; font-family: 'Outfit', sans-serif; font-weight: 600; }
h6 { font-size: 0.9rem; font-family: 'Outfit', sans-serif; font-weight: 600; }

.text-meta     { font-size: var(--fs-sm); color: var(--ink4); line-height: 1.6; }
.text-meta a   { color: var(--felt); font-weight: 600; }
.text-sm-muted { font-size: 0.88rem; color: var(--ink3); }
.review-meta-text   { font-size: 0.92rem; color: var(--ink3); margin-bottom: 8px; line-height: 1.6; }
.review-body-text   { font-size: 0.92rem; color: var(--ink2); line-height: 1.6; }
.methodology-link   { font-size: 0.85rem; color: var(--felt); font-weight: 600; display: inline-block; margin-bottom: 24px; }

/* ═══ 4. Layout & Sections ════════════════════════════════════════ */
/* Container (.wrap), section backgrounds, and grid system are in layout.css */

/* Felt dot texture — shared across all dark-bg elements */
.section-felt::before,
.hero::before,
.homepage-hero::before,
.card-top::before,
.bonus-top::before,
.strategy-big::before,
.quick-verdict::after,
.poker-variant-featured::before,
.poker-strategy-note-head::before,
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='0.5' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
  background-size: 4px 4px;
  pointer-events: none;
}

/* Z-index lift for content over texture */
.section-felt > .wrap,
.hero > .wrap,
.homepage-hero > .wrap,
.card-top > *,
.bonus-top > *,
.strategy-big > *,
.quick-verdict > *,
.poker-variant-featured > *,
.site-footer > * {
  position: relative;
  z-index: 1;
}

/* Hero category pill */
.hero-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(244, 239, 230, 0.7);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.hero-cat-pill:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(244, 239, 230, 0.95);
}

/* Dark-section selection color — brass on any element with a felt/dark background */
.section-felt ::selection, .section-felt::selection,
.hero ::selection, .hero::selection,
.homepage-hero ::selection, .homepage-hero::selection,
.archive-hero ::selection, .archive-hero::selection,
.site-footer ::selection, .site-footer::selection,
.score-card ::selection, .score-card::selection,
.quick-verdict ::selection, .quick-verdict::selection,
.poker-strategy-note-head ::selection, .poker-strategy-note-head::selection,
.verdict-card ::selection, .verdict-card::selection,
.bonus-top ::selection, .bonus-top::selection,
.card-top ::selection, .card-top::selection,
.sub-fill.fill-strong ::selection, .sub-fill.fill-strong::selection,
.offshore-ticker-bar ::selection, .offshore-ticker-bar::selection,
.ticker-bar ::selection, .ticker-bar::selection,
.poker-variant-featured ::selection, .poker-variant-featured::selection,
[class*="--dark"] ::selection, [class*="--dark"]::selection,
[class*="--felt"] ::selection, [class*="--felt"]::selection,
.cta-btn ::selection, .cta-btn::selection,
.rc-cta ::selection, .rc-cta::selection,
.card-cta ::selection, .card-cta::selection,
.tool-cta ::selection, .tool-cta::selection,
.featured-cta ::selection, .featured-cta::selection,
.bonus-claim-btn:hover ::selection, .bonus-claim-btn:hover::selection,
.pagination-wrap .current ::selection, .pagination-wrap .current::selection,
.tc-sev-low ::selection, .tc-sev-low::selection,
.state-panel-link ::selection, .state-panel-link::selection,
.numbered-list-num--hub ::selection, .numbered-list-num--hub::selection,
.numbered-list-row:first-child .numbered-list-num ::selection, .numbered-list-row:first-child .numbered-list-num::selection,
.rh-step-num ::selection, .rh-step-num::selection,
.btf-step-num ::selection, .btf-step-num::selection,
.nl-badge-begin ::selection, .nl-badge-begin::selection,
.strategy-big ::selection, .strategy-big::selection,
.list-filter-btn.active-all ::selection, .list-filter-btn.active-all::selection,
.mobile-filter-pill.active ::selection, .mobile-filter-pill.active::selection,
.filter-btn:hover ::selection, .filter-btn:hover::selection,
.filter-btn.active ::selection, .filter-btn.active::selection,
.bk-calc-btn ::selection, .bk-calc-btn::selection,
.bk-game-btn.active ::selection, .bk-game-btn.active::selection,
.icm-calc-btn ::selection, .icm-calc-btn::selection,
.icm-num-btn.active ::selection, .icm-num-btn.active::selection,
.icm-header ::selection, .icm-header::selection,
.hc-convert-btn ::selection, .hc-convert-btn::selection,
.hc-fmt-btn.active ::selection, .hc-fmt-btn.active::selection,
.oc-calc ::selection, .oc-calc::selection,
.pt-play ::selection, .pt-play::selection,
.pt-start-btn ::selection, .pt-start-btn::selection,
.prose .wpcf7 input[type="submit"]::selection,
.prose table thead ::selection, .wp-block-table table thead ::selection,
.skip-link ::selection, .skip-link::selection {
  background: rgba(212, 180, 74, 0.4);
  color: var(--on-dark);
}

/* Light/cream buttons keep the default green selection even when inside dark sections */
.btn-primary ::selection, .btn-primary::selection,
.hero-cta-primary ::selection, .hero-cta-primary::selection {
  background: rgba(27, 58, 45, 0.15);
  color: var(--ink);
}

/* Section paragraph defaults */
.section-paper > .wrap p:not([class]),
.section-surface > .wrap p:not([class]),
.section-white > .wrap p:not([class]),
.section-felt > .wrap p:not([class]) {
  font-size: 1.05rem;
  color: var(--ink3);
  line-height: 1.65;
}

/* ═══ Blockquotes ════════════════════════════════════════════════ */

.prose blockquote,
.wp-block-quote {
  border-left: 2px solid var(--rule);
  padding: 0 0 0 20px;
  margin: 24px 0;
  max-width: 640px;
}

.prose blockquote p,
.wp-block-quote p {
  font-size: 0.95rem;
  color: var(--ink3);
  font-style: italic;
  line-height: 1.7;
  margin: 0 0 8px;
}

.prose blockquote p:last-child,
.wp-block-quote p:last-child {
  margin-bottom: 0;
}

.prose blockquote cite,
.wp-block-quote cite {
  display: block;
  font-size: 0.78rem;
  color: var(--ink4);
  font-style: normal;
  margin-top: 8px;
}

/* ═══ Tables ═════════════════════════════════════════════════════ */

.prose table,
.wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--rule);
  font-size: 0.88rem;
  margin-bottom: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.prose table thead,
.wp-block-table table thead {
  background: var(--felt);
  border-bottom: none;
}

.prose table th,
.wp-block-table table th {
  padding: 12px 16px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(244, 239, 230, 0.85);
  border: none;
}

.prose table td,
.wp-block-table table td {
  padding: 12px 16px;
  color: var(--ink3);
  border: none;
  border-top: 1px solid var(--rule);
}

.prose table tbody tr:nth-child(odd),
.wp-block-table table tbody tr:nth-child(odd) {
  background: var(--surface);
}

.prose table tbody tr:nth-child(even),
.wp-block-table table tbody tr:nth-child(even) {
  background: #fff;
}

.prose table td strong,
.wp-block-table table td strong { color: var(--ink); }

.prose table td a,
.wp-block-table table td a { color: var(--ink2); font-weight: 500; }

.prose table td a:hover,
.wp-block-table table td a:hover { color: var(--felt); }

/* Gutenberg table wrapper */
.wp-block-table { margin: 0 0 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wp-block-table table { margin-bottom: 0; }

/* Scrollable table wrapper (auto-injected around bare tables) */
.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 28px;
}
.table-scroll-wrap table { margin-bottom: 0; }

/* Crypto compare block */
.btf-crypto-compare .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.btf-crypto-compare .table-responsive table { width: 100%; margin-bottom: 0; }

/* ═══ 5. Section Headers ══════════════════════════════════════════ */

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--brass);
}

.section-label-light,
h2.section-label-light {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(154, 123, 60, 0.7);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.section-label-light::before {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: rgba(154, 123, 60, 0.5);
}

.section-title, h2.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: var(--fs-3xl);
  color: var(--ink);
  margin-bottom: 0.5em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--ink3);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 24px;
}

/* Readable prose — for article-like body text */
.prose > * { max-width: 640px; }

.prose > p,
.prose > ul,
.prose > ol {
  font-size: 1.05rem;
  color: var(--ink3);
  line-height: 1.65;
  margin-bottom: 24px;
}

.decision-note { font-size: 0.85rem !important; color: var(--ink4) !important; margin-top: 14px !important; margin-bottom: 16px; }
.decision-note-link { display: inline-block; color: var(--felt); font-weight: 600; text-decoration: none; }
.decision-note-link:hover { text-decoration: underline; }
.prose > ul { list-style: disc; padding-left: 1.4em; }
.prose > ol { list-style: decimal; padding-left: 1.4em; }
.prose li   { margin-bottom: 6px; }

.prose > p:last-child { margin-bottom: 0; }

.prose h2 {
  font-family: 'Instrument Serif', serif;
  font-size: var(--fs-3xl);
  color: var(--ink);
  margin: 2em 0 0.5em;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.5em 0 0.5em;
}

.prose h3:first-child { margin-top: 0; }

.prose a:not(.rc-cta):not(.btn-primary):not(.btn-ghost) {
  color: var(--felt);
  font-weight: 600;
}

.prose strong { color: var(--ink); }

/* Tighter bottom margin when followed by .section-sub */
.section-title--tight { margin-bottom: 6px; }

.section-felt .section-title { color: var(--on-dark); }
.section-felt .section-sub   { color: rgba(255, 255, 255, 0.55); margin-bottom: 20px; }

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.section-link    { font-size: 0.9rem; font-weight: 600; color: var(--felt); }

/* ── Search Result Cards ─────────────────────────────────────── */
/* ── Archive / Category Hero ──────────────────────────────────── */
.archive-hero {
  background: var(--felt);
  position: relative;
  overflow-y: hidden;
  padding: 36px 0 40px;
}

.archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='0.6' fill='rgba(244,239,230,0.03)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.archive-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--on-dark);
  margin-bottom: 12px;
}

.archive-hero-desc {
  font-size: 1.05rem;
  color: rgba(244, 239, 230, 0.7);
  line-height: 1.6;
  max-width: 640px;
}

.archive-hero-meta {
  margin-top: 12px;
}

.archive-post-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(244, 239, 230, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Article Cards (archive/category/tag) ────────────────────── */
.article-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.article-card:hover {
  border-color: rgba(58, 112, 87, 0.2);
  box-shadow: 0 4px 16px rgba(28, 24, 20, 0.06);
}

.article-card-link {
  display: flex;
  flex-direction: column;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.article-cat-pill {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--felt-bg);
  color: var(--felt);
  margin-bottom: 8px;
}

.article-card-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.article-card-excerpt {
  font-size: 0.82rem;
  color: var(--ink3);
  line-height: 1.55;
  margin-bottom: 12px;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.article-card-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--ink4);
}

.article-card-read {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--felt);
}

.search-hero-form    { max-width: 480px; margin-top: 16px; }
.search-card         { padding: 20px; display: block; text-decoration: none; }
.search-card-title   { font-family: 'Instrument Serif', serif; font-size: 1.1rem; color: var(--ink); margin-bottom: 6px; }
.search-card-excerpt { font-size: 0.82rem; color: var(--ink3); line-height: 1.55; margin: 0; }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination-wrap { margin-top: 32px; display: flex; gap: 6px; flex-wrap: wrap; }
.pagination-wrap a,
.pagination-wrap span { padding: 8px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; }
.pagination-wrap a { color: var(--felt); background: var(--surface); border: 1px solid var(--rule); text-decoration: none; }
.pagination-wrap a:hover { background: var(--felt-bg); border-color: var(--felt3); }
.pagination-wrap .current { background: var(--felt); color: var(--bg); border: 1px solid var(--felt); }
.section-intro   { color: var(--ink3); margin-bottom: 20px; }
.section-eyebrow { font-size: 0.85rem; font-weight: 600; color: var(--on-dark-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }

.section-felt-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Small mono uppercase eyebrow — base class, color via modifier */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  color: var(--felt3);
}

.eyebrow--muted { color: var(--ink4); }
.eyebrow--light { color: rgba(244, 239, 230, 0.4); }

/* ═══ 6. Composable Primitives ════════════════════════════════════ */
/*
 * Reusable single-purpose classes. Add alongside component classes
 * in templates: <div class="game-card cs"> instead of repeating
 * background/border/radius in every component selector.
 */

/* Card surface — the bg + border + radius trio */
.cs,
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.cs-sm {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}

/* ── Search Input ─────────────────────────────────────────────── */

.search-wrap {
  position: relative;
  margin-bottom: 12px;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-input:focus { border-color: var(--felt3); }

/* ── Prose Breakout (full-width sections inside .prose) ──────── */

.prose .btf-prose-breakout {
  width: 100vw;
  max-width: none;
  margin-left: calc(-50vw + 50%);
  margin-top: 32px;
  margin-bottom: 0;
  padding: 40px 0;
}

/* Collapse margin between adjacent breakout sections */
.prose .btf-prose-breakout + .btf-prose-breakout { margin-top: 0; }

/* ── Bonus Cards (shared ndb-* component) ────────────────────── */

.ndb-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.ndb-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--rule);
}

.ndb-header { flex: 1; min-width: 0; }

.ndb-casino { font-size: 0.92rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.ndb-casino a { color: var(--ink); text-decoration: none; }
.ndb-casino a:hover { color: var(--felt); }

.ndb-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--felt3);
  margin-top: 2px;
}

.ndb-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

/* Hero display value inside card */
.ndb-hero {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.ndb-hero-val {
  font-family: 'Instrument Serif', serif;
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ndb-hero-lbl {
  font-size: 0.78rem;
  color: var(--ink4);
  margin-top: 4px;
}

/* Inline key terms on cards */
.ndb-terms {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.ndb-term {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink3);
  line-height: 1.5;
}
.ndb-term-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--felt3);
  flex-shrink: 0;
  margin-top: 5px;
}

.ndb-amount {
  font-family: 'Instrument Serif', serif;
  font-size: 1.25rem;
  color: var(--ink);
}

.ndb-code {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--rule);
}
.ndb-code-label { font-size: 0.78rem; color: var(--ink4); }
.ndb-code-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--felt);
  letter-spacing: 0.03em;
}

.ndb-details { }

.ndb-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.82rem;
}
.ndb-row-label { color: var(--ink4); }
.ndb-row-val   { font-weight: 600; color: var(--ink); text-align: right; }

.ndb-verdict { font-size: 0.82rem; color: var(--ink3); line-height: 1.5; }

.ndb-footer { padding: 0 18px 16px; margin-top: auto; }

/* ── Coming Soon (disabled cards/links) ──────────────────────── */

.cs--coming-soon {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
  filter: grayscale(0.3);
}

.coming-soon-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink4);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink4);
}

/* Card surface color variants */
.cs--green  { background: var(--felt-bg);  border-color: rgba(58, 112, 87, 0.15); }
.cs--red    { background: var(--red-bg);   border-color: rgba(139, 45, 45, 0.1); }
.cs--brass  { background: var(--brass-bg); border-color: rgba(154, 123, 60, 0.15); }
.cs--dark   { background: var(--felt);     border-color: var(--felt3); color: var(--bg); }

/* Hover lift — add .lift to any card that should rise on hover */
.lift { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.lift:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 24, 20, 0.06);
  border-color: rgba(27, 58, 45, 0.14);
}

/* Utility classes — add more as templates adopt them */

/* Narrow prose container (search no-results, 404) */
.prose--narrow      { max-width: 480px; }

/* Spacing nudges — use sparingly, prefer component margins */
.mt-sm              { margin-top: 4px; }
.mt-md              { margin-top: 12px; }
.mt-16              { margin-top: 16px; }
.mt-lg              { margin-top: 24px; }
.mt-xl              { margin-top: 28px; }
.mt-2xl             { margin-top: 36px; }
.mb-sm              { margin-bottom: 6px; }
.mb-md              { margin-bottom: 12px; }
.mb-16              { margin-bottom: 16px; }
.mb-lg              { margin-bottom: 20px; }
.mb-22              { margin-bottom: 22px; }

/* Object-fit for inline icon images (functions.php btf_icon_img) */
.img-contain        { object-fit: contain; }

/* Search highlight text — inherits dark-section color */
.search-highlight   { color: var(--on-dark); }

/* Dim sub text for felt sections — 0.35 vs default 0.55 */
.section-sub--dim   { color: var(--on-dark-dim); }

/* Section compact padding (responsible gambling, methodology changelog) */
.section-compact    { padding: 40px 0; }

/* Mono subtitle (methodology changelog) */
.mono-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--ink4);
  margin-bottom: 18px;
}

/* ═══ 7. Badges & Pills ══════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
}

.badge-green { color: var(--felt); background: var(--felt-bg); margin-bottom: 16px; }
.badge-muted { color: var(--ink4); background: var(--bg2); }
.badge-ai-verified { margin-bottom: 16px; width: fit-content; }
.badge-updated     { margin-bottom: 14px; width: fit-content; }

.rec-pill { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; margin-bottom: 14px; }
.rec-pill.strong   { background: var(--felt-bg); color: var(--felt); }
.rec-pill.moderate { background: var(--brass-bg); color: var(--brass); }
.rec-pill.limited  { background: var(--red-bg); color: var(--red); }

/* ═══ 8. Buttons ══════════════════════════════════════════════════ */

/* Primary CTA — white on dark, used in heroes and felt sections */
.btn-primary,
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--on-dark);
  color: var(--felt);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary:hover,
.hero-cta-primary:hover {
  color: var(--felt);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Semi-filled outline button (light bg + border on dark sections) */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--on-dark);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--on-dark);
}

/* Ghost button (transparent + border on dark sections) */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(244, 239, 230, 0.6);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost .btn-icon { flex-shrink: 0; }

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--on-dark);
}

/* Large button modifier (homepage hero) */
.btn-ghost-lg {
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius);
}

/* ═══ 9. Animations ═══════════════════════════════════════════════ */

@keyframes btf-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--felt3);
  animation: btf-pulse 2s infinite;
}

/* ═══ 10. Callout Quote (shared brass quote box) ═════════════════ */

.callout-quote {
  background: var(--brass-bg);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.callout-quote-avi {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--felt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 1.05rem;
  color: var(--on-dark);
  flex-shrink: 0;
  overflow: hidden;
}
.callout-quote-avi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.callout-quote-body { flex: 1; }

.callout-quote-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brass);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-quote-label::before {
  content: '';
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--brass);
}

.callout-quote-text {
  font-size: 0.88rem;
  color: var(--ink2);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 6px;
}

.callout-quote-cite {
  font-size: 0.75rem;
  color: var(--ink4);
  font-style: normal;
}

@media (min-width: 600px) {
  .callout-quote {
    flex-direction: row;
    gap: 20px;
  }
}

/* Offshore notice now uses shared .offshore-ticker-bar from nav.css */

/* ═══ 12. Related Cards (shared felt section) ═════════════════════ */

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.related-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: block;
  transition: all 0.15s;
}

.related-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.related-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.related-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(244, 239, 230, 0.95);
  margin: 7px 0 5px;
  line-height: 1.3;
}

.related-desc {
  font-size: 0.86rem;
  color: rgba(244, 239, 230, 0.38);
  line-height: 1.5;
}

@media (min-width: 600px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══ 13. Accessibility ═══════════════════════════════════════════ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--felt);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus { top: 0; color: var(--bg); }

/* ═══ 14. Breadcrumb ══════════════════════════════════════════════ */

.breadcrumb {
  font-size: 0.88rem;
  color: var(--ink4);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
}

.breadcrumb a     { color: var(--ink4); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--felt); }
.breadcrumb .sep  { margin: 0 4px; opacity: 0.5; }

/* Dark-section breadcrumb (all hero variants + felt sections) */
.hero .breadcrumb,
.article-hero .breadcrumb,
.archive-hero .breadcrumb,
.page-hero .breadcrumb,
.search-hero .breadcrumb,
.section-felt .breadcrumb {
  font-size: 0.9rem;
  color: var(--on-dark-dim);
  margin-bottom: 24px;
}

.hero .breadcrumb a,
.article-hero .breadcrumb a,
.archive-hero .breadcrumb a,
.page-hero .breadcrumb a,
.search-hero .breadcrumb a,
.section-felt .breadcrumb a {
  color: var(--on-dark-dim);
}

.hero .breadcrumb a:hover,
.article-hero .breadcrumb a:hover,
.archive-hero .breadcrumb a:hover,
.page-hero .breadcrumb a:hover,
.search-hero .breadcrumb a:hover,
.section-felt .breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.65);
}

.hero .breadcrumb .sep,
.article-hero .breadcrumb .sep,
.archive-hero .breadcrumb .sep,
.page-hero .breadcrumb .sep,
.search-hero .breadcrumb .sep {
  margin: 0 8px;
  opacity: 0.3;
}

/* Z-index lift for all hero-variant .wraps */
.article-hero > .wrap,
.archive-hero > .wrap,
.page-hero > .wrap,
.search-hero > .wrap {
  position: relative;
  z-index: 1;
}

/* ═══ 15. Author Bar (shared across reviews & hub pages) ═════════ */

.author-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}

.author-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.author-top {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-bottom: 10px;
}

.author-bar-bottom {
  display: flex;
  align-items: center;
  margin-left: calc(-1 * var(--gutter));
  width: calc(100% + var(--gutter) * 2);
  padding: 16px var(--gutter) 0;
  border-top: 1px solid var(--rule);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--felt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
  color: var(--bg);
  flex-shrink: 0;
}

.author-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-name { font-size: 1rem; font-weight: 600; color: var(--ink); }
.author-name a { color: var(--ink); text-decoration: none; }
.author-name a:hover { color: var(--felt); }
.author-meta { font-size: 0.85rem; color: var(--ink4); }

.author-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  white-space: nowrap;
}

.author-bar-right .author-changelog-btn { margin-left: auto; }

.author-changelog-btn {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--felt);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(27, 58, 45, 0.08);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}

/* ═══ 16. Meta Dates (shared across reviews & hub pages) ══════════ */

.meta-dates {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink3);
  font-family: 'Outfit', sans-serif;
}

.meta-sep { color: var(--ink4); font-size: 0.75rem; display: none; }

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.meta-item-value { font-size: 0.78rem; color: var(--ink3); }

.meta-item-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 2px;
}

/* Changelog drawer styles are in changelog.css (enqueued on singular pages) */

/* ═══ Contact Form 7 ═════════════════════════════════════════════ */

.prose .wpcf7 label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: 20px;
}

.prose .wpcf7 input[type="text"],
.prose .wpcf7 input[type="email"],
.prose .wpcf7 textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  margin-top: 6px;
  outline: none;
  transition: border-color 0.15s;
}

.prose .wpcf7 input[type="text"]:focus,
.prose .wpcf7 input[type="email"]:focus,
.prose .wpcf7 textarea:focus {
  border-color: var(--felt3);
}

.prose .wpcf7 textarea { min-height: 160px; resize: vertical; }

.prose .wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--felt);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 13px 32px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.prose .wpcf7 input[type="submit"]:hover {
  background: var(--felt2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.prose .wpcf7 .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.prose .wpcf7 form.sent .wpcf7-response-output {
  background: var(--felt-bg);
  border-color: var(--felt3);
  color: var(--felt);
}

.prose .wpcf7 form.invalid .wpcf7-response-output,
.prose .wpcf7 form.failed .wpcf7-response-output {
  background: var(--red-bg);
  border-color: var(--red);
  color: var(--red);
}

.prose .wpcf7 .wpcf7-not-valid-tip {
  color: var(--red);
  font-size: 0.82rem;
  margin-top: 4px;
}

/* ═══ Map Embed ══════════════════════════════════════════════════ */

.btf-map-embed iframe {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: var(--radius-sm);
}

/* ═══ Utility Classes ══════════════════════════════════════════════ */

.u-text-center { text-align: center; }
.u-mt-sm { margin-top: 8px; }
.u-mt-md { margin-top: 16px; }
.u-mt-lg { margin-top: 24px; }

/* Hidden row utility (for collapsible sections) */
.rh-cl-hidden { display: none; }
