/* Shared site header: a quiet ticker of the newest headlines over one row of name, page summary and page links. */
:root { --header-h: 92px; --boats: #38b6ff; --migration: #ffb23f; --donate: #ff7aa8; }
.site-header { position: relative; z-index: 5; height: var(--header-h); background: #0b0b0c; border-bottom: 1px solid #26262b; color: #f2f2f3; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.site-header * { box-sizing: border-box; }
.news-strip { display: flex; align-items: stretch; height: 32px; border-bottom: 1px solid #26262b; background: #111113; font-size: 13px; }
.strip-tag { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 0 14px; }
.strip-tag strong { color: #ff3b4e; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.site-header .status-dot { display: inline-block; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #ff3b4e; box-shadow: 0 0 0 3px #ff3b4e38; }
.site-header .status-dot.offline { background: var(--migration); box-shadow: none; }
.strip-window { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker { display: flex; width: max-content; white-space: nowrap; }
.ticker.moving { animation: ticker-scroll 60s linear infinite; }
.ticker:hover, .ticker:focus-within { animation-play-state: paused; }
.ticker-copy { display: flex; gap: 40px; padding: 0 20px; }
.ticker a, .ticker span:not(.ticker-copy) { color: #d6d6da; text-decoration: none; }
.ticker a:before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 10px 2px 0; border-radius: 50%; background: #6e6e76; }
.ticker a:hover { color: #fff; text-decoration: underline; }
.ticker a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.strip-checked { display: flex; align-items: center; flex-shrink: 0; padding: 0 14px; color: #6e6e76; font-size: 12px; }

.site-bar { display: flex; align-items: center; gap: 20px; height: 59px; padding: 0 20px; }
.site-brand { color: #f2f2f3; text-decoration: none; }
.site-header .brand-title { margin: 0; color: #f2f2f3; font: 800 19px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.site-totals { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; min-width: 0; margin: 0; color: #9b9ba3; font-size: 13px; white-space: nowrap; }
.site-totals > span + span:before { content: '·'; margin: 0 8px; color: #6e6e76; }
.site-totals b { color: #f2f2f3; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Page links: one segmented control, the current page raised. */
.page-buttons { display: flex; gap: 2px; margin-left: auto; padding: 3px; border: 1px solid #26262b; border-radius: 12px; background: #111113; }
.page-button { --accent: #ff3b4e; display: flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 9px; background: none; color: #9b9ba3; font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: 0; text-decoration: none; text-transform: none; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s, transform 100ms ease-out; }
.page-button small { display: none; }
.page-icon { display: grid; place-items: center; color: var(--accent); }
.page-icon svg { width: 16px; height: 16px; }
.page-button:hover { background: #18181b; color: #f2f2f3; }
.page-button:active { transform: scale(.97); }
.page-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.page-button[aria-current] { background: #1d1d21; color: #f2f2f3; box-shadow: inset 0 0 0 1px #36363d; }
.page-button.world { --accent: #ff8a1f; }
.page-button.warroom { --accent: #4fd18b; }
.page-button.boats { --accent: var(--boats); }
.page-button.migration { --accent: var(--migration); }
.page-button.donate { --accent: var(--donate); }

@media(max-width:1380px) { .site-totals .xwide { display: none; } }
@media(max-width:1180px) {
  .strip-checked, .site-totals .wide { display: none; }
  .page-button { padding: 7px 10px; }
}
/* Icons only once the labels would crowd the summary; each link keeps its accessible name. */
@media(max-width:960px) {
  .page-button > span:not(.page-icon) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .page-button { padding: 8px 10px; }
}
@media(max-width:760px) {
  .site-header { height: auto; }
  .site-bar { flex-wrap: wrap; height: auto; gap: 10px 12px; padding: 12px 16px; }
  .site-totals { order: 3; width: 100%; }
  .site-totals .time-window-toggle { margin-left: auto; }
}
@media(prefers-reduced-motion:reduce) {
  .ticker.moving { animation: none; }
  .strip-window { overflow-x: auto; scrollbar-width: none; }
  .ticker-copy[aria-hidden] { display: none; }
  .page-button { transition: none; }
}
