@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #000000;
  --primary-active: #1a1a1a;
  --text-link: #0d74ce;
  --ink: #171717;
  --body: #60646c;
  --muted: #999999;
  --muted-soft: #cccccc;
  --hairline: #f0f0f3;
  --hairline-soft: #f5f5f7;
  --hairline-strong: #dcdee0;
  --canvas: #ffffff;
  --canvas-soft: #fafafa;
  --surface-card: #ffffff;
  --surface-strong: #f0f0f3;
  --surface-dark: #171717;
  --surface-dark-elevated: #1a1a1a;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --on-dark-soft: #b0b4ba;
  --sky-light: #cfe7ff;
  --sky-mid: #a8c8e8;
  --semantic-success: #16a34a;
  --semantic-error: #eb8e90;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.site-logo__mark {
  width: 32px;
  height: 32px;
  background: var(--ink);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-logo__mark span {
  color: var(--on-primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.5px;
}

.site-logo__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.site-logo__tagline {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
}

.site-logo:hover { text-decoration: none; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: background 0.15s;
}

.primary-nav a:hover { background: var(--surface-strong); }
.primary-nav a.active { color: var(--primary); }

.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.burger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--canvas);
  padding: 24px;
  z-index: 99;
  overflow-y: auto;
}

.mobile-nav.open { display: block; }

.mobile-nav ul { list-style: none; }

.mobile-nav a {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.mobile-nav a:hover { color: var(--text-link); text-decoration: none; }

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--sky-light) 0%, var(--sky-mid) 40%, var(--canvas) 80%);
  padding: 80px 0 72px;
}

.hero__eyebrow {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -1.44px;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 20px;
}

.hero__summary {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--body);
  max-width: 600px;
  margin-bottom: 32px;
}

.hero__meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__meta-dot { color: var(--muted-soft); }

/* ── SECTION ── */
.section { padding: 72px 0; }
.section--soft { background: var(--canvas-soft); }
.section--dark { background: var(--surface-dark); color: var(--on-dark); }

.section__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1.08px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section--dark .section__title { color: var(--on-dark); }

.section__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  max-width: 640px;
  margin-bottom: 40px;
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ── EDITORIAL CARD ── */
.editorial-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}

.editorial-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

.editorial-card__category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.editorial-card__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
}

.editorial-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
  flex: 1;
  margin-bottom: 16px;
}

.editorial-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.editorial-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-link);
  text-decoration: none;
}

.editorial-card__link:hover { text-decoration: underline; }

/* ── IMAGE PLACEHOLDER ── */
.img-placeholder {
  background: var(--surface-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── ARTICLE PAGE ── */
.article-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--hairline);
}

.article-breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.article-breadcrumbs a { color: var(--text-link); text-decoration: none; }
.article-breadcrumbs a:hover { text-decoration: underline; }
.article-breadcrumbs__sep { color: var(--muted-soft); }

.article-header__category {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.article-header__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -1.08px;
  color: var(--ink);
  margin-bottom: 16px;
}

.article-header__summary {
  font-size: 18px;
  line-height: 1.55;
  color: var(--body);
  max-width: 680px;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.article-meta__dot { color: var(--muted-soft); }

.article-meta__author { font-weight: 500; color: var(--ink); }

/* ── ARTICLE BODY ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 48px 0 72px;
  align-items: start;
}

.article-body { min-width: 0; }

.article-body h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 36px 0 14px;
}

.article-body h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin: 28px 0 12px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 18px;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.article-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 6px;
}

.article-body strong { color: var(--ink); font-weight: 600; }

.article-body a { color: var(--text-link); }

.key-context-box {
  background: var(--canvas-soft);
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.key-context-box__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.key-context-box p {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 0;
}

.not-covered-box {
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 36px 0;
}

.not-covered-box__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.not-covered-box ul {
  margin-bottom: 0;
}

/* ── SIDEBAR (TOC) ── */
.article-sidebar { position: sticky; top: 80px; }

.toc {
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.toc__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc__list { list-style: none; }

.toc__list li { margin-bottom: 6px; }

.toc__list a {
  font-size: 13px;
  color: var(--body);
  text-decoration: none;
  display: block;
  padding: 3px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: color 0.15s, border-color 0.15s;
}

.toc__list a:hover {
  color: var(--ink);
  border-left-color: var(--ink);
  text-decoration: none;
}

/* ── ARTICLE IMAGE ── */
.article-image {
  margin: 28px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-strong);
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-image figcaption {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 12px;
  line-height: 1.4;
}

/* ── RELATED ARTICLES ── */
.related-section {
  border-top: 1px solid var(--hairline);
  padding-top: 40px;
  margin-top: 40px;
}

.related-section__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── FORM ── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--surface-card);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  height: 44px;
  transition: border-color 0.15s;
  outline: none;
}

.form-control:focus { border-color: var(--ink); border-width: 2px; }

textarea.form-control { height: auto; resize: vertical; min-height: 120px; }

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  height: 40px;
  transition: background 0.15s;
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
}

.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); text-decoration: none; }

.form-success {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--semantic-success);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 15px;
  margin-top: 16px;
}

.form-success.visible { display: block; }

/* ── STATIC PAGES ── */
.page-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--hairline);
}

.page-header__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -1.08px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-header__subtitle {
  font-size: 17px;
  color: var(--body);
  line-height: 1.55;
}

.page-body {
  padding: 48px 0 72px;
}

.page-body h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
  letter-spacing: -0.3px;
}

.page-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 10px;
}

.page-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 16px;
}

.page-body ul, .page-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 6px;
}

.page-body a { color: var(--text-link); }

/* ── COVERAGE PAGE ── */
.coverage-header {
  padding: 56px 0 40px;
  background: linear-gradient(160deg, var(--sky-light) 0%, var(--canvas) 70%);
  border-bottom: 1px solid var(--hairline);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 56px 0 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand__mark {
  width: 28px;
  height: 28px;
  background: var(--ink);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand__mark span {
  color: white;
  font-weight: 600;
  font-size: 12px;
}

.footer-brand__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.footer-brand__desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
  max-width: 260px;
}

.footer-col__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
}

.footer-col a:hover { color: var(--ink); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom__copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom__disclaimer {
  font-size: 12px;
  color: var(--muted);
  max-width: 480px;
  text-align: right;
  line-height: 1.4;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-dark);
  color: var(--on-dark);
  z-index: 200;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
}

.cookie-banner.hidden { display: none; }

.cookie-banner__text {
  font-size: 14px;
  color: var(--on-dark-soft);
  line-height: 1.5;
  flex: 1;
  min-width: 220px;
}

.cookie-banner__text a { color: var(--on-dark); text-decoration: underline; }

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  height: 38px;
  transition: background 0.15s;
}

.cookie-btn--accept {
  background: var(--canvas);
  color: var(--ink);
}

.cookie-btn--accept:hover { background: var(--surface-strong); }

.cookie-btn--reject {
  background: transparent;
  color: var(--on-dark-soft);
  border: 1px solid rgba(255,255,255,0.15);
}

.cookie-btn--reject:hover { color: var(--on-dark); }

.cookie-btn--settings {
  background: transparent;
  color: var(--on-dark-soft);
  font-size: 13px;
  padding: 4px 0;
  height: auto;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumbs a { color: var(--text-link); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs__sep { color: var(--muted-soft); }

/* ── UTILITIES ── */
.text-ink { color: var(--ink); }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hr { border: none; border-top: 1px solid var(--hairline); margin: 32px 0; }

/* ── COVERAGE GRID (homepage compact) ── */
.hero-image-block {
  margin-top: 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-strong);
  aspect-ratio: 16/7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .burger-btn { display: flex; }
  .hero { padding: 56px 0 48px; }
  .hero__title { font-size: 32px; letter-spacing: -0.84px; }
  .hero__summary { font-size: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid--2 { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom__disclaimer { text-align: left; }
  .article-layout { gap: 28px; }
  .cookie-banner { padding: 14px 16px; }
  .section { padding: 48px 0; }
  .page-header { padding: 36px 0 28px; }
  .article-header { padding: 36px 0 28px; }
}

@media (max-width: 480px) {
  .container, .container--narrow { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .footer-inner { padding: 0 16px; }
  .hero__title { font-size: 28px; }
}
