:root {
    --bg: #eff4f2;
    --paper: #ffffff;
    --ink: #132126;
    --muted: #5a6a71;
    --line: #d5dfdb;
    --accent: #0f766e;
    --accent-strong: #115e59;
    --accent-soft: #d9f2ee;
    --warm: #cf6e2f;
    --up: #0f7d34;
    --down: #b72b34;
    --flat: #6d7780;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow: 0 14px 42px rgba(16, 34, 37, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    color: var(--ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(170deg, #f8fbfa 0%, var(--bg) 45%, #e7efec 100%);
}

.page-bg {
    background:
        radial-gradient(circle at 8% 5%, rgba(15, 118, 110, 0.13), transparent 39%),
        radial-gradient(circle at 95% 0%, rgba(207, 110, 47, 0.15), transparent 34%);
    inset: 0;
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
}

.container {
    margin: 0 auto;
    max-width: 1120px;
    padding: 0 20px;
}

.site-header {
    backdrop-filter: blur(8px);
    background: rgba(248, 251, 250, 0.86);
    border-bottom: 1px solid rgba(19, 33, 38, 0.08);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-wrap {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 14px 20px;
}

.brand {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: lowercase;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.site-nav a {
    border-radius: 999px;
    color: #294149;
    font-size: 0.94rem;
    font-weight: 700;
    padding: 8px 14px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    background: rgba(15, 118, 110, 0.11);
    color: #0d5e58;
    transform: translateY(-1px);
}

.site-nav a.is-active {
    background: var(--accent);
    color: #f7fffd;
}

main {
    padding: 42px 20px 60px;
}

[data-reveal] {
    animation: revealUp 0.65s ease both;
}

.hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 254, 252, 0.92));
    border: 1px solid rgba(17, 94, 89, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 26px;
    padding: 30px;
}

.eyebrow {
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.7rem);
    line-height: 1.15;
    margin: 8px 0 10px;
}

.lead {
    color: #31454d;
    font-size: clamp(1rem, 2vw, 1.12rem);
    margin: 0;
    max-width: 780px;
}

.meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 12px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.btn {
    background: rgba(15, 118, 110, 0.07);
    border: 1px solid rgba(15, 118, 110, 0.24);
    border-radius: 999px;
    color: #0d4f4b;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-width: 150px;
    padding: 10px 16px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    background: rgba(15, 118, 110, 0.16);
    box-shadow: 0 10px 18px rgba(17, 94, 89, 0.15);
    transform: translateY(-1px);
}

.btn.primary {
    background: linear-gradient(135deg, #0f766e, #11645e);
    border-color: transparent;
    color: #f5fffd;
}

.stats-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.stat-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(18, 28, 30, 0.06);
    min-height: 154px;
    padding: 18px 18px 16px;
}

.stat-card h2 {
    color: #395058;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    margin: 0;
    text-transform: uppercase;
}

.stat-card .value {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.42rem;
    line-height: 1.2;
    margin: 9px 0 5px;
}

.stat-card p {
    color: #4e5f66;
    margin: 0;
}

.table-section {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    padding: 20px;
}

.table-head {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.table-head h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    margin: 0;
}

.table-tools {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-form {
    align-items: center;
    display: flex;
    gap: 8px;
}

.filter-form label {
    color: #425861;
    font-size: 0.88rem;
    font-weight: 700;
}

.filter-form select,
.search-input {
    background: #f8fbfa;
    border: 1px solid #bfcfca;
    border-radius: 10px;
    color: #183038;
    font: inherit;
    min-height: 38px;
    padding: 7px 10px;
}

.search-input {
    min-width: min(250px, 72vw);
}

.filter-form select:focus,
.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
    outline: none;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    border-collapse: collapse;
    min-width: 610px;
    width: 100%;
}

.data-table thead th {
    background: #f0f7f4;
    border-bottom: 1px solid #cfe0db;
    color: #3f545c;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 12px 10px;
    position: sticky;
    text-align: left;
    text-transform: uppercase;
    top: 0;
    z-index: 1;
}

.data-table tbody td {
    border-bottom: 1px solid #e4ece9;
    color: #1c2e34;
    padding: 10px;
    vertical-align: middle;
}

.data-table tbody tr:nth-child(odd) {
    background: #fcfefe;
}

.data-table tbody tr:hover {
    background: #f3faf8;
}

.data-table .price {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.date-link {
    color: #0f5f58;
    font-weight: 700;
    text-decoration: none;
}

.date-link:hover {
    text-decoration: underline;
}

.is-up {
    color: var(--up);
    font-weight: 700;
}

.is-down {
    color: var(--down);
    font-weight: 700;
}

.is-flat,
.is-neutral {
    color: var(--flat);
    font-weight: 700;
}

.pagination {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.page-link {
    background: #edf7f4;
    border: 1px solid #c3d7d1;
    border-radius: 999px;
    color: #19454f;
    font-weight: 700;
    min-width: 92px;
    padding: 8px 14px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.page-link:hover {
    background: #ddf1ec;
    transform: translateY(-1px);
}

.page-status {
    color: #48626c;
    font-weight: 700;
}

.empty-filter-state {
    color: #6a757c;
    margin: 12px 0 0;
}

.chart-section {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    padding: 20px;
}

.chart-head {
    margin-bottom: 12px;
}

.chart-head h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    margin: 0 0 4px;
}

.chart-head p {
    color: #4e6168;
    margin: 0;
}

.chart-canvas-wrap {
    background: linear-gradient(170deg, rgba(242, 250, 247, 0.85), rgba(253, 255, 255, 0.95));
    border: 1px solid #dbe7e3;
    border-radius: var(--radius-md);
    min-height: 340px;
    padding: 12px;
}

.chart-canvas-wrap canvas {
    height: 320px !important;
    width: 100% !important;
}

.year-grid-section {
    margin-bottom: 24px;
}

.year-grid-head {
    margin-bottom: 12px;
}

.year-grid-head h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    margin: 0 0 4px;
}

.year-grid-head p {
    color: #4e6168;
    margin: 0;
}

.year-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.year-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(18, 28, 30, 0.06);
    padding: 16px;
}

.year-badge {
    color: #0f5f58;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.year-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    margin: 0 0 4px;
}

.year-close {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.36rem;
    margin: 0;
}

.year-close-date {
    color: #4f666d;
    font-size: 0.9rem;
    margin: 4px 0 10px;
}

.year-meta-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.year-meta-list li {
    color: #355058;
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.year-link {
    color: #0f5f58;
    font-weight: 800;
    text-decoration: none;
}

.year-link:hover {
    text-decoration: underline;
}

.detail-section {
    margin-bottom: 24px;
}

.breadcrumb {
    align-items: center;
    color: #4e626a;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 8px;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: #0f5f58;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.news-article {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 22px;
}

.news-article h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    line-height: 1.2;
    margin: 0 0 8px;
}

.news-lead {
    color: #2e444b;
    font-size: 1.03rem;
    margin: 0;
}

.news-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 18px 0;
}

.news-metric {
    background: #f8fbfa;
    border: 1px solid #d8e5e1;
    border-radius: var(--radius-sm);
    min-height: 124px;
    padding: 14px;
}

.news-metric h3 {
    color: #436169;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    margin: 0;
    text-transform: uppercase;
}

.news-metric .value {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.12rem;
    margin: 6px 0 4px;
}

.news-metric p {
    color: #3d5660;
    margin: 0;
}

.news-copy p {
    color: #274148;
    margin: 0 0 10px;
}

.article-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.article-nav a {
    background: #eef8f5;
    border: 1px solid #c5dad3;
    border-radius: 999px;
    color: #1d4c57;
    font-weight: 700;
    padding: 8px 13px;
    text-decoration: none;
}

.article-nav a:hover {
    background: #e0f2ec;
}

.year-nav {
    justify-content: space-between;
}

.year-archive-section {
    margin-bottom: 24px;
}

.year-strip-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
}

.year-strip-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(18, 28, 30, 0.06);
    padding: 14px;
}

.year-strip-card h2 {
    color: #405960;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    margin: 0;
    text-transform: uppercase;
}

.year-strip-card .value {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
    margin: 8px 0 4px;
}

.year-strip-card p {
    color: #415961;
    margin: 0;
}

.year-month-groups {
    display: grid;
    gap: 10px;
}

.month-group {
    background: var(--paper);
    border: 1px solid #d2dfdb;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(18, 28, 30, 0.04);
    overflow: hidden;
}

.month-group summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    list-style: none;
    padding: 14px 16px;
}

.month-group summary::-webkit-details-marker {
    display: none;
}

.month-summary-main h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    margin: 0 0 2px;
}

.month-summary-main p {
    color: #5a6a71;
    font-size: 0.9rem;
    margin: 0;
}

.month-summary-change {
    font-weight: 800;
    margin: 0;
    text-align: right;
}

.month-group-body {
    border-top: 1px solid #e2ece9;
    padding: 12px 14px 14px;
}

.month-group-meta {
    color: #50636b;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.month-table th:last-child,
.month-table td:last-child {
    min-width: 240px;
}

.month-ohlc {
    color: #425c64;
    font-size: 0.9rem;
    white-space: nowrap;
}

.home-panels {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px;
}

.panel h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.panel p {
    color: #4f5f66;
    margin: 0 0 12px;
}

.text-link {
    color: var(--accent-strong);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.faq-section {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    padding: 20px;
}

.faq-head h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.32rem;
    margin: 0 0 6px;
}

.faq-head p {
    color: #4f5f66;
    margin: 0 0 12px;
}

.faq-list {
    display: grid;
    gap: 8px;
}

.faq-item {
    background: #f9fcfb;
    border: 1px solid #d5e2dd;
    border-radius: var(--radius-sm);
    padding: 0 12px;
}

.faq-item summary {
    color: #17363e;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
    padding: 12px 0;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    color: #355058;
    margin: 0 0 12px;
}

.site-footer {
    border-top: 1px solid rgba(19, 33, 38, 0.09);
    margin-top: 40px;
    padding: 20px 0 28px;
}

.footer-wrap {
    align-items: center;
    color: #4f626b;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 12px;
    justify-content: space-between;
}

.footer-wrap a {
    color: #0f5f58;
}

.footer-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

.footer-links a {
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .year-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .year-strip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .header-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        padding: 24px 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .home-panels {
        grid-template-columns: 1fr;
    }

    .table-section {
        padding: 16px;
    }

    .chart-section {
        padding: 16px;
    }

    .table-head {
        align-items: stretch;
        flex-direction: column;
    }

    .chart-canvas-wrap {
        min-height: 280px;
        padding: 8px;
    }

    .chart-canvas-wrap canvas {
        height: 260px !important;
    }

    .year-grid {
        grid-template-columns: 1fr;
    }

    .year-strip-grid {
        grid-template-columns: 1fr;
    }

    .month-group summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .month-summary-change {
        text-align: left;
    }

    .month-table th:last-child,
    .month-table td:last-child {
        min-width: 180px;
    }

    .year-nav {
        justify-content: flex-start;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-article {
        padding: 16px;
    }

    .search-input {
        min-width: 100%;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
