/* ==========================================================================
   MN Lake Homes — Brand System v1 "Clearwater Loon"
   /styles/brand.css  — the ONLY stylesheet once migration is done.
   Prefix: mlh-  (avoids collisions with old style.css during migration)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand colour */
  --mlh-midnight: #0B1726;
  --mlh-night: #12233A;
  --mlh-night-line: #22354F;
  --mlh-blue: #1D6DF2;
  --mlh-blue-hover: #155BC8;
  --mlh-blue-press: #104AA6;
  --mlh-glacier: #8EC5F5;
  --mlh-sky: #CFE0F8;
  --mlh-ice: #EEF4FC;
  --mlh-canvas: #F5F8FC;
  --mlh-white: #FFFFFF;

  /* Text */
  --mlh-heading: #0B1726;
  --mlh-ink: #0B1320;
  --mlh-body: #3A4556;
  --mlh-muted: #5B6778;
  --mlh-on-dark: #FFFFFF;
  --mlh-on-dark-muted: #A7B6C9;

  /* Lines */
  --mlh-line: #E3E8EF;
  --mlh-line-strong: #CBD5E1;

  /* Status (portals only) */
  --mlh-success: #0F7B4F;  --mlh-success-bg: #E6F4EE;
  --mlh-warning: #9A5B00;  --mlh-warning-bg: #FFF4E0;
  --mlh-danger:  #C4322B;  --mlh-danger-bg:  #FDECEB;
  --mlh-info:    #1D6DF2;  --mlh-info-bg:    #EEF4FC;

  /* Image scrim (text over photos) */
  --mlh-scrim: linear-gradient(to top, rgba(11,23,38,.82) 0%, rgba(11,23,38,.35) 45%, rgba(11,23,38,0) 70%);

  /* Type */
  --mlh-font-display: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mlh-font-body: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --mlh-fs-display: clamp(44px, 6.2vw, 84px);
  --mlh-fs-h1: clamp(36px, 4.4vw, 52px);
  --mlh-fs-h2: clamp(32px, 4vw, 48px);
  --mlh-fs-h3: clamp(22px, 2.2vw, 26px);
  --mlh-fs-h4: 20px;
  --mlh-fs-lg: 18px;
  --mlh-fs-md: 16px;
  --mlh-fs-sm: 14px;
  --mlh-fs-xs: 12px;
  --mlh-fs-eyebrow: 13px;

  --mlh-track-display: -0.04em;
  --mlh-track-heading: -0.035em;
  --mlh-track-title: -0.03em;

  /* Space */
  --mlh-s-1: 4px;  --mlh-s-2: 8px;  --mlh-s-3: 12px; --mlh-s-4: 16px;
  --mlh-s-5: 20px; --mlh-s-6: 24px; --mlh-s-8: 32px; --mlh-s-10: 40px;
  --mlh-s-12: 48px; --mlh-s-14: 56px; --mlh-s-16: 64px; --mlh-s-20: 80px;
  --mlh-s-24: 96px; --mlh-s-28: 112px;

  /* Radius */
  --mlh-r-input: 14px;
  --mlh-r-inner: 16px;
  --mlh-r-card: 22px;
  --mlh-r-panel: 28px;
  --mlh-r-pill: 999px;

  /* Elevation */
  --mlh-shadow-float: 0 16px 40px rgba(5, 12, 22, 0.18);
  --mlh-shadow-hover: 0 8px 24px rgba(11, 23, 38, 0.08);
  --mlh-shadow-modal: 0 24px 64px rgba(5, 12, 22, 0.28);

  /* Layout */
  --mlh-container: 1290px;
  --mlh-gutter: 56px;
  --mlh-section: 112px;
  --mlh-nav-h: 80px;
  --mlh-sidebar-w: 264px;

  /* Motion */
  --mlh-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --mlh-dur: 180ms;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--mlh-font-body);
  font-size: var(--mlh-fs-md);
  line-height: 1.6;
  color: var(--mlh-ink);
  background: var(--mlh-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--mlh-font-display);
  color: var(--mlh-heading);
  font-weight: 800;
  line-height: 1.02;
}
h1 { font-size: var(--mlh-fs-h1); letter-spacing: var(--mlh-track-heading); }
h2 { font-size: var(--mlh-fs-h2); letter-spacing: var(--mlh-track-heading); }
h3 { font-size: var(--mlh-fs-h3); letter-spacing: var(--mlh-track-title); line-height: 1.15; }
h4 { font-size: var(--mlh-fs-h4); letter-spacing: -0.02em; font-weight: 700; line-height: 1.25; }
p { margin: 0; color: var(--mlh-body); }
a { color: var(--mlh-blue); text-decoration: none; transition: color var(--mlh-dur) var(--mlh-ease); }
a:hover { color: var(--mlh-heading); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--mlh-sky); color: var(--mlh-heading); }
:focus-visible { outline: 2px solid var(--mlh-blue); outline-offset: 3px; border-radius: 6px; }
.mlh-dark :focus-visible, .mlh-band--midnight :focus-visible { outline-color: var(--mlh-glacier); }

/* ---------- 3. Utilities ---------- */
.mlh-container { width: 100%; max-width: calc(var(--mlh-container) + var(--mlh-gutter) * 2); margin-inline: auto; padding-inline: var(--mlh-gutter); }
.mlh-section { padding-block: var(--mlh-section) 0; }
.mlh-section--inner { padding-block: 88px 0; }
.mlh-section--last { padding-bottom: var(--mlh-section); }
.mlh-stack { display: flex; flex-direction: column; gap: var(--mlh-s-4); }
.mlh-stack--lg { gap: var(--mlh-s-8); }
.mlh-row { display: flex; align-items: center; gap: var(--mlh-s-3); flex-wrap: wrap; }
.mlh-row--between { justify-content: space-between; }
.mlh-grid { display: grid; gap: var(--mlh-s-4); }
.mlh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mlh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mlh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mlh-grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--mlh-s-12); }
.mlh-col-4 { grid-column: span 4; } .mlh-col-5 { grid-column: span 5; }
.mlh-col-7 { grid-column: span 7; } .mlh-col-8 { grid-column: span 8; }
.mlh-grid--center { align-items: center; }

.mlh-eyebrow { font-size: var(--mlh-fs-eyebrow); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mlh-blue); }
.mlh-display { font-family: var(--mlh-font-display); font-size: var(--mlh-fs-display); font-weight: 800; letter-spacing: var(--mlh-track-display); line-height: .96; color: var(--mlh-heading); }
.mlh-hl { color: var(--mlh-blue); }                       /* headline highlight span */
.mlh-lede { font-size: var(--mlh-fs-lg); line-height: 1.55; color: var(--mlh-muted); }
.mlh-muted { color: var(--mlh-muted); }
.mlh-small { font-size: var(--mlh-fs-sm); }
.mlh-center { text-align: center; }
.mlh-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; }

/* Dark context: put .mlh-dark on any Midnight container */
.mlh-dark { background: var(--mlh-midnight); color: var(--mlh-on-dark); }
.mlh-dark h1, .mlh-dark h2, .mlh-dark h3, .mlh-dark h4 { color: var(--mlh-on-dark); }
.mlh-dark p, .mlh-dark .mlh-muted { color: var(--mlh-on-dark-muted); }
.mlh-dark .mlh-eyebrow, .mlh-dark .mlh-hl, .mlh-dark a:not(.mlh-btn) { color: var(--mlh-glacier); }
.mlh-dark a:not(.mlh-btn):hover { color: var(--mlh-on-dark); }

/* ---------- 4. Logo ---------- */
.mlh-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mlh-logo__mark { width: 38px; height: 38px; flex: none; }
.mlh-logo__word { font-family: var(--mlh-font-display); font-weight: 800; font-size: 23px; letter-spacing: var(--mlh-track-heading); color: var(--mlh-heading); white-space: nowrap; }
.mlh-dark .mlh-logo__word { color: var(--mlh-on-dark); }
.mlh-logo--sm .mlh-logo__mark { width: 30px; height: 30px; }
.mlh-logo--sm .mlh-logo__word { font-size: 19px; }

/* ---------- 5. Buttons & links ---------- */
.mlh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border: 0; border-radius: var(--mlh-r-pill);
  font-family: var(--mlh-font-body); font-size: 15px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--mlh-dur) var(--mlh-ease), color var(--mlh-dur) var(--mlh-ease), box-shadow var(--mlh-dur) var(--mlh-ease);
}
.mlh-btn--primary { background: var(--mlh-blue); color: var(--mlh-on-dark); }
.mlh-btn--primary:hover { background: var(--mlh-blue-hover); color: var(--mlh-on-dark); }
.mlh-btn--primary:active { background: var(--mlh-blue-press); }
.mlh-btn--secondary { background: var(--mlh-ice); color: var(--mlh-heading); }
.mlh-btn--secondary:hover { background: var(--mlh-sky); color: var(--mlh-heading); }
.mlh-btn--outline { background: transparent; color: var(--mlh-ink); box-shadow: inset 0 0 0 1px var(--mlh-line); }
.mlh-btn--outline:hover { box-shadow: inset 0 0 0 1px var(--mlh-line-strong); color: var(--mlh-ink); }
.mlh-btn--dark { background: var(--mlh-midnight); color: var(--mlh-on-dark); }
.mlh-btn--dark:hover { background: var(--mlh-night); color: var(--mlh-on-dark); }
.mlh-btn--light { background: var(--mlh-white); color: var(--mlh-heading); }       /* on Blue or Midnight */
.mlh-btn--light:hover { background: var(--mlh-ice); color: var(--mlh-heading); }
.mlh-btn--danger { background: var(--mlh-danger); color: var(--mlh-on-dark); }
.mlh-btn--danger:hover { background: #A32822; color: var(--mlh-on-dark); }
.mlh-btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.mlh-btn--lg { height: 56px; padding: 0 30px; font-size: 16px; }
.mlh-btn--block { width: 100%; }
.mlh-btn[disabled], .mlh-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.mlh-btn--icon { width: 44px; padding: 0; }

.mlh-link-arrow { font-weight: 600; font-size: 15px; color: var(--mlh-blue); }
.mlh-link-arrow::after { content: " →"; }

/* ---------- 6. Public navigation ---------- */
.mlh-nav { position: sticky; top: 0; z-index: 50; background: var(--mlh-white); border-bottom: 1px solid transparent; }
.mlh-nav.is-scrolled { border-bottom-color: var(--mlh-line); }
/* When a mega menu is open the bar goes fully solid so bar + dropdown read as one surface */
.mlh-nav.is-mega-open { background: var(--mlh-white); backdrop-filter: none; border-bottom-color: transparent; }
.mlh-nav__inner { height: var(--mlh-nav-h); display: flex; align-items: center; gap: 28px; }
.mlh-nav__brand { margin-right: auto; }
.mlh-nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.mlh-nav__link { color: var(--mlh-ink); font-size: 15px; font-weight: 500; }
.mlh-nav__link:hover, .mlh-nav__link[aria-current="page"] { color: var(--mlh-blue); }
.mlh-nav__actions { display: flex; align-items: center; gap: 10px; }
.mlh-nav__toggle { display: none; }
/* Mega menu (reuse your existing nav-megamenu behaviour, restyled) */
.mlh-mega { position: absolute; left: 0; right: 0; top: var(--mlh-nav-h); background: var(--mlh-white); box-shadow: var(--mlh-shadow-float); padding: 24px 0 32px; }
.mlh-mega__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.mlh-mega__heading { font-size: var(--mlh-fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mlh-muted); margin-bottom: 12px; }
.mlh-mega a { display: block; padding: 6px 0; color: var(--mlh-ink); font-weight: 500; }
.mlh-mega a:hover { color: var(--mlh-blue); }
.mlh-nav__link[data-nav-id] { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; font: inherit; }

/* Hamburger toggle (shown ≤1024px via §23) */
.mlh-nav__toggle { align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--mlh-r-btn); border: 1px solid var(--mlh-line); background: var(--mlh-white); color: var(--mlh-heading); cursor: pointer; }
.mlh-nav__toggle:hover { border-color: var(--mlh-line-strong); }

/* Account dropdown */
.mlh-account { position: relative; }
.mlh-account__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--mlh-line); background: var(--mlh-blue); color: var(--mlh-on-dark); font-family: var(--mlh-font-display); font-weight: 700; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; padding: 0; }
.mlh-account__btn:hover { border-color: var(--mlh-line-strong); }
.mlh-account__btn img { width: 100%; height: 100%; object-fit: cover; }
.mlh-account__menu { display: none; position: absolute; right: 0; top: 54px; width: 288px; background: var(--mlh-white); border: 1px solid var(--mlh-line); border-radius: var(--mlh-r-card); box-shadow: var(--mlh-shadow-float); overflow: hidden; z-index: 60; }
.mlh-account__menu.is-open { display: block; }
.mlh-account__head { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--mlh-canvas); border-bottom: 1px solid var(--mlh-line); }
.mlh-account__avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; overflow: hidden; background: var(--mlh-blue); color: var(--mlh-on-dark); font-family: var(--mlh-font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mlh-account__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mlh-account__name { font-family: var(--mlh-font-display); font-weight: 700; color: var(--mlh-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlh-account__email { font-size: 13px; color: var(--mlh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlh-account__role { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mlh-blue); background: var(--mlh-ice); padding: 2px 8px; border-radius: var(--mlh-r-pill); }
.mlh-account__link { display: block; padding: 11px 16px; color: var(--mlh-ink); font-weight: 500; }
.mlh-account__link:hover { background: var(--mlh-canvas); color: var(--mlh-heading); }
.mlh-account__link--danger { color: var(--mlh-danger); border-top: 1px solid var(--mlh-line); }
.mlh-account__link--danger:hover { background: #FBECEA; color: var(--mlh-danger); }

/* Mobile drawer */
.mlh-drawer__backdrop { display: none; position: fixed; inset: 0; background: rgba(11,23,38,.5); z-index: 95; }
.mlh-drawer__backdrop.is-open { display: block; }
.mlh-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--mlh-midnight); color: var(--mlh-on-dark); z-index: 96; transform: translateX(100%); transition: transform var(--mlh-dur) var(--mlh-ease); display: flex; flex-direction: column; }
.mlh-drawer.is-open { transform: none; }
.mlh-drawer__hdr { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.mlh-drawer__close { width: 40px; height: 40px; border-radius: var(--mlh-r-btn); border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--mlh-on-dark); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mlh-drawer__body { flex: 1; overflow-y: auto; padding: 8px 0; }
.mlh-drawer__sec { border-bottom: 1px solid rgba(255,255,255,.08); }
.mlh-drawer__sec-title { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; background: none; border: 0; color: var(--mlh-on-dark); font-family: var(--mlh-font-display); font-weight: 700; font-size: 16px; cursor: pointer; }
.mlh-drawer__chev { transition: transform var(--mlh-dur) var(--mlh-ease); }
.mlh-drawer__sec.is-open .mlh-drawer__chev { transform: rotate(180deg); }
.mlh-drawer__sec-body { display: none; padding: 0 24px 16px; }
.mlh-drawer__sec.is-open .mlh-drawer__sec-body { display: block; }
.mlh-drawer__col-head { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mlh-glacier); margin: 12px 0 4px; }
.mlh-drawer__link { display: block; padding: 8px 0; color: var(--mlh-glacier); font-weight: 500; }
.mlh-drawer__link:hover { color: var(--mlh-on-dark); }
.mlh-drawer__link--primary { color: var(--mlh-on-dark); font-family: var(--mlh-font-display); font-weight: 700; }
.mlh-drawer__ftr { padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 10px; }

/* ---------- 7. Hero (homepage) ---------- */
.mlh-hero__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; padding-top: 48px; }
.mlh-hero__title { max-width: 800px; }
.mlh-hero__lede { max-width: 330px; margin-bottom: 10px; }
.mlh-hero__window { position: relative; margin-top: 40px; height: 560px; border-radius: var(--mlh-r-panel); overflow: hidden; background: var(--mlh-night); }
.mlh-hero__window > img { width: 100%; height: 100%; object-fit: cover; }
.mlh-hero__window::after { content: ""; position: absolute; inset: 0; background: var(--mlh-scrim); pointer-events: none; }
.mlh-hero__search { position: absolute; z-index: 2; left: 50%; bottom: 40px; transform: translateX(-50%); width: min(780px, calc(100% - 48px)); }
.mlh-hero__window > .mlh-hero__ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mlh-font-display); font-size: clamp(72px, 12vw, 128px); font-weight: 800; color: rgba(157,188,230,.4); z-index: 0; }
/* Homepage: pull the hero up under the nav (kill the big top gap) */
.mlh-hero-section { padding-top: 28px; }
/* Homepage hero with the headline/lede overlaid on the photo */
.mlh-hero__window--overlay::after { background: linear-gradient(180deg, rgba(11,23,38,.66) 0%, rgba(11,23,38,.32) 34%, rgba(11,23,38,.22) 52%, rgba(11,23,38,.80) 100%); }
.mlh-hero__overlay { position: absolute; z-index: 2; top: 44px; left: 48px; right: 48px; display: flex; flex-direction: column; gap: 16px; }
/* Sized to sit clear of the search pill — not the full display scale */
.mlh-hero__overlay .mlh-hero__title { font-size: clamp(30px, 4vw, 50px); line-height: 1.06; color: var(--mlh-on-dark); max-width: 760px; text-shadow: 0 2px 28px rgba(5,12,22,.4); }
.mlh-hero__overlay .mlh-hl { color: var(--mlh-blue); }
.mlh-hero__overlay-lede { font-size: 17px; color: var(--mlh-on-dark); max-width: 540px; margin: 0; text-shadow: 0 1px 14px rgba(5,12,22,.45); }
@media (max-width: 768px) {
  /* Mobile hero: KEEP the lakefront photo (dropping it left the page flat and
     colorless). CSS grid stacks the photo (row 1) and the search card (row 2);
     the headline sits over the photo bottom, the card overlaps up into it. No
     absolute/overflow fragility — the two rows can't collapse or clip. */
  .mlh-hero__window--overlay {
    display: grid; grid-template-rows: 340px auto; height: auto; min-height: 0;
    margin: 0; background: transparent; border-radius: 0; overflow: visible;
  }
  .mlh-hero__window--overlay > img {
    grid-row: 1; grid-column: 1; align-self: stretch;
    width: 100%; height: 340px; object-fit: cover;
    border-radius: var(--mlh-r-card); z-index: 0;
  }
  .mlh-hero__window--overlay::after {
    content: ""; display: block; position: static; inset: auto;
    grid-row: 1; grid-column: 1; border-radius: var(--mlh-r-card); z-index: 1;
    background: linear-gradient(180deg, rgba(11,23,38,.52) 0%, rgba(11,23,38,.16) 46%, rgba(11,23,38,.84) 100%);
  }
  .mlh-hero__overlay {
    grid-row: 1; grid-column: 1; align-self: end; position: relative;
    top: auto; left: auto; right: auto; padding: 0 18px 62px; gap: 10px; z-index: 2;
  }
  .mlh-hero__overlay .mlh-hero__title { font-size: clamp(27px, 7.1vw, 36px); line-height: 1.08; color: var(--mlh-on-dark); text-shadow: 0 2px 22px rgba(5,12,22,.55); max-width: none; }
  .mlh-hero__overlay .mlh-hl { color: var(--mlh-glacier); }
  .mlh-hero__overlay-lede { display: none; }  /* long lede crowds the photo; the form says it */
  .mlh-hero__window--overlay .mlh-hero__search {
    grid-row: 2; grid-column: 1; position: static; transform: none;
    width: auto; margin: -44px 12px 0; z-index: 3;
  }
}

/* Search pill (hero, lakes index, agents index) */
.mlh-search { display: flex; align-items: center; gap: 12px; background: var(--mlh-white); border-radius: var(--mlh-r-pill); padding: 10px 10px 10px 28px; box-shadow: var(--mlh-shadow-float); }
.mlh-search__field { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 600; color: var(--mlh-heading); min-width: 0; }
.mlh-search__field--narrow { flex: 0 0 160px; }
.mlh-search__input, .mlh-search__select { border: 0; padding: 0; height: 26px; font-size: 17px; font-weight: 400; color: var(--mlh-ink); background: transparent; width: 100%; }
.mlh-search__input::placeholder { color: var(--mlh-muted); }
.mlh-search__input:focus { outline: none; }
.mlh-search:focus-within { box-shadow: var(--mlh-shadow-float), 0 0 0 3px var(--mlh-sky); }
.mlh-search__divider { width: 1px; height: 40px; background: var(--mlh-line); flex: none; }
.mlh-search .mlh-btn { height: 58px; padding: 0 30px; font-size: 16px; }
/* Cash-offer hero: a focused, centered single-field search with a location pin
   — not the full-width white slab. Scoped so the shared .mlh-search is untouched. */
.co-search { max-width: 680px; margin: 6px auto 0; padding-left: 22px; }
.co-search__pin { width: 22px; height: 22px; color: var(--mlh-blue); flex: none; }
.co-search .mlh-search__field label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 768px) { .co-search { padding-left: 16px; } .co-search__pin { display: none; } }

/* Trust row */
.mlh-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 40px; padding-top: 28px; font-size: 15px; color: var(--mlh-heading); }
.mlh-trust__item { display: inline-flex; align-items: center; gap: 8px; }
.mlh-trust__item svg { width: 16px; height: 16px; color: var(--mlh-blue); }

/* ---------- 8. Section header ---------- */
.mlh-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.mlh-section-head__text { display: flex; flex-direction: column; gap: 10px; }

/* ---------- 9. "How can we help" path rows ---------- */
.mlh-paths { display: flex; flex-direction: column; gap: 10px; }
.mlh-path { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 20px; padding: 22px 26px; background: var(--mlh-ice); border-radius: var(--mlh-r-card); color: var(--mlh-ink); transition: background-color var(--mlh-dur) var(--mlh-ease); }
.mlh-path:hover { background: #E3EDFA; color: var(--mlh-ink); }
.mlh-path__num { width: 48px; height: 48px; border-radius: 50%; background: var(--mlh-white); color: var(--mlh-blue); font-family: var(--mlh-font-display); font-weight: 800; font-size: 18px; display: grid; place-items: center; }
.mlh-path__title { display: block; font-family: var(--mlh-font-display); font-size: 26px; font-weight: 800; letter-spacing: var(--mlh-track-title); color: var(--mlh-heading); line-height: 1.1; }
.mlh-path__body { display: block; font-size: 15px; color: var(--mlh-muted); margin-top: 4px; }
.mlh-path__cta { height: 44px; padding: 0 18px; border-radius: var(--mlh-r-pill); background: var(--mlh-white); color: var(--mlh-blue); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; }

/* ---------- 10. Lake tiles & mosaic ---------- */
.mlh-lake-mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 270px 270px; gap: 16px; }
.mlh-lake-mosaic > .mlh-lake-tile--feature { grid-column: span 7; grid-row: span 2; }
.mlh-lake-mosaic > .mlh-lake-tile:nth-child(2), .mlh-lake-mosaic > .mlh-lake-tile:nth-child(5) { grid-column: span 3; }
.mlh-lake-mosaic > .mlh-lake-tile:nth-child(3), .mlh-lake-mosaic > .mlh-lake-tile:nth-child(4) { grid-column: span 2; }
.mlh-lake-tile { position: relative; display: block; border-radius: var(--mlh-r-card); overflow: hidden; background: var(--mlh-night); color: var(--mlh-on-dark); min-height: 240px; isolation: isolate; }
.mlh-lake-tile--feature { border-radius: var(--mlh-r-panel); }
.mlh-lake-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 600ms var(--mlh-ease); }
.mlh-lake-tile::after { content: ""; position: absolute; inset: 0; background: var(--mlh-scrim); z-index: -1; }
.mlh-lake-tile:hover img { transform: scale(1.03); }
.mlh-lake-tile:hover { color: var(--mlh-on-dark); }
.mlh-lake-tile__region { position: absolute; left: 20px; top: 20px; padding: 6px 12px; border-radius: var(--mlh-r-pill); background: var(--mlh-white); color: var(--mlh-heading); font-size: 12px; font-weight: 600; }
.mlh-lake-tile__body { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.mlh-lake-tile__name { font-family: var(--mlh-font-display); font-weight: 800; font-size: 26px; letter-spacing: var(--mlh-track-title); line-height: 1; }
.mlh-lake-tile--feature .mlh-lake-tile__name { font-size: clamp(36px, 4.4vw, 52px); letter-spacing: var(--mlh-track-display); }
.mlh-lake-tile__sub { font-size: 15px; color: #DCE9FA; margin-top: 6px; }
.mlh-lake-tile__stats { display: flex; gap: 8px; }
.mlh-lake-tile__stat { padding: 8px 12px; border-radius: 14px; background: rgba(11,23,38,.72); font-size: 13px; line-height: 1.25; }
.mlh-lake-tile__stat strong { display: block; font-family: var(--mlh-font-display); font-size: 18px; }
.mlh-lake-tile__ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mlh-font-display); font-size: 88px; font-weight: 800; color: rgba(157,188,230,.5); z-index: -1; }

/* Business cards (lake + town pages) */
.mlh-biz-thumb { aspect-ratio: 16 / 10; background: var(--mlh-ice); overflow: hidden; }
.mlh-biz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mlh-biz-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 4px; border-bottom: 1px solid var(--mlh-line); color: var(--mlh-ink); }
.mlh-biz-row:hover { color: var(--mlh-blue); }
.mlh-biz-row strong { font-weight: 600; }
.mlh-biz-row__cta { margin-left: auto; color: var(--mlh-blue); font-size: 14px; font-weight: 600; }

/* ---------- 11. Cards ---------- */
.mlh-card { background: var(--mlh-white); border: 1px solid var(--mlh-line); border-radius: var(--mlh-r-card); padding: 24px; }
.mlh-card--ice { background: var(--mlh-ice); border-color: transparent; }
.mlh-card--dark { background: var(--mlh-midnight); border-color: transparent; color: var(--mlh-on-dark); }
.mlh-card--link { transition: box-shadow var(--mlh-dur) var(--mlh-ease), border-color var(--mlh-dur) var(--mlh-ease); color: inherit; display: block; }
.mlh-card--link:hover { box-shadow: var(--mlh-shadow-hover); border-color: var(--mlh-line-strong); color: inherit; }
.mlh-card--flush { padding: 0; overflow: hidden; }
.mlh-card__body { padding: 20px 22px 24px; }

/* Server-injected prose (lake/town editorial, legal, blog body) */
.mlh-prose > p, .mlh-prose li { color: var(--mlh-body); font-size: 17px; line-height: 1.75; }
.mlh-prose > p { margin: 0 0 1.1em; }
.mlh-prose > p:last-child { margin-bottom: 0; }
.mlh-prose > *:first-child { margin-top: 0; }
.mlh-prose ul, .mlh-prose ol { margin: 12px 0 0; padding-left: 1.2em; }
.mlh-prose li { margin-bottom: 8px; }
.mlh-prose h2, .mlh-prose h3 { margin: 1.4em 0 .5em; }
.mlh-prose a { color: var(--mlh-blue); }
.mlh-prose img { border-radius: var(--mlh-r-card); margin: 1.2em 0; }
.mlh-lede-first > p:first-of-type { color: var(--mlh-heading); font-weight: 500; font-size: 19px; }

/* Compact stat block (lake market snapshot + DNR by-the-numbers) */
.mlh-stat-block { background: var(--mlh-ice); border-radius: var(--mlh-r-card); padding: 24px; margin-bottom: 24px; }
.mlh-stat-block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mlh-stat-block__head h2, .mlh-stat-block__head h3 { font-size: 22px; }
.mlh-stat-block__date { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--mlh-muted); }
.mlh-stat-block__date a { color: var(--mlh-blue); }
.mlh-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.mlh-stat { background: var(--mlh-white); border: 1px solid var(--mlh-line); border-radius: var(--mlh-r-inner); padding: 16px; text-align: center; }
.mlh-stat__v { font-family: var(--mlh-font-display); font-size: 24px; font-weight: 800; color: var(--mlh-heading); letter-spacing: var(--mlh-track-title); }
.mlh-stat__l { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--mlh-muted); margin-top: 4px; }
.mlh-spark { margin-top: 16px; background: var(--mlh-white); border: 1px solid var(--mlh-line); border-radius: var(--mlh-r-inner); padding: 14px; }
.mlh-spark__h { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--mlh-muted); margin-bottom: 8px; }
.mlh-spark svg { width: 100%; height: 70px; display: block; }
.mlh-spark__area { fill: var(--mlh-sky); }
.mlh-spark__line { fill: none; stroke: var(--mlh-blue); stroke-width: 2.5; stroke-linejoin: round; }
.mlh-place-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.mlh-panel { border-radius: var(--mlh-r-panel); padding: 56px; }
.mlh-panel--ice { background: var(--mlh-ice); }
.mlh-panel--blue { background: var(--mlh-blue); color: var(--mlh-on-dark); }
.mlh-panel--blue h2, .mlh-panel--blue p { color: var(--mlh-on-dark); }

/* ---------- 12. Midnight feature band + contour art + seal ---------- */
.mlh-band--midnight { position: relative; overflow: hidden; border-radius: var(--mlh-r-panel); padding: 64px; background: var(--mlh-midnight); color: var(--mlh-on-dark); }
/* Midnight bands: keep headings/copy readable (the base h2{color:heading} rule
   would otherwise render dark-on-dark). */
.mlh-band--midnight h1, .mlh-band--midnight h2, .mlh-band--midnight h3, .mlh-band--midnight h4 { color: var(--mlh-on-dark); }
.mlh-band--midnight p, .mlh-band--midnight .mlh-muted { color: var(--mlh-on-dark-muted); }
.mlh-band--midnight .mlh-eyebrow, .mlh-band--midnight .mlh-hl { color: var(--mlh-glacier); }
.mlh-band--midnight a:not(.mlh-btn) { color: var(--mlh-glacier); }
.mlh-band__contour { position: absolute; right: -200px; top: -180px; width: 620px; height: 620px; pointer-events: none; }
.mlh-band > *:not(.mlh-band__contour) { position: relative; }
.mlh-seal { width: 230px; height: 230px; }
.mlh-seal--md { width: 150px; height: 150px; }
.mlh-vetted { width: 38px; height: 38px; flex: none; }          /* small badge on agent cards */
.mlh-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.mlh-point { border-top: 1px solid #2A4467; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.mlh-point__title { font-size: 17px; font-weight: 600; color: var(--mlh-on-dark); }

/* ---------- 13. Agents ---------- */
.mlh-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--mlh-sky); color: var(--mlh-heading); font-weight: 600; display: grid; place-items: center; overflow: hidden; flex: none; }
.mlh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mlh-avatar--sm { width: 36px; height: 36px; font-size: 13px; }
.mlh-avatar--lg { width: 88px; height: 88px; font-size: 24px; }

.mlh-agent-card { display: flex; flex-direction: column; border: 1px solid var(--mlh-line); border-radius: var(--mlh-r-card); overflow: hidden; background: var(--mlh-white); }
/* Fixed photo height (not aspect-ratio — the grid's equal-height stretch was
   overriding it, ballooning headshots to near-square). Every card's photo is now
   the same tidy block whether it's a portrait, a brokerage logo, or initials. */
.mlh-agent-card__photo { position: relative; height: 196px; flex: none; background: var(--mlh-ice); }
.mlh-agent-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.mlh-agent-card__photo .mlh-vetted { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; }
.mlh-agent-card__photo .mlh-agent-card__flag { position: absolute; right: 10px; top: 10px; box-shadow: var(--mlh-shadow-sm, 0 1px 3px rgba(11,23,38,.18)); }
.mlh-agent-card__initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mlh-font-display); font-size: 40px; font-weight: 800; letter-spacing: var(--mlh-track-display); color: #9DBCE6; }
/* Body fills the remaining height and the CTA pins to the bottom, so cards in a
   row line up cleanly regardless of how much bio/chips each agent has. */
.mlh-agent-card__body { flex: 1 1 auto; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.mlh-agent-card__body > .mlh-btn { margin-top: auto; }
.mlh-agent-card__name { font-family: var(--mlh-font-display); font-size: 19px; font-weight: 800; letter-spacing: var(--mlh-track-title); color: var(--mlh-heading); line-height: 1.15; }
.mlh-agent-card__meta { font-size: 13px; color: var(--mlh-muted); }

/* Agent profile "Contact & credentials" card (paid agents) — clickable contact
   rows + a small facts list. */
.mlh-cc { display: flex; flex-direction: column; gap: 8px; }
.mlh-cc__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border-radius: 14px; background: var(--mlh-ice); color: var(--mlh-ink); transition: background-color var(--mlh-dur) var(--mlh-ease); }
.mlh-cc__row:hover { background: var(--mlh-sky); color: var(--mlh-heading); }
.mlh-cc__row .mlh-cc__v { color: var(--mlh-blue); font-weight: 700; }
.mlh-cc__row:hover .mlh-cc__v { color: var(--mlh-heading); }
.mlh-cc__facts { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.mlh-cc__fact { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 2px; }
.mlh-cc__l { color: var(--mlh-muted); font-size: 13px; font-weight: 600; flex: none; }
.mlh-cc__v { font-weight: 700; color: var(--mlh-heading); text-align: right; min-width: 0; overflow-wrap: anywhere; }

.mlh-agent-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--mlh-white); border-radius: var(--mlh-r-card); }
.mlh-agent-row__text { flex: 1 1 auto; min-width: 0; }
.mlh-agent-row__name { font-weight: 600; }
.mlh-agent-row__meta { font-size: 13px; color: var(--mlh-muted); }

/* Star rating (agent cards / profiles) */
.mlh-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--mlh-heading); }
.mlh-rating svg { width: 14px; height: 14px; color: var(--mlh-warning); }
.mlh-rating__count { color: var(--mlh-muted); font-weight: 500; }

/* Blog cover (text-only posts) — deterministic brand-palette gradients */
.mlh-blog-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; color: var(--mlh-on-dark); border-radius: var(--mlh-r-card) var(--mlh-r-card) 0 0; }
.mlh-blog-cover__wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.mlh-blog-cover--1 { background: linear-gradient(135deg, var(--mlh-night), var(--mlh-blue)); }
.mlh-blog-cover--2 { background: linear-gradient(135deg, var(--mlh-blue-hover), var(--mlh-glacier)); }
.mlh-blog-cover--3 { background: linear-gradient(135deg, var(--mlh-midnight), var(--mlh-blue)); }
.mlh-blog-cover--4 { background: linear-gradient(135deg, var(--mlh-night), var(--mlh-blue-hover)); }
.mlh-blog-cover--5 { background: linear-gradient(135deg, var(--mlh-blue), var(--mlh-midnight)); }

/* ---------- 14. Chips, tags, badges ---------- */
.mlh-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--mlh-r-pill); background: var(--mlh-ice); color: var(--mlh-heading); font-size: 14px; font-weight: 500; }
a.mlh-chip:hover { background: var(--mlh-sky); color: var(--mlh-heading); }
.mlh-chip--town { background: var(--mlh-midnight); color: var(--mlh-on-dark); }
a.mlh-chip--town:hover { background: var(--mlh-night); color: var(--mlh-on-dark); }
.mlh-chip--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--mlh-line); }
.mlh-chip--sm { padding: 5px 10px; font-size: 12px; }

.mlh-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--mlh-r-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.mlh-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mlh-badge--success { background: var(--mlh-success-bg); color: var(--mlh-success); }
.mlh-badge--warning { background: var(--mlh-warning-bg); color: var(--mlh-warning); }
.mlh-badge--danger  { background: var(--mlh-danger-bg);  color: var(--mlh-danger); }
.mlh-badge--info    { background: var(--mlh-info-bg);    color: var(--mlh-info); }
.mlh-badge--neutral { background: var(--mlh-ice);        color: var(--mlh-muted); }

/* ---------- 15. Forms ---------- */
.mlh-field { display: flex; flex-direction: column; gap: 6px; }
.mlh-label { font-size: 13px; font-weight: 600; color: var(--mlh-body); }
.mlh-input, .mlh-select, .mlh-textarea {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--mlh-line); border-radius: var(--mlh-r-input);
  background: var(--mlh-white); color: var(--mlh-ink); font-size: 15px;
  transition: border-color var(--mlh-dur) var(--mlh-ease), box-shadow var(--mlh-dur) var(--mlh-ease);
}
.mlh-textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.mlh-select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6778' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.mlh-input::placeholder, .mlh-textarea::placeholder { color: var(--mlh-muted); }
.mlh-input:hover, .mlh-select:hover, .mlh-textarea:hover { border-color: var(--mlh-line-strong); }
.mlh-input:focus, .mlh-select:focus, .mlh-textarea:focus { outline: none; border-color: var(--mlh-blue); box-shadow: 0 0 0 3px var(--mlh-sky); }
.mlh-help { font-size: 13px; color: var(--mlh-muted); }
.mlh-field.is-error .mlh-input, .mlh-field.is-error .mlh-select, .mlh-field.is-error .mlh-textarea { border-color: var(--mlh-danger); }
.mlh-field.is-error .mlh-help { color: var(--mlh-danger); }
.mlh-check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.mlh-check input { width: 20px; height: 20px; accent-color: var(--mlh-blue); }
.mlh-form-note { font-size: 12px; color: var(--mlh-muted); text-align: center; }

/* Segmented control (Buy / Sell / Rent) */
.mlh-segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; background: var(--mlh-ice); border-radius: var(--mlh-r-pill); }
.mlh-segmented button { height: 40px; border: 0; border-radius: var(--mlh-r-pill); background: transparent; color: var(--mlh-heading); font-size: 14px; font-weight: 500; cursor: pointer; }
.mlh-segmented button[aria-pressed="true"] { background: var(--mlh-midnight); color: var(--mlh-on-dark); font-weight: 600; }

/* ---------- 16. Quiz ---------- */
.mlh-quiz { background: var(--mlh-white); border-radius: var(--mlh-r-card); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.mlh-quiz__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mlh-option { min-height: 56px; padding: 12px 16px; border: 1px solid var(--mlh-line); border-radius: var(--mlh-r-inner); background: var(--mlh-white); color: var(--mlh-ink); font-size: 15px; font-weight: 500; cursor: pointer; }
.mlh-option:hover { border-color: var(--mlh-line-strong); }
.mlh-option[aria-pressed="true"] { border: 2px solid var(--mlh-blue); background: var(--mlh-ice); color: var(--mlh-heading); font-weight: 600; }

/* ---------- 17. Quote, CTA band, FAQ, tabs, breadcrumb ---------- */
.mlh-quote { max-width: 960px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mlh-quote__text { font-family: var(--mlh-font-display); font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.15; letter-spacing: var(--mlh-track-title); color: var(--mlh-heading); }
.mlh-quote__cite { font-size: 15px; color: var(--mlh-muted); font-style: normal; }

.mlh-cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; border-radius: var(--mlh-r-panel); background: var(--mlh-blue); padding: 48px 56px; }
.mlh-cta-band h2 { color: var(--mlh-on-dark); font-size: clamp(30px, 3.6vw, 44px); }
/* Body copy in the blue CTA band inherited the dark page text → dark-on-blue
   and unreadable. Force the on-dark token like the heading. */
.mlh-cta-band p { color: var(--mlh-on-dark); }

.mlh-faq { display: flex; flex-direction: column; gap: 10px; }
.mlh-faq details { background: var(--mlh-ice); border-radius: var(--mlh-r-inner); }
.mlh-faq summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 500; color: var(--mlh-ink); }
.mlh-faq summary::-webkit-details-marker { display: none; }
.mlh-faq summary::after { content: ""; width: 16px; height: 16px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D6DF2' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform var(--mlh-dur) var(--mlh-ease); }
.mlh-faq details[open] summary::after { transform: rotate(180deg); }
/* Server-generated FAQ answers (<div class="faq-answer">) inside .mlh-faq */
.mlh-faq .faq-answer { padding: 0 20px 18px; }
.mlh-faq .faq-answer p { color: var(--mlh-muted); line-height: 1.65; }
.mlh-faq__answer { padding: 0 20px 20px; color: var(--mlh-body); }

.mlh-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--mlh-line); overflow-x: auto; scrollbar-width: none; }
.mlh-tabs a { padding: 14px 18px; color: var(--mlh-muted); font-size: 15px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mlh-tabs a:hover { color: var(--mlh-heading); }
.mlh-tabs a[aria-current="true"], .mlh-tabs a.is-active { color: var(--mlh-heading); font-weight: 600; border-bottom-color: var(--mlh-blue); }

.mlh-breadcrumb { font-size: 14px; color: var(--mlh-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.mlh-breadcrumb a { color: var(--mlh-muted); }
.mlh-breadcrumb a:hover { color: var(--mlh-blue); }
.mlh-breadcrumb [aria-current="page"] { color: var(--mlh-ink); }

.mlh-credit { font-size: 11px; color: var(--mlh-muted); }            /* photo credits, e.g. CC BY */

/* ---------- 18. Lake / town page ---------- */
.mlh-place-hero { position: relative; margin-top: 20px; height: 560px; border-radius: var(--mlh-r-panel); overflow: hidden; background: var(--mlh-night); isolation: isolate; }
.mlh-place-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mlh-place-hero::after { content: ""; position: absolute; inset: 0; background: var(--mlh-scrim); z-index: -1; }
.mlh-place-hero__body { position: absolute; left: 44px; right: 44px; bottom: 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; color: var(--mlh-on-dark); }
.mlh-place-hero__kicker { font-size: 14px; font-weight: 600; color: var(--mlh-sky); }
.mlh-place-hero__name { font-family: var(--mlh-font-display); font-size: clamp(56px, 10vw, 128px); font-weight: 800; letter-spacing: -0.05em; line-height: .85; color: var(--mlh-on-dark); }
.mlh-place-hero__sub { font-size: 19px; color: var(--mlh-on-dark); }

.mlh-field-notes { background: var(--mlh-midnight); color: var(--mlh-on-dark); border-radius: var(--mlh-r-panel); padding: 30px; }
.mlh-field-notes__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--mlh-night-line); }
.mlh-field-notes__row:last-child { border-bottom: 0; }
.mlh-field-notes__label { font-size: 14px; color: var(--mlh-on-dark-muted); }
.mlh-field-notes__value { font-family: var(--mlh-font-display); font-size: 26px; font-weight: 800; letter-spacing: var(--mlh-track-title); }

.mlh-season { border-radius: var(--mlh-r-card); padding: 26px; min-height: 190px; display: flex; flex-direction: column; gap: 10px; background: var(--mlh-ice); }
.mlh-season__when { font-size: 13px; font-weight: 600; color: var(--mlh-blue); }
.mlh-season__name { font-family: var(--mlh-font-display); font-size: 28px; font-weight: 800; letter-spacing: var(--mlh-track-title); color: var(--mlh-heading); }
.mlh-season--summer { background: var(--mlh-blue); }
.mlh-season--summer .mlh-season__when { color: #DCE9FA; }
.mlh-season--summer .mlh-season__name, .mlh-season--summer p { color: var(--mlh-on-dark); }
.mlh-season--winter { background: var(--mlh-midnight); }
.mlh-season--winter .mlh-season__when { color: var(--mlh-glacier); }
.mlh-season--winter .mlh-season__name { color: var(--mlh-on-dark); }
.mlh-season--winter p { color: var(--mlh-on-dark-muted); }

/* ---------- 19. Public footer ---------- */
.mlh-footer { margin-top: var(--mlh-section); border-top: 1px solid var(--mlh-line); padding: 56px 0; background: var(--mlh-white); }
.mlh-footer__top { display: flex; gap: 64px; }
.mlh-footer__about { width: 320px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--mlh-muted); }
.mlh-footer__cols { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: 14px; }
.mlh-footer__col { display: flex; flex-direction: column; gap: 10px; }
.mlh-footer__heading { font-weight: 600; color: var(--mlh-ink); }
.mlh-footer__col a { color: var(--mlh-muted); }
.mlh-footer__col a:hover { color: var(--mlh-blue); }
.mlh-footer__legal { margin-top: 36px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--mlh-muted); }
.mlh-footer__disclaimer { margin-top: 20px; font-size: 12px; line-height: 1.6; color: var(--mlh-muted); max-width: 900px; }

/* ---------- 20. Auth pages (login, agent login, join, business signup) ---------- */
.mlh-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--mlh-white); }
.mlh-auth__form-side { display: flex; flex-direction: column; padding: 32px var(--mlh-gutter); }
.mlh-auth__card { width: 100%; max-width: 420px; margin: auto; display: flex; flex-direction: column; gap: 18px; }
.mlh-auth__title { font-size: clamp(32px, 3.4vw, 40px); }
.mlh-auth__switch { font-size: 14px; color: var(--mlh-muted); text-align: center; }
.mlh-auth__divider { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--mlh-muted); }
.mlh-auth__divider::before, .mlh-auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--mlh-line); }
.mlh-auth__media { position: relative; margin: 16px; border-radius: var(--mlh-r-panel); overflow: hidden; background: var(--mlh-midnight); isolation: isolate; display: flex; align-items: flex-end; padding: 48px; color: var(--mlh-on-dark); }
.mlh-auth__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mlh-auth__media::after { content: ""; position: absolute; inset: 0; background: var(--mlh-scrim); z-index: -1; }
.mlh-auth__media h2 { color: var(--mlh-on-dark); max-width: 460px; }
.mlh-auth__role { display: inline-flex; align-self: flex-start; }        /* e.g. "Agent sign in" chip */

/* ---------- 21. App shell: user, agent, business, admin portals ---------- */
.mlh-app { min-height: 100vh; display: grid; grid-template-columns: var(--mlh-sidebar-w) minmax(0, 1fr); background: var(--mlh-canvas); }
.mlh-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--mlh-midnight); color: var(--mlh-on-dark); display: flex; flex-direction: column; padding: 20px 16px; gap: 24px; }
.mlh-sidebar .mlh-logo__word { color: var(--mlh-on-dark); font-size: 19px; }
.mlh-sidebar__role { margin-left: 44px; margin-top: -16px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mlh-glacier); }
.mlh-sidebar__section { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mlh-on-dark-muted); padding: 0 12px; margin: 8px 0 4px; }
.mlh-sidebar__nav { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mlh-sidebar__item { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: var(--mlh-r-pill); color: #D5DEEA; font-size: 15px; font-weight: 500; }
.mlh-sidebar__item svg { width: 18px; height: 18px; flex: none; }
.mlh-sidebar__item:hover { background: var(--mlh-night); color: var(--mlh-on-dark); }
.mlh-sidebar__item[aria-current="page"] { background: var(--mlh-blue); color: var(--mlh-on-dark); font-weight: 600; }
.mlh-sidebar__count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--mlh-r-pill); background: var(--mlh-night-line); color: var(--mlh-on-dark); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.mlh-sidebar__footer { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--mlh-r-inner); background: var(--mlh-night); font-size: 14px; }

.mlh-topbar { position: sticky; top: 0; z-index: 20; height: 68px; display: flex; align-items: center; gap: 16px; padding: 0 32px; background: rgba(245,248,252,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--mlh-line); }
.mlh-topbar__search { flex: 0 1 420px; }
.mlh-topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mlh-main { padding: 32px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.mlh-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.mlh-page-head h1 { font-size: clamp(28px, 3vw, 36px); }
.mlh-page-head__actions { display: flex; gap: 10px; }

.mlh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mlh-stat { background: var(--mlh-white); border: 1px solid var(--mlh-line); border-radius: var(--mlh-r-card); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.mlh-stat__label { font-size: 13px; font-weight: 600; color: var(--mlh-muted); }
.mlh-stat__value { font-family: var(--mlh-font-display); font-size: 34px; font-weight: 800; letter-spacing: var(--mlh-track-title); color: var(--mlh-heading); line-height: 1.05; }
.mlh-stat__delta { font-size: 13px; color: var(--mlh-muted); }
.mlh-stat--dark { background: var(--mlh-midnight); border-color: transparent; }
.mlh-stat--dark .mlh-stat__label { color: var(--mlh-glacier); }
.mlh-stat--dark .mlh-stat__value { color: var(--mlh-on-dark); }

.mlh-table-wrap { background: var(--mlh-white); border: 1px solid var(--mlh-line); border-radius: var(--mlh-r-card); overflow: hidden; }
.mlh-table-wrap__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--mlh-line); }
.mlh-table-scroll { overflow-x: auto; }
.mlh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mlh-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mlh-muted); background: var(--mlh-canvas); padding: 12px 20px; border-bottom: 1px solid var(--mlh-line-strong); white-space: nowrap; }
.mlh-table td { padding: 14px 20px; border-bottom: 1px solid var(--mlh-line); color: var(--mlh-ink); vertical-align: middle; }
.mlh-table tr:last-child td { border-bottom: 0; }
.mlh-table tbody tr:hover { background: #F8FAFD; }
.mlh-table__primary { font-weight: 600; color: var(--mlh-heading); }
.mlh-table__num { text-align: right; font-variant-numeric: tabular-nums; }

.mlh-empty { text-align: center; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--mlh-muted); }
.mlh-empty svg { width: 56px; height: 56px; }
.mlh-empty h3 { font-size: 22px; }

.mlh-modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(11,23,38,.55); display: grid; place-items: center; padding: 24px; }
.mlh-modal { width: 100%; max-width: 520px; background: var(--mlh-white); border-radius: var(--mlh-r-panel); box-shadow: var(--mlh-shadow-modal); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.mlh-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.mlh-modal__actions { display: flex; justify-content: flex-end; gap: 10px; }

.mlh-toast { position: fixed; right: 24px; bottom: 24px; z-index: 110; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--mlh-r-inner); background: var(--mlh-midnight); color: var(--mlh-on-dark); box-shadow: var(--mlh-shadow-float); font-size: 14px; }

.mlh-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--mlh-r-inner); font-size: 14px; }
.mlh-alert--info { background: var(--mlh-info-bg); color: var(--mlh-heading); }
.mlh-alert--success { background: var(--mlh-success-bg); color: var(--mlh-success); }
.mlh-alert--warning { background: var(--mlh-warning-bg); color: var(--mlh-warning); }
.mlh-alert--danger { background: var(--mlh-danger-bg); color: var(--mlh-danger); }

/* Portal nav toggle for tablets/phones */
.mlh-app__menu { display: none; }

/* ---------- 21b. Public polish: color atmosphere, motion, tactile UI ----------
   Scoped to marketing pages (body > main > .mlh-section). Dashboards (.mlh-app /
   body.da-c1) never match, so portals are untouched. Lifts mobile most, where
   the hero photo is dropped and pages read as flat black-on-white. */

/* A lake-blue wash across the top of every marketing page that fades to clean
   white — kills the stark white hero and gives the page real atmosphere.
   :has() scopes it to marketing; older browsers simply keep the white body. */
body:has(main > .mlh-section) {
  background:
    radial-gradient(120% 50% at 92% 0%, rgba(29,109,242,.14) 0%, rgba(29,109,242,0) 46%),
    radial-gradient(130% 55% at 6% 2%, rgba(142,197,245,.40) 0%, rgba(142,197,245,0) 48%),
    linear-gradient(180deg, var(--mlh-ice) 0%, var(--mlh-canvas) 460px, var(--mlh-white) 1150px);
  background-repeat: no-repeat;
}

/* Section labels get a small lake-blue tick — color + rhythm in every header. */
.mlh-eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.mlh-eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--mlh-blue); flex: none; }
.mlh-dark .mlh-eyebrow::before, .mlh-band--midnight .mlh-eyebrow::before { background: var(--mlh-glacier); }

/* Primary CTA: subtle gradient + lift so the main action feels tactile. */
.mlh-btn--primary { background: linear-gradient(180deg, #2E7CF7 0%, var(--mlh-blue) 100%); box-shadow: 0 6px 18px rgba(29,109,242,.26); }
.mlh-btn--primary:hover { background: linear-gradient(180deg, #2E7CF7 0%, var(--mlh-blue-hover) 100%); box-shadow: 0 10px 24px rgba(29,109,242,.34); transform: translateY(-1px); }
.mlh-btn--primary:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(29,109,242,.30); }

/* Cards: smoother elevation; interactive (link) cards lift on hover. */
.mlh-card { transition: transform var(--mlh-dur) var(--mlh-ease), box-shadow var(--mlh-dur) var(--mlh-ease); }
.mlh-card--link:hover, .mlh-agent-card:hover { transform: translateY(-3px); box-shadow: var(--mlh-shadow-float); }

/* Scroll-reveal — JS adds .mlh-reveal to below-the-fold marketing sections (so
   with no JS they stay visible), then .is-in as each enters the viewport. */
.mlh-reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--mlh-ease), transform .55s var(--mlh-ease); }
.mlh-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .mlh-reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- 21c. SALES ELEVATION ----------------------------------------------
   Premium polish for the public marketing pages: softer/bigger shapes, tactile
   depth, playful tilted badges, italic lake-blue accent words, cream bands,
   auto-fit grids and entrance motion. Keeps our palette, fonts and images.
   Shared classes (.mlh-card/.mlh-btn/.mlh-badge) are scoped under the marketing
   body (body:has(main > .mlh-section)) so the portals are never touched. Marketing
   -only classes (panel/band/cta/path/hero) are styled directly. --------------- */

:root {
  --mlh-shadow-soft: 0 10px 30px rgba(11,23,38,.07), 0 2px 8px rgba(11,23,38,.045);
  --mlh-shadow-lift: 0 26px 56px rgba(5,12,22,.16);
  --mlh-r-hero: 44px;
}

/* Cards: rounder, softly floating, lift on hover (links/agent cards) */
body:has(main > .mlh-section) .mlh-card { border-radius: 26px; box-shadow: var(--mlh-shadow-soft); transition: transform var(--mlh-dur) var(--mlh-ease), box-shadow var(--mlh-dur) var(--mlh-ease); }
body:has(main > .mlh-section) .mlh-card--ice { box-shadow: none; }
body:has(main > .mlh-section) .mlh-card--link { will-change: transform; }
body:has(main > .mlh-section) .mlh-card--link:hover,
body:has(main > .mlh-section) .mlh-agent-card:hover { transform: translateY(-4px); box-shadow: var(--mlh-shadow-lift); }

/* Panels, bands and CTA: bigger, friendlier corners */
body:has(main > .mlh-section) .mlh-panel { border-radius: 38px; }
body:has(main > .mlh-section) .mlh-cta-band,
body:has(main > .mlh-section) .mlh-band--midnight { border-radius: 40px; }

/* Cream alternating band (soft warm-cool neutral, not pure white) */
.mlh-band--cream { background: var(--mlh-canvas); }

/* The signature emphasis: italic lake-blue accent words inside display headings */
body:has(main > .mlh-section) .mlh-hl { font-style: italic; letter-spacing: -0.045em; }
/* On blue / dark surfaces the blue accent would be invisible (blue-on-blue), so
   switch it to glacier. Covers CTA bands, blue panels, midnight bands and the
   over-photo hero — accent words are never allowed to disappear. */
.mlh-cta-band .mlh-hl, .mlh-panel--blue .mlh-hl, .mlh-band--midnight .mlh-hl, .mlh-hero__overlay .mlh-hl { color: var(--mlh-glacier); }

/* Numbered path rows: softer, with a little lift */
body:has(main > .mlh-section) .mlh-path { border-radius: 22px; box-shadow: var(--mlh-shadow-soft); }
body:has(main > .mlh-section) .mlh-path:hover { transform: translateY(-2px); box-shadow: var(--mlh-shadow-lift); }

/* Playful pill badge — heavy display type, soft shadow, slight tilt (the
   reference's "Day 2" / star badges). Floats over cards/heroes. */
.mlh-pill-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 10px; border-radius: 999px; background: var(--mlh-white); color: var(--mlh-heading); font-family: var(--mlh-font-display); font-weight: 800; font-size: 14px; letter-spacing: -0.02em; box-shadow: var(--mlh-shadow-soft); line-height: 1; }
.mlh-pill-badge--blue { background: var(--mlh-blue); color: var(--mlh-on-dark); }
.mlh-pill-badge--midnight { background: var(--mlh-midnight); color: var(--mlh-on-dark); }
.mlh-pill-badge--tilt { transform: rotate(-2.5deg); }
.mlh-pill-badge--tilt-r { transform: rotate(2.5deg); }

/* Auto-fit grid — columns adapt to width with no breakpoints */
.mlh-grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.mlh-grid--auto-sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* Stat callouts bigger + fluid (sales pages love a big number) */
body:has(main > .mlh-section) .mlh-stat__value,
body:has(main > .mlh-section) .mlh-stat .v { font-size: clamp(40px, 5vw, 60px); }

/* Entrance on load for the hero cluster (gentle, once) — respects reduced motion */
@media (prefers-reduced-motion: no-preference) {
  body:has(main > .mlh-section) .mlh-hero__overlay,
  body:has(main > .mlh-section) .mlh-hero__search { animation: mlh-rise .7s var(--mlh-ease) both; }
  body:has(main > .mlh-section) .mlh-hero__search { animation-delay: .08s; }
  @keyframes mlh-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* ---------- 21d. DEVICE MOCKUPS -----------------------------------------------
   Reusable browser + phone frames holding live-coded product screens, with
   floating status bubbles. Real HTML/SVG (no images), crisp at any size, in our
   palette. Browser and phone sit side by side (equal height), bubbles anchor to
   the stage. Used to show agents/buyers the actual product on the sales pages. */
.mlh-showcase { position: relative; }
.mlh-devstage { position: relative; width: 100%; max-width: 980px; margin: 0 auto; display: flex; justify-content: center; align-items: flex-end; gap: 28px; padding: 30px 0 10px; }

/* Browser / laptop frame */
.mlh-browser { flex: 1 1 auto; max-width: 660px; align-self: stretch; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(5,12,22,.20); border: 1px solid var(--mlh-line); }
.mlh-browser__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--mlh-ice); border-bottom: 1px solid var(--mlh-line); }
.mlh-browser__dots { display: flex; gap: 7px; }
.mlh-browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #CBD5E1; display: block; }
.mlh-browser__url { flex: 1; height: 28px; border-radius: 999px; background: #fff; border: 1px solid var(--mlh-line); display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; font-size: 12px; color: var(--mlh-muted); }

/* Generic coded screen surface (two-column app layout; --solo = single column) */
.mlh-screen { background: var(--mlh-canvas); padding: 18px; display: grid; grid-template-columns: 132px 1fr; gap: 16px; }
.mlh-screen--solo { grid-template-columns: 1fr; }
.mlh-screen__nav { display: flex; flex-direction: column; gap: 3px; }
.mlh-screen__brand { display: flex; align-items: center; gap: 8px; font-family: var(--mlh-font-display); font-weight: 800; font-size: 13.5px; color: var(--mlh-heading); margin-bottom: 12px; }
.mlh-screen__brand .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--mlh-midnight); display: grid; place-items: center; }
.mlh-navitem { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--mlh-muted); }
.mlh-navitem.is-active { background: var(--mlh-sky); color: var(--mlh-heading); }
.mlh-navitem .ic { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: .55; }
.mlh-screen__main { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.mlh-screen__h { display: flex; align-items: baseline; justify-content: space-between; }
.mlh-screen__h h5 { margin: 0; font-family: var(--mlh-font-display); font-weight: 800; font-size: 18px; color: var(--mlh-heading); }
.mlh-screen__h span { font-size: 12px; color: var(--mlh-muted); }
.mlh-screen__stats { display: flex; gap: 8px; }
.mlh-stat-mini { flex: 1; background: #fff; border: 1px solid var(--mlh-line); border-radius: 11px; padding: 9px 12px; }
.mlh-stat-mini .v { font-family: var(--mlh-font-display); font-weight: 800; font-size: 18px; color: var(--mlh-heading); line-height: 1; }
.mlh-stat-mini .l { font-size: 10.5px; color: var(--mlh-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .03em; }

/* Lead cards inside the screen */
.mlh-leadcard { background: #fff; border: 1px solid var(--mlh-line); border-radius: 13px; padding: 13px 15px; display: flex; align-items: center; gap: 13px; }
.mlh-leadcard--new { border-color: transparent; box-shadow: 0 0 0 2px var(--mlh-blue), 0 12px 24px rgba(29,109,242,.16); }
.mlh-leadcard__av { width: 38px; height: 38px; border-radius: 50%; background: var(--mlh-sky); color: var(--mlh-blue); font-family: var(--mlh-font-display); font-weight: 800; display: grid; place-items: center; font-size: 14px; flex: none; }
.mlh-leadcard__t { flex: 1; min-width: 0; }
.mlh-leadcard__name { font-weight: 800; color: var(--mlh-heading); font-size: 13.5px; font-family: var(--mlh-font-display); }
.mlh-leadcard__meta { font-size: 11.5px; color: var(--mlh-muted); margin-top: 2px; }
.mlh-leadcard__meta b { color: var(--mlh-blue); font-weight: 700; }
.mlh-leadcard__claim { flex: none; height: 33px; padding: 0 15px; border-radius: 999px; background: var(--mlh-blue); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.mlh-leadcard--muted { opacity: .72; }
.mlh-leadcard--muted .mlh-leadcard__av { background: var(--mlh-ice); color: var(--mlh-muted); }
.mlh-leadcard--muted .mlh-leadcard__claim { background: var(--mlh-ice); color: var(--mlh-muted); }

/* Phone frame — modern (status bar, Dynamic Island, lock-screen clock, notification) */
.mlh-phone { flex: none; width: 236px; border-radius: 46px; background: #0a0f17; padding: 6px; box-shadow: 0 40px 80px rgba(5,12,22,.38); }
.mlh-phone__screen { position: relative; border-radius: 40px; overflow: hidden; background: linear-gradient(168deg, #3277e6 0%, #1a3a66 48%, #0f2038 100%); height: 498px; }
.mlh-phone__island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 82px; height: 25px; background: #000; border-radius: 999px; z-index: 4; }
.mlh-phone__status { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 15px 24px 0; color: #fff; font-size: 13px; font-weight: 800; z-index: 3; }
.mlh-phone__status .sig span { width: 17px; height: 11px; border: 1.5px solid #fff; border-radius: 3px; display: inline-block; position: relative; }
.mlh-phone__status .sig span::after { content: ""; position: absolute; inset: 2px; right: 5px; background: #fff; border-radius: 1px; }
.mlh-phone__clock { text-align: center; color: #fff; margin-top: 74px; }
.mlh-phone__clock .d { font-size: 14px; font-weight: 600; opacity: .9; }
.mlh-phone__clock .t { font-size: 66px; font-weight: 700; letter-spacing: -3px; line-height: 1; font-family: var(--mlh-font-display); margin-top: 2px; }
.mlh-phone__notifs { position: absolute; left: 11px; right: 11px; bottom: 14px; }
.mlh-notif { background: rgba(255,255,255,.95); border-radius: 20px; padding: 13px 14px; box-shadow: 0 14px 30px rgba(5,12,22,.28); }
.mlh-notif__top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mlh-notif__ic { width: 24px; height: 24px; border-radius: 7px; background: var(--mlh-midnight); display: grid; place-items: center; }
.mlh-notif__app { font-size: 11px; font-weight: 800; color: var(--mlh-heading); letter-spacing: .02em; text-transform: uppercase; flex: 1; }
.mlh-notif__time { font-size: 11px; color: var(--mlh-muted); }
.mlh-notif__title { font-weight: 800; font-size: 13.5px; color: var(--mlh-heading); font-family: var(--mlh-font-display); }
.mlh-notif__body { font-size: 12.5px; color: var(--mlh-body); margin-top: 2px; line-height: 1.4; }

/* Floating status bubbles — anchored to the stage, over the browser's left edge */
.mlh-bubble { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 16px 36px rgba(5,12,22,.18); font-size: 13px; font-weight: 800; color: var(--mlh-heading); font-family: var(--mlh-font-display); z-index: 5; }
.mlh-bubble .k { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.mlh-bubble--1 { top: 30px; left: -14px; transform: rotate(-5deg); }
.mlh-bubble--2 { bottom: 40px; left: -22px; transform: rotate(3deg); }

@media (max-width: 860px) {
  .mlh-devstage { flex-direction: column; align-items: center; gap: 0; max-width: 420px; }
  .mlh-browser { max-width: 100%; align-self: stretch; }
  .mlh-screen { grid-template-columns: 1fr; }
  .mlh-screen__nav { display: none; }
  .mlh-phone { width: 232px; margin-top: 26px; }
  .mlh-bubble { display: none; }
}

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

/* ---------- 23. Responsive (the ONLY breakpoints) ---------- */
/* Legal / policy pages — sticky table-of-contents + a readable content column
   with clearly separated, anchor-linkable sections. */
.mlh-legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.mlh-legal__toc { position: sticky; top: 96px; }
.mlh-legal__toc-title { font-size: 12px; letter-spacing: var(--mlh-track-eyebrow); text-transform: uppercase; color: var(--mlh-muted); margin: 0 0 10px 12px; }
.mlh-legal__toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; counter-reset: lg; }
.mlh-legal__toc a { display: block; padding: 7px 12px; border-radius: var(--mlh-r-btn); font-size: 14px; line-height: 1.35; color: var(--mlh-muted); text-decoration: none; }
.mlh-legal__toc a:hover { background: var(--mlh-ice); color: var(--mlh-heading); }
.mlh-legal__body { max-width: 720px; min-width: 0; }
.mlh-legal__body > section { scroll-margin-top: 96px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--mlh-line); }
.mlh-legal__body > section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.mlh-legal__body h2 { font-size: 23px; letter-spacing: var(--mlh-track-title); margin: 0 0 12px; }
.mlh-legal__body h3 { font-size: 16px; margin: 20px 0 8px; color: var(--mlh-heading); }
.mlh-legal__body p { line-height: 1.7; color: var(--mlh-body); margin: 0 0 12px; }
.mlh-legal__body ul { padding-left: 20px; margin: 8px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.mlh-legal__body li { line-height: 1.65; color: var(--mlh-body); }
.mlh-legal__body code { background: var(--mlh-ice); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.mlh-legal__callout { background: var(--mlh-ice); border-radius: var(--mlh-r-card); padding: 20px 24px; margin: 0 0 8px; }
.mlh-legal__callout p { margin: 0; }
@media (max-width: 1024px) {
  .mlh-legal { grid-template-columns: 1fr; gap: 24px; }
  .mlh-legal__toc { position: static; }
  .mlh-legal__toc ol { flex-flow: row wrap; gap: 8px; }
  .mlh-legal__toc a { background: var(--mlh-ice); }
}

@media (max-width: 1280px) {
  :root { --mlh-gutter: 40px; }
}
@media (max-width: 1024px) {
  :root { --mlh-gutter: 24px; --mlh-section: 88px; --mlh-sidebar-w: 0px; }
  .mlh-nav__links { display: none; }
  /* The top-bar CTAs/account move into the drawer on mobile — leaving them here
     pushed the hamburger off-screen and overflowed the header. */
  .mlh-nav__actions { display: none; }
  .mlh-nav__toggle { display: inline-flex; }
  .mlh-hero__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .mlh-hero__lede { max-width: 560px; }
  .mlh-grid--4, .mlh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mlh-grid--12 { grid-template-columns: 1fr; gap: 32px; }
  .mlh-grid--12 > * { grid-column: auto; }
  .mlh-lake-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 240px; }
  .mlh-lake-mosaic > .mlh-lake-tile:nth-child(n) { grid-column: auto; }
  .mlh-lake-mosaic > .mlh-lake-tile--feature:nth-child(n) { grid-column: span 2; grid-row: auto; min-height: 360px; }
  .mlh-points { grid-template-columns: 1fr; }
  .mlh-footer__top { flex-direction: column; gap: 32px; }
  .mlh-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mlh-auth { grid-template-columns: 1fr; }
  .mlh-auth__media { display: none; }
  .mlh-app { grid-template-columns: 1fr; }
  .mlh-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 90; transform: translateX(-100%); transition: transform var(--mlh-dur) var(--mlh-ease); }
  .mlh-app.is-menu-open .mlh-sidebar { transform: none; }
  .mlh-app__menu { display: inline-flex; }
  .mlh-main { padding: 24px; }
}
@media (max-width: 768px) {
  :root { --mlh-section: 52px; }
  .mlh-grid--2, .mlh-grid--3 { grid-template-columns: 1fr; }
  /* Agent cards go horizontal on mobile — full-width vertical cards with a
     16:9 photo were enormous. Photo becomes a fixed-width side thumbnail. */
  .mlh-agent-card { flex-direction: row; align-items: stretch; }
  .mlh-agent-card__photo { flex: 0 0 112px; height: auto; align-self: stretch; }
  .mlh-agent-card__body { flex: 1 1 auto; min-width: 0; padding: 14px 16px 16px; }
  .mlh-agent-card__initials { font-size: 34px; }
  .mlh-agent-card__photo .mlh-vetted { width: 28px; height: 28px; right: 8px; top: 8px; }
  /* Lake-mosaic feature tile clipped its title on narrow screens — stack the
     body and drop the oversized feature type down to the normal tile size. */
  .mlh-lake-tile__body { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mlh-lake-mosaic > .mlh-lake-tile--feature .mlh-lake-tile__name { font-size: 30px; letter-spacing: var(--mlh-track-title); }
  /* Never let a long heading or word overflow its container on mobile. */
  h1, h2, h3 { overflow-wrap: break-word; }
  .mlh-hero__window, .mlh-place-hero { height: 460px; border-radius: var(--mlh-r-card); }
  .mlh-hero__search { position: static; transform: none; width: auto; margin: -72px 16px 0; }
  /* Tighter, more deliberate form: each field is a soft-filled chip (not bare
     text on a big white slab), dividers drop out, spacing closes up. */
  .mlh-search { flex-direction: column; align-items: stretch; border-radius: var(--mlh-r-card); padding: 12px; gap: 9px; }
  .mlh-search__divider { display: none; }
  .mlh-search__field { gap: 2px; padding: 9px 13px; border-radius: 13px; background: var(--mlh-ice); border: 1px solid var(--mlh-line); }
  .mlh-search__field:focus-within { border-color: var(--mlh-blue); background: var(--mlh-white); }
  .mlh-search__input, .mlh-search__select { height: 24px; font-size: 16px; }
  .mlh-search__field--narrow { flex-basis: auto; }
  .mlh-search .mlh-btn { width: 100%; height: 50px; margin-top: 1px; }
  .mlh-path { grid-template-columns: 48px 1fr; padding: 18px; }
  .mlh-path__cta { grid-column: 1 / -1; justify-self: start; }
  .mlh-section-head { flex-direction: column; align-items: flex-start; }
  .mlh-band--midnight, .mlh-panel { padding: 32px 24px; }
  .mlh-cta-band { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .mlh-place-hero__body { left: 20px; right: 20px; bottom: 24px; flex-direction: column; align-items: flex-start; }
  .mlh-quiz__options { grid-template-columns: 1fr; }
}
/* Agent directory — 2-up landscape rectangle cards on tablet/desktop: photo on
   the left, full-width "View profile" button pinned to the bottom. Scoped to
   #agent-directory-grid so agent cards shown elsewhere (e.g. lake pages) keep
   their vertical layout. Mobile (<=768px) keeps the single-column stacked cards. */
@media (min-width: 769px) {
  #agent-directory-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  #agent-directory-grid .mlh-agent-card { flex-direction: row; align-items: stretch; }
  #agent-directory-grid .mlh-agent-card__photo { flex: 0 0 210px; height: auto; align-self: stretch; }
  #agent-directory-grid .mlh-agent-card__flag { right: auto; left: 12px; }
  #agent-directory-grid .mlh-agent-card__body { min-width: 0; }
  #agent-directory-grid .mlh-agent-card__body > .mlh-btn { align-self: stretch; width: 100%; text-align: center; }

  /* Homepage full-screen hero (desktop/tablet): the lakefront photo fills the
     viewport edge-to-edge below the nav, with the headline + search centered over
     a legibility gradient that dissolves to white into the section below. Restores
     the original full-bleed hero. Scoped to the homepage via --overlay; the mobile
     stacked hero (<=768px) is untouched. The 100vw breakout is clipped by the
     section so it never introduces horizontal scroll. */
  .mlh-hero-section { padding-top: 0; overflow-x: clip; }
  .mlh-hero__window--overlay {
    position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: 0;
    min-height: calc(100vh - var(--mlh-nav-h)); height: auto;
    border-radius: 0; overflow: hidden; background: var(--mlh-night);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  }
  .mlh-hero__window--overlay > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; border-radius: 0; z-index: 0; }
  .mlh-hero__window--overlay::after {
    background: linear-gradient(180deg, rgba(11,23,38,.58) 0%, rgba(11,23,38,.42) 42%, rgba(11,23,38,.22) 68%, rgba(245,248,252,0) 88%, var(--mlh-white) 100%);
    z-index: 1;
  }
  .mlh-hero__window--overlay .mlh-hero__overlay {
    position: relative; z-index: 2; top: auto; left: auto; right: auto;
    max-width: 880px; width: 100%; text-align: center; padding: 0 24px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
  }
  .mlh-hero__window--overlay .mlh-hero__overlay .mlh-hero__title { color: var(--mlh-on-dark); text-shadow: 0 2px 24px rgba(0,0,0,.45); max-width: 16ch; font-size: clamp(42px, 5vw, 64px); line-height: 1.05; }
  .mlh-hero__window--overlay .mlh-hero__overlay .mlh-hl { color: var(--mlh-glacier); }
  .mlh-hero__window--overlay .mlh-hero__overlay-lede { display: block; color: rgba(255,255,255,.92); text-shadow: 0 1px 10px rgba(0,0,0,.45); max-width: 600px; margin: 0 auto; }
  .mlh-hero__window--overlay .mlh-hero__search { position: relative; z-index: 2; left: auto; bottom: auto; transform: none; width: min(720px, calc(100% - 48px)); margin: 10px auto 0; }
}
@media (max-width: 480px) {
  :root { --mlh-gutter: 16px; }
  .mlh-grid--4, .mlh-stats { grid-template-columns: 1fr; }
  .mlh-lake-mosaic { grid-template-columns: 1fr; }
  .mlh-lake-mosaic > .mlh-lake-tile--feature:nth-child(n) { grid-column: auto; }
  .mlh-footer__cols { grid-template-columns: 1fr 1fr; }
  /* The hero search card overlaps up into the photo (-44px) and overflows the
     grid window box, so the trust row needs extra top clearance to sit below it. */
  .mlh-trust { justify-content: flex-start; gap: 10px; margin-top: 58px; }
  .mlh-btn--lg { width: 100%; }
}

/* [hidden] must beat display-setting utilities (mlh-stack/grid/row). Placed
   last so equal-specificity source order wins — no forced overrides (spec §10). */
[hidden] { display: none; }
