/* Shared local typography. Use role, rather than template, to select each size. */
:root {
  --fm-paper: #F4F6F8;
  --fm-ink: #1A1D21;
  --fm-petrol: #0E3A5B;
  --fm-line: #dce5ed;
  --fm-radius: 8px;
  --fm-section-space: clamp(38px, 5vw, 76px);
  --fm-content-width: 1280px;
  --fm-type-hero: clamp(34px, 3.65vw, 56px);
  --fm-type-display: clamp(33px, 4.8vw, 70px);
  --fm-type-section: clamp(28px, 2.65vw, 42px);
  --fm-type-card: clamp(20px, 1.65vw, 26px);
  --fm-type-lead: clamp(16px, 1.45vw, 21px);
  --fm-type-copy: clamp(15px, 1.18vw, 18px);
  --fm-type-control: clamp(14px,1.08vw,16px);
  --fm-type-meta: 13px;
}
#brx-content :is(h1,#brxe-wnvfjo,#brxe-138e85,#brxe-fs0005,#brxe-fc0005,#brxe-fd0005,#brxe-wbihag,#brxe-rndtvs,#brxe-bns005),
#brx-content [data-fm-catalog-family] :is(#brxe-nglrti,#brxe-daac72) {
  font-size: var(--fm-type-hero) !important;
  line-height: 1.08 !important;
  text-wrap: balance;
}
#brx-content :is(.fm-sol-project-copy,.fm-purchase-about,.fm-purchase-confirm) p {
  max-width: 70ch;
}
#brx-content #brxe-cnqzgw #brxe-qqhwtk {
  font-size: var(--fm-type-hero) !important;
  line-height: 1.08 !important;
}
#brx-content h2,
#brx-content :is(#brxe-cnqzgw,#brxe-fs0001) h2 {
  font-size: var(--fm-type-section) !important;
  line-height: 1.15 !important;
}
#brx-content h3,
#brx-content :is(.brxe-mgltsh,.brxe-fd1716) h2,
#brx-content .fm-family-card h3 {
  font-size: var(--fm-type-card) !important;
  line-height: 1.22 !important;
}
#brx-content :is(h1,h2,h3),
#brx-footer :is(h2,h3) {
  font-family: Barlow, sans-serif !important;
  font-weight: 650 !important;
}
#brx-content :is(p,li,.brxe-text-basic,dt,dd) {
  font-family: Inter, sans-serif;
  overflow-wrap: break-word;
}
#brx-content :is(p,.brxe-text-basic) {
  font-size: var(--fm-type-copy);
  line-height: 1.65;
}
body:not(.home) #brx-content :is(.fm-family-card h3,.fm-contact-actions strong,.fm-stock-tab-copy strong) {
  color: var(--fm-petrol);
  text-wrap: balance;
}
body:not(.home) #brx-content :is(.fm-inner > h2,.fm-contact-visit h2,.fm-social-section h2) {
  text-wrap: balance;
}
body:not(.home) #brx-content :is(.fm-hero p,.fm-inner > p,.fm-contact-visit p) { text-wrap: pretty; }
#brx-content :is(.fm-hero p,.fm-hero .fm-lead,#brxe-mgaxyc,#brxe-fmds116,#brxe-fmds154,#brxe-flyzcb,#brxe-4b5cb7,#brxe-bhygid) {
  font-size: var(--fm-type-lead) !important;
  line-height: 1.62 !important;
}
#brx-content :is(#brxe-xupvdq,.fm-eyebrow,.fm-kicker:not(h1,h2,h3,h4,h5,h6),.fm-empty-kicker,.fm-family-eyebrow,
  #brxe-fmbr116,#brxe-fmbr154,.fm-selected-filters,figcaption,.bricks-image-caption,small,
  #brxe-ay0002,.fm-about-credit,.fm-stock-notice,.fm-service-note) {
  font-size: var(--fm-type-meta) !important;
  line-height: 1.5 !important;
}
#brx-content :is(.brxe-button,.fm-button,.fm-catalog-contact-actions a,.fm-stock-button,.fm-gallery-open,
  .fm-stock-filter-form label,.fm-service-form label,.fm-filter-intro,.fm-category-tree) {
  font-size: var(--fm-type-control) !important;
  line-height: 1.4;
}
#brx-content :is(input:not([type=checkbox],[type=radio],[type=hidden]), select, textarea) { font-size: 16px !important; }
#brx-content :is(th,td) { font-size: var(--fm-type-control); }
#brx-footer #brxe-micinx h2 { font-size: clamp(25px,2.1vw,34px); }
#brx-footer #brxe-micinx h3 { font-size: var(--fm-type-card); }
#brx-footer #brxe-micinx :is(a,.brxe-text-basic) { font-size: var(--fm-type-meta); }
#brx-footer #brxe-micinx {
  background-color: var(--fm-ink);
  border-top: 1px solid rgb(122 134 150 / .38);
}
#brxe-hujbun .bricks-nav-menu :is(.fm-mega-root,.fm-sector-nav-item > a) {
  font-size: clamp(16px, 1.25vw, 18px) !important;
}
#brxe-hujbun :is(.fm-mega-all,.fm-mega-terms a,.fm-mega-note) { font-size: var(--fm-type-meta) !important; }

/* Bring the same quiet framing to the catalog, solutions and image-led detail. */
#brx-content :is(.brxe-mgltsh,.brxe-fd1716,.fm-family-card,.fm-sol-sectors a,.fm-product-media > figure) {
  border-radius: 12px !important;
  border-color: #dce5ed !important;
}
#brx-content :is(.brxe-mgltsh,.brxe-fd1716) {
  gap: 11px !important;
}
#brx-content :is(.brxe-mgltsh,.brxe-fd1716) :is(.brxe-inctja,.brxe-c4095e) {
  font-weight: 600 !important;
  letter-spacing: -.01em;
}
#brx-content :is(.brxe-cwijyf,.brxe-5ad6c3) {
  border-radius: 6px;
  min-height: 44px;
}
#brx-content .fm-sol-sectors a { font-weight: 600; }
#brx-content :is(.brxe-mgltsh,.brxe-fd1716,.fm-family-card,.fm-sol-sectors a,.fm-product-media > figure) { box-shadow: 0 4px 12px #13283a12; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  #brx-content :is(.brxe-mgltsh,.brxe-fd1716,.fm-family-card,.fm-sol-sectors a) {
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
  }
  #brx-content :is(.brxe-mgltsh,.brxe-fd1716,.fm-family-card,.fm-sol-sectors a):is(:hover,:focus-within) {
    transform: perspective(950px) translateY(-2px) rotateX(1deg);
    border-color: #8fa6b9 !important;
    box-shadow: inset 0 1px #e3f4fcaa,0 9px 22px #13283a28;
  }
}

/* Expand the native search form from its header trigger. */
#brxe-iqlygc { position: relative; }
#brxe-iqlygc .bricks-search-overlay {
  position: absolute;
  inset: 50% 0 auto auto;
  width: min(410px, 42vw);
  height: auto;
  padding: 5px 43px 5px 5px;
  border: 1px solid #82b5ce94;
  border-radius: 24px;
  background: linear-gradient(128deg,transparent 37%,#80c0e03d 50%,transparent 62%) 100% 0 / 195% 100% no-repeat,linear-gradient(150deg,#24485cec,#0b2334ed 75%);
  background-position: var(--fm-popup-travel, 100%) 0;
  backdrop-filter: blur(5px) saturate(110%);
  color: #f4f6f8;
  box-shadow: inset 0 1px #b9dced85,inset 0 -2px #06141d66,0 8px 24px #06141e52;
  text-align: start;
  transform: perspective(850px) translateY(-50%) scaleX(.72) rotateY(-5deg);
  transform-origin: right center;
  transition: opacity .18s ease, transform .22s ease, visibility .22s;
}
#brxe-iqlygc .bricks-search-overlay.show { transform: translateY(-50%) scaleX(1); }
#brxe-iqlygc .bricks-search-overlay::after { display: none; }
#brxe-iqlygc .bricks-search-inner { align-items: stretch; height: auto; }
#brxe-iqlygc .bricks-search-overlay .title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#brxe-iqlygc .bricks-search-overlay .close {
  position: absolute;
  inset: 50% 0 auto auto;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  color: #d7e7f2;
  font: 500 23px/1 Inter,sans-serif;
  border-radius: 50%;
}
#brxe-iqlygc .bricks-search-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px; }
#brxe-iqlygc .bricks-search-form input[type=search] {
  min-width: 0;
  height: 44px;
  padding: 8px 12px;
  color: #f4f6f8;
  background: #061b2a68;
  border: 0;
  border-radius: 12px;
  box-shadow: inset 0 1px 5px #050e17a6,inset 0 -1px #91b7d176;
  color-scheme: dark;
  font: 400 16px/1.3 Inter,sans-serif;
  text-align: start;
}
#brxe-iqlygc .bricks-search-form input[type=search]::placeholder { color: #c0d2df; opacity: 1; }
#brxe-iqlygc .bricks-search-form .fm-search-submit:hover { background: #70acc347; }
#brxe-iqlygc .bricks-search-form .fm-search-submit {
  width: auto;
  min-width: 48px;
  height: 44px;
  padding: 0 12px;
  border-radius: 20px;
  background: #70acc329;
  color: #f4f6f8 !important;
  font: 600 14px/1.2 Inter,sans-serif;
}
#brxe-iqlygc :is(.toggle,.bricks-search-overlay :is(button,input)):focus-visible {
  outline: 2px solid #8dc7e4;
  outline-offset: -2px;
}
@media (max-width: 767px) {
  :root {
    --fm-type-hero: clamp(32px, 8vw, 45px);
    --fm-type-display: clamp(29px, 8.5vw, 49px);
  }
  #brxe-iqlygc .bricks-search-overlay {
    position: fixed;
    inset: calc(var(--fm-menu-top, var(--fm-header-height, 64px)) + 8px) 12px auto auto;
    width: min(410px, calc(100% - 24px));
    transform: scaleX(.15);
  }
  #brxe-iqlygc .bricks-search-overlay.show { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #brxe-iqlygc .bricks-search-overlay { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  #brxe-iqlygc .bricks-search-overlay.show { animation: fm-popup-reflection 17s ease-in-out infinite; }
}
