/* ═══════════════════════════════════════════════════════════════
   finblog-design.css — FinBlog Advisory design layer
   Loaded AFTER site.css (which is the donor theme, colour-converted
   in place to the warm-gold "terminal" palette). This file holds
   signature touches and safety rules only; it must win conflicts.
   Palette anchors: canvas #13100b · gold #e9b84e · warm-white #f3eee4
   ═══════════════════════════════════════════════════════════════ */

:root {
  --fb-gold:       #e9b84e;
  --fb-gold-bright:#f4cf63;
  --fb-ink:        #13100b;
  --fb-warm-white: #f3eee4;
}

/* ── Safety: never fall back to the browser-default blue link ────── */
a { color: inherit; }
main a:not([class]),
.single-body a:not([class]),
.js-article-content a:not([class]) {
  color: var(--fb-gold);
  text-decoration-color: rgba(233, 184, 78, .45);
}
main a:not([class]):hover,
.single-body a:not([class]):hover { color: var(--fb-gold-bright); }

/* ── Signature: gold hairline across the very top of every page ──── */
body.page::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #c2922f 0%, var(--fb-gold) 45%, var(--fb-gold-bright) 100%);
  z-index: 2000;
  pointer-events: none;
}

/* ── Text selection + focus ring in brand gold ──────────────────── */
::selection { background: rgba(233, 184, 78, .28); color: #fff; }
:focus-visible { outline: 2px solid var(--fb-gold); outline-offset: 2px; }

/* ── Warm scrollbar accent (progressive) ────────────────────────── */
* { scrollbar-color: var(--fb-gold) rgba(255,255,255,.06); }

/* ── Header clearance: theme header is 102px fixed but hero padding
   is only 110px (8px air). Compute the offset so air under the fixed
   header is a consistent 96px on every hero type. --ec-air is the ONLY
   knob. Theme changes header min-height at 1024 / 768 breakpoints. ─── */
:root { --ec-hdr: 102px; --ec-air: 96px; }
@media (max-width: 1024px) { :root { --ec-hdr: 92px; } }
@media (max-width: 768px)  { :root { --ec-hdr: 84px; --ec-air: 72px; } }
.hero.hero-inner, .single-hero, .hero-author, .fb-hero {
  padding-top: calc(var(--ec-hdr) + var(--ec-air)) !important;
  min-height: 0 !important; height: auto !important;
}

/* ── .fb-hero (contact stub) restyled for the dark gold theme ────── */
.fb-hero { padding: 150px 0 84px; background: var(--navy-light, #211b12); }
.fb-hero .container { max-width: 1140px; }
.fb-hero > .container > p {
  font-size: 12px; letter-spacing: .17em; font-weight: 700;
  color: var(--fb-gold); margin-bottom: 14px; text-transform: uppercase;
}
.fb-hero h1 {
  font-size: clamp(38px, 5vw, 60px); line-height: 1.1;
  letter-spacing: -.02em; margin-bottom: 18px; color: var(--fb-warm-white);
}
.fb-hero h2 {
  max-width: 700px; font-size: 18px; line-height: 1.6;
  font-weight: 400; color: var(--muted, #a99f8b); margin-bottom: 20px;
}
.fb-hero h2 a { color: var(--fb-gold); }
.fb-hero .legal-contact-info { margin: 28px 0; }
.fb-hero .legal-contact-info h2 { font-size: 15px; color: var(--fb-warm-white); margin-bottom: 8px; }
.fb-hero .legal-contact-info p { max-width: 700px; font-size: 14px; color: var(--muted, #a99f8b); line-height: 1.6; }
@media (max-width: 768px) { .fb-hero { padding: 120px 0 64px; } }

/* ── .fb-grid (homepage 3-up intro) restyled for the dark gold theme ─ */
.fb-grid { padding: 72px 0; background: var(--navy, #13100b); }
.fb-grid .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.fb-grid article { border-top: 2px solid var(--fb-gold); padding-top: 20px; }
.fb-grid b { display: block; font-size: 11px; letter-spacing: .12em; color: var(--fb-gold); margin-bottom: 16px; font-weight: 700; }
.fb-grid h2 { font-size: 28px; margin: 0 0 10px; color: var(--fb-warm-white); }
.fb-grid p { line-height: 1.6; color: var(--muted, #a99f8b); margin: 0; }
@media (max-width: 768px) { .fb-grid { padding: 56px 0; } .fb-grid .container { grid-template-columns: 1fr; gap: 24px; } }
