/* Clickable References - Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
}

body.resources {
    overflow: auto;
    background-color: #050505;
}

/* Main Report View Container */
.report-view {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Back Button */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.back-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.02);
}

.back-arrow {
    font-size: 20px;
}

/* Report Image Link and Image */
.report-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100vh - 80px);
    cursor: pointer;
}

.report-image {
    max-width: 95%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-image:hover {
    transform: scale(1.01);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Description in Bottom Right */
.description {
    position: absolute;
    bottom: 70px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #cccccc;
    padding: 10px 15px;
    font-size: 13px;
    max-width: 300px;
    border-radius: 5px;
    text-align: right;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
    color: #000000;
    background: #f0f0f0;
}

.nav-link.active {
    color: #0066cc;
    background: #e6f3ff;
    font-weight: 600;
}

.reference-link {
    position: absolute;
    bottom: 84px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    font-size: 13px;
}

.reference-link a {
    color: #ffffff;
    text-decoration: underline;
    letter-spacing: 0.03em;
}

.resources-page {
    min-height: 100vh;
    padding: 48px 24px;
    max-width: 960px;
    margin: 0 auto;
}

.resources-header {
    margin-bottom: 36px;
}

.resources-header h1 {
    font-size: 32px;
    margin-bottom: 6px;
}

.resources-header .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 12px;
    color: #f2c94c;
    margin-bottom: 8px;
}

.resources-header p {
    color: #d8d8d8;
    font-size: 15px;
    max-width: 600px;
}

.home-link {
    display: inline-flex;
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.home-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.resource-section + .resource-section {
    margin-top: 28px;
}

.resource-section h2 {
    font-size: 20px;
    color: #ffffff;
}

.resource-section ul {
    list-style: square;
    padding-left: 20px;
    margin-top: 8px;
    color: #bdc4c9;
}

.resource-section li {
    margin-bottom: 6px;
}

.resource-section li a {
    color: #ffffff;
    text-decoration: underline;
}

.resource-section.appendices a {
    color: #ffffff;
    text-decoration: underline;
}

.appendices {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.appendices:first-of-type {
    border-top: none;
    margin-top: 24px;
    padding-top: 12px;
}

.pdf-links ul {
    list-style: none;
    padding-left: 0;
}

.pdf-links li {
    margin-bottom: 6px;
}

.pdf-links a {
    font-weight: 600;
    text-decoration: none;
    color: #f2c94c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bottom-nav {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .nav-link {
        font-size: 13px;
        padding: 6px 12px;
    }

    .description {
        bottom: 150px;
        right: 10px;
        left: 10px;
        max-width: none;
        text-align: center;
        font-size: 12px;
    }

    .back-btn {
        top: 10px;
        left: 10px;
        padding: 8px 15px;
        font-size: 14px;
    }
}
