/* =================================================
   Local Font Asset Self-Hosting Configuration
================================================= */
@font-face {
    font-family: 'IM Fell DW Pica';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/im-fell-dw-pica-v16-latin-regular.woff2') format('woff2'); 
}

/* =================================================
   OTSOG Core Styling & Variable Definitions
================================================= */
:root {
    --background: #292929;
    --surface: #232323;
    --card-surface: #303030;
    --border: #444444;
    --text: #ECECEC;
    --muted: #A8A8A8;
    --gold: #FEC711;
    --title: #D9B94A;
    --cyan: #11EEFE;
}

/* =================================================
   Base Setup
================================================= */
body {
    background-color: var(--background);
    color: var(--text);
    font-family: "Open Sans", sans-serif;
    font-size: 17px;
    line-height: 1.85;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: .2s ease;
}

a:hover {
    color: var(--gold);
}

::selection {
    background: var(--gold);
    color: #292929;
}

/* =================================================
   Layout & Dashboard Containers
================================================= */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 30px 20px;
    text-align: center;
}

header h1 {
    font-family: "IM Fell DW Pica", serif;
    color: var(--gold);
    font-size: 2.8rem;
    font-weight: normal;
    margin: 0;
    letter-spacing: .03em;
}

header h1:after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--cyan);
    margin: 20px auto 0;
}

.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* =================================================
   KPI Cards Component
================================================= */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.kpi-card {
    background: var(--card-surface);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 4px;
    text-align: center;
}

.kpi-card h3 {
    margin: 0 0 10px 0;
    color: var(--cyan);
    font-size: 0.85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.kpi-card .value {
    font-family: "IM Fell DW Pica", serif;
    color: var(--text);
    font-size: 2.2rem;
    font-weight: normal;
    line-height: 1.2;
}

.kpi-card .unit {
    font-size: 1rem;
    color: var(--muted);
    margin-left: 4px;
}

/* =================================================
   Charts Grid Component
================================================= */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

@media (max-width: 600px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.chart-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 4px;
}

.chart-wrapper h2 {
    font-family: "IM Fell DW Pica", serif;
    color: var(--title);
    font-size: 1.75rem;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

