/*
Theme Name:  FinanceAdvisor USA
Theme URI:   https://financeadvisorusa.com
Description: Custom zero-dependency editorial theme. Built-in SEO, AEO, full schema markup, Core Web Vitals optimised. Looks like a real financial publication, not a WordPress blog.
Version:     3.0.0
Author:      Navneet
Text Domain: financeadvisor
*/

/* ── TOKENS ─────────────────────────────────────── */
:root {
  --cream:    #F8F4EE;
  --cream-2:  #F0EBE1;
  --cream-3:  #E5DDD0;
  --ink:      #1A1108;
  --ink-2:    #3D3022;
  --ink-3:    #6B5B47;
  --red:      #B8272D;
  --red-2:    #8C1C21;
  --gold:     #C9993A;
  --border:   #D8CFBF;
  --border-2: #C4B9A5;
  --serif:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --body:     'Lora', Georgia, serif;
  --sans:     'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); font-family: var(--body); line-height: 1.65; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { font-family: inherit; }

/* ── WRAP ────────────────────────────────────────── */
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px)  { .wrap { padding: 0 1.25rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 1.5rem; } }

/* ── TOP BAR ─────────────────────────────────────── */
.top-bar {
  background: var(--ink);
  color: #7A6A5A;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .4rem 0;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  overflow: hidden;
}
.top-bar-date { color: #5A4A3A; white-space: nowrap; flex-shrink: 0; }
.top-bar-tickers { display: flex; gap: 1rem; overflow: hidden; }
.top-bar-tickers span { white-space: nowrap; }
.top-bar-tickers strong { color: #C4B49A; margin-right: .2rem; }
@media (max-width: 479px) { .top-bar-tickers { display: none; } }

/* ── MASTHEAD ────────────────────────────────────── */
.masthead {
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
  padding: .75rem 0 0;
  position: sticky;
  top: 0;
  z-index: 200;
}

/* Row 1: search/subscribe left | logo center | actions right */
.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
  padding-bottom: .625rem;
}
.masthead-logo { text-align: center; }
.logo-text {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1;
  display: block;
}
.logo-sub {
  font-family: var(--sans);
  font-size: .58rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: .15rem;
  display: block;
}
@media (min-width: 768px)  { .logo-text { font-size: 1.9rem; } .logo-sub { font-size: .62rem; } }
@media (min-width: 1024px) { .logo-text { font-size: 2.1rem; } }

/* Row 2: nav sits below the logo row, centred, with top border */
.masthead-nav {
  display: none;
  justify-content: center;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding: .5rem 0;
}
@media (min-width: 900px) { .masthead-nav { display: flex; } }
.masthead-nav a {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color .15s;
  white-space: nowrap;
  padding: .15rem 0;
}
.masthead-nav a:hover,
.masthead-nav a.current-cat,
.masthead-nav a.current-menu-item { color: var(--red); border-bottom: 1.5px solid var(--red); padding-bottom: 1px; }

.masthead-left  { display: flex; align-items: center; gap: .5rem; justify-content: flex-start; }
.masthead-right { display: flex; align-items: center; gap: .5rem; justify-content: flex-end; }
.nav-subscribe {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .4rem .875rem;
  white-space: nowrap;
  transition: background .2s;
  display: none;
}
@media (min-width: 480px) { .nav-subscribe { display: inline-block; } }
.nav-subscribe:hover { background: var(--red); }

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-2);
  padding: .3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s;
}
.icon-btn:hover { color: var(--red); }
.hamburger { display: flex; }
@media (min-width: 900px) { .hamburger { display: none; } }

/* Search drawer */
.search-drawer { display: none; padding: .625rem 0; border-top: 1px solid var(--border); }
.search-drawer.open { display: block; }
.search-form-wrap { display: flex; gap: .5rem; }
.search-field {
  flex: 1;
  padding: .5rem .75rem;
  border: 1px solid var(--border-2);
  background: var(--cream-2);
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--ink);
  outline: none;
}
.search-field:focus { border-color: var(--ink); }
.search-submit {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: .5rem 1rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.search-submit:hover { background: var(--red); }

/* Mobile nav */
.mobile-nav { display: none; background: var(--ink); padding: 1rem 1.25rem; }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  color: #C4B49A;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color .15s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: #fff; }

/* ── BREAKING STRIP ──────────────────────────────── */
.breaking { background: var(--red); color: #fff; padding: .45rem 0; overflow: hidden; }
.breaking-inner { display: flex; align-items: center; gap: .75rem; }
.breaking-label {
  background: #fff;
  color: var(--red);
  font-family: var(--sans);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  flex-shrink: 0;
}
.breaking-text { font-family: var(--sans); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── BREADCRUMB ──────────────────────────────────── */
.breadcrumbs {
  font-family: var(--sans);
  font-size: .73rem;
  color: var(--ink-3);
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.breadcrumbs a { color: var(--ink-3); transition: color .15s; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span { margin: 0 .35rem; color: var(--border-2); }

/* ── PAGE LAYOUT ─────────────────────────────────── */
.page-layout {
  display: block;
  margin: 1.75rem 0 2.5rem;
}
@media (min-width: 900px) {
  .page-layout { display: grid; grid-template-columns: 1fr 268px; gap: 2rem; align-items: start; }
}
@media (min-width: 1100px) {
  .page-layout { grid-template-columns: 1fr 284px; gap: 2.5rem; }
}
.main-content { min-width: 0; }
.site-sidebar  { min-width: 0; margin-top: 2rem; }
@media (min-width: 900px) { .site-sidebar { margin-top: 0; } }

/* ── SECTION HEADER ──────────────────────────────── */
.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding-bottom: .45rem;
  margin-bottom: 1.1rem;
}
.section-hd-title {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-hd-more {
  font-family: var(--sans);
  font-size: .67rem;
  font-weight: 600;
  color: var(--red);
  transition: opacity .15s;
}
.section-hd-more:hover { opacity: .7; }

/* ── HERO ────────────────────────────────────────── */
.site-hero { padding: 1.25rem 0 0; }
.hero-grid { display: flex; flex-direction: column; border: 1px solid var(--border); }
@media (min-width: 768px)  { .hero-grid { display: grid; grid-template-columns: 1fr 300px; } }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 340px; } }

.hero-main { border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .hero-main { border-bottom: none; border-right: 1px solid var(--border); } }

.hero-img { width: 100%; height: 220px; object-fit: cover; display: block; }
@media (min-width: 480px)  { .hero-img { height: 280px; } }
@media (min-width: 768px)  { .hero-img { height: 360px; } }
@media (min-width: 1024px) { .hero-img { height: 420px; } }

.hero-body { padding: 1.1rem 1.25rem 1.35rem; }
@media (min-width: 768px) { .hero-body { padding: 1.35rem 1.5rem 1.5rem; } }

.hero-kicker {
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .45rem;
}
.hero-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: .6rem;
  letter-spacing: -.02em;
}
@media (min-width: 480px)  { .hero-title { font-size: 1.65rem; } }
@media (min-width: 768px)  { .hero-title { font-size: 1.85rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 2rem; } }

.hero-deck {
  font-family: var(--body);
  font-size: .92rem;
  color: var(--ink-2);
  line-height: 1.65;
  font-style: italic;
  border-left: 2px solid var(--red);
  padding-left: .75rem;
  margin-bottom: .875rem;
  display: none;
}
@media (min-width: 480px) { .hero-deck { display: block; } }

.hero-meta {
  font-family: var(--sans);
  font-size: .72rem;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .6rem;
  align-items: center;
}
.hero-meta-author { font-weight: 600; color: var(--ink-2); }
.meta-dot { color: var(--border-2); }

.hero-sidebar { display: flex; flex-direction: column; }
.hero-story {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: .75rem;
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.hero-story:last-child { border-bottom: none; }
.hero-story:hover { background: var(--cream-2); }
@media (min-width: 768px)  { .hero-story { grid-template-columns: 1fr; } }
@media (min-width: 1024px) { .hero-story { grid-template-columns: 100px 1fr; } }

.hero-story-img { width: 90px; height: 68px; object-fit: cover; }
@media (min-width: 768px)  { .hero-story-img { width: 100%; height: 80px; } }
@media (min-width: 1024px) { .hero-story-img { width: 100px; height: 75px; } }

.hero-story-kicker {
  font-family: var(--sans);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .25rem;
}
.hero-story-title {
  font-family: var(--serif);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: .3rem;
  transition: color .15s;
}
.hero-story:hover .hero-story-title { color: var(--red); }
.hero-story-meta { font-family: var(--sans); font-size: .65rem; color: var(--ink-3); }

/* ── CARDS ───────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (min-width: 540px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card { border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.card:hover .card-title { color: var(--red); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: .75rem; }
.card-kicker {
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .3rem;
}
.card-title {
  font-family: var(--serif);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: .45rem;
  transition: color .15s;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--red); }
.card-excerpt {
  font-family: var(--body);
  font-size: .82rem;
  color: var(--ink-3);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: .5rem;
  display: none;
}
@media (min-width: 640px) { .card-excerpt { display: block; } }
.card-meta { font-family: var(--sans); font-size: .68rem; color: var(--ink-3); display: flex; gap: .5rem; flex-wrap: wrap; }
.card-meta-author { font-weight: 600; color: var(--ink-2); }

/* Feature + list split */
.split-section { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .split-section { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.feature-card .card-img { aspect-ratio: 4/3; }
.feature-card .card-title { font-size: 1.15rem; }

.list-stack { display: flex; flex-direction: column; }
.list-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .625rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.list-card:last-child { border-bottom: none; }
.list-card:hover .list-card-title { color: var(--red); }
.list-card-img { width: 72px; height: 54px; object-fit: cover; flex-shrink: 0; }
.list-card-kicker { font-family: var(--sans); font-size: .58rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .18rem; }
.list-card-title { font-family: var(--serif); font-size: .86rem; font-weight: 600; line-height: 1.3; color: var(--ink); margin-bottom: .2rem; transition: color .15s; }
.list-card-title a { color: inherit; }
.list-card-meta { font-family: var(--sans); font-size: .63rem; color: var(--ink-3); }

/* ── ARTICLE ─────────────────────────────────────── */
.article-kicker {
  font-family: var(--sans);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}
.article-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -.025em;
  margin-bottom: .75rem;
}
@media (min-width: 640px) { .article-title { font-size: 2rem; } }
@media (min-width: 900px) { .article-title { font-size: 2.4rem; } }

.article-deck {
  font-family: var(--body);
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: .875rem;
  border-left: 2px solid var(--red);
  padding-left: .75rem;
}
@media (min-width: 640px) { .article-deck { font-size: 1.1rem; } }

.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  padding: .875rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
  font-family: var(--sans);
}
.byline-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.byline-name { font-size: .83rem; font-weight: 600; color: var(--ink); }
.byline-role { font-size: .7rem; color: var(--ink-3); }
.byline-date { font-size: .75rem; color: var(--ink-3); margin-left: auto; }
.byline-readtime { font-size: .68rem; color: var(--ink-3); background: var(--cream-2); padding: .12rem .45rem; }

.article-hero-img { width: 100%; max-height: 460px; object-fit: cover; margin-bottom: .4rem; }
.img-caption { font-family: var(--sans); font-size: .68rem; color: var(--ink-3); padding-left: .5rem; border-left: 2px solid var(--border); margin-bottom: 1.25rem; }

/* Key point */
.key-point {
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: .875rem 1rem;
  margin: 1.5rem 0;
}
.key-point-label {
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .35rem;
}
.key-point p { font-family: var(--sans); font-size: .88rem; font-weight: 500; color: var(--ink); margin: 0; line-height: 1.55; }

/* Definition block (AEO) */
.definition-block {
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--ink);
  padding: .875rem 1rem;
  margin: 1.5rem 0;
}
.def-label { font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .35rem; }
.definition-block p { font-family: var(--body); font-size: .9rem; color: var(--ink-2); line-height: 1.6; margin: 0; }

/* Article body */
.article-body { font-family: var(--body); font-size: 1.02rem; line-height: 1.82; color: var(--ink-2); }
.article-body p { margin-bottom: 1.2rem; }
.article-body h2 { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); margin: 1.75rem 0 .6rem; letter-spacing: -.01em; }
.article-body h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); margin: 1.35rem 0 .45rem; }
.article-body ul { padding-left: 1.35rem; margin-bottom: 1.1rem; list-style: disc; }
.article-body ol { padding-left: 1.35rem; margin-bottom: 1.1rem; }
.article-body li { margin-bottom: .35rem; }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--red-2); }
.article-body blockquote {
  border-left: 3px solid var(--red);
  padding: .7rem 1rem;
  margin: 1.5rem 0;
  background: var(--cream-2);
  font-style: italic;
  color: var(--ink-2);
  font-size: .95rem;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .88rem; }
.article-body th { background: var(--cream-3); font-family: var(--sans); font-size: .75rem; font-weight: 600; padding: .55rem .75rem; text-align: left; border: 1px solid var(--border); color: var(--ink-2); }
.article-body td { padding: .55rem .75rem; border: 1px solid var(--border); color: var(--ink-2); }
.article-body tr:nth-child(even) td { background: var(--cream-2); }

/* FAQ section */
.faq-section { margin: 2rem 0; padding: 1.25rem; background: var(--cream-2); border: 1px solid var(--border); }
.faq-section-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: .75rem 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-question {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-question::after { content: '+'; font-size: 1.2rem; font-weight: 400; color: var(--ink-3); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { font-family: var(--body); font-size: .88rem; color: var(--ink-3); line-height: 1.7; margin-top: .5rem; display: none; }
.faq-item.open .faq-answer { display: block; }

/* Tags */
.post-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.25rem 0; }
.tag {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .25rem .625rem;
  border: 1px solid var(--border);
  color: var(--ink-3);
  background: var(--cream);
  transition: .15s;
}
.tag:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Author card */
.author-card { display: flex; gap: .875rem; padding: 1.1rem; background: var(--cream-2); border: 1px solid var(--border); margin: 1.25rem 0; }
.author-card-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-card-name { font-family: var(--serif); font-size: .95rem; font-weight: 700; color: var(--ink); }
.author-card-role { font-family: var(--sans); font-size: .72rem; color: var(--red); font-weight: 600; margin: .12rem 0 .3rem; }
.author-card-bio  { font-family: var(--body); font-size: .82rem; color: var(--ink-3); font-style: italic; line-height: 1.6; }

/* Disclaimer */
.disclaimer-box { background: var(--cream-2); border: 1px solid var(--border); padding: .875rem 1rem; font-family: var(--sans); font-size: .73rem; color: var(--ink-3); line-height: 1.65; margin-top: 1.5rem; }

/* ── TOC ─────────────────────────────────────────── */
.toc-box { background: var(--cream-2); border: 1px solid var(--border); padding: 1rem 1.1rem; margin: 1.5rem 0; }
.toc-title { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .625rem; }
.toc-box ol { padding-left: 1.1rem; }
.toc-box li { margin-bottom: .3rem; }
.toc-box a { font-family: var(--sans); font-size: .82rem; color: var(--ink-2); }
.toc-box a:hover { color: var(--red); }

/* ── SIDEBAR ─────────────────────────────────────── */
.sw { margin-bottom: 1.5rem; }
.sw-title { font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: .4rem; margin-bottom: .875rem; }

/* Market widget */
.market-widget { background: var(--ink); padding: .875rem 1rem; margin-bottom: 1.5rem; }
.market-widget-title { font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: #6A5A4A; margin-bottom: .75rem; padding-bottom: .4rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.mkt-row { display: flex; justify-content: space-between; align-items: center; padding: .32rem 0; border-bottom: 1px solid rgba(255,255,255,.05); font-family: var(--sans); font-size: .78rem; }
.mkt-row:last-of-type { border-bottom: none; }
.mkt-name { color: #8A7A6A; }
.mkt-val  { font-weight: 600; color: var(--cream); }
.mkt-chg  { font-size: .68rem; font-weight: 600; }
.mkt-up   { color: #4ade80; }
.mkt-dn   { color: #f87171; }
.market-note { font-family: var(--sans); font-size: .62rem; color: #3A2A1A; margin-top: .6rem; text-align: right; }

/* Topic list */
.topic-row { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--border); font-family: var(--sans); font-size: .82rem; cursor: pointer; transition: color .15s; }
.topic-row:last-child { border-bottom: none; }
.topic-row:hover { color: var(--red); }
.topic-name { font-weight: 500; }
.topic-count { font-size: .68rem; color: var(--ink-3); background: var(--cream-2); padding: .08rem .45rem; }

/* Recent */
.recent-row { display: grid; grid-template-columns: 60px 1fr; gap: .625rem; padding: .65rem 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.recent-row:last-child { border-bottom: none; }
.recent-row:hover .recent-title { color: var(--red); }
.recent-thumb { width: 60px; height: 46px; object-fit: cover; }
.recent-title { font-family: var(--serif); font-size: .82rem; font-weight: 600; line-height: 1.3; color: var(--ink); margin-bottom: .18rem; transition: color .15s; }
.recent-title a { color: inherit; }
.recent-date  { font-family: var(--sans); font-size: .65rem; color: var(--ink-3); }

/* Newsletter */
.nl-widget { background: var(--cream-2); border: 1px solid var(--border); padding: 1.1rem; margin-bottom: 1.5rem; }
.nl-title { font-family: var(--serif); font-size: 1rem; font-weight: 700; margin-bottom: .3rem; color: var(--ink); }
.nl-sub   { font-family: var(--body); font-size: .8rem; font-style: italic; color: var(--ink-3); line-height: 1.55; margin-bottom: .75rem; }
.nl-input { width: 100%; padding: .45rem .7rem; border: 1px solid var(--border-2); background: var(--cream); font-family: var(--sans); font-size: .85rem; color: var(--ink); margin-bottom: .45rem; outline: none; }
.nl-input:focus { border-color: var(--ink); }
.nl-btn { width: 100%; background: var(--ink); color: var(--cream); border: none; padding: .55rem; font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.nl-btn:hover { background: var(--red); }
.nl-note { font-family: var(--sans); font-size: .63rem; color: var(--ink-3); margin-top: .4rem; }

/* Sidebar disclaimer */
.sidebar-disclaimer { border-top: 1px solid var(--border); padding-top: .75rem; font-family: var(--sans); font-size: .68rem; color: var(--ink-3); line-height: 1.65; }

/* ── PAGINATION ──────────────────────────────────── */
.pagination { display: flex; gap: .4rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  font-family: var(--sans); font-size: .82rem; color: var(--ink-3);
  transition: .15s;
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--ink); color: var(--cream); border-color: var(--ink); font-weight: 600; }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer { background: var(--ink); color: #C4B49A; margin-top: 3rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.25rem;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; } }

.footer-brand-col { grid-column: 1 / -1; }
@media (min-width: 640px) { .footer-brand-col { grid-column: auto; } }

.footer-brand { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--cream); margin-bottom: .3rem; }
.footer-tagline { font-family: var(--body); font-size: .8rem; color: #9A8A78; font-style: italic; line-height: 1.6; max-width: 240px; }
.footer-heading { font-family: var(--sans); font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #C4B49A; margin-bottom: .75rem; padding-bottom: .35rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-links li { margin-bottom: .38rem; }
.footer-links a { font-family: var(--sans); font-size: .8rem; color: #9A8A78; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-disc { padding: 1rem 0; font-family: var(--sans); font-size: .67rem; color: #7A6A58; line-height: 1.7; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .35rem; padding: .875rem 0; font-family: var(--sans); font-size: .7rem; color: #6A5A48; }

/* ── SEARCH RESULTS ──────────────────────────────── */
.search-header { margin-bottom: 1.5rem; }
.search-header h1 { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.search-header p { font-family: var(--sans); font-size: .85rem; color: var(--ink-3); margin-top: .35rem; }
.search-results-form { display: flex; gap: .5rem; margin-top: 1rem; }

/* ── 404 ────────────────────────────────────────── */
.error-404 { text-align: center; padding: 4rem 1rem; }
.error-404-num { font-family: var(--serif); font-size: 5rem; font-weight: 700; color: var(--cream-3); line-height: 1; }
.error-404-msg { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin: .5rem 0; }
.error-404-sub { font-family: var(--body); font-size: .95rem; color: var(--ink-3); margin-bottom: 1.5rem; }
.btn { display: inline-block; background: var(--ink); color: var(--cream); font-family: var(--sans); font-size: .82rem; font-weight: 600; padding: .6rem 1.25rem; transition: background .2s; }
.btn:hover { background: var(--red); }

/* ── DARK MODE ───────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --cream:    #0F0D0A;
    --cream-2:  #171310;
    --cream-3:  #211D18;
    --ink:      #EDE8E0;
    --ink-2:    #C8BFB0;
    --ink-3:    #8A7D6A;
    --border:   #2A2420;
    --border-2: #3A3028;
  }
  .masthead { background: #0F0D0A; }
  .market-widget { background: #070503; }
  .logo-text { color: var(--ink); }
  .site-footer { background: #070503; }
  .top-bar { background: #070503; }
}

/* ── PRINT ───────────────────────────────────────── */
@media print {
  .masthead, .top-bar, .breaking, .site-sidebar, .site-footer, .faq-section, .nl-widget { display: none; }
  .page-layout { display: block; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .article-title { font-size: 20pt; }
}

/* ── ACCESSIBILITY ───────────────────────────────── */
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── STATIC PAGES ────────────────────────────────────────────── */
.static-page .article-body { max-width: 720px; }
.static-page .article-body h2 { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.static-page .article-body h2:first-of-type { border-top: none; padding-top: 0; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--ink) !important; outline: none;
}
