/* ============================================================
   DRP-OS Website · Render Fix-Up (additive overlay)
   Loaded AFTER /assets/style.css — fills missing class defs.
   Reversible: remove the <link> in includes/header.php.
   ============================================================ */

/* ---------- CARDS (80 uses across the site) ---------- */
.card {
  background: #ffffff;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--ink-20, #d6d6d6);
}

/* ---------- FORM FIELDS (signup, contact, notify) ---------- */
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-70, #4a4a4a);
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink, #1a1a1a);
  background: #fafafa;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent, #fb923c);
  background: #ffffff;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-30, #b8b8b8);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- FEATURES GRID + CARDS (features.php) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature-card {
  background: #ffffff;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 12px;
  padding: 22px 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.feature-card:hover {
  border-color: var(--ink-20, #d6d6d6);
  transform: translateY(-2px);
}
.feature-card h4 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-70, #4a4a4a);
  margin: 0;
}

/* ---------- FEATURE-SECTION + CATEGORY HEADERS ---------- */
.feature-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--ink-05, #f4f4f4);
}
.feature-section:last-of-type { border-bottom: none; }

.category-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}
.category-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 22px; font-weight: 500;
  background: linear-gradient(135deg, #fb923c 0%, #f472b6 100%);
  color: #fff;
  border-radius: 12px;
  flex-shrink: 0;
}
.category-meta { flex: 1; }
.category-meta h3 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 28px; font-weight: 500;
  margin: 0 0 4px;
}
.category-meta p {
  font-size: 14px; color: var(--ink-50, #888);
  margin: 0;
}
.category-count {
  font-size: 12px; font-weight: 500;
  color: var(--ink-50, #888);
  background: var(--ink-05, #f4f4f4);
  padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}

/* ---------- MODULE PILLS (clinic/gym/both badges) ---------- */
.module-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}
.module-pill.clinic { background: #dbeafe; color: #1e40af; }
.module-pill.gym    { background: #dcfce7; color: #166534; }
.module-pill.both   { background: #f3e8ff; color: #6b21a8; }

/* ---------- PILL (footer "soon"/"beta" mini-badges) ---------- */
.pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 4px;
}
.pill-soon { background: #fef3c7; color: #92400e; }
.pill-beta { background: #dbeafe; color: #1e40af; }

/* ---------- FOOTER GRID (footer.php) ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 60px 0 40px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- EYEBROW (small label above headings) ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent, #fb923c);
  margin-bottom: 12px;
}

/* ---------- DISPLAY (hero-size heading helper) ---------- */
.display {
  font-family: var(--font-display, 'Fraunces', serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ---------- ALERTS ---------- */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid;
}
.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* ---------- BADGE (general purpose) ---------- */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink-05, #f4f4f4);
  color: var(--ink-70, #4a4a4a);
  letter-spacing: 0.3px;
}

/* ---------- CONTACT PAGE CHANNELS ---------- */
.contact-channel {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
  margin-bottom: 12px;
}
.contact-channel:hover {
  border-color: var(--accent, #fb923c);
  transform: translateY(-1px);
}
.channel-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-05, #f4f4f4);
  color: var(--ink, #1a1a1a);
  border-radius: 10px;
  flex-shrink: 0;
  font-weight: 600;
}
.channel-info { flex: 1; }
.channel-info h3 {
  font-size: 15px; font-weight: 600;
  margin: 0 0 4px;
}
.channel-info p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-70, #4a4a4a);
  margin: 0;
}
.channel-link {
  font-weight: 500;
  color: var(--accent, #fb923c);
}

/* ---------- BUTTON SIZE/COLOR VARIANTS ---------- */
.btn-lg, .btn-large {
  padding: 14px 28px;
  font-size: 15px;
}
.btn-accent {
  background: var(--accent, #fb923c);
  color: #ffffff;
  border: 1px solid var(--accent, #fb923c);
}
.btn-accent:hover {
  background: #ea7c1e;
  border-color: #ea7c1e;
}

/* ---------- CTA BANDS ---------- */
.cta-buttons, .cta-band-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------- CONTACT FORM WRAPPER ---------- */
.contact-form {
  background: #ffffff;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 12px;
  padding: 32px;
}
.form-subtitle {
  font-size: 14px;
  color: var(--ink-50, #888);
  margin-bottom: 20px;
}
.form-textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink, #1a1a1a);
  background: #fafafa;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 8px;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}
.form-textarea:focus {
  border-color: var(--accent, #fb923c);
  background: #ffffff;
}

/* ---------- FAQ ---------- */
.faq {
  border-bottom: 1px solid var(--ink-10, #eaeaea);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 0;
  font-size: 20px;
  color: var(--ink-50, #888);
  transition: transform 0.15s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-70, #4a4a4a);
}

/* ---------- CHECK MARKS in feature lists ---------- */
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
/* Old .check::before pseudo-element disabled — template now renders its own check
   See pricing.php and CSS rules .plan-card .feature-list li .check at style.css */
.check::before {
  content: none;
}

/* ---------- FILTER TABS ---------- */
.filter-tab {
  display: inline-block;
  padding: 8px 16px;
  margin-right: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-70, #4a4a4a);
  background: transparent;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-tab:hover {
  border-color: var(--ink-30, #b8b8b8);
}
.filter-tab.active {
  background: var(--ink, #1a1a1a);
  color: #ffffff;
  border-color: var(--ink, #1a1a1a);
}

/* ---------- BACKWARDS-COMPAT for bare input/textarea/select in cards
   (catches signup.php where inputs have NO .form-input class) ---------- */
.card input[type="text"],
.card input[type="email"],
.card input[type="tel"],
.card input[type="password"],
.card input[type="number"],
.card input:not([type]),
.card textarea,
.card select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink, #1a1a1a);
  background: #fafafa;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.card input:focus,
.card textarea:focus,
.card select:focus {
  border-color: var(--accent, #fb923c);
  background: #ffffff;
}

/* ---------- Restore consistent .nav-cta spacing (desktop only) ---------- */
/* Scoped to desktop so it does NOT override the mobile fixed-panel nav-cta
   defined in style.css (which stacks Sign in / Get started in the drawer). */
@media (min-width: 881px) {
  .nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

/* ============================================================
   v2 · product.php pricing + feature blocks
   ============================================================ */

/* ---------- PRODUCT PRICING GRID ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 700px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ---------- PRODUCT CARD (each pricing tier) ---------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--ink-10, #eaeaea);
  border-radius: 14px;
  padding: 28px 26px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.product-card:hover {
  border-color: var(--ink-30, #b8b8b8);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.08);
}
.product-card h3 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.product-card .tagline {
  font-size: 13px;
  color: var(--ink-50, #888);
  margin: 0 0 14px;
  line-height: 1.45;
}
.product-card ul li {
  line-height: 1.45;
}

/* ---------- PRODUCT FEATURE BLOCKS (below pricing) ---------- */
.feature-cat-head {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 24px;
  font-weight: 500;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-10, #eaeaea);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-cell {
  padding: 4px 0;
}
.feature-cell h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feature-cell p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-70, #4a4a4a);
  margin: 0;
}

/* ---------- PILL VARIANTS ---------- */
.pill-live {
  background: #dcfce7;
  color: #166534;
}

/* ---------- SECTION + SECTION HEAD ---------- */
.section {
  padding: 80px 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}
.section-head h2 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.section-head h2 em {
  font-style: italic;
  background: linear-gradient(135deg, #fb923c 0%, #f472b6 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head p {
  font-size: 16px;
  color: var(--ink-70, #4a4a4a);
  margin: 0;
  line-height: 1.6;
}

/* ---------- TEXT-CENTER helper used by product.php ---------- */
.text-center { text-align: center; }

/* ============================================================
   v3 · product.php hero section fixes
   ============================================================ */

/* Push hero down so nothing sits behind sticky nav.
   The product page first <section> has padding:60px but the
   nav is sticky at ~60px so badge ends up clipped. */
.site-nav + section,
section:first-of-type {
  padding-top: 120px !important;
}

/* The product badge — make sure it's visible & has breathing room.
   Inline style already gives it bg+color, but make text more visible. */
section .container > div[style*="inline-flex"][style*="border-radius: 100px"] {
  margin-top: 0;
  letter-spacing: 0.3px;
}

/* Hero CTA spacing */
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.mt-32 { margin-top: 32px; }

/* Lede paragraph under hero h1 */
.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-70, #4a4a4a);
  max-width: 600px;
}

/* ============================================
   BLOG ARTICLE BODY STYLES
   Applied to .blog-body inside /blog/post.php
   ============================================ */

.blog-body {
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  color: #1a1714;
}

.blog-body p {
  margin: 0 0 22px;
  line-height: 1.75;
  font-size: 17px;
}

.blog-body h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin: 56px 0 20px;
  letter-spacing: -0.01em;
}

.blog-body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  margin: 40px 0 14px;
}

.blog-body h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.blog-body ul,
.blog-body ol {
  margin: 0 0 24px;
  padding-left: 28px;
}

.blog-body li {
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 17px;
}

.blog-body li::marker {
  color: #1D9E75;
  font-weight: 600;
}

.blog-body strong,
.blog-body b {
  color: #0f0c0a;
  font-weight: 600;
}

.blog-body a {
  color: #1D9E75;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  font-weight: 500;
}

.blog-body a:hover {
  color: #167a5b;
  text-decoration-thickness: 2px;
}

.blog-body pre {
  background: #FAF7F2;
  border: 1px solid #ede8df;
  padding: 22px 24px;
  border-radius: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.7;
  margin: 28px 0;
  overflow-x: auto;
  white-space: pre-wrap;
  color: #2a2520;
}

.blog-body code {
  background: #FAF7F2;
  border: 1px solid #ede8df;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  color: #1D9E75;
}

.blog-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

.blog-body blockquote {
  border-left: 3px solid #1D9E75;
  margin: 28px 0;
  padding: 4px 0 4px 24px;
  font-style: italic;
  color: #4a4540;
  font-size: 18px;
  line-height: 1.6;
}

.blog-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ede8df;
}

.blog-body table th {
  background: #FAF7F2;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #1a1714;
  border-bottom: 2px solid #ede8df;
}

.blog-body table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0ece5;
  line-height: 1.6;
  vertical-align: top;
}

.blog-body table tr:last-child td {
  border-bottom: 0;
}

.blog-body table tr:hover {
  background: #FDFCFA;
}

.blog-body hr {
  border: 0;
  border-top: 1px solid #ede8df;
  margin: 48px 0;
}

.blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 28px 0;
}

/* First paragraph after H2/H3 — tighter spacing */
.blog-body h2 + p,
.blog-body h3 + p {
  margin-top: 0;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .blog-body p,
  .blog-body li {
    font-size: 16px;
    line-height: 1.7;
  }
  
  .blog-body h2 {
    font-size: 26px;
    margin: 40px 0 16px;
  }
  
  .blog-body h3 {
    font-size: 20px;
    margin: 32px 0 12px;
  }
  
  .blog-body pre {
    font-size: 13px;
    padding: 16px;
  }
  
  .blog-body table {
    font-size: 13px;
  }
  
  .blog-body table th,
  .blog-body table td {
    padding: 10px 12px;
  }
}

/* =====================================================
   MOBILE SAFETY NET — sub-380px screens (iPhone SE, etc)
   2026-05-19 · keeps page width locked to viewport
   ===================================================== */
@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
}

/* ============================================================
   v4 · iPad / tablet over-spacing fix (2026-05-28)
   Main style.css uses .section{padding:120px 0} down to 900px,
   leaving tablets (768–1024px) with too much vertical space.
   This tier steps it down smoothly. Reversible: delete this block.
   ============================================================ */
@media (max-width: 1024px) {
  .section { padding: 72px 0 !important; }
  .site-nav + section,
  section:first-of-type { padding-top: 96px !important; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0 !important; }
  .site-nav + section,
  section:first-of-type { padding-top: 84px !important; }
}

@media (max-width: 768px) {
  .showcase-row { margin-bottom: 40px !important; }
}

@media (max-width: 768px) {
  .showcase-row { margin-bottom: 36px !important; }
  .showcase { padding: 36px 0 !important; }
}

/* v7 · THE ACTUAL FIX — kill min-height:70vh on showcase rows at tablet.
   Root cause: index.php inline <style> line 354 sets .showcase-row
   { min-height:70vh; align-items:center } which only resets at its own
   ~880px breakpoint, leaving 768-1024px with huge empty vertical space. */
@media (max-width: 1024px) {
  .showcase-row {
    min-height: auto !important;
    align-items: start !important;
  }
  .showcase-content { padding: 0 !important; }
}

/* v8 · CODE-AUDITED FIX
   index.php @880px sets .showcase-row margin-bottom:100px — THAT is the
   gap at 820px portrait (min-height already auto there, so v7 was a no-op).
   Base rule's min-height:70vh bites only in 880-1024 landscape range.
   Cover both with one override that wins (later + !important). */
@media (max-width: 1024px) {
  .showcase-row {
    min-height: 0 !important;
    align-items: start !important;
    margin-bottom: 40px !important;   /* the real fix at your width */
    gap: 32px !important;
  }
  .showcase-content { padding: 0 !important; }
}

/* v9 · CODE-AUDITED SECTION PADDING FIX
   The real responsiveness gap: .showcase (80/120), .modules-section (160),
   and .trust-strip have NO tablet breakpoint, so their large fixed paddings
   never shrink below the 880/900px breakpoints. Add a tablet tier. */
@media (max-width: 1024px) {
  .showcase { padding: 48px 0 56px !important; }
  .modules-section { padding: 64px 0 !important; }
  .trust-strip { padding: 40px 0 !important; }
}
@media (max-width: 768px) {
  .showcase { padding: 36px 0 40px !important; }
  .modules-section { padding: 48px 0 !important; }
  .trust-strip { padding: 32px 0 !important; }
}

/* ============================================================
   MOBILE NAV FIX v2 — authoritative. Fixes: (1) CTA/✕ overlap
   at top, (2) background scroll while menu open.
   High-specificity to win regardless of source order.
   ============================================================ */
@media (max-width: 0px) { /* NEUTRALIZED: superseded by nav-final.css v5 */

  /* LINKS PANEL: top portion of the drawer */
  nav.site-nav .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    width: min(86vw, 360px) !important;
    height: auto !important;
    max-height: calc(100dvh - 160px) !important;
    padding: 88px 24px 16px !important;
    overflow-y: auto !important;
  }

  /* CTA PANEL: docked to the very bottom of the same drawer */
  nav.site-nav .nav-cta {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(86vw, 360px) !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px 24px calc(20px + env(safe-area-inset-bottom)) !important;
    background: var(--paper-pure, #fcfaf6) !important;
    border-top: 1px solid var(--ink-10) !important;
    box-shadow: none !important;
  }

  /* CLOSE (✕): pinned top-right of the drawer, above everything */
  nav.site-nav .nav-toggle {
    position: fixed !important;
    top: 22px !important;
    right: 22px !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 130 !important;
  }
  nav.site-nav.is-menu-open .nav-toggle span {
    background: var(--ink, #140e08) !important;
  }

  nav.site-nav .nav-cta .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px !important;
    min-height: 48px !important;
  }

  /* SCROLL LOCK: overflow:hidden on body alone fails on iOS.
     Lock both html and body when the menu is open. */
  body.nav-open,
  html:has(body.nav-open) {
    overflow: hidden !important;
    touch-action: none !important;
  }
}
