/* Shared product chrome — header + brand.
   Loaded by marketing, live board, ops console, and console login. */

/* The two fonts, served from this site (seo-plan task 5: no third-party
   request before the first paint). Variable files, one per script; the browser
   loads only the scripts a page uses. Licence: public/assets/fonts/LICENSE.txt. */
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/fonts/manrope-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/fonts/manrope-greek.woff2") format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/fonts/manrope-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("/assets/fonts/space-grotesk-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("/assets/fonts/space-grotesk-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
    --chrome-ink: #0b1220;
    --chrome-text: #1e293b;
    --chrome-muted: #64748b;
    --chrome-line: rgba(15, 23, 42, .08);
    --chrome-line-strong: rgba(15, 23, 42, .14);
    --chrome-surface: rgba(255, 255, 255, .78);
    --chrome-bg: #f4f6f9;
    --chrome-accent: #d97706;
    --chrome-accent-dark: #b45309;
    --chrome-accent-soft: #fff7e8;
    --chrome-live: #e11d38;
    --chrome-h: 68px;
    --chrome-font-display: "Space Grotesk", "Segoe UI", sans-serif;
    --chrome-font-body: Manrope, "Segoe UI", sans-serif;
}

/* ---------- Brand lockup ---------- */
.brand,
.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--chrome-ink);
    min-width: 0;
    text-decoration: none;
}
.brand:hover,
.app-brand:hover { color: var(--chrome-ink); }

.brand__mark,
.app-brand__mark {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    line-height: 0;
    border-radius: 11px;
    box-shadow:
        0 1px 1px rgba(15, 23, 42, .04),
        0 8px 20px rgba(15, 23, 42, .08);
}
.brand__mark .brand-mark-svg,
.app-brand__mark .brand-mark-svg {
    display: block;
    border-radius: 11px;
}

.brand__text,
.app-brand__text {
    display: grid;
    gap: 2px;
    min-width: 0;
    line-height: 1.05;
}

.brand__title,
.app-brand__title,
.brand__name,
.app-brand__name {
    font-family: var(--chrome-font-display);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -.035em;
    white-space: nowrap;
    color: var(--chrome-ink);
}

/* Two-weight wordmark: Tifo in the lockup colour, Sports in the accent. */
.brand__title b,
.app-brand__title b { font-weight: 700; color: var(--brand, #f5a623); }

/* Legacy two-line wordmark support (name > span) */
.brand__name span,
.app-brand__name span,
.brand__sub,
.app-brand__sub {
    display: block;
    font-family: var(--chrome-font-body);
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--chrome-muted);
}

.brand__title + .brand__sub,
.app-brand__title + .app-brand__sub {
    margin-top: 1px;
}

/* Footer / dark surfaces */
.site-footer .brand,
.site-footer .app-brand { color: #fff; }
.site-footer .brand__title,
.site-footer .brand__name,
.site-footer .app-brand__title,
.site-footer .app-brand__name { color: #fff; }
.site-footer .brand__sub,
.site-footer .brand__name span,
.site-footer .app-brand__sub,
.site-footer .app-brand__name span { color: #94a3b8; }
.site-footer .brand__mark,
.site-footer .app-brand__mark {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

/* ---------- Sticky header shell ---------- */
.site-header,
.app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--chrome-surface);
    backdrop-filter: saturate(1.35) blur(16px);
    -webkit-backdrop-filter: saturate(1.35) blur(16px);
    border-bottom: 1px solid var(--chrome-line);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .65) inset;
}

.site-header__inner,
.app-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--chrome-h);
    padding-block: 10px;
}

/* Marketing container already sets width; apps set their own measure on .app-header__inner */

/* ---------- Marketing nav ---------- */
.nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav a {
    position: relative;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 550;
    color: var(--chrome-text);
    letter-spacing: -.01em;
    transition: color .15s ease, background .15s ease;
}
.nav a:hover {
    color: var(--chrome-ink);
    background: rgba(15, 23, 42, .04);
}
.nav a[aria-current="page"] {
    color: var(--chrome-ink);
    background: transparent;
    font-weight: 650;
}
.nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--chrome-accent);
}
.nav a.nav-live,
.nav-toggle__panel a.nav-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--chrome-live);
    box-shadow: 0 0 0 0 rgba(225, 29, 56, .4);
    animation: live-dot-pulse 1.6s ease-out infinite;
    flex: 0 0 auto;
}
@keyframes live-dot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(225, 29, 56, .4); }
    70% { box-shadow: 0 0 0 6px rgba(225, 29, 56, 0); }
    100% { box-shadow: 0 0 0 0 rgba(225, 29, 56, 0); }
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header .btn--primary,
.app-header .btn--primary {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: .875rem;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 6px 16px rgba(217, 119, 6, .22);
}

.nav-toggle { display: none; position: relative; }
.nav-toggle > summary {
    list-style: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--chrome-line-strong);
    display: grid;
    place-items: center;
    color: var(--chrome-ink);
    background: #fff;
}
.nav-toggle > summary::-webkit-details-marker { display: none; }
.nav-toggle__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--chrome-line);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
    padding: 14px 20px 20px;
    display: grid;
    gap: 4px;
}
.nav-toggle__panel a {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--chrome-text);
}
.nav-toggle__panel a:hover { background: var(--chrome-accent-soft); }
.nav-toggle__panel .btn { margin-top: 8px; }

@media (max-width: 900px) {
    .nav,
    .header-cta > .btn { display: none; }
    .nav-toggle { display: block; }
    .site-header__inner,
    .app-header__inner { min-height: 60px; }
}

@media (max-width: 560px) {
    .brand__sub,
    .app-brand__sub,
    .brand__name span,
    .app-brand__name span { display: none; }
}
