/**
 * Site-specific overrides during Webcard → custom migration.
 * Add new rules here; avoid editing assets/css/theme.css (Webcard export).
 */

figure {
    margin: 0;
}

#main-content {
    outline: none;
}

/* Slider headline link */
#ed-3291818648 h2 a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 0.2em;
    transition: text-decoration-color 0.2s ease;
}

#ed-3291818648 h2 a:hover,
#ed-3291818648 h2 a:focus-visible {
    text-decoration-color: currentColor;
}

/* Article pages */
.article-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.article-page__back {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.article-page__back a {
    color: #333;
    text-decoration: none;
}

.article-page__back a:hover,
.article-page__back a:focus-visible {
    text-decoration: underline;
}

.article-page__header h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.25;
}

.article-page__lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: #444;
}

.article-page__body {
    font-size: 1rem;
    line-height: 1.65;
    color: #333;
}

.article-page__body h2 {
    margin: 2rem 0 1rem;
    font-size: 1.25rem;
}

.article-page__body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.article-page__body h4 {
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
}

.article-page__body p {
    margin: 0 0 1rem;
}

.country-card {
    margin: 2rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.country-card:last-of-type {
    border-bottom: none;
}

.country-card ul {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.country-card li {
    margin-bottom: 0.35rem;
}

/* Section subpage links */
.subpage-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .subpage-links {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.subpage-links__item a {
    display: block;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subpage-links__item a:hover,
.subpage-links__item a:focus-visible {
    border-color: #bbb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.subpage-links__item strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.subpage-links__item span {
    display: block;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}
