/* ============================================================
   Inner·Wave — shared base + article stylesheet.
   Linked by every branded page; page-specific rules stay inline
   on index, posts and the generator.
   ============================================================ */
:root {
      --cream: #F5EDE4;
      --warm-beige: #E8DDD1;
      --sage: #8B9E8B;
      --deep-sage: #5C6F5C;
      --dark-green: #2D3B2D;
      --gold: #C4A35A;
      --dark-gold: #8B7340;
      --dusty-rose: #D4B5A0;
      --white: #FEFCFA;
      --off-white: #FAF7F3;
      --charcoal: #2C2C2C;
      --light-sage: #D4DED0;
      --pale-green: #E8EDE6;
      --soft-pink: #F0E0D6;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'DM Sans', sans-serif;
      color: var(--charcoal);
      background: var(--off-white);
      overflow-x: hidden;
    }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .reveal {
      opacity: 0; transform: translateY(40px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    /* ─── Navigation ─── */
    .navbar {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      padding: 20px 32px;
      transition: all 0.4s ease;
      display: flex; align-items: center; justify-content: space-between;
    }
    .navbar.scrolled {
      padding: 12px 32px;
      background: rgba(250,247,243,0.92);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(139,158,139,0.1);
    }
    .nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
    .nav-brand img { height: 36px; width: auto; }
    .nav-brand span {
      font-family: 'Cormorant Garamond', serif;
      font-size: 22px; font-weight: 400;
      color: var(--dark-green); letter-spacing: 0.5px;
    }
    .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
    .nav-links a {
      text-decoration: none; font-size: 14px; font-weight: 400;
      color: var(--dark-green); letter-spacing: 0.5px;
      position: relative; transition: color 0.3s;
    }
    .nav-links a::after {
      content: ''; position: absolute; bottom: -4px; left: 0;
      width: 0; height: 1.5px; background: var(--sage);
      transition: width 0.3s ease;
    }
    .nav-links a:hover::after { width: 100%; }
    .nav-links a.active::after { width: 100%; }

    .nav-cta {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 24px; border-radius: 50px; font-size: 13px;
      font-weight: 500; text-decoration: none;
      background: var(--dark-green); color: #ffffff !important;
      transition: all 0.3s ease; border: none; cursor: pointer;
      font-family: 'DM Sans', sans-serif;
    }
    .nav-cta:hover { background: var(--deep-sage); transform: translateY(-1px); }

    .mobile-toggle {
      display: none; flex-direction: column; gap: 5px;
      background: none; border: none; cursor: pointer; padding: 8px;
    }
    .mobile-toggle span {
      width: 24px; height: 2px; background: var(--dark-green);
      border-radius: 2px; transition: 0.3s;
    }
    .mobile-menu {
      display: none;
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      z-index: 999; background: rgba(250,247,243,0.97);
      backdrop-filter: blur(20px);
      flex-direction: column; align-items: center; justify-content: center; gap: 32px;
    }
    .mobile-menu.open { display: flex; }
    .mobile-menu a {
      font-family: 'Cormorant Garamond', serif; font-size: 28px;
      color: var(--dark-green); text-decoration: none;
    }
    @media (max-width: 768px) {
      .nav-links { display: none; }
      .mobile-toggle { display: flex; }
    }

    /* ─── Article ─── */
    .article-header {
      padding: 150px 24px 0;
      max-width: 720px; margin: 0 auto;
    }
    .back-link {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 13px; letter-spacing: 0.5px; color: var(--sage);
      text-decoration: none; margin-bottom: 32px; transition: color 0.3s;
    }
    .back-link:hover { color: var(--deep-sage); }
    .back-link .material-icons-outlined { font-size: 16px; }
    .article-tag {
      font-family: 'Cormorant Garamond', serif;
      text-transform: uppercase; letter-spacing: 3px; font-size: 12px;
      color: var(--deep-sage); display: block; margin-bottom: 16px;
    }
    .article-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(32px, 5vw, 46px); font-weight: 400;
      color: var(--charcoal); line-height: 1.2; margin-bottom: 20px;
    }
    .article-meta {
      display: flex; align-items: center; gap: 12px;
      font-size: 14px; color: var(--sage); letter-spacing: 0.3px;
      padding-bottom: 32px; margin-bottom: 8px;
      border-bottom: 1px solid rgba(139,158,139,0.18);
      flex-wrap: wrap;
    }
    .article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--sage); opacity: 0.6; }

    .article-body {
      max-width: 720px; margin: 0 auto;
      padding: 44px 24px 40px;
    }
    .article-body p {
      font-size: 18px; line-height: 1.85; color: #44443e;
      margin-bottom: 24px;
    }
    .article-body h2 {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(26px, 3.6vw, 34px); font-weight: 400;
      color: var(--dark-green); line-height: 1.3;
      margin: 48px 0 18px;
    }
    .article-body strong { font-weight: 600; color: var(--charcoal); }
    .article-body em { font-style: italic; }
    .article-body ul {
      margin: 0 0 24px; padding-left: 4px; list-style: none;
    }
    .article-body ul li {
      font-size: 18px; line-height: 1.8; color: #44443e;
      padding-left: 28px; position: relative; margin-bottom: 12px;
    }
    .article-body ul li::before {
      content: ''; position: absolute; left: 6px; top: 14px;
      width: 6px; height: 6px; border-radius: 50%; background: var(--sage);
    }

    /* Featured hero image */
    .article-hero-img {
      max-width: 880px; margin: 36px auto 0; padding: 0 24px;
    }
    .article-hero-img img {
      width: 100%; height: auto; display: block;
      border-radius: 18px;
      box-shadow: 0 18px 50px rgba(45,59,45,0.18);
    }
    /* In-article figure */
    .article-figure { margin: 44px 0 8px; }
    .article-figure img {
      width: 100%; height: auto; display: block;
      border-radius: 14px;
      border: 1px solid rgba(139,158,139,0.18);
      background: var(--off-white);
    }
    .article-figure figcaption {
      font-size: 13.5px; color: var(--sage); font-style: italic;
      text-align: center; margin-top: 14px; line-height: 1.6;
    }

    /* Data table (AEO — machine-readable alongside the SVG) */
    .article-body .data-table {
      width: 100%; border-collapse: collapse; margin: 8px 0 28px;
      font-size: 15.5px;
    }
    .article-body .data-table caption {
      font-size: 13.5px; color: var(--sage); font-style: italic;
      text-align: left; margin-bottom: 12px; line-height: 1.6;
    }
    .article-body .data-table th,
    .article-body .data-table td {
      text-align: left; padding: 12px 14px; vertical-align: top;
      border-bottom: 1px solid rgba(139,158,139,0.2); line-height: 1.5;
    }
    .article-body .data-table thead th {
      font-family: 'DM Sans', sans-serif; font-weight: 600;
      color: var(--dark-green); font-size: 12.5px;
      text-transform: uppercase; letter-spacing: 0.5px;
    }
    .article-body .data-table tbody tr:last-child td { border-bottom: none; }
    .article-body .data-table .band { font-weight: 600; color: var(--charcoal); white-space: nowrap; }
    @media (max-width: 600px) {
      .article-body .data-table { font-size: 14px; }
      .article-body .data-table th,
      .article-body .data-table td { padding: 10px 8px; }
    }

    /* In-article FAQ (visible only — no FAQPage schema by design) */
    .article-body .faq-q {
      font-family: 'DM Sans', sans-serif; font-weight: 600;
      font-size: 18px; color: var(--dark-green); margin: 30px 0 8px;
    }

    /* End CTA */
    .article-cta {
      max-width: 720px; margin: 20px auto 0;
      padding: 0 24px;
    }
    .article-cta-inner {
      background: var(--white);
      border: 1px solid rgba(139,158,139,0.2);
      border-radius: 18px;
      padding: 40px;
      text-align: center;
    }
    .article-cta-inner p {
      font-size: 16px; line-height: 1.75; color: #5a5a52;
      font-style: italic; margin-bottom: 24px;
    }
    .btn {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 14px 32px; border-radius: 50px; font-size: 15px;
      font-weight: 500; text-decoration: none; cursor: pointer;
      transition: all 0.3s ease; border: none;
      font-family: 'DM Sans', sans-serif;
    }
    .btn-primary { background: var(--dark-green); color: var(--white); }
    .btn-primary:hover {
      background: var(--deep-sage); transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(45,59,45,0.2);
    }

    .article-footer-nav {
      max-width: 720px; margin: 56px auto 0;
      padding: 0 24px 90px; text-align: center;
    }
    .article-footer-nav a {
      display: inline-flex; align-items: center; gap: 8px;
      font-size: 14px; font-weight: 500; color: var(--dark-green);
      text-decoration: none; letter-spacing: 0.5px;
    }
    .article-footer-nav a .material-icons-outlined { font-size: 18px; }

    /* ─── Footer ─── */
    .footer {
      background: var(--dark-green); color: rgba(255,255,255,0.7);
      padding: 80px 24px 40px;
    }
    .footer-inner {
      max-width: 1100px; margin: 0 auto;
      display: grid; grid-template-columns: 1.5fr 1fr;
      gap: 60px; padding-bottom: 40px;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .footer-brand span {
      font-family: 'Cormorant Garamond', serif;
      font-size: 28px; color: var(--white);
      display: block; margin-bottom: 12px;
    }
    .footer-brand p { font-size: 15px; font-style: italic; }
    .footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-col h5 {
      font-size: 14px; font-weight: 600; color: var(--white);
      margin-bottom: 16px; letter-spacing: 1px; text-transform: uppercase;
    }
    .footer-col a {
      display: block; font-size: 14px; color: rgba(255,255,255,0.7);
      text-decoration: none; margin-bottom: 10px; transition: color 0.3s;
    }
    .footer-col a:hover { color: var(--white); }
    .footer-bottom {
      text-align: center; font-size: 13px;
      padding-top: 32px; color: rgba(255,255,255,0.5);
    }
    @media (max-width: 768px) {
      .footer-inner { grid-template-columns: 1fr; gap: 40px; }
      .footer-cols { grid-template-columns: 1fr; gap: 32px; }
      .article-cta-inner { padding: 32px 24px; }
    }

/* ── Markdown-rendered articles: h3 = FAQ question, bare tables = data tables ── */
.article-body h3 {
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: 18px; color: var(--dark-green); margin: 30px 0 8px;
}
.article-body table {
  width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: 15.5px;
}
.article-body table th,
.article-body table td {
  text-align: left; padding: 12px 14px; vertical-align: top;
  border-bottom: 1px solid rgba(139,158,139,0.2); line-height: 1.5;
}
.article-body table thead th {
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  color: var(--dark-green); font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.article-body table tbody tr:last-child td { border-bottom: none; }
.article-body table td:first-child { font-weight: 600; color: var(--charcoal); white-space: nowrap; }
@media (max-width: 600px) {
  .article-body table { font-size: 14px; }
  .article-body table th, .article-body table td { padding: 10px 8px; }
}
