/* Momentum42 — homepage styles
 *
 * Source of truth: this file (astro/public/momentum.css). Originally cloned
 * from docs/momentum42-handoff/project/styles.css.
 *
 * Lives in /public so it's served at the stable URL /momentum.css. That URL
 * is loaded both by the public site (via <link> in Layout.astro) and by the
 * admin's MarkdownField preview iframes — so the two see the exact same
 * styles. Edit this file directly; no Vite import processing is involved.
 *
 * The utility classes here (.btn, .eyebrow, .wrap, .rescue-tile, .split-card,
 * .split-tab, .quote-band, etc.) are intentionally global — available to CMS
 * content (Plate / Editor.js / Markdown+HTML) so authors can compose pages
 * with the site's own visual vocabulary.
 *
 * The "Rendered prose defaults" block at the bottom (added on top of the
 * handoff CSS) gives plain markdown output sensible defaults without needing
 * Bootstrap.
 */

:root {
  --m-blue-900: #00355a;
  --m-blue-800: #004b7d;
  --m-blue-700: #00689f;
  --m-blue-500: #0089c9;
  --m-blue-100: #e9f2f9;
  --m-blue-050: #f3f8fc;
  --m-coral: #ff6b35;
  --m-coral-dark: #e8501a;
  --m-ink: #0a1722;
  --m-ink-2: #2a3a4a;
  --m-ink-3: #5a6776;
  --m-line: #d8e2eb;
  --m-bg: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--m-ink);
  background: var(--m-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4 {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--m-ink);
  margin: 0;
}

h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; letter-spacing: -0.015em; }

p { margin: 0; color: var(--m-ink-2); }

a { color: inherit; text-decoration: none; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-feature-settings: "ss02";
}

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--m-coral);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--m-coral);
}
.eyebrow.on-dark { color: #ff8c5e; }
.eyebrow.on-dark::before { background: #ff8c5e; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }
.eyebrow.center::after {
  content: "// 42";
  margin-left: 14px;
  color: var(--m-ink-3);
  letter-spacing: 0.1em;
}

/* Layout */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
  border-bottom:  !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--m-coral);
  color: #fff;
  border-bottom: 1px solid transparent !important;
}
.btn-primary:hover { background: var(--m-coral-dark); }
.btn-ghost {
  background: transparent;
  color: var(--m-ink);
  border-color: var(--m-line);
}
.btn-ghost:hover { border-color: var(--m-ink); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(216, 226, 235, .6);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 32px;
  max-width: 1400px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 19px;
}
.nav-logo .dot {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--m-blue-800);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 14.5px;
  color: var(--m-ink-2);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--m-ink); }
.nav-links a.active { color: var(--m-ink); font-weight: 500; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-lang {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--m-ink-3);
  letter-spacing: 0.05em;
}
.nav-lang a { color: inherit; }
.nav-lang a:hover { color: var(--m-ink); }
.nav-lang span.on,
.nav-lang a.on { color: var(--m-ink); font-weight: 500; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, #f6fafd 0%, #e9f2f9 100%);
  border-bottom: 1px solid var(--m-line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 88px 0 96px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-title {
  margin-top: 24px;
  margin-bottom: 28px;
}
.hero-title .accent { color: var(--m-blue-800); }
.hero-title .strike {
  position: relative;
  display: inline;
  color: var(--m-ink-3);
}
.hero-title .strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: 6px;
  background: var(--m-coral);
  transform: rotate(-7deg);
}

@media (min-width: 1025px) {
  .hero-title .strike::after {
    transform: rotate(-20deg);
  }
}

.hero-sub {
  font-size: 19px;
  color: var(--m-ink-2);
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0,75,125,.15);
  padding-top: 24px;
}
.hero-meta-item {
  font-size: 13px;
  color: var(--m-ink-3);
}
.hero-meta-item strong {
  display: block;
  color: var(--m-ink);
  font-family: 'Inter Tight', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: visible;
  background: #1a3a5a;
}
.hero-photo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-overlay-card {
  position: absolute;
  left: -36px;
  bottom: 56px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--m-line);
  border-radius: 8px;
  padding: 20px 22px;
  width: 320px;
  box-shadow: 0 30px 60px -20px rgba(0,53,90,.25);
}
.hero-overlay-card .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--m-coral);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.hero-overlay-card .text {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--m-ink);
}

/* Section base */
section { padding: 100px 0; }
.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-head p {
  margin-top: 18px;
  font-size: 18px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Problem strip (the tabbed-looking band in reference) */
.problem-strip {
  background: var(--m-blue-900);
  color: #fff;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.problem-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.problem-strip-item {
  padding: 28px 32px;
  border-right: 1px solid rgba(255,255,255,.1);
  font-size: 14.5px;
  color: rgba(255,255,255,.85);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.problem-strip-item:last-child { border-right: none; }
.problem-strip-item .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--m-coral);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Rescue tiles (5) */
.rescue {
  background: var(--m-bg);
}
.rescue-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.rescue-tile {
  background: var(--m-blue-050);
  border: 1px solid var(--m-line);
  border-radius: 6px;
  padding: 32px;
  position: relative;
  transition: border-color .2s ease, transform .2s ease;
}
.rescue-tile:hover {
  border-color: var(--m-blue-500);
  transform: translateY(-2px);
}
.rescue-tile .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--m-coral);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: block;
}
.rescue-tile h3 {
  margin-bottom: 12px;
}
.rescue-tile p {
  font-size: 15px;
  line-height: 1.5;
}
/* 3 + 2 layout — note: classes intentionally NOT named .col-2/.col-3 to
   avoid colliding with Bootstrap's grid (Bootstrap is loaded by the admin
   shell and the markdown editor's live preview renders in that DOM). */
.rescue-tile.tile-2 { grid-column: span 2; }
.rescue-tile.tile-3 { grid-column: span 3; }

/* Problem/Solution split */
.split {
  background: linear-gradient(180deg, #f3f8fc 0%, #e9f2f9 100%);
  position: relative;
}
.split-photo-band {
  position: relative;
  height: 360px;
  background: var(--m-blue-900);
  overflow: hidden;
  margin-bottom: -200px;
}
.split-photo-band img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.55) saturate(.9);
}
.split-photo-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,53,90,.35) 0%, rgba(0,53,90,.55) 100%);
}
.split-tabs {
  display: inline-flex;
  gap: 8px;
  background: rgba(255,255,255,.95);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--m-line);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.split-tab {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--m-ink-2);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all .15s ease;
  font-family: inherit;
}
.split-tab.active {
  background: var(--m-blue-800);
  color: #fff;
}
.split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 2;
}
.split-card {
  border-radius: 6px;
  padding: 40px 36px;
  min-height: 320px;
}
.split-card.problem {
  background: #fff;
  border: 1px solid var(--m-line);
}
.split-card.solution {
  background: var(--m-blue-800);
  color: #fff;
}
.split-card h3 {
  font-size: 28px;
  margin-bottom: 20px;
}
.split-card.solution h3 { color: #fff; }
.split-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.split-card li {
  font-size: 15.5px;
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
  color: var(--m-ink-2);
}
.split-card.solution li { color: rgba(255,255,255,.92); }
.split-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--m-coral);
  font-weight: 600;
}
.split-cta {
  margin-top: 40px;
  text-align: center;
}

/* Quote band */
.quote-band {
  background: var(--m-blue-800);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,107,53,.08), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,137,201,.15), transparent 50%);
}
.quote-band p, .quote-band ul, .quote-band ol {
  color: #fff !important;
}
.quote-mark {
  font-family: 'Inter Tight', sans-serif;
  font-size: 80px;
  line-height: 1;
  color: var(--m-coral);
  margin-bottom: -10px;
  font-weight: 600;
}
.quote-text {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: #fff;
  max-width: 860px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 2;
}
.quote-author {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.quote-author .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  margin-bottom: 14px;
  object-fit: cover;
}
.quote-author .avatar-img { display: block; }
.quote-author .name {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.quote-author .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  letter-spacing: 0.05em;
}

/* Contact + bio */
.contact-section {
  background: var(--m-bg);
  padding: 110px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-form h2 { margin-bottom: 12px; }
.contact-form .lede {
  margin-bottom: 36px;
  font-size: 17px;
  max-width: 460px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--m-ink-2);
  letter-spacing: -0.005em;
}
.field input, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--m-line);
  border-radius: 4px;
  background: #fff;
  color: var(--m-ink);
  transition: border-color .15s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--m-blue-800);
}
.field textarea { min-height: 110px; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--m-ink-3);
  margin-bottom: 24px;
  line-height: 1.4;
}
.consent input { margin-top: 3px; }

.bio-card {
  background: var(--m-blue-050);
  border-radius: 6px;
  padding: 24px;
  position: relative;
}
.bio-photo {
  aspect-ratio: 4/5;
  border-radius: 4px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  background: #1a3a5a;
  cursor: pointer;
}
.bio-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .25s ease;
}
.bio-img-hover { opacity: 0; }
.bio-photo:hover .bio-img-default { opacity: 0; }
.bio-photo:hover .bio-img-hover { opacity: 1; }
.bio-photo.disabled { cursor: default; }
.bio-photo.disabled .bio-img-default { opacity: 1 !important; transition: none; }
.bio-photo.disabled .bio-img-hover { opacity: 0 !important; transition: none; }
.bio-quote {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 36px;
  background: rgba(0,75,125,.92);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.45;
}
.bio-name {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 4px;
}
.bio-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--m-coral);
  letter-spacing: 0.05em;
}

/* Footer */
.footer {
  background: var(--m-blue-900);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4 {
  color: #fff;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a:hover { color: #fff; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.footer-brand .dot {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--m-coral);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
}
.footer-logo-mark {
  width: 34px; height: 34px;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;
}
.footer-tagline {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  line-height: 1.5;
  max-width: 280px;
  margin-bottom: 24px;
}
.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: rgba(255,255,255,.5);
  letter-spacing: 0.05em;
}
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover { color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; padding: 64px 0 72px; }
  .hero-visual { aspect-ratio: 16/10; max-width: 600px; }
  .hero-overlay-card { left: auto; right: 16px; bottom: 16px; }
  .rescue-grid { grid-template-columns: repeat(2, 1fr); }
  .rescue-tile.tile-2, .rescue-tile.tile-3 { grid-column: span 1; }
  .split-cards, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .problem-strip-inner { grid-template-columns: 1fr; }
  .problem-strip-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  h1 { font-size: 44px; }
  .rescue-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------- */
/* Rendered prose defaults (CMS markdown / Plate / Editor.js output) */
/* ----------------------------------------------------------------- */

.rendered-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--m-ink-2);
}
.rendered-body > * + * { margin-top: 1.1em; }
.rendered-body h1,
.rendered-body h2,
.rendered-body h3,
.rendered-body h4 {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  color: var(--m-ink);
}
.rendered-body h2 { font-size: clamp(28px, 3vw, 36px); }
.rendered-body h3 { font-size: clamp(22px, 2.2vw, 26px); }
.rendered-body p,
.rendered-body ul,
.rendered-body ol { color: var(--m-ink-2); }
.rendered-body ul,
.rendered-body ol { padding-left: 1.4em; }
.rendered-body li + li { margin-top: 0.35em; }
.rendered-body a {
  color: var(--m-blue-700);
  border-bottom: 1px solid currentColor;
}
.rendered-body a:hover { color: var(--m-coral); }
.rendered-body blockquote {
  margin: 1.6em 0;
  padding: 1em 1.2em;
  border-left: 3px solid var(--m-coral);
  background: var(--m-blue-050);
  font-style: italic;
}
.rendered-body code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.92em;
  background: var(--m-blue-050);
  padding: 0.15em 0.35em;
  border-radius: 3px;
}
.rendered-body pre {
  background: var(--m-blue-900);
  color: #cfe3f2;
  padding: 1em 1.2em;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.55;
}
.rendered-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.rendered-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.rendered-body figure { margin: 1.6em 0; }
.rendered-body figcaption {
  font-size: 13px;
  color: var(--m-ink-3);
  margin-top: 8px;
  text-align: center;
}
.rendered-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 15px;
}
.rendered-body th,
.rendered-body td {
  padding: 10px 14px;
  border: 1px solid var(--m-line);
  text-align: left;
}
.rendered-body th {
  background: var(--m-blue-050);
  font-weight: 600;
  color: var(--m-ink);
}
.rendered-body hr {
  border: 0;
  border-top: 1px solid var(--m-line);
  margin: 2em 0;
}
.media-embed {
  width: 100%;
  margin: 1.6em 0;
  border: 1px solid var(--m-line);
  border-radius: 6px;
  overflow: hidden;
}
.media-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Accessibility utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 9999;
  padding: 8px 16px;
  background: #fff;
  color: var(--m-blue-900);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--m-blue-900);
  border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; }

/* ---------- Responsive hide utilities ---------- */
.hide-on-small {
  display: none;
}

@media (min-width: 768px) {
  .hide-on-small {
    display: block;
  }
}

.hide-on-middle {
  display: block;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hide-on-middle {
    display: none;
  }
}

.hide-on-large {
  display: block;
}

@media (min-width: 1025px) {
  .hide-on-large {
    display: none;
  }
}

.show-on-large {
  display: none;
}

@media (min-width: 1025px) {
  .show-on-large {
    display: block;
  }
}

.show-on-small {
  display: none;
}

@media (max-width: 767px) {
  .show-on-small {
    display: block;
  }
}

.show-on-middle {
  display: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .show-on-middle {
    display: block;
  }
}


.hero-overlay-card {
  background: white;
}

.hero-overlay-card .row {
  display: flex;
}

.hero-overlay-card .col-left {
  width: 100px;
  font-weight: bold;
}

.hero-overlay-card .col-right {
  flex: 1;
}
