/* Shared by the React app and the static API reference. */
:root { --content-width: 1580px; --page-gutter: 24px; --header-background: #202224; --header-glass: rgb(32 34 36 / 82%); --header-scroll-offset: 104px; }
:root[data-theme="light"] { --header-background: #e0e0de; --header-glass: rgb(224 224 222 / 88%); }
html { scroll-padding-top: var(--header-scroll-offset); }
.app-content, .site-header-inner, .site-footer-inner {
  width: min(var(--content-width), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}
.app-nav, .site-header {
  position: sticky; top: 0; z-index: 30; isolation: isolate;
  background: transparent;
  display: block; width: 100%; max-width: none; margin-inline: 0;
  padding: 0; border-bottom: 1px solid #263246;
  font-family: "Segoe UI", "Aptos", sans-serif; line-height: 1.5;
}
.site-header-inner { position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 24px; min-height: 88px; }
/* Keep the backdrop separate so navigation text remains fully opaque. */
.app-nav::before, .site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--header-background);
}
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .app-nav::before, .site-header::before {
    background: var(--header-glass);
    -webkit-backdrop-filter: blur(16px) saturate(115%);
    backdrop-filter: blur(16px) saturate(115%);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .app-nav::before, .site-header::before {
    background: var(--header-background);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.app-brand, .site-header .brand {
  display: flex; align-items: center; flex-shrink: 0; gap: 12px;
  color: #f8fafc; text-decoration: none; font-size: 15px; font-weight: 750; letter-spacing: 0;
}
.app-brand img, .site-header .brand img { display: block; width: 38px; height: 38px; }
.app-nav nav, .site-header nav { display: flex; flex-wrap: nowrap; align-self: stretch; gap: 28px; margin-left: 0; }
.app-nav nav a, .site-header nav a {
  display: flex; align-items: center; padding: 0 4px; border-bottom: 2px solid transparent;
  color: #a7b3c6; text-decoration: none; font-size: 14px;
}
.ui-icon { display: inline-block; width: 16px; height: 16px; flex-shrink: 0; vertical-align: -.15em; }
.app-nav nav a, .site-header nav a, .site-footer nav a { gap: 6px; }
button > .ui-icon { margin-right: 6px; }
.match-datetime { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.match-datetime > span:not(.sr-only) { display: inline-flex; align-items: center; gap: 5px; }
.match-datetime .ui-icon { width: 13px; height: 13px; opacity: .75; }
.app-nav nav a:hover, .site-header nav a:hover { color: #fff; }
.app-nav nav a[aria-current], .site-header nav a[aria-current] { color: #fff; border-color: #f87171; }
@media (max-width: 1200px) {
  .site-header-inner { flex-wrap: wrap; gap: 12px 24px; padding: 12px 0; }
}
@media (max-width: 600px) {
  :root { --page-gutter: 12px; }
  .site-header-inner { flex-wrap: wrap; gap: 12px; min-height: 72px; padding: 12px 0; }
  .app-nav nav, .site-header nav { width: 100%; gap: 20px; min-height: 32px; margin-left: 0; }
  .app-nav nav a, .site-header nav a { font-size: 12px; }
}

@media (max-width: 760px) {
  :root { --header-scroll-offset: 130px; }
  .site-header-inner { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .app-nav nav, .site-header nav { width: 100%; min-height: 36px; gap: 8px; }
  .app-nav nav a, .site-header nav a { padding: 0 2px; }
}
@media (max-width: 600px) {
  .app-nav nav, .site-header nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
  .app-nav nav a, .site-header nav a { flex-direction: column; justify-content: center; gap: 3px; min-height: 44px; padding: 3px 0; font-size: 11px; }
  .app-nav nav .ui-icon, .site-header nav .ui-icon { width: 15px; height: 15px; }
}

.site-footer { width: 100%; margin-top: 40px; padding: 24px 0; border-top: 1px solid #464b50; color: #b8c0c8; font-size: 13px; line-height: 1.5; }
.site-footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px 32px; }
.footer-identity > a { display: inline-flex; align-items: center; gap: 10px; color: #f1f2f3; font-size: 14px; font-weight: 650; text-decoration: none; }
.footer-identity img { display: block; }
.footer-identity p { max-width: 62ch; margin: 8px 0 0; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-contact { display: flex; align-items: center; gap: 16px; }
.footer-contact a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 32px; min-height: 32px; color: inherit; text-decoration: none; }
.footer-contact .ui-icon { opacity: .8; transition: transform 160ms ease, opacity 160ms ease; }
.footer-contact a:is(:hover, :focus-visible) .ui-icon { opacity: 1; transform: translateY(-2px) scale(1.1); }
@media (prefers-reduced-motion: reduce) {
  .footer-contact .ui-icon { transition: none; }
  .footer-contact a:is(:hover, :focus-visible) .ui-icon { transform: none; }
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 32px; color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:focus-visible { outline: 2px solid #38bdf8; outline-offset: 4px; border-radius: 3px; }
body > .site-footer { margin: 0; }
:root[data-theme="light"] .site-footer { color: #414b56; border-color: #cbcdca; }
:root[data-theme="light"] .footer-identity > a { color: #1b2026; }
@media (max-width: 760px) {
  .site-footer { margin-top: 28px; }
  .site-footer-inner { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .footer-links { align-items: flex-start; }
}
