/* Geometry and behavior are shared; each site supplies its own theme tokens. */
:root {
  --site-font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --site-h1: clamp(2.25rem, 4.5vw, 4rem);
  --site-h2: clamp(1.75rem, 3vw, 2.5rem);
  --site-h3: clamp(1.25rem, 2vw, 1.5rem);
}
html { scroll-padding-top: 88px; }
body { font-family: var(--site-font); font-size: 16px; line-height: 1.6; }
body h1, body h2, body h3 { font-family: var(--site-font); letter-spacing: -.035em; }
body h1 { font-size: var(--site-h1); font-weight: 700; line-height: 1.1; }
body h2 { font-size: var(--site-h2); font-weight: 700; line-height: 1.2; }
body h3 { font-size: var(--site-h3); font-weight: 600; line-height: 1.3; }
body .button { font-weight: 600; text-transform: none; }
body :is(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--header-focus);
  outline-offset: 4px;
}
.shared-skip { position: fixed; top: 12px; left: 16px; z-index: 100; padding: 10px 16px; color: var(--header-selected-text); background: var(--header-selected); transform: translateY(-180%); }
.shared-skip:focus { transform: translateY(0); }
.shared-header { position: sticky; top: 0; z-index: 30; background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--header-line); }
.shared-header-inner { width: min(1180px, calc(100% - 64px)); min-height: 72px; margin-inline: auto; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px; }
.shared-links { display: flex; justify-content: center; align-items: center; gap: 22px; }
.shared-links a { display: flex; align-items: center; min-height: 44px; color: var(--header-muted); font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.shared-links a:hover, .shared-links a[aria-current="location"] { color: var(--header-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.shared-language { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--header-line); border-radius: 8px; }
.shared-language a { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 5px; color: var(--header-muted); font-size: 12px; font-weight: 600; }
.shared-language a:hover { color: var(--header-text); background: var(--header-hover); }
.shared-language a[aria-current="page"] { background: var(--header-selected); color: var(--header-selected-text); }
.shared-action, .shared-menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--header-selected); border-radius: 8px; background: var(--header-selected); color: var(--header-selected-text); font: 600 14px/1.4 var(--site-font); white-space: nowrap; cursor: pointer; }
.shared-action:hover { filter: brightness(.9); }
.shared-menu-toggle { display: none; background: transparent; color: var(--header-text); border-color: var(--header-line); }
@media (max-width: 1100px) {
  .shared-header:not([data-enhanced]) { position: static; }
  .shared-header-inner { grid-template-columns: 1fr auto auto; gap: 0 12px; padding-block: 10px; min-height: 72px; }
  .shared-header-inner > :first-child { grid-column: 1; grid-row: 1; }
  .shared-language { grid-column: 2; grid-row: 1; }
  .shared-menu-toggle { grid-column: 3; grid-row: 1; }
  .shared-links { grid-column: 1 / -1; grid-row: 2; flex-direction: column; align-items: stretch; gap: 0; padding-top: 12px; }
  .shared-action { grid-column: 1 / -1; grid-row: 3; margin-block: 12px 6px; }
  .shared-header[data-enhanced] .shared-menu-toggle { display: inline-flex; }
  /* Keep a focused link present until the breakpoint handler moves focus. */
  .shared-header[data-enhanced]:not([data-open]) :is(.shared-links, .shared-action):not(:focus-within) { display: none; }
  .shared-header[data-open] { max-height: 100svh; overflow-y: auto; }
}
@media (max-width: 600px) {
  .shared-header-inner { width: calc(100% - 32px); gap: 0 8px; }
  .shared-menu-toggle { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
