/* VDMT Step 4 — deterministic CSS layer
   Loaded last so legacy editorial files cannot silently override the shared shell. */
:root {
  --vdmt-ink: #123f37;
  --vdmt-muted: #58736d;
  --vdmt-sage: #e5efe9;
  --vdmt-paper: #fbfaf7;
  --vdmt-accent: #3f947f;
  --vdmt-rule: rgba(18, 63, 55, .18);
  --vdmt-wrap: 1280px;
  --vdmt-gutter: clamp(20px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--vdmt-paper); color: var(--vdmt-ink); }
img, video { display: block; max-width: 100%; }
.wrap { width: min(100% - 2 * var(--vdmt-gutter), var(--vdmt-wrap)); margin-inline: auto; }

/* Shared header/footer/chat shell */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--vdmt-sage); border-bottom: 1px solid var(--vdmt-rule); }
.header-inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer { background: var(--vdmt-paper); border-top: 1px solid var(--vdmt-rule); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer a { color: inherit; text-decoration: none; }
.mobile-bar { display: none; }
.chat-fab, .chat-widget, [data-chat-widget] { z-index: 30; }

/* Shared content primitives */
.section { padding-block: clamp(64px, 8vw, 128px); }
.about-section-label { width: min(100% - 2 * var(--vdmt-gutter), var(--vdmt-wrap)); margin: 0 auto; padding: 28px 0 0; color: var(--vdmt-accent); letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; }
.section + .section { border-top: 1px solid var(--vdmt-rule); }
.eyebrow { letter-spacing: .16em; text-transform: uppercase; }
.text-link, .btn { min-height: 44px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.course-card, .path-card { min-width: 0; }
.course-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Desktop-only rules */
@media (min-width: 761px) {
  .menu-toggle { display: none; }
  .hero-copy { max-width: min(720px, 62vw); }
  .footer-grid { padding-block: 72px; }
}

/* Mobile-only rules: one predictable gutter and no horizontal bleed */
@media (max-width: 760px) {
  :root { --vdmt-gutter: 28px; }
  .wrap { width: calc(100% - 2 * var(--vdmt-gutter)); }
  .header-inner { min-height: 96px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .section { padding-block: 64px; }
  .course-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 28px; padding-block: 48px; }
  .mobile-bar { position: sticky; bottom: 0; z-index: 25; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px var(--vdmt-gutter); background: var(--vdmt-paper); border-top: 1px solid var(--vdmt-rule); }
  .mobile-bar a { display: grid; min-height: 48px; place-items: center; padding: 8px; border: 1px solid var(--vdmt-rule); color: var(--vdmt-ink); text-align: center; text-decoration: none; }
  .mobile-bar a:last-child { background: var(--vdmt-accent); border-color: var(--vdmt-accent); color: white; }
  .hero-copy { max-width: 100%; }
  .hero-copy h1, .hero-copy h2 { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.home-journeys h2{margin:12px 0 40px}.journey-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--vdmt-rule);border-bottom:1px solid var(--vdmt-rule)}.journey-card{padding:28px 24px 32px 0;color:inherit;text-decoration:none}.journey-card+.journey-card{padding-left:24px;border-left:1px solid var(--vdmt-rule)}.journey-card h3{font-size:1.5rem}.journey-card p{color:var(--vdmt-muted)}.journey-card b{font-weight:400}.site-header{position:sticky;top:0;z-index:100}@media(max-width:760px){.journey-grid{grid-template-columns:1fr}.journey-card+.journey-card{padding-left:0;border-left:0;border-top:1px solid var(--vdmt-rule)}}

.boundary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:32px 0}.boundary-grid>div{padding-top:20px;border-top:1px solid var(--vdmt-rule)}@media(max-width:760px){.boundary-grid{grid-template-columns:1fr}}

.journey-grid{border:0!important;gap:18px!important}.journey-card{position:relative;min-height:280px;padding:32px!important;background:linear-gradient(145deg,#f4f7f1,#e6efe8);border:1px solid rgba(18,63,55,.16)!important;border-radius:2px;display:flex!important;flex-direction:column}.journey-card+.journey-card{border-left:1px solid rgba(18,63,55,.16)!important}.journey-card>span{color:var(--vdmt-accent);letter-spacing:.12em}.journey-card h3{margin:28px 0 10px;font-size:clamp(1.35rem,2vw,2rem);line-height:1.1}.journey-card p{flex:1;margin:0 0 24px}.journey-card b{font-size:.95rem;font-weight:500}.journey-card:hover{background:var(--vdmt-accent);color:#fff;transform:translateY(-4px);transition:transform .2s ease,background .2s ease}.journey-card:hover p,.journey-card:hover>span{color:#fff}@media(max-width:760px){.journey-grid{gap:12px!important}.journey-card{min-height:220px;padding:24px!important}.journey-card+.journey-card{border-top:0!important}}

.press-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:32px}.press-grid a{display:flex;flex-direction:column;min-height:220px;padding:24px;background:var(--vdmt-sage);color:inherit;text-decoration:none;border:1px solid var(--vdmt-rule)}.press-grid span{color:var(--vdmt-accent);font-size:.75rem;letter-spacing:.12em;text-transform:uppercase}.press-grid h3{flex:1;font-size:1.35rem;line-height:1.15}.press-grid b{font-weight:400}@media(max-width:760px){.press-grid{grid-template-columns:1fr 1fr}}@media(max-width:480px){.press-grid{grid-template-columns:1fr}}

.press-grid img{width:100%;height:150px;object-fit:cover;margin:-24px -24px 20px;width:calc(100% + 48px)}.press-grid a:hover{background:var(--vdmt-accent);color:#fff}.press-grid a:hover span{color:#fff}
/* About page: keep section labels and headings in one calm left column. */
body[data-page="about"] .section-head {
  display: block;
  text-align: left;
  max-width: 46rem;
}
body[data-page="about"] .section-head h2 {
  margin: .65rem 0 1.5rem;
  max-width: 32rem;
  font-size: clamp(2.2rem, 3.2vw, 3.35rem);
  line-height: .98;
  text-align: left;
}
body[data-page="about"] .section-head h2 { white-space: nowrap; }
@media (max-width: 700px) {
  body[data-page="about"] .section-head h2 {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }
}
body[data-page="community"] .impact-label { display:block; margin-bottom:1.25rem; }
body[data-page="community"] .scholarship-section { background: var(--sage, #e8f0e9); }
