.materials-site { --ma-bar-height: 3.25rem; }
.ma-field-bar {
  position: sticky;
  top: var(--mat-header-height);
  z-index: 14;
  background: #fff;
  box-shadow: 0 1px #d6e2eb;
}
.ma-field-links {
  display: flex;
  gap: clamp(20px, 3vw, 46px);
  height: var(--ma-bar-height);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.ma-field-links a {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 3px 1px 0;
  border-bottom: 3px solid transparent;
  color: #344f65;
  font-size: 16px;
  white-space: nowrap;
}
.ma-field-links a:hover { color: var(--mat-blue); }
.ma-field-links a[aria-current] { border-color: var(--mat-blue); color: var(--mat-blue); font-weight: 650; }
.ma-field-links a:focus-visible { outline: 2px solid var(--mat-blue); outline-offset: -2px; }
html:has(.ma-field-bar) { scroll-padding-top: 0; }
.materials-site:has(.ma-field-bar) main [id] { scroll-margin-top: calc(var(--mat-header-height) + var(--ma-bar-height) + 10px); }
.ma-browser {
  background: #f2f6fa;
  padding: clamp(18px, 2.2vw, 32px) 0 clamp(50px, 6vw, 92px);
}
.ma-layout {
  display: grid;
  grid-template-columns: clamp(180px, 18.5vw, 244px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 3.1vw, 46px);
}
.ma-rail {
  position: sticky;
  top: calc(var(--mat-header-height) + var(--ma-bar-height) + 10px);
  z-index: 8;
  min-width: 0;
}
.ma-switcher {
  background: #fff;
  border: 1px solid var(--mat-line);
  max-height: calc(100dvh - var(--mat-header-height) - var(--ma-bar-height) - 26px);
  overflow: auto;
}
.ma-switcher summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 10px;
  padding: 16px 18px;
  background: #133757;
  color: white;
  font-weight: 650;
  font-size: 17px;
  line-height: 1.45;
}
.ma-switcher summary::-webkit-details-marker { display: none; }
.ma-switcher summary::after {
  content: '';
  width: 7px;
  height: 7px;
  flex: none;
  margin-left: auto;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.ma-switcher[open] summary::after { transform: translateY(2px) rotate(225deg); }
.ma-switcher nav { display: grid; }
.ma-switcher nav a {
  display: flex;
  align-items: center;
  min-height: 49px;
  padding: 9px 17px;
  border-block-end: 1px solid #dee8ef;
  border-inline-start: 3px solid transparent;
  color: #24435c;
  line-height: 1.55;
  font-size: 15px;
}
.ma-switcher nav a:last-child { border-block-end: 0; }
.ma-switcher nav a:hover, .ma-switcher nav a[aria-current] { background: #e8f1fa; color: #1055a8; }
.ma-switcher nav a[aria-current] { border-inline-start-color: #1161c2; font-weight: 650; }
.ma-panels, .ma-panel { min-width: 0; }
.ma-panel {
  background: white;
  border: 1px solid var(--mat-line);
  padding-bottom: clamp(24px, 3vw, 42px);
}
.ma-panel[hidden] { display: none !important; }
/* Native links can select an individual panel before scripts run and with scripts disabled. */
@supports selector(:has(*)) {
  .ma-browser:not([data-ma-ready]) .ma-panel:not(:first-child):not(:target),
  .ma-browser:not([data-ma-ready]) .ma-panels:has(> :target) > :first-child:not(:target) { display: none; }
}
.ma-panel-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #eaf1f6; }
.ma-scene { position: relative; min-height: 235px; margin: 0; background: #dce6ec; }
.ma-scene img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.ma-scene figcaption { position: absolute; bottom: 0; left: 0; padding: 4px 10px; font-size: 12px; line-height: 1.6; color: white; background: #132a43ba; }
.ma-intro-copy { padding: clamp(23px, 3vw, 45px); align-self: center; }
.ma-intro-copy h2 { margin: 0; color: #143a5c; font-size: clamp(27px, 2.5vw, 42px); line-height: 1.35; letter-spacing: -.025em; }
.ma-intro-copy p, .ma-product-info p, .ma-checks dd { margin: 0; font-size: 15px; line-height: 1.85; color: #425c71; }
.ma-intro-copy .ma-uses { margin: 9px 0 13px; font-weight: 650; color: #234b70; }
.ma-shop-link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 8px; font-size: 14px; font-weight: 650; color: #145795; text-decoration: underline; text-underline-offset: 4px; }
.ma-topic { margin: clamp(24px, 3vw, 40px) clamp(18px, 3vw, 44px) 0; }
.ma-topic h3 { margin: 0 0 15px; color: #153a5c; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.5; }
.ma-products { display: grid; gap: 13px; }
.ma-product {
  display: grid;
  grid-template-columns: clamp(112px, 14vw, 172px) minmax(0, 1fr);
  border: 1px solid #d9e3eb;
}
.ma-product-photo {
  position: relative;
  margin: 0;
  background: #f1f4f7;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ma-product-photo img { display: block; width: 100%; height: 107px; object-fit: contain; }
.ma-product-photo figcaption { padding: 3px 8px 6px; text-align: center; font-size: 11px; color: #556b7f; line-height: 1.5; }
.ma-product-info { align-self: center; padding: 15px clamp(14px, 2vw, 25px); }
.ma-product-info h4 { color: #193b5a; font-size: 19px; line-height: 1.4; margin: 0 0 5px; }
.ma-product-info .ma-item-spec { font-size: 13px; color: #326285; margin: 4px 0 5px; }
.ma-family-alternatives { margin-top: 14px; border-top: 1px solid var(--mat-line); }
.ma-family-alternatives summary { min-height: 44px; padding: 9px 0; color: #24597e; cursor: pointer; font-size: 15px; font-weight: 600; }
.ma-product-info h4 a:hover { color: #0957a6; }
.ma-product-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
.ma-product-actions a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; color: #145795; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.ma-checks { margin: 0; }
.ma-checks > div { display: grid; grid-template-columns: minmax(90px, .26fr) 1fr; gap: 10px 24px; border-top: 1px solid #dce5ed; padding: 14px 0; }
.ma-checks dt { margin: 0; color: #254965; font-weight: 650; line-height: 1.85; }
.ma-browser :is(a, summary):focus-visible { outline: 2px solid #1472c9; outline-offset: -2px; }
@media (max-width: 850px) {
  .materials-site { --ma-bar-height: 3rem; }
  .ma-field-links a { font-size: 15px; }
  .ma-layout { display: block; }
  .ma-rail { display: none; }
}
@media (max-width: 630px) {
  .ma-panel-intro { grid-template-columns: minmax(0, 1fr); }
  .ma-scene { min-height: 0; aspect-ratio: 1.95; }
  .ma-intro-copy { padding: 20px; }
  .ma-product { grid-template-columns: minmax(82px,.42fr) minmax(0,1fr); }
  .ma-product-info { padding: 12px; }
  .ma-product-photo img { height: 85px; }
  .ma-product-info h4 { font-size: 17px; }
  .ma-product-info p, .ma-checks dd { font-size: 14px; }
  .ma-product-actions { gap: 4px 12px; }
  .ma-product-actions a { min-height: 40px; }
  .ma-checks > div { grid-template-columns: 1fr; gap: 3px; }
}
