/* Physical mobile gutters, applied once at the main canvas boundary. */
@media screen and (max-width:767px), screen and (max-height:500px) and (max-width:1000px) and (orientation:landscape){
 html body.l-body{margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}
 html body .l-canvas{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;border-left-width:0!important;border-right-width:0!important;box-sizing:border-box}
 html body #page-content.l-main{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:5px!important;padding-right:7px!important;border-left-width:0!important;border-right-width:0!important;box-sizing:border-box}
 html body #page-content.l-main :is(.l-section,.l-section-h,.l-main-h,.l-content,.l-sidebar,.g-cols,.wpb_column,.vc_column_container,.vc_column-inner,.wpb_wrapper){margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;min-width:0;box-sizing:border-box}
 html body #page-content.l-main :is(.l-section-h,.l-main-h){width:100%!important;max-width:100%!important}
 html body #page-content.l-main .for_sidebar>.l-section-h{display:block}
 html body #page-content.l-main :is(.l-content,.l-sidebar){width:100%!important;max-width:100%!important}
 html body #page-content.l-main :is(.w-blogpost-body,.w-blogpost-preview,.w-post-elm.post_content,.ls-reading-body){padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important;min-width:0;max-width:100%;box-sizing:border-box}
 html body #page-content.l-main .ls-reading-body :is(figure,.wp-caption){margin-left:0!important;margin-right:0!important;max-width:100%;box-sizing:border-box}
 html body #page-content.l-main :is(img,video,iframe){max-width:100%}
}
@media(min-width:992px){
 body.ls-end-sticky-widgets .for_sidebar>.l-section-h>.l-sidebar,
 body.ls-end-sticky-widgets .for_sidebar>.l-section-h>.g-cols>.l-sidebar{align-self:start;height:auto;min-height:0}
 body.ls-end-sticky-widgets .ls-sticky-widgets-ready{position:sticky!important;top:var(--ls-widget-top,16px)!important;bottom:auto!important;align-self:start;height:auto;min-height:0;z-index:2}
 /* Keep the native column row as the sticky containing block. */
 body.ls-end-sticky-widgets .for_sidebar,body.ls-end-sticky-widgets .for_sidebar>.l-section-h,body.ls-end-sticky-widgets .for_sidebar>.l-section-h>.g-cols{overflow:visible}
}
@media print{body.ls-end-sticky-widgets .ls-sticky-widgets-ready{position:static!important;top:auto!important}}



/* Content lists only: preserve navigation, TOC and icon-list layouts. */
:is(.ls-reading-body,.w-blogpost-body,.w-post-elm.post_content,.entry-content,.wp-block-post-content,.wpb_text_column) ul:not([class])>li::marker,
:is(.ls-reading-body,.w-blogpost-body,.w-post-elm.post_content,.entry-content,.wp-block-post-content,.wpb_text_column) ul.wp-block-list>li::marker{color:var(--ls-bullet-color,currentColor);font-size:var(--ls-bullet-size,100%)}
/* Legacy dropdown/search panels used negative rem insets that exceeded narrower headers. */
html body.header_hor #page-header .w-nav.type_mobile.m_layout_dropdown>.w-nav-list.level_1,
html body.header_hor #page-header .w-search.layout_fullwidth .w-search-form {
 left:0;right:0;width:auto;max-width:100%;box-sizing:border-box;
}
@media(max-width:600px){
 html body.header_hor #page-header .w-search:is(.layout_simple,.layout_modern) .w-search-form {
  left:0;right:0;width:auto;max-width:100%;box-sizing:border-box;
 }
}

/* Reserve space for native markers without changing list numbering. */
@media screen and (max-width:767px), screen and (max-height:500px) and (max-width:1000px) and (orientation:landscape) {
  #page-content :is(.ls-reading-body, .w-blogpost-body, .w-post-elm.post_content, .entry-content, .wp-block-post-content, .wpb_text_column)
    :is(ul, ol):where(:not([class]), .wp-block-list, .has-text-align-left, .has-text-align-right, [dir], [align], [style*="direction" i], [style*="text-align" i]) {
    margin-inline: 0 !important;
    padding-inline: 2.1em 0 !important;
    list-style-position: outside !important;
  }

  #page-content :is(.ls-reading-body, .w-blogpost-body, .w-post-elm.post_content, .entry-content, .wp-block-post-content, .wpb_text_column)
    :is(ul, ol):where(:not([class]), .wp-block-list, .has-text-align-left, .has-text-align-right, [dir], [align], [style*="direction" i], [style*="text-align" i]) > li {
    margin-inline: 0 !important;
  }

  #page-content :is(.ls-reading-body, .w-blogpost-body, .w-post-elm.post_content, .entry-content, .wp-block-post-content, .wpb_text_column)
    :is(ul, ol):where(:not([class]), .wp-block-list, .has-text-align-left, .has-text-align-right, [dir], [align], [style*="direction" i], [style*="text-align" i])
    :where(*) {
    overflow-wrap: anywhere;
  }

  /* Classic Editor can save left alignment without a dir attribute. */
  #page-content :is(.ls-reading-body, .w-blogpost-body, .w-post-elm.post_content, .entry-content, .wp-block-post-content, .wpb_text_column)
    :is(ul, ol):where(.has-text-align-left, [align="left" i], [style*="text-align:left" i], [style*="text-align: left" i]):not([dir="rtl" i]),
  #page-content :is(.ls-reading-body, .w-blogpost-body, .w-post-elm.post_content, .entry-content, .wp-block-post-content, .wpb_text_column)
    :is(ul, ol):where(:not([class]), .wp-block-list):not([dir]):has(> li:first-child:is([dir="ltr" i], .has-text-align-left, [align="left" i], [style*="text-align:left" i], [style*="text-align: left" i])) {
    direction: ltr;
    text-align: left;
  }

  #page-footer > :is(.l-section, .ilm-footer-shell) {
    padding-left: max(5px, env(safe-area-inset-left, 0px));
    padding-right: max(7px, env(safe-area-inset-right, 0px));
  }
}

/* Keep the theme's dropdown logic and links while styling its full-screen layout. */
@media screen {
  html:has(#page-header .ls-mobile-nav.type_mobile > .w-nav-control.active),
  body:has(#page-header .ls-mobile-nav.type_mobile > .w-nav-control.active) {
    overflow: hidden;
  }

  #page-header:has(.ls-mobile-nav.type_mobile > .w-nav-control.active) {
    z-index: 100000;
  }

  #page-header .l-subheader:has(.ls-mobile-nav.type_mobile > .w-nav-control.active) {
    transform: none;
    overflow: visible;
  }

  #page-header .ls-mobile-nav.type_mobile > .w-nav-list.level_1 {
    --ls-menu-bg: #f4f7fb;
    --ls-menu-card: #fff;
    --ls-menu-text: #18263a;
    --ls-menu-accent: #164ea4;
    --ls-menu-border: #d8e2ee;
    position: fixed !important;
    inset: 0 !important;
    z-index: 100;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: none;
    min-height: 0;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    overscroll-behavior: contain;
    padding: max(14px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: var(--ls-menu-bg) !important;
    color: var(--ls-menu-text) !important;
    visibility: hidden;
    overflow: auto;
    overflow-x: hidden;
  }

  html[data-ls-theme="dark"] #page-header .ls-mobile-nav.type_mobile > .w-nav-list.level_1,
  html:not([data-ls-theme]).us-color-scheme-on #page-header .ls-mobile-nav.type_mobile > .w-nav-list.level_1 {
    --ls-menu-bg: #161b22;
    --ls-menu-card: #202833;
    --ls-menu-text: #e6edf3;
    --ls-menu-accent: #a8c7ff;
    --ls-menu-border: #414e60;
  }

  #page-header .ls-mobile-nav.type_mobile > .w-nav-control.active + .w-nav-list.level_1 {
    visibility: visible;
  }

  #page-header .ls-mobile-nav.type_mobile > .w-nav-list.level_1 > li {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto 8px;
    box-sizing: border-box;
    list-style: none;
  }

  #page-header .ls-mobile-nav.type_mobile .menu-item.level_1 {
    border: 1px solid var(--ls-menu-border);
    border-radius: 12px;
    background: var(--ls-menu-card);
    overflow-wrap: anywhere;
  }

  #page-header .ls-mobile-nav.type_mobile .w-nav-anchor:not(.w-btn) {
    min-height: 48px;
    box-sizing: border-box;
    padding: 12px;
    text-align: right;
    color: var(--ls-menu-text) !important;
  }

  #page-header .ls-mobile-nav.type_mobile .menu-item-has-children > .w-nav-anchor:not(.w-btn) .w-nav-title {
    padding-left: 44px;
  }

  #page-header .ls-mobile-nav.type_mobile .menu-item-has-children > .w-nav-anchor:not(.w-btn) .w-nav-arrow {
    top: 0;
    left: 0;
    right: auto;
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 48px;
    padding: 0;
    color: var(--ls-menu-accent);
  }

  #page-header .ls-mobile-nav.type_mobile .w-nav-list:not(.level_1) {
    direction: rtl;
    text-align: right;
    margin: 0 12px 6px 0;
    padding: 0;
    border-inline-start: 1px solid var(--ls-menu-border);
    background: transparent !important;
    color: var(--ls-menu-text) !important;
  }

  #page-header .ls-mobile-nav.type_mobile .w-nav-list:not(.level_1) .w-nav-anchor:not(.w-btn) {
    padding-block: 10px;
  }

  #page-header .ls-mobile-nav.type_mobile :is(.current-menu-item, .current-menu-ancestor) > .w-nav-anchor:not(.w-btn),
  #page-header .ls-mobile-nav.type_mobile .w-nav-anchor:not(.w-btn):hover {
    color: var(--ls-menu-accent) !important;
  }

  #page-header .ls-mobile-nav.type_mobile :is(.w-nav-anchor, .w-nav-arrow, .ls-mobile-nav-close):focus-visible {
    outline: 2px solid var(--ls-menu-accent);
    outline-offset: -3px;
  }

  #page-header .ls-mobile-nav.type_mobile .w-nav-list.level_1 > .w-nav-close:has(.ls-mobile-nav-close) {
    position: sticky;
    top: 0;
    right: auto;
    order: -1;
    display: flex;
    justify-content: flex-end;
    z-index: 2;
    opacity: 1;
    padding: 0 0 8px;
    background: var(--ls-menu-bg);
  }

  #page-header .ls-mobile-nav.type_mobile .w-nav-close:has(.ls-mobile-nav-close)::before {
    content: none;
  }

  #page-header .ls-mobile-nav.type_mobile .ls-mobile-nav-close {
    min-height: 44px;
    padding: 6px 14px;
    border: 1px solid var(--ls-menu-border);
    border-radius: 10px;
    background: var(--ls-menu-card);
    color: var(--ls-menu-text);
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
  }

  @media (prefers-reduced-motion: reduce) {
    #page-header .ls-mobile-nav.type_mobile .w-nav-list.level_1 {
      transition: none;
    }
  }
}
