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

:root {
    --c-primary: #1F1744;
    --c-cyan: #38BACC;
    --c-orange: #F1882D;
    --c-navy: #293283;
    --c-blue: #3980BC;
    --c-white: #FFFFFF;

    --bg: #0d0b1f;
    --bg-card: rgba(31, 23, 68, 0.5);
    --bg-card-h: rgba(56, 186, 204, 0.06);
    --border: rgba(255, 255, 255, 0.07);
    --border-act: rgba(56, 186, 204, 0.35);

    --text: #eef0f8;
    --muted: rgba(255, 255, 255, 0.42);

    --alto: #38BACC;
    --medio-alto: #68d391;
    --medio: #3980BC;
    --medio-bajo: #F1882D;
    --bajo: #e05068;

    --success: #38BACC;
    --danger: #e05068;
    --warning: #F1882D;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 0% 0%, rgba(41, 50, 131, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(56, 186, 204, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 60% 40%, rgba(31, 23, 68, 0.8) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(56, 186, 204, 0.4);
    border-radius: 4px;
}

::selection {
    background: rgba(56, 186, 204, 0.25);
    color: #fff;
}

/* ────────────────────────────────────────
   HEADER
──────────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 11, 31, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 0 2.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--c-navy), var(--c-cyan));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.75rem;
    color: #fff;
    letter-spacing: -0.5px;
    box-shadow: 0 0 16px rgba(56, 186, 204, 0.3);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .top {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1;
}

.logo-text .bottom {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--c-white);
    line-height: 1.2;
}

.logo-text .bottom span {
    color: var(--c-cyan);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-region {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-cyan);
    border: 1px solid rgba(56, 186, 204, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(56, 186, 204, 0.08);
}

.badge-year {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* ────────────────────────────────────────
   MAIN / LAYOUT
──────────────────────────────────────── */
main {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 2.5rem 5rem;
}

/* ────────────────────────────────────────
   HERO
──────────────────────────────────────── */
.hero {
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.hero-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-cyan);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--c-cyan);
    border-radius: 1px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 0.5rem;
    color: var(--c-white);
}

.hero-title .accent {
    color: var(--c-cyan);
}

.hero-title .accent2 {
    color: var(--c-orange);
}

.hero-sub {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 540px;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-summary {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.summary-chip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.2rem;
    min-width: 110px;
    transition: border-color 0.2s;
}

.summary-chip:hover {
    border-color: rgba(56, 186, 204, 0.25);
}

.summary-val {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--c-cyan);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.summary-lbl {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.podium-grid {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.podium-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    min-width: 180px;
    flex: 1;
    transition: border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.podium-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--c-navy), var(--c-cyan));
    opacity: 0;
    transition: opacity 0.2s;
}

.podium-block:hover {
    border-color: rgba(56, 186, 204, 0.2);
}

.podium-block:hover::before {
    opacity: 1;
}

.podium-title {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-cyan);
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.podium-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0;
    border-radius: 4px;
    transition: background 0.15s;
}

.podium-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.podium-medal {
    font-size: 0.8rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.podium-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-row--gold .podium-name {
    color: #fbbf24;
}

.podium-row--silver .podium-name {
    color: #cbd5e1;
}

.podium-row--bronze .podium-name {
    color: #c27c45;
}

.podium-pts {
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.podium-row--gold .podium-pts {
    color: #fbbf24;
}

.podium-row--silver .podium-pts {
    color: #cbd5e1;
}

.podium-row--bronze .podium-pts {
    color: #c27c45;
}

/* ────────────────────────────────────────
   TABS
──────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.tab {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    padding: 0.75rem 1.4rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -1px;
    white-space: nowrap;
}

.tab:hover {
    color: var(--text);
}

.tab.active {
    color: var(--c-cyan);
    border-bottom-color: var(--c-cyan);
    background: none;
}

/* ────────────────────────────────────────
   CONTROLS
──────────────────────────────────────── */
.controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    align-items: flex-end;
}

.ctrl-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-width: 140px;
}

.ctrl-group.ctrl-auto {
    flex: 0 0 auto;
}

.ctrl-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

select {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.65rem 2.2rem 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2338BACC' d='M5 7L1 2h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
}

select:focus {
    border-color: var(--c-cyan);
}

select option {
    background: #1a1740;
}

/* ────────────────────────────────────────
   BUTTONS
──────────────────────────────────────── */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--c-cyan), var(--c-blue));
    color: #fff;
    box-shadow: 0 0 20px rgba(56, 186, 204, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(56, 186, 204, 0.4);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-act);
    color: var(--c-cyan);
}

.btn-ghost:hover {
    background: rgba(56, 186, 204, 0.08);
}

.btn-close-panel {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-panel:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* ────────────────────────────────────────
   GRID LAYOUTS
──────────────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.col-span-2 {
    grid-column: span 2;
}

/* ────────────────────────────────────────
   CARDS
──────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, background 0.25s;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 186, 204, 0.25), transparent);
}

.card:hover {
    border-color: rgba(56, 186, 204, 0.18);
    background: rgba(31, 23, 68, 0.65);
}

.card-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-cyan);
    box-shadow: 0 0 8px var(--c-cyan);
    flex-shrink: 0;
}

/* ────────────────────────────────────────
   CHART WRAPPER
──────────────────────────────────────── */
.chart-wrap {
    position: relative;
    height: 280px;
}

/* ────────────────────────────────────────
   SCHOOL GRID
──────────────────────────────────────── */
.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1rem;
}

.school-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.22s;
    position: relative;
    overflow: hidden;
}

.school-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--c-cyan), var(--c-orange));
    transition: width 0.3s ease;
}

.school-card:hover {
    border-color: rgba(56, 186, 204, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.school-card:hover::after {
    width: 100%;
}

.school-card.selected {
    border-color: var(--c-cyan);
    background: rgba(56, 186, 204, 0.07);
    box-shadow: 0 0 24px rgba(56, 186, 204, 0.12);
}

.school-card.selected::after {
    width: 100%;
}

.school-name {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--c-white);
}

.school-meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.pill {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.pill--alto {
    background: rgba(56, 186, 204, 0.15);
    border-color: rgba(56, 186, 204, 0.35);
    color: var(--c-cyan);
}

.pill--medio-alto {
    background: rgba(57, 128, 188, 0.15);
    border-color: rgba(57, 128, 188, 0.35);
    color: var(--c-blue);
}

.pill--medio {
    background: rgba(41, 50, 131, 0.25);
    border-color: rgba(41, 50, 131, 0.45);
    color: #8b9cf8;
}

.pill--medio-bajo {
    background: rgba(241, 136, 45, 0.15);
    border-color: rgba(241, 136, 45, 0.35);
    color: var(--c-orange);
}

.pill--bajo {
    background: rgba(224, 80, 104, 0.15);
    border-color: rgba(224, 80, 104, 0.35);
    color: var(--danger);
}

.school-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.score-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
}

.score-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.score-val {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* ────────────────────────────────────────
   DIFF INDICATORS
──────────────────────────────────────── */
.diff {
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 4px;
}

.diff--up {
    color: var(--success);
}

.diff--down {
    color: var(--danger);
}

.diff--neutral {
    color: var(--muted);
}

/* ────────────────────────────────────────
   DETAIL PANEL
──────────────────────────────────────── */
#detalle-panel {
    background: rgba(31, 23, 68, 0.6);
    border: 1px solid var(--border-act);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: none;
    position: relative;
    overflow: hidden;
}

#detalle-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--c-navy), var(--c-cyan), var(--c-orange));
}

#detalle-panel.visible {
    display: block;
    animation: panelIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-title {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--c-white);
}

#panel-meta {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 0.3rem;
}

/* ────────────────────────────────────────
   IDPS BARS
──────────────────────────────────────── */
.idps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.idps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.idps-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
}

.idps-val {
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--c-cyan);
}

.idps-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.idps-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--c-navy), var(--c-cyan));
    width: 0%;
    transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(56, 186, 204, 0.3);
}

/* ────────────────────────────────────────
   COMPARE PILLS
──────────────────────────────────────── */
.compare-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.compare-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.18s;
    background: var(--bg-card);
    color: var(--muted);
}

.compare-pill:hover {
    border-color: rgba(56, 186, 204, 0.3);
    color: var(--text);
}

.compare-pill.active {
    background: rgba(56, 186, 204, 0.12);
    border-color: var(--border-act);
    color: var(--c-cyan);
}

/* ────────────────────────────────────────
   TABLES
──────────────────────────────────────── */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
}

.compare-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.compare-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-weight: 500;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table tr:hover td {
    background: rgba(56, 186, 204, 0.04);
}

.compare-table .td-name {
    font-weight: 700;
    color: var(--c-white);
}

.compare-table .td-empty {
    color: var(--muted);
    padding: 1.5rem;
}

.compare-table .best {
    color: var(--success);
    font-weight: 800;
}

.compare-table .worst {
    color: var(--danger);
}

.compare-table .diff--up {
    color: var(--success);
    font-weight: 700;
}

.compare-table .diff--down {
    color: var(--danger);
    font-weight: 700;
}

.compare-table .diff--neutral {
    color: var(--muted);
}

.idps-prom {
    color: var(--c-cyan);
    font-weight: 800;
}

/* ────────────────────────────────────────
   VIEWS
──────────────────────────────────────── */
.view {
    display: none;
}

.view.active {
    display: block;
}

/* ────────────────────────────────────────
   SECTION DIVIDER
──────────────────────────────────────── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 186, 204, 0.2), transparent);
    margin: 2rem 0;
}

/* ────────────────────────────────────────
   ANIMATIONS
──────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.45s ease forwards;
    opacity: 0;
}

/* ────────────────────────────────────────
   FOOTER
──────────────────────────────────────── */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--c-cyan);
    font-weight: 700;
}

.footer-brand::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--c-navy), var(--c-cyan));
    border-radius: 4px;
}

/* ────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────── */
@media (max-width: 960px) {
    main {
        padding: 1.5rem 1.5rem 4rem;
    }

    header {
        padding: 0 1.5rem;
    }

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

    .col-span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    main {
        padding: 1rem 1rem 3rem;
    }

    header {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .tabs {
        overflow-x: auto;
    }

    .tab {
        padding: 0.65rem 1rem;
    }

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

    .badge-year {
        display: none;
    }
}