html,
body {
    font-family: "opensans-bold", "PT Sans", "Trebuchet MS", Tahoma, sans-serif;
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
}


.header {
    margin-top: auto;
    background-color: #222;
    color: #999;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-left: 5%;
    padding-right: 5%;
}

.header-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.archive-banner {
    background-color: #ffe600;
    color: #222;
    font-size: 1.2em;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cern-directory {
    color: #fffeee;
    text-decoration: none;
    margin-left: 16px;
}

.cern-directory:hover {
    text-decoration: underline;
}

.content {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 7.5%;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 20px;
}


.footer {
    background-color: #222;
    color: #fffeee;
    font-size: 13px;
    padding-top: 40px;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
}


.footer-left {
    flex: 2;
    min-width: 220px;
    margin-right: 20px;
    max-width: 500px;
    text-align: left;
}

.footer-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 100px;
}

.cern-logo {
    width: 80px;
    height: auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        padding: 0 2%;
    }

    .footer-left {
        margin-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }

    .footer-right {
        justify-content: center;
        margin-bottom: 10px;
        width: 100%;
    }

    .cern-logo {
        width: 60px;
        margin: 0 auto;
        display: block;
    }
}

.archive-info {
    color: #444;
    font-size: 0.95em;
    text-align: center;
    margin-bottom: 4px;
}

.copyright {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.external-link {
    color: #fffeee;
    text-decoration: none;
}

.external-link:hover {
    text-decoration: underline;
}

#archived-content {
    width: 100%;
    flex: 1;
    border: none;
    display: block;
    min-height: 500px;
    position: relative;
    z-index: 1;
}