/* F2 (2026-11-05): final fixes from the unified test. Literals and existing tokens only. Scope global. */

/* 1. Header rhythm (>=992px). The chevron toggle is a 44px box with a 10px caret centred in it, so the caret ends 27px after the item text (measured box: text right = toggle left). Visible gap after a chevron item = nav gap + 17px. Non-chevron items get padding-right 17px so their visible gap matches. The last item gets none (no following gap), so the nav box stays centred. */
@media (min-width: 992px) {
  html body #brx-header #brxe-noa29x ul.bricks-nav-menu[id^="menu-ics-main"] > li:not(.menu-item-has-children):not(:last-child) {
    padding-right: 17px !important;
  }
}

/* 2. Nested container: a .ics-container inside another container fills its parent instead of insetting again. */
html body .brxe-container:not(.ics-container) .ics-container,
html body .ics-container .ics-container {
  width: 100%;
  max-width: none;
}

/* 3. EN mission stage (page 2903): room for the longer EN copy. Base section padding-bottom is 0 !important (ics-vision.css), so this only adds space. */
body.page-id-2903 #mis-s3 {
  padding-bottom: calc(var(--sp-3xl) + 2rem) !important;
}
body.page-id-2903 #mis-s3 #vs-stage {
  overflow: visible !important;
}

/* H27 footer tear (owner 2026-11-05, ve-chung-toi stub above footer): one tokenised full-width tear at every breakpoint; footer paints above page bottom padding. Sizes match desktop clamp (no 32px phone override). */
html:root { --h27-footer-tear: clamp(18px, 9vw, 40px); }
html body #brxe-05pfln#brxe-05pfln {
  background-size: 100% var(--h27-footer-tear), 100% calc(100% - var(--h27-footer-tear) + 1px) !important;
  background-position: top center, bottom center !important;
  position: relative !important;
  z-index: 2 !important;
}

/* H120 (VI only; EN footer keeps the H27 edge until the owner approves VI): design edge svg at natural aspect, black body starts below the deepest notch (3.55vw). */
html:not([lang^="en"]) body #brxe-05pfln#brxe-05pfln {
  background-size: 100% auto, 100% calc(100% - 4.2vw) !important;
}
