/* Shared article page styles — Roamler Blog */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #060d1f; --navy-mid: #0a1628;
  --orange: #ff6738; --orange-dk: #e8551f;
  --off-white: #f7f8fa; --ink: #111827;
  --ink-mid: #3a4760; --ink-soft: #6b7a99;
  --border: rgba(10,22,40,.10); --border-md: rgba(10,22,40,.18);
  --radius: 8px; --radius-lg: 16px; --radius-xl: 24px;
  --shadow-md: 0 8px 32px rgba(10,22,40,.10);
  --shadow-lg: 0 20px 60px rgba(10,22,40,.15);
  /* Ordinal chart ramp — one hue (orange), 3 monotone steps + a neutral
     "other/none" gray for a 4th non-ordinal state. Validated with the
     dataviz skill's --ordinal check (adjacent ΔL >= 0.06, light-end
     contrast >= 2:1 on white). Darkest = strongest position on the
     scale; --orange itself is the ramp's lightest step. */
  --chart-ord-1: #9c3413; --chart-ord-2: #d64d1a;
  --chart-neutral: #c7cfdc;
}
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; font-size: 16px; line-height: 1.65; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1,h2,h3,h4 { font-family: 'Montserrat', sans-serif; line-height: 1.15; }
.hi { color: var(--orange); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ── NAV ── */
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; height: 68px; max-width: 1160px; margin: 0 auto; padding: 0 48px; }
.nav-logo { margin-right: 40px; flex-shrink: 0; }
.nav-logo img { height: 28px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; flex: 1; list-style: none; }
.nav-links a { display: block; padding: 0 16px; height: 68px; line-height: 68px; font-size: 14.5px; color: var(--ink-mid); text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav-links a:hover { color: var(--orange); }
.nav-links .has-dot::after { content: ' ▾'; font-size: 10px; opacity: .5; }
.nav-links .has-dropdown { position: relative; }
.nav-dropdown { display: none; position: absolute; top: calc(100% - 1px); left: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 8px 32px rgba(10,22,40,.10); min-width: 200px; padding: 8px 0; z-index: 300; list-style: none; }
.nav-links .has-dropdown:hover .nav-dropdown { display: block; }
.nav-dropdown a { display: block; height: auto; line-height: 1.4; padding: 10px 20px; font-size: 14px; color: var(--ink-mid); white-space: nowrap; }
.nav-dropdown a:hover { color: var(--orange); background: var(--off-white); }
.nav-dropdown-group:not(:last-child) { border-bottom: 1px solid var(--border); margin-bottom: 6px; padding-bottom: 6px; }
.nav-dropdown-parent { font-weight: 700; color: var(--navy); }
.nav-dropdown-sub { list-style: none; }
.nav-dropdown-sub a { padding-left: 32px; font-size: 13px; color: var(--ink-soft); }
.nav-sep { width: 1px; height: 24px; background: var(--border-md); margin: 0 12px; flex-shrink: 0; }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.nav-login { font-size: 14px; color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.nav-login:hover { color: var(--ink); }
.btn-nav { background: var(--orange); color: #fff; padding: 10px 20px; border-radius: var(--radius); font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, transform .1s; }
.btn-nav:hover { background: var(--orange-dk); transform: translateY(-1px); }
.nav-hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; margin-left: auto; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
@media (max-width: 1000px) { .nav-links, .nav-sep, .nav-login { display: none; } .nav-hamburger { display: flex; } .nav-inner { padding: 0 20px; } }

/* ── ARTICLE HERO ── */
.article-hero { background: radial-gradient(ellipse 70% 60% at 10% 50%, #0b1a3d 0%, transparent 65%), radial-gradient(ellipse 55% 70% at 85% 20%, #0c1f52 0%, transparent 60%), var(--navy); padding: 42px 0 58px; position: relative; overflow-x: clip; overflow-y: visible; }
.article-hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; z-index: 0; }
.article-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: center; }
.article-hero-text { min-width: 0; }
.article-hero-img { position: relative; display: flex; align-items: center; justify-content: flex-end; transform: translateX(-32px); }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.article-hero-img-back { position: absolute; width: 200px; height: 148px; border-radius: 18px; background: #5f94ff; right: -32px; bottom: -24px; z-index: 0; }
.article-hero-img-card { position: relative; z-index: 1; width: 272px; height: 182px; border-radius: 18px; overflow: hidden; background: #0a1628; box-shadow: 0 20px 56px rgba(0,0,0,.55); flex-shrink: 0; animation: hero-float 2.8s ease-in-out infinite; }
.article-hero-img-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.88; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 13px; color: rgba(255,255,255,.4); }
.breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: rgba(255,255,255,.85); }
.article-cat-badge { display: inline-block; font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; margin-bottom: 20px; }
.article-hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 28px; }
.article-byline { display: flex; align-items: center; gap: 14px; }
.author-avatar-hero { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.85); flex-shrink: 0; }
.byline-name { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); display: block; }
.byline-meta { font-size: 13px; color: rgba(255,255,255,.45); display: block; }

/* ── HERO BACK RECT: category colours ── */
.article-hero-img-back.back-execution { background: #6a0f3a; }
.article-hero-img-back.back-horeca    { background: #2d9a75; }
.article-hero-img-back.back-consumer  { background: #57d6f4; }
.article-hero-img-back.back-online    { background: #7c4dff; }
.article-hero-img-back.back-tech      { background: #1e3a6e; }
.article-hero-img-back.back-academy   { background: #d97706; }
.article-hero-img-back.back-crowd     { background: #e080a0; }
.article-hero-img-back.back-company   { background: #1e3a6e; }

/* ── CATEGORY BADGE COLOURS ── */
.cat-execution { background: rgba(106,15,58,.2); color: #9e1555; }
.cat-horeca    { background: rgba(45,154,117,.2); color: #5ec9a0; }
.cat-consumer  { background: rgba(87,214,244,.2); color: #57d6f4; }
.cat-online    { background: rgba(124,77,255,.2); color: #a080ff; }
.cat-tech      { background: rgba(255,255,255,.12); color: rgba(255,255,255,.75); }
.cat-academy   { background: rgba(217,119,6,.2); color: #f4b43b; }
.cat-crowd     { background: rgba(224,95,160,.2); color: #ef8fcb; }
.cat-company   { background: rgba(30,58,110,.2); color: #6f94d6; }

/* ── ARTICLE LAYOUT ── */
.article-main { padding: 64px 0 80px; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 72px; align-items: start; }
.article-content { min-width: 0; }

/* ── ARTICLE CONTENT TYPOGRAPHY ── */
.article-lead { font-size: 18px; color: var(--ink-mid); line-height: 1.75; margin-bottom: 32px; padding-left: 20px; border-left: 3px solid var(--orange); }
.article-content h2 { font-size: 1.4rem; font-weight: 800; color: var(--navy); letter-spacing: -.025em; margin: 40px 0 14px; }
.article-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 28px 0 10px; }
.article-content p { font-size: 16px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 18px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 20px; }
.article-content li { font-size: 16px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 8px; }
.article-content strong { color: var(--ink); font-weight: 700; }
.article-content blockquote { margin: 32px 0; padding: 24px 28px; background: var(--off-white); border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; font-size: 18px; font-style: italic; color: var(--ink-mid); line-height: 1.65; }
.article-content blockquote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; color: var(--ink-soft); font-family: 'Montserrat', sans-serif; font-weight: 700; }

/* ── STAT BOX ── */
.stat-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.stat-item { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 18px; text-align: center; }
.stat-num { font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 800; color: var(--orange); letter-spacing: -.03em; display: block; }
.stat-label { font-size: 13px; color: var(--ink-soft); display: block; margin-top: 4px; line-height: 1.4; }

/* ── IN-ARTICLE PHOTO GALLERY ── */
.article-img-row { display: flex; gap: 12px; margin: 28px 0; }
.article-img-row img { flex: 1 1 0; min-width: 0; width: 100%; aspect-ratio: 800 / 1014; object-fit: cover; border-radius: 12px; display: block; }
.article-img-single { width: 100%; border-radius: 12px; margin: 28px 0; display: block; }
.article-chart-img { width: 100%; border-radius: 12px; margin: 12px 0 28px; display: block; }

/* ── TEXT + IMAGE SPLIT (image alongside its own paragraph, not stacked) ── */
.article-split { display: flex; align-items: center; gap: 32px; margin: 24px 0; }
.article-split-text { flex: 1 1 0; min-width: 0; }
.article-split-text p:last-child { margin-bottom: 0; }
.article-split-img { flex: 0 0 38%; }
.article-split-img img { width: 100%; border-radius: 12px; display: block; }
.article-split.img-left { flex-direction: row-reverse; }
@media (max-width: 700px) {
  .article-split { flex-direction: column; }
  .article-split.img-left { flex-direction: column; }
  .article-split-img { flex: 0 0 auto; width: 100%; }
}

/* ── TABLE OF CONTENTS ──
   Leading-zero numerals (01, 02…) rather than circular badges: this is an
   editorial index, not a step-by-step process, so the number should read as
   a page reference, not a progress marker. */
.article-toc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 30px 10px; margin: 8px 0 36px; box-shadow: var(--shadow-sm, 0 2px 12px rgba(10,22,40,.06)); }
.article-toc-header { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.article-toc-header svg { flex-shrink: 0; color: var(--orange); }
.article-toc h2 { font-family: 'Montserrat', sans-serif; font-size: 12.5px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .07em; }
.article-toc ol { list-style: none; counter-reset: toc-counter; padding: 0; margin: 0; }
.article-toc li { counter-increment: toc-counter; border-bottom: 1px solid var(--border); }
.article-toc li:last-child { border-bottom: none; }
.article-toc a { display: flex; align-items: baseline; gap: 16px; font-size: 15px; font-weight: 600; color: var(--ink-mid); text-decoration: none; line-height: 1.4; padding: 14px 2px; transition: color .15s ease, gap .15s ease; }
.article-toc a::before { content: counter(toc-counter, decimal-leading-zero); flex-shrink: 0; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 800; color: var(--orange); letter-spacing: .02em; }
.article-toc a:hover { color: var(--navy); gap: 20px; }

/* ── COMPARISON TABLE ──
   For side-by-side metric/concept comparisons (e.g. ND vs. WD). */
.compare-table-wrap { margin: 8px 0 32px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); }
.compare-table th:first-child, .compare-table td:first-child { border-left: none; }
.compare-table thead th {
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .03em;
  color: var(--ink); text-transform: uppercase; padding-bottom: 14px; border-bottom: 3px solid var(--border-md);
}
.compare-table thead th.col-nd { color: var(--orange); border-bottom-color: var(--orange); }
.compare-table thead th.col-wd { border-bottom-color: var(--navy); }
.compare-table tbody th { font-weight: 600; color: var(--ink-soft); background: #fff; white-space: nowrap; }
.compare-table tbody td { background: var(--off-white); color: var(--ink); }
.compare-table em { color: var(--orange); font-style: italic; }
@media (max-width: 640px) {
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 14px; }
}

/* ── BAR CHART (horizontal — ranked categories) ──
   Single-series magnitude comparison: one hue (orange), value at the tip,
   text stays in ink tokens (never the bar's own color). */
.chart-block { margin: 8px 0 32px; padding: 26px 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.chart-title { font-family: 'Montserrat', sans-serif; font-size: 12.5px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 20px; }
.chart-hbars { display: flex; flex-direction: column; gap: 13px; }
.chart-hrow { display: grid; grid-template-columns: 150px 1fr 42px; align-items: center; gap: 14px; }
.chart-hrow-label { font-size: 14px; color: var(--ink-mid); line-height: 1.3; }
.chart-hrow-track { position: relative; height: 14px; background: var(--off-white); border-radius: 4px; overflow: hidden; }
.chart-hrow-fill { height: 100%; background: var(--orange); border-radius: 0 4px 4px 0; transition: filter .15s ease; }
.chart-hrow:hover .chart-hrow-fill { filter: brightness(1.08); }
.chart-hrow-value { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 800; color: var(--ink); text-align: right; }
.chart-caption { font-size: 13px; color: var(--ink-soft); margin-top: 18px; }
@media (max-width: 560px) {
  .chart-hrow { grid-template-columns: 108px 1fr 38px; gap: 10px; }
  .chart-hrow-label { font-size: 12.5px; }
}

/* ── BAR CHART (vertical — small category set) ── */
.chart-vbars { display: flex; align-items: flex-end; gap: 28px; height: 180px; }
.chart-vcol { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1 1 0; height: 100%; }
.chart-vcol-value { font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.chart-vcol-bar { width: 100%; max-width: 68px; background: var(--orange); border-radius: 4px 4px 0 0; transition: filter .15s ease; }
.chart-vcol:hover .chart-vcol-bar { filter: brightness(1.08); }
.chart-vcol-label { margin-top: 12px; font-size: 13px; color: var(--ink-soft); text-align: center; line-height: 1.3; }

/* ── DONUT CHART (ordinal ramp — position in a sequence) ──
   For a clean part-to-whole split where category order carries meaning
   (a frequency scale, a size scale): one hue in monotone steps, plus a
   neutral gray for a non-ordinal "other" state. Legend is mandatory
   (never color-alone identity) with every value direct-labelled. */
.chart-donut-figure { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.chart-donut-svg { width: 200px; flex-shrink: 0; }
.chart-donut-legend { display: flex; flex-direction: column; gap: 12px; flex: 1 1 220px; min-width: 200px; }
.chart-donut-row { display: flex; align-items: center; gap: 10px; }
.chart-donut-swatch { width: 13px; height: 13px; border-radius: 3px; flex-shrink: 0; }
.chart-donut-label { font-size: 14.5px; color: var(--ink); flex: 1; }
.chart-donut-value { font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 800; color: var(--ink); }

/* ── FAQ ACCORDION ──
   Native <details>/<summary> — collapsed by default, no JS needed. Wrapped in
   its own tinted/bordered box so it reads as a distinct reference block, not
   a continuation of the article's running prose. */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 32px; }
.faq-item { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 700; color: var(--navy);
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex-shrink: 0; width: 9px; height: 9px;
  border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  transform: rotate(45deg); transition: transform .2s ease; margin-top: -3px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.faq-item summary:hover { color: var(--orange); }
.faq-item p { padding: 0 22px 20px; margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; }

/* ── ARTICLE CTA BOX ── */
.article-cta-box { background: var(--navy); border-radius: var(--radius-xl); padding: 40px 44px; margin-top: 48px; position: relative; overflow: hidden; }
.article-cta-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 120% at 5% 50%, rgba(255,103,56,.15) 0%, transparent 60%); pointer-events: none; }
.article-cta-box h3 { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: 10px; position: relative; z-index: 1; }
.article-cta-box p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.65; margin-bottom: 24px; position: relative; z-index: 1; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; padding: 13px 26px; border-radius: var(--radius); font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s, transform .15s; position: relative; z-index: 1; }
.btn-primary:hover { background: var(--orange-dk); transform: translateY(-2px); }

/* ── SIDEBAR ── */
.article-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 100px; }
.sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.sidebar-author-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--off-white); border: 2px solid var(--border-md); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 800; color: var(--ink-soft); margin-bottom: 14px; }
.sidebar-author-name { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.sidebar-author-role { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.sidebar-author-bio { font-size: 13px; color: var(--ink-soft); line-height: 1.65; }
.sidebar-section-title { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.related-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.related-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.related-list li:first-child { padding-top: 0; }
.related-list li:last-child { border-bottom: none; padding-bottom: 0; }
.related-list a { font-size: 14px; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.4; transition: color .2s; display: block; }
.related-list a:hover { color: var(--orange); }
/* The wrapper's own height collapses via CSS grid's 1fr->0fr row trick
   (not display:none) so no blank gap is left behind once it's gone — the
   flex `gap` above collapses with it via the matching negative margin-top.
   The card itself slides out to the right and fades as that happens, so
   it reads as a deliberate slide-away, not just a shrink. min-height: 0 on
   the card is required for the grid row to reach a true 0 — without it,
   the card's own padding sets an implicit minimum and the row stalls
   there instead of collapsing fully. */
.sidebar-cta-clip { display: grid; grid-template-rows: 1fr; margin-top: 0; overflow: hidden; transition: grid-template-rows .5s cubic-bezier(.4,0,.2,1), margin-top .5s cubic-bezier(.4,0,.2,1); }
.sidebar-cta-clip.sidebar-cta-hidden { grid-template-rows: 0fr; margin-top: -24px; pointer-events: none; }
.sidebar-cta-card { background: var(--navy); border-radius: var(--radius-lg); padding: 28px; text-align: center; overflow: hidden; min-height: 0; transition: opacity .4s ease, transform .4s cubic-bezier(.4,0,.2,1), padding .4s cubic-bezier(.4,0,.2,1); }
.sidebar-cta-clip.sidebar-cta-hidden .sidebar-cta-card { opacity: 0; transform: translateX(110%); padding: 0 28px; }
.sidebar-cta-card h3 { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.sidebar-cta-card p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; margin-bottom: 20px; }
.btn-cta-sidebar { display: block; background: var(--orange); color: #fff; padding: 12px 20px; border-radius: var(--radius); font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; text-decoration: none; text-align: center; transition: background .15s; }
.btn-cta-sidebar:hover { background: var(--orange-dk); }
button.btn-cta-sidebar { width: 100%; border: none; cursor: pointer; }

/* ── NEWSLETTER MODAL ──
   Fires once per visitor (localStorage flag) on first article view, on
   whichever comes first of a scroll-depth or dwell-time trigger — see
   newsletter-modal.js. Also reopenable any time via the sidebar CTA
   button, which is why the open/close wiring stays active even after the
   auto-trigger has already fired once. opacity+visibility (not
   display:none) so the fade/scale-in can transition and so it starts
   genuinely non-interactive/unfocusable while hidden. */
.newsletter-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(6,13,31,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.newsletter-modal-overlay.is-open { opacity: 1; visibility: visible; }
.newsletter-modal-card {
  position: relative;
  background: var(--navy); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 40px 32px; max-width: 460px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(16px) scale(.98);
  transition: transform .25s ease;
}
.newsletter-modal-overlay.is-open .newsletter-modal-card { transform: translateY(0) scale(1); }
.newsletter-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: none; color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s, color .15s;
}
.newsletter-modal-close:hover { background: rgba(255,255,255,.16); color: #fff; }
.newsletter-modal-eyebrow { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.newsletter-modal-card h3 { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px; }
.newsletter-modal-card p { font-size: 14.5px; color: rgba(255,255,255,.65); line-height: 1.6; margin-bottom: 24px; }
.newsletter-modal-form-wrap { background: #fff; border-radius: var(--radius-lg); padding: 28px 24px 24px; }
@media (max-width: 480px) { .newsletter-modal-card { padding: 32px 24px 28px; } }

/* ── FOOTER ── */
.site-footer { background: var(--navy); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo-mark { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 800; color: #fff; text-decoration: none; display: block; margin-bottom: 14px; letter-spacing: -.02em; }
.footer-logo-mark span { color: var(--orange); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.38); line-height: 1.65; max-width: 280px; }
.footer-col-heading { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.36); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,.52); text-decoration: none; transition: color .2s; }
.footer-col ul a:hover { color: rgba(255,255,255,.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.28); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,.28); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.6); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── RESPONSIVE ── */
@media (min-width: 1200px) { .article-hero-img-back { right: -72px; } }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-sidebar { position: static; } .stat-box { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .article-hero-inner { grid-template-columns: 1fr; } .article-hero-img { display: none; } .article-main { padding-top: 64px; } }
@media (max-width: 600px) { .article-hero { padding: 48px 0 56px; } .stat-box { grid-template-columns: 1fr; } .article-cta-box { padding: 32px 28px; } .article-img-row { flex-wrap: wrap; } .article-img-row img { min-width: 100%; } }
