/* ==========================================================================
   Page heads: one look for the top of every inner page.
   A soft band, an optional breadcrumb or eyebrow, the H1, one lead line, then a wave into the white page.
   Used by: .lx-page-head (solutions, compare, integrations, story, 404), .mk-page-head (legal, search, page.php),
   .lx-feature-hero (a solution), .mk-tl-hero (free tools), .mk-ct-hero (contact), .mk-ob-hero (onboarding),
   .mk-ex-head (example sites), .mk-rec-hero (recommendations).
   Not used by the home page, /free/ and pricing, which have their own marketing heroes.
   Loaded last on every page (inc/enqueue.php).
   ========================================================================== */

:root {
  --mk-head-bg: #F4F5F3;
  --mk-head-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath d='M0 28C240 72 480 0 720 24C960 48 1200 8 1440 36V72H0V28Z' fill='%23fff'/%3E%3C/svg%3E");
}

body :is(.lx-page-head, .mk-page-head, .lx-feature-hero, .mk-tl-hero, .mk-ct-hero, .mk-ob-hero, .mk-ex-head, .mk-rec-hero) {
  position: relative;
  margin: 0;
  padding: clamp(44px, 5.5vw, 80px) 0 0;
  overflow: hidden;
  border: 0;
  background: var(--mk-head-bg);
  text-align: center;
}

/* The wave: drawn here for heads without one in their markup, sized the same for those with one. */
body :is(.lx-page-head, .mk-page-head, .lx-feature-hero, .mk-rec-hero)::after {
  content: "";
  display: block;
  height: clamp(32px, 4vw, 56px);
  margin-top: clamp(32px, 4.5vw, 52px);
  background: var(--mk-head-wave) center bottom / 100% 100% no-repeat;
}
body :is(.mk-tl-wave, .mk-ct-wave, .mk-ob-wave, .mk-ex-wave) {
  display: block;
  height: clamp(32px, 4vw, 56px);
  margin-top: clamp(32px, 4.5vw, 52px);
  line-height: 0;
}

body :is(.lx-page-head, .mk-page-head, .lx-feature-hero, .mk-tl-hero, .mk-ct-hero, .mk-ob-hero, .mk-ex-head, .mk-rec-hero) > :is(.lx-container, .mk-container) {
  position: relative;
  z-index: 1;
  margin-inline: auto;
  text-align: center;
}

/* Eyebrow: the system one, 12px. */
body :is(.lx-page-head, .mk-page-head, .lx-feature-hero, .mk-tl-hero, .mk-ct-hero, .mk-ob-hero, .mk-ex-head, .mk-rec-hero) .lx-eyebrow {
  display: block;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--olive, #626968);
}

/* Breadcrumbs: the /vs/ style, centred, also on phones. */
body :is(.lx-page-head, .mk-page-head, .lx-feature-hero, .mk-tl-hero, .mk-ct-hero, .mk-ob-hero, .mk-ex-head, .mk-rec-hero) .lx-crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--ink-faint, #8A8F8E);
}

body :is(.lx-page-head, .mk-page-head, .lx-feature-hero, .mk-tl-hero, .mk-ct-hero, .mk-ob-hero, .mk-ex-head, .mk-rec-hero) h1 {
  max-width: 20ch;
  margin: 0 auto 16px;
  font-family: var(--font-display, inherit);
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  font-weight: 680;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink, #182021);
  text-align: center;
  text-wrap: balance;
}

/* Lead: one size everywhere. */
body :is(.lx-page-head, .mk-page-head, .lx-feature-hero, .mk-tl-hero, .mk-ct-hero, .mk-ob-hero, .mk-ex-head, .mk-rec-hero) :is(.lx-sub, .mk-tl-lead, .mk-ct-lead, .mk-ob-lead, .mk-ex-lead),
body .mk-rec-hero h1 ~ p {
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-soft, #626968);
  text-wrap: pretty;
}
body .mk-rec-hero h1 ~ p + p { margin-top: 6px; }

/* The tools "Updated" line sits under the H1 like a meta line. */
body .mk-tl-hero .mk-tl-date { margin: -6px 0 12px; font-size: 0.875rem; }

/* Recommendations: the pixel squares and wash go; the band is the same as everywhere else. */
body .mk-rec-hero .mk-rec-px { display: none; }
body .mk-rec-hero::before { display: none; }

@media (max-width: 600px) {
  body :is(.lx-page-head, .mk-page-head, .lx-feature-hero, .mk-tl-hero, .mk-ct-hero, .mk-ob-hero, .mk-ex-head, .mk-rec-hero) {
    padding-top: 36px;
  }
  body :is(.lx-page-head, .mk-page-head, .lx-feature-hero, .mk-tl-hero, .mk-ct-hero, .mk-ob-hero, .mk-ex-head, .mk-rec-hero) h1 {
    font-size: clamp(2rem, 9vw, 2.4rem);
  }
  body :is(.lx-page-head, .mk-page-head, .lx-feature-hero, .mk-tl-hero, .mk-ct-hero, .mk-ob-hero, .mk-ex-head, .mk-rec-hero) :is(.lx-sub, .mk-tl-lead, .mk-ct-lead, .mk-ob-lead, .mk-ex-lead),
  body .mk-rec-hero h1 ~ p {
    font-size: 1rem;
  }
}

/* Space under the head: 24px to the first thing on the page, everywhere.
   Heads with plain content after them get it as a margin; pages whose first section had its own top padding
   are set to the same 24px here, next to the rule that defines the gap. */
body :is(.lx-page-head, .mk-page-head, .lx-feature-hero):not(.mk-vs-head) { margin-bottom: 24px; }
body .mk-vs-archive { padding-top: 24px; }
body .mk-ob-hero + .lx-container .mk-ob-chapters { padding-top: 0; }
body .mk-ob-hero + .lx-container .mk-ob-chapter:first-child { padding-top: 24px; }
body .mk-rec-hero + .mk-rec-hosts-wrap { padding-top: 24px; }
body .mk-tl-hero + .mk-tl-list { padding-top: 24px; }
body .mk-tl-hero + .mk-tl-list > .mk-tl-list-group:first-child { padding-top: 0; }
body .mk-tl-hero + .mk-tl-maker { padding-top: 24px; }
body .mk-ct-hero + .mk-ct-help { padding-top: 24px; }


/* Space above the closing call-to-action card: the same ~100px on every page (the card itself hangs into the footer). */
body .mk-sol-body { padding-bottom: 44px; }
body .mk-ex-page > .mk-ex-grid { padding-bottom: 0; }
body .mk-sol-body > .lx-sol-group:last-child { margin-bottom: 0; padding-bottom: 0; }

/* Short answer (template-parts/answer.php): the plain question and a two or three sentence answer, under the head. */
.mk-answer { padding: 8px 0 36px; }
.mk-answer-box {
  max-width: 46rem;
  margin: 0 auto;
  padding: 22px 26px 24px;
  border: 1px solid #E4E6EB;
  border-radius: 16px;
  background: #FFFFFF;
}
.mk-answer-q {
  margin: 0 0 8px;
  font-family: var(--font-body, inherit);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink, #182021);
}
.mk-answer-a {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft, #626968);
}
@media (max-width: 600px) {
  .mk-answer-box { padding: 18px 18px 20px; }
}
