/* Navigation only. Each page keeps its original palette, typography and content. */
html { scroll-padding-top: var(--atc-anchor-offset, 150px); }
header.atc-site-header { --atc-nav-height: 82px; height: auto; overflow: visible; }
.atc-site-header .atc-header-row {
  height: var(--atc-nav-height); min-height: var(--atc-nav-height);
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.atc-site-header .brand { flex: 0 1 auto; min-width: 0; }
.atc-site-header .brand > span:last-child { min-width: 0; }
/* Group identity stays the same on every product page. */
.brand .atc-brand-copy {
  display: block; min-width: 0; margin: 0; color: var(--text);
  font-size: inherit; line-height: 1.25; letter-spacing: 0; text-transform: none;
}
.brand .atc-brand-name {
  display: block; margin: 0; color: var(--text); font-size: 21px;
  font-weight: 800; letter-spacing: -.025em; line-height: 1.2; text-transform: none;
}
.brand .atc-brand-tagline {
  display: block; margin: 4px 0 0; color: var(--muted); font-size: 10px;
  font-weight: 600; letter-spacing: .025em; line-height: 1.5;
  text-transform: none; text-wrap: pretty;
}
.atc-site-header .brand { min-height: 44px; opacity: 1; }
.atc-site-header .atc-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.atc-site-header .atc-utility-action { display: none; }
.atc-site-header .atc-global-nav { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.atc-global-nav > a, .atc-products-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px;
  background: transparent; color: var(--text); opacity: 1; font: inherit;
  font-size: 14px; font-weight: 700; line-height: 1.4; cursor: pointer;
  text-decoration: none; transition: border-color .18s ease;
}
.atc-global-nav > a:hover, .atc-products-toggle:hover { color: var(--text); border-color: var(--line); }
.atc-global-nav > a[aria-current="page"], .atc-products-toggle[data-active="true"] { text-decoration: underline; text-underline-offset: 7px; }
.atc-products-toggle[aria-expanded="true"] { border-color: var(--text); }
.atc-products-toggle svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .18s ease; }
.atc-products-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.atc-site-header :is(a, button, summary):focus-visible {
  outline: 2px solid var(--text); outline-offset: 4px; border-radius: 8px;
}
.atc-product-panel {
  position: absolute; top: calc(var(--atc-nav-height) - 3px); left: 50%; transform: translateX(-50%);
  width: min(780px, calc(100% - 32px)); max-height: var(--atc-panel-room, calc(100dvh - var(--atc-nav-height) - 20px));
  overflow-y: auto; overscroll-behavior: contain; padding: 24px; z-index: 10;
  color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow);
}
.atc-product-panel[hidden], .atc-mobile-menu[hidden], .atc-mobile-products[hidden] { display: none !important; }
.atc-product-intro { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.atc-product-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.atc-product-group { min-width: 0; }
.atc-product-group h2 {
  font-family: inherit; color: var(--muted); font-size: 11px; font-weight: 750;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; margin: 0 0 8px; padding: 0 12px;
}
.atc-site-header .atc-product-link {
  position: relative; display: block; padding: 13px 12px; margin: 2px 0;
  border: 1px solid transparent; border-radius: 14px; color: var(--text);
  background: transparent; opacity: 1; text-align: left; text-decoration: none;
  white-space: normal; line-height: 1.5; transition: border-color .18s ease;
}
.atc-product-link strong { display: block; font-size: 15px; font-weight: 750; line-height: 1.4; }
.atc-product-link small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.65; font-weight: 450; color: var(--muted); }
.atc-site-header .atc-product-link:hover { color: var(--text); border-color: var(--text); }
.atc-product-link:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.atc-site-header .atc-product-link[aria-current="page"] { border-color: var(--line); }
.atc-site-header .atc-product-link[aria-current="page"]:hover { border-color: var(--text); }
.atc-current-page { display: inline-block; margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.atc-product-panel-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding-top: 14px; margin-top: 16px; border-top: 1px solid var(--line); }
.atc-site-header .atc-product-panel-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; color: var(--text); font-size: 12px; font-weight: 650; border: 0; }
.atc-product-panel-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.atc-section-bar { border-top: 1px solid var(--line); }
.atc-site-header .atc-section-row { display: flex; align-items: center; gap: 28px; min-height: 52px; }
.atc-section-label { flex-shrink: 0; color: var(--muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.atc-section-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 24px; min-width: 0; }
.atc-site-header .atc-section-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 0; color: var(--text); font-size: 12px; font-weight: 550; line-height: 1.4; }
.atc-section-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.atc-site-header .atc-menu-toggle { display: none; }
.atc-site-header .atc-mobile-menu { display: none; }
@media (min-width: 1600px) { .atc-site-header .atc-utility-action { display: inline-flex; } }
@media (max-width: 1199px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  html { scroll-padding-top: var(--atc-anchor-offset, 98px); }
  .atc-site-header .atc-global-nav, .atc-site-header .atc-section-bar { display: none; }
  .atc-site-header .atc-header-actions .atc-utility-action { display: none; }
  .atc-site-header .atc-menu-toggle {
    display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; padding: 0;
    border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
    box-shadow: inset 0 1px 0 var(--line); cursor: pointer;
  }
  .atc-menu-toggle svg { width: 22px; height: 22px; }
  .atc-site-header .atc-menu-toggle:hover { color: var(--text); border-color: var(--text); transform: none; }
  .atc-site-header .atc-menu-toggle::before { content: none; }
  .atc-site-header .atc-menu-toggle[aria-expanded="true"] { border-color: var(--text); }
  .atc-site-header .atc-mobile-menu {
    position: absolute; inset: calc(100% + 8px) 12px auto; width: auto; margin: 0; padding: 18px;
    max-height: var(--atc-menu-room, calc(100dvh - var(--atc-nav-height) - 24px)); overflow-y: auto; overscroll-behavior: contain;
    border: 1px solid var(--line); border-radius: 20px; background: var(--bg); color: var(--text);
    box-shadow: var(--shadow); opacity: 1; visibility: visible; transform: none; z-index: 10;
  }
  .atc-site-header .atc-mobile-menu.open { display: block; }
  .atc-mobile-top { display: flex; flex-direction: column; gap: 4px; }
  .atc-site-header .atc-mobile-menu .atc-mobile-top > a {
    display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border: 1px solid transparent;
    border-radius: 12px; color: var(--text); font-size: 14px; line-height: 1.4;
  }
  .atc-mobile-top > a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
  .atc-site-header .atc-mobile-menu .atc-mobile-top > a:hover { border-color: var(--text); color: var(--text); }
  .atc-mobile-product-wrap { grid-column: 1 / -1; }
  .atc-mobile-product-wrap > .atc-products-toggle { justify-content: space-between; width: 100%; text-align: left; }
  .atc-mobile-products { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .atc-mobile-products .atc-product-groups { gap: 18px; }
  .atc-mobile-products .atc-product-link { margin: 0; }
  .atc-mobile-products .atc-product-panel-footer { padding: 8px 12px 0; gap: 0 16px; }
  .atc-mobile-page-links { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .atc-mobile-page-links .atc-section-label { display: block; padding: 0 12px; margin-bottom: 8px; }
  .atc-mobile-page-links .atc-section-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .atc-site-header .atc-mobile-page-links .atc-section-links a { display: flex; padding: 12px; border: 0; font-weight: 550; }
  .atc-site-header .atc-mobile-contact { display: flex; align-items: center; min-height: 46px; margin-top: 14px; padding: 12px; color: var(--text); border-top: 1px solid var(--line); border-bottom: 0; font-size: 14px; }
  .atc-mobile-contact:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 760px) {
  header.atc-site-header { --atc-nav-height: 74px; }
  .atc-site-header .atc-header-row { width: calc(100% - 24px); gap: 12px; }
  .atc-site-header .atc-header-actions { gap: 8px; }
  .atc-site-header .atc-header-actions > a.btn, .atc-site-header .theme-mini { display: none; }
  .atc-site-header .brand { gap: 9px; }
  .atc-site-header .brand small, .atc-site-header .brand > span:last-child > span { font-size: 9px; letter-spacing: .06em; line-height: 1.45; }
  .atc-site-header .brand .atc-brand-name { font-size: 18px; }
  .atc-site-header .brand .atc-brand-tagline { font-size: 9px; letter-spacing: .015em; }
  .atc-mobile-products .atc-product-groups { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .atc-site-header *, .atc-site-header *::before { transition: none !important; }
}
