:root {
  --green: #00ed64;
  --green-dark: #00684a;
  --green-mid: #00a35c;
  --green-soft: #c3f0d2;
  --teal-deep: #001e2b;
  --teal: #003d4f;
  --teal-mid: #00684a;
  --canvas: #ffffff;
  --surface: #f9fbfa;
  --surface-soft: #f4f7f6;
  --surface-feature: #e3fcef;
  --hairline: #e1e5e8;
  --hairline-strong: #c1ccd6;
  --hairline-dark: #1c2d38;
  --ink: #001e2b;
  --charcoal: #1c2d38;
  --slate: #3d4f5b;
  --steel: #5c6c7a;
  --stone: #7c8c9a;
  --muted: #a8b3bc;
  --on-dark: #ffffff;
  --on-dark-muted: #a8b3bc;
  --accent-purple: #7b3ff2;
  --accent-orange: #fa6e39;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1280px;
  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: 68px;
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo svg { width: 32px; height: 32px; }

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

.site-logo-text span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--steel);
}

.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover { color: var(--ink); background: var(--surface); }
.site-nav a.active { color: var(--green-dark); }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  border-radius: var(--radius-md);
}

.burger:hover { background: var(--surface); }

/* mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--canvas);
  z-index: 200;
  flex-direction: column;
  padding: 20px 24px;
}

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

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
  border-radius: var(--radius-md);
}

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

.mobile-nav a:hover { color: var(--green-dark); }

body.nav-open { overflow: hidden; }

/* ─── HERO BAND ───────────────────────────────────────── */
.hero-band {
  background: var(--teal-deep);
  color: var(--on-dark);
  padding: 80px 0 72px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--on-dark);
  max-width: 720px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--on-dark-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

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

.hero-meta .badge {
  background: var(--green);
  color: var(--teal-deep);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── EDITORIAL SUMMARY STRIP ─────────────────────────── */
.editorial-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}

.editorial-strip-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.editorial-strip-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-dark);
  white-space: nowrap;
}

.editorial-strip-text {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.5;
}

/* ─── SECTIONS ────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 18px;
  color: var(--steel);
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 40px;
}

/* ─── CARD GRID ───────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,30,43,0.08);
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.tag-green { background: var(--green-soft); color: var(--green-dark); }
.tag-purple { background: #ede3ff; color: var(--accent-purple); }
.tag-orange { background: #fff0e8; color: #c44d1a; }

.card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
}

.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--green-dark); text-decoration: none; }

.card-excerpt {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.card-meta {
  font-size: 12px;
  color: var(--stone);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  margin-top: 14px;
}

.card-link:hover { text-decoration: underline; }

/* ─── IMAGE PLACEHOLDER ───────────────────────────────── */
.img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

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

.img-caption {
  font-size: 12px;
  color: var(--stone);
  margin-top: 8px;
  line-height: 1.4;
  font-style: italic;
}

/* ─── MAIN ARTICLE LAYOUT ─────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin: 36px 0 14px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.35;
  margin: 28px 0 12px;
}

.article-body p { margin-bottom: 18px; color: var(--slate); }
.article-body p:last-child { margin-bottom: 0; }

.article-body ul, .article-body ol {
  margin: 16px 0 20px 20px;
  color: var(--slate);
}

.article-body li { margin-bottom: 8px; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--stone);
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 32px;
}

.article-meta strong { color: var(--ink); }

.toc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}

.toc ol {
  margin: 0;
  padding-left: 18px;
}

.toc li {
  margin-bottom: 6px;
  font-size: 14px;
}

.toc a { color: var(--green-dark); }

.key-context {
  background: var(--teal-deep);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 32px 0;
}

.key-context-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.key-context p { color: var(--on-dark-muted); margin-bottom: 0; }

.article-sidebar {
  position: sticky;
  top: 84px;
}

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

.sidebar-card-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--steel);
  margin-bottom: 14px;
}

.sidebar-card a {
  display: block;
  font-size: 14px;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  line-height: 1.4;
}

.sidebar-card a:last-child { border-bottom: none; }
.sidebar-card a:hover { color: var(--green-dark); }

/* ─── NOT COVER BOX ───────────────────────────────────── */
.not-cover-box {
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--green-dark);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--surface);
}

.not-cover-box h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.not-cover-box ul {
  margin: 0 0 0 18px;
  color: var(--steel);
  font-size: 14px;
}

/* ─── BREADCRUMBS ─────────────────────────────────────── */
.breadcrumbs {
  padding: 14px 0;
  font-size: 13px;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 32px;
}

.breadcrumbs a { color: var(--green-dark); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: var(--stone); }

/* ─── PAGE HERO ───────────────────────────────────────── */
.page-hero {
  background: var(--teal-deep);
  color: var(--on-dark);
  padding: 52px 0;
}

.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.page-hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.page-hero-desc {
  font-size: 16px;
  color: var(--on-dark-muted);
  max-width: 540px;
}

/* ─── PROSE (legal pages) ─────────────────────────────── */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; font-weight: 500; color: var(--ink); margin: 36px 0 14px; letter-spacing: -0.3px; }
.prose h3 { font-size: 18px; font-weight: 500; color: var(--charcoal); margin: 24px 0 10px; }
.prose p { font-size: 16px; color: var(--slate); line-height: 1.65; margin-bottom: 16px; }
.prose ul, .prose ol { margin: 12px 0 16px 20px; color: var(--slate); font-size: 16px; line-height: 1.65; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--green-dark); }

/* ─── CONTACT FORM ────────────────────────────────────── */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 20px; }

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-family: var(--font);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  height: 44px;
  outline: none;
  transition: border 0.15s;
  appearance: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border: 2px solid var(--green-dark);
}

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--teal-deep);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  font-family: var(--font);
}

.btn-primary:hover { background: var(--green-mid); text-decoration: none; }
.btn-primary:disabled { background: var(--hairline); color: var(--muted); cursor: not-allowed; }

.form-success {
  display: none;
  background: var(--surface-feature);
  border: 1px solid var(--green-soft);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  font-size: 15px;
  color: var(--green-dark);
  font-weight: 500;
  margin-top: 16px;
}

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

/* ─── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--teal-deep);
  color: var(--on-dark);
  padding: 64px 0 32px;
}

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

.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--on-dark-muted);
  line-height: 1.5;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a {
  font-size: 14px;
  color: var(--on-dark-muted);
  text-decoration: none;
  padding: 2px 0;
  display: inline-block;
}

.footer-links a:hover { color: var(--on-dark); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--hairline-dark);
  padding-top: 24px;
  font-size: 13px;
  color: var(--on-dark-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── COOKIE BANNER ───────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--teal-deep);
  color: var(--on-dark);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  max-width: 620px;
  width: calc(100% - 32px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  font-size: 14px;
  color: var(--on-dark-muted);
  line-height: 1.5;
  min-width: 200px;
}

.cookie-banner-text a { color: var(--green); }

.cookie-btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: var(--green);
  color: var(--teal-deep);
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--on-dark-muted);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
}

.cookie-btn-settings {
  background: transparent;
  color: var(--on-dark-muted);
  border: none;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font);
}

/* ─── DIVIDERS / UTILITY ──────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--hairline); margin: 40px 0; }

.text-muted { color: var(--stone); font-size: 14px; }
.text-small { font-size: 13px; color: var(--steel); }

.surface-bg { background: var(--surface); }
.dark-bg { background: var(--teal-deep); }

/* ─── GALLERY GRID ────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface);
}

.gallery-item img { width: 100%; height: 200px; object-fit: cover; }

.gallery-item-caption {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--stone);
  line-height: 1.4;
}

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

.related-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 20px;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1023px) {
  .burger { display: flex; align-items: center; justify-content: center; }
  .site-nav { display: none; }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .hero-band { padding: 52px 0; }
  .section { padding: 48px 0; }
  .section-lg { padding: 64px 0; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 479px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 30px; }
  .cookie-banner { padding: 16px; }
}
