/* Site menu (public/nav.js): a sticky bar on desktop, a hamburger sheet on phones. */
.hv-nav { --nav-h: 54px; position: sticky; top: 0; z-index: 60; background: rgba(10, 14, 23, .92); backdrop-filter: blur(10px); border-bottom: 1px solid #1f2937; color: #e8edf5; font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.4; }
.hv-nav *, .hv-nav *::before, .hv-nav *::after { box-sizing: border-box; }
.hv-nav a { color: inherit; text-decoration: none; }
.hv-nav .in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 6px; padding: 0 14px; height: var(--nav-h); }
.hv-nav .brand { font: 800 20px "Barlow Condensed", sans-serif; letter-spacing: .06em; text-transform: uppercase; margin-right: 14px; }
.hv-nav .brand i { color: #e11d48; font-style: normal; }
.hv-nav .links { display: flex; gap: 2px; }
.hv-nav .links > a, .hv-nav .dd > button { font: 700 15px "Barlow Condensed", sans-serif; letter-spacing: .07em; text-transform: uppercase; color: #8b95a7; padding: 8px 12px; border-radius: 6px; background: none; border: 0; cursor: pointer; }
.hv-nav .links > a:hover, .hv-nav .dd > button:hover { color: #e8edf5; }
.hv-nav .links a[aria-current], .hv-nav .dd.on > button { color: #e8edf5; box-shadow: inset 0 -2px #e11d48; }
.hv-nav .dd { position: relative; }
.hv-nav .menu { display: none; position: absolute; top: 46px; left: 0; min-width: 210px; background: #111827; border: 1px solid #1f2937; border-radius: 10px; padding: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, .55); }
.hv-nav .dd.open .menu { display: block; }
.hv-nav .menu a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px; }
.hv-nav .menu a:hover { background: #1e293b; }
.hv-nav .menu a[aria-current] { color: #7cb3ff; }
.hv-nav .burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid #1f2937; border-radius: 8px; background: #111827; color: #e8edf5; font-size: 20px; cursor: pointer; }
.hv-nav .sheet { display: none; border-top: 1px solid #1f2937; background: #111827; padding: 6px 14px 14px; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.hv-nav .sheet.open { display: block; }
.hv-nav .sheet > a { display: block; padding: 12px 4px; border-bottom: 1px solid #1f2937; font: 700 17px "Barlow Condensed", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.hv-nav .sheet a[aria-current] { color: #7cb3ff; }
.hv-nav .sheet .sub a { display: block; font: 600 15px Inter, system-ui, sans-serif; color: #8b95a7; padding: 9px 4px 9px 18px; }
.hv-nav .sheet .sub a[aria-current] { color: #7cb3ff; }
/* Pages with their own sticky header sit under the menu. */
.hv-has-nav header.bar, .hv-has-nav header.sd-bar { top: 54px; }
@media (max-width: 760px) { .hv-nav .links { display: none; } .hv-nav .burger { display: block; } }
/* Lightboxes (public/modal.js): always centred on the visible screen, never taller than it, and they
   scroll inside rather than spill above or below. dvh follows the phone's toolbars; vh is the fallback. */
dialog:modal { position: fixed; inset: 0; margin: auto; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; }
html.hv-modal-open, html.hv-modal-open body { overflow: hidden; }

/* Team picker (teamPicker.js): selects labelled "Team" are replaced on screen by a button that opens a two-column logo + tricode dialog. */
select.tp-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.tp-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 3px 10px 3px 8px; border: 0; border-radius: 4px; background: #1e293b; color: #fff; font: 700 14px "Barlow Condensed", sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.tp-btn:disabled { opacity: .5; cursor: default; }
.tp-btn:focus-visible { outline: 2px solid #60a5fa; outline-offset: 1px; }
.tp-btn b { font-weight: 800; font-size: 15px; } .tp-btn i { font-style: normal; color: #94a3b8; font-size: 11px; }
.tp-logo { width: 24px; height: 24px; object-fit: contain; flex: none; }
dialog.tp-dlg { background: #111827; color: #f1f5f9; border: 1px solid #1f2937; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 24px)); font-family: Inter, system-ui, sans-serif; }
dialog.tp-dlg::backdrop { background: rgba(2, 6, 14, .7); }
.tp-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #1f2937; font: 800 20px "Barlow Condensed", sans-serif; letter-spacing: .06em; text-transform: uppercase; position: sticky; top: 0; background: #111827; z-index: 1; }
.tp-x { background: none; border: 0; color: #8b95a7; font-size: 28px; line-height: 1; width: 44px; height: 44px; cursor: pointer; margin: -8px -10px -8px 0; }
.tp-g { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; }
.tp-dlg .tp-i { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; min-height: 46px; padding: 6px 10px; border-radius: 10px; border: 1px solid #1f2937; border-left: 4px solid var(--team, #334155); background: #0f1522; color: #f1f5f9; text-decoration: none; }
.tp-dlg .tp-i b { font: 800 18px "Barlow Condensed", sans-serif; letter-spacing: .06em; } .tp-i small { color: #8b95a7; font-size: 12px; }
.tp-i:hover, .tp-i:focus-visible { background: #1e293b; outline: none; }
.tp-i.tp-cur { background: #1e293b; border-color: var(--team, #60a5fa); box-shadow: inset 0 0 0 1px var(--team, #60a5fa); }
.tp-i .tp-logo { width: 30px; height: 30px; }
.tp-i.tp-all { grid-column: 1 / -1; grid-template-columns: 1fr; text-align: center; }
