@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../assets/fonts/InterVariable.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url("../assets/fonts/InterVariable-Italic.woff2") format("woff2");
}

:root {
    --content-max-width: 960px;
}

.light, .rust {
    --links: #003399;
    --sidebar-active: #003399;
    --esw-accent: #003399;
    --esw-panel: #f0f4fc;
    --esw-border: #d5dff0;
}

.navy, .coal, .ayu {
    --links: #9bbdff;
    --sidebar-active: #9bbdff;
    --esw-accent: #9bbdff;
    --esw-panel: rgba(120, 160, 240, 0.08);
    --esw-border: rgba(155, 189, 255, 0.25);
}

html, body, button, input, select, textarea, .menu-title {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
    line-height: 1.65;
}

.content h1, .content h2, .content h3 {
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.content h1 {
    color: var(--esw-accent);
}

.content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 8px;
}

.content .esw-article-image img {
    max-width: min(100%, 640px);
    max-height: 360px;
    width: auto;
    cursor: zoom-in;
}

.esw-brand {
    padding: 2rem 0 1rem;
    text-align: center;
    border-bottom: 1px solid var(--esw-border);
}

.esw-brand img {
    width: min(420px, 100%);
    padding: 16px;
    background: #fff;
    box-sizing: border-box;
}

.esw-brand p {
    color: var(--esw-accent);
    font-weight: 600;
}

.esw-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.esw-facts > div {
    padding: 1.25rem;
    background: var(--esw-panel);
    border: 1px solid var(--esw-border);
    border-radius: 12px;
}

.esw-facts strong, .esw-facts span {
    display: block;
}

.esw-facts strong {
    color: var(--esw-accent);
}

.esw-facts span {
    margin-top: 0.4rem;
    font-size: 0.875em;
}

.esw-programme-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1.5rem;
    margin: 2rem 0;
}

.esw-programme-images a {
    min-width: 0;
}

.content .esw-programme-images img {
    width: 100%;
    margin: 0;
}

.content a.esw-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.7rem 1.1rem;
    background: #ff8139;
    color: #1d1d1d;
    border-radius: 8px;
    font-weight: 650;
    text-decoration: none;
}

.content a.esw-button:hover {
    background: #ff9a61;
}

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--esw-accent);
    outline-offset: 4px;
}

.content table {
    width: 100%;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .esw-facts, .esw-programme-images {
        grid-template-columns: 1fr;
    }

    .content table {
        display: block;
        overflow-x: auto;
    }
}
