/* Shared navigation only. Keep current-page styling independent of geometry. */
@font-face {
  font-family: PortfolioNavigationSans;
  src: url('../fonts/IBMPlexSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: PortfolioNavigationSerif;
  src: url('../fonts/Martel-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-display: swap;
}
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}
/* :root keeps the header offset stronger than the legacy .body.work rule. */
:root[data-portfolio-navigation] body { padding-top: 72px; }
:root[data-portfolio-navigation] body main.main-wrapper { margin-top: 0; }
:root[data-portfolio-navigation] body [id] { scroll-margin-top: 88px; }
.portfolio-header,
.portfolio-header * ,
.portfolio-breadcrumb,
.portfolio-breadcrumb * { box-sizing: border-box; }
.portfolio-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 0 clamp(16px, 4vw, 40px);
  background: #0a0a0a;
  box-shadow: 0 1px 0 #686868;
  color: #f4f4f4;
  font: 300 16px/1.5 PortfolioNavigationSans, Arial, sans-serif;
}
.portfolio-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  max-width: 64rem;
  margin: 0 auto;
}
.portfolio-header .portfolio-brand {
  position: relative;
  top: 4px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 48px;
  margin: 0;
  padding: 6px 0;
  color: #f4f4f4;
  font: 200 20px/1.5 PortfolioNavigationSerif, Georgia, serif;
  text-decoration: none;
}
.portfolio-header .portfolio-nav-list {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.portfolio-header .portfolio-nav-list > li { margin: 0; }
.portfolio-header .portfolio-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 12px;
  color: #f4f4f4;
  font: inherit;
  text-decoration: none;
}
.portfolio-header .portfolio-nav-link[aria-current]::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  background: #20c7ac;
  content: "";
}
.portfolio-header a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.portfolio-header .portfolio-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 8px;
  min-width: 80px;
  min-height: 48px;
  padding: 8px;
  border: 1px solid #686868;
  border-radius: 0;
  background: #0a0a0a;
  color: #f4f4f4;
  font: inherit;
  cursor: pointer;
}
.portfolio-menu-toggle svg { width: 18px; height: 18px; }
.portfolio-header [hidden] { display: none !important; }
.portfolio-header a:focus-visible,
.portfolio-header button:focus-visible,
.portfolio-breadcrumb a:focus-visible {
  outline: 2px solid #f4f4f4;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #0a0a0a;
}
.portfolio-breadcrumb {
  padding: 12px clamp(16px, 4vw, 40px);
  background: #242424;
  color: #ddd;
  font: 300 14px/1.5 PortfolioNavigationSans, Arial, sans-serif;
}
.portfolio-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.portfolio-breadcrumb li {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}
.portfolio-breadcrumb li + li::before {
  flex: none;
  width: 6px;
  height: 6px;
  margin: 0 12px 0 10px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  content: "";
}
.portfolio-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.portfolio-breadcrumb span {
  display: inline-block;
  min-width: 0;
  padding: 8px 0;
  overflow-wrap: anywhere;
}
/* Utility pages use a flex main: keep the breadcrumb outside that flex layout. */
:root[data-portfolio-navigation] body > .portfolio-breadcrumb { margin: 0; }
@media (max-width: 700px) {
  .portfolio-header { padding: 0 16px; }
  .portfolio-header__inner { gap: 12px; }
  .portfolio-header .portfolio-brand {
    flex-shrink: 1;
    min-width: 0;
    font-size: 18px;
  }
  .portfolio-primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    padding: 8px 16px 16px;
    background: #0a0a0a;
  }
  .portfolio-header .portfolio-nav-list { display: block; }
  .portfolio-header .portfolio-nav-link { justify-content: flex-start; }
  .portfolio-header .portfolio-nav-link[aria-current]::after {
    right: auto;
    width: 32px;
  }
  .portfolio-breadcrumb { padding-top: 8px; padding-bottom: 8px; }
}
@media print {
  :root[data-portfolio-navigation] body { padding-top: 0; }
  .portfolio-header { position: static; }
  .portfolio-header .portfolio-menu-toggle { display: none; }
  .portfolio-header .portfolio-primary-nav[hidden] { display: block !important; }
  .portfolio-primary-nav { position: static; }
}
