/* Public navigation is shared by the landing page, reading pages and map app. */
.site-head { position: sticky; top: 0; z-index: 1100; flex: none; background: var(--rust); color: var(--cream); }
.site-head .head-inner { position: relative; width: min(1400px, 100% - 32px); min-height: 56px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.site-head .brand { display: flex; align-items: center; gap: 12px; flex: none; }
.site-head .mark { display: block; width: 32px; height: 32px; border-radius: 7px; }
.site-head .name, .site-head .short-name { font: 700 18px var(--mono); }
.site-head .short-name { display: none; }
.site-head a { color: var(--cream); text-decoration: none; }
.site-head a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.site-head .head-links { display: flex; align-items: center; gap: 20px; margin-left: auto; font: 400 14px var(--sans); }
.site-head .head-links a { display: flex; align-items: center; min-height: 56px; border-block: 2px solid transparent; }
.site-head .head-links [aria-current="page"] { border-bottom-color: var(--amber); font-weight: 700; }
.site-head .theme-toggle, .site-head .site-menu-toggle { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0; flex: none; border: 1px solid color-mix(in srgb, var(--cream) 40%, transparent); border-radius: 6px; background: transparent; color: var(--cream); font: 400 14px var(--sans); cursor: pointer; }
.site-head .theme-toggle[hidden], .site-head .site-menu-toggle { display: none; }
.site-head .site-menu-toggle { padding: 0 12px; }
.site-head .theme-toggle:hover, .site-head .site-menu-toggle:hover { background: #ffffff12; }
.site-head .theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.site-head .theme-toggle .sun, :root[data-theme="dark"] .site-head .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .site-head .theme-toggle .sun { display: block; }
.site-head :focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
@media (max-width: 760px) {
  .site-head .head-inner { flex-wrap: wrap; gap: 0 12px; }
  .site-head .name { display: none; }
  .site-head .short-name { display: inline; }
  .site-head .brand { margin-right: auto; }
  .site-head .head-links { order: 3; width: 100%; margin: 0; flex-wrap: wrap; gap: 0 20px; }
  .site-head .head-links a { min-height: 44px; }
  .site-head.site-menu-ready .site-menu-toggle { display: grid; }
  .site-head.site-menu-ready .head-links { display: none; position: absolute; top: 56px; left: -16px; width: calc(100% + 32px); padding: 8px 16px 12px; background: var(--rust); box-shadow: 0 8px 12px #0002; }
  .site-head.site-menu-open .head-links { display: flex; }
}
