
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --slate: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --amber-dark: #b45309;
  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --radius: 12px;
  --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--slate);
  line-height: 1.7;
  font-size: 16px;
}
a { color: var(--amber-dark); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--navy); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Top Utility Bar */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
  font-weight: 600;
}

/* Header & Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}
.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.brand-tagline {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--slate);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--surface-alt);
  color: var(--amber-dark);
}
.main-nav a.nav-cta {
  background: var(--navy);
  color: #ffffff !important;
  margin-left: 4px;
}
.main-nav a.nav-cta:hover {
  background: var(--amber-dark);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 65%, #1e3a5f 100%);
  color: #ffffff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #ffffff;
}
.hero p {
  font-size: 17px;
  color: #cbd5e1;
  margin-bottom: 26px;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.btn-primary {
  background: #f59e0b;
  color: #0f172a !important;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover { background: #fbbf24; }
.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none !important;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
}
.metric-item strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
}
.metric-item span {
  font-size: 12px;
  color: #94a3b8;
}
.hero-media {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.hero-media img {
  border-radius: 10px;
  width: 100%;
  height: 290px;
  object-fit: cover;
}
.hero-media-cap {
  padding: 10px 6px 2px;
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
}

/* Overview / Guides Section */
.section-block { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-eyebrow {
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--amber-light);
  color: var(--amber-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}
.pillar-card h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}
.pillar-card p {
  font-size: 14.5px;
  color: var(--muted);
}

/* Blog Hub Section */
.blog-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 24px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.blog-card.featured {
  border: 2px solid var(--amber);
}
.blog-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--navy);
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--navy);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}
.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.blog-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
}
.blog-card-body p {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 16px;
  flex: 1;
}
.blog-read-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--amber-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Main Article + Sidebar Layout */
.article-section {
  padding: 48px 0 72px;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumbs a { color: var(--slate); font-weight: 600; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.article-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 28px;
}
.article-cat {
  display: inline-block;
  background: var(--amber-light);
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.article-card h1 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--muted);
  align-items: center;
}
.article-byline strong { color: var(--navy); }
.article-hero-figure {
  margin: 0 0 32px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}
.article-hero-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.article-hero-figure figcaption, .article-inline-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}
.article-inline-figure {
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}
.article-inline-figure img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

/* Article Typography */
.article-body p {
  margin-bottom: 18px;
  font-size: 16.5px;
  color: #1e293b;
  line-height: 1.78;
}
.article-body h2 {
  font-size: 23px;
  font-weight: 800;
  color: var(--navy);
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--amber);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-size: 18.5px;
  font-weight: 700;
  color: var(--navy-mid);
  margin: 24px 0 10px;
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}
.article-body li {
  margin-bottom: 8px;
  font-size: 16px;
  color: #1e293b;
}
.article-body a {
  color: #b45309;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(180, 83, 9, 0.4);
  text-underline-offset: 3px;
}
.article-body a:hover {
  color: var(--navy);
  background: var(--amber-light);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.article-body thead th {
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
}
.article-body tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--slate);
}
.article-body tbody tr:nth-child(even) {
  background: var(--surface-alt);
}

/* Sidebar Widgets */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 94px;
}
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.widget-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--amber);
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-list li {
  margin-bottom: 8px;
}
.toc-list a {
  font-size: 13.5px;
  color: var(--slate);
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  line-height: 1.4;
}
.toc-list a:hover {
  background: var(--surface-alt);
  color: var(--amber-dark);
  text-decoration: none;
}
.fact-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.fact-row:last-child { border-bottom: none; }
.fact-row strong { color: var(--navy); }
.nap-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 22px;
}
.nap-box h4 {
  color: #fbbf24;
  font-size: 16px;
  margin-bottom: 10px;
}
.nap-box p {
  font-size: 13.5px;
  color: #cbd5e1;
  margin-bottom: 8px;
  line-height: 1.55;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 60px 0 32px;
  border-top: 4px solid var(--amber);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 10px;
}
.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: #cbd5e1;
  font-size: 14px;
  text-decoration: none;
}
.footer-links a:hover { color: #fbbf24; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
}

@media (max-width: 960px) {
  .hero-grid, .blog-grid, .pillars-grid, .article-layout, .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-sidebar { position: static; }
}
