/* =========================================================
   MotorMakkers Tools – definitieve gedeelde pagina-CSS
   Voor: Route Checker, FlowIndex, Paklijst, Offroad Checker, TET GPX Splitter en MM Alpenpassen Database
   ========================================================= */

/* =========================================================
   1. Design tokens per toolpagina
   ========================================================= */

:is(.mm-rc-page, .mm-flow-page, .mm-pack-page, .mm-offroad-page, .mm-tet-page, .mm-passes-page) {
  --mm-blue: #12354a;
  --mm-blue-dark: #0b2536;
  --mm-orange: #ff4903;
  --mm-orange-hover: #d93d00;
  --mm-orange-soft: rgba(255, 73, 3, 0.12);
  --mm-bg: #f5f7fa;
  --mm-card: #ffffff;
  --mm-text: #243746;
  --mm-muted: #667785;
  --mm-border: rgba(18, 53, 74, 0.12);
  --mm-shadow: 0 18px 45px rgba(18, 53, 74, 0.12);
  --mm-card-shadow: 0 12px 32px rgba(18, 53, 74, 0.08);
  --mm-soft-shadow: 0 10px 28px rgba(18, 53, 74, 0.08);

  color: var(--mm-text);
}

.mm-rc-page {
  --mm-hero-overlay: rgba(11, 37, 54, 0.72);
  --mm-hero-content-width: 880px;
  --mm-hero-text-width: 820px;
  --mm-hero-min-height: auto;
  --mm-hero-padding-y: clamp(46px, 4.8vw, 68px);
  --mm-hero-title-size: clamp(3rem, 6vw, 5rem);
}

.mm-flow-page {
  --mm-hero-overlay: rgba(11, 37, 54, 0.72);
  --mm-hero-content-width: 900px;
  --mm-hero-text-width: 780px;
  --mm-hero-min-height: auto;
  --mm-hero-padding-y: clamp(40px, 4.5vw, 64px);
  --mm-hero-title-size: clamp(3rem, 6vw, 5rem);
}

:is(.mm-offroad-page, .mm-tet-page) {
  --mm-hero-overlay: rgba(11, 37, 54, 0.72);
  --mm-hero-content-width: 900px;
  --mm-hero-text-width: 820px;
  --mm-hero-min-height: auto;
  --mm-hero-padding-y: clamp(40px, 4.5vw, 64px);
  --mm-hero-title-size: clamp(3rem, 6vw, 5rem);
}

.mm-passes-page {
  --mm-hero-overlay: rgba(11, 37, 54, 0.74);
  --mm-hero-content-width: 900px;
  --mm-hero-text-width: 820px;
  --mm-hero-min-height: auto;
  --mm-hero-padding-y: clamp(46px, 4.8vw, 68px);
  --mm-hero-title-size: clamp(3rem, 6vw, 5rem);
}

.mm-pack-page {
  --mm-hero-overlay: linear-gradient(
    90deg,
    rgba(7, 29, 43, 0.97) 0%,
    rgba(7, 29, 43, 0.93) 34%,
    rgba(7, 29, 43, 0.78) 58%,
    rgba(7, 29, 43, 0.52) 100%
  );
  --mm-hero-content-width: 820px;
  --mm-hero-text-width: 800px;
  --mm-hero-min-height: auto;
  --mm-hero-padding-y: clamp(46px, 4.8vw, 68px);
  --mm-hero-title-size: clamp(3rem, 5.2vw, 4.8rem);
}

/* Bestaande helper uit de Paklijst-output */
.mm-met-subtitle {
  color: #ffffff;
}

/* =========================================================
   2. Basis / GeneratePress reset
   ========================================================= */

:is(.mm-rc-page, .mm-flow-page, .mm-pack-page, .mm-offroad-page, .mm-tet-page, .mm-passes-page) *,
:is(.mm-rc-page, .mm-flow-page, .mm-pack-page, .mm-offroad-page, .mm-tet-page, .mm-passes-page) *::before,
:is(.mm-rc-page, .mm-flow-page, .mm-pack-page, .mm-offroad-page, .mm-tet-page, .mm-passes-page) *::after {
  box-sizing: border-box;
}

html:has(.mm-rc-page),
body:has(.mm-rc-page),
html:has(.mm-flow-page),
body:has(.mm-flow-page),
html:has(.mm-pack-page),
body:has(.mm-pack-page),
html:has(.mm-offroad-page),
body:has(.mm-offroad-page),
html:has(.mm-tet-page),
body:has(.mm-tet-page),
html:has(.mm-passes-page),
body:has(.mm-passes-page) {
  overflow-x: clip;
}

body:has(.mm-rc-page) :is(.site-content, .content-area, #primary, .site-main, .inside-article, .entry-content),
body:has(.mm-flow-page) :is(.site-content, .content-area, #primary, .site-main, .inside-article, .entry-content),
body:has(.mm-pack-page) :is(.site-content, .content-area, #primary, .site-main, .inside-article, .entry-content),
body:has(.mm-offroad-page) :is(.site-content, .content-area, #primary, .site-main, .inside-article, .entry-content),
body:has(.mm-tet-page) :is(.site-content, .content-area, #primary, .site-main, .inside-article, .entry-content),
body:has(.mm-passes-page) :is(.site-content, .content-area, #primary, .site-main, .inside-article, .entry-content) {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

body:has(.mm-flow-page) .entry-content,
body:has(.mm-pack-page) .entry-content,
body:has(.mm-offroad-page) .entry-content,
body:has(.mm-tet-page) .entry-content,
body:has(.mm-passes-page) .entry-content {
  margin-bottom: 0;
}

body:has(.mm-flow-page) .mm-flow-page,
body:has(.mm-pack-page) .mm-pack-page,
body:has(.mm-offroad-page) .mm-offroad-page,
body:has(.mm-tet-page) .mm-tet-page,
body:has(.mm-passes-page) .mm-passes-page {
  margin-top: 0 !important;
}

body:has(.mm-rc-page) :is(.site-header, .main-navigation, .inside-header, .inside-navigation),
body:has(.mm-flow-page) :is(.site-header, .main-navigation, .inside-header, .inside-navigation),
body:has(.mm-pack-page) :is(.site-header, .main-navigation, .inside-header, .inside-navigation),
body:has(.mm-offroad-page) :is(.site-header, .main-navigation, .inside-header, .inside-navigation),
body:has(.mm-tet-page) :is(.site-header, .main-navigation, .inside-header, .inside-navigation),
body:has(.mm-passes-page) :is(.site-header, .main-navigation, .inside-header, .inside-navigation) {
  margin-bottom: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body:has(.mm-rc-page) .entry-content > :first-child,
body:has(.mm-flow-page) .entry-content > :first-child,
body:has(.mm-pack-page) .entry-content > :first-child,
body:has(.mm-offroad-page) .entry-content > :first-child,
body:has(.mm-tet-page) .entry-content > :first-child,
body:has(.mm-passes-page) .entry-content > :first-child {
  margin-top: 0 !important;
}

/* De Alpenpassen-hero bevat al de primaire H1; alleen op deze pagina de GeneratePress-titel verbergen. */
body:has(.mm-passes-page) .site-main > article > .inside-article > .entry-header {
  display: none;
}

:is(
  .mm-rc-page,
  .mm-flow-page,
  .mm-pack-page,
  .mm-offroad-page,
  .mm-tet-page,
  .mm-passes-page,
  .mm-rc-hero,
  .mm-flow-hero,
  .mm-pack-hero,
  .mm-offroad-hero,
  .mm-tet-hero,
  .mm-passes-hero,
  .mm-rc-hero-content,
  .mm-flow-hero-content,
  .mm-pack-hero-content,
  .mm-offroad-hero-content,
  .mm-tet-hero-content,
  .mm-passes-hero-content,
  .mm-rc-tool-section,
  .mm-flow-tool-section,
  .mm-pack-tool-section,
  .mm-offroad-tool-section,
  .mm-tet-tool-section,
  .mm-passes-tool-section,
  .mm-rc-tool-card,
  .mm-flow-tool-card,
  .mm-pack-tool-card,
  .mm-offroad-tool-card,
  .mm-tet-tool-card,
  .mm-passes-tool-card
) {
  min-width: 0;
}

:is(.mm-rc-page, .mm-flow-page, .mm-pack-page, .mm-offroad-page, .mm-tet-page, .mm-passes-page) :is(img, svg, canvas, iframe) {
  max-width: 100%;
}

/* =========================================================
   3. Gedeelde full-width hero
   ========================================================= */

:is(.mm-rc-hero, .mm-flow-hero, .mm-pack-hero, .mm-offroad-hero, .mm-tet-hero, .mm-passes-hero) {
  position: relative;
  isolation: isolate;
  display: block;

  width: 100vw;
  max-width: none;
  min-height: var(--mm-hero-min-height);
  margin: 0 calc(50% - 50vw);

  padding-top: var(--mm-hero-padding-y);
  padding-right: max(24px, calc((100vw - 1280px) / 2));
  padding-bottom: var(--mm-hero-padding-y);
  padding-left: max(24px, calc((100vw - 1280px) / 2));

  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;

  background-color: var(--mm-blue-dark);

  color: #ffffff;
}

/* Responsive hero-output van [mm_hero_image].
   De shortcode levert rechtstreeks één <img class="mm-modern-hero__background">.
   Die afbeelding wordt uit de normale documentflow gehaald en vormt uitsluitend
   de media-laag van de hero. Daardoor kan hij de tekstkolom nooit samendrukken. */
:is(.mm-rc-hero, .mm-flow-hero, .mm-pack-hero, .mm-offroad-hero, .mm-tet-hero)
> img.mm-modern-hero__background,
.mm-passes-hero > img.mm-modern-hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;

  display: block;
  width: 100%;
  height: 100%;
  max-width: none;

  margin: 0;
  padding: 0;

  object-fit: cover;
  object-position: center center;

  transform: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;

  pointer-events: none;
}

/* Overlay boven de responsive afbeelding. */
:is(.mm-rc-hero, .mm-flow-hero, .mm-pack-hero, .mm-offroad-hero, .mm-tet-hero, .mm-passes-hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--mm-hero-overlay);
  pointer-events: none;
}

/* Eén normale contentkolom boven afbeelding en overlay. */
:is(.mm-rc-hero-content, .mm-flow-hero-content, .mm-pack-hero-content, .mm-offroad-hero-content, .mm-tet-hero-content, .mm-passes-hero-content) {
  position: relative;
  z-index: 2;

  display: block;
  width: 100%;
  max-width: var(--mm-hero-content-width);
  min-width: 0;

  margin: 0;
}

:is(.mm-rc-eyebrow, .mm-flow-eyebrow, .mm-pack-eyebrow, .mm-offroad-eyebrow, .mm-tet-eyebrow, .mm-passes-eyebrow) {
  margin: 0 0 14px;
  color: var(--mm-orange) !important;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

:is(.mm-rc-hero, .mm-flow-hero, .mm-pack-hero, .mm-offroad-hero, .mm-tet-hero, .mm-passes-hero) h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: var(--mm-hero-title-size);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.mm-pack-hero h1 {
  margin-bottom: 20px;
}

:is(.mm-rc-hero-text, .mm-flow-hero-text, .mm-pack-hero-text, .mm-offroad-hero-text, .mm-tet-hero-text, .mm-passes-hero-text) {
  width: 100%;
  max-width: var(--mm-hero-text-width);
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.06rem, 1.7vw, 1.25rem);
  line-height: 1.75;
}

.mm-pack-hero-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.72;
}

.mm-pack-hero-text strong {
  color: #ffffff;
  font-weight: 900;
}

:is(.mm-rc-hero-buttons, .mm-flow-hero-buttons, .mm-pack-hero-buttons, .mm-offroad-hero-buttons, .mm-tet-hero-buttons, .mm-passes-hero-buttons) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Oude hero-cards mogen niet terugkomen via cache/oude markup */
.mm-flow-page .mm-flow-hero-card,
.mm-pack-hero .mm-pack-hero-card,
.mm-pack-hero .mm-pack-preview,
.mm-pack-hero .mm-pack-tags,
.mm-offroad-hero-card,
.mm-tet-hero-card,
.mm-tet-highlight-section {
  display: none !important;
}

/* =========================================================
   4. Gedeelde buttons
   ========================================================= */

:is(.mm-rc-button, .mm-flow-button, .mm-pack-button, .mm-offroad-button, .mm-tet-button, .mm-passes-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

:is(.mm-rc-button, .mm-flow-button, .mm-pack-button, .mm-offroad-button, .mm-tet-button, .mm-passes-button):hover {
  transform: translateY(-2px);
}

:is(.mm-rc-button-primary, .mm-flow-button-primary, .mm-pack-button-primary, .mm-offroad-button-primary, .mm-tet-button-primary, .mm-passes-button-primary) {
  background: var(--mm-orange);
  border: 1px solid var(--mm-orange);
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(255, 73, 3, 0.28);
}

:is(.mm-rc-button-primary, .mm-flow-button-primary, .mm-pack-button-primary, .mm-offroad-button-primary, .mm-tet-button-primary, .mm-passes-button-primary):hover {
  background: var(--mm-orange-hover);
  border-color: var(--mm-orange-hover);
  color: #ffffff !important;
}

:is(.mm-rc-button-secondary, .mm-flow-button-secondary, .mm-pack-button-secondary, .mm-offroad-button-secondary, .mm-tet-button-secondary, .mm-passes-button-secondary) {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff !important;
}

:is(.mm-rc-button-secondary, .mm-flow-button-secondary, .mm-pack-button-secondary, .mm-offroad-button-secondary, .mm-tet-button-secondary, .mm-passes-button-secondary):hover {
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff !important;
}

/* =========================================================
   5. Gedeelde section headings
   ========================================================= */

:is(.mm-rc-section-heading, .mm-flow-section-heading, .mm-pack-section-heading, .mm-offroad-section-heading, .mm-tet-section-heading, .mm-passes-section-heading) {
  width: 100%;
  max-width: none;
  margin: 0 0 26px;
}

:is(
  .mm-rc-section-heading h2,
  .mm-flow-section-heading h2,
  .mm-pack-section-heading h2,
  .mm-offroad-section-heading h2,
  .mm-tet-section-heading h2,
  .mm-passes-section-heading h2,
  .mm-rc-final h2,
  .mm-flow-final h2,
  .mm-pack-final h2,
  .mm-offroad-final h2,
  .mm-tet-final h2,
  .mm-passes-final h2
) {
  margin: 0 0 14px;
  color: var(--mm-blue-dark);
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

:is(
  .mm-rc-section-heading h2,
  .mm-flow-section-heading h2,
  .mm-pack-section-heading h2,
  .mm-offroad-section-heading h2,
  .mm-tet-section-heading h2,
  .mm-passes-section-heading h2,
  .mm-rc-final h2,
  .mm-flow-final h2,
  .mm-pack-final h2,
  .mm-offroad-final h2,
  .mm-tet-final h2,
  .mm-passes-final h2
)::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin-top: 14px;
  background: var(--mm-orange);
}

.mm-rc-section-heading p:not(.mm-rc-eyebrow),
.mm-flow-section-heading p:not(.mm-flow-eyebrow),
.mm-pack-section-heading p:not(.mm-pack-eyebrow),
.mm-offroad-section-heading p:not(.mm-offroad-eyebrow),
.mm-tet-section-heading p:not(.mm-tet-eyebrow),
.mm-passes-section-heading p:not(.mm-passes-eyebrow) {
  max-width: 900px;
  margin: 0;
  color: var(--mm-muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

/* Full-width introregels waar dat al gewenst was */
.mm-pack-tool-section .mm-pack-section-heading > p:not(.mm-pack-eyebrow),
.mm-pack-features .mm-pack-section-heading > p:not(.mm-pack-eyebrow) {
  width: 100%;
  max-width: none;
}

/* =========================================================
   6. Gedeelde panels / tekstsecties
   ========================================================= */

:is(
  .mm-rc-intro,
  .mm-flow-intro,
  .mm-pack-intro,
  .mm-pack-europe,
  .mm-pack-why,
  .mm-offroad-intro,
  .mm-tet-intro,
  .mm-tet-warning,
  .mm-passes-intro
) {
  padding: clamp(28px, 4vw, 48px);
  margin: 0 0 52px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 73, 3, 0.08), transparent 34%),
    var(--mm-bg);
}

:is(.mm-rc-intro-full, .mm-flow-intro-full, .mm-offroad-intro-full, .mm-tet-intro-full, .mm-passes-intro-full) {
  width: 100%;
  max-width: none;
}

.mm-flow-intro-full p {
  width: 100%;
  max-width: none;
}

:is(
  .mm-rc-intro-full p,
  .mm-flow-intro-full p,
  .mm-pack-text-grid p,
  .mm-rc-content-section p,
  .mm-rc-final p,
  .mm-flow-final p:not(.mm-flow-eyebrow),
  .mm-pack-final p,
  .mm-offroad-intro-full p,
  .mm-offroad-how p,
  .mm-offroad-who p,
  .mm-offroad-final p,
  .mm-tet-intro-full p,
  .mm-tet-warning p,
  .mm-tet-final p,
  .mm-passes-intro-full p,
  .mm-passes-content-section p,
  .mm-passes-final p
) {
  margin: 0 0 18px;
  color: var(--mm-muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.mm-flow-final p:not(.mm-flow-eyebrow) {
  line-height: 1.75;
}

:is(.mm-rc-text-grid, .mm-pack-text-grid, .mm-offroad-text-grid, .mm-tet-text-grid, .mm-passes-text-grid) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

/* =========================================================
   7. Gedeelde cards
   ========================================================= */

:is(.mm-rc-card-grid, .mm-rc-step-grid, .mm-pack-card-grid, .mm-pack-faq-grid, .mm-offroad-card-grid, .mm-offroad-step-grid, .mm-tet-step-grid, .mm-tet-card-grid, .mm-tet-tools-grid, .mm-passes-card-grid) {
  display: grid;
  gap: 22px;
}

:is(.mm-rc-card, .mm-rc-step, .mm-pack-card, .mm-pack-faq-item, .mm-offroad-card, .mm-offroad-step, .mm-offroad-mini-card, .mm-tet-step, .mm-tet-card, .mm-tet-tool-link, .mm-passes-card) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border-radius: 24px;
  background: var(--mm-card);
  border: 1px solid var(--mm-border);
  box-shadow: var(--mm-card-shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

:is(.mm-rc-card, .mm-rc-step, .mm-pack-card, .mm-pack-faq-item, .mm-offroad-card, .mm-offroad-step, .mm-offroad-mini-card, .mm-tet-step, .mm-tet-card, .mm-tet-tool-link, .mm-passes-card):hover {
  transform: translateY(-4px);
  border-color: rgba(255, 73, 3, 0.42);
  box-shadow: var(--mm-shadow);
}

:is(.mm-rc-card span, .mm-rc-step span, .mm-pack-card span, .mm-offroad-card span, .mm-offroad-step span, .mm-tet-step span, .mm-tet-card span, .mm-passes-card span) {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--mm-orange);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

:is(.mm-rc-card h3, .mm-rc-step h3, .mm-pack-card h3, .mm-pack-faq-item h3, .mm-offroad-card h3, .mm-offroad-step h3, .mm-tet-step h3, .mm-tet-card h3, .mm-tet-tool-link h3, .mm-passes-card h3) {
  margin: 0 0 10px;
  color: var(--mm-blue-dark);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.2;
}

:is(.mm-rc-card p, .mm-rc-step p, .mm-pack-card p, .mm-pack-faq-item p, .mm-offroad-card p, .mm-offroad-step p, .mm-tet-step p, .mm-tet-card p, .mm-tet-tool-link p, .mm-passes-card p) {
  margin: 0;
  color: var(--mm-muted);
  line-height: 1.65;
}

/* =========================================================
   8. Gedeelde final-card
   ========================================================= */

:is(.mm-rc-final, .mm-flow-final, .mm-pack-final, .mm-offroad-final, .mm-tet-final, .mm-passes-final) {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  padding: clamp(28px, 5vw, 52px);
  margin-bottom: 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at bottom right, rgba(255, 73, 3, 0.08), transparent 34%),
    linear-gradient(135deg, #ffffff, #f5f7fa);
  border: 1px solid var(--mm-border);
}

/* =========================================================
   9. Breadcrumbs / anchors
   ========================================================= */

.mm-flow-tool-anchor {
  display: block;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
}

body:has(.mm-pack-page) .mm-pack-breadcrumb-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 28px !important;
  padding: 10px 24px 0 !important;
}

body:has(.mm-pack-page) .mm-pack-breadcrumb-wrap > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* =========================================================
   10. Route Checker – specifiek
   ========================================================= */

.mm-rc-highlight-section {
  display: none !important;
}

.mm-rc-tool-section {
  padding-top: 30px;
  margin: 0 0 34px;
}

.mm-rc-tool-card,
.mm-pack-tool-card,
.mm-offroad-tool-card,
.mm-tet-tool-card,
.mm-passes-tool-card {
  padding: clamp(20px, 3vw, 34px);
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--mm-border);
  box-shadow: var(--mm-shadow);
}

.mm-rc-disclaimer {
  margin: 0 0 52px;
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--mm-orange-soft);
  border: 1px solid rgba(255, 73, 3, 0.22);
}

.mm-rc-disclaimer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--mm-blue-dark);
  font-size: 1.12rem;
  font-weight: 900;
}

.mm-rc-disclaimer p {
  margin: 0;
  color: var(--mm-text);
  line-height: 1.75;
}

.mm-rc-disclaimer span {
  text-decoration: underline;
}

.mm-rc-video-section,
.mm-rc-benefits,
.mm-rc-content-section,
.mm-rc-steps,
.mm-rc-region-section {
  margin: 0 0 52px;
}

.mm-rc-video-card {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--mm-border);
  box-shadow: var(--mm-shadow);
}

.mm-rc-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.mm-rc-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mm-rc-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mm-rc-step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mm-rc-region-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mm-rc-region-grid div {
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--mm-bg);
  border: 1px solid var(--mm-border);
  color: var(--mm-blue-dark);
  font-weight: 900;
}

.mm-rc-region-grid a {
  color: var(--mm-blue-dark);
  text-decoration: none !important;
  font-weight: 900;
}

.mm-rc-region-grid a:hover {
  color: var(--mm-orange);
}

/* =========================================================
   11. FlowIndex – specifiek
   ========================================================= */

.mm-flow-tool-section {
  margin: 0 0 52px;
}

.mm-flow-tool-card {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.mm-flow-tool-card > * {
  margin-left: auto;
  margin-right: auto;
}

.mm-flow-note-section,
.mm-flow-score-overview,
.mm-flow-metrics {
  margin: 0 0 52px;
}

.mm-flow-note-box,
.mm-pack-note-box {
  width: 100%;
  padding: 28px 30px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--mm-border);
  box-shadow: var(--mm-soft-shadow);
}

.mm-flow-note-box strong {
  display: block;
  margin-bottom: 10px;
  color: var(--mm-blue-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.mm-flow-note-box p {
  margin: 0;
  color: var(--mm-muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

/* Score overview */
.mm-flow-score-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--mm-border);
  box-shadow: var(--mm-shadow);
}

.mm-flow-score-image {
  padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 73, 3, 0.10), transparent 36%),
    var(--mm-bg);
}

.mm-flow-score-image img {
  display: block;
  width: 100%;
  height: auto;
}

.mm-flow-score-text h3 {
  margin: 0 0 18px;
  color: var(--mm-blue-dark);
  font-size: 1.6rem;
  font-weight: 900;
}

.mm-flow-range-list {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.mm-flow-range-list div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--mm-bg);
}

.mm-flow-range-list strong {
  color: var(--mm-orange);
}

.mm-flow-range-list span {
  color: var(--mm-text);
}

.mm-flow-score-text p {
  margin: 0 0 16px;
  color: var(--mm-muted);
  line-height: 1.7;
}

.mm-flow-highlight {
  display: inline-block;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--mm-orange-soft);
  color: var(--mm-blue-dark) !important;
  font-weight: 900;
}

/* Metrics */
.mm-flow-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.mm-flow-metric-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--mm-border);
  box-shadow: var(--mm-card-shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.mm-flow-metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 73, 3, 0.42);
  box-shadow: var(--mm-shadow);
}

.mm-flow-metric-card > img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: contain;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 73, 3, 0.08), transparent 38%),
    var(--mm-bg);
}

.mm-flow-metric-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.mm-flow-metric-body span {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--mm-orange-soft);
  color: var(--mm-orange);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mm-flow-metric-body h3 {
  margin: 0 0 10px;
  color: var(--mm-blue-dark);
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.2;
}

.mm-flow-metric-body p {
  margin: 0 0 16px;
  color: var(--mm-muted);
  line-height: 1.65;
}

.mm-flow-metric-body details {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--mm-border);
}

.mm-flow-metric-body summary {
  cursor: pointer;
  color: var(--mm-blue-dark);
  font-weight: 900;
}

.mm-flow-metric-body details p {
  margin-top: 12px;
  font-size: 0.95rem;
}

/* Extra context */
.mm-flow-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
}

.mm-flow-context-item {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(18, 53, 74, 0.10);
  box-shadow: 0 10px 28px rgba(18, 53, 74, 0.06);
}

.mm-flow-context-item h3 {
  position: relative;
  margin: 0;
  padding-left: 16px;
  color: var(--mm-blue-dark);
  font-size: 1.16rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.mm-flow-context-item h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.14em;
  width: 4px;
  height: 1em;
  border-radius: 999px;
  background: var(--mm-orange);
}

.mm-flow-context-item span {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--mm-text);
  font-size: 1rem;
  line-height: 1.72;
}

/* =========================================================
   12. Paklijst – specifiek
   ========================================================= */

.mm-pack-note-section,
.mm-pack-benefits,
.mm-pack-save,
.mm-pack-faq {
  margin: 0 0 52px;
}

.mm-pack-note-box {
  background: var(--mm-orange-soft);
  border-color: rgba(255, 73, 3, 0.22);
}

.mm-pack-note-box h3 {
  margin: 0 0 16px;
  color: var(--mm-blue-dark);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.3;
}

.mm-pack-note-box p {
  margin: 0;
  color: var(--mm-text);
  font-size: 1.06rem;
  line-height: 1.8;
}

.mm-pack-note-box p strong {
  display: inline;
  margin: 0;
  color: var(--mm-blue-dark);
  font-weight: 900;
}

.mm-pack-note-box a {
  color: var(--mm-blue-dark);
  font-weight: 900;
  text-decoration-color: var(--mm-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.mm-pack-note-box a:hover {
  color: var(--mm-orange);
}

.mm-pack-tool-section {
  margin: 0 0 34px;
}

.mm-pack-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mm-pack-card-grid-two,
.mm-pack-faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mm-pack-features {
  margin: 0 0 72px;
}

/* 5 keuze-cards: 3 boven + 2 gecentreerd */
@media (min-width: 1100px) {
  .mm-pack-card-grid-three {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
  }

  .mm-pack-card-grid-three > .mm-pack-card {
    grid-column: span 2;
    height: 100%;
  }

  .mm-pack-card-grid-three > .mm-pack-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .mm-pack-card-grid-three > .mm-pack-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

/* 3 feature-cards over de volle breedte */
.mm-pack-card-grid-three-simple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.mm-pack-card-grid-three-simple > .mm-pack-card {
  height: 100%;
}

/* Oude highlight definitief weg */
body:has(.mm-pack-page) .mm-pack-highlight-section {
  display: none !important;
}


/* =========================================================
   13. Offroad Checker + TET Splitter – specifiek
   De basislayout komt uit dezelfde gedeelde tool-CSS.
   ========================================================= */

/* Toolsecties */
.mm-offroad-tool-section,
.mm-tet-tool-section {
  padding-top: 30px;
  margin: 0 0 34px;
}

/* Notities */
.mm-offroad-note-section,
.mm-tet-note-section {
  margin: 0 0 52px;
}

.mm-offroad-note-box,
.mm-tet-note-box {
  width: 100%;
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--mm-orange-soft);
  border: 1px solid rgba(255, 73, 3, 0.22);
}

:is(.mm-offroad-note-box, .mm-tet-note-box) strong {
  display: block;
  margin-bottom: 8px;
  color: var(--mm-blue-dark);
  font-size: 1.12rem;
  font-weight: 900;
}

:is(.mm-offroad-note-box, .mm-tet-note-box) p {
  margin: 0;
  color: var(--mm-text);
  line-height: 1.75;
}

/* Video: bewust dezelfde kaartbehandeling als Route Checker */
.mm-offroad-video-section,
.mm-tet-video-section,
.mm-offroad-benefits,
.mm-offroad-how,
.mm-offroad-steps,
.mm-offroad-who,
.mm-tet-steps,
.mm-tet-recognize,
.mm-tet-tools {
  margin: 0 0 52px;
}

.mm-offroad-video-card,
.mm-tet-video-card {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--mm-border);
  box-shadow: var(--mm-shadow);
}

.mm-offroad-video-embed,
.mm-tet-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

:is(.mm-offroad-video-embed, .mm-tet-video-embed) iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Desktopgrids: dezelfde kaartbreedte als de overige tools */
.mm-offroad-card-grid,
.mm-offroad-step-grid,
.mm-tet-step-grid,
.mm-tet-card-grid,
.mm-tet-tools-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Extra Offroad-card */
.mm-offroad-mini-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--mm-blue-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.mm-offroad-mini-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--mm-muted);
  line-height: 1.8;
}

.mm-offroad-mini-card li::marker {
  color: var(--mm-orange);
}

/* TET interne links */
.mm-tet-intro a,
.mm-tet-tool-link a {
  color: var(--mm-blue-dark);
  font-weight: 900;
  text-decoration-color: var(--mm-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.mm-tet-intro a:hover,
.mm-tet-tool-link a:hover {
  color: var(--mm-orange);
}

.mm-tet-tool-link a {
  margin-top: auto;
}

/* Specifieke anchors zijn gelijkwaardig aan FlowIndex */
.mm-offroad-tool-section,
.mm-tet-tool-section {
  scroll-margin-top: 24px;
}


/* =========================================================
   14. MM Alpenpassen Database – specifiek
   Volledig opgenomen in de gedeelde toolpagina-architectuur.
   ========================================================= */

.mm-passes-tool-section {
  padding-top: 30px;
  margin: 0 0 34px;
  scroll-margin-top: 24px;
}

.mm-passes-note-section,
.mm-passes-benefits,
.mm-passes-content-section {
  margin: 0 0 52px;
}

.mm-passes-note-box {
  width: 100%;
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--mm-orange-soft);
  border: 1px solid rgba(255, 73, 3, 0.22);
}

.mm-passes-note-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--mm-blue-dark);
  font-size: 1.12rem;
  font-weight: 900;
}

.mm-passes-note-box p {
  margin: 0;
  color: var(--mm-text);
  font-size: 1.06rem;
  line-height: 1.75;
}

.mm-passes-intro-full p {
  width: 100%;
  max-width: none;
}

.mm-passes-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.mm-passes-card {
  height: 100%;
}

.mm-passes-content-section {
  width: 100%;
}

.mm-passes-final .mm-passes-button {
  margin-top: 6px;
}

/* =========================================================
   15. Responsive
   ========================================================= */

@media (max-width: 1200px) {
  .mm-pack-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .mm-rc-card-grid,
  .mm-offroad-card-grid,
  .mm-tet-step-grid,
  .mm-tet-card-grid,
  .mm-tet-tools-grid,
  .mm-passes-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is(.mm-rc-final, .mm-flow-final, .mm-pack-final, .mm-offroad-final, .mm-tet-final, .mm-passes-final),
  .mm-flow-score-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1050px) {
  .mm-flow-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 651px) and (max-width: 1099px) {
  .mm-pack-card-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-pack-card-grid-three > .mm-pack-card:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 22px) / 2);
  }
}

@media (min-width: 651px) and (max-width: 1000px) {
  .mm-pack-card-grid-three-simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-pack-card-grid-three-simple > .mm-pack-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 22px) / 2);
  }
}

@media (max-width: 900px) {
  .mm-flow-context-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 850px) {
  :is(.mm-pack-text-grid, .mm-pack-faq-grid, .mm-pack-card-grid-two, .mm-offroad-text-grid, .mm-tet-text-grid, .mm-passes-text-grid) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  :is(.mm-rc-step-grid, .mm-rc-text-grid, .mm-offroad-step-grid) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .mm-flow-context-grid {
    gap: 16px;
  }

  .mm-flow-context-item {
    gap: 8px;
    padding: 18px 18px 17px;
    border-radius: 16px;
  }

  .mm-flow-context-item h3 {
    padding-left: 14px;
    font-size: 1.06rem;
  }

  .mm-flow-context-item h3::before {
    width: 3px;
  }

  .mm-flow-context-item span {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .mm-flow-range-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 650px) {
  :is(.mm-rc-hero, .mm-flow-hero, .mm-pack-hero, .mm-offroad-hero, .mm-tet-hero, .mm-passes-hero) {
    width: 100vw;
    max-width: none;
    min-height: auto;
    margin: 0 calc(50% - 50vw);
    padding: 30px 24px;
    border-radius: 0;
  }

  .mm-rc-hero,
  .mm-pack-hero {
    padding: 34px 22px 36px;
  }

  .mm-pack-hero > img.mm-modern-hero__background {
    object-position: 58% center;
  }

  .mm-rc-hero::before,
  .mm-flow-hero::before,
  .mm-offroad-hero::before,
  .mm-tet-hero::before,
  .mm-passes-hero::before {
    background: rgba(11, 37, 54, 0.82);
  }

  .mm-pack-hero::before {
    background: rgba(7, 29, 43, 0.88);
  }

  :is(.mm-rc-hero h1, .mm-flow-hero h1, .mm-offroad-hero h1, .mm-tet-hero h1, .mm-passes-hero h1) {
    font-size: clamp(2.6rem, 12vw, 4rem);
    line-height: 1.02;
  }

  .mm-pack-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(2.65rem, 12vw, 3.8rem);
    line-height: 1;
  }

  .mm-pack-hero-content {
    max-width: none;
  }

  :is(.mm-rc-hero-text, .mm-pack-hero-text, .mm-offroad-hero-text, .mm-tet-hero-text, .mm-passes-hero-text) {
    font-size: 1.02rem;
    line-height: 1.65;
  }

  .mm-pack-hero-text {
    max-width: none;
    font-size: 1rem;
    line-height: 1.62;
  }

  :is(.mm-rc-hero-buttons, .mm-flow-hero-buttons, .mm-pack-hero-buttons, .mm-offroad-hero-buttons, .mm-tet-hero-buttons, .mm-passes-hero-buttons) {
    flex-direction: column;
  }

  .mm-pack-hero-buttons {
    margin-top: 24px;
  }

  :is(.mm-rc-button, .mm-flow-button, .mm-pack-button, .mm-offroad-button, .mm-tet-button, .mm-passes-button) {
    width: 100%;
  }

  .mm-rc-tool-section,
  .mm-passes-tool-section {
    padding-top: 24px;
  }

  body:has(.mm-pack-page) .mm-pack-breadcrumb-wrap {
    margin-bottom: 22px !important;
    padding: 10px 16px 0 !important;
  }

  :is(.mm-flow-intro, .mm-rc-intro, .mm-pack-intro, .mm-pack-europe, .mm-pack-why, .mm-offroad-intro, .mm-tet-intro, .mm-tet-warning, .mm-passes-intro, .mm-rc-final, .mm-flow-final, .mm-pack-final, .mm-offroad-final, .mm-tet-final, .mm-passes-final) {
    padding: 24px 20px;
    border-radius: 22px;
  }

  :is(.mm-rc-tool-card, .mm-pack-tool-card, .mm-offroad-tool-card, .mm-tet-tool-card, .mm-passes-tool-card) {
    padding: 18px;
    border-radius: 22px;
  }

  .mm-pack-note-box,
  .mm-passes-note-box {
    padding: 22px 20px;
    border-radius: 20px;
  }

  :is(.mm-rc-card-grid, .mm-pack-card-grid, .mm-flow-metric-grid, .mm-pack-card-grid-three, .mm-pack-card-grid-three-simple, .mm-offroad-card-grid, .mm-offroad-step-grid, .mm-tet-step-grid, .mm-tet-card-grid, .mm-tet-tools-grid, .mm-passes-card-grid) {
    grid-template-columns: 1fr;
  }

  .mm-pack-card-grid-three > .mm-pack-card:nth-child(5),
  .mm-pack-card-grid-three-simple > .mm-pack-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .mm-pack-features {
    margin-bottom: 60px;
  }

  :is(
    .mm-rc-section-heading h2,
    .mm-flow-section-heading h2,
    .mm-pack-section-heading h2,
    .mm-rc-final h2,
    .mm-flow-final h2,
    .mm-pack-final h2,
    .mm-offroad-section-heading h2,
    .mm-tet-section-heading h2,
    .mm-offroad-final h2,
    .mm-tet-final h2,
    .mm-passes-section-heading h2,
    .mm-passes-final h2
  ) {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }
}
/* =========================================================
   16. Route Checker – section eyebrow fix
   ========================================================= */

.mm-rc-page .mm-rc-section-heading > .mm-rc-eyebrow {
  display: block;
  margin: 0 0 22px !important;
  color: #ff4903 !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
}
