/* Rules that used to sit at the bottom of main24.css (loaded last). */



/* Container for the video */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

/* Iframe styling */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    border: 0;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    z-index: 1000;
    border: none;
    border-radius: 999px;
    background: var(--color-trad-red);
    color: var(--color-white);
    font-family: var(--body-font);
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1rem 1.8rem;
    box-shadow: var(--shadow-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.back-to-top:focus-visible {
    outline: 3px solid var(--color-white);
    outline-offset: 3px;
}

.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.7rem 1.4rem;
        font-size: 1.2rem;
    }
}

.history-era {
    position: relative;
}

.history-era__caption {
    position: sticky;
    top: 0;
    z-index: 500;
    margin: 0;
    padding: 1.4rem 1.8rem;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: var(--color-black);
    font-family: var(--display-font);
    font-weight: 500;
    font-size: clamp(1.7rem, 2vw, 2.2rem);
    letter-spacing: 0.01em;
    text-transform: none;
    border-bottom: 1px solid var(--rule, #e6e3dd);
    border-left: 4px solid var(--color-accent);
}

@media (max-width: 768px) {
    .history-era__caption {
        font-size: 1.3rem;
        padding: 0.9rem 1.2rem;
        letter-spacing: 0.04em;
    }
}

.history-table-section {
    padding: 4rem 2rem 6rem;
    background: var(--color-grey-light-2);
}

.history-table__title {
    font-family: var(--display-font);
    font-weight: 500;
    font-size: clamp(2.4rem, 3.2vw, 3.2rem);
    margin-bottom: 2rem;
    text-align: center;
}

.history-table__wrapper {
    overflow-x: auto;
    background: var(--color-white);
    border: 1px solid var(--rule, #e6e3dd);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
}

.history-table th,
.history-table td {
    padding: 1.2rem 1.4rem;
    text-align: left;
    border-bottom: 1px solid var(--color-grey-light-3);
}

.history-table th {
    background: #1e2220;
    color: var(--color-white);
    font-family: var(--display-font);
    font-weight: 500;
    letter-spacing: 0.02em;
    position: sticky;
    top: 0;
}

.history-table tbody tr:nth-child(odd) {
    background: var(--color-white);
}

.history-table tbody tr:nth-child(even) {
    background: var(--color-grey-light-1);
}

@media (max-width: 600px) {

    .history-table th,
    .history-table td {
        padding: 0.8rem;
        font-size: 1.2rem;
    }
}
