/*
Theme Name: Chipsmayai
Theme URI: https://chipsmayai.com
Author: ValleSites
Author URI: https://vallesites.com
Description: A world-class WordPress theme for the Potato Council of Tanzania (chipsmayai.com). Built around the AGCOT four-corridor framework, it pairs a serif/sans editorial aesthetic with a soil-and-tuber colour palette, a featured corridor grid, and bespoke sections for Tanzania's potato value chain story. Auto-imports 10 fully-populated pages and builds the primary menu on activation — install and the site is live. Made with care by ValleSites — vallesites.com.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chipsmayai
Tags: agriculture, africa, editorial, custom-colors, custom-menu, featured-images, custom-logo, threaded-comments, translation-ready, two-columns, full-width-template

Chipsmayai WordPress Theme, (C) 2026 ValleSites.
Chipsmayai is distributed under the terms of the GNU GPL.
*/

  :root {
    --soil: #2a1a0d;
    --soil-deep: #1a1208;
    --soil-light: #3d2516;
    --tuber: #c8924a;
    --tuber-bright: #e0a85c;
    --leaf: #4a6b2a;
    --leaf-deep: #2f4519;
    --cream: #f4ead5;
    --cream-soft: #ebe0c5;
    --paper: #fbf6e9;
    --ink: #1a1208;
    --rust: #a64528;
    --rust-bright: #c95937;
  }

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

  body {
    font-family: 'Public Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    font-size: 16px;
    overflow-x: hidden;
  }

  h1, h2, h3, .display {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  /* ============================================
     TOP BAR
  ============================================ */
  .topbar {
    background: var(--soil-deep);
    color: var(--cream-soft);
    font-size: 0.78rem;
    padding: 0.5rem 0;
    letter-spacing: 0.05em;
  }
  .topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .topbar a { color: var(--tuber-bright); text-decoration: none; }
  .topbar-tag {
    text-transform: uppercase;
    font-weight: 600;
  }

  /* ============================================
     HEADER / NAV
  ============================================ */
  header {
    background: var(--paper);
    border-bottom: 1px solid rgba(42, 26, 13, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
  }
  nav {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--soil);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .logo-mark {
    width: 36px;
    height: 36px;
    background: var(--soil);
    border-radius: 50%;
    position: relative;
    display: inline-block;
  }
  .logo-mark::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--tuber);
    box-shadow: inset -3px -3px 8px rgba(42, 26, 13, 0.4);
  }
  .logo-mark::after {
    content: '';
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--soil);
    top: 12px; left: 14px;
    box-shadow: 8px 4px 0 var(--soil), 4px 12px 0 var(--soil);
  }
  .logo small {
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--soil-light);
    display: block;
    line-height: 1;
    margin-top: 4px;
  }

  ul.menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
  }
  ul.menu a {
    color: var(--soil);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
  }
  ul.menu a:hover { color: var(--rust); }
  .btn-cta {
    background: var(--soil);
    color: var(--cream) !important;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    font-weight: 600 !important;
    transition: all 0.25s;
  }
  .btn-cta:hover {
    background: var(--rust);
    transform: translateY(-1px);
  }

  /* ============================================
     HERO — Editorial, text-forward
  ============================================ */
  .hero {
    background: var(--soil);
    color: var(--cream);
    padding: 6rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(ellipse 60% 50% at 15% 25%, rgba(200, 146, 74, 0.18) 0%, transparent 60%),
      radial-gradient(ellipse 50% 40% at 85% 75%, rgba(166, 69, 40, 0.12) 0%, transparent 60%);
    pointer-events: none;
  }
  .hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
  }
  .hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image:
      url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
  }
  .hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
  }
  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(244, 234, 213, 0.15);
    font-family: 'Public Sans', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--cream-soft);
    font-weight: 500;
  }
  .hero-meta .seal {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--tuber-bright);
    font-weight: 700;
  }
  .hero-meta .seal svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
  }
  .hero-eyebrow {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--tuber-bright);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
  }
  .hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--tuber-bright);
  }
  h1.hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 7vw, 6rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
    color: var(--cream);
    max-width: 18ch;
  }
  h1.hero-title em {
    font-style: italic;
    color: var(--tuber-bright);
    font-weight: 600;
  }
  .hero-lede {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--cream-soft);
    margin-bottom: 2.6rem;
    max-width: 640px;
    line-height: 1.55;
  }
  .hero-lede strong {
    color: var(--cream);
    font-weight: 600;
  }
  .hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
  }
  .btn {
    display: inline-block;
    padding: 0.95rem 1.7rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
  }
  .btn-primary {
    background: var(--tuber);
    color: var(--soil-deep);
  }
  .btn-primary:hover {
    background: var(--tuber-bright);
    transform: translateY(-2px);
  }
  .btn-ghost {
    color: var(--cream);
    border: 1px solid rgba(244, 234, 213, 0.3);
    background: transparent;
  }
  .btn-ghost:hover {
    border-color: var(--tuber-bright);
    color: var(--tuber-bright);
  }

  /* Editorial "press release" card on hero */
  .hero-anchor {
    margin-top: 3rem;
    padding: 1.4rem 1.6rem;
    background: rgba(244, 234, 213, 0.06);
    border-left: 3px solid var(--tuber);
    border-radius: 0 4px 4px 0;
    max-width: 600px;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--cream-soft);
  }
  .hero-anchor cite {
    display: block;
    margin-top: 0.6rem;
    font-style: normal;
    font-family: 'Public Sans', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--tuber-bright);
    font-weight: 600;
  }

  /* Decorative editorial mark (corner stamp) */
  .hero-stamp {
    position: absolute;
    top: 5rem;
    right: 1.5rem;
    width: 140px;
    height: 140px;
    opacity: 0.7;
    pointer-events: none;
  }
  .hero-stamp svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
  }
  @media (max-width: 980px) {
    .hero-stamp { width: 96px; height: 96px; top: 1.5rem; right: 1rem; opacity: 0.5; }
  }

  /* Force any SVG inside the hero to obey limits — defensive */
  .hero svg { max-width: 100%; height: auto; }
  .hero img { max-width: 100%; height: auto; display: block; }

  /* ============================================
     STATS STRIP
  ============================================ */
  .stats {
    background: var(--cream);
    padding: 3rem 1.5rem;
    border-top: 4px solid var(--tuber);
  }
  .stats-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  .stat {
    border-left: 3px solid var(--rust);
    padding-left: 1.2rem;
  }
  .stat-num {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 2.4rem;
    color: var(--soil);
    line-height: 1;
    margin-bottom: 0.4rem;
  }
  .stat-num em {
    font-style: italic;
    color: var(--rust);
  }
  .stat-lbl {
    font-size: 0.85rem;
    color: var(--soil-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
  }

  /* ============================================
     SECTIONS GENERAL
  ============================================ */
  section.block {
    padding: 5rem 1.5rem;
  }
  .container {
    max-width: 1240px;
    margin: 0 auto;
  }
  .section-eyebrow {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--rust);
    margin-bottom: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
  }
  .section-eyebrow::before {
    content: '';
    width: 24px; height: 1px;
    background: var(--rust);
  }
  h2.section-title {
    font-size: clamp(2rem, 3.6vw, 3rem);
    color: var(--soil);
    margin-bottom: 1.5rem;
    max-width: 800px;
  }
  h2.section-title em {
    font-style: italic;
    color: var(--rust);
    font-weight: 600;
  }
  .section-lede {
    font-size: 1.1rem;
    color: var(--soil-light);
    max-width: 720px;
    margin-bottom: 3rem;
  }

  /* ============================================
     MANDATES GRID
  ============================================ */
  .mandates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .mandate {
    background: var(--cream);
    padding: 2.2rem;
    border-radius: 4px;
    border-top: 3px solid var(--leaf);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }
  .mandate:nth-child(2) { border-top-color: var(--rust); }
  .mandate:nth-child(3) { border-top-color: var(--tuber); }
  .mandate:nth-child(4) { border-top-color: var(--soil); }
  .mandate:nth-child(5) { border-top-color: var(--leaf); }
  .mandate:nth-child(6) { border-top-color: var(--rust); }
  .mandate:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(42, 26, 13, 0.08);
  }
  .mandate-num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--rust);
    margin-bottom: 0.6rem;
  }
  .mandate h3 {
    font-size: 1.4rem;
    color: var(--soil);
    margin-bottom: 0.9rem;
  }
  .mandate p {
    font-size: 0.95rem;
    color: var(--soil-light);
    line-height: 1.6;
  }

  /* ============================================
     CHIPSI MAYAI BLOCK
  ============================================ */
  .chipsi {
    background: var(--soil);
    color: var(--cream);
    position: relative;
    overflow: hidden;
  }
  .chipsi::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--tuber) 0%, transparent 70%);
    opacity: 0.15;
  }
  .chipsi-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
  }
  .chipsi h2 {
    color: var(--cream);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
  }
  .chipsi h2 em {
    color: var(--tuber-bright);
    font-style: italic;
  }
  .chipsi p {
    color: var(--cream-soft);
    font-size: 1.1rem;
    margin: 1.5rem 0;
    line-height: 1.7;
  }
  .chipsi-art {
    aspect-ratio: 1;
    background:
      radial-gradient(circle at 50% 50%, var(--tuber) 0%, var(--rust) 60%, transparent 70%),
      var(--soil-deep);
    border-radius: 50%;
    position: relative;
    max-width: 420px;
    justify-self: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  }
  .chipsi-art::before {
    content: '🍳';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
  }

  /* ============================================
     STRATEGY STRIP
  ============================================ */
  .strategy {
    background: var(--cream-soft);
  }
  .strategy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
  }
  .frame {
    background: var(--paper);
    padding: 1.8rem;
    border-radius: 4px;
    border-bottom: 3px solid var(--soil);
  }
  .frame .label {
    font-size: 0.75rem;
    color: var(--rust);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: 0.6rem;
  }
  .frame h4 {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--soil);
    margin-bottom: 0.5rem;
  }
  .frame p {
    font-size: 0.9rem;
    color: var(--soil-light);
    line-height: 1.5;
  }

  /* ============================================
     AGCOT CORRIDORS BLOCK
  ============================================ */
  .corridors {
    background: var(--paper);
    border-top: 1px solid var(--cream-soft);
  }
  .corridors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
  }
  .corridor {
    background: var(--cream);
    padding: 1.6rem 1.4rem 1.8rem;
    border-radius: 6px;
    border-top: 4px solid var(--soil);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
  }
  .corridor.c-south { border-top-color: var(--leaf); }
  .corridor.c-north { border-top-color: var(--tuber); }
  .corridor.c-central { border-top-color: var(--rust); }
  .corridor.c-mtwara { border-top-color: var(--soil); }

  .corridor-tag {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--rust);
    margin-bottom: 0.5rem;
  }
  .corridor.c-south  .corridor-tag { color: var(--leaf-deep); }
  .corridor.c-north  .corridor-tag { color: #8a6020; }
  .corridor.c-central .corridor-tag { color: var(--rust); }
  .corridor.c-mtwara .corridor-tag { color: var(--soil); }

  .corridor h4 {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--soil);
    margin-bottom: 0.7rem;
    line-height: 1.1;
  }
  .corridor-regions {
    font-size: 0.85rem;
    color: var(--soil-light);
    line-height: 1.45;
    margin-bottom: 1rem;
    font-style: italic;
  }
  .corridor-role {
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--cream-soft);
  }
  .corridor-role strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    color: var(--soil);
    margin-bottom: 0.25rem;
  }
  .corridor-role span {
    font-size: 0.82rem;
    color: var(--soil-light);
    line-height: 1.45;
  }
  .corridor-coda {
    margin-top: 2.5rem;
    padding: 1.5rem 1.8rem;
    background: var(--soil);
    color: var(--cream);
    border-radius: 4px;
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    line-height: 1.4;
    font-style: italic;
  }
  .corridor-coda strong {
    color: var(--tuber-bright);
    font-style: normal;
    font-weight: 600;
  }

  /* ============================================
     FEATURE: WORLD POTATO CONGRESS
  ============================================ */
  .feature {
    background: var(--leaf-deep);
    color: var(--cream);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.4) 100%);
  }
  .feature-inner { position: relative; max-width: 800px; margin: 0 auto; }
  .feature .eyebrow {
    color: var(--tuber-bright);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
  }
  .feature h2 {
    color: var(--cream);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 1.5rem;
  }
  .feature p {
    color: var(--cream-soft);
    font-size: 1.15rem;
    margin-bottom: 2.2rem;
    line-height: 1.6;
  }
  .feature-date {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--tuber-bright);
    margin-bottom: 2.2rem;
  }

  /* ============================================
     FOOTER
  ============================================ */
  footer {
    background: var(--soil-deep);
    color: var(--cream-soft);
    padding: 4rem 1.5rem 1.5rem;
  }
  .foot-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
  }
  footer h5 {
    color: var(--tuber-bright);
    font-family: 'Public Sans', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-weight: 600;
  }
  footer ul { list-style: none; }
  footer li { margin-bottom: 0.6rem; font-size: 0.9rem; }
  footer a { color: var(--cream-soft); text-decoration: none; transition: color 0.2s; }
  footer a:hover { color: var(--tuber-bright); }
  .foot-quote {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--cream);
    line-height: 1.5;
    margin-top: 1rem;
    border-left: 2px solid var(--tuber);
    padding-left: 1rem;
  }
  .foot-bar {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(244, 234, 213, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(244, 234, 213, 0.6);
  }

  /* ============================================
     RESPONSIVE
  ============================================ */
  @media (max-width: 980px) {
    .hero-inner, .chipsi-inner { grid-template-columns: 1fr; }
    .hero-art, .chipsi-art { max-width: 320px; margin: 0 auto; }
    .stats-inner, .strategy-grid, .corridors-grid { grid-template-columns: repeat(2, 1fr); }
    .mandates { grid-template-columns: repeat(2, 1fr); }
    .foot-inner { grid-template-columns: 1fr 1fr; }
    ul.menu { display: none; }
  }
  @media (max-width: 600px) {
    .stats-inner, .strategy-grid, .mandates, .corridors-grid { grid-template-columns: 1fr; }
    .foot-inner { grid-template-columns: 1fr; }
    .topbar-inner { flex-direction: column; gap: 0.3rem; text-align: center; }
    section.block { padding: 3.5rem 1.5rem; }
    .foot-bar { flex-direction: column; gap: 0.5rem; text-align: center; }
  }

/* ============================================
   WORDPRESS-SPECIFIC ENHANCEMENTS
============================================ */

/* Default page article styling */
.site-content {
  background: var(--paper);
}
.page-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.page-article .entry-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--cream-soft);
}
.page-article .entry-eyebrow {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}
.page-article h1.entry-title {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--soil);
  margin-bottom: 1.2rem;
}
.page-article .entry-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}
.page-article .entry-content h2 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--soil);
  margin: 2.8rem 0 1rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.page-article .entry-content h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--soil);
  margin: 2rem 0 0.8rem;
}
.page-article .entry-content h4 {
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--soil-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.8rem 0 0.6rem;
}
.page-article .entry-content p {
  margin-bottom: 1.2rem;
}
.page-article .entry-content a {
  color: var(--rust);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.page-article .entry-content a:hover {
  color: var(--rust-bright);
}
.page-article .entry-content strong {
  color: var(--soil);
  font-weight: 700;
}
.page-article .entry-content blockquote {
  border-left: 4px solid var(--tuber);
  padding: 0.4rem 0 0.4rem 1.6rem;
  margin: 1.8rem 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--soil);
  line-height: 1.45;
}
.page-article .entry-content ul,
.page-article .entry-content ol {
  margin: 0 0 1.4rem 1.5rem;
}
.page-article .entry-content li {
  margin-bottom: 0.5rem;
}
.page-article .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.92rem;
}
.page-article .entry-content table th {
  background: var(--soil);
  color: var(--cream);
  padding: 0.8rem 1rem;
  text-align: left;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.page-article .entry-content table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--cream-soft);
  vertical-align: top;
}
.page-article .entry-content table tr:nth-child(even) td {
  background: var(--cream);
}
.page-article .entry-content hr {
  border: none;
  height: 1px;
  background: var(--cream-soft);
  margin: 2.5rem 0;
}
.page-article .entry-content code {
  background: var(--cream);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.92em;
  color: var(--rust);
}

/* Page header banner for non-front pages */
.page-banner {
  background: var(--soil);
  color: var(--cream);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(200, 146, 74, 0.18), transparent 60%);
  pointer-events: none;
}
.page-banner-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.page-banner .eyebrow {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--tuber-bright);
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}
.page-banner h1 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.page-banner .lede {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--cream-soft);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Breadcrumb */
.breadcrumb {
  max-width: 820px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.85rem;
  color: var(--soil-light);
}
.breadcrumb a {
  color: var(--rust);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb .sep {
  margin: 0 0.5rem;
  color: var(--soil-light);
  opacity: 0.5;
}

/* Posts list (archive/blog) */
.posts-list {
  max-width: 920px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.posts-list article.post {
  padding: 2rem 0;
  border-bottom: 1px solid var(--cream-soft);
}
.posts-list article.post:last-child {
  border-bottom: none;
}
.posts-list article.post h2 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--soil);
  margin-bottom: 0.6rem;
  line-height: 1.15;
}
.posts-list article.post h2 a {
  color: inherit;
  text-decoration: none;
}
.posts-list article.post h2 a:hover {
  color: var(--rust);
}
.posts-list article.post .post-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rust);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.posts-list article.post .post-excerpt {
  color: var(--soil-light);
  line-height: 1.6;
}

/* WordPress alignment classes */
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignwide { max-width: 1100px; margin: 1.5rem auto; }
.alignfull { width: 100vw; max-width: 100vw; margin: 1.5rem calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-size: 0.85rem;
  color: var(--soil-light);
  font-style: italic;
  text-align: center;
  margin-top: 0.4rem;
}

/* Search form */
.search-form {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--cream-soft);
  border-radius: 3px;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.95rem;
  background: var(--paper);
}
.search-form button {
  padding: 0.7rem 1.2rem;
  background: var(--soil);
  color: var(--cream);
  border: none;
  border-radius: 3px;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
}
.search-form button:hover {
  background: var(--rust);
}

/* Sticky post indicator */
article.sticky::before {
  content: "★ Featured";
  display: inline-block;
  background: var(--tuber);
  color: var(--soil);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* Pagination */
.pagination {
  margin-top: 3rem;
  text-align: center;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  margin: 0 0.2rem;
  background: var(--cream);
  color: var(--soil);
  text-decoration: none;
  border-radius: 3px;
  font-weight: 600;
}
.pagination .page-numbers.current {
  background: var(--soil);
  color: var(--cream);
}
.pagination .page-numbers:hover {
  background: var(--tuber);
  color: var(--soil);
}

/* Comments */
.comments-area {
  max-width: 820px;
  margin: 3rem auto;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--cream-soft);
}
.comments-title {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--soil);
  margin-bottom: 1.5rem;
}

/* ValleSites credit pill in footer */
.vallesites-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(200, 146, 74, 0.12);
  border: 1px solid rgba(200, 146, 74, 0.25);
  border-radius: 99px;
  font-size: 0.8rem;
  color: var(--tuber-bright);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-top: 1rem;
}
.vallesites-credit:hover {
  background: rgba(200, 146, 74, 0.2);
  color: var(--cream);
}
.vallesites-credit svg {
  width: 14px;
  height: 14px;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
}
.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.6rem 1rem;
  background: var(--soil);
  color: var(--cream);
  text-decoration: none;
  border-radius: 3px;
}

@media (max-width: 720px) {
  .page-article { padding: 2.5rem 1.2rem 3rem; }
  .page-banner { padding: 3.5rem 1.2rem 3rem; }
}

/* ============================================
   LEAD QUOTE / EDITORIAL PULLOUT
============================================ */
.lead-quote {
  background: var(--paper);
  padding: 6rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(122, 80, 40, 0.08);
  border-bottom: 1px solid rgba(122, 80, 40, 0.08);
}
.lead-quote-inner {
  max-width: 880px;
  margin: 0 auto;
}
.lead-quote-mark {
  font-family: 'Fraunces', serif;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--tuber);
  margin-bottom: 1rem;
  font-style: italic;
  font-weight: 400;
}
.lead-quote blockquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.3;
  color: var(--soil);
  letter-spacing: -0.01em;
  margin: 0 0 1.6rem;
  border: none;
  padding: 0;
}
.lead-quote cite {
  font-family: 'Public Sans', sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--rust);
}
.lead-quote cite::before {
  content: "— ";
}

/* ============================================
   NEWS TEASERS / LATEST FROM THE FIELD
============================================ */
.news-block {
  background: var(--cream);
  padding: 6rem 1.5rem;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.news-card {
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  border: 1px solid rgba(122, 80, 40, 0.08);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(42, 26, 13, 0.1);
  border-color: var(--tuber);
}
.news-card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--soil) 0%, var(--rust) 100%);
  position: relative;
  overflow: hidden;
}
.news-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
}
.news-card-image .img-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cream);
  opacity: 0.85;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  background: rgba(0,0,0,0.25);
  border-radius: 2px;
}
.news-card.tuber  .news-card-image { background: linear-gradient(135deg, var(--tuber) 0%, var(--rust) 100%); }
.news-card.leaf   .news-card-image { background: linear-gradient(135deg, var(--leaf-deep) 0%, var(--leaf) 100%); }
.news-card.soil   .news-card-image { background: linear-gradient(135deg, var(--soil) 0%, var(--soil-light) 100%); }
.news-card-body {
  padding: 1.6rem 1.6rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card .meta {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rust);
  margin-bottom: 0.7rem;
  font-weight: 600;
}
.news-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--soil);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}
.news-card p {
  color: var(--soil-light);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.2rem;
  flex: 1;
}
.news-card .read-more {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--rust);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.news-card .read-more:hover {
  color: var(--tuber);
}

/* ============================================
   PARTNERS / MEMBERS LOGO STRIP
============================================ */
.partners-block {
  background: var(--paper);
  padding: 5rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(122, 80, 40, 0.06);
}
.partners-label {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--soil-light);
  font-weight: 600;
  margin-bottom: 2rem;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.partner-logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--soil-light);
  letter-spacing: -0.01em;
  text-align: center;
  opacity: 0.7;
  transition: opacity 0.3s;
  text-decoration: none;
  line-height: 1.2;
}
.partner-logo:hover {
  opacity: 1;
  color: var(--soil);
}
.partner-logo small {
  display: block;
  font-family: 'Public Sans', sans-serif;
  font-weight: 500;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rust);
  margin-top: 0.2rem;
}

/* ============================================
   FINAL CTA BLOCK (above footer)
============================================ */
.final-cta {
  background: linear-gradient(135deg, var(--soil) 0%, var(--rust) 100%);
  color: var(--cream);
  padding: 6rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}
.final-cta-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}
.final-cta .eyebrow {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--tuber-bright);
  font-weight: 700;
  margin-bottom: 1.4rem;
  display: inline-block;
}
.final-cta h2 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.final-cta p {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--cream-soft);
  margin-bottom: 2.4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta .btn-primary {
  padding: 1.1rem 2.4rem;
  font-size: 1rem;
}

/* ============================================
   REFINED SECTION HEADERS
============================================ */
.block { padding: 5.5rem 1.5rem; }
.block .container { max-width: 1180px; margin: 0 auto; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 4rem 1.5rem 3.5rem; }
  .hero-meta { gap: 1rem; padding-bottom: 1.5rem; margin-bottom: 2rem; }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-quote, .news-block, .partners-block, .final-cta { padding: 4rem 1.5rem; }
  .block { padding: 4rem 1.5rem; }
}

/* ============================================
   TEXT-BASED BRAND MARK (replaces SVG logo)
============================================ */
.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tuber) 0%, var(--rust) 100%);
  border-radius: 6px;
  color: var(--cream);
  font-family: 'Public Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(166, 69, 40, 0.25);
}
.foot-logo .brand-mark {
  width: 40px;
  height: 40px;
  font-size: 0.72rem;
}

/* ============================================
   NUCLEAR-OPTION SVG CONTAINMENT
   Prevents any rogue inline SVG from breaking layout
============================================ */
svg {
  max-width: 100%;
  height: auto;
}
.hero svg, .main-nav svg, footer svg {
  max-width: 60px !important;
  max-height: 60px !important;
}

/* Override the stat number em styling if it accidentally inherits */
.stat-num em { font-style: normal; }

/* ============================================
   NAVIGATION SYSTEM (clean horizontal, potatocongress.org-style)
   v1.4 — proper WordPress wp_nav_menu styling
============================================ */

.main-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--cream-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(42, 26, 13, 0.04);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* BRAND --------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none !important;
  color: var(--soil);
  flex-shrink: 0;
}
.brand:hover { color: var(--rust); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--soil);
  letter-spacing: -0.01em;
  text-transform: none;
  text-decoration: none !important;
}
.brand-tag {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--soil-light);
  font-weight: 500;
  margin-top: 0.15rem;
  text-decoration: none !important;
}

/* MENU AREA ----------------------------------- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-list,
.nav-menu ul.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 1.6rem;
  align-items: center;
}
.nav-list li,
.nav-list .menu-item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}
.nav-list li::marker { content: none; }
.nav-list a {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soil);
  text-decoration: none !important;
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
  position: relative;
}
.nav-list a:hover {
  color: var(--rust);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--tuber);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.nav-list a:hover::after,
.nav-list .current-menu-item > a::after,
.nav-list .current_page_item > a::after {
  transform: scaleX(1);
}
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: var(--rust);
}

/* Dropdown caret for items with children */
.nav-list .menu-item-has-children > a::before {
  display: none;
}
.nav-list .menu-item-has-children > a {
  padding-right: 0.2rem;
}
.nav-list .menu-item-has-children > a span.caret,
.nav-list .menu-item-has-children > a:not(:has(span.caret))::after {
  /* fallback noop */
}
.nav-list .menu-item-has-children > a {
  position: relative;
}
/* Add a caret using a real chevron after the link text */
.nav-list .menu-item-has-children > a {
  padding-right: 1rem;
}
.nav-list .menu-item-has-children > a::before {
  content: "▾";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8em;
  color: var(--soil-light);
  pointer-events: none;
}
/* Reset the underline pseudo for parents (it's still ::after) */
.nav-list .menu-item-has-children > a::after {
  bottom: -2px;
}

/* SUBMENU / DROPDOWN -------------------------- */
.nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 230px;
  background: var(--paper);
  border: 1px solid var(--cream-soft);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(42, 26, 13, 0.12);
  padding: 0.5rem 0;
  list-style: none !important;
  margin: 0.6rem 0 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 110;
}
.nav-list .menu-item:hover > .sub-menu,
.nav-list .menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-list .sub-menu li {
  width: 100%;
}
.nav-list .sub-menu a {
  display: block;
  padding: 0.7rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soil);
  border-bottom: 1px solid var(--cream-soft);
}
.nav-list .sub-menu li:last-child a { border-bottom: none; }
.nav-list .sub-menu a::after { display: none; }
.nav-list .sub-menu a:hover {
  background: var(--cream);
  color: var(--rust);
}

/* CTA button in nav --------------------------- */
.nav-menu > .btn,
.main-nav .nav-menu .btn-primary {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  margin-left: 0.6rem;
}

/* MOBILE HAMBURGER --------------------------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--soil);
  transition: all 0.25s ease;
  border-radius: 2px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-inner { padding: 1rem 1.2rem; gap: 1rem; }
  .brand-tag { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 14px 30px rgba(42, 26, 13, 0.1);
    border-bottom: 1px solid var(--cream-soft);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list li { width: 100%; border-bottom: 1px solid var(--cream-soft); }
  .nav-list a { padding: 1rem 0; width: 100%; }
  .nav-list a::after { display: none; }
  .nav-list .menu-item-has-children > a { padding-right: 1rem; }
  .nav-list .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0.5rem 1rem;
    margin: 0 !important;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-list .menu-item-has-children:hover > .sub-menu,
  .nav-list .menu-item-has-children:focus-within > .sub-menu {
    display: flex;
  }
  .nav-list .sub-menu a { border-bottom: none; padding: 0.5rem 0; font-weight: 500; }
  .nav-menu > .btn,
  .main-nav .nav-menu .btn-primary {
    margin: 1rem 0 0;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.2rem;
    font-size: 0.78rem;
  }
}
