/* Site header: full viewport width, sticky, content aligned with the page sections.
   Every header rule lives here; it overrides the imported styles in original.css. */
:root { --header-h: 72px; }

main [id], section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: block;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: #091015;
  color: #fff;
  border-bottom: 1px solid #ffffff14;
}
.header-inner {
  max-width: 1480px;
  height: var(--header-h);
  margin: 0 auto;
  padding-inline: 44px;
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Logo wordmark */
.header .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #fff;
  font: italic 950 34px/1 Arial, sans-serif;
  letter-spacing: -.07em;
}
.header .slash { width: 16px; height: 32px; margin-right: 11px; vertical-align: 0; }
.header .logo sup { align-self: flex-start; margin: 2px 0 0 3px; font-size: 9px; letter-spacing: 0; }

/* Navigation */
.header .nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  font-size: var(--fs-small);
  font-weight: 600;
}
.header .nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 7px;
  color: #c9d1d8;
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.header .nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.header .nav a:hover { color: #fff; background: #ffffff0d; }
.header .nav a[aria-current] { color: #fff; }
.header .nav a:hover::after, .header .nav a[aria-current]::after { transform: scaleX(1); }

/* Actions */
.tools { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: inherit; }
.header-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .15s;
}
.header-button:hover { background: #ffffff14; }
.header-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cartn {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  width: auto;
  height: 18px;
  margin: 0;
  padding: 0 5px;
  border-radius: 9px;
  font: 700 var(--fs-meta)/18px var(--font-body);
  vertical-align: 0;
}
.cartn[hidden] { display: none; }
.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-left: 12px;
  padding: 10px 18px;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font: 800 var(--fs-small)/1.2 var(--font-display);
  white-space: nowrap;
  transition: background-color .15s;
}
.header-cta:hover { background: #e95a00; }
.header a:focus-visible, .header button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.menu-toggle { display: none; }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1150px) {
  .header-inner { gap: 20px; padding-inline: 28px; }
  .header .nav a { padding-inline: 10px; }
  .header .nav a::after { left: 10px; right: 10px; }
}

/* Below 1024 px the navigation moves into a drop-down panel. */
@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .header-inner { gap: 12px; padding-inline: 20px; }
  .header .logo { font-size: 28px; }
  .header .slash { width: 13px; height: 26px; margin-right: 8px; }
  .menu-toggle { display: grid; }
  .header-cta { display: none; }
  .header .nav { display: none; }
  .header .nav.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 6px 20px 18px;
    background: #091015;
    border-bottom: 1px solid #ffffff14;
    box-shadow: 0 18px 30px #00000059;
    font-size: var(--fs-body);
  }
  .header .nav.open a { padding: 15px 4px; border-radius: 0; border-bottom: 1px solid #ffffff12; }
  .header .nav.open a:last-child { border-bottom: 0; }
  .header .nav.open a::after { display: none; }
  .header .nav.open a:hover { background: transparent; }
  .header .nav.open a[aria-current] { color: var(--orange); }
}
@media (max-width: 600px) {
  .header-inner { padding-inline: 16px; }
  .tools { gap: 0; }
  .header-button { width: 40px; height: 40px; }
  .header .nav.open { padding-inline: 16px; }
}
