/* ═══════════════════════════════════════════════
   Estate · Insight — Design System
   Restored from original React design
   ═══════════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
  --gold:        #c8963a;
  --gold-2:      rgba(200,150,58,.65);
  --gold-bg:     rgba(200,150,58,.08);
  --gold-border: rgba(200,150,58,.3);

  --navy:        #0c1524;
  --navy-2:      #111d2e;
  --navy-3:      #1a2b40;
  --navy-4:      #243347;

  --bg:          #f7f8fa;
  --bg-2:        #eef0f4;
  --text:        #1a2233;
  --muted:       #6b7280;
  --border:      #e1e4e8;
  --surface:     #ffffff;

  --green:       #22c55e;
  --green-2:     #16a34a;
  --red:         #ef4444;
  --amber:       #f59e0b;

  --radius:      12px;
  --radius-sm:   8px;
  --radius-xs:   6px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.18);
  --header-h:    64px;
  --max-w:       1200px;
  --font:        'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }
ul { list-style: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ════════════════════════════
   HEADER
═════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%; padding: 0 24px;
}
.site-logo {
  display: flex; align-items: center; gap: 2px;
  font-size: 1.125rem; font-weight: 800;
  letter-spacing: -.03em; color: var(--text);
}
.site-logo .dot  { color: var(--gold); margin: 0 1px; }
.site-logo .sub  { font-weight: 500; color: var(--muted); font-size: .95rem; letter-spacing: 0; }
.site-nav {
  display: none;
  align-items: center; gap: 2px;
}
.site-nav a {
  padding: 7px 13px; border-radius: var(--radius-xs);
  font-size: .875rem; font-weight: 500; color: var(--muted);
  transition: background .15s, color .15s;
}
.site-nav a:hover  { background: var(--bg); color: var(--text); }
.site-nav a.active { color: var(--gold); font-weight: 600; }
.nav-toggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); border-radius: var(--radius-xs);
  transition: background .15s;
}
.nav-toggle:hover { background: var(--bg); }
.site-nav.open {
  display: flex; flex-direction: column; align-items: stretch;
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--surface); z-index: 190;
  padding: 16px 24px; gap: 4px;
  border-top: 1px solid var(--border);
}
.site-nav.open a { padding: 13px 16px; font-size: 1rem; border-radius: var(--radius-sm); }

/* ════════════════════════════
   BUTTONS
═════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px;
  border-radius: var(--radius-xs);
  font-size: .9rem; font-weight: 700;
  border: 2px solid transparent;
  transition: all .18s; cursor: pointer;
  white-space: nowrap; min-height: 44px;
}
.btn-gold {
  background: var(--gold); color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover { background: #b8852f; border-color: #b8852f; }
.btn-outline {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--bg); border-color: var(--muted); }
.btn-outline-white {
  background: transparent; color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.25);
}
.btn-outline-white:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.btn-outline-dark {
  background: transparent; color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.2);
}
.btn-outline-dark:hover { background: rgba(255,255,255,.07); }
.btn-lg { padding: 14px 28px; font-size: .975rem; }
.btn-sm { padding: 8px 16px; font-size: .8rem; min-height: 36px; }
.btn .arrow { color: var(--navy); font-style: normal; }
.btn-outline .arrow, .btn-outline-white .arrow { color: inherit; }

/* ════════════════════════════
   SECTIONS
═════════════════════════════ */
.section    { padding: 56px 0; }
.section-sm { padding: 32px 0; }
.section-dark    { background: var(--navy);   color: #fff; }
.section-darker  { background: var(--navy-2); color: #fff; }
.section-tinted  { background: var(--bg); }
.section-surface { background: var(--surface); }

.section-header {
  margin-bottom: 36px;
}
.section-header h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.section-header p  { font-size: .95rem; color: var(--muted); margin-top: 8px; }
.section-dark  .section-header p,
.section-darker .section-header p { color: rgba(255,255,255,.5); }

.eyebrow {
  display: inline-block;
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--gold); margin-bottom: 8px;
}
.section-header-row {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 16px;
  margin-bottom: 36px; flex-wrap: wrap;
}
.section-header-row .section-header { margin-bottom: 0; }

/* ════════════════════════════
   HERO — Split layout
═════════════════════════════ */
.hero {
  display: flex; min-height: 540px;
  flex-direction: column;
}
.hero-left {
  background: var(--navy);
  padding: 48px 0;
  flex: 1;
}
.hero-right {
  flex: 1; min-height: 280px;
  overflow: hidden; position: relative;
  background: var(--navy-3);
}
.hero-right img { width: 100%; height: 100%; object-fit: cover; }
.hero-right-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,.15);
  background: var(--navy-3);
}
.container-left {
  max-width: 600px; margin: 0 auto;
  padding: 0 24px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.55);
  margin-bottom: 20px;
}
.dot2 {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
}
.hero h1 {
  font-size: 2.4rem; font-weight: 900;
  line-height: 1.1; letter-spacing: -.04em;
  color: #fff; margin-bottom: 16px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-lead {
  font-size: .975rem; line-height: 1.7;
  color: rgba(255,255,255,.5); margin-bottom: 32px;
  max-width: 440px;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm); overflow: hidden;
  margin-bottom: 28px;
}
.hero-stat {
  padding: 16px 14px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.hero-stat:last-child { border-right: none; }
.hero-stat__val { font-size: 1.5rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 5px; }
.hero-stat__val.green { color: var(--green); }
.hero-stat__lbl { font-size: .65rem; color: rgba(255,255,255,.38); line-height: 1.4; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ════════════════════════════
   ARTICLE CARD — SMALL (scroll)
═════════════════════════════ */
.articles-scroll-wrap { overflow: hidden; }
.articles-scroll {
  display: flex; gap: 16px;
  overflow-x: auto; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.articles-scroll::-webkit-scrollbar { display: none; }

.article-card-sm {
  flex-shrink: 0; width: 220px;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.article-card-sm:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.article-card-sm__img {
  height: 120px; overflow: hidden; background: var(--bg);
}
.article-card-sm__img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-sm__img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--border);
  background: linear-gradient(135deg, var(--bg), var(--bg-2));
}
.article-card-sm__body { padding: 12px; flex: 1; }
.article-card-sm__cat {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--gold); margin-bottom: 6px;
}
.article-card-sm__title {
  font-size: .875rem; font-weight: 700; line-height: 1.4;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-sm__date { font-size: .72rem; color: var(--muted); margin-top: 8px; }

/* ════════════════════════════
   ARTICLE CARD — FEATURED
═════════════════════════════ */
.article-featured {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.article-featured:hover { box-shadow: var(--shadow); }
.article-featured__img {
  aspect-ratio: 16/8; overflow: hidden; background: var(--bg);
}
.article-featured__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-featured:hover .article-featured__img img { transform: scale(1.03); }
.article-featured__img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--border);
  background: linear-gradient(135deg, var(--bg), var(--bg-2));
}
.article-featured__body  { padding: 20px; flex: 1; }
.article-featured__cat {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--gold); margin-bottom: 8px;
}
.article-featured__title {
  font-size: 1.15rem; font-weight: 800; line-height: 1.35;
  letter-spacing: -.02em; color: var(--text); margin-bottom: 8px;
}
.article-featured__excerpt {
  font-size: .875rem; line-height: 1.65; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 14px;
}
.article-featured__foot {
  display: flex; align-items: center; justify-content: space-between;
}

/* ════════════════════════════
   ARTICLE LIST — Sidebar/feed
═════════════════════════════ */
.article-list { display: flex; flex-direction: column; gap: 0; }
.article-list-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  transition: opacity .15s;
}
.article-list-item:last-child { border-bottom: none; }
.article-list-item:hover { opacity: .8; }
.article-list-item__img {
  flex-shrink: 0; width: 64px; height: 50px;
  border-radius: var(--radius-xs); overflow: hidden;
  background: var(--bg);
}
.article-list-item__img img { width: 100%; height: 100%; object-fit: cover; }
.article-list-item__img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.article-list-item__cat {
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--gold); margin-bottom: 4px;
}
.article-list-item__title {
  font-size: .875rem; font-weight: 700; line-height: 1.38;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-list-item__date { font-size: .7rem; color: var(--muted); margin-top: 4px; }

/* ════════════════════════════
   ARTICLE CARD — Grid (articles page)
═════════════════════════════ */
.article-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.article-card__img {
  aspect-ratio: 16/9; overflow: hidden; background: var(--bg);
}
.article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-card__img img { transform: scale(1.04); }
.article-card__img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; background: linear-gradient(135deg, var(--bg), var(--bg-2));
}
.article-card__body { padding: 16px; flex: 1; }
.article-card__cat {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--gold); margin-bottom: 8px;
}
.article-card__title {
  display: block; font-size: 1rem; font-weight: 700; line-height: 1.4;
  color: var(--text); margin-bottom: 6px;
  transition: color .15s;
}
.article-card__title:hover { color: var(--gold); }
.article-card__excerpt {
  font-size: .85rem; line-height: 1.6; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card__foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.article-card__date { font-size: .75rem; color: var(--muted); }
.article-card__more {
  font-size: .8rem; font-weight: 700; color: var(--gold);
  display: flex; align-items: center; gap: 4px;
}
.article-card__more:hover { text-decoration: underline; }
.article-card__more .arrow { color: var(--gold); }

/* Grid auto-fill for articles page */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ════════════════════════════
   PROJECT CARD — Dark style
═════════════════════════════ */
.project-card {
  background: var(--navy-3);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.project-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.35); transform: translateY(-2px); }
.project-card__img {
  height: 180px; overflow: hidden; background: var(--navy-4);
}
.project-card__img img { width: 100%; height: 100%; object-fit: cover; }
.project-card__img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,.1);
}
.project-card__body { padding: 18px; }
.project-card__type {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gold-2); margin-bottom: 6px;
}
.project-card__name {
  font-size: 1.05rem; font-weight: 800; color: #fff;
  letter-spacing: -.02em; margin-bottom: 4px;
}
.project-card__loc {
  font-size: .82rem; color: rgba(255,255,255,.4);
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 16px;
}
.project-card__metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-bottom: 16px;
}
.metric__lbl { font-size: .63rem; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.35); margin-bottom: 4px; font-weight: 600; }
.metric__val { font-size: 1.1rem; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.metric__val.green { color: var(--green); }

.risk-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-size: .73rem; font-weight: 700;
}
.risk-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.risk-low  { background: rgba(34,197,94,.15);  color: #4ade80; }
.risk-mid  { background: rgba(245,158,11,.15);  color: #fbbf24; }
.risk-high { background: rgba(239,68,68,.15);   color: #f87171; }

/* ════════════════════════════
   CASE CARD
═════════════════════════════ */
.case-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.case-card:hover { box-shadow: var(--shadow); }
.case-card__seg {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gold); margin-bottom: 8px;
}
.case-card__title {
  font-size: 1rem; font-weight: 700; line-height: 1.45;
  color: var(--text); margin-bottom: 8px;
}
.case-card__desc {
  font-size: .875rem; color: var(--muted); line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.case-card__stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; padding-top: 16px; border-top: 1px solid var(--border);
}
.case-stat { text-align: center; }
.case-stat__lbl { font-size: .62rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.case-stat__val { font-size: 1.05rem; font-weight: 900; color: var(--text); }
.case-stat__val.green { color: var(--green-2); }

/* ════════════════════════════
   ANALYTICS SECTION
═════════════════════════════ */
.analytics-section {
  display: grid; gap: 40px;
  align-items: start;
}
.analytics-left {}
.analytics-left .eyebrow { margin-bottom: 8px; }
.analytics-left h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.analytics-left > p { font-size: .95rem; color: var(--muted); line-height: 1.65; margin-bottom: 24px; }

.analytics-big-stat { margin-bottom: 24px; }
.analytics-big-stat__val { font-size: 2.4rem; font-weight: 900; letter-spacing: -.04em; color: var(--text); line-height: 1; }
.analytics-big-stat__lbl { font-size: .82rem; color: var(--muted); margin-top: 6px; }

.analytics-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.analytics-kpi { }
.analytics-kpi__val { font-size: 1.3rem; font-weight: 900; letter-spacing: -.03em; color: var(--text); }
.analytics-kpi__lbl { font-size: .75rem; color: var(--muted); margin-top: 4px; }

.chart-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm);
}

/* ════════════════════════════
   HOW IT WORKS — Steps
═════════════════════════════ */
.steps-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 0;
}
.step {
  position: relative; padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: flex-start; gap: 18px;
}
.step:last-child { border-bottom: none; }
.step__num {
  flex-shrink: 0; width: 44px; height: 44px;
  border: 2px solid var(--gold-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 900;
  color: var(--gold); letter-spacing: -.01em;
}
.step__icon { font-size: 1.25rem; margin-bottom: 10px; }
.step h3 { font-size: .975rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.step p  { font-size: .85rem; color: rgba(255,255,255,.45); line-height: 1.65; }

/* ════════════════════════════
   CTA BANNER
═════════════════════════════ */
.cta-banner {
  background: var(--navy); border-radius: var(--radius);
  padding: 44px 40px;
  display: flex; flex-direction: column; gap: 28px;
  align-items: flex-start;
}
.cta-banner h2 {
  font-size: 1.6rem; font-weight: 800;
  color: #fff; letter-spacing: -.03em; line-height: 1.25;
  max-width: 520px;
}
.cta-banner p { color: rgba(255,255,255,.5); font-size: .95rem; margin-top: 8px; }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ════════════════════════════
   PAGE HEADER (inner pages)
═════════════════════════════ */
.page-header {
  background: var(--navy);
  padding: 40px 0 36px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-header h1 {
  font-size: 1.9rem; font-weight: 900;
  color: #fff; letter-spacing: -.04em;
  margin-bottom: 8px; line-height: 1.15;
}
.page-header p { font-size: .95rem; color: rgba(255,255,255,.45); }
.breadcrumb-nav {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: rgba(255,255,255,.35);
  margin-bottom: 12px;
}
.breadcrumb-nav a:hover { color: rgba(255,255,255,.75); }
.breadcrumb-nav .sep { opacity: .5; }

/* ════════════════════════════
   CHIPS (category filters)
═════════════════════════════ */
.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.chip {
  padding: 7px 16px; border-radius: 999px;
  font-size: .82rem; font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--surface); color: var(--muted);
  transition: all .15s; white-space: nowrap;
  min-height: 34px; display: inline-flex; align-items: center;
}
.chip:hover  { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ════════════════════════════
   ARTICLE DETAIL PAGE
═════════════════════════════ */
.article-detail-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 32px; padding: 40px 0 60px;
}
.article-detail__cat {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gold); margin-bottom: 10px;
}
.article-detail__title {
  font-size: 1.7rem; font-weight: 900; line-height: 1.2;
  letter-spacing: -.03em; color: var(--text); margin-bottom: 10px;
}
.article-detail__meta {
  font-size: .8rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px;
}
.article-detail__hero-img {
  width: 100%; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 28px;
  aspect-ratio: 16/7;
}
.article-detail__hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-content {
  font-size: .975rem; line-height: 1.85; color: #374151;
}
.article-content h2 {
  font-size: 1.3rem; font-weight: 800; color: var(--text);
  letter-spacing: -.03em; margin: 2em 0 .7em;
}
.article-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 1.7em 0 .5em; }
.article-content p  { margin-bottom: 1.2em; }
.article-content ul, .article-content ol { margin: 1em 0 1em 1.4em; }
.article-content li { margin-bottom: .5em; }
.article-content blockquote {
  border-left: 3px solid var(--gold); padding: 14px 20px;
  background: var(--gold-bg); margin: 1.5em 0;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-style: italic; color: var(--muted);
}
.article-content a { color: var(--gold); text-decoration: underline; }
.article-content img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.article-content code {
  background: var(--bg-2); padding: 2px 6px;
  border-radius: 4px; font-size: .875em;
}
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .9rem; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: 9px 14px; text-align: left; }
.article-content th { background: var(--bg); font-weight: 700; }

.article-sidebar__card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  margin-bottom: 16px;
}
.article-sidebar__card h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }

/* ════════════════════════════
   GRIDS
═════════════════════════════ */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* ════════════════════════════
   PAGINATION
═════════════════════════════ */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 40px 0 8px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-xs); font-size: .875rem; font-weight: 700;
  border: 1.5px solid var(--border); color: var(--muted);
  transition: all .15s;
}
.pagination a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination span.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ════════════════════════════
   FLASH MESSAGES
═════════════════════════════ */
.flash { padding: 13px 16px; margin-bottom: 16px; font-size: .875rem; border-radius: var(--radius-xs); }
.flash-ok  { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.flash-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ════════════════════════════
   EMPTY STATE
═════════════════════════════ */
.empty { text-align: center; padding: 64px 24px; }
.empty h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.empty p  { font-size: .9rem; color: var(--muted); }

/* ════════════════════════════
   FOOTER
═════════════════════════════ */
.site-footer {
  background: var(--navy-2);
  color: rgba(255,255,255,.4);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 32px; padding: 48px 0 36px;
}
.footer-brand__logo {
  font-size: 1.1rem; font-weight: 800;
  color: #fff; letter-spacing: -.03em;
  margin-bottom: 10px;
}
.footer-brand__logo .dot { color: var(--gold); }
.footer-brand__desc {
  font-size: .85rem; line-height: 1.7; max-width: 280px;
}
.footer-col h4 {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: .875rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 0; font-size: .78rem;
  display: flex; flex-direction: column; gap: 6px;
}

/* ════════════════════════════
   RESPONSIVE — 768px+
═════════════════════════════ */
@media (min-width: 768px) {
  .hero { flex-direction: row; min-height: 580px; }
  .hero-left { flex: 1.1; }
  .hero-right { flex: 1; min-height: auto; }
  .hero h1 { font-size: 2.8rem; }
  .hero-right-placeholder { min-height: 440px; }

  .site-nav { display: flex; }
  .nav-toggle { display: none; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .article-detail-layout { grid-template-columns: 1fr 320px; }
  .analytics-section { grid-template-columns: 1fr 1.4fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid rgba(255,255,255,.07); flex-direction: column; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .cta-banner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-banner h2 { font-size: 1.6rem; }
}

/* ════════════════════════════
   RESPONSIVE — 1024px+
═════════════════════════════ */
@media (min-width: 1024px) {
  .hero-left { padding: 64px 0; }
  .hero h1   { font-size: 3.1rem; }
  .hero-lead { font-size: 1.05rem; }
  .container-left { max-width: 540px; padding: 0 48px; }

  .section { padding: 72px 0; }
  .section-sm { padding: 44px 0; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .step { border-bottom: none; border-right: 1px solid rgba(255,255,255,.07); padding: 28px 24px; }
  .step:last-child { border-right: none; }

  .analytics-section { grid-template-columns: 1fr 1.5fr; gap: 56px; }

  .article-card-sm { width: 240px; }
  .articles-scroll { padding-bottom: 4px; }
}
