
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    color-scheme: dark;
    --bg: #0b1119;
    --surface: #111c28;
    --surface-2: #152333;
    --line: #26384a;
    --text: #e8eef5;
    --muted: #8ea1b5;
    --blue: #3b9cff;
    --red: #ed5a61;
    --green: #45c78b;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(rgba(5, 12, 22, 0.42), rgba(5, 12, 22, 0.62)),
        url("../image/foot_1.webp") center center / cover fixed no-repeat;
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }

.stats-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(12,21,31,.96);
    border-bottom: 1px solid #26384a;
    backdrop-filter: blur(14px);
}

.stats-header__inner {
    width: min(1440px, calc(100% - 48px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 34px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }

.brand__mark {
    display: grid;
    place-items: center;
    width: 43px;
    height: 34px;
    background: var(--blue);
    color: #061321;
    font: 800 19px 'Barlow Condensed', sans-serif;
    letter-spacing: .5px;
    transform: skew(-8deg);
}

.brand__name { font: 700 18px 'Barlow Condensed', sans-serif; letter-spacing: 2px; }

.main-nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 3px;
    min-width: 0;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 0;
    background: transparent;
    color: #a9b8c8;
    font: 600 11px Inter, sans-serif;
    letter-spacing: .8px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s, background .18s;
}

.nav-link:hover { color: #fff; background: rgba(255,255,255,.035); }
.nav-link.is-active { color: #fff; }

.nav-link.is-active::after {
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 3px;
    background: var(--blue);
    content: '';
}

.nav-link--home { color: #fff; font-weight: 800; }

.nav-link--home::before {
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--green);
    content: '';
}

.header-tag {
    margin-left: auto;
    color: #8195a9;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
    white-space: nowrap;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--green);
}

.stats-main {
    width: min(1320px, calc(100% - 48px));
    min-height: calc(100vh - 145px);
    margin: 0 auto;
    padding: 42px 0 70px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 38px;
}

.eyebrow { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: 1.7px; }
h1, h2, h3, p { margin-top: 0; }

h1 {
    margin: 8px 0 7px;
    font: 700 clamp(30px, 4vw, 43px)/1 'Barlow Condensed', sans-serif;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.page-heading p, .section-title p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.heading-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.meta-label { color: #71869b; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }

.status-pill {
    padding: 8px 11px;
    border: 1px solid #3b4a59;
    border-radius: 3px;
    color: #a9b8c8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .7px;
}
#foothold-map {
    width: 100%;
    height: 650px;
    min-height: 450px;
    border-radius: 10px;
    overflow: hidden;
    background: #101820;
    z-index: 1;
}
.leaflet-tooltip.foothold-zone-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    padding: 0 !important;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 1px 1px 3px #000, -1px -1px 3px #000;
}

.leaflet-tooltip.foothold-zone-label::before {
    display: none !important;
    border: none !important;
}
.foothold-map-legend {
    background: rgba(12, 25, 40, .92);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    border: 1px solid rgba(255,255,255,.15);
}
.legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 7px;
}
.legend-blue { background: #3b82f6; }
.legend-red { background: #ef4444; }

.status-pill .status-dot { 
    background: #e3a84b; 
}
.stats-section { display: none; }
.stats-section.is-visible { display: block; animation: appear .22s ease-out; }

@keyframes appear {
    from { opacity: .35; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
}

.section-title h2 {
    margin: 0 0 5px;
    font: 700 23px 'Barlow Condensed', sans-serif;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.section-code { color: #60758a; font: 600 11px 'Barlow Condensed', sans-serif; letter-spacing: 1.2px; }

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.metric-card, .panel {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: linear-gradient(145deg, rgba(21,35,51,.96), rgba(15,25,37,.96));
}

.metric-card { min-height: 143px; padding: 17px 18px 15px; }
.metric-card__top { display: flex; align-items: center; gap: 10px; }

.metric-icon {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border: 1px solid #31516d;
    color: var(--blue);
    font: 700 15px 'Barlow Condensed', sans-serif;
}

.metric-label { color: #9aabbb; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.metric-value { margin: 12px 0 3px; font: 700 35px/1 'Barlow Condensed', sans-serif; }
.metric-foot { color: #71869a; font-size: 10px; }

.overview-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 14px; margin-bottom: 14px; }
.overview-grid--bottom { grid-template-columns: 1.2fr 1fr; }
.panel { padding: 19px; min-width: 0; }

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.panel-heading h3 {
    margin: 5px 0 0;
    font: 600 19px 'Barlow Condensed', sans-serif;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.panel-period { color: #71869a; font-size: 8px; font-weight: 700; letter-spacing: 1px; }

.empty-chart {
    position: relative;
    height: 208px;
    overflow: hidden;
    border-bottom: 1px solid #2a3a4a;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 50px, rgba(102,128,153,.12) 51px);
}

.chart-grid {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to right, transparent 0, transparent 12.4%, rgba(102,128,153,.08) 12.5%);
}

.chart-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #71869a;
    text-align: center;
}

.chart-placeholder__line { width: 42px; height: 2px; background: #36516a; }
.chart-placeholder strong { color: #9aabbb; font-size: 9px; letter-spacing: 1.2px; }
.chart-placeholder span:last-child { font-size: 10px; }

.coalition-row { display: flex; justify-content: space-between; align-items: center; margin: 23px 0 9px; }
.coalition-name { color: #c4d0dc; font-size: 10px; font-weight: 700; letter-spacing: .8px; }
.coalition-row strong { font: 700 22px 'Barlow Condensed', sans-serif; }
.coalition-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; }
.coalition-dot--blue { background: var(--blue); }
.coalition-dot--red { background: var(--red); }
.coalition-track { height: 5px; overflow: hidden; background: #283747; }
.coalition-track__blue, .coalition-track__red { display: block; width: 0; height: 100%; }
.coalition-track__blue { background: var(--blue); }
.coalition-track__red { background: var(--red); }
.panel-note { margin: 24px 0 0; color: #71869a; font-size: 10px; line-height: 1.6; }

.empty-state {
    min-height: 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #71869a;
    text-align: center;
}

.empty-state__symbol { color: #42617d; font-size: 27px; }
.empty-state strong { color: #b8c5d1; font-size: 11px; }
.empty-state span:last-child { font-size: 10px; }

.loss-list { display: grid; gap: 0; }
.loss-list div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #26384a; color: #9aabbb; font-size: 11px; }
.loss-list div:last-child { border-bottom: 0; }
.loss-list strong { color: var(--text); font: 700 17px 'Barlow Condensed', sans-serif; }

.section-empty {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-empty h3 { margin: 10px 0 7px; font: 600 21px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.section-empty p { max-width: 440px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.stats-footer {
    display: flex;
    justify-content: space-between;
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0 25px;
    border-top: 1px solid #1e2d3c;
    color: #60758a;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

@media (max-width: 1120px) {
    .stats-header__inner { flex-wrap: wrap; gap: 0 22px; padding-top: 12px; }
    .brand { min-height: 45px; }
    .header-tag { margin-left: auto; }
    .main-nav { order: 3; width: 100%; min-height: 45px; overflow-x: auto; }
    .nav-link { padding: 0 12px; }
}

@media (max-width: 760px) {
    .stats-header__inner, .stats-main, .stats-footer { width: min(100% - 28px, 1320px); }
    .stats-main { padding-top: 28px; }
    .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 27px; }
    .heading-meta { align-items: flex-start; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .metric-card { min-height: 132px; padding: 13px; }
    .metric-label { font-size: 8px; }
    .overview-grid, .overview-grid--bottom { grid-template-columns: 1fr; }
    .panel { padding: 15px; }
}

@media (max-width: 420px) {
    .brand__name { font-size: 16px; }
    .header-tag { font-size: 7px; letter-spacing: .8px; }
    .nav-link { padding: 0 10px; font-size: 9px; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
}
