/* Reconciled header/disclosure from navigation-shell 4b11586. The photographic
   story owns its hero layout; shared menu/form packages keep their behavior. */
:root {
  --od-header-height: 76px;
  --od-gutter: clamp(16px, 4.5vw, 72px);
  --od-shell-text: var(--paper);
  --od-shell-muted: #bab9ad;
  --od-shell-gold: var(--gold);
  --od-shell-line: #d6b97b33;
  --od-shell-hover: #d6b97b0f;
  --od-shell-header: #080a09ed;
  --od-shell-panel: #101310;
  --od-shell-shadow: #0008;
  --od-shell-clear: transparent;
  --od-shell-ease: cubic-bezier(.22, 1, .36, 1);
}
/* Inherited host values win over later root media rules without replacing the
   photographic stylesheet. The header and hero use the same gutter/height. */
body.od-shell-ready {
  --story-header-height: var(--od-header-height);
  --story-gutter: var(--od-gutter);
}
html:has(body.od-shell-ready) { scroll-padding-top: calc(var(--od-header-height) + 24px + env(safe-area-inset-top)); }
body > .skip-link { z-index: 100; }
.od-shell-ready > .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  box-sizing: border-box;
  height: calc(var(--od-header-height) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--od-gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
  border-bottom: 1px solid var(--od-shell-line);
  background: var(--od-shell-header);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.od-shell-ready .site-header > .wordmark { min-width: 0; min-height: 44px; gap: 10px; }
.od-shell-ready .site-header > .wordmark img { width: 30px; height: 36px; object-fit: contain; flex: none; }
.od-shell-ready .site-header > .wordmark > span { font-size: 22px; letter-spacing: 2px; line-height: 1.15; }
.od-shell-ready .site-header > .wordmark small { margin-top: 5px; font-size: 12px; letter-spacing: 2px; }
.od-shell-ready .site-header > nav { display: flex; min-width: 0; gap: clamp(18px, 2.2vw, 32px); margin-left: auto; }
.od-shell-ready .site-header > nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 0; font-size: 14px; line-height: 1.4; white-space: nowrap; }
.od-shell-ready .site-header > .header-actions { display: flex; flex: none; gap: 6px; min-width: 0; margin-left: auto; }
.od-shell-ready .site-header .header-link { display: none; }
.od-shell-ready .site-header #language + .ls-ui-control { width: auto; flex: 0 0 auto; min-width: 132px; }
.od-shell-ready .site-header #language + .ls-ui-control .ls-ui-pills { flex-wrap: nowrap; gap: 0; }
.od-shell-ready .site-header #language + .ls-ui-control .ls-ui-pill {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  border-radius: 0;
  background: var(--od-shell-clear);
  box-shadow: none;
  font-size: 14px;
}
.od-shell-ready .site-header #language + .ls-ui-control .ls-ui-pill:hover { background: var(--od-shell-hover); }
.od-shell-ready .site-header #language + .ls-ui-control .ls-ui-error:empty { display: none; }
body > .world-game-menu-toggle { display: none; }
.od-shell-ready .site-header .world-game-menu-toggle {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: var(--od-shell-clear);
  color: var(--od-shell-text);
  font: 500 14px/1.4 var(--sans, Arial, sans-serif);
  white-space: nowrap;
  box-shadow: none;
  text-shadow: none;
}
.world-game-menu-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.od-shell-ready .site-header .world-game-menu-toggle:hover,
.od-shell-ready .site-header .world-game-menu-toggle[aria-expanded="true"] { color: var(--od-shell-gold); background: var(--od-shell-hover); }
.site-header a:focus-visible,
.site-header button:focus-visible { outline: 2px solid var(--od-shell-gold); outline-offset: 3px; }
/* A disclosure over the current page, not a second full-screen scene. Opening
   the menu never moves/resizes the canvas or changes the page's scroll offset. */
#world-game-menu {
  position: fixed;
  z-index: 89;
  top: calc(var(--od-header-height) + 10px + env(safe-area-inset-top));
  right: var(--od-gutter);
  left: auto;
  bottom: auto;
  width: min(400px, calc(100vw - var(--od-gutter) * 2));
  max-width: none;
  height: auto;
  text-shadow: none;
  max-height: calc(100vh - var(--od-header-height) - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-height: calc(100dvh - var(--od-header-height) - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--od-shell-line);
  border-radius: 8px;
  background: var(--od-shell-panel);
  color: var(--od-shell-text);
  box-shadow: 0 24px 64px var(--od-shell-shadow);
  font-family: var(--sans, Arial, sans-serif);
  animation: od-drawer-in 180ms var(--od-shell-ease) both;
}
#world-game-menu[hidden] { display: none; }
#world-game-menu::before,
#world-game-menu::after { display: none; }
#world-game-menu .od-game-menu-content {
  position: relative;
  width: 100%;
  height: auto;
  max-height: inherit;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: var(--od-shell-line) transparent;
}
#world-game-menu .od-game-menu-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 16px; margin: 0; }
#world-game-menu .od-game-menu-heading { min-width: 0; }
#world-game-menu [data-menu-title] { font: 400 22px/1.25 var(--serif, Georgia, serif); letter-spacing: .02em; overflow-wrap: anywhere; margin: 0; }
#world-game-menu [data-menu-subtitle] { color: var(--od-shell-muted); font-size: 14px; line-height: 1.5; margin: 4px 0 0; }
#world-game-menu .od-game-menu-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; border-radius: 4px; color: var(--od-shell-text); }
#world-game-menu .od-site-links { display: grid; gap: 2px; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--od-shell-line); }
#world-game-menu .od-site-links:empty { display: none; }
#world-game-menu .od-site-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 10px 12px; border-radius: 4px; font-size: 16px; line-height: 1.4; color: var(--od-shell-text); text-decoration: none; }
#world-game-menu .od-site-links a::after { content: '↘'; color: var(--od-shell-gold); }
#world-game-menu .od-site-links a[target="_blank"]::after { content: '↗'; }
#world-game-menu .od-game-menu-nav { padding: 0; margin: 0; gap: 0; }
#world-game-menu .od-game-menu-primary { display: grid; gap: 4px; margin: 0 0 8px; padding: 0; }
#world-game-menu .od-game-menu-action,
#world-game-menu .od-game-menu-group > summary { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; margin: 0; border: 0; border-radius: 4px; background: transparent; color: var(--od-shell-text); text-align: left; font: 400 14px/1.45 var(--sans, Arial, sans-serif); cursor: pointer; box-shadow: none; }
#world-game-menu .od-game-menu-action:disabled { opacity: .5; cursor: not-allowed; }
#world-game-menu .od-game-menu-resume { color: var(--od-shell-gold); }
#world-game-menu .od-game-menu-group { border: 0; padding: 0; margin: 0; }
#world-game-menu .od-game-menu-group > summary { list-style: none; }
#world-game-menu .od-game-menu-group > summary::before { display: none; }
#world-game-menu .od-game-menu-group > summary::-webkit-details-marker { display: none; }
#world-game-menu .od-game-menu-icon { display: inline-flex; width: 18px; height: 18px; flex: 0 0 18px; color: var(--od-shell-gold); }
#world-game-menu .od-game-menu-icon svg,
#world-game-menu .od-game-menu-chevron svg { width: 18px; height: 18px; }
#world-game-menu .od-game-menu-label { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
#world-game-menu .od-game-menu-chevron { margin-left: auto; width: 18px; height: 18px; }
#world-game-menu details[open] > summary .od-game-menu-chevron { transform: rotate(180deg); }
#world-game-menu .od-game-menu-actions { padding: 2px 0 8px 16px; }
#world-game-menu :is(a, button, summary):hover { background: var(--od-shell-hover); }
#world-game-menu :is(a, button, summary):focus-visible { outline: 2px solid var(--od-shell-gold); outline-offset: -2px; }

/* The photo story keeps its composition; only its repeated parent wordmark
   follows the remote refinement. Section links remain available without JS. */
.od-shell-ready .hero[data-story-world="parent"] .hero-world-label { display: none; }
@keyframes od-drawer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) {
  .od-shell-ready .site-header > nav { display: none; }
}
@media (max-width: 600px) {
  :root { --od-header-height: 68px; }
  .od-shell-ready > .site-header { gap: 12px; }
  .od-shell-ready .site-header > .wordmark > span { font-size: 19px; letter-spacing: 1.5px; }
  .od-shell-ready .site-header > .wordmark img { width: 26px; height: 32px; }
  #world-game-menu .od-game-menu-content { padding: 12px; }
}
@media (max-width: 480px) {
  .od-shell-ready .site-header > .wordmark { gap: 7px; }
  .od-shell-ready .site-header > .wordmark small { display: none; }
  .od-shell-ready .site-header > .wordmark > span { font-size: 18px; letter-spacing: 1px; }
  .od-shell-ready .site-header .world-game-menu-toggle [data-world-menu-label] { display: none; }
}
@media (max-width: 360px) {
  .od-shell-ready > .site-header { gap: 8px; }
  .od-shell-ready .site-header > .wordmark img { display: none; }
  .od-shell-ready .site-header > .wordmark > span { font-size: 16px; letter-spacing: .5px; }
}
@media (prefers-reduced-motion: reduce) {
  #world-game-menu { animation: none; }
}
@media (forced-colors: active) {
  .od-shell-ready > .site-header, #world-game-menu { background: Canvas; color: CanvasText; border-color: ButtonText; }
  .site-header button, #world-game-menu :is(a, button, summary) { color: ButtonText; }
}
