/* Only the selected native homepage or authorized front-page preview gets these classes. */
html.ch-laop-v3-document { font-size: 100% !important; scroll-behavior: auto; }
body.ch-laop-v3-page { margin: 0; }
body.ch-laop-v3-page #brx-content.ch-laop-v3-canvas { width: 100%; max-width: none; margin: 0; padding: 0; }
body.ch-laop-v3-page .ch-laop-v3-native-coverage,
body.ch-laop-v3-page .ch-laop-v3-anchor { scroll-margin-top: calc(var(--nav-height, 72px) + 16px); }
body.ch-laop-v3-page .ch-laop-v3-anchor { display: block; height: 0; width: 0; }
/* Override shared WPCB9's fixed label height without changing its other pages. */
#mg-v2-draft .coverage-gf .gform_wrapper.gravity-theme .gfield_label { height: auto !important; }
/* WPCB44 remains the owner of the native consent disclosure. */
#mg-v2-draft .coverage-gf .laop-seemore-btn { color: var(--ink) !important; font: inherit; white-space: nowrap; }
#mg-v2-draft .coverage-gf .laop-seemore-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
/* Native input submit cannot render the preview button's ::after arrow. */
#mg-v2-draft #coverage-form input.gform_button[type="submit"] { text-align: center; }
/* Preserve native error links and field messages after an AJAX validation response. */
#mg-v2-draft #coverage-form .gform_validation_errors ol { display: block; margin: 8px 0 0; padding-left: 20px; }
#mg-v2-draft #coverage-form .gform_validation_errors a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* Undo the inert preview's loading suppression. GF owns spinner insertion/removal and
   inline visibility; inactive/hidden loaders must remain hidden. No extra loading UI. */
#mg-v2-draft #coverage-form .gform_ajax_spinner:not([hidden]):not([style*="display: none"]):not([style*="display:none"]),
#mg-v2-draft #coverage-form .gform-loader:not([hidden]):not([style*="display: none"]):not([style*="display:none"]) {
  display: inline-block !important;
  vertical-align: middle;
  margin: 12px 8px 0;
}
/* Avoid the legacy injected row duplicating the approved coverage module's trust content. */
#mg-v2-draft .coverage-gf .laop-trust-strip { display: none !important; }

/* Speed round 1: the iframe box is reserved before any map network activity. */
#mg-v2-draft.laop-v3 .location-map-canvas { position: relative; background: var(--wash); }
#mg-v2-draft.laop-v3 .location-map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; color: var(--ink); text-align: center; line-height: 1.5; }
#mg-v2-draft.laop-v3 .location-map-load { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; line-height: 1.4; cursor: pointer; }
#mg-v2-draft.laop-v3 .location-map-fallback { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--ink); font-size: var(--text-detail); text-decoration: underline; text-underline-offset: 3px; }
#mg-v2-draft.laop-v3 .location-map-load:focus-visible, #mg-v2-draft.laop-v3 .location-map-fallback:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* Bricks emits these native links outside the custom homepage wrapper. */
body.ch-laop-v3-page > a.skip-link { position: fixed; top: 0; left: 1rem; z-index: 10000; padding: 12px 20px; transform: translateY(-150%); background: #f6f9fb; color: #173e55; font: 600 16px/1.5 "MG V2 DM Sans", Arial, sans-serif; }
body.ch-laop-v3-page > a.skip-link:focus { transform: translateY(0); outline: 3px solid #173e55; outline-offset: 2px; }
/* WordPress/GF announcements may be appended outside the custom wrapper. */
body.ch-laop-v3-page .screen-reader-text, body.ch-laop-v3-page .ui-helper-hidden-accessible { clip: rect(1px, 1px, 1px, 1px); height: 1px; width: 1px; overflow: hidden; position: absolute !important; white-space: nowrap; }
body.ch-laop-v3-page .screen-reader-text:focus { clip: auto !important; height: auto; width: auto; overflow: visible; left: 5px; top: 5px; z-index: 100000; padding: 15px 23px; background: #f6f9fb; color: #173e55; }
/* Keep the incumbent photo geometry when adding format-selection wrappers. */
#mg-v2-draft.laop-v3 .setting-photo > .ch-speed-picture { display: block; width: 100%; height: 100%; border-radius: inherit; }
#mg-v2-draft.laop-v3 .setting-photo > .ch-speed-picture > img { width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-position, 50% 50%); border-radius: inherit; user-select: none; -webkit-user-drag: none; }
#mg-v2-draft.laop-v3 .team-portrait-frame > .ch-speed-picture { display: block; width: 100%; height: 100%; }

/* Compact static mobile conditions; preserve the complete desktop list. */
#mg-v2-draft.laop-v3 .conditions-compact-mobile .conditions-more {
  color: inherit; font: inherit; text-decoration: none;
}
#mg-v2-draft.laop-v3 .conditions-compact-mobile .conditions-more:focus-visible {
  outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px;
}
@media (max-width: 767px) {
  #mg-v2-draft.laop-v3 .conditions.conditions-compact-mobile { padding-top: 8px; }
  #mg-v2-draft.laop-v3 .conditions-compact-mobile .conditions-inner { width: 100%; padding-bottom: 8px; gap: 0; }
  #mg-v2-draft.laop-v3 .conditions-compact-mobile .conditions-label,
  #mg-v2-draft.laop-v3 .conditions-compact-mobile .conditions-desktop-only { display: none; }
  #mg-v2-draft.laop-v3 .conditions-compact-mobile ul {
    --condition-gap: clamp(6px, 2vw, 9px);
    display: flex; flex-wrap: nowrap; align-items: center; justify-content: center;
    width: 100%; max-width: none; min-height: 44px; gap: var(--condition-gap);
    font-size: clamp(14px, 3.85vw, 15px); line-height: 1.5; white-space: nowrap;
  }
  #mg-v2-draft.laop-v3 .conditions-compact-mobile li { display: flex; align-items: center; gap: var(--condition-gap); }
  #mg-v2-draft.laop-v3 .conditions-compact-mobile li::before {
    display: block; width: 3px; height: 3px; align-self: center; margin-top: 0;
  }
  #mg-v2-draft.laop-v3 .conditions-compact-mobile li:first-child::before { display: none; }
  #mg-v2-draft.laop-v3 .conditions-compact-mobile .conditions-more {
    display: inline-flex; align-items: center; min-height: 44px;
    text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  }
}
