/* Canonical site chrome: one white header and the same two navigation rows
   on standard pages, project journals and legal pages. */
:root { --header-ink: #1d1b18; --header-line: rgba(29,27,24,.22); }

html, body { max-width: 100%; overflow-x: clip; }
.site-header {
  position: fixed !important;
  z-index: 120 !important;
  inset: 0 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center !important;
  width: 100% !important;
  height: 70px !important;
  min-height: 70px !important;
  padding: 3px 12px !important;
  background: #fff !important;
  color: var(--header-ink) !important;
  border-bottom: 1px solid var(--header-line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.site-header .brand-mark,
.site-header .brand-mark img {
  display: block !important;
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
  overflow: visible !important;
  filter: none !important;
}
.site-header .brand-mark { position: static !important; justify-self: start !important; }
.site-header .desktop-nav, .site-header .tg-head { display: none !important; }

/* Both normal and editorial pages use the same accessible three-line control. */
.site-header .menu-toggle,
.site-header .project-menu-toggle {
  position: absolute !important;
  top: 50% !important;
  right: 12px !important;
  z-index: 3 !important;
  display: flex !important;
  width: 38px !important;
  height: 38px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 5px !important;
  padding: 0 !important;
  transform: translateY(-50%) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--header-ink) !important;
  cursor: pointer !important;
}
/* Project pages have a legacy grid rule on this button; keep the hamburger
   vertical in the shared header just like the normal-page control. */
.site-header .project-menu-toggle {
  display: flex !important;
  flex-direction: column !important;
}
.site-header .menu-toggle i,
.site-header .menu-toggle::after,
.site-header .project-menu-toggle span {
  display: block !important;
  width: 26px !important;
  height: 1.5px !important;
  margin: 0 !important;
  background: currentColor !important;
  transform: none !important;
}
.site-header .menu-toggle span { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }

.site-header .lang-switch,
.site-header .story-lang-switch,
.site-header .legal-lang-switch {
  position: absolute !important;
  top: 50% !important;
  right: 66px !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
  color: var(--header-ink) !important;
  font: 10px/1 "Bodoni Moda", Georgia, serif !important;
  letter-spacing: .06em !important;
}
.site-header .lang-switch button,
.site-header .story-lang-switch button,
.site-header .legal-lang-switch a {
  padding: 3px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
.site-header .lang-switch button.active,
.site-header .story-lang-switch button.is-active,
.site-header .legal-lang-switch a[aria-current="page"] { border-bottom-color: currentColor !important; }
.site-header .lang-switch span,
.site-header .story-lang-switch span,
.site-header .legal-lang-switch span { opacity: .48 !important; }

/* Category row and project initials row are identical on all pages. */
.story-actions,
.quick-nav {
  position: fixed !important;
  z-index: 119 !important;
  top: 70px !important;
  right: 0 !important;
  left: 0 !important;
  display: flex !important;
  width: 100% !important;
  height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 5px 12px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid var(--header-line) !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.story-actions a,
.quick-nav a {
  display: inline-flex !important;
  flex: 0 1 360px !important;
  width: min(360px, calc((100vw - 40px) / 3)) !important;
  min-width: 0 !important;
  height: 34px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 8px !important;
  border: 1px solid #d5d3d0 !important;
  border-radius: 999px !important;
  background: #e9e9e7 !important;
  color: #1d1b18 !important;
  font: 500 11px/1.1 "Bodoni Moda", Georgia, serif !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.story-actions a[aria-current="page"],
.quick-nav a[aria-current="page"] { background: #bcbcbc !important; }
.story-actions a:hover, .story-actions a:focus-visible,
.quick-nav a:hover, .quick-nav a:focus-visible { background: #d3d3d1 !important; outline: 0 !important; }

.story-switcher,
.site-project-switcher {
  position: fixed !important;
  z-index: 119 !important;
  top: 114px !important;
  right: 0 !important;
  left: 0 !important;
  display: flex !important;
  width: 100% !important;
  height: 54px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(18px, 4vw, 38px) !important;
  padding: 4px 10px 6px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid var(--header-line) !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.story-switcher a,
.site-project-switcher a {
  display: inline-flex !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 1px solid #777 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #292929 !important;
  font: 400 13px/1 "Bodoni Moda", Georgia, serif !important;
  text-align: center !important;
  text-decoration: none !important;
}
.story-switcher a[aria-current="page"],
.site-project-switcher a[aria-current="page"] { background: #bcbcbc !important; border-color: #949494 !important; }

/* Standard pages receive both rows from script.js; keep their content below
   the shared chrome and suppress the old portfolio-local duplicate controls. */
body:not(.story-page) .subpage { padding-top: 168px !important; }
body:not(.story-page) .portfolio-launch__categories,
body:not(.story-page) .portfolio-launch__projects { display: none !important; }
body.menu-open .quick-nav,
body.menu-open .site-project-switcher,
body.project-menu-open .story-actions,
body.project-menu-open .story-switcher { display: none !important; pointer-events: none !important; }

@media (max-width: 700px) {
  .site-header { height: 70px !important; min-height: 70px !important; padding: 3px 10px !important; }
  .site-header .brand-mark, .site-header .brand-mark img { width: 112px !important; min-width: 112px !important; max-width: 112px !important; height: 64px !important; min-height: 64px !important; max-height: 64px !important; }
  .site-header .menu-toggle, .site-header .project-menu-toggle { right: 9px !important; width: 34px !important; height: 34px !important; }
  .site-header .menu-toggle i, .site-header .menu-toggle::after, .site-header .project-menu-toggle span { width: 24px !important; height: 1.5px !important; }
  .site-header .lang-switch, .site-header .story-lang-switch, .site-header .legal-lang-switch { right: 54px !important; font-size: 9px !important; }
  .story-actions, .quick-nav { top: 70px !important; height: 44px !important; gap: 6px !important; padding: 5px 8px !important; }
  .story-actions a, .quick-nav a { flex: 1 1 0 !important; width: auto !important; height: 34px !important; padding: 5px 4px !important; font-size: clamp(9px, 2.45vw, 11px) !important; }
  .story-switcher, .site-project-switcher { top: 114px !important; height: 54px !important; gap: clamp(16px, 5vw, 28px) !important; }
  .story-switcher a, .site-project-switcher a { flex-basis: 38px !important; width: 38px !important; min-width: 38px !important; height: 38px !important; font-size: 12px !important; }
  body:not(.story-page) .subpage { padding-top: 168px !important; }
}

/* Small package labels follow the same site typeface. */
html body .package-number { font-family: "Bodoni Moda", Georgia, serif !important; }
