/* LMS_CONTENT_FRAME_SYSTEM_V1
 * Canonical width for public page content and the principal forms it contains.
 * Source of truth: --lms-site-content-frame (the existing 1180px site rail).
 * Scope is intentionally limited to content frames: small search, modal, card,
 * sidebar and member dashboard forms keep their own component sizing.
 */
html body.lms-navigation-v2.page-shell {
  --lms-content-frame-width:var(--lms-site-content-frame,var(--lms-frame-width,min(1180px,calc(100vw - 32px))));
}
html body.lms-navigation-v2.page-shell :is(
  .lms-content-frame,
  main.lms-public-information-page > .access-page-intro,
  main.lms-public-information-page > .site-page-content,
  main.legal-page.lms-public-information-page > section:not(.invoice-sheet),
  main.contact-page.lms-public-information-page > .contact-form-section,
  main.account-page.auth-page.access-form-page > section.verification-panel.access-form-shell,
  main.guest-action-page > .guest-action-intro,
  main.guest-action-page > .guest-action-layout
) {
  box-sizing:border-box!important;
  width:var(--lms-content-frame-width)!important;
  max-width:calc(100vw - 32px)!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
/* The card occupies its parent frame; no second hard-coded max-width. */
html body.lms-navigation-v2.page-shell :is(
  main.guest-action-page .guest-action-layout > .guest-action-auth,
  main.account-page.auth-page.access-form-page > section.access-form-shell > form.auth-recovery-form,
  main.contact-page.lms-public-information-page > .contact-form-section > form.contact-form
) {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
html body.lms-navigation-v2.page-shell :is(
  main.guest-action-page .guest-action-form,
  main.account-page.auth-page.access-form-page form.auth-recovery-form,
  main.contact-page.lms-public-information-page form.contact-form
) :is(input:not([type="hidden"]),select,textarea) {
  box-sizing:border-box!important;
  max-width:100%!important;
  min-width:0!important;
}
/* Wide guest authentication uses a balanced two-column form, with its
 * secondary controls and CTA spanning the card. Small screens stack fields. */
@media (min-width:800px) {
  html body.lms-navigation-v2.page-shell main.guest-action-page .guest-action-auth > .guest-action-form {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:16px!important;
    row-gap:12px!important;
  }
  html body.lms-navigation-v2.page-shell main.guest-action-page .guest-action-form > :is(
    .guest-action-forgot,.guest-action-form-note,.guest-action-submit
  ),
  html body.lms-navigation-v2.page-shell main.guest-action-page .guest-action-form > .password-reveal-control:has(input[autocomplete="new-password"]) {
    grid-column:1/-1!important;
  }
}
@media (max-width:799px) {
  html body.lms-navigation-v2.page-shell main.guest-action-page .guest-action-auth > .guest-action-form {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
  }
}

/* LMS_CITY_POSTAL_HERO_SPACING_V1
   Preserve the editorial page banner while separating its baseline
   and subtitle from the first results row, on desktop and phone. */
html body.lms-navigation-v2.page-shell.route-commune main.city-page>.lms-editorial-intro.lms-public-hero{
  box-sizing:border-box!important;
  padding-bottom:clamp(30px,4vw,52px)!important;
  margin-bottom:clamp(22px,3vw,34px)!important;
}
html body.lms-navigation-v2.page-shell.route-commune main.city-page>.lms-editorial-intro.lms-public-hero :is(p,.lms-hero-banner-description){
  margin-bottom:0!important;
  line-height:1.6!important;
}
