/* LCSM brand palette — see /areas/lcsm-brand.md
   Niveau Grotesk / Gelica are licensed fonts, not freely available as web
   fonts — using close web-safe substitutes until real font files are added. */
:root {
    --pine: #1c9e52;
    --pine-dark: #0d7f3b;
    --pine-darker: #006328;
    --slate: #4a6b8a;
    --amber: #c98a2c;
    --grey-light: #f0f0f0;
    --grey-mid: #e7e7e7;
    --black: #000000;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; /* Niveau Grotesk substitute */
    margin: 0;
    background: #fff;
    color: #222;
}

header {
    background: var(--black);
    color: white;
    border-bottom: 6px solid var(--pine);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.logo-badge {
    background: white;
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo-badge img {
    height: 76px;
    width: auto;
    display: block;
}

header h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 17px;
    padding: 16px 26px;
    border-radius: 10px 10px 0 0;
}

nav a:hover {
    color: white;
    background: #222;
}

nav a.active {
    color: white;
    background: var(--pine-darker);
}

.session-info {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #999;
    font-size: 13px;
    margin-bottom: 16px;
    white-space: nowrap;
}

.session-info a {
    color: var(--pine);
    text-decoration: none;
}

.session-info a:hover {
    text-decoration: underline;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px 20px;
}

h2 {
    color: var(--pine-darker);
    border-bottom: 2px solid var(--grey-mid);
    padding-bottom: 6px;
    font-size: 18px;
    margin-top: 40px;
}

h2:first-child { margin-top: 0; }

h3 {
    color: #555;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 10px 0;
}

p.as-of {
    color: #777;
    font-size: 13px;
    margin-top: -8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--grey-light);
    border-left: 5px solid var(--pine);
    border-radius: 6px;
    padding: 16px 18px;
}

.stat-card .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    margin-bottom: 6px;
}

.stat-card .value {
    font-size: 24px;
    font-weight: bold;
    color: var(--pine-darker);
}

.stat-card .sub {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.current-price {
    background: var(--black);
    color: white;
    border-radius: 10px;
    padding: 24px 30px;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.current-price .label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pine);
}

.current-price .value {
    font-size: 42px;
    font-weight: bold;
    color: white;
}

.current-price .sub {
    font-size: 13px;
    color: #aaa;
}

.area-section {
    border: 1px solid var(--grey-mid);
    border-radius: 10px;
    padding: 20px 24px 24px 24px;
    margin-bottom: 24px;
}

.area-section .section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.area-section .section-title a {
    font-size: 13px;
    color: var(--pine-dark);
    text-decoration: none;
}

.area-section .section-title a:hover { text-decoration: underline; }

.chart-card {
    background: var(--grey-light);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    height: 260px;
}

.chart-card.small { height: 180px; }

.chart-card canvas {
    width: 100% !important;
    height: 100% !important;
}

.range-toggle {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 0 16px 0;
}

.range-toggle a {
    text-decoration: none;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--grey-light);
    color: #444;
    border: 1px solid var(--grey-mid);
}

.range-toggle a:hover {
    background: var(--grey-mid);
}

.range-toggle a.active {
    background: var(--pine);
    color: white;
    border-color: var(--pine-dark);
}

.range-toggle select {
    font-family: inherit;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--grey-light);
    color: #444;
    border: 1px solid var(--grey-mid);
    cursor: pointer;
}

.chart-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    background: var(--black);
    color: white;
    padding: 10px;
    text-align: left;
}

td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--grey-mid);
}

tr:nth-child(even) td {
    background: var(--grey-light);
}

.empty-note {
    color: #777;
    font-style: italic;
    padding: 12px 0;
}

.source-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 0 16px 0;
}

.source-tabs a {
    text-decoration: none;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--grey-light);
    color: #444;
    border: 1px solid var(--grey-mid);
}

.source-tabs a:hover {
    background: var(--grey-mid);
}

.source-tabs a.active {
    background: var(--pine);
    color: white;
    border-color: var(--pine-dark);
}

.report-form {
    margin-bottom: 24px;
}

.report-form select {
    font-family: inherit;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--grey-light);
    color: #444;
    border: 1px solid var(--grey-mid);
    cursor: pointer;
}

.preset-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 12px 0 0 0;
}

.preset-btn {
    font-family: inherit;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: white;
    color: var(--pine-dark);
    border: 1px solid var(--pine);
    cursor: pointer;
}

.preset-btn:hover {
    background: var(--pine);
    color: white;
}

.preset-btn.preset-clear {
    color: #777;
    border-color: var(--grey-mid);
}

.preset-btn.preset-clear:hover {
    background: var(--grey-mid);
    color: #444;
}

#metric-filter {
    font-family: inherit;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 6px;
    border: 1px solid var(--grey-mid);
    width: 100%;
    max-width: 320px;
    margin: 14px 0 0 0;
    display: block;
}

.metric-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.metric-picker fieldset {
    border: 1px solid var(--grey-mid);
    border-radius: 8px;
    padding: 8px 14px 12px 14px;
}

.metric-picker legend {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    padding: 0 6px;
}

.metric-picker label {
    display: block;
    font-size: 13px;
    padding: 4px 0;
    cursor: pointer;
}

.metric-picker input[type="checkbox"] {
    margin-right: 8px;
}

.report-form button {
    background: var(--pine);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 14px;
    cursor: pointer;
}

.report-form button:hover {
    background: var(--pine-dark);
}
