/* Shared mobile hamburger and cream nav sheet. Same breakpoint as the homepage. */
/* Desktop (601px and up) keeps the inline text links. */
html #nav,html #nav .wrap,html #nav .nav-in{width:100%;box-sizing:border-box}
html #nav .nav-in{display:flex;align-items:center}
html #nav .nav-end{display:flex;align-items:center;gap:18px;margin-left:auto!important;margin-right:0;flex-wrap:wrap;justify-content:flex-end}
html #nav .nav-end .nav-signin{margin-left:0;white-space:nowrap}
html #nav .nav-end .nav-link.is-current,
html[data-nav] #nav .nav-end .nav-link.is-current{
  color:var(--accent,#ff320a)!important;
  opacity:1;
  cursor:default;
  font-weight:650;
}
html[data-nav="orange"] #nav .nav-end .nav-link.is-current{
  color:#f5f2df!important;
}
html #nav .nav-menu-btn{display:none}
@media (max-width:900px){html #nav .nav-end{gap:10px}html #nav .nav-end .nav-signin{font-size:calc(12px * var(--dz-font-scale, 1))}}
/* Phone: replace the inline links with a hamburger. */
@media (max-width:600px){
  html #nav .nav-end{gap:0;flex-wrap:nowrap}
  html #nav .nav-end > .nav-signin{display:none!important}
  html #nav .nav-menu-btn{
    display:grid;place-items:center;margin-left:auto;
    width:44px;height:44px;padding:0;border:0;background:transparent;
    color:#161616;cursor:pointer;-webkit-tap-highlight-color:transparent
  }
  html[data-nav="dark"] #nav .nav-menu-btn{color:#f5f2df}
  html[data-nav="orange"] #nav .nav-menu-btn{color:#161616}
  html #nav .nav-menu-btn:focus-visible{outline:2px solid #ff320a;outline-offset:3px;border-radius:8px}
  html #nav .nav-menu-bars,
  html #nav .nav-menu-bars:before,
  html #nav .nav-menu-bars:after{
    display:block;width:20px;height:2px;background:currentColor;border-radius:1px
  }
  html #nav .nav-menu-bars{position:relative}
  html #nav .nav-menu-bars:before,
  html #nav .nav-menu-bars:after{content:"";position:absolute;left:0}
  html #nav .nav-menu-bars:before{top:-6px}
  html #nav .nav-menu-bars:after{top:6px}
}

/* Cream menu panel (shared .dz-sheet, slides in from the right). */
.dz-nav-body{padding-top:48px}
.dz-nav-menu{display:flex;flex-direction:column;gap:0;margin:20px 0 0}
.dz-nav-menu .dz-nav-link{
  display:flex;align-items:center;min-height:52px;padding:0;
  border-bottom:0;
  color:var(--ink,#161616);text-decoration:none;
  font-size:calc(18px * var(--dz-font-scale, 1));font-weight:650;letter-spacing:-.02em;line-height:1.2
}
.dz-nav-menu .dz-nav-link:hover,
.dz-nav-menu .dz-nav-link:focus-visible{color:var(--accent,#ff320a)}
.dz-nav-menu .dz-nav-link:focus-visible{outline:2px solid var(--accent,#ff320a);outline-offset:4px}
.dz-nav-menu .dz-nav-link.is-current{opacity:1;cursor:default;font-weight:650;color:var(--accent,#ff320a)}
/* Smooth open/close: fade + slide, 280ms ease-out. */
.dz-sheet[data-sheet="nav"] .dz-sheet-backdrop{
  opacity:0;
  transition:opacity 280ms ease-out
}
.dz-sheet[data-sheet="nav"].is-open .dz-sheet-backdrop{
  opacity:1;
  animation:dz-nav-backdrop-in 280ms ease-out
}
.dz-sheet[data-sheet="nav"] .dz-sheet-panel{
  opacity:0;
  transform:translate3d(100%,0,0);
  transition:transform 280ms ease-out,opacity 280ms ease-out
}
.dz-sheet[data-sheet="nav"].is-open .dz-sheet-panel{
  opacity:1;
  transform:none;
  animation:dz-nav-panel-in 280ms ease-out
}
@keyframes dz-nav-panel-in{
  from{opacity:0;transform:translate3d(100%,0,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes dz-nav-backdrop-in{
  from{opacity:0}
  to{opacity:1}
}
@media (prefers-reduced-motion:reduce){
  .dz-sheet[data-sheet="nav"] .dz-sheet-panel,
  .dz-sheet[data-sheet="nav"] .dz-sheet-backdrop{
    transition:none!important;animation:none!important
  }
  .dz-sheet[data-sheet="nav"].is-open .dz-sheet-panel{opacity:1;transform:none}
  .dz-sheet[data-sheet="nav"].is-open .dz-sheet-backdrop{opacity:1}
}
html[data-reduce-motion="true"] .dz-sheet[data-sheet="nav"] .dz-sheet-panel,
html[data-reduce-motion="true"] .dz-sheet[data-sheet="nav"] .dz-sheet-backdrop{
  transition:none!important;animation:none!important
}
html[data-reduce-motion="true"] .dz-sheet[data-sheet="nav"].is-open .dz-sheet-panel{opacity:1;transform:none}

/* No gray tap flash. Keep a visible outline for keyboard focus. */
a,button,[role="button"],input[type="button"],input[type="submit"],input[type="reset"],summary,label,
.nav-menu-btn,.dz-nav-link,.dz-sheet-close{
  -webkit-tap-highlight-color:transparent;
  tap-highlight-color:transparent
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible){
  outline:none
}
.dz-nav-menu .dz-nav-link{-webkit-tap-highlight-color:transparent}

/* While the menu is open, hide the a11y launcher so it cannot sit on the panel. */
html:has(.dz-sheet[data-sheet="nav"].is-open) .dz-a11y-launcher{
  opacity:0!important;pointer-events:none!important;visibility:hidden!important
}
