:root {
  --primary: #181d26;
  --primary-active: #0d1218;
  --ink: #181d26;
  --body: #333840;
  --muted: #41454d;
  --hairline: #dddddd;
  --canvas: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #e0e2e6;
  --surface-dark: #181d26;
  --coral: #aa2d00;
  --forest: #0a2e0e;
  --cream: #f5e9d4;
  --peach: #fcab79;
  --mint: #a8d8c4;
  --link: #1b61c9;
  --link-active: #1a3866;
  --success: #006400;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --section: 96px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', 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: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  background: var(--canvas);
}

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

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

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 400; line-height: 1.2; }

h1 { font-size: 40px; font-weight: 400; }
h2 { font-size: 32px; font-weight: 400; }
h3 { font-size: 24px; font-weight: 400; }
h4 { font-size: 20px; font-weight: 400; }
h5 { font-size: 18px; font-weight: 500; }
h6 { font-size: 16px; font-weight: 500; }

p { margin-bottom: 1rem; color: var(--body); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

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

.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;
  color: var(--ink);
}

.site-logo svg { flex-shrink: 0; }

.logo-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

.logo-tagline {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-nav a {
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
  font-weight: 400;
  padding: 4px 0;
}

.top-nav a:hover { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

/* ---- LAYOUT WITH SIDEBAR ---- */
.layout-wrapper {
  display: flex;
  min-height: calc(100vh - 64px);
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--canvas);
  border-right: 1px solid var(--hairline);
  padding: 32px 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-section {
  padding: 0 24px;
  margin-bottom: 32px;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li { margin-bottom: 4px; }

.sidebar-nav a {
  display: block;
  font-size: 14px;
  color: var(--body);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--surface-soft);
  color: var(--ink);
  text-decoration: none;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 48px;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb-sep { color: var(--hairline); }

/* ---- HERO BAND ---- */
.hero-band {
  padding: var(--section) 0;
  background: var(--canvas);
}

.hero-band h1 {
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 640px;
}

.hero-band .lead {
  font-size: 18px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: 32px;
}

/* ---- SIGNATURE CARDS ---- */
.signature-coral {
  background: var(--coral);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 48px 0;
}

.signature-coral h2 { color: #fff; font-size: 32px; font-weight: 400; margin-bottom: 16px; }
.signature-coral p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }

.signature-forest {
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 48px 0;
}

.signature-forest h2 { color: #fff; font-size: 32px; font-weight: 400; margin-bottom: 16px; }
.signature-forest p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }

.signature-dark {
  background: var(--surface-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 48px 0;
}

.signature-dark h2 { color: #fff; font-size: 32px; font-weight: 400; margin-bottom: 16px; }
.signature-dark p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }

.cream-callout {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 32px 0;
}

/* ---- ARTICLE CARDS GRID ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.article-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.15s;
}

.article-card:hover { border-color: var(--ink); }

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.article-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-card p {
  font-size: 14px;
  color: var(--body);
  margin-bottom: 12px;
}

.article-card a {
  font-size: 14px;
  font-weight: 500;
  color: var(--link);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.btn-secondary {
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.btn-secondary:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }

.btn-outline-light {
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.4);
}

/* ---- TABLE OF CONTENTS ---- */
.toc {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 40px;
}

.toc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.toc ol {
  padding-left: 20px;
  color: var(--body);
}

.toc li { margin-bottom: 6px; font-size: 14px; }
.toc a { color: var(--link); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---- RELATED CONTENT ---- */
.related-content {
  border-top: 1px solid var(--hairline);
  padding-top: 40px;
  margin-top: 48px;
}

.related-content h3 {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 24px;
}

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

.related-card {
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--hairline);
}

.related-card h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.related-card p { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.related-card a { font-size: 13px; color: var(--link); font-weight: 500; }

/* ---- ARTICLE CONTENT ---- */
.article-body {
  max-width: 760px;
}

.article-body h2 {
  font-size: 28px;
  font-weight: 400;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 16px;
}

.article-body h3 {
  font-size: 22px;
  font-weight: 400;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body ul, .article-body ol {
  margin: 0 0 16px 24px;
}

.article-body li { margin-bottom: 6px; line-height: 1.6; }

.article-body figure {
  margin: 32px 0;
}

.article-body figure img {
  border-radius: var(--radius-md);
  width: 100%;
}

.article-body figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

/* ---- DISCLAIMER CALLOUT ---- */
.disclaimer-note {
  background: var(--surface-soft);
  border-left: 3px solid var(--hairline);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 13px;
  color: var(--muted);
}

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

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

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

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: #458fff;
}

.form-group .error {
  font-size: 12px;
  color: #c00;
  margin-top: 4px;
  display: none;
}

.form-success {
  background: #f0fff4;
  border: 1px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--success);
  font-size: 14px;
  display: none;
  margin-top: 16px;
}

/* ---- COOKIE BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  max-width: 640px;
  width: calc(100% - 48px);
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.cookie-banner p a { color: #fff; }

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-accept {
  background: #fff;
  color: var(--ink);
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

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

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

.footer-brand .logo-text { font-size: 16px; font-weight: 500; margin-bottom: 8px; }

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-nav {
  list-style: none;
}

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

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

.footer-nav a:hover { color: var(--link); }

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

.footer-disclaimer {
  font-size: 12px;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.5;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin: 48px 0;
}

.cta-band h2 { font-size: 32px; font-weight: 400; margin-bottom: 16px; }
.cta-band p { font-size: 16px; color: var(--body); margin-bottom: 24px; }

/* ---- POLICY PAGES ---- */
.policy-content h2 {
  font-size: 24px;
  font-weight: 400;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--ink);
}

.policy-content p, .policy-content li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
}

.policy-content ul { margin: 0 0 16px 24px; }
.policy-content li { margin-bottom: 6px; }

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--hairline);
  padding: 0;
}

details.faq-item summary {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--muted);
  transition: 0.2s;
}

details.faq-item[open] summary::after { content: '−'; }

.faq-answer {
  padding: 0 0 16px;
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

/* ---- UTIL ---- */
.section-title {
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--body);
  margin-bottom: 40px;
}

.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

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

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

.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink);
  margin-bottom: 24px;
}

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

.mobile-nav-links li { border-bottom: 1px solid var(--hairline); }

.mobile-nav-links a {
  display: block;
  font-size: 20px;
  color: var(--ink);
  padding: 16px 0;
  text-decoration: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .main-content { padding: 32px; }
}

@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  
  .container { padding: 0 20px; }
  
  .top-nav { display: none; }
  .burger { display: flex; }
  
  .layout-wrapper { flex-direction: column; }
  
  .sidebar {
    display: none;
    width: 100%;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
  
  .sidebar.open { display: block; }
  
  .main-content { padding: 24px 20px; }
  
  .hero-band { padding: 48px 0; }
  .hero-band h1 { font-size: 28px; }
  .hero-band .lead { font-size: 16px; }
  
  .articles-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  
  .signature-coral, .signature-forest, .signature-dark { padding: 32px 24px; }
  
  .footer-bottom { flex-direction: column; }
  
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
}
