/* ==========================================================================
   Maple — site-wide design layer (editorial "town" style)
   Loaded LAST on every page. Remaps legacy tokens (style.css + per-page
   inline styles), sets typography, buttons, and the shared nav/footer.
   ========================================================================== */

:root {
  /* New system */
  --frame: #151613;
  --paper: #FDFDFC;
  --paper-2: #F6F5F1;
  --ink: #1C1B1B;
  --ink-2: #3A3835;
  --muted: #6F6B65;
  --line: #E7E4DE;
  --line-strong: #D6D2CA;
  --mark-bg: #F4D58A;
  --mark-ink: #9A3412;
  --forest: #2F4A3A;
  --slab: "Roboto Slab", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* style.css tokens → new system */
  --bg: var(--paper);
  --bg-muted: var(--paper-2);
  --bg-elevated: #FAF9F6;
  --bg-card: #FFFFFF;
  --text: var(--ink);
  --text-secondary: #57544E;
  --text-tertiary: #8A867F;
  --accent: var(--forest);
  --accent-olive: var(--forest);
  --accent-olive-light: rgba(47, 74, 58, 0.08);
  --accent-terracotta: var(--mark-ink);
  --accent-subtle: rgba(47, 74, 58, 0.08);
  --accent-glow: rgba(47, 74, 58, 0.14);
  --border: var(--line);
  --border-strong: var(--line-strong);
  --shadow-sm: 0 1px 0 var(--line);
  --shadow-md: 0 18px 40px -28px rgba(0, 0, 0, .22);
  --shadow-lg: 0 30px 70px -34px rgba(0, 0, 0, .3);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-pill: 6px;
  --font-heading: var(--slab);
  --font-body: var(--sans);
  --font-serif: var(--slab);
  --font-sans: var(--sans);
  --font: var(--sans);
  --nav-h: 80px;

  /* Article / blog inline tokens → new system */
  --bg-page: var(--paper);
  --text-main: var(--ink);
  --text-muted: var(--muted);
  --accent-green: var(--forest);
  --border-light: var(--line);

  /* Job pages */
  --jd-bg: var(--paper);
  --jd-text: var(--ink);
  --jd-accent: var(--forest);
  --jd-border: var(--line);
}

html, body { background-color: var(--paper); }
html body {
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
html body p, html body li, html body a, html body span, html body button,
html body input, html body textarea, html body select, html body label, html body td, html body th {
  font-family: var(--sans);
}

html body h1, html body h2, html body h3,
html body .hero-title, html body .section-title, html body .page-header-title,
html body .blog-post-title, html body .h1-large, html body .h2-medium,
html body .founder-headline, html body .card-title, html body .pricing-card-title,
html body .article-title, html body .article-header h1 {
  font-family: var(--slab) !important;
}
html body h1, html body .hero-title, html body .page-header-title, html body .h1-large,
html body .blog-post-title, html body .article-title {
  font-weight: 200 !important;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
html body h2, html body .section-title, html body .h2-medium, html body .founder-headline {
  font-weight: 300 !important;
  letter-spacing: -0.018em;
  line-height: 1.1;
}
html body h3, html body .card-title, html body .step-title { font-weight: 400 !important; letter-spacing: -0.008em; }
html body h4, html body h5, html body h6 { font-family: var(--sans); }

/* spans/em inside headings keep the heading face */
html body h1 span, html body h2 span, html body h3 span,
html body h1 em, html body h2 em, html body h3 em,
html body .hero-title span, html body .section-title span, html body .section-title em {
  font-family: inherit;
  font-weight: inherit;
}
html body .section-title em, html body h1 em, html body h2 em {
  font-style: normal;
  background: var(--mark-bg);
  color: var(--mark-ink);
  padding: 0 .14em;
  border-radius: 3px;
}

html body .section-lead, html body .hero-lead, html body .section-subtitle,
html body .subheading, html body .supporting-text, html body .article-subtitle, html body .article-lead {
  font-family: var(--slab);
  font-weight: 300;
  color: var(--ink-2);
  letter-spacing: 0;
}

html body code, html body pre, html body kbd { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

html body ::selection { background: var(--mark-bg); color: var(--ink); }
html body mark { background: var(--mark-bg); color: var(--mark-ink); padding: 0 .16em; border-radius: 3px; }

/* ---------- Eyebrows → kicker pills ---------- */
html body .eyebrow, html body .eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px 5px 10px;
  background: var(--paper);
  box-shadow: none;
}
html body .eyebrow:not(:has(.eyebrow-dot))::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mark-ink);
  flex: none;
}
html body .eyebrow-dot, html body .eyebrow-pill .dot { background: var(--mark-ink); box-shadow: none; }

/* ---------- Buttons ---------- */
html body .btn {
  border-radius: 6px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
html body .btn:active { transform: translateY(1px); }
html body .btn-filled, html body .btn-primary, html body .btn-dark, html body .btn-dark-pill,
html body .btn-ink, html body .btn-black {
  background: var(--ink);
  color: rgba(255, 255, 255, .96);
  border-color: var(--ink);
}
html body .btn-filled:hover, html body .btn-primary:hover, html body .btn-dark:hover,
html body .btn-dark-pill:hover, html body .btn-ink:hover { background: #000; border-color: #000; color: #fff; }
html body .btn-ghost, html body .btn-outline, html body .btn-secondary, html body .btn-line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
html body .btn-ghost:hover, html body .btn-outline:hover, html body .btn-secondary:hover,
html body .btn-line:hover { background: var(--paper-2); border-color: var(--line-strong); }

/* ---------- Surfaces ---------- */
html body .callout-box, html body .feature-card, html body .privacy-spec-card,
html body .pricing-tier, html body .step-item, html body .faq-item, html body .card {
  box-shadow: none;
}
html body .pricing-tier.featured { border-color: var(--ink); box-shadow: var(--shadow-lg); }
html body .pricing-tier-badge-floating { background: var(--ink); color: #fff; border-radius: 4px; }
html body .pricing-tier-price { font-family: var(--slab); font-weight: 200; letter-spacing: -0.02em; }
html body .discount-badge { background: var(--mark-bg); color: var(--mark-ink); }
html body .faq-question span:first-child { font-family: var(--slab); font-weight: 300; }

html body .form-input, html body input[type="text"], html body input[type="email"],
html body input[type="search"], html body textarea, html body select {
  border-radius: 6px;
}
html body .form-input:focus, html body input:focus, html body textarea:focus, html body select:focus {
  border-color: var(--ink);
  box-shadow: none;
}

/* Waitlist modal */
html body .modal-content { border-radius: 14px; background: var(--paper); box-shadow: 0 40px 90px -30px rgba(0,0,0,.45); }
html body .modal-content h3 { font-family: var(--slab); font-weight: 300; }

/* Legacy chrome no longer used */
body > nav.navbar:not(.mp-nav) { display: none; }

/* ==========================================================================
   Shared nav  (.mp-nav)
   ========================================================================== */
.mp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  padding: 14px clamp(16px, 3vw, 32px);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  transition: background .25s ease, box-shadow .25s ease;
}
.mp-nav.scrolled { background: rgba(253, 253, 252, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.mp-nav * { box-sizing: border-box; }
.mp-box {
  display: flex; align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 52px;
  margin: 0;
}
.mp-logo { padding: 0 16px; gap: 9px; color: var(--ink); text-decoration: none; }
.mp-logo img { width: 22px; height: 22px; }
html body .mp-logo span { font-family: var(--slab); font-weight: 500; font-size: 21px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.mp-links { padding: 0 6px; gap: 2px; list-style: none; }
.mp-links li { list-style: none; margin: 0; padding: 0; }
html body .mp-links a { display: block; padding: 8px 13px; border-radius: 6px; font-size: 15px; color: var(--ink); text-decoration: none; }
html body .mp-links a:hover, html body .mp-links a.is-active { background: var(--paper-2); }
.mp-right { margin-left: auto; padding: 0 6px; gap: 4px; }
html body .mp-right .mp-link { padding: 8px 12px; font-size: 14px; font-weight: 500; border-radius: 6px; color: var(--ink); text-decoration: none; }
html body .mp-right .mp-link:hover { background: var(--paper-2); }
html body .mp-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: rgba(255,255,255,.96);
  border-radius: 6px; padding: 10px 14px;
  font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
}
html body .mp-cta:hover { background: #000; color: #fff; }
.mp-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.mp-toggle svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 1.8; fill: none; }
.mp-menu { display: none; }

/* Home page: nav sits under the announcement bar */
.home-page .mp-nav { position: sticky; }

@media (max-width: 900px) {
  .mp-links, .mp-right .mp-link { display: none; }
  .mp-toggle { display: inline-flex; }
  .mp-nav.nav-open .mp-menu {
    display: grid; position: absolute; left: clamp(16px, 3vw, 32px); right: clamp(16px, 3vw, 32px); top: 74px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px;
    box-shadow: 0 20px 50px -20px rgba(0,0,0,.25);
  }
  html body .mp-menu a { padding: 12px; border-radius: 6px; font-size: 16px; color: var(--ink); text-decoration: none; }
  html body .mp-menu a:hover { background: var(--paper-2); }
}
@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .mp-nav { padding: 10px 16px; gap: 8px; }
  .mp-box { height: 46px; }
  html body .mp-logo span { font-size: 18px; }
}

/* ==========================================================================
   Shared footer  (.mp-footer)
   ========================================================================== */
.mp-footer { background: var(--frame); color: rgba(250,250,249,.72); padding: 72px 0 32px; font-size: 14px; font-family: var(--sans); }
.mp-footer * { box-sizing: border-box; }
.mp-wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.mp-footer-top { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 32px; padding-bottom: 56px; }
html body .mp-footer p { max-width: 280px; margin: 16px 0 0; color: rgba(250,250,249,.72); font-size: 14px; line-height: 1.55; }
.mp-footer .mp-logo { display: inline-flex; align-items: center; padding: 0; }
html body .mp-footer .mp-logo span { color: #fff; }
html body .mp-footer h5, html body .mp-footer h3 { margin: 0 0 14px; color: #fff; font-size: 13px; font-weight: 500; font-family: var(--sans); letter-spacing: 0; text-transform: none; }
.mp-col { display: grid; gap: 9px; align-content: start; }
html body .mp-footer a, html body .mp-footer .js-social-link { color: rgba(250,250,249,.72); text-decoration: none; font-size: 14px; cursor: pointer; }
html body .mp-footer a:hover, html body .mp-footer .js-social-link:hover { color: #fff; }
.mp-word {
  font-family: var(--slab); font-weight: 200; color: #fff;
  font-size: clamp(90px, 24vw, 360px); line-height: .8; letter-spacing: -0.04em;
  text-align: center; margin: 12px 0 40px; user-select: none;
}
.mp-inception { display: flex; align-items: center; gap: 16px; border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; }
.mp-inception img { height: 38px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; }
.mp-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: 13px; }
.mp-bottom .mp-links-row { display: flex; gap: 18px; flex-wrap: wrap; }
html body .mp-bottom span, html body .mp-bottom a { font-size: 13px; }

@media (max-width: 1080px) {
  .mp-footer-top { grid-template-columns: repeat(3, 1fr); }
  .mp-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .mp-footer-top { grid-template-columns: 1fr 1fr; }
}

/* Card titles that use small heading tags */
html body .blog-card-title-link h6, html body .blog-card h6, html body .blog-card h3 { font-weight: 400; letter-spacing: -0.005em; }

/* ==========================================================================
   Product visuals (.pv) — real Maple UI recreated in HTML (features page etc.)
   ========================================================================== */
html body .split-visual.pv {
  aspect-ratio: auto; min-height: 420px;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: 14px;
  font-family: var(--sans); color: #1F1F1F; text-align: left;
  letter-spacing: 0; line-height: 1.5;
}
.pv-sky  { background: radial-gradient(90% 80% at 20% 0%, #CFE6F5 0%, transparent 60%), radial-gradient(80% 80% at 100% 100%, #BFE0EC 0%, transparent 60%), #E7F1F6 !important; }
.pv-sand { background: radial-gradient(80% 80% at 10% 10%, #F6E3B8 0%, transparent 60%), radial-gradient(80% 80% at 100% 100%, #EFE2CC 0%, transparent 60%), #F5EFE4 !important; }
.pv-leaf { background: radial-gradient(90% 80% at 0% 0%, #D6E7CF 0%, transparent 60%), radial-gradient(80% 80% at 100% 100%, #C9DEC3 0%, transparent 60%), #E8F0E4 !important; }
.pv-desk { background: radial-gradient(80% 80% at 80% 0%, #EBD9F2 0%, transparent 60%), radial-gradient(70% 70% at 0% 100%, #F4D58A55 0%, transparent 60%), #F1EEF2 !important; position: relative; }
.pv svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pv .pv-chk { width: 15px; height: 15px; color: #2E7D5B; flex: none; stroke-width: 2.2; }
.pv .pv-ic { width: 16px; height: 16px; flex: none; color: #555; }
html body .pv p, html body .pv span, html body .pv small, html body .pv b, html body .pv em { font-family: var(--sans); }
.pv-card {
  width: 100%; max-width: 480px;
  background: #FAF9F6; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 0 0 6px rgba(255,255,255,.45), 0 24px 60px -24px rgba(30,40,50,.35);
  padding: 22px; font-size: 13px;
}
/* chat */
.pv-q { margin-left: auto; max-width: 78%; background: #EFEDE8; border-radius: 14px; padding: 10px 14px; font-size: 13px; }
.pv-verified { display: grid; gap: 5px; margin: 14px 0 12px; color: #4A4A4A; }
.pv-verified strong, .pv-verified span { display: flex; align-items: center; gap: 8px; }
.pv-verified strong { font-weight: 600; color: #1F1F1F; }
.pv-verified span { padding-left: 2px; font-size: 12.5px; }
html body .pv-ans { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: #222; }
.pv-ans b { font-weight: 600; }
.pv-pill { display: inline-flex; align-items: center; gap: 8px; background: #EFEDE8; border-radius: 999px; padding: 5px 12px 5px 6px; font-size: 12.5px; color: #444; }
.pv-pill .pv-ic { background: #fff; border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.pv-input { margin-top: 14px; border: 1px solid #E4E1DB; border-radius: 12px; padding: 12px; background: #FCFCFB; }
.pv-input > span { display: block; color: #8F8B84; font-size: 14px; margin-bottom: 12px; }
.pv-input > div { display: flex; align-items: center; gap: 12px; color: #777; }
.pv-input em { font-style: normal; margin-left: auto; font-size: 12.5px; }
.pv-tb { width: 28px; height: 28px; border: 1px solid #E4E1DB; border-radius: 7px; display: grid; place-items: center; background: #fff; }
.pv-go { width: 30px; height: 30px; border-radius: 50%; background: #8E8A84; color: #fff; display: grid; place-items: center; }
.pv-go svg { width: 15px; height: 15px; stroke-width: 2.2; }
/* meetings */
.pv-meet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #ECEAE5; }
html body .pv-meet h4, html body .pv-brief h4 { margin: 0; font-family: var(--slab) !important; font-weight: 400; color: #1F1F1F; letter-spacing: -0.01em; }
.pv-meet h4 { font-size: 18px; }
.pv-meet small, .pv-brief small { color: #77736C; font-size: 12px; }
.pv-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #8A3B2E; background: #F8E3DD; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.pv-live i { width: 7px; height: 7px; border-radius: 50%; background: #D9472B; animation: pvPulse 1.4s ease-in-out infinite; }
@keyframes pvPulse { 50% { opacity: .3; } }
.pv-transcript { display: grid; gap: 8px; padding: 12px 0; }
html body .pv-transcript p { margin: 0; display: grid; grid-template-columns: 62px 1fr; gap: 8px; font-size: 12.5px; color: #333; }
.pv-transcript b { font-weight: 600; color: #1F1F1F; }
.pv-caret { display: inline-block; width: 1.5px; height: 13px; background: #1F1F1F; margin-left: 2px; vertical-align: -2px; animation: pvPulse 1s steps(2) infinite; }
.pv-meet-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv-meet-cols > div { background: #fff; border: 1px solid #ECEAE5; border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; align-content: start; }
html body .pv-meet h5 { margin: 0 0 2px; font-size: 11.5px; font-weight: 600; color: #77736C; font-family: var(--sans); }
.pv-meet-cols span { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: #333; line-height: 1.4; }
.pv-meet-cols em { font-style: normal; font-weight: 600; color: #1F1F1F; }
/* morning brief */
.pv-brief { padding: 26px; }
.pv-brief h4 { font-size: 30px; line-height: 1.1; }
.pv-checks { display: grid; gap: 6px; margin: 16px 0; color: #4A4A4A; }
.pv-checks span { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.pv-list { background: #fff; border: 1px solid #E8E5DF; border-radius: 14px; overflow: hidden; }
.pv-list > div { display: flex; gap: 12px; padding: 12px 14px; }
.pv-list > div + div { border-top: 1px solid #EEEBE6; }
html body .pv-list p { margin: 0; font-size: 12.5px; color: #333; line-height: 1.45; }
.pv-list b { display: block; font-weight: 600; color: #1F1F1F; font-size: 13px; }
/* hover overlay */
.pv-doc { position: absolute; inset: 28px 28px auto; background: #fff; border-radius: 10px; border: 1px solid #E4E1DB; box-shadow: 0 10px 30px -18px rgba(0,0,0,.25); overflow: hidden; filter: saturate(.8); }
.pv-doc-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid #EEE; font-size: 11.5px; color: #888; }
.pv-doc-bar i { width: 9px; height: 9px; border-radius: 50%; background: #DDD; }
.pv-doc-bar span { margin-left: 8px; }
.pv-doc-body { padding: 18px 20px 26px; display: grid; gap: 9px; }
.pv-doc-body b { height: 14px; width: 55%; background: #E6E3DD; border-radius: 4px; display: block; }
.pv-doc-body span { height: 8px; background: #EFEDE8; border-radius: 4px; display: block; }
.pv-doc-body span.s { width: 70%; }
.pv-hover { position: relative; z-index: 1; width: 100%; max-width: 440px; margin-top: 110px; background: rgba(250,249,246,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 16px; border: 1px solid rgba(255,255,255,.8); box-shadow: 0 30px 70px -24px rgba(30,20,40,.45); overflow: hidden; }
.pv-hover-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #ECEAE5; font-size: 14px; }
.pv-leaf-dot { width: 18px; height: 18px; border-radius: 50%; background: #1F1F1F; flex: none; box-shadow: inset 0 0 0 5px #F4D58A; }
.pv-hover-in kbd { margin-left: auto; font-family: var(--sans); font-size: 11px; color: #555; border: 1px solid #DDD9D2; border-bottom-width: 2px; border-radius: 5px; padding: 2px 7px; background: #fff; white-space: nowrap; }
.pv-hover-out { padding: 14px 16px 16px; }
html body .pv-hover-out p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: #222; }
.pv-hover-out b { font-weight: 600; }
.pv-hover-out small { display: inline-flex; gap: 6px; align-items: center; color: #6F6B65; font-size: 12px; }
@media (max-width: 640px) {
  html body .split-visual.pv { min-height: 0; padding: 14px; }
  .pv-card { padding: 16px; }
  .pv-meet-cols { grid-template-columns: 1fr; }
  .pv-brief h4 { font-size: 24px; }
  .pv-doc { inset: 14px 14px auto; }
  .pv-hover { margin-top: 90px; }
}
@media (prefers-reduced-motion: reduce) { .pv-live i, .pv-caret { animation: none; } }

/* ==========================================================================
   Nav mega-menus (Features / Use cases)
   ========================================================================== */
.mp-links { position: relative; }
.mp-dd { position: static; }
html body .mp-dd-trigger { display: inline-flex !important; align-items: center; gap: 4px; }
.mp-chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; transition: transform .2s ease; }
.mp-mega {
  position: absolute; top: calc(100% + 10px); left: -1px;
  display: grid; grid-template-columns: 300px 400px;
  background: #F9F8F5;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 30px 70px -28px rgba(28, 27, 27, .32), 0 2px 6px rgba(28,27,27,.04);
  overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  z-index: 1100;
  text-align: left;
}
.mp-mega-2 { grid-template-columns: 300px 680px; }
/* hover bridge across the gap */
.mp-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.mp-dd:hover .mp-mega, .mp-dd:focus-within .mp-mega, .mp-dd.is-open .mp-mega {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.mp-dd:hover .mp-chev, .mp-dd:focus-within .mp-chev, .mp-dd.is-open .mp-chev { transform: rotate(180deg); }
html body .mp-dd:hover > .mp-dd-trigger { background: var(--paper-2); }
.mp-mega-side { background: #EDEAE3; padding: 34px 32px; }
html body .mp-mega-side h3 {
  margin: 0 0 14px; font-family: var(--slab) !important; font-weight: 300 !important;
  font-size: 30px; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink);
}
html body .mp-mega-side p { margin: 0; font-size: 15px; line-height: 1.65; color: #5F5B55; font-family: var(--sans); }
.mp-mega-items { padding: 22px 26px; display: grid; gap: 2px; align-content: start; }
.mp-mega-2 .mp-mega-items { grid-template-columns: 1fr 1fr; column-gap: 12px; }
html body .mp-mega-item {
  display: grid !important; gap: 2px; padding: 10px 14px !important; border-radius: 10px !important;
  text-decoration: none; color: var(--ink);
}
html body .mp-mega-item:hover, html body .mp-mega-item:focus-visible { background: #EFEDE7 !important; }
html body .mp-mega-item strong { font-family: var(--sans); font-weight: 600; font-size: 15.5px; color: var(--ink); }
html body .mp-mega-item span { font-family: var(--sans); font-size: 14px; color: #5F5B55; }

@media (max-width: 1180px) {
  .mp-mega { grid-template-columns: 260px 360px; }
  .mp-mega-2 { grid-template-columns: 260px 560px; }
  html body .mp-mega-side h3 { font-size: 26px; }
}

/* Mobile menu groups */
.mp-menu-group { display: grid; padding: 4px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
html body .mp-menu-h { padding: 8px 12px 4px; font-size: 12px; font-weight: 500; color: var(--muted); font-family: var(--sans); }
@media (max-width: 900px) {
  .mp-nav.nav-open .mp-menu { max-height: calc(100vh - 96px); overflow-y: auto; }
  html body .mp-menu .mp-menu-group a { padding: 9px 12px; font-size: 15px; }
}

/* neutralise legacy `.split-visual i` icon sizing inside product visuals */
html body .split-visual.pv i { opacity: 1; color: inherit; }
html body .split-visual.pv .pv-caret { width: 1.5px; height: 13px; }
html body .split-visual.pv .pv-live i { width: 7px; height: 7px; }
html body .split-visual.pv .pv-doc-bar i { width: 9px; height: 9px; }

/* Article hero covers (generated art) */
html body .article-visual.has-cover { padding: 0; background: none; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 1200 / 630; height: auto; }
html body .article-visual.has-cover::before, html body .article-visual.has-cover::after { display: none; content: none; }
html body .article-visual.has-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
html body .blog-thumb-img { object-fit: cover; }
