html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
}

.container {
    background-color: white;
    padding: 40px;
    box-shadow: none;
}


img {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
}

video.hero-video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto 30px;
    background-color: #000;
    box-sizing: border-box;
}

h1 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
    color: #222;
}

.hero {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    justify-content: flex-start;
    /* nudge the hero block slightly upward so title stays within the image */
    transform: translateY(-18px);
    margin-bottom: 22px;
}

.hero img {
    width: 320px;
    height: 240px;
    object-fit: cover;
    display: block;
}

.hero h1 {
    font-size: 2.2em;
    font-weight: normal;
    text-align: left;
    margin: 0 0 0 30px;
    line-height: 1.05;
}

.hero h2,
.hero .subtitle {
    font-size: 1.15em;
    font-weight: normal;
    margin: 0 0 20px 30px;
    line-height: 2.4;
    color: inherit;
}


p {
    margin-bottom: 20px;
    text-align: justify;
}

.results {
    margin-top: 30px;
}

.results ul {
    list-style: none;
    margin-left: 20px;
    padding-left: 0;
}

.results li {
    margin-bottom: 15px;
    margin-left: 15px;
    position: relative;
}

.results li::before {
    content: '>';
    position: absolute;
    left: -15px;
    font-weight: bold;
}

a {
    color: #004a99;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a:hover {
    color: white;
    background-color: #004a99;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 3px;
}

.container > a:hover {
    color: inherit;
    background-color: transparent;
    padding: 0;
}

.container > a:hover img {
    background-color: transparent;
}

h1 a {
    color: inherit;
    text-decoration: inherit;
}

h1 a:hover {
    color: white;
    background-color: #004a99;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 3px;
}

h1 a:hover .brand-blue {
    color: white;
}

.brand-blue {
    color: #004a99;
}

.lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.lang-switcher a {
    color: #004a99;
    text-decoration: none;
    font-weight: 600;
    padding: 0 4px;
    background-color: transparent;
    border-radius: 0;
}

.lang-switcher a:hover {
    color: white;
    background-color: #004a99;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 3px;
}

.acknowledgment {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    color: #666;
}

.ack-intro {
    text-align: center;
    margin-bottom: 15px;
}

.ack-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.ack-left {
    flex: 1;
    text-align: left;
}

.ack-center {
    flex: 1;
    text-align: center;
}

.ack-right {
    flex: 1;
    text-align: right;
}

@media (max-width: 620px) {
    body {
        padding: 14px;
    }
    .container {
        padding: 24px;
    }
    h1 {
        font-size: 1.6em;
        margin-bottom: 24px;
    }
    p {
        font-size: 0.97em;
    }
    .lang-switcher {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 16px;
    }
    .lang-switcher a {
        padding: 2px 6px;
    }
    .results li {
        margin-left: 12px;
    }
    .hero {
        flex-direction: column;
        align-items: flex-start;
        transform: none;
        margin-bottom: 16px;
    }
    .hero div {
        margin-left: 0;
        text-align: left;
        width: 100%;
    }
    .hero img {
        margin-bottom: 12px;
    }
    .hero h1,
    .hero h2,
    .hero .subtitle {
        margin-left: 0;
    }
    .acknowledgment {
        margin-top: 40px;
        padding-top: 18px;
    }
    .ack-footer {
        flex-direction: column;
        align-items: center;
    }
    .ack-left, .ack-center, .ack-right {
        text-align: center;
        margin-bottom: 8px;
    }
    video.hero-video {
        max-width: 100%;
    }
}
