:root {
    --navy: #0f2744;
    --navy-mid: #1a3a5c;
    --green: #2d7a4f;
    --green-bright: #38a169;
    --green-light: #68d391;
    --cream: #f8f6f1;
    --white: #ffffff;
    --gray-100: #f0f4f8;
    --gray-300: #cbd5e0;
    --gray-500: #718096;
    --gray-700: #2d3748;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--gray-700);
    overflow-x: hidden;
  }

  /* ARTICLE HEADER */
  .article-header {
    background: var(--navy);
    padding: 140px 5% 80px;
    position: relative; overflow: hidden;
  }
  .article-header::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 96px 20px;
    pointer-events: none;
  }
  .article-header::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 70% at 60% 50%, rgba(45,122,79,0.12) 0%, transparent 65%);
    pointer-events: none;
  }
  .article-header-inner { position: relative; z-index: 1; max-width: 760px; }

  .article-category {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(45,122,79,0.2);
    border: 1px solid rgba(45,122,79,0.4);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 0.6875rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 1.5rem;
    text-decoration: none;
  }

  .article-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; line-height: 1.12;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
  }

  .article-header h1 em { font-style: italic; color: var(--green-light); }

  .article-deck {
    font-size: 1.125rem; line-height: 1.7;
    color: rgba(255,255,255,0.65);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 2rem;
    max-width: 640px;
  }

  .article-meta {
    display: flex; align-items: center; gap: 1.5rem;
    flex-wrap: wrap;
  }
  .meta-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.8125rem; color: rgba(255,255,255,0.45);
    font-weight: 500;
  }
  .meta-item svg { color: var(--green-light); }
  .meta-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.15); }

  /* ARTICLE BODY */
  .article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 5%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 5%;
  }

  /* PROSE */
  .article-prose { min-width: 0; }

  .article-prose p {
    font-size: 1.0625rem; line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    font-weight: 300;
  }

  .article-prose h2 {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700;
    color: var(--navy);
    margin: 2.5rem 0 1rem;
    line-height: 1.2;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-100);
  }

  .article-prose h3 {
    font-family: var(--font-display);
    font-size: 1.1875rem; font-weight: 600;
    color: var(--navy);
    margin: 2rem 0 0.75rem;
  }

  .article-prose strong { font-weight: 600; color: var(--navy); }

  .article-prose ul, .article-prose ol {
    margin: 0 0 1.5rem 1.5rem;
  }
  .article-prose li {
    font-size: 1.0625rem; line-height: 1.75;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-weight: 300;
  }

  /* Callout box */
  .callout {
    background: rgba(45,122,79,0.06);
    border-left: 4px solid var(--green);
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin: 2rem 0;
  }
  .callout p { margin-bottom: 0; font-style: italic; }

  /* Key takeaway box */
  .key-box {
    background: var(--navy);
    border-radius: 12px;
    padding: 28px 32px;
    margin: 2.5rem 0;
  }
  .key-box-label {
    font-size: 0.6875rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 10px;
  }
  .key-box p {
    color: rgba(255,255,255,0.8) !important;
    font-size: 1rem !important;
    margin-bottom: 0 !important;
  }

  /* Table */
  .article-prose table {
    width: 100%; border-collapse: collapse;
    margin: 2rem 0; font-size: 0.9375rem;
  }
  .article-prose th {
    background: var(--navy); color: var(--white);
    padding: 12px 16px; text-align: left;
    font-weight: 600; font-size: 0.8125rem;
    letter-spacing: 0.04em;
  }
  .article-prose td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-300);
    vertical-align: top; line-height: 1.6;
  }
  .article-prose tr:nth-child(even) td { background: var(--gray-100); }

  /* About box */
  .about-box {
    background: var(--cream);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 28px 32px;
    margin-top: 3rem;
  }
  .about-box-label {
    font-size: 0.6875rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--green);
    margin-bottom: 10px;
  }
  .about-box p { font-size: 0.9375rem !important; margin-bottom: 0 !important; }

  /* SIDEBAR */
  .article-sidebar { position: relative; }
  .sidebar-sticky {
    position: sticky; top: 100px;
    display: flex; flex-direction: column; gap: 1.5rem;
  }

  .sidebar-card {
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 24px;
    background: var(--white);
  }

  .sidebar-card-title {
    font-size: 0.6875rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--green);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 6px;
  }
  .sidebar-card-title::before {
    content: ''; width: 16px; height: 2px;
    background: var(--green); display: block;
  }

  .sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .sidebar-links li a {
    font-size: 0.875rem; color: var(--gray-700);
    text-decoration: none; line-height: 1.45;
    transition: color 0.2s;
    display: flex; align-items: flex-start; gap: 7px;
  }
  .sidebar-links li a::before {
    content: '→'; color: var(--green);
    flex-shrink: 0; font-size: 0.75rem; margin-top: 2px;
  }
  .sidebar-links li a:hover { color: var(--navy); }

  .sidebar-cta {
    background: var(--navy);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
  }
  .sidebar-cta p {
    font-size: 0.875rem; color: rgba(255,255,255,0.6);
    line-height: 1.6; margin-bottom: 16px;
  }
  .sidebar-cta a {
    display: block;
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600; font-size: 0.875rem;
    transition: background 0.2s;
  }
  .sidebar-cta a:hover { background: var(--green-bright); }

  /* BREADCRUMB */
  .breadcrumb {
    background: var(--cream);
    padding: 14px 5%;
    border-bottom: 1px solid var(--gray-300);
    margin-top: 72px;
  }
  .breadcrumb-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8125rem; color: var(--gray-500);
  }
  .breadcrumb-inner a { color: var(--gray-500); text-decoration: none; }
  .breadcrumb-inner a:hover { color: var(--green); }
  .breadcrumb-sep { color: var(--gray-300); }

  /* FOOTER */
  footer {
    background: #080f1a;
    padding: 40px 5% 24px;
    color: rgba(255,255,255,0.4);
    margin-top: 80px;
  }
  .footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 24px;
  }
  .footer-links-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
  .footer-links-row a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.8125rem; transition: color 0.2s; }
  .footer-links-row a:hover { color: rgba(255,255,255,0.8); }
  .footer-bottom { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; font-size: 0.8125rem; flex-wrap: wrap; gap: 8px; }
  .footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { display: none; }
  }


  /* ── BUTTON COLOR FIX — override any inherited link color ── */
  .btn-primary,
  .btn-primary:link,
  .btn-primary:visited,
  a.btn-primary,
  a.btn-primary:link,
  a.btn-primary:visited {
    color: var(--white) !important;
    text-decoration: none !important;
  }
  .btn-primary:hover,
  a.btn-primary:hover {
    color: var(--white) !important;
    background: var(--green-bright) !important;
    transform: translateY(-1px);
  }
  .btn-secondary,
  .btn-secondary:link,
  .btn-secondary:visited,
  a.btn-secondary,
  a.btn-secondary:link,
  a.btn-secondary:visited {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none !important;
  }
  .btn-ghost,
  a.btn-ghost,
  a.btn-ghost:link,
  a.btn-ghost:visited {
    text-decoration: none !important;
  }

  /* Animate bars when checkbox is checked */

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%; height: 72px;
    background: rgba(15,39,68,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav-logo { display: flex; align-items: center; text-decoration: none; }
  .nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
  .nav-links a {
    color: rgba(255,255,255,0.75); text-decoration: none;
    font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; transition: color 0.2s;
  }
  .nav-links a:hover { color: #ffffff; }
  .nav-cta { background: #2d7a4f !important; color: #ffffff !important; padding: 0.5rem 1.25rem; border-radius: 6px; font-weight: 600 !important; }
  .nav-cta:hover { background: #38a169 !important; }
  .hbtn {
    display: none; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 44px; height: 44px;
    background: none; border: none; cursor: pointer; padding: 4px;
    -webkit-tap-highlight-color: transparent;
  }
  .hbtn span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.9); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; pointer-events: none; }
  .hbtn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hbtn.open span:nth-child(2) { opacity: 0; }
  .hbtn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mdrawer {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(15,39,68,0.99); border-bottom: 2px solid rgba(45,122,79,0.5);
    padding: 1.25rem 5%; flex-direction: column; z-index: 99;
  }
  .mdrawer.open { display: flex; }
  .mdrawer a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 1rem; font-weight: 500; padding: 0.875rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); display: block; }
  .mdrawer a:last-child { border-bottom: none; }
  .mdrawer .mcta { margin-top: 0.75rem; background: #2d7a4f; color: #ffffff !important; padding: 0.875rem 1.5rem; border-radius: 8px; text-align: center; font-weight: 600; border-bottom: none !important; }
  @media (max-width: 768px) {
    .hbtn { display: flex; }
    .nav-links { display: none; }
  }

  @media (max-width: 640px) {
    nav { padding: 0 4%; }
    .article-header { padding: 120px 4% 60px; }
    .article-layout { padding: 50px 4%; }
  }
  /* Prose links + sources (matches underpaid-producers-labor-risk pattern) */
  .article-prose p a, .article-prose li a {
    color: var(--green); text-decoration: none;
    border-bottom: 1px solid rgba(45,122,79,0.35);
    transition: border-color 0.2s, color 0.2s;
  }
  .article-prose p a:hover, .article-prose li a:hover {
    color: var(--green-bright); border-bottom-color: var(--green-bright);
  }
  .sources-box {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 2.5rem 0 0;
  }
  .sources-box-label {
    font-size: 0.6875rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--green); margin-bottom: 12px;
  }
  .sources-box ol { margin: 0 0 0 1.25rem; }
  .sources-box li {
    font-size: 0.875rem !important; line-height: 1.6;
    color: var(--gray-500); margin-bottom: 8px;
  }
  .sources-box li a { color: var(--gray-700); }
  .formula-box {
    background: var(--gray-100);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 1.5rem 0 2rem;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: var(--navy);
    line-height: 1.9;
  }
