:root {
    --bg: #000000;
    --fg: #e6f0ff;
    --muted: #a5b4c3;
    --accent: #7cc4ff;
    --accent-strong: #41a3ff;
    --card: rgba(5, 10, 18, 0.74);
    --card-strong: rgba(8, 16, 28, 0.9);
    --card-soft: rgba(255, 255, 255, 0.035);
    --border: rgba(255, 255, 255, 0.09);
    --border-accent: rgba(124, 196, 255, 0.25);
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.46);
    --header-height: 80px;
    --success: #72e7a4;
    --danger: #ff7e91;
    --tie: #c3cfdd;
}

* { box-sizing: border-box; }
html { min-height: 100%; color-scheme: dark; }
body {
    min-height: 100%;
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", Helvetica, Arial, sans-serif;
    color: var(--fg);
    background:
        radial-gradient(52rem 32rem at 8% -8%, rgba(65, 163, 255, 0.16), transparent 60%),
        radial-gradient(48rem 30rem at 100% 18%, rgba(124, 196, 255, 0.09), transparent 62%),
        linear-gradient(180deg, #02060b 0%, var(--bg) 35%, #000 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 72%);
}

a { color: var(--accent); text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { color: #b5dcff; }
strong { color: #f6f9ff; }
small, .muted { color: var(--muted); }

.navbar {
    min-height: var(--header-height);
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    display: flex;
    align-items: center;
    color: var(--fg);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), rgba(0, 5, 12, 0.62));
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px) saturate(125%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    box-shadow: 0 10px 32px rgba(0,0,0,.22);
}

.nav-content {
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    color: var(--fg);
    font-size: clamp(1.08rem, 2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: .2px;
    white-space: nowrap;
    text-shadow: 0 6px 20px rgba(65, 163, 255, .2);
}
.nav-logo::before {
    content: "◈";
    margin-right: 9px;
    color: var(--accent-strong);
    filter: drop-shadow(0 0 9px rgba(65,163,255,.55));
}
.nav-logo:hover { color: #fff; }

.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.nav-link {
    color: #dbeaff;
    font-weight: 650;
    white-space: nowrap;
}
.nav-link:hover { color: var(--accent); }

.search-form { display: flex; gap: 9px; align-items: center; }
.search-form input {
    width: 220px;
    min-height: 40px;
    padding: 9px 13px;
    color: var(--fg);
    background: rgba(255,255,255,.045);
    border: 1px solid var(--border);
    border-radius: 999px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.search-form input::placeholder { color: #8091a4; }
.search-form input:focus {
    background: rgba(124,196,255,.06);
    border-color: rgba(124,196,255,.55);
    box-shadow: 0 0 0 3px rgba(65,163,255,.12);
}
.search-form button {
    min-height: 40px;
    padding: 9px 16px;
    color: #06111d;
    font-weight: 800;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(65,163,255,.25), inset 0 1px 0 rgba(255,255,255,.3);
    transition: transform .08s ease, filter .18s ease;
}
.search-form button:hover { transform: translateY(-1px); filter: brightness(1.06); }

.container {
    width: min(1200px, 92vw);
    max-width: none;
    margin: 0 auto;
    padding: 34px 0 54px;
}

.summary-header,
.profile-header,
.summary {
    position: relative;
    margin: 0 0 26px;
    padding: 9px 0 20px;
    border-bottom: 1px solid var(--border);
}
.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}
.summary-header::after,
.profile-header::after,
.summary::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: min(220px, 48%);
    height: 1px;
    background: linear-gradient(90deg, var(--accent-strong), transparent);
    box-shadow: 0 0 12px rgba(65,163,255,.45);
}

h1, h2, h3 { color: #f2f7ff; letter-spacing: -.015em; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.05; text-shadow: 0 10px 28px rgba(0,0,0,.55); }
h2 { margin: 0 0 10px; font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
h3 { margin: 0 0 8px; font-size: 1.02rem; }
.profile-header p, .summary p { color: var(--muted); margin: 9px 0 0; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    padding: 9px 0;
}
.compact-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; }
.full-span { grid-column: 1 / -1; }

.stat-card,
.card,
.details-card,
.team,
.score-card,
.map-image-wrap {
    background: linear-gradient(180deg, rgba(10,18,31,.82), var(--card));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.stat-card,
.card,
.details-card,
.team { padding: clamp(17px, 2.5vw, 25px); }
.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,196,255,.35), transparent);
    opacity: .65;
}
.stat-card-center { text-align: center; }
.history-card { margin-top: 18px; }
.roomy-bottom { margin-bottom: 40px; }
.section-title-tight { margin-bottom: 4px; }

.metric-value,
.highlight {
    color: var(--accent);
    font-weight: 800;
    text-shadow: 0 0 18px rgba(65,163,255,.15);
}
.metric-value { font-size: 1.25rem; margin: 8px 0 0; }
.metric-value-lg { font-size: 1.55rem; }

.count-badge,
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    color: #dcecff;
    font-size: .8rem;
    line-height: 1;
    font-weight: 750;
    white-space: nowrap;
    background: rgba(124,196,255,.1) !important;
    border: 1px solid rgba(124,196,255,.2);
    border-radius: 999px;
}
.count-badge-primary { background: rgba(65,163,255,.19) !important; border-color: rgba(65,163,255,.38); }
.count-badge-secondary { background: rgba(255,255,255,.055) !important; border-color: var(--border); }

.history-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.match-link, .player-link, .mode-link {
    color: #ddecff;
    font-weight: 700;
}
.match-link:hover, .player-link:hover, .mode-link:hover { color: var(--accent); }

.table-wrap { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(124,196,255,.35) rgba(255,255,255,.03); }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td {
    padding: 11px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.065);
    vertical-align: middle;
}
th {
    color: #bdd0e8;
    background: rgba(255,255,255,.032);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .055em;
    font-weight: 750;
}
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(124,196,255,.035); }
tbody tr:last-child td { border-bottom-color: transparent; }
td:last-child { text-align: right; }
th:last-child { text-align: right; }

.win, .win-text, .outcome-win { color: var(--success); font-weight: 800; }
.loss, .outcome-loss { color: var(--danger); font-weight: 800; }
.tie, .outcome-tie { color: var(--tie); font-weight: 800; }

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
}
.pagination a,
.pagination span {
    min-width: 38px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    color: #dce9f8;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
}
.pagination a:hover { color: #fff; background: rgba(124,196,255,.1); border-color: rgba(124,196,255,.3); }
.pagination .active {
    color: #06111d;
    font-weight: 850;
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
    border-color: transparent;
    box-shadow: 0 7px 20px rgba(65,163,255,.2);
}

/* Match detail */
.summary h1 { margin-bottom: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero {
    width: 100%;
    margin: 0 0 22px;
    display: grid;
    grid-template-columns: minmax(280px, 1.55fr) minmax(250px, 1fr);
    gap: 18px;
}
.map-image-wrap {
    min-height: 260px;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #05080d;
}
.map-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 430px;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04) brightness(.86);
}
.map-placeholder { color: var(--muted); padding: 32px; text-align: center; }
.map-placeholder-hidden { display: none; }
.details-card h2 { margin-top: 0; }
.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.065);
}
.detail-row:last-child { border-bottom: 0; }
.detail-label { color: var(--muted); font-weight: 650; }

.scoreboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin: 0 0 22px;
}
.score-card {
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(65,163,255,.09), rgba(7,13,23,.85));
    border-color: var(--border-accent);
}
.score-team { font-weight: 800; color: #eef6ff; }
.score-value {
    color: var(--accent);
    font-size: 2.15rem;
    line-height: 1;
    font-weight: 900;
    text-shadow: 0 0 22px rgba(65,163,255,.2);
}
.score-outcome { margin-top: 4px; font-size: .82rem; }
.team { margin: 18px 0; }
.team-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.team-heading { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.team-heading h2 { margin: 0; }
.team-score { color: var(--accent); font-size: 1.18rem; font-weight: 850; }

/* Game mode map breakdown */
.map-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2px 18px;
}
.map-breakdown-row {
    min-height: 46px;
    padding: 11px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.065);
}

.chart-wrap { height: 250px; position: relative; }
.chart-wrap-lg { height: 300px; }
canvas { max-width: 100%; }

.card > h1 { margin-bottom: 12px; }
.card > p { color: var(--muted); line-height: 1.55; }

@media (max-width: 800px) {
    :root { --header-height: auto; }
    .navbar { position: relative; }
    .nav-content,
    .summary-header,
    .history-header,
    .team-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .nav-content { padding: 14px 0; }
    .nav-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
    .search-form { width: 100%; }
    .search-form input { min-width: 0; width: 100%; flex: 1; }
    .container { width: min(100% - 24px, 1200px); padding-top: 24px; }
    .dashboard-grid { grid-template-columns: 1fr; gap: 14px; }
    .hero { grid-template-columns: 1fr; }
    .map-image-wrap, .map-image { min-height: 210px; }
    .summary-header h1 { max-width: 100%; }
    th, td { padding: 10px 9px; }
}

@media (max-width: 520px) {
    .nav-actions { gap: 10px; }
    .nav-link { width: 100%; }
    .search-form button { padding-inline: 14px; }
    h1 { font-size: clamp(1.8rem, 10vw, 2.5rem); }
    .stat-card, .card, .details-card, .team { padding: 16px; border-radius: 15px; }
    .scoreboard { grid-template-columns: 1fr; }
    .pagination { gap: 6px; }
    .pagination a, .pagination span { min-width: 34px; min-height: 34px; padding: 6px 9px; }
}

/* Medal difficulty badges */
.medal-difficulty {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}
.medal-normal { background: rgba(88, 191, 116, 0.12); border-color: rgba(88, 191, 116, 0.35); }
.medal-heroic { background: rgba(65, 163, 255, 0.14); border-color: rgba(65, 163, 255, 0.4); }
.medal-legendary { background: rgba(170, 105, 255, 0.14); border-color: rgba(170, 105, 255, 0.4); }
.medal-mythic { background: rgba(255, 86, 86, 0.14); border-color: rgba(255, 86, 86, 0.4); }

/* Theater / film match timeline */
.film-timeline-section { overflow: visible; }
.kill-chart-card { margin: 16px 0 24px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.025); }
.kill-chart-card h3, .event-track-wrap h3 { margin: 0 0 12px; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; color: var(--muted); font-size: .9rem; }
.timeline-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.timeline-legend-item i { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.kill-chart-scroll { overflow-x: auto; }
.kill-chart { display: block; width: 100%; min-width: 620px; height: auto; }
.chart-axis { stroke: rgba(255,255,255,.16); stroke-width: 1; }
.event-track-wrap { margin-top: 20px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.025); }
.event-track { position: relative; height: 150px; margin: 16px 8px 0; border-bottom: 2px solid rgba(255,255,255,.18); }
.event-marker { position: absolute; bottom: -7px; transform: translateX(-50%); z-index: 1; }
.event-dot { display: block; width: 13px; height: 13px; border-radius: 50%; background: var(--event-color); border: 2px solid #07111c; box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.event-label { position: absolute; bottom: 22px; left: 50%; width: max-content; max-width: 150px; transform: translateX(-50%); padding: 5px 7px; border: 1px solid var(--border); border-radius: 8px; background: rgba(0,0,0,.88); font-size: .72rem; line-height: 1.2; text-align: center; }
.event-label small { display: block; margin-top: 3px; color: var(--muted); }
.event-mythic .event-label { border-color: rgba(210,168,255,.5); }
.event-time-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; margin-top: 8px; }
.timeline-note { margin-top: 14px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
@media (max-width: 700px) { .event-track { height: 190px; } .event-label { max-width: 105px; font-size: .66rem; } }

/* Combined film timeline */
.combined-kill-chart-card { margin-top: 12px; }
.combined-kill-chart { min-width: 760px; }
.chart-grid { stroke: rgba(255,255,255,.075); stroke-width: 1; }
.chart-label { fill: var(--muted); font-size: 12px; }
.chart-team-label { fill: var(--fg); font-size: 13px; font-weight: 700; paint-order: stroke; stroke: rgba(0,0,0,.9); stroke-width: 4px; }
.chart-event-guide { stroke: rgba(255,255,255,.13); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-event-dot { stroke: #05080d; stroke-width: 2; }
.chart-event-icon { fill: var(--fg); font-size: 12px; paint-order: stroke; stroke: rgba(0,0,0,.95); stroke-width: 3px; }
.timeline-player-legend strong { color: var(--fg); margin-left: 4px; }
.timeline-player-legend strong:first-child { margin-left: 0; }
.event-key { color: var(--fg); }
.timeline-event-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.timeline-event-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid color-mix(in srgb, var(--event-color) 45%, transparent); border-radius: 999px; padding: 5px 9px; background: rgba(255,255,255,.025); color: var(--muted); font-size: .8rem; }

/* v13 team-family timeline colors */
.timeline-player-legend strong { display:inline-flex; align-items:center; gap:6px; }
.team-event-swatch { display:inline-block; width:10px; height:10px; border-radius:50%; flex:0 0 auto; }

/* v14 timeline layout + compact event feed */
.timeline-player-legend { display:block; }
.timeline-team-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; padding:6px 0; }
.timeline-team-row + .timeline-team-row { border-top:1px solid rgba(255,255,255,.055); }
.timeline-team-row strong { min-width:90px; }
.timeline-event-key-row { margin-top:3px; }
.timeline-event-scroll {
  max-height: 150px;
  overflow-y: auto;
  align-content: flex-start;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0,0,0,.2);
  scrollbar-width: thin;
}
.timeline-event-chip-kill { border-color: color-mix(in srgb, var(--event-color) 38%, transparent); }
.kill-matrix-scroll { overflow-x:auto; margin-top:12px; }
.kill-matrix { width:100%; min-width:760px; border-collapse:separate; border-spacing:3px; font-size:.82rem; }
.kill-matrix th, .kill-matrix td { padding:8px 9px; text-align:center; border-radius:7px; }
.kill-matrix th { color:var(--muted); font-weight:600; }
.kill-matrix tbody th { text-align:left; white-space:nowrap; }
.matrix-player { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.matrix-player i { width:9px; height:9px; border-radius:50%; flex:0 0 auto; }
.kill-matrix td { background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.045); }
.kill-matrix td.matrix-hit { background:rgba(124,196,255,calc(.08 + var(--intensity) * .24)); font-weight:700; color:var(--fg); }
.kill-matrix td.matrix-self { opacity:.35; }
.kill-matrix td.matrix-total { font-weight:800; background:rgba(255,255,255,.07); color:var(--fg); }

/* v18 compact opponent-only kill matrices */
.kill-matrix-groups { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,520px),1fr)); gap:14px; margin-top:12px; }
.kill-matrix-team { min-width:0; border:1px solid var(--border); border-radius:12px; padding:10px; background:rgba(255,255,255,.018); }
.kill-matrix-team h3 { display:flex; align-items:center; gap:7px; margin:0 0 7px; font-size:.95rem; }
.compact-kill-matrix { min-width:520px; }


/* v22 player mode and kill-matchup summaries */
.matchup-profile-grid { margin-top:16px; }

/* v25: stack team kill-matchup matrices vertically. */
.kill-matrix-groups { display:flex; flex-direction:column; gap:14px; }
.kill-matrix-team { width:100%; }


/* v30: header copied from halofin.land; only language buttons are replaced by a site-link pill. */
.halofin-source-header {
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 5000;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.halofin-source-container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.halofin-source-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #e6f0ff;
  min-width: 0;
}

.halofin-source-brand img {
  width: auto;
  height: 42px;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 12px rgba(65,163,255,0.25));
}

.halofin-source-title {
  display: block;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.halofin-source-subtitle {
  display: block;
  font-size: 12px;
  color: #a5b4c3;
  margin-top: 2px;
}

.halofin-source-lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.halofin-source-pill {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #e6f0ff;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .05s ease, background .2s ease, border-color .2s ease;
}

.halofin-source-pill:hover {
  transform: translateY(-1px);
  background: rgba(124,196,255,0.12);
  border-color: rgba(124,196,255,0.35);
}

@media (max-width: 620px) {
  .halofin-source-container {
    width: 92vw;
    gap: 8px;
  }

  .halofin-source-brand {
    gap: 8px;
    flex: 1 1 auto;
  }

  .halofin-source-brand img {
    height: 42px;
  }

  .halofin-source-title {
    font-size: 14px;
  }

  .halofin-source-subtitle {
    display: block;
    font-size: 10px;
    line-height: 1.1;
    white-space: normal;
  }

  .halofin-source-pill {
    padding: 8px 10px;
    font-size: 12px;
  }
}



/* v32: explicit two-level sticky header hierarchy. */
.halofin-source-header {
  z-index: 5000;
}

.navbar {
  top: var(--header-height);
  z-index: 100;
}


/* v34: Halo Finland header + Stats navbar behave as one sticky header unit. */
.site-header-stack {
  position: sticky;
  top: 0;
  z-index: 5000;
}

/* Child bars participate in the wrapper instead of sticking independently. */
.site-header-stack .halofin-source-header {
  position: relative;
  top: auto;
  z-index: auto;
}

.site-header-stack .navbar {
  position: relative;
  top: auto;
  z-index: auto;
}

/* Preserve the same combined behavior on mobile. */
@media (max-width: 800px) {
  .site-header-stack {
    position: sticky;
    top: 0;
    z-index: 5000;
  }

  .site-header-stack .navbar {
    position: relative;
    top: auto;
  }
}
