:root {
    --bg: #000000;
    --surface: #000000;
    --surface-muted: #000000;
    --border: rgba(255, 255, 255, 0.25);
    --text-primary: #ffffff;
    --text-muted: #f5f5f5;
    --accent: #1ca350;
    --accent-hover: #29b675;
    --shadow: 0 25px 75px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 35px 100px rgba(0, 0, 0, 0.7);
    font-family: 'Lato', sans-serif;
    --font-heading: 'Instrument Sans', sans-serif;
    --font-body: 'Lato', sans-serif;
    line-height: 1.6;
    color-scheme: dark;
}

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

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text-primary);
}

nav {
    position: sticky;
    top: 1rem;
    z-index: 50;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem clamp(1.5rem, 4vw, 3.5rem);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav img.nav-logo {
    height: 22px;
    width: auto;
    display: block;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

nav a {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.resources-page {
    padding-bottom: 4rem;
}

.resources-hero {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
    padding-top: clamp(4rem, 8vw, 6rem);
}

.resources-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.35rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.resources-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.table-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3.5rem);
}

.table-container {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}

.table-header {
    display: flex;
    background: #000000;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-body {
    overflow-y: auto;
}

.tr {
    display: flex;
    border-bottom: 1px solid var(--border);
}

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

.tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.th, .td {
    padding: 1.25rem;
    flex-shrink: 0;
}

.th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.td {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Column Widths */
.title-col {
    width: 30%;
    font-weight: 600;
    color: var(--text-primary);
}

.source-col {
    width: 15%;
}

.desc-col {
    width: 45%;
}

.link-col {
    width: 10%;
    text-align: right;
}

.tag {
    font-size: 0.85rem;
    color: var(--accent);
    background: rgba(192, 197, 194, 0.15);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(83, 209, 137, 0.3);
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

.link-col a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.link-col a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.methodology-footer {
    padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem);
    border-top: 1px solid var(--border);
    background: var(--surface-muted);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
}

.footer-logo-img {
    height: 24px;
    width: auto;
    margin-top: 10px;
}

.footer-methodology {
    text-align: left;
}

.footer-methodology h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-methodology p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 800px;
    line-height: 1.7;
}

.methodology-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.methodology-link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .table-container {
        overflow-x: auto;
        display: block;
    }
    
    .table-header, .table-body {
        min-width: 900px; /* Force minimum width for scrolling */
    }
    
    .tr {
        display: flex;
    }
}

@media (max-width: 768px) {
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}