/* ──────────────────────────────────────────────────────────────
   Blue Lantern Advisory — Insights section
   Shared by /insights/ (listing) and every article page.
   Single source of truth: edit here, every article updates.
   ────────────────────────────────────────────────────────────── */

:root {
  --navy: #002d6b;
  --navy-mid: #003580;
  --navy-deep: #001840;
  --blue: #004791;
  --accent: #004791;
  --accent-light: #1a65b8;
  --gold: #FFD61A;
  --white: #ffffff;
  --off-white: #f2f5fa;
  --gray-100: #e4eaf4;
  --gray-300: #a8b8d4;
  --gray-500: #5a6e90;
  --gray-700: #2e3f62;
  --text: #001e4d;
  --radius: 4px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── NAV (matches index.html / team.html exactly) ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 88px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10,22,40,0.08);
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: 0 4px 24px rgba(10,22,40,0.1); }
.nav-logo { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.nav-logo-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 19px;
  letter-spacing: 0.02em; color: var(--navy); line-height: 1.2;
}
.nav-logo-text span {
  display: block; font-weight: 300; font-size: 10px;
  letter-spacing: 0.14em; color: var(--gray-500);
  text-transform: uppercase; margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--gray-700);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.current { color: var(--accent); }
.nav-cta {
  background: var(--navy); color: var(--white) !important;
  padding: 9px 22px; border-radius: var(--radius);
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--accent); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; z-index: 1001;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  transition: transform 0.3s, opacity 0.3s; border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── SECTION HEADER BAND ── */
.insights-hero {
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 180px 5% 80px;
}
.insights-hero-inner { max-width: 1100px; margin: 0 auto; }
.eyebrow {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.insights-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600; line-height: 1.1;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 20px;
}
.insights-hero p {
  font-size: 17px; font-weight: 300; line-height: 1.65;
  color: rgba(255,255,255,0.7); max-width: 620px;
}

/* ── ARTICLE LISTING ── */
.insights-list { max-width: 1100px; margin: 0 auto; padding: 72px 5% 96px; }
.article-card {
  display: flex; gap: 28px; align-items: flex-start;
  text-decoration: none; color: inherit;
  padding: 32px 0; border-bottom: 1px solid var(--gray-100);
  transition: transform var(--transition);
}
.card-text { flex: 1 1 auto; min-width: 0; }
.card-thumb {
  flex: 0 0 240px; order: 2;          /* image sits to the right of the text */
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); background: var(--gray-100);
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--transition);
}
.article-card:hover .card-thumb img { transform: scale(1.04); }
.article-card:first-child { padding-top: 0; }
.article-card:hover { transform: translateX(6px); }
.article-meta {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 12px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.article-meta .dot { color: var(--gray-300); }
.article-meta .tag { color: var(--accent); }
.article-card h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--navy); margin-bottom: 12px;
  transition: color var(--transition);
}
.article-card:hover h2 { color: var(--accent); }
.article-card p {
  font-size: 16px; font-weight: 300; line-height: 1.65;
  color: var(--gray-700); max-width: 760px;
}
.article-more {
  display: inline-block; margin-top: 14px;
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.insights-empty {
  padding: 40px 0 0; font-size: 16px; font-weight: 300;
  color: var(--gray-500); line-height: 1.7;
}

/* ── ARTICLE PAGE ── */
/* top padding clears the 88px fixed navbar; without it the back link hides under it.
   Side gutters are fixed px, not %, so the measure does not shrink on wide screens. */
.article-wrap { max-width: clamp(800px, 56vw, 900px); margin: 0 auto; padding: 144px 32px 88px; }
.article-back {
  display: inline-block; margin-bottom: 36px;
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-500); text-decoration: none;
  transition: color var(--transition);
}
.article-back:hover { color: var(--accent); }

.article-body { font-size: 18px; line-height: 1.75; color: var(--text); }
.article-body > * + * { margin-top: 1.3em; }
.article-body h2 {
  font-family: 'DM Sans', sans-serif; font-size: 24px; font-weight: 600;
  color: var(--navy); line-height: 1.3; margin-top: 2.2em;
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-size: 19px; font-weight: 600; color: var(--navy);
  line-height: 1.35; margin-top: 1.9em;
}
.article-body p { font-weight: 300; }
.article-body strong { font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--accent-light); }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { font-weight: 300; margin-top: 0.5em; }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 22px; margin-left: 0;
  color: var(--gray-700); font-style: italic;
}
.article-body img {
  max-width: 100%; height: auto; border-radius: var(--radius);
  display: block;
}
.article-body figcaption {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.08em; color: var(--gray-500); margin-top: 8px;
}
.article-body hr { border: none; border-top: 1px solid var(--gray-100); margin: 2.4em 0; }
.article-body code {
  font-family: 'DM Mono', monospace; font-size: 0.9em;
  background: var(--off-white); padding: 2px 6px; border-radius: 3px;
}

/* ── ARTICLE COVER IMAGE ── */
.article-hero { margin: 0 0 44px; }
.article-hero img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  background: var(--gray-100);
}

/* ── CREDIT BLOCK (sits directly under the headline) ── */
.article-credit {
  margin: 0 0 56px;
  padding: 22px 0 24px 24px;
  border-left: 3px solid var(--gold);
}
.credit-label {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 14px;
}
.credit-primary {
  font-size: 16px; font-weight: 600; color: var(--navy); line-height: 1.5;
}
.credit-guest {
  font-size: 16px; font-weight: 400; color: var(--gray-700);
  line-height: 1.5; margin-top: 4px;
}
.credit-guest .credit-who { font-weight: 600; color: var(--navy); }
.article-credit a {
  color: inherit; text-decoration: underline;
  text-decoration-color: var(--gray-300); text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}
.article-credit a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.credit-note {
  margin-top: 20px; font-size: 13px; font-weight: 300;
  line-height: 1.6; color: var(--gray-500);
}

/* ── CROSS-POST LINKS ── */
.article-elsewhere {
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--gray-100);
}
.article-elsewhere .label {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 14px;
}
.elsewhere-links { display: flex; flex-wrap: wrap; gap: 10px; }
.elsewhere-links a {
  display: inline-block; padding: 9px 18px;
  border: 1px solid var(--gray-100); border-radius: var(--radius);
  font-size: 13px; font-weight: 500; color: var(--gray-700);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.elsewhere-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ── FOOTER (matches site) ── */
footer {
  background: #001228; padding: 48px 5%;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-name {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.6); letter-spacing: 0.04em;
}
.footer-links { display: flex; gap: 32px; list-style: none; flex-wrap: wrap; }
.footer-links a {
  font-size: 12px; color: rgba(255,255,255,0.3);
  text-decoration: none; letter-spacing: 0.06em;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-badges { display: flex; gap: 10px; align-items: center; }
.footer-badges img {
  height: 48px; width: auto; display: block; opacity: 0.85;
  background: white; padding: 2px; border-radius: 3px;
}
.footer-copy {
  font-family: 'DM Mono', monospace; font-size: 10px;
  color: rgba(255,255,255,0.2); letter-spacing: 0.1em;
}

/* On large displays the reader sits further back; larger type keeps the
   characters-per-line comfortable even as the column widens. */
@media (min-width: 1600px) {
  .article-body { font-size: 20px; }
  .insights-list, .insights-hero-inner { max-width: 1240px; }
}

/* ── MOBILE (<= 768px) ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed; top: 76px; left: 0; right: 0; z-index: 99;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column; padding: 24px 5%; gap: 0;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 8px 24px rgba(10,22,40,0.08);
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 16px 0; font-size: 16px;
    border-bottom: 1px solid var(--gray-100); width: 100%;
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .nav-cta {
    margin-top: 12px; text-align: center; border: none;
    background: var(--accent); color: var(--white) !important;
    border-radius: var(--radius); padding: 14px 24px;
  }
  /* CRITICAL: do NOT set backdrop-filter, overflow:hidden, transform or filter
     on #navbar here. Each creates a containing block for position:fixed
     descendants, which traps the .nav-links dropdown inside the navbar. */
  nav {
    padding: 0 5%; height: 76px !important;
    backdrop-filter: none !important; overflow: visible;
  }
  nav > * { flex-shrink: 0; }
  .nav-logo { min-width: 0; flex: 1 1 auto; overflow: hidden; gap: 12px !important; }
  .nav-logo-text {
    font-size: 15px; min-width: 0; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
  }
  .nav-logo-text span { font-size: 9px; }
  .nav-logo img { width: 48px !important; height: 48px !important; }
  .nav-toggle { flex-shrink: 0 !important; }

  .article-card { flex-direction: column; gap: 16px; }
  .card-thumb { flex: 0 0 auto; order: 0; width: 100%; }
  .article-hero { margin-bottom: 32px; }
  .insights-hero { padding: 130px 5% 56px; }
  .insights-list { padding: 48px 5% 64px; }
  .article-wrap { padding: 112px 22px 64px; }  /* clears the 76px mobile navbar */
  .article-body { font-size: 16.5px; }
  .article-card:hover { transform: none; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; gap: 18px; }
}
