/* ============================================================
   Vesta marketing surfaces — shared foundation
   Used by ui_kits/marketing/, ui_kits/partners/, ui_kits/clients/
   Built on tokens from /colors_and_type.css
   Aligned strictly to the April 2025 brand bible:
     · 35/35/15/15 color proportion
     · Suisse Int'l Regular + Bold only
     · Tracking −25 on headlines, 0 elsewhere
     · Leading 1.05 / 1.40
     · Always left-aligned
   ============================================================ */
@import url("../colors_and_type.css");

* { box-sizing: border-box; }
html {
  margin: 0; padding: 0;
  /* Offset anchor scroll so sticky nav never covers section headings */
  scroll-padding-top: 72px;
}
body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ============================================================
   12-COL GRID — the alignment backbone
   Page gutter is consistent at every breakpoint.
   Everything snaps to this grid.
   ============================================================ */
:root {
  --vm-gutter: 32px;
  --vm-col-gap: 24px;
  --vm-max: 1200px;
}
@media (max-width: 720px) {
  :root { --vm-gutter: 20px; --vm-col-gap: 16px; }
}

.vm-container {
  max-width: var(--vm-max);
  margin-inline: auto;
  padding-inline: var(--vm-gutter);
}
.vm-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--vm-col-gap);
}
.vm-col-12 { grid-column: span 12; }
.vm-col-8  { grid-column: span 8; }
.vm-col-7  { grid-column: span 7; }
.vm-col-6  { grid-column: span 6; }
.vm-col-5  { grid-column: span 5; }
.vm-col-4  { grid-column: span 4; }
.vm-col-3  { grid-column: span 3; }

@media (max-width: 900px) {
  .vm-col-8, .vm-col-7, .vm-col-6, .vm-col-5, .vm-col-4 { grid-column: span 12; }
  .vm-col-3 { grid-column: span 6; }
}

/* ============================================================
   TYPE — opinionated headings that obey the bible
   ============================================================ */
.vm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vesta-orange);
  line-height: 1;
}
.vm-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}
.vm-eyebrow.is-mute { color: var(--vesta-gray-3); }
.vm-eyebrow.is-mute::before { background: var(--vesta-gray-2); }

.vm-display {
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.vm-h1 {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.vm-h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.vm-h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}
.vm-h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}
.vm-lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.40;
  color: var(--vesta-gray-4);
  margin: 0;
  max-width: 56ch;
}
.vm-body {
  font-size: 16px;
  line-height: 1.40;
  color: var(--vesta-gray-4);
  margin: 0;
}
.vm-detail {
  font-size: 13px;
  line-height: 1.40;
  color: var(--vesta-gray-3);
  margin: 0;
}

/* ============================================================
   BUTTONS — pill-shape primary, square-pill secondary
   Bible weight rule: Bold only (700)
   ============================================================ */
.vm-btn {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    background 200ms cubic-bezier(0.22,1,0.36,1),
    color 200ms cubic-bezier(0.22,1,0.36,1),
    border-color 200ms cubic-bezier(0.22,1,0.36,1),
    transform 200ms cubic-bezier(0.22,1,0.36,1),
    box-shadow 200ms cubic-bezier(0.22,1,0.36,1);
  white-space: nowrap;
  letter-spacing: 0;
  line-height: 1;
}
.vm-btn-lg { padding: 15px 30px; font-size: 16px; }
.vm-btn-sm { padding: 12px 20px; font-size: 14px; }

.vm-btn-primary { background: var(--vesta-orange); color: #fff; }
.vm-btn-primary:hover { background: var(--vesta-orange-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,84,63,0.24); }
.vm-btn-primary:active { background: var(--vesta-orange-press); transform: translateY(0); }

.vm-btn-secondary { background: transparent; color: var(--vesta-black); border-color: var(--vesta-black); }
.vm-btn-secondary:hover { background: var(--vesta-black); color: #fff; }

.vm-btn-on-orange { background: #fff; color: var(--vesta-orange); }
.vm-btn-on-orange:hover { background: var(--vesta-black); color: #fff; }

.vm-btn-on-black { background: var(--vesta-orange); color: #fff; }

/* Green button — clients surface */
.vm-btn-green { background: var(--vesta-green); color: #fff; }
.vm-btn-green:hover { background: #0a3316; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(13,62,27,0.28); }
.vm-btn-green:active { background: #082a12; transform: translateY(0); }
.vm-btn-on-green { background: #fff; color: var(--vesta-green); }
.vm-btn-on-green:hover { background: var(--vesta-black); color: #fff; }

/* Clients surface — green theme overrides */
[data-surface="clients"] .vm-eyebrow { color: var(--vesta-green); }
[data-surface="clients"] .vm-eyebrow::before { background: var(--vesta-green); }
[data-surface="clients"] .vm-nav-toggle a.is-active { border-color: var(--vesta-green); }

.vm-link {
  font-size: 15px;
  font-weight: 400;
  padding: 8px 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms;
}
.vm-link:hover { border-bottom-color: currentColor; }

/* ============================================================
   NAV — sticky, hairline-bottom, branded mark + wordmark
   ============================================================ */
.vm-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--vesta-gray-2);
}
.vm-nav-inner {
  max-width: var(--vm-max);
  margin-inline: auto;
  padding: 18px var(--vm-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.vm-brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}
.vm-brand img {
  height: 28px;
  width: auto;
}
.vm-nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.vm-nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--vesta-gray-4);
  border-radius: 8px;
  transition: color 150ms, background 150ms;
}
.vm-nav-links a:hover { color: var(--vesta-black); background: var(--vesta-gray-1); }
.vm-nav-links a.is-active { color: var(--vesta-black); font-weight: 700; }
.vm-nav-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vm-nav-toggle {
  display: inline-flex;
  background: var(--vesta-gray-1);
  border-radius: 999px;
  padding: 4px;
  gap: 0;
}
.vm-nav-toggle a {
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--vesta-gray-3);
  transition: color 150ms, background 150ms;
}
.vm-nav-toggle a:hover:not(.is-active) {
  color: var(--vesta-gray-4);
  background: rgba(255,255,255,0.55);
}
.vm-nav-toggle a.is-active {
  background: #fff;
  color: var(--vesta-black);
  box-shadow: 0 1px 4px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
}

/* Hamburger button — hidden on desktop, shown at ≤1080px */
.vm-nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background 150ms;
}
.vm-nav-burger:hover { background: var(--vesta-gray-1); }
.vm-nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--vesta-black);
  border-radius: 2px;
  transition: transform 200ms cubic-bezier(0.22,1,0.36,1), opacity 150ms;
}
.vm-nav.is-open .vm-nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.vm-nav.is-open .vm-nav-burger span:nth-child(2) {
  opacity: 0;
}
.vm-nav.is-open .vm-nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Dropdown panel — hidden on desktop and when closed */
.vm-nav-panel {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px var(--vm-gutter) 16px;
  border-top: 1px solid var(--vesta-gray-2);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.vm-nav-panel a {
  padding: 12px 14px;
  font-size: 15px;
  color: var(--vesta-gray-4);
  border-radius: 8px;
  text-decoration: none;
}
.vm-nav-panel a:hover { color: var(--vesta-black); background: var(--vesta-gray-1); }
.vm-nav-panel a.is-active { color: var(--vesta-black); font-weight: 700; }

/* ============================================================
   SECTIONS — vertical rhythm via consistent padding
   ============================================================ */
.vm-section {
  padding-block: clamp(64px, 8vw, 112px);
}
.vm-section-tight { padding-block: clamp(48px, 6vw, 80px); }
.vm-section-alt { background: var(--vesta-gray-1); }
.vm-section-orange { background: var(--vesta-orange); color: #fff; }
.vm-section-orange .vm-lede,
.vm-section-orange .vm-body,
.vm-section-orange .vm-detail { color: rgba(255,255,255,0.9); }
.vm-section-orange .vm-eyebrow { color: #fff; }
.vm-section-orange .vm-eyebrow::before { background: rgba(255,255,255,0.6); }
.vm-section-black { background: var(--vesta-black); color: #fff; }
.vm-section-black .vm-lede,
.vm-section-black .vm-body,
.vm-section-black .vm-detail { color: rgba(255,255,255,0.85); }
.vm-section-black .vm-eyebrow { color: var(--vesta-orange); }
.vm-section-green { background: var(--vesta-green); color: #fff; }
.vm-section-green .vm-lede,
.vm-section-green .vm-body,
.vm-section-green .vm-detail { color: rgba(255,255,255,0.9); }

.vm-section-head {
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}

/* ============================================================
   PHOTO PLACEHOLDERS — explicit art-direction stand-ins
   Convey aspect, framing, and intent.
   ============================================================ */
.vm-photo {
  position: relative;
  background: var(--vesta-gray-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  border: 1px solid var(--vesta-gray-2);
}
.vm-photo.is-wide { aspect-ratio: 16 / 10; }
.vm-photo.is-square { aspect-ratio: 1; }
.vm-photo.is-tall { aspect-ratio: 3 / 4; }
.vm-photo .vm-photo-frame {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 35%, rgba(255,84,63,0.10), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(13,62,27,0.07), transparent 50%),
    var(--vesta-gray-1);
}
.vm-photo .vm-photo-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--vesta-gray-2);
  border-radius: calc(var(--radius-lg) - 4px);
}
.vm-photo .vm-photo-meta {
  position: relative;
  font-size: 11px;
  font-family: ui-monospace, Menlo, monospace;
  color: var(--vesta-gray-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vm-photo .vm-photo-meta strong { color: var(--vesta-black); font-weight: 700; display: block; font-size: 12px; }
.vm-photo .vm-photo-petal {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.vm-photo .vm-photo-petal svg { width: 30%; height: 30%; position: absolute; top: 18px; right: 18px; opacity: 0.85; }

/* On-orange photo placeholder — invert the petal */
.vm-photo.is-orange .vm-photo-frame {
  background:
    radial-gradient(circle at 30% 35%, rgba(255,255,255,0.22), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(255,255,255,0.10), transparent 50%),
    var(--vesta-orange);
}
.vm-photo.is-orange { border-color: rgba(255,255,255,0.25); }
.vm-photo.is-orange .vm-photo-meta { color: rgba(255,255,255,0.85); }
.vm-photo.is-orange .vm-photo-meta strong { color: #fff; }

/* ============================================================
   QUOTE / TESTIMONIAL — named human, photo, role
   ============================================================ */
.vm-quote {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--vesta-gray-2);
  border-radius: var(--radius-lg);
}
.vm-quote-photo {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: var(--vesta-gray-1);
  border: 1px solid var(--vesta-gray-2);
  position: relative;
  overflow: hidden;
}
.vm-quote-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,84,63,0.18), transparent 55%),
    var(--vesta-gray-1);
}
.vm-quote-body p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.40;
  color: var(--vesta-black);
  text-wrap: balance;
}
.vm-quote-attr {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vm-quote-attr .nm { font-size: 14px; font-weight: 700; color: var(--vesta-black); }
.vm-quote-attr .role { font-size: 12px; color: var(--vesta-gray-3); }

/* ============================================================
   PARTNER LOGO BAND
   ============================================================ */
.vm-partners {
  border-top: 1px solid var(--vesta-orange);
  border-bottom: 1px solid var(--vesta-orange);
  padding-block: 28px;
  background: #fff;
}
.vm-partners-inner {
  max-width: var(--vm-max);
  margin-inline: auto;
  padding-inline: var(--vm-gutter);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: center;
}
.vm-partners-inner .vm-eyebrow { color: var(--vesta-gray-3); }
.vm-partners-inner .vm-eyebrow::before { background: var(--vesta-gray-2); }
.vm-partners-list {
  list-style: none; padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
}
.vm-partners-list li {
  font-size: 17px;
  font-weight: 700;
  color: var(--vesta-gray-4);
  letter-spacing: -0.01em;
}

[data-surface="clients"] .vm-partners {
  border-top-color: var(--vesta-green);
  border-bottom-color: var(--vesta-green);
}

/* ============================================================
   STAT — big number, terse label
   ============================================================ */
.vm-stat .num {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--vesta-black);
  margin: 0 0 8px;
  display: block;
}
.vm-section-orange .vm-stat .num,
.vm-section-black .vm-stat .num,
.vm-section-green .vm-stat .num { color: #fff; }
.vm-stat .lbl {
  font-size: 13px;
  color: var(--vesta-gray-3);
  line-height: 1.40;
  max-width: 24ch;
}
.vm-section-orange .vm-stat .lbl,
.vm-section-black .vm-stat .lbl,
.vm-section-green .vm-stat .lbl { color: rgba(255,255,255,0.85); }

/* ============================================================
   FEATURE / RESOURCE CARDS
   ============================================================ */
.vm-card {
  background: #fff;
  border: 1px solid var(--vesta-gray-2);
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms var(--ease-out),
              box-shadow 200ms var(--ease-out),
              border-color 200ms var(--ease-out);
}
.vm-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--vesta-orange); }
.vm-card .vm-card-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--vesta-orange);
  margin-bottom: 4px;
}
.vm-card .vm-card-icon svg { width: 28px; height: 28px; }
.vm-card .vm-card-arrow {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  color: var(--vesta-orange);
}
.vm-card .vm-card-arrow svg { width: 16px; height: 16px; }
.vm-card.is-resource .vm-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vesta-gray-3);
  margin-bottom: 4px;
}

/* ============================================================
   FOOTER — black, two-column with brand + sitemap
   ============================================================ */
.vm-footer {
  background: var(--vesta-black);
  color: rgba(255, 255, 255, 0.85);
}
.vm-footer-inner {
  max-width: var(--vm-max);
  margin-inline: auto;
  padding: 64px var(--vm-gutter) 24px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 56px;
}
@media (max-width: 900px) {
  .vm-footer-inner { grid-template-columns: 1fr; gap: 40px; }
}
.vm-footer-brand img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}
.vm-footer-brand p {
  margin-top: 18px;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.40;
}
.vm-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .vm-footer-cols { grid-template-columns: 1fr 1fr; }
}
.vm-footer-cols h5 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}
.vm-footer-cols a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 150ms;
}
.vm-footer-cols a:hover { color: var(--vesta-orange); }
.vm-footer-fine {
  max-width: var(--vm-max);
  margin-inline: auto;
  padding: 24px var(--vm-gutter) 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   MOBILE — targeted overrides for elements that use inline styles
   ============================================================ */
/* Prevent any horizontal scroll caused by overflowing inline grids */
html, body { overflow-x: hidden; max-width: 100%; }

/* "How it works" 3-col → 1-col stack on tablet/mobile */
@media (max-width: 800px) {
  .vm-how-cols {
    grid-template-columns: 1fr !important;
  }
}

/* Generic stacker — apply to any inline 2/3-col grid that should stack */
@media (max-width: 720px) {
  .vm-mobile-stack {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* Guide article layout (every guide uses inline `grid-template-columns: 1fr 300px`
   for content + sticky sidebar; React serializes gridColumn+gridRow as `grid-area`
   shorthand). On mobile, collapse to single column and turn the TOC sidebar into a
   sticky horizontal pill-nav at the top of the article. */
@media (max-width: 900px) {
  [style*="grid-template-columns: 1fr 300px"] {
    grid-template-columns: 1fr !important;
    gap: 24px 0 !important;
  }
  /* Content column: grid-area: 1 / 1 / 20 */
  [style*="grid-area: 1 / 1 / 20"] {
    grid-column: 1 !important;
    grid-row: auto !important;
    grid-area: auto !important;
  }

  /* TOC sidebar wrapper (grid-area: 1 / 2 / 20): sticky top, horizontal scroll */
  [style*="grid-area: 1 / 2 / 20"] {
    position: sticky !important;
    top: 0 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    grid-area: auto !important;
    z-index: 50;
    margin: 0 calc(-1 * clamp(20px, 5vw, 64px)) 8px !important;
    padding: 12px clamp(20px, 5vw, 64px);
    background: #fff;
    border-bottom: 1px solid #ECE9E2;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  [style*="grid-area: 1 / 2 / 20"]::-webkit-scrollbar {
    display: none;
  }

  /* Inner TOC card → horizontal flex of pills */
  [style*="grid-area: 1 / 2 / 20"] > div:first-child {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    box-shadow: none !important;
    min-width: max-content;
  }

  /* Hide the dark "In this guide" header on mobile */
  [style*="grid-area: 1 / 2 / 20"] > div:first-child > div:first-child {
    display: none !important;
  }

  /* Each TOC link → pill chip */
  [style*="grid-area: 1 / 2 / 20"] > div:first-child > a {
    flex-shrink: 0 !important;
    display: inline-block !important;
    border: 1px solid #E8E5E0 !important;
    border-bottom: 1px solid #E8E5E0 !important;
    border-radius: 999px !important;
    padding: 8px 14px !important;
    background: #fff !important;
    white-space: nowrap;
    font-size: 12.5px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  /* Hide the standalone "Talk to a guide" CTA inside the sidebar
     (every guide has a CTA at the bottom of the article anyway) */
  [style*="grid-area: 1 / 2 / 20"] > a.vm-btn {
    display: none !important;
  }

  /* Mobile collapsible section (wrapped by marketing-shared.jsx at runtime) */
  details.vm-c-section {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #ECE9E2;
  }
  details.vm-c-section:last-of-type {
    border-bottom: none;
  }
  details.vm-c-section > summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    -webkit-tap-highlight-color: transparent;
  }
  details.vm-c-section > summary::-webkit-details-marker,
  details.vm-c-section > summary::marker {
    display: none;
    content: "";
  }
  details.vm-c-section > summary::after {
    content: "+";
    font-size: 26px;
    font-weight: 300;
    color: var(--vesta-orange);
    line-height: 1;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 200ms ease;
  }
  details.vm-c-section[open] > summary::after {
    content: "−";
  }
  details.vm-c-section > summary > h2 {
    margin: 0 !important;
    flex: 1;
    font-size: clamp(18px, 2.4vw, 22px) !important;
  }
  details.vm-c-section > *:not(summary) {
    margin-top: 0;
  }
  details.vm-c-section > *:nth-last-child(1):not(summary) {
    margin-bottom: 24px;
  }
}

/* Nav collapses into hamburger at tablet widths and below */
@media (max-width: 1080px) {
  .vm-nav-links { display: none; }
  .vm-nav-ctas .vm-link { display: none; }
  .vm-nav-burger { display: inline-flex; }
  .vm-nav.is-open .vm-nav-panel { display: flex; }
}

@media (max-width: 720px) {
  .vm-nav-inner { gap: 12px; }

  /* Reduce section padding significantly to cut scrolling */
  .vm-section { padding-block: 44px !important; }
  .vm-section-tight { padding-block: 28px !important; }
  .vm-section-head { margin-bottom: 28px; }

  /* Partner logo band: stack label above list */
  .vm-partners-inner { grid-template-columns: 1fr !important; gap: 16px; }

  /* Generic 2-col split header → single column */
  .vm-split-2col {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Feature items 2-col grid → single column */
  .vm-feat-grid {
    grid-template-columns: 1fr !important;
  }

  /* Resource rows 3-col → stack */
  .vm-resource-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    align-items: start !important;
  }
  .vm-resource-row-tag { display: none; }

  /* Quiz section: reduce horizontal padding inside card */
  .vm-quiz-card { padding: 20px !important; }

  /* Hero image: hide on mobile — text takes full width cleanly */
  .vm-hero-img-wrap { display: none !important; }

  /* Testimonial image: cap height so it doesn't dominate */
  .vm-testimonial-img {
    aspect-ratio: 16 / 9 !important;
    max-height: 240px;
  }
}

/* ============================================================
   PETAL DECORATIONS — bible's graphic-library principle
   Used as edge-flush accents, never floating mid-canvas.
   ============================================================ */
.vm-petal {
  position: absolute;
  pointer-events: none;
}
.vm-petal-tr { top: 0; right: 0; }
.vm-petal-br { bottom: 0; right: 0; }
.vm-petal-bl { bottom: 0; left: 0; }
.vm-petal-tl { top: 0; left: 0; }
