/* Shared navigation, October 2026. Scoped so original page design stays intact. */
html { scroll-padding-top: 110px; }
:where(#books, #heroes, #finds) { scroll-margin-top: 12px; }
.site-header.topbar { padding: 20px 0; background: #241e19; box-shadow: 0 4px 18px #241e1914; }
.site-header .nav { display: flex; flex-direction: row; gap: 30px; align-items: center; justify-content: space-between; }
.site-header .brand { min-width: 210px; flex-shrink: 0; }
.site-header .brand-name { font-size: 32px; line-height: 1; }
.site-header .brand-sub { margin-top: 7px; font-size: 10px; letter-spacing: .18em; }
.site-header .menu { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 23px; margin-left: auto; }
.site-header .menu > a, .site-header .nav-more > summary { color: #fff8ed; font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; letter-spacing: 0; text-decoration: none; padding: 10px 0; }
.site-header .menu > a:hover, .site-header .nav-more > summary:hover { color: #e8c89e; }
.site-header .menu > a[aria-current="page"] { color: #e8c89e; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.site-header .menu .nav-button { border-color: #94816a; border-radius: 4px; padding: 10px 15px; color: #fff8ed; font-size: 12px; letter-spacing: .02em; }
.site-header .menu .nav-button:hover { color: #241e19; background: #fff8ed; }
.site-header .nav-more { position: relative; }
.site-header .nav-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 7px; }
.site-header .nav-more > summary::-webkit-details-marker { display: none; }
.site-header .nav-more > summary::after { content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.site-header .nav-more[open] > summary::after { transform: rotate(225deg) translate(-2px,-1px); }
.site-header .nav-more-list { position: absolute; top: calc(100% + 12px); right: -20px; width: 240px; display: grid; padding: 10px; background: #fffaf2; border: 1px solid #e5d9c8; border-radius: 8px; box-shadow: 0 18px 40px #241e1929; }
.site-header .nav-more-list a { color: #3c4737; text-decoration: none; padding: 12px 13px; border-radius: 4px; font-size: 14px; line-height: 1.35; letter-spacing: 0; }
.site-header .nav-more-list a:hover { background: #f0e7d8; color: #241e19; }
.site-header .nav-more-list a[aria-current="page"] { background: #ede5d7; font-weight: 700; }
.site-header .nav-toggle { display: none; background: transparent; border: 1px solid #94816a; border-radius: 4px; color: #fff8ed; padding: 11px 13px; font: 600 13px Arial, sans-serif; cursor: pointer; align-items: center; gap: 10px; }
.site-header .menu-icon { width: 16px; height: 12px; border-block: 1px solid currentColor; position: relative; }
.site-header .menu-icon::before { content: ""; width: 16px; height: 1px; background: currentColor; position: absolute; top: 5px; left: 0; }
.site-header :where(a, button, summary):focus-visible { outline: 3px solid #d7b17d; outline-offset: 5px; }
@media (max-width: 1050px) {
  .site-header.topbar { padding: 17px 0; }
  .site-header .nav { gap: 18px; }
  .site-header .brand { min-width: 190px; }
  .site-header .brand-name { font-size: 28px; }
  .site-header .menu { gap: 16px; }
  .site-header .menu > a, .site-header .nav-more > summary { font-size: 13px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 94px; }
  :where(#books, #heroes, #finds) { scroll-margin-top: 12px; }
  .site-header.topbar { position: sticky; top: 0; padding: 16px 0; }
  .site-header .nav { flex-wrap: wrap; }
  .site-header .brand { min-width: 0; }
  .site-header .brand-name, .site-header .brand-sub { text-align: left; }
  .site-header.nav-enhanced .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-header .menu { width: 100%; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px 18px; padding-top: 12px; border-top: 1px solid #ffffff24; align-items: start; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
  .site-header.nav-enhanced .menu:not(.is-open) { display: none; }
  .site-header .menu > a, .site-header .nav-more > summary { padding: 13px 0; font-size: 15px; }
  .site-header .nav-more { grid-column: 1 / -1; }
  .site-header .nav-more > summary { justify-content: space-between; padding-right: 6px; }
  .site-header .nav-more-list { position: static; width: 100%; display: grid; grid-template-columns: 1fr 1fr; margin: 4px 0 12px; box-shadow: none; border: 0; }
  .site-header .menu .nav-button { grid-column: 1 / -1; justify-self: start; margin-top: 8px; padding: 11px 18px; }
}
@media (max-width: 430px) {
  .site-header .brand-name { font-size: 26px; }
  .site-header .brand-sub { font-size: 9px; letter-spacing: .14em; }
  .site-header .nav-more-list { grid-template-columns: 1fr; }
  .site-header .menu { gap: 1px 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header { display: none; } }
