/* ============================================================
   The Diamond Codex — style.css
   Version 1.0 — Session 2
   Warm ivory & gold palette. Locked. Do not change.
   ============================================================ */

/* --- Variables --- */
:root {
  --bg:        #F7F4F0;
  --white:     #FFFFFF;
  --charcoal:  #1C1917;
  --gold:      #C9A96E;
  --gold-dark: #8B6914;
  --gold-tint: #EDE0CC;
  --border:    #E8E0D0;
  --nav-border:#EDE8E0;
  --muted:     #6B6460;
  --muted-2:   #9C9490;
  --surface:   #F0EBE3;
  --link:      #8B6914;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(28,25,23,.06), 0 2px 8px rgba(28,25,23,.04);
  --shadow-md: 0 2px 8px rgba(28,25,23,.08), 0 6px 20px rgba(28,25,23,.06);
  --max-w:     860px;
  --article-w: 720px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Typography --- */
h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 600; line-height: 1.2; letter-spacing: -.5px; color: var(--charcoal); }
h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 600; line-height: 1.3; letter-spacing: -.3px; color: var(--charcoal); }
h3 { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--charcoal); }
h4 { font-size: 15px; font-weight: 600; color: var(--charcoal); }
p  { font-size: 15px; line-height: 1.75; color: var(--charcoal); margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.article-container { max-width: var(--article-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  letter-spacing: -.5px;
}
.nav-logo-text { font-size: 14px; font-weight: 600; color: var(--charcoal); line-height: 1.2; }
.nav-logo-text small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--charcoal); background: var(--gold-tint); }
.nav-links a.active { color: var(--gold-dark); font-weight: 500; }
.nav-cta {
  background: var(--gold);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-dark); text-decoration: none; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: .2s; }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  flex-direction: column;
  padding: 24px;
  gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.nav-drawer a.di { font-size: 17px; font-weight: 500; color: var(--charcoal); padding: 12px 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.nav-close { background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--muted); }
.mt-24 { margin-top: 24px; }

@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  border: none;
  font-family: inherit;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-dark); text-decoration: none; color: var(--white); }
.btn-secondary { background: var(--white); color: var(--gold-dark); border: 1.5px solid var(--gold); }
.btn-secondary:hover { background: var(--gold-tint); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--white); color: var(--charcoal); text-decoration: none; }
.btn-sm { font-size: 12px; padding: 7px 14px; }
.btn-lg { font-size: 15px; padding: 13px 28px; }

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.badge-gold { background: var(--gold-tint); color: var(--gold-dark); }
.badge-white { background: var(--white); color: var(--gold-dark); border: 1px solid var(--border); }
.badge-muted { background: var(--surface); color: var(--muted); }
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 22px 24px; }
.card-header {
  background: var(--charcoal);
  padding: 16px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card-header-gold { background: var(--gold); }
.card-title-light { color: var(--white); font-size: 15px; font-weight: 600; line-height: 1.3; }
.card-sub-light { color: rgba(255,255,255,.55); font-size: 12px; margin-top: 3px; }

/* Section card (hub page) */
.section-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  transition: box-shadow .2s, border-color .15s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.section-card:hover { box-shadow: var(--shadow-md); border-color: var(--gold); text-decoration: none; }
.section-card-icon {
  width: 40px; height: 40px;
  background: var(--gold-tint);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.section-card-num { font-size: 10px; font-weight: 600; color: var(--gold-dark); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.section-card-title { font-size: 15px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; }
.section-card-desc { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.section-card-count { font-size: 11px; color: var(--muted-2); }

/* ============================================================
   ARTICLE LAYOUT
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.article-layout > * { min-width: 0; }
@media (max-width: 800px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-sidebar { order: -1; }
}
.article-body h2 { margin: 2rem 0 .8rem; }
.article-body h3 { margin: 1.5rem 0 .6rem; }
.article-body p  { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin: .8rem 0 1rem 1.4rem; }
.article-body li { font-size: 15px; line-height: 1.7; margin-bottom: .3rem; color: var(--charcoal); }

/* Quick answer box */
.quick-answer {
  background: var(--gold-tint);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin-bottom: 2rem;
  font-size: 14px;
  line-height: 1.7;
  color: var(--charcoal);
}
.quick-answer strong { color: var(--gold-dark); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; display: block; margin-bottom: 6px; }

/* Definition box */
.definition-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 1.5rem 0;
}
.definition-box .def-term { font-size: 13px; font-weight: 700; color: var(--gold-dark); margin-bottom: 6px; }
.definition-box p { font-size: 13.5px; margin: 0; }

/* Callout */
.callout {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 1.5rem 0;
  font-size: 14px;
  line-height: 1.65;
}
.callout-info { background: #EFF6FF; border-left: 3px solid #3B82F6; color: #1E3A5F; }
.callout-gold { background: var(--gold-tint); border-left: 3px solid var(--gold); color: var(--charcoal); }
.callout-warn { background: #FFFBEB; border-left: 3px solid #D97706; color: #78350F; }

/* Article sidebar */
.article-sidebar { position: sticky; top: 80px; }
.sidebar-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.sidebar-block h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.sidebar-block ul { list-style: none; margin: 0; padding: 0; }
.sidebar-block ul li { margin-bottom: 4px; }
.sidebar-block ul li a { font-size: 13px; color: var(--muted); padding: 3px 0; display: block; transition: color .15s; }
.sidebar-block ul li a:hover { color: var(--gold-dark); text-decoration: none; }
.sidebar-block ul li strong { font-size: 13px; color: var(--charcoal); }
.sidebar-cta { background: var(--charcoal); border-color: var(--charcoal); }
.sidebar-cta h3 { color: rgba(255,255,255,.5); }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 14px; line-height: 1.5; }

/* Article hero */
.article-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 40px;
  text-align: center;
}
.article-hero .breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.article-hero .breadcrumb a { color: var(--muted); }
.article-hero .breadcrumb span { margin: 0 6px; color: var(--muted-2); }
.article-hero h1 { max-width: 620px; margin: 0 auto 12px; }
.article-hero .article-intro { font-size: 15px; color: var(--muted); max-width: 560px; margin: 0 auto 20px; line-height: 1.7; }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.article-meta span { font-size: 12px; color: var(--muted-2); display: flex; align-items: center; gap: 4px; }

/* Chapter nav */
.chapter-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 90;
  overflow-x: auto;
  scrollbar-width: none;
}
.chapter-nav::-webkit-scrollbar { display: none; }
.chapter-nav-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 24px;
  max-width: 1040px;
  margin: 0 auto;
  white-space: nowrap;
}
.chapter-nav-inner a {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 12px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.chapter-nav-inner a:hover { color: var(--charcoal); }
.chapter-nav-inner a.active { color: var(--gold-dark); border-bottom-color: var(--gold); font-weight: 500; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 480px; }
thead { background: var(--charcoal); }
thead th { color: var(--white); font-weight: 600; padding: 12px 16px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--gold-tint); }
tbody td { padding: 11px 16px; color: var(--charcoal); line-height: 1.5; vertical-align: top; }
tbody td:first-child { font-weight: 500; }

/* ============================================================
   SVG DIAGRAMS
   ============================================================ */
.svg-wrap { overflow-x: auto; margin: 2rem 0; }
.svg-wrap svg { min-width: 560px; }
.diagram-caption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; font-style: italic; }

/* ============================================================
   GLOSSARY
   ============================================================ */
.glossary-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 32px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.glossary-alpha-nav a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: all .15s;
  text-decoration: none;
}
.glossary-alpha-nav a:hover { background: var(--gold-tint); color: var(--gold-dark); }
.glossary-alpha-nav a.has-terms { color: var(--charcoal); }

.glossary-letter-group { margin-bottom: 40px; scroll-margin-top: 120px; }
.glossary-letter-head {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  border-bottom: 2px solid var(--gold-tint);
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.glossary-term {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.glossary-term:last-child { border-bottom: none; }
.glossary-term-name { font-size: 15px; font-weight: 600; color: var(--charcoal); margin-bottom: 2px; }
.glossary-term-also { font-size: 11px; color: var(--muted-2); margin-bottom: 6px; }
.glossary-term-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--gold-tint);
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.glossary-term-def { font-size: 13.5px; color: var(--charcoal); line-height: 1.7; }
.glossary-term-link { font-size: 12px; color: var(--link); margin-top: 4px; display: inline-block; }

/* ============================================================
   SEARCH
   ============================================================ */
.search-wrap { position: relative; }
.search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--charcoal);
  outline: none;
  transition: border-color .15s;
}
.search-input:focus { border-color: var(--gold); }
.search-input::placeholder { color: var(--muted-2); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 16px; pointer-events: none; }
.search-results { margin-top: 8px; }
.search-result-item {
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-decoration: none;
  display: block;
}
.search-result-item:hover { border-color: var(--gold); background: var(--gold-tint); text-decoration: none; }
.search-result-title { font-size: 14px; font-weight: 500; color: var(--charcoal); }
.search-result-section { font-size: 11px; color: var(--muted); margin-top: 2px; }
.search-empty { font-size: 13px; color: var(--muted); padding: 12px 0; }

/* ============================================================
   HOME PAGE HERO
   ============================================================ */
.home-hero {
  padding: 72px 24px 64px;
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.home-hero .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
  display: block;
}
.home-hero h1 { max-width: 600px; margin: 0 auto 16px; }
.home-hero .hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  flex-wrap: wrap;
}
.hero-stat {
  padding: 0 32px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-val { font-size: 24px; font-weight: 700; color: var(--charcoal); display: block; }
.hero-stat-lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 480px) {
  .hero-stat { padding: 12px 20px; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-stat:last-child { border-bottom: none; }
}

/* ============================================================
   SECTION GRID (hub & home)
   ============================================================ */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.section-grid > * { min-width: 0; }
.section-grid-3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.section-grid-3 > * { min-width: 0; }

/* ============================================================
   FEATURED ARTICLE STRIP
   ============================================================ */
.featured-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.featured-strip > * { min-width: 0; }
@media (max-width: 700px) { .featured-strip { grid-template-columns: 1fr; } }

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none;
  display: block;
  transition: box-shadow .2s, border-color .15s;
  color: inherit;
}
.article-card:hover { box-shadow: var(--shadow-md); border-color: var(--gold); text-decoration: none; }
.article-card .card-section { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gold-dark); margin-bottom: 8px; }
.article-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.article-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
.article-card.featured h3 { font-size: 20px; }
.article-card.featured p { font-size: 14px; }

/* ============================================================
   REGION / SOURCE DIRECTORY (the "mills pages")
   ============================================================ */
.source-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  transition: box-shadow .2s;
}
.source-card:hover { box-shadow: var(--shadow-md); }
.source-card-head {
  background: var(--charcoal);
  padding: 16px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.source-name { color: var(--white); font-size: 16px; font-weight: 700; line-height: 1.3; }
.source-est { color: rgba(255,255,255,.4); font-size: 11px; margin-top: 3px; }
.source-loc-badge {
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .03em;
}
.source-body { padding: 20px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .source-body { grid-template-columns: 1fr; } }
.source-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); margin-bottom: 10px; }
.source-detail { font-size: 13px; color: var(--charcoal); line-height: 1.7; }
.source-contact-line { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 7px; font-size: 13px; color: var(--charcoal); line-height: 1.5; }
.source-contact-icon { color: var(--gold); flex-shrink: 0; margin-top: 1px; font-size: 14px; }
.source-contact-line a { color: var(--charcoal); font-weight: 500; }
.source-contact-line a:hover { color: var(--gold-dark); }
.source-cert { display: inline-flex; align-items: center; gap: 4px; background: #D1FAE5; color: #065F46; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin: 2px; letter-spacing: .03em; }
.region-header { display: flex; align-items: center; gap: 12px; margin: 40px 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--charcoal); }
.region-badge { background: var(--charcoal); color: var(--gold); font-size: 12px; font-weight: 800; padding: 6px 14px; border-radius: var(--radius-sm); }
.region-title { font-size: 20px; font-weight: 700; color: var(--charcoal); }
.source-index { background: var(--charcoal); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 28px; }
.source-index h3 { color: var(--white); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.source-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px; }
.source-index-link { color: rgba(255,255,255,.6); font-size: 12px; padding: 3px 0; text-decoration: none; transition: color .15s; }
.source-index-link:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid > * { min-width: 0; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 440px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.65; margin-top: 12px; margin-bottom: 16px; }
.footer-contact { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.8; }
.footer-contact a { color: rgba(255,255,255,.45); }
.footer-col h5 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.55); transition: color .15s; text-decoration: none; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.3); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.3); font-size: 12px; }
.footer-bottom a:hover { color: var(--gold); }

/* ============================================================
   SHARE STRIP
   ============================================================ */
.share-strip { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.share-strip span { font-size: 13px; color: var(--muted); }
.share-btn { font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px; text-decoration: none; border: 1px solid var(--border); color: var(--muted); transition: all .15s; }
.share-btn:hover { border-color: var(--gold); color: var(--gold-dark); text-decoration: none; }
.share-btn.whatsapp:hover { background: #25D366; border-color: #25D366; color: var(--white); }
.share-btn.linkedin:hover { background: #0A66C2; border-color: #0A66C2; color: var(--white); }

/* ============================================================
   UTILITY
   ============================================================ */
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold-dark); }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.source-note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 28px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.source-note strong { color: var(--charcoal); }
.verify-note { background: #FFFBEB; border-left: 3px solid #D97706; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 12px 16px; margin-bottom: 24px; font-size: 13px; color: #78350F; line-height: 1.6; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; align-items: center; background: #25D366; border-radius: 50px; text-decoration: none; overflow: hidden; transition: box-shadow .25s; box-shadow: 0 4px 16px rgba(37,211,102,.35); }
.wa-float:hover { box-shadow: 0 6px 24px rgba(37,211,102,.5); }
.wa-float-icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wa-float-label { max-width: 0; overflow: hidden; white-space: nowrap; font-family: inherit; font-size: 13px; font-weight: 600; color: #fff; transition: max-width .3s ease, padding-right .3s ease; padding-right: 0; }
.wa-float:hover .wa-float-label { max-width: 140px; padding-right: 16px; }
@media (max-width: 600px) { .wa-float-label { display: none; } .wa-float { bottom: 18px; right: 18px; } }

/* ============================================================
   AD SLOTS
   Standard placements on every article page.
   Empty by default — drop ad code inside when ready.
   Layout is pre-reserved so page never jumps when ads load.
   ============================================================ */
.ad-slot {
  width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin: 28px 0;
  overflow: hidden;
  background: transparent;
}
.ad-slot:empty {
  display: none;
}
.ad-slot-hero-below {
  min-height: 90px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  margin: 0 0 32px;
  border-radius: 0;
}
.ad-slot-mid {
  min-height: 250px;
  background: var(--surface);
  border: 1px dashed var(--border);
}
.ad-slot-sidebar {
  min-height: 250px;
  width: 100%;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.ad-slot-above-footer {
  min-height: 90px;
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 16px 0;
  margin: 0;
  border-radius: 0;
}
.ad-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-2);
  text-align: center;
  display: block;
  margin-bottom: 4px;
}

/* ============================================================
   EMOTIONAL OPENING / STORY LEDE
   Used at the top of articles before technical content.
   ============================================================ */
.story-lede {
  font-size: 16px;
  line-height: 1.85;
  color: var(--charcoal);
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding: 16px 20px 16px 24px;
  margin-bottom: 2rem;
  background: var(--gold-tint);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.story-lede cite {
  display: block;
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
  margin-top: 10px;
  font-weight: 500;
}
