/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(ca730a5c.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(72ed6981.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(712a8128.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(e2e485b7.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(72ce2283.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(ca730a5c.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(72ed6981.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(712a8128.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(e2e485b7.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(72ce2283.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(ca730a5c.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(72ed6981.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(712a8128.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(e2e485b7.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(72ce2283.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(ca730a5c.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(72ed6981.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(712a8128.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(e2e485b7.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(72ce2283.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; overflow-x: clip; }
  body { margin: 0; overflow-x: clip; max-width: 100%; }
  ::selection { background: #47695a; color: #fff; }

  /* ---- Responsive (media queries can't be inline) ---- */
  @media (max-width: 900px) {
    .lm-course { grid-template-columns: 1fr 1fr !important; }
    .lm-footer { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  }
  .lm-burger { display: none; }
  @media (max-width: 760px) {
    .lm-navlinks { display: none !important; }
    .lm-burger { display: flex !important; }
    header nav { padding-left: 14px !important; padding-right: 14px !important; gap: 8px !important; }
    header nav > div { gap: 8px !important; }
    header nav a img { height: 26px !important; }
    header nav .rsBtn { padding: 8px 13px !important; font-size: 12.5px !important; }
    .lm-events { grid-template-columns: 1fr !important; align-items: start !important; }
    .lm-full { grid-template-columns: 1fr !important; }
    .lm-full-text { padding: 32px !important; }
    .lm-two { grid-template-columns: 1fr !important; align-items: start !important; }
    .lm-events > *, .lm-two > * { grid-column: auto !important; align-self: start !important; min-width: 0 !important; }
    .lm-fullpill { position: static !important; display: inline-block; margin: 0 0 14px !important; }
    .lm-testimonial { grid-template-columns: 1fr !important; }
    .lm-why { grid-template-columns: 1fr !important; gap: 36px !important; }
    .lm-section { padding-left: 20px !important; padding-right: 20px !important; }
    .lm-pad-v { padding-top: 64px !important; padding-bottom: 64px !important; }
    .lm-countdown { justify-content: center !important; text-align: center !important; }
    .lm-stats { gap: 28px !important; flex-wrap: wrap !important; }
  }
  @media (max-width: 520px) {
    .lm-course { grid-template-columns: 1fr !important; }
    .lm-gallery { grid-template-columns: 1fr 1fr !important; }
    .lm-footer { grid-template-columns: 1fr !important; }
    .lm-cd-grid { width: 100%; justify-content: space-between !important; gap: 8px !important; }
    .lm-cd-box { min-width: 0 !important; flex: 1 1 0 !important; padding: 12px 4px !important; }
    .lm-cd-box > div:first-child { font-size: 28px !important; }
  }

.lm-mobilemenu[hidden]{display:none!important;}

/* LM base wrapper — match the design's page defaults (dark text on light page) */
body{background:#f6f7f5;color:#1c211e;-webkit-font-smoothing:antialiased;}

/* LM merge sections — remove WP-injected block spacing; design controls its own spacing */
body{margin:0;}
.wp-site-blocks{padding:0 !important;margin:0 !important;}
.wp-site-blocks > *{margin-block:0 !important;}
:where(.wp-site-blocks .is-layout-flow) > *{margin-block-start:0 !important;margin-block-end:0 !important;}

/* Hero video: desktop only; mobile shows the still for performance */
.lm-hero-video{display:block;}
@media(max-width:760px){.lm-hero-video{display:none;}}

/* Sponsors dropdown */
.lm-dd-menu{display:none;}
.lm-dd:hover .lm-dd-menu{display:block;}
.lm-dd-menu::before{content:"";position:absolute;top:-14px;left:0;right:0;height:14px;}
.lm-dd-menu a:hover{color:#fff;background:rgba(255,255,255,0.06);}
.lm-dd-toggle{cursor:pointer;}


/* ---- Mobile grid collapse (mobile-optimise audit 2026-07-16) ---- */
/* Multi-column grids that had no responsive rule blew out past the viewport on phones
   (clipped by html/body overflow-x:clip). Collapse them like the existing .lm-course. */
@media (max-width: 900px) {
  .lm-cards { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 760px) {
  .lm-3col { grid-template-columns: 1fr !important; }
  .lm-steps { grid-template-columns: 1fr !important; }
  .lm-contact { grid-template-columns: 1fr !important; }
  .lm-2 { grid-template-columns: 1fr !important; }
}
@media (max-width: 520px) {
  .lm-cards { grid-template-columns: 1fr !important; }
  .lm-statrow { gap: 16px !important; flex-wrap: wrap !important; }
}

/* --- Swim/Bike/Run course cards: keep athletes' heads in frame ---
   The swim (JJ6_0567) and run (lakesman-run) photos are portrait, so inside the
   fixed-height object-fit:cover card boxes a centred crop clipped the athletes'
   heads (reported: runner's head cut off on many pages). Bias the crop toward the
   top so the heads stay visible. Bike/finish photos are landscape and unaffected. */
img[src*="lakesman-run"],
img[src*="JJ6_0567"] { object-position: center 25%; }

/* --- Race Options (#options) Full/Half feature cards: stack on mobile ---
   .lm-row / .lm-row-rev use an inline grid-template-columns:1fr 1fr. On narrow
   screens the text column's min-content width squeezed the image into a tall
   ~83px sliver (reported: Half & Full cards "messy" on mobile). Collapse to one
   column, place the image on top for both cards, and tighten the text padding to
   match the .lm-3col cards below. Only used on the Race Options page; desktop
   (>760px) unchanged. */
@media (max-width: 760px) {
  .lm-row { grid-template-columns: 1fr !important; }
  .lm-row-rev .lm-row-img { grid-row: 1 !important; }
  .lm-row-img { min-height: 220px !important; }
  .lm-row > div:not(.lm-row-img) { padding: 32px !important; }
}

/* ---- Mobile nav drawer: scroll instead of closing (bug: mobile menu closes when
   scrolling down to reach lower items e.g. Sponsors -- ticket 39f14033) ----
   The .lm-mobilemenu drawer lives inside the position:sticky header and had no height
   cap or scroll, so with the full link list (Results + Sponsors + Shop) it ran ~900px
   tall, well past a phone viewport, leaving the lower items below the fold with no
   way to reach them. Cap it to the space under the nav bar and let it scroll
   internally; overscroll-behavior:contain stops the scroll chaining to the page that
   toggled the mobile address bar and fired the resize which closed the menu. */
@media (max-width: 760px) {
  .lm-mobilemenu {
    max-height: calc(100vh - 74px);
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

/* Sections and grids set their spacing inline, so phone-size adjustments live here.
   Selectors match both the spaced and unspaced inline forms in use. */
@media (max-width: 760px) {
  /* Desktop 96-100px section paddings read as oversized blank bands on phones;
     bring them down to the 64px mobile rhythm used elsewhere. */
  section[style*="padding: 96px 32px"],
  section[style*="padding:96px 32px"],
  section[style*="padding: 100px 32px 40px"],
  section[style*="padding:100px 32px 40px"] {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }
  section[style*="padding: 96px 32px 40px"],
  section[style*="padding:96px 32px 40px"],
  section[style*="padding: 100px 32px 40px"],
  section[style*="padding:100px 32px 40px"] {
    padding-bottom: 40px !important;
  }
  section[style*="padding: 0 32px 96px"],
  section[style*="padding:0 32px 96px"],
  section[style*="padding: 80px 32px 96px"],
  section[style*="padding:80px 32px 96px"],
  section[style*="padding: 56px 32px 96px"],
  section[style*="padding:56px 32px 96px"] {
    padding-bottom: 64px !important;
  }

  /* Two-column content grids stack on phones; matching pairs of full-width
     fractions only, so weighted layouts (footer, feature rows) are untouched. */
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: repeat(2, 1fr)"],
  div[style*="grid-template-columns:repeat(2,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}
