*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue-eu: #003399;
    --blue-eu-light: #1a4db3;
    --blue-eu-dark: #001f66;
    --gold-eu: #FFCC00;
    --white: #ffffff;
    --gray-100: #f5f6f8;
    --gray-200: #e8eaee;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --accent: #003399;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--gray-100);
    color: var(--gray-700);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── HERO ── */
.page-hero {
    background: linear-gradient(135deg, var(--blue-eu-dark), var(--blue-eu));
    color: var(--white);
    padding: 3.5rem 2rem 3rem;
    text-align: center;
}

.wg-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }

.eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-eu);
    margin-bottom: 0.5rem;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.page-hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── MAIN ── */
.voices-main {
    flex: 1;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* ── FILTER BANNER ── */
.filter-banner[hidden],
.author-card-full[hidden] {
    display: none;
}

.filter-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--blue-eu);
    border-radius: 10px;
    padding: 0.9rem 1.3rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.filter-banner-label {
    color: var(--gray-500);
    font-weight: 600;
    margin-right: 0.35rem;
}

.filter-banner-value { color: var(--gray-900); font-weight: 700; }

.clear-filter {
    color: var(--blue-eu);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.clear-filter:hover { text-decoration: underline; }

/* ── FULL AUTHOR CARD (?author=) ── */
.author-card-full {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--blue-eu);
    border-radius: 14px;
    padding: 1.8rem;
    margin-bottom: 2rem;
}

.author-photo-lg {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--gray-200);
}

.author-avatar-lg {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.author-card-full h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.4rem;
}

.author-card-full p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.author-card-full p + p {
    margin-top: 0.7rem;
}

/* ── ARTICLE LIST ── */
.articles-list {
    display: grid;
    gap: 1.2rem;
}

.voice-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem 1.8rem;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.voice-card:hover {
    box-shadow: 0 6px 24px rgba(0,51,153,0.11);
    transform: translateY(-2px);
    border-color: var(--gray-300);
}

.voice-card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.voice-theme-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(0,51,153,0.1);
    color: var(--blue-eu);
    text-decoration: none;
}

.voice-theme-tag:hover { background: rgba(0,51,153,0.18); }

.voice-lang-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--gray-200);
    color: var(--gray-700);
}

.voice-date { font-size: 0.8rem; color: var(--gray-500); }

.voice-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.voice-title a {
    color: var(--gray-900);
    text-decoration: none;
}

.voice-title a:hover { color: var(--blue-eu); }

.voice-excerpt {
    font-size: 0.9rem;
    color: var(--gray-600, #4b5563);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.voice-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.voice-author-photo,
.voice-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: var(--gray-200);
}

.voice-author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.voice-author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
}

.voice-author-name:hover { color: var(--blue-eu); }

/* ── EMPTY / ERROR STATES ── */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--white);
    border: 2px dashed var(--gray-300);
    border-radius: 16px;
}

.empty-state.error { border-color: #dc2626; }

.empty-icon { font-size: 3rem; margin-bottom: 1rem; }

.empty-state h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.93rem;
    color: var(--gray-500);
    max-width: 420px;
    margin: 0 auto 1.4rem;
    line-height: 1.65;
}

.btn-outline-sm {
    display: inline-block;
    border: 1.5px solid var(--blue-eu);
    color: var(--blue-eu);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.btn-outline-sm:hover { background: var(--blue-eu); color: var(--white); }

/* ── ARTICLE TEMPLATE PAGE ── */
.article-main {
    flex: 1;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.article-theme-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(0,51,153,0.1);
    color: var(--blue-eu);
    text-decoration: none;
    margin-bottom: 0.9rem;
}

.article-theme-tag:hover { background: rgba(0,51,153,0.18); }

.article-title {
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.article-date { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 1.8rem; }

.author-card-sm {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 2.2rem;
}

.author-photo-sm,
.author-avatar-sm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: var(--gray-200);
    text-decoration: none;
}

.author-avatar-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--gray-500);
}

.author-card-sm .author-name-sm {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
}

.author-card-sm .author-name-sm:hover { color: var(--blue-eu); }

.author-card-sm .author-bio-sm {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.article-body {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--gray-700);
}

.article-body p { margin-bottom: 1.2rem; }
.article-body h2 { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); margin: 1.8rem 0 0.8rem; }
.article-body blockquote {
    border-left: 3px solid var(--gold-eu);
    padding-left: 1rem;
    color: var(--gray-500);
    font-style: italic;
    margin: 1.4rem 0;
}

.article-footer-links {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.article-footer-links a {
    color: var(--blue-eu);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-footer-links a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
    background: var(--blue-eu-dark);
    color: rgba(255,255,255,0.5);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.15s; }
footer a:hover { color: var(--white); }

/* Each sentence of the copyright line is never split across lines: it can only break between the two */
.footer-nobreak { white-space: nowrap; }

/* Phone: the copyright sentence takes its own row(s); if it must wrap, balance the lines (no lone last word). Wider than ~455px it never wraps, so 480px leaves everything above as it was. */
@media (max-width: 480px) {
    .footer-copyright { display: block; text-wrap: balance; }
}

@media (max-width: 600px) {
    
    .author-card-full { flex-direction: column; }
    .filter-banner { flex-direction: column; align-items: flex-start; }
}
