/* ═══════════════════════════════════════════════════════════════════
   MESA ROBLES — brand.css
   Source of truth for all design tokens and site-wide components.
   Load this first — before any component or page CSS.
   Never hard-code a hex that exists as a token.
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. COLOR TOKENS ──────────────────────────────────────────────── */

:root {
  /* Primary palette */
  --saddle:    #613921;    /* Primary ink. Headings. */
  --whitetail: #c29c7e;    /* Tan accent. Secondary. */
  --chambray:  #aebcc7;    /* Cool accent. Sparingly. */
  --juniper:   #233128;    /* Dark sections. Near-black. */
  --sagebrush: #595b49;    /* Muted text. Olive gray. */
  --rawhide:   #eae1d2;    /* Cream paper ground. */

  --crest-ink: #613921;    /* Zwobles seal stroke */

  /* Paper system */
  --paper:     #eae1d2;    /* Same as rawhide */
  --paper-hi:  #f1ebdd;    /* Cards. Elevated surfaces. */
  --paper-lo:  #e0d5c2;    /* Wells. Recessed sections. */

  /* Ink system */
  --line:         #cdbfa8;  /* Hairline rules. Borders. */
  --line-soft:    #d8cdb8;  /* Soft rules inside cards. */
  --ink:          #2a2018;  /* Body copy. */
  --ink-mut:      #6b5d4a;  /* Muted / instructional text. */
  --ink-on-dark:  #e7ddcb;  /* Text on juniper backgrounds. */
  --ink-on-dark-mut: #a9a994; /* Muted text on dark. */

  /* Margin note colors */
  --note-family:  var(--saddle);
  --note-cook:    var(--juniper);
  --note-life:    #9a6a4a;
  --note-yours:   var(--sagebrush);

  /* Brewpub badges */
  --badge-kitchen:    #e2703d;
  --badge-signature:  #2c83be;
  --badge-sig-border: #c19a3c;
}


/* ── 2. DEPARTMENT LEAN SYSTEM ────────────────────────────────────── */

:root {
  --lean-table:  #613921;   /* I   The Table      — Saddle */
  --lean-smoke:  #233128;   /* II  Smoke & Salt   — Juniper */
  --lean-cellar: #a9743f;   /* III The Cellar     — Amber */
  --lean-craft:  #595b49;   /* IV  The Craft      — Sagebrush */
  --lean-cure:   #7c8a96;   /* V   Craft & Cure   — Slate */
  --lean-notes:  #613921;   /* VI  The Notes      — Saddle */
  --lean: var(--saddle);    /* fallback */
}

.lean-table  { --lean: var(--lean-table); }
.lean-smoke  { --lean: var(--lean-smoke); }
.lean-cellar { --lean: var(--lean-cellar); }
.lean-craft  { --lean: var(--lean-craft); }
.lean-cure   { --lean: var(--lean-cure); }
.lean-notes  { --lean: var(--lean-notes); }


/* ── 3. TYPOGRAPHY TOKENS ─────────────────────────────────────────── */

:root {
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body:    "EB Garamond", Georgia, serif;
  --mono:    "Spline Sans Mono", ui-monospace, "Courier New", monospace;

  /* Type scale */
  --fs-mega:  clamp(56px, 9vw, 132px);    /* Wordmark / hero display */
  --fs-h1:    clamp(40px, 5.5vw, 76px);   /* Dept names */
  --fs-h2:    clamp(30px, 3.4vw, 46px);   /* Section headings */
  --fs-h3:    26px;                        /* Subsection heads */
  --fs-lead:  22px;                        /* Lead body */
  --fs-body:  18px;                        /* Standard body */
  --fs-small: 15px;                        /* Supporting text */
  --fs-label: 12px;                        /* Mono labels */
  --fs-micro: 10.5px;                      /* Fine print */

  /* Page gutters */
  --mx:   clamp(24px, 6vw, 120px);
  --maxw: 1280px;
}


/* ── 4. SPACING TOKENS ────────────────────────────────────────────── */

:root {
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-8:  3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;
}


/* ── 5. RESET & BASE ──────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(97,57,33,0.035) 1px, transparent 1px),
    radial-gradient(rgba(97,57,33,0.025) 1px, transparent 1px);
  background-size: 7px 7px, 13px 13px;
  background-position: 0 0, 3px 4px;
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-feature-settings: "liga" 1, "onum" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.02; }
p   { margin: 0 0 1em; }


/* ── 6. GRAIN OVERLAY ─────────────────────────────────────────────── */

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("grain.png");
  background-repeat: repeat;
  background-size: 400px 400px;
  opacity: 0.025;
  mix-blend-mode: multiply;
}


/* ── 7. LAYOUT ────────────────────────────────────────────────────── */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--mx);
}

.section { padding: clamp(56px, 8vw, 110px) 0; }


/* ── 8. SITE HEADER ───────────────────────────────────────────────── */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 100;
}

.masthead .brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.masthead .brand .wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 0.01em;
  color: var(--saddle);
  line-height: 0.98;
  white-space: nowrap;
}

.masthead .brand .wordmark small {
  display: block;
  margin-top: 6px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mut);
  font-weight: 400;
}

.mast-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

/* nav */
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
}

.nav a:hover { border-color: var(--saddle); }
.nav a.active { color: var(--saddle); border-color: var(--saddle); }

.nav-item { position: relative; display: flex; align-items: center; }

.nav-item.has-sub > a::after {
  content: "\25BE";
  font-size: 8px;
  margin-left: 7px;
  color: var(--whitetail);
  vertical-align: middle;
}

.nav-item:hover.has-sub > a::after,
.nav-item:focus-within.has-sub > a::after { color: var(--saddle); }

.submenu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 9px;
  min-width: 248px;
  background: var(--paper-hi);
  border: 1px solid var(--line);
  box-shadow: 0 20px 44px -28px rgba(42,32,24,0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity .15s, transform .15s;
  z-index: 80;
  padding: 6px;
}

/* hover bridge keeps menu open when cursor moves from link to submenu */
.submenu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav .submenu a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav .submenu a:last-child { border-bottom: none; }
.nav .submenu a:hover { background: var(--paper-lo); color: var(--saddle); }
.nav .submenu a .rn { color: var(--whitetail); font-size: 9.5px; min-width: 18px; }

.submenu .sub-head {
  padding: 7px 12px 9px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mut);
}

/* search bar */
.mast-search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: var(--paper-hi);
  padding: 8px 13px;
  transition: border-color .15s;
}

.mast-search:focus-within { border-color: var(--saddle); }

.mast-search .si {
  font-family: var(--display);
  font-size: 17px;
  color: var(--whitetail);
  line-height: 1;
}

.mast-search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 150px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.mast-search input::placeholder {
  color: var(--ink-mut);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}


/* ── 9. SITE FOOTER ───────────────────────────────────────────────── */

.site-foot {
  margin-top: 96px;
  padding: 54px 0 64px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}

.site-foot .col-l { text-align: left; }
.site-foot .col-r { text-align: right; }
.site-foot .coords {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mut);
}


/* ── 10. BUTTONS ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saddle);
  padding: 13px 22px;
  border: 1px solid var(--saddle);
  background: transparent;
  cursor: pointer;
  transition: all .16s;
}

.btn:hover { background: var(--saddle); color: var(--paper-hi); }

.btn--solid {
  background: var(--juniper);
  color: var(--ink-on-dark);
  border-color: var(--juniper);
}

.btn--solid:hover { background: #2f4435; color: #fff; }

.link-arrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saddle);
  border-bottom: 1px solid var(--whitetail);
  padding-bottom: 2px;
}

.link-arrow:hover { border-color: var(--saddle); }


/* ── 11. TYPE HELPERS ─────────────────────────────────────────────── */

.display { font-family: var(--display); }
.italic  { font-style: italic; }
.muted   { color: var(--ink-mut); }
.center  { text-align: center; }

.title {
  font-family: var(--display);
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--saddle);
}

.lead {
  font-family: var(--body);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink);
}

.label {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-mut);
}

.label--lg { font-size: var(--fs-small); letter-spacing: 0.34em; }

.micro {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mut);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.eyebrow .no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--whitetail);
}

.stack-sm > * + * { margin-top: 10px; }


/* ── 12. RULES & ORNAMENTS ────────────────────────────────────────── */

.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

.rule--dbl {
  border: none;
  height: 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rule-diamond {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--whitetail);
}

.rule-diamond::before,
.rule-diamond::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.rule-diamond .dia { font-size: 9px; color: var(--saddle); }
.dia::before { content: "\25C6"; }


/* ── 13. PHOTO PLACEHOLDER ────────────────────────────────────────── */

.ph {
  position: relative;
  overflow: hidden;
  background-color: var(--paper-lo);
  background-image: repeating-linear-gradient(
    -45deg, transparent 0 11px,
    rgba(97,57,33,0.06) 11px 12px
  );
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
}

.ph .ph-cap {
  margin: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mut);
  background: rgba(234,225,210,0.82);
  padding: 5px 9px;
  border: 1px solid var(--line);
}

.ph--dark {
  background-color: #1c271f;
  border-color: #324034;
  background-image: repeating-linear-gradient(
    -45deg, transparent 0 11px,
    rgba(255,255,255,0.05) 11px 12px
  );
}

.ph--dark .ph-cap {
  background: rgba(35,49,40,0.7);
  color: var(--ink-on-dark-mut);
  border-color: #3a4a3c;
}


/* ── 14. STATUS PILLS ─────────────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--ink-mut);
  background: var(--paper-hi);
  white-space: nowrap;
}

.pill--on   { color: var(--juniper); border-color: var(--juniper); }
.pill--web  { color: var(--saddle);  border-color: var(--whitetail); }


/* ── 15. RECORD STAMP ─────────────────────────────────────────────── */

.record {
  border: 1px solid var(--line);
  background: var(--paper-hi);
  font-family: var(--mono);
}

.record .record-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mut);
}

.record dl {
  margin: 0;
  padding: 6px 14px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 18px;
}

.record .rec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line-soft);
}

.record dt { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mut); }
.record dd { margin: 0; font-size: 12px; color: var(--ink); letter-spacing: 0.04em; }

.tick     { color: var(--juniper); }
.tick--off{ color: var(--whitetail); }


/* ── 16. BREWPUB BADGE ────────────────────────────────────────────── */

.brewpub-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  padding: 6px 11px;
  border: 1px solid currentColor;
}

.brewpub-badge svg { width: 21px; height: 24px; flex: none; display: block; }
.brewpub-badge--signature svg { width: 23px; height: 26px; }

.brewpub-badge--inspired {
  color: var(--juniper);
  background: color-mix(in srgb, var(--juniper) 8%, var(--paper-hi));
  border-color: var(--juniper);
}

.brewpub-badge--signature {
  color: var(--sagebrush);
  background: color-mix(in srgb, var(--sagebrush) 9%, var(--paper-hi));
  border-color: #c19a3c;
}

.brewpub-badge--signature .star { color: #c19a3c; }

.brewpub-note {
  font-family: var(--body);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-mut);
  max-width: 560px;
}


/* ── 17. MARGIN NOTE TYPES ────────────────────────────────────────── */

.ntype {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mut);
}

.ntype .gl { font-size: 15px; line-height: 1; filter: saturate(0.85); }

.ntype--family { color: var(--saddle); }
.ntype--cook   { color: var(--juniper); }
.ntype--life   { color: #9a6a4a; }
.ntype--yours  { color: var(--sagebrush); }


/* ── 18. CROSS-SECTION LIVES-IN ───────────────────────────────────── */

.lives-in {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mut);
}

.lives-in .arr { color: var(--whitetail); }
.lives-in b { font-weight: 500; color: var(--saddle); letter-spacing: 0.1em; }


/* ── 19. DEPARTMENT QUOTE ─────────────────────────────────────────── */

.dept-quote {
  background: var(--juniper);
  color: var(--ink-on-dark);
  border: 1px solid var(--juniper);
  padding: clamp(44px, 6vw, 84px) clamp(28px, 5vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dept-quote::before,
.dept-quote::after {
  content: "\201C";
  position: absolute;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(140px, 20vw, 260px);
  line-height: 1;
  color: #2f4435;
  pointer-events: none;
  z-index: 0;
}

.dept-quote::before { top: -0.18em; left: 0.06em; }
.dept-quote::after  { content: "\201D"; bottom: -0.62em; right: 0.06em; }

.dept-quote .q-dia {
  position: relative;
  z-index: 1;
  color: #4a5b46;
  font-size: 10px;
  letter-spacing: 0.5em;
}

.dept-quote q {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(27px, 3.6vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink-on-dark);
  quotes: none;
  max-width: 820px;
  margin: 24px auto 0;
}

.dept-quote q::before,
.dept-quote q::after { content: ""; }

.dept-quote .by {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--whitetail);
}


/* ── 20. CREDO ────────────────────────────────────────────────────── */

.credo { text-align: center; max-width: 760px; margin: 0 auto; }
.credo .q-dia { color: #4a5b46; font-size: 10px; letter-spacing: 0.5em; margin-bottom: 26px; }
.credo .q {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2;
  color: #f6f0e3;
  margin-bottom: 8px;
}
.credo .a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--whitetail);
  margin-top: 30px;
}


/* ── 21. DARK SECTION ─────────────────────────────────────────────── */

.dark { background: var(--juniper); color: var(--ink-on-dark); }
.dark .label, .dark .micro { color: var(--ink-on-dark-mut); }
.dark .title { color: var(--ink-on-dark); }
.dark .rule-diamond::before, .dark .rule-diamond::after { background: #3a4a3c; }
.dark .rule { border-color: #3a4a3c; }


/* ── 22. CREST ────────────────────────────────────────────────────── */

.crest { display: inline-block; line-height: 0; }
.crest svg { display: block; }
.crest .ring-text {
  font-family: var(--mono);
  font-size: 11.2px;
  letter-spacing: 3.2px;
  fill: currentColor;
}
.crest .mono { font-family: var(--display); font-weight: 600; fill: currentColor; }
.crest .estd { font-family: var(--mono); letter-spacing: 2px; fill: currentColor; }


/* ── 23. BREAKPOINTS ──────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .nav { display: none; }
  .mast-search { display: none; }
}

@media (max-width: 900px) {
  .site-foot {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-foot .col-l,
  .site-foot .col-r { text-align: center; }
}

/* Minimum touch target on mobile */
@media (max-width: 1024px) {
  button, a, [role="button"] { min-height: 44px; }
}


/* ── 24. MOBILE NAV ───────────────────────────────────────────────── */

/* Hamburger toggle button — hidden on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  min-height: 0; /* override the 44px min-height rule above for height calc */
}

.menu-toggle-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}

/* Animate to X when open */
[data-nav-open="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
[data-nav-open="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}
[data-nav-open="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 1024px) {
  /* Show the toggle */
  .menu-toggle { display: flex; }

  /* When open: show nav as full-screen overlay */
  [data-nav-open="true"] .mast-right {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--parchment, #f0ede8);
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 0 40px;
    overflow-y: auto;
  }

  [data-nav-open="true"] .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    width: 100%;
  }

  /* Each nav item becomes a full-width block */
  [data-nav-open="true"] .nav-item {
    border-bottom: 1px solid var(--line-soft);
    flex-direction: column;
    align-items: stretch;
  }

  [data-nav-open="true"] .nav-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
    color: var(--saddle);
    border-bottom: none;
    min-height: 60px;
  }

  [data-nav-open="true"] .nav-item > a::after {
    content: '↓';
    font-family: var(--mono);
    font-size: 14px;
    color: var(--whitetail);
  }

  /* Sub menus: visible below parent, not as popover */
  [data-nav-open="true"] .submenu {
    position: static;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--line-soft);
    padding: 0;
    display: flex;
    flex-direction: column;
    background: var(--paper-lo, #f8f5ef);
    opacity: 1;
    pointer-events: auto;
    transform: none;
    min-width: 0;
  }

  [data-nav-open="true"] .submenu::before { display: none; }

  [data-nav-open="true"] .submenu .sub-head {
    padding: 10px 24px 6px;
    font-size: 9px;
  }

  [data-nav-open="true"] .nav .submenu a {
    padding: 13px 24px 13px 36px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
    min-height: 48px;
  }

  [data-nav-open="true"] .nav .submenu a:last-child { border-bottom: none; }

  /* Close the overlay by tapping the toggle (it's still on top via z-index) */
  .menu-toggle { z-index: 100; position: relative; }
}
