@font-face {
    font-family: 'Liberation Sans';
    src: url('/static/css/LiberationSans-Regular-webfont.woff2') format('woff2'),
         url('/static/css/LiberationSans-Regular-webfont.woff') format('woff');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    color-scheme: light;
    --at-bg: #e8f0e9;
    --at-bg-soft: #deeade;
    --at-panel: #2a6b3e;
    --at-panel-strong: #1e5230;
    --at-card: #ffffff;
    --at-card-border: rgba(0, 60, 20, 0.15);
    --at-text: #152219;
    --at-text-soft: #3d5e48;
    --at-accent: #1a7a3b;
    --at-accent-strong: #156030;
    --at-shadow: 0 2px 10px rgba(0, 0, 0, 0.11);
    --at-radius-xl: 22px;
    --at-radius-lg: 14px;
    --at-radius-md: 9px;
    --at-max: 1380px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Liberation Sans', sans-serif;
    color: var(--at-text);
    background: var(--at-bg);
    min-height: 100vh;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

p,
li {
    color: var(--at-text-soft);
    line-height: 1.7;
}

h1,
h2,
h3,
p,
ul {
    margin-top: 0;
}

.at-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    max-width: var(--at-max);
    margin: 0 auto;
    padding: 24px;
}

.at-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px;
    background: var(--at-panel-strong);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--at-radius-xl);
    box-shadow: var(--at-shadow);
    color: #eef5ea;
}

.at-sidebar-top,
.at-sidebar-section,
.at-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.at-sidebar-section,
.at-sidebar-footer {
    padding-top: 6px;
}

.at-sidebar-section-label {
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: #9fd7b0;
}

.at-sidebar p,
.at-sidebar li {
    color: rgba(210, 235, 218, 0.82);
}

.at-sidebar-card {
    color: var(--at-text);
}

.at-sidebar-card p,
.at-sidebar-card li {
    color: var(--at-text-soft);
}

.at-sidebar .at-nav-kicker,
.at-sidebar .at-sidebar-label,
.at-sidebar .at-brand-copy span {
    color: #72dc9b;
}

.at-brand {
    display: flex;
    gap: 16px;
    align-items: center;
}

.at-brand-mark {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    padding: 10px;
    background: linear-gradient(180deg, #f5fbf6, #dfeee2);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 0 0 1px rgba(26, 122, 59, 0.10);
}

.at-brand-logo {
    width: 100%;
    max-width: 62px;
}

.at-card h3,
.at-link-card span,
.at-link-card h3 {
    color: var(--at-text);
}

.at-brand-copy strong,
.at-footer-title {
    color: #eef5ea;
}

.at-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.at-brand-copy strong {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
}

.at-brand-copy span,
.at-card-kicker,
.at-eyebrow,
.at-sidebar-label,
.at-nav-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    color: var(--at-accent);
}

.at-nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: rgba(255, 255, 255, 0.10);
    color: #eef5ea;
    border-radius: 999px;
    padding: 12px 16px;
    font: inherit;
    cursor: pointer;
}

.at-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.at-nav-link {
    display: flex;
    width: 100%;
    gap: 12px;
    align-items: baseline;
    padding: 14px 16px;
    border-radius: 16px;
    background: transparent;
    border: 1px solid transparent;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.at-nav-link:hover,
.at-nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
    outline: none;
}

.at-nav-link.is-active {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.28);
}

.at-sidebar-card,
.at-card,
.at-link-card,
.at-note-panel,
.at-signal-band {
    background: var(--at-card);
    border: 1px solid var(--at-card-border);
    border-radius: var(--at-radius-lg);
    box-shadow: var(--at-shadow);
}

.at-sidebar-card {
    padding: 20px;
}

.at-sidebar-card h1 {
    font-size: 1.65rem;
    line-height: 1.15;
    margin-bottom: 12px;
}

.at-lang-switch {
    display: flex;
    gap: 12px;
}

.at-lang-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.at-lang-button.is-active {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.at-lang-img {
    width: 28px;
    height: 28px;
}

.at-main {
    min-width: 0;
    padding: 32px;
    background: transparent;
    border: none;
    border-radius: var(--at-radius-xl);
}

.at-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 32px;
}

.at-hero-copy h2,
.at-section h2 {
    font-size: clamp(2rem, 3.6vw, 3.8rem);
    line-height: 1.08;
    margin-bottom: 18px;
}

.at-section h2 {
    font-size: clamp(1.7rem, 2.8vw, 2.8rem);
    line-height: 1.04;
}

.at-lead {
    font-size: 1.08rem;
    max-width: 62ch;
}

.at-button-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.at-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.at-button:hover,
.at-button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.at-button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #28964c, #1e7a3b);
}

.at-button-secondary {
    border: 1px solid rgba(26, 122, 59, 0.28);
    background: rgba(26, 122, 59, 0.07);
    color: var(--at-text);
}

.at-hero-visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: center;
}

.at-hero-img-card {
    padding: 0;
    overflow: hidden;
    border-radius: var(--at-radius-lg);
    border: 1px solid var(--at-card-border);
    box-shadow: var(--at-shadow);
}

.at-hero-img-card img {
    width: 100%;
    display: block;
}

.at-qsl-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.at-portrait {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.at-hero-flags {
    display: flex;
    gap: 10px;
}

.at-hero-flags img {
    flex: 1;
    height: 64px;
    object-fit: cover;
    border-radius: var(--at-radius-md);
    border: 1px solid var(--at-card-border);
}

.at-section {
    margin-top: 28px;
}

.at-grid {
    display: grid;
    gap: 18px;
}

.at-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.at-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.at-card,
.at-link-card,
.at-note-panel,
.at-signal-band {
    padding: 22px;
}

.at-card p:last-child,
.at-note-panel p:last-child {
    margin-bottom: 0;
}

.at-card-kicker,
.at-eyebrow {
    margin-bottom: 10px;
}

.at-signal-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.at-signal-mark {
    width: min(180px, 32vw);
    opacity: 0.92;
}

.at-story-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: start;
}

.at-story-media {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.at-portrait {
    border-radius: var(--at-radius-xl);
    box-shadow: var(--at-shadow);
    border: 1px solid var(--at-card-border);
    background: #f7faf7;
}

.at-card-overlay {
    position: static;
    width: 100%;
    background: #f0f7f2;
}

.at-meta-list,
.at-facts-list {
    margin: 0;
    padding-left: 18px;
}

.at-meta-list {
    list-style: none;
    padding-left: 0;
}

.at-meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(26, 122, 59, 0.12);
}

.at-meta-list li:last-child {
    border-bottom: 0;
}

.at-meta-list strong,
.at-link-card span,
.at-footer-title {
    font-weight: 700;
}

.at-note-panel {
    background: #f0f7f2;
    border-color: rgba(26, 122, 59, 0.18);
}

.at-contact-card,
.at-qsl-card {
    min-height: 100%;
}

.at-qsl-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.at-qsl-image {
    min-height: 340px;
}

.at-qsl-meta {
    padding: 20px 22px 24px;
}

.at-address {
    font-style: normal;
    color: var(--at-text);
    line-height: 1.8;
    margin: 18px 0 0;
}

.at-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.at-link-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    min-height: 132px;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.at-link-card > div,
.at-link-card > span,
.at-link-card > h3 {
    width: 100%;
}

.at-link-card:hover,
.at-link-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(26, 122, 59, 0.35);
    background: rgba(26, 122, 59, 0.06);
    outline: none;
}

.at-link-card.is-static {
    pointer-events: none;
}

.at-banner {
    width: 100%;
    max-width: 100%;
    max-height: 96px;
    object-fit: contain;
    flex-shrink: 0;
}

.at-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: var(--at-max);
    margin: 0 auto 24px;
    padding: 18px 28px;
    background: var(--at-panel-strong);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--at-radius-xl);
    color: #eef5ea;
}

.at-footer p {
    color: rgba(210, 235, 218, 0.82);
}

.at-footer p {
    margin: 0;
}

.at-footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.at-main a:not(.at-button):hover,
.at-main a:not(.at-button):focus-visible {
    color: var(--at-accent-strong);
    outline: none;
}

.at-footer-links a:hover,
.at-footer-links a:focus-visible {
    color: #72dc9b;
    outline: none;
}

@media (max-width: 1080px) {
    .at-shell {
        grid-template-columns: 1fr;
    }

    .at-sidebar {
        position: relative;
        top: 0;
    }

    .at-story-layout,
    .at-hero,
    .at-grid-2,
    .at-grid-3,
    .at-link-grid {
        grid-template-columns: 1fr;
    }

    .at-story-media {
        min-height: auto;
    }

    .at-portrait {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .at-shell {
        padding: 16px;
        gap: 16px;
    }

    .at-sidebar,
    .at-main,
    .at-footer {
        border-radius: 22px;
    }

    .at-sidebar,
    .at-main {
        padding: 20px;
    }

    .at-nav-toggle {
        display: inline-flex;
        align-self: flex-start;
    }

    .at-nav {
        display: none;
    }

    .at-nav.is-open {
        display: flex;
    }

    .at-sidebar-top {
        gap: 16px;
    }

    .at-hero-media {
        min-height: 320px;
    }

    .at-hero-panel-main {
        inset: 16px 8px 54px 8px;
    }

    .at-hero-panel-flag {
        width: 104px;
        height: 104px;
    }

    .at-signal-band,
    .at-footer,
    .at-link-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .at-link-card {
        min-height: 0;
    }

    .at-banner {
        width: 100%;
        max-width: 180px;
    }
}
