:root {
    --primary: #0f766e;
    --primary-2: #155e75;
    --primary-dark: #083344;
    --accent: #f59e0b;
    --body: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #dbe3ef;
    --text: #132033;
    --muted: #667085;
    --shadow: 0 18px 45px rgba(15, 23, 42, .10);
    --csv: #2563eb;
    --xls: #16a34a;
    --pdf: #dc2626;
    --zip: #7c3aed;
    --doc: #64748b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 0%, rgba(20, 184, 166, .18), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(245, 158, 11, .16), transparent 26%),
        var(--body);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid rgba(219, 227, 239, .9);
}
.brand {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    letter-spacing: .04em;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 10px 20px rgba(15, 118, 110, .22);
}
.brand strong { display: block; font-size: 14px; }
.brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 26px 22px 46px;
}
.hero {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    border-radius: 32px;
    padding: clamp(28px, 5vw, 46px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(8, 51, 68, .98), rgba(15, 118, 110, .92)),
        linear-gradient(45deg, #083344, #0f766e);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 24px;
    align-items: end;
}
.hero::after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    right: -150px;
    top: -160px;
    border-radius: 50%;
    background: rgba(245, 158, 11, .25);
}
.hero-content, .hero-panel { position: relative; z-index: 1; }
.eyebrow {
    display: inline-flex;
    max-width: 780px;
    padding: 8px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .07em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255,255,255,.20);
}
h1 {
    margin: 0;
    font-size: clamp(36px, 7vw, 64px);
    line-height: .95;
    letter-spacing: -.04em;
}
.hero p {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.86);
    font-size: 17px;
    line-height: 1.55;
}
.hero-panel {
    border-radius: 26px;
    padding: 20px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.20);
    text-align: center;
}
.hero-panel span, .hero-panel small { display: block; color: rgba(255,255,255,.76); }
.hero-panel strong { display: block; font-size: 52px; line-height: 1; margin: 10px 0; }

.control-panel, .content-card {
    margin-top: 18px;
    border-radius: 26px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(219, 227, 239, .9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.control-panel { padding: 20px; }
.panel-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
}
.panel-title span, .section-kicker {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.panel-title strong { font-size: 18px; }
.year-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.year-btn {
    position: relative;
    overflow: hidden;
    min-height: 92px;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 16px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.year-btn::after {
    content: "→";
    position: absolute;
    right: 16px;
    top: 15px;
    color: var(--muted);
    font-weight: 900;
}
.year-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(15, 23, 42, .10); border-color: #99f6e4; }
.year-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: transparent;
    box-shadow: 0 18px 34px rgba(15, 118, 110, .26);
}
.year-btn.active::after { color: rgba(255,255,255,.9); }
.year-number { display: block; font-size: 34px; line-height: 1; font-weight: 950; letter-spacing: -.03em; }
.year-label { display: block; margin-top: 9px; color: inherit; opacity: .78; font-size: 13px; }

.tool-row {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    align-items: end;
    justify-content: space-between;
}
.search-box { flex: 1; display: block; }
.search-box span {
    display: block;
    margin: 0 0 6px 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.search-box input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 16px;
    outline: none;
    background: #fff;
    font-size: 14px;
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15, 118, 110, .12); }
.tool-actions { display: flex; gap: 8px; }
.tool-actions button {
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 14px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
}
.tool-actions button:hover { border-color: var(--primary); color: var(--primary-dark); }

.content-card { overflow: hidden; }
.section-heading {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.section-heading h2 { margin: 4px 0 0; font-size: 24px; letter-spacing: -.02em; }
.counter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: #ccfbf1;
    font-size: 12px;
    font-weight: 800;
}
.months-container { padding: 10px 16px 18px; }
.month-card {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .16s ease, border-color .16s ease;
}
.month-card.open { box-shadow: 0 12px 26px rgba(15, 23, 42, .07); border-color: rgba(15, 118, 110, .35); }
.month-header {
    width: 100%;
    border: 0;
    padding: 16px 18px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
}
.month-header:hover { background: #f0fdfa; }
.month-left { display: flex; align-items: center; gap: 12px; }
.month-number {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: var(--primary-dark);
    background: #ccfbf1;
}
.month-title { display: block; font-size: 16px; font-weight: 900; color: var(--text); }
.month-status { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.chevron { transition: transform .2s ease; color: var(--primary-dark); font-weight: 900; }
.month-card.open .chevron { transform: rotate(180deg); }
.month-panel { display: none; border-top: 1px solid var(--border); background: var(--surface-soft); }
.month-card.open .month-panel { display: block; }
.table-wrapper { overflow-x: auto; }
table { width: 100%; min-width: 850px; border-collapse: separate; border-spacing: 0; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; font-size: 13px; }
thead th {
    background: #f8fafc;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 900;
}
tbody tr { background: #fff; }
tbody tr:nth-child(even) { background: #fbfdff; }
tbody tr:hover { background: #f0fdfa; }
.numeral-name { font-size: 14px; font-weight: 950; color: var(--primary-dark); margin-bottom: 4px; }
.numeral-desc { color: var(--muted); line-height: 1.4; }
.published-date { white-space: nowrap; color: #475569; font-weight: 700; }
.files-cell { display: flex; flex-wrap: wrap; gap: 8px; }
.file-pill {
    max-width: 360px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 6px 10px 6px 6px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.file-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15,23,42,.10); border-color: #99f6e4; }
.file-icon {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 950;
}
.file-icon.ext-csv { background: var(--csv); }
.file-icon.ext-xls { background: var(--xls); }
.file-icon.ext-pdf { background: var(--pdf); }
.file-icon.ext-zip { background: var(--zip); }
.file-icon.ext-oth { background: var(--doc); }
.file-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-row td { padding: 20px; text-align: center; color: var(--muted); }
.hidden-by-search { display: none; }

@media (max-width: 860px) {
    .page { padding: 16px 12px 34px; }
    .brand { padding: 10px 12px; }
    .hero { grid-template-columns: 1fr; border-radius: 24px; }
    .hero-panel { text-align: left; }
    .panel-title, .section-heading, .tool-row { flex-direction: column; align-items: stretch; }
    .tool-actions { width: 100%; }
    .tool-actions button { flex: 1; }
    .months-container { padding: 8px; }
}
