/*
Theme Name:  EuroposVeidrodis
Theme URI:   https://europosveidrodis.lt
Description: Custom theme for EuroposVeidrodis — European politics news site.
Version:     2.2.4
Author:      EuroposVeidrodis
Text Domain: ev
*/

/* =================================================================
   1. DESIGN TOKENS
   ================================================================= */
:root {
  --ev-bg-deep:      #020b10;
  --ev-bg-dark:      #041a17;
  --ev-bg-green:     #0b2f26;
  --ev-panel:        rgba(4,43,35,0.78);
  --ev-center-bg:    rgba(3,33,27,0.18);
  --ev-page-card-bg: rgba(4,43,35,0.68);
  --ev-text:         #e6f2ee;
  --ev-text-soft:    #cfe3dc;
  --ev-muted:        #9bbfb2;
  --ev-date:         #c9a84c;
  --ev-accent:       #6eb52f;
  --ev-accent-soft:  #9be7c4;
  --ev-border:       rgba(155,231,196,0.08);
  --ev-border-soft:  rgba(155,231,196,0.12);
  --ev-border-acc:   rgba(110,181,47,0.38);
  --ev-shadow:       0 10px 28px rgba(0,0,0,0.28);
  --ev-shadow-card:  0 14px 44px rgba(0,0,0,0.44);
  --ev-shadow-hover: 0 22px 56px rgba(0,0,0,0.50);
  --ev-radius:       14px;
  --ev-radius-lg:    18px;
  --ev-gap:          28px;
  --ev-sidebar-w:    18.5%;
  --ev-sticky-top:   50px;
}

/* =================================================================
   2. BASE
   ================================================================= */
*,*::before,*::after { box-sizing: border-box; }

html,body {
  margin: 0; padding: 0;
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,sans-serif;
  background:
    radial-gradient(circle at 50% 16%,rgba(20,82,53,0.18) 0%,rgba(20,82,53,0.06) 30%,transparent 58%),
    linear-gradient(180deg,var(--ev-bg-deep) 0%,var(--ev-bg-dark) 45%,#020807 100%);
  min-height: 100vh;
  color: var(--ev-text);
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(2,11,16,0.22),rgba(2,11,16,0.22)),
    url("https://europosveidrodis.lt/wp-content/uploads/2026/05/37afc31c-3cdd-4643-915e-c0a47cf9180b.png");
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center calc(50% + 40px);
  opacity: 0.4;
}

a { color: var(--ev-text-soft); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--ev-accent-soft); }
img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* =================================================================
   3. HEADER
   ================================================================= */
.ev-header {
  position: relative; z-index: 10;
  background: var(--ev-bg-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 42px; display: flex; align-items: center;
  padding: 0 24px; gap: 20px;
}
.ev-header-logo {
  font-size: 14px; font-weight: 700;
  color: var(--ev-accent-soft); letter-spacing: 0.3px;
  text-decoration: none; flex-shrink: 0;
}
.ev-header-logo:hover { color: var(--ev-text); }
.ev-header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.ev-menu-toggle {
  display: none; background: none;
  border: 1px solid var(--ev-border); border-radius: 8px;
  color: var(--ev-text-soft); padding: 6px 12px;
  cursor: pointer; font-size: 20px; line-height: 1;
  transition: border-color 0.2s, color 0.2s;
}
.ev-menu-toggle:hover { border-color: var(--ev-accent-soft); color: var(--ev-accent-soft); }

/* Mobile nav drawer */
.ev-mobile-nav {
  display: flex; flex-direction: column;
  position: fixed; top: 0; right: 0;
  width: min(280px, 80vw); height: 100vh;
  background: var(--ev-bg-green);
  border-left: 1px solid var(--ev-border-soft);
  box-shadow: -12px 0 40px rgba(0,0,0,0.5);
  padding: 60px 0 32px;
  z-index: 100;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.28s;
}
.ev-mobile-nav.ev-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0s;
}
.ev-mobile-nav a {
  color: var(--ev-text); font-size: 17px; font-weight: 500;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none; transition: color 0.2s, background 0.2s;
  letter-spacing: 0.1px;
}
.ev-mobile-nav a:hover { color: var(--ev-accent-soft); background: rgba(155,231,196,0.05); }
.ev-mobile-nav::before {
  content: ""; display: block;
  position: absolute; top: 0; left: 0; right: 0; height: 56px;
  border-bottom: 1px solid var(--ev-border);
}
.ev-mobile-nav.ev-open::after {
  content: "";
  position: fixed; top: 0; bottom: 0; left: 0; right: min(280px, 80vw);
  background: rgba(0,0,0,0.45);
  z-index: -1;
}

/* =================================================================
   4. ROTATING BANNER
   ================================================================= */

/* Hidden entirely on mobile — links surfaced in mobile nav instead */
.ev-banner-wrap {
  position: relative; z-index: 1;
  overflow: hidden;
}

@media (max-width: 640px) {
  .ev-banner-wrap { display: none; }
}

.ev-elections-bar {
  background: rgba(4,43,35,0.72);
  border-bottom: 1px solid rgba(155,231,196,0.10);
  padding: 0 20px;
  display: flex; align-items: center; gap: 0;
  width: 100%; min-height: 57px;
}

/* Both panels animate in/out */
.ev-banner-panel {
  position: absolute;
  top: 0; left: 0; right: 0;
  min-height: 57px;
  display: flex; align-items: center;
  will-change: transform, opacity;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1),
              opacity  0.55s cubic-bezier(0.4,0,0.2,1);
}
.ev-banner-panel.ev-banner-active {
  position: relative;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.ev-banner-panel.ev-banner-leaving {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.ev-banner-panel.ev-banner-waiting {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* ── Label — legend lives inside here for elections panel ─────── */
.ev-banner-label {
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; gap: 4px;
  padding: 0; border: none; background: none;
  cursor: pointer;
  padding-right: 16px; border-right: 1px solid rgba(155,231,196,0.10);
  margin-right: 16px; flex-shrink: 0;
  width: 172px; height: 57px;
  transition: color 0.2s;
}
.ev-banner-label:hover .ev-banner-label-main { color: var(--ev-accent-soft); }

.ev-banner-label-main {
  display: flex; align-items: center; gap: 6px;
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.6px;
  color: rgba(155,231,196,0.45); white-space: nowrap;
}
.ev-banner-arrow { font-size: 11px; opacity: 0.6; }

/* Inline legend — only shown inside elections panel label */
.ev-inline-legend {
  display: flex; align-items: center; gap: 8px;
}
.ev-inline-legend .ev-legend-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500;
  color: rgba(155,191,178,0.65);
  letter-spacing: 0.3px; white-space: nowrap;
  text-transform: none;
}
.ev-inline-legend .ev-legend-swatch {
  width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0;
}
.ev-legend-swatch-parl { background: rgba(200,155,40,0.65); }
.ev-legend-swatch-prez { background: rgba(220,80,120,0.65); }

/* ── Scroll containers ────────────────────────────────────────── */
.ev-elections-scroll,
.ev-ep-timeline {
  display: flex; align-items: center; gap: 7px;
  flex: 1; min-width: 0;
  overflow: hidden; /* no scroll — chips are hidden by JS */
  padding: 12px 4px;
  position: relative;
}

/* Fade gradient on right when chips overflow */
.ev-elections-scroll.ev-scroll-fade::after,
.ev-ep-timeline.ev-scroll-fade::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 48px;
  background: linear-gradient(to right, transparent, rgba(4,43,35,0.90));
  pointer-events: none;
}

/* ── Election pills ───────────────────────────────────────────── */
.ev-election-chip {
  display: flex; align-items: center; gap: 6px;
  border-radius: 20px; padding: 0 11px; height: 33px;
  text-decoration: none; flex-shrink: 0;
  border: 1px solid; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.ev-election-chip.ev-chip-parl {
  background: rgba(200,155,40,0.10);
  border-color: rgba(200,155,40,0.34);
}
.ev-election-chip.ev-chip-parl:hover {
  background: rgba(200,155,40,0.18);
  border-color: rgba(200,155,40,0.55);
}
.ev-election-chip.ev-chip-parl .ev-election-country { color: #e8cc80; }
.ev-election-chip.ev-chip-parl .ev-election-date    { color: #d4aa50; }

.ev-election-chip.ev-chip-prez {
  background: rgba(220,80,120,0.10);
  border-color: rgba(220,80,120,0.34);
}
.ev-election-chip.ev-chip-prez:hover {
  background: rgba(220,80,120,0.18);
  border-color: rgba(220,80,120,0.55);
}
.ev-election-chip.ev-chip-prez .ev-election-country { color: #f0a8c4; }
.ev-election-chip.ev-chip-prez .ev-election-date    { color: #e080a8; }

.ev-election-chip.ev-chip-live {
  background: rgba(220,80,120,0.16);
  border-color: rgba(220,80,120,0.65);
  animation: evChipPulseRose 1.6s ease-in-out infinite;
}

.ev-election-flag    { font-size: 15px; line-height: 1; }
.ev-election-country { font-size: 12px; font-weight: 600; color: var(--ev-text-soft); }
.ev-chip-sep         { font-size: 10px; color: rgba(155,191,178,0.28); }
.ev-election-date    { font-size: 10px; font-weight: 500; color: var(--ev-date); letter-spacing: 0.3px; }
.ev-election-soon    { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--ev-accent); flex-shrink: 0; }

.ev-chip-live-badge {
  display: flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: #e080a8;
}
.ev-chip-live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #e080a8; flex-shrink: 0;
  animation: evPulse 1.2s ease-in-out infinite;
}

.ev-elections-more {
  font-size: 10px; color: var(--ev-muted); white-space: nowrap;
  padding-left: 12px; border-left: 1px solid rgba(155,231,196,0.10);
  margin-left: 4px; flex-shrink: 0; align-self: center;
  transition: color 0.2s;
}
.ev-elections-more:hover { color: var(--ev-accent-soft); }

.ev-loading-text { font-size: 11px; color: var(--ev-muted); align-self: center; padding: 4px 0; }

/* =================================================================
   4b. EP SESSIONS
   ================================================================= */
.ev-tl-stop {
  display: flex; align-items: center; gap: 6px;
  border-radius: 20px; padding: 0 11px; height: 33px;
  text-decoration: none; flex-shrink: 0;
  border: 1px solid; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.ev-tl-stras {
  background: rgba(200,155,40,0.10);
  border-color: rgba(200,155,40,0.34);
}
.ev-tl-stras:hover {
  background: rgba(200,155,40,0.18);
  border-color: rgba(200,155,40,0.55);
}
.ev-tl-stras .ev-tl-city-name { color: #e8cc80; }
.ev-tl-stras .ev-tl-dot       { background: #d4aa50; }
.ev-tl-stras .ev-tl-live-dot  { background: #d4aa50; }
.ev-tl-stras .ev-tl-live-label{ color: #d4aa50; }
.ev-tl-stras .ev-tl-date      { color: #d4aa50; }

.ev-tl-brus {
  background: rgba(220,80,120,0.10);
  border-color: rgba(220,80,120,0.34);
}
.ev-tl-brus:hover {
  background: rgba(220,80,120,0.18);
  border-color: rgba(220,80,120,0.55);
}
.ev-tl-brus .ev-tl-city-name { color: #f0a8c4; }
.ev-tl-brus .ev-tl-dot       { background: #e080a8; }
.ev-tl-brus .ev-tl-live-dot  { background: #e080a8; }
.ev-tl-brus .ev-tl-live-label{ color: #e080a8; }
.ev-tl-brus .ev-tl-date      { color: #e080a8; }

.ev-tl-stras.ev-tl-live {
  background: rgba(200,155,40,0.16);
  border-color: rgba(200,155,40,0.65);
  animation: evChipPulseAmber 1.6s ease-in-out infinite;
}
.ev-tl-brus.ev-tl-live {
  background: rgba(220,80,120,0.16);
  border-color: rgba(220,80,120,0.65);
  animation: evChipPulseRose 1.6s ease-in-out infinite;
}

.ev-tl-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
}
.ev-tl-live-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
  animation: evPulse 1.2s ease-in-out infinite;
}
.ev-tl-live-label { font-size: 9px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.ev-tl-sep { font-size: 10px; color: rgba(155,191,178,0.28); }
.ev-tl-city { display: flex; align-items: center; gap: 5px; }
.ev-tl-city-name { font-size: 12px; font-weight: 600; }
.ev-tl-date { font-size: 10px; font-weight: 500; white-space: nowrap; }

.ev-ep-more {
  font-size: 10px; color: var(--ev-muted); white-space: nowrap;
  padding-left: 12px; border-left: 1px solid rgba(155,231,196,0.10);
  flex-shrink: 0; align-self: center;
  transition: color 0.2s;
}
.ev-ep-more:hover { color: var(--ev-accent-soft); }

/* =================================================================
   5. SHELL LAYOUT
   ================================================================= */
.ev-page-wrap { position: relative; z-index: 1; padding: var(--ev-gap); }
.ev-shell { display: flex; flex-direction: row; align-items: flex-start; gap: var(--ev-gap); width: 100%; }

/* =================================================================
   6. SIDEBARS
   ================================================================= */
.ev-left,
.ev-right {
  flex: 0 0 var(--ev-sidebar-w);
  max-width: var(--ev-sidebar-w);
  background-color: var(--ev-panel);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  box-shadow: var(--ev-shadow);
  display: flex; flex-direction: column;
  position: sticky; top: var(--ev-sticky-top);
  align-self: flex-start;
}

.ev-home .ev-left {
  border-right: 3px solid var(--ev-border-acc);
  border-radius: var(--ev-radius) 0 0 var(--ev-radius);
}
.ev-home .ev-right {
  border-left: 3px solid var(--ev-border-acc);
  border-radius: 0 var(--ev-radius) var(--ev-radius) 0;
}

/* Brand identity */
.ev-brand {
  padding: 20px 16px 14px;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  border-bottom: 1px solid var(--ev-border);
}
.ev-brand-logo {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  border-radius: 50%;
  transition: opacity 0.2s;
}
.ev-brand-logo:hover { opacity: 0.8; }

.ev-brand-name { text-align: center; }
.ev-brand-name a {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px; font-weight: 400;
  color: var(--ev-text); letter-spacing: -0.2px;
  line-height: 1.2; text-decoration: none;
}
.ev-brand-name a:hover { color: var(--ev-accent-soft); }
.ev-brand-motto {
  font-size: 11px; color: var(--ev-muted);
  line-height: 1.6; text-align: center;
  font-style: italic; margin: 0;
}

.ev-ticker-wrap { padding: 0; width: 100%; }

.ev-right .ev-nav-block:first-child { border-top: none; padding-top: 20px; }
.ev-right .ev-nav-block:last-of-type { padding-bottom: 20px; }

/* =================================================================
   7. CENTER COLUMN
   ================================================================= */
.ev-center {
  flex: 1 1 auto; min-width: 0;
  background-color: var(--ev-center-bg);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
}

/* =================================================================
   8. NAV BLOCK SYSTEM
   ================================================================= */
.ev-nav-block {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px;
  border-top: 1px solid var(--ev-border);
}
.ev-nav-label {
  display: block; font-size: 9px; font-weight: 600;
  color: rgba(155,191,178,0.5); text-transform: uppercase;
  letter-spacing: 1.4px; margin-bottom: 8px;
}

ul.ev-nav-list,
.ev-nav-list {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important; padding: 0 !important;
  display: flex; flex-direction: column; gap: 2px;
}
ul.ev-nav-list li,
.ev-nav-list li {
  list-style: none !important;
  list-style-type: none !important;
}
.ev-nav-list a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px;
  color: var(--ev-text-soft); font-size: 15px; font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.ev-nav-list a::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(155,231,196,0.18); flex-shrink: 0;
  transition: background 0.2s;
}
.ev-nav-list a:hover,
.ev-nav-list .current-menu-item a {
  background: rgba(155,231,196,0.06);
  color: var(--ev-accent-soft);
}
.ev-nav-list a:hover::before,
.ev-nav-list .current-menu-item a::before {
  background: var(--ev-accent);
}

.ev-nav-list-external a::before {
  content: "›"; width: auto; height: auto;
  background: none; border-radius: 0;
  color: rgba(110,181,47,0.6); font-size: 15px; line-height: 1;
}
.ev-nav-list-external a:hover::before {
  background: none; color: var(--ev-accent-soft);
}

/* =================================================================
   9. CATEGORY PILLS
   ================================================================= */
.ev-tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }

.ev-tag-pill {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
  letter-spacing: 0.4px; cursor: pointer; user-select: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
  border: 1px solid;
}

.ev-tag-pill.ev-pill-green, .ev-tag-pill:not([class*="ev-pill-"]) {
  background: rgba(110,181,47,0.15); border-color: rgba(110,181,47,0.35); color: #9be7c4;
}
.ev-tag-pill.ev-pill-green:hover { background: rgba(110,181,47,0.25); border-color: rgba(110,181,47,0.55); }

.ev-tag-pill.ev-pill-blue {
  background: rgba(47,130,181,0.15); border-color: rgba(47,130,181,0.35); color: #9be0e7;
}
.ev-tag-pill.ev-pill-blue:hover { background: rgba(47,130,181,0.25); border-color: rgba(47,130,181,0.55); }

.ev-tag-pill.ev-pill-amber {
  background: rgba(186,117,23,0.15); border-color: rgba(186,117,23,0.35); color: #e7cc9b;
}
.ev-tag-pill.ev-pill-amber:hover { background: rgba(186,117,23,0.25); border-color: rgba(186,117,23,0.55); }

.ev-tag-pill.ev-pill-coral {
  background: rgba(216,90,48,0.15); border-color: rgba(216,90,48,0.35); color: #e7b09b;
}
.ev-tag-pill.ev-pill-coral:hover { background: rgba(216,90,48,0.25); border-color: rgba(216,90,48,0.55); }

.ev-tag-pill.ev-pill-purple {
  background: rgba(127,119,221,0.15); border-color: rgba(127,119,221,0.35); color: #c4c0f0;
}
.ev-tag-pill.ev-pill-purple:hover { background: rgba(127,119,221,0.25); border-color: rgba(127,119,221,0.55); }

.ev-tag-pill.ev-tag-off {
  background: rgba(155,191,178,0.05) !important;
  border-color: rgba(155,191,178,0.12) !important;
  color: var(--ev-muted) !important;
  opacity: 0.55;
}
.ev-tag-pill.ev-tag-off:hover { opacity: 0.8; }

/* =================================================================
   10. CATEGORY BADGES
   ================================================================= */
.ev-badge-wrap { display: flex; align-items: center; }

.ev-card-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; border: 1px solid;
  transition: background 0.22s, border-color 0.22s;
}

.ev-badge-green { background: rgba(110,181,47,0.15); border-color: rgba(110,181,47,0.40); color: #9be7c4; }
.ev-badge-green:hover { background: rgba(110,181,47,0.25); border-color: rgba(110,181,47,0.60); }
.ev-badge-blue { background: rgba(47,130,181,0.15); border-color: rgba(47,130,181,0.40); color: #9be0e7; }
.ev-badge-blue:hover { background: rgba(47,130,181,0.25); border-color: rgba(47,130,181,0.60); }
.ev-badge-amber { background: rgba(186,117,23,0.15); border-color: rgba(186,117,23,0.40); color: #e7cc9b; }
.ev-badge-amber:hover { background: rgba(186,117,23,0.25); border-color: rgba(186,117,23,0.60); }
.ev-badge-coral { background: rgba(216,90,48,0.15); border-color: rgba(216,90,48,0.40); color: #e7b09b; }
.ev-badge-coral:hover { background: rgba(216,90,48,0.25); border-color: rgba(216,90,48,0.60); }
.ev-badge-purple { background: rgba(127,119,221,0.15); border-color: rgba(127,119,221,0.40); color: #c4c0f0; }
.ev-badge-purple:hover { background: rgba(127,119,221,0.25); border-color: rgba(127,119,221,0.60); }

/* =================================================================
   11. TICKER — titles only, no dates
   ================================================================= */
.ev-nav-block.ev-ticker-block { margin-top: 0; }
.ev-ticker-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 9px 0; border-bottom: 1px solid rgba(155,231,196,0.07);
}
.ev-ticker-item:last-child { border-bottom: none; }
.ev-ticker-title {
  font-size: 13px; color: var(--ev-text-soft);
  line-height: 1.45; text-decoration: none;
  transition: color 0.2s;
}
.ev-ticker-title:hover { color: var(--ev-accent-soft); }
/* ev-ticker-time kept for EP sessions sidebar, hidden in ticker itself */
.ev-ticker-time { font-size: 10px; color: var(--ev-date); }

/* =================================================================
   12. SOCIAL BUTTONS
   ================================================================= */
.ev-social-row { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.ev-social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid rgba(155,231,196,0.22);
  background: rgba(3,22,18,0.60);
  display: flex; align-items: center; justify-content: center;
  color: var(--ev-text-soft); text-decoration: none; cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}
.ev-social-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(155,231,196,0.42);
  background: rgba(3,22,18,0.80);
  color: var(--ev-accent-soft);
}
.ev-social-btn svg { display: block; flex-shrink: 0; stroke: currentColor; fill: none; }
.ev-share-row { display: flex; gap: 8px; }

.ev-newsletter-text { font-size: 12px; color: var(--ev-muted); margin: 0 0 8px; line-height: 1.5; }
.ev-newsletter-input {
  width: 100%; background: rgba(3,22,18,0.5);
  border: 1px solid rgba(155,231,196,0.15); border-radius: 6px;
  padding: 6px 10px; font-size: 12px; color: var(--ev-text-soft);
  outline: none; transition: border-color 0.2s;
}
.ev-newsletter-input:focus { border-color: rgba(155,231,196,0.35); }
.ev-newsletter-btn {
  width: 100%; margin-top: 6px;
  background: rgba(110,181,47,0.15);
  border: 1px solid rgba(110,181,47,0.35);
  color: var(--ev-accent-soft); font-size: 12px; font-weight: 600;
  padding: 6px 0; border-radius: 6px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ev-newsletter-btn:hover { background: rgba(110,181,47,0.25); border-color: rgba(110,181,47,0.55); }

/* =================================================================
   13. HOMEPAGE ARTICLE CARDS
   ================================================================= */
.ev-section-label {
  font-size: 11px; font-weight: 600; color: var(--ev-muted);
  text-transform: uppercase; letter-spacing: 1.4px; margin: 0 0 4px;
}

.ev-card-featured-wrap {
  background: linear-gradient(135deg,rgba(32,96,76,0.48) 0%,rgba(20,68,50,0.44) 100%);
  border: 1px solid rgba(155,231,196,0.14);
  border-radius: var(--ev-radius);
  box-shadow: var(--ev-shadow-card);
  overflow: hidden; cursor: pointer;
  display: flex; min-height: 200px;
  animation: evFadeUp 0.45s ease both;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}
.ev-card-featured-wrap:hover {
  background: linear-gradient(135deg,rgba(32,96,76,0.95) 0%,rgba(20,68,50,0.92) 100%);
  transform: translateY(-6px);
  box-shadow: var(--ev-shadow-hover);
  border-color: rgba(110,181,47,0.40);
}

.ev-image-holder-large {
  flex: 0 0 44%; max-width: 44%;
  min-height: 220px; overflow: hidden; align-self: stretch;
}
.ev-image-holder-large img {
  width: 100%; height: 100%; min-height: 220px;
  object-fit: cover; display: block;
  transition: transform 0.35s ease, filter 0.25s ease;
}
.ev-card-featured-wrap:hover .ev-image-holder-large img {
  transform: scale(1.03); filter: brightness(1.06);
}

.ev-text-big {
  flex: 1; overflow: hidden; min-width: 0;
  word-break: break-word; overflow-wrap: break-word;
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
  justify-content: center;
}

.ev-all-small-cards { display: flex; flex-direction: column; gap: var(--ev-gap); width: 100%; }

.ev-card-mini-wrap {
  position: relative;
  background: linear-gradient(135deg,rgba(32,96,76,0.18) 0%,rgba(20,68,50,0.15) 100%);
  border: 1px solid rgba(155,231,196,0.07);
  border-left: 3px solid transparent;
  border-radius: var(--ev-radius);
  overflow: hidden; cursor: pointer;
  display: flex; min-height: 140px;
  animation: evFadeUp 0.45s ease both;
  text-decoration: none;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-left-color 0.26s ease, background 0.26s ease, border-color 0.26s ease;
}
.ev-card-mini-wrap:hover {
  background: linear-gradient(135deg,rgba(32,96,76,0.48) 0%,rgba(20,68,50,0.44) 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.38);
  border-left-color: var(--ev-accent);
  border-color: rgba(155,231,196,0.14);
}

.ev-image-holder-small {
  flex: 0 0 200px; max-width: 200px; height: 140px;
  overflow: hidden; align-self: stretch;
}
.ev-image-holder-small img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.35s ease, filter 0.25s ease;
}
.ev-card-mini-wrap:hover .ev-image-holder-small img {
  transform: scale(1.03); filter: brightness(1.06);
}

.ev-text-small {
  flex: 1; overflow: hidden; min-width: 0;
  word-break: break-word; overflow-wrap: break-word;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 6px;
  justify-content: center;
}

.ev-title-primary {
  font-family: 'EB Garamond',Georgia,serif;
  font-size: 28px; font-weight: 400; color: var(--ev-text);
  line-height: 1.15; letter-spacing: -0.3px; margin: 0;
}
.ev-title-secondary {
  font-family: 'EB Garamond',Georgia,serif;
  font-size: 20px; font-weight: 400; color: var(--ev-text);
  line-height: 1.2; margin: 0;
}
.ev-metadata { color: var(--ev-date); font-size: 11px; font-weight: 500; letter-spacing: 0.4px; margin: 0; line-height: 1.4; }
.ev-art-description { color: var(--ev-text-soft); font-size: 15px; line-height: 1.7; margin: 0; }

.ev-more-btn {
  display: inline-block; background: transparent;
  color: var(--ev-text-soft); border: 1px solid var(--ev-accent);
  border-radius: 8px; padding: 11px 24px;
  font-weight: 600; font-size: 15px; text-align: center; cursor: pointer;
  transition: transform 0.22s, background 0.22s, border-color 0.22s, color 0.22s, box-shadow 0.22s;
}
.ev-more-btn:hover {
  transform: translateY(-2px);
  background: rgba(26,74,61,0.65); color: var(--ev-text);
  border-color: var(--ev-accent-soft);
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}

/* =================================================================
   14. ARTICLE PAGE
   ================================================================= */
.ev-center-article {
  flex: 1 1 auto; min-width: 0; align-self: flex-start;
  background-color: transparent; border: none; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.ev-center-article .ev-title-primary { font-size: 38px; letter-spacing: -0.5px; }

.ev-center-article-card {
  background: linear-gradient(135deg,rgba(32,96,76,0.48) 0%,rgba(20,68,50,0.44) 100%);
  border: 1px solid rgba(155,231,196,0.14);
  border-radius: var(--ev-radius); box-shadow: var(--ev-shadow-card);
  overflow: hidden; display: flex; flex-direction: column; padding: 0;
}
.ev-center-article-card .ev-badge-wrap { padding: 12px 28px 0; }

.ev-image-holder-article { width: 100%; padding: 8px; }
.ev-image-holder-article img {
  border-radius: calc(var(--ev-radius) - 4px);
  display: block; margin: 0 auto; max-width: 100%; height: auto;
}

.ev-article-text { color: var(--ev-text-soft); font-size: 17px; line-height: 1.85; padding: 0 28px 28px; }
.ev-article-text p { margin: 0 0 16px; padding: 0; }
.ev-article-text h2 { font-family: 'EB Garamond',Georgia,serif; font-size: 26px; font-weight: 400; color: var(--ev-text); margin: 32px 0 12px; line-height: 1.2; }
.ev-article-text h3 { font-size: 19px; font-weight: 600; color: var(--ev-text); margin: 24px 0 10px; }
.ev-article-text a { color: var(--ev-accent-soft); text-decoration: underline; text-decoration-color: rgba(155,231,196,0.35); }
.ev-article-text a:hover { text-decoration-color: var(--ev-accent-soft); }
.ev-article-text blockquote { border-left: 3px solid var(--ev-accent); margin: 24px 0; padding: 12px 20px; color: var(--ev-muted); font-style: italic; }

/* =================================================================
   15. STATIC PAGE CARD
   ================================================================= */
.ev-page-card {
  background-color: var(--ev-page-card-bg);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  border: 1px solid var(--ev-border-soft);
  border-radius: var(--ev-radius-lg); box-shadow: var(--ev-shadow-card); padding: 48px;
}
.ev-page-card h1,.ev-page-card h2 {
  color: var(--ev-text); font-family: 'EB Garamond',Georgia,serif;
  font-size: clamp(32px,3vw,52px); font-weight: 400;
  line-height: 1.1; letter-spacing: -0.5px; margin: 0 0 24px;
}
.ev-page-card p { color: var(--ev-text-soft); font-size: 17px; line-height: 1.75; max-width: 620px; margin: 0 0 16px; }

/* =================================================================
   16. THEME TOGGLE
   ================================================================= */
.ev-theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid rgba(155,231,196,0.22);
  background: rgba(3,22,18,0.60); cursor: pointer;
  color: var(--ev-text-soft); padding: 0; flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.ev-theme-btn:hover { border-color: rgba(155,231,196,0.42); background: rgba(3,22,18,0.80); transform: translateY(-2px); }
.ev-theme-icon::before { content: "☽"; font-size: 15px; line-height: 1; display: block; }
body.ev-light .ev-theme-icon::before { content: "○"; }

/* =================================================================
   16b. LIGHT MODE
   ================================================================= */
body.ev-light {
  --ev-bg-deep:      #ddeae0;
  --ev-bg-dark:      #cfe0d4;
  --ev-bg-green:     #c0d6c6;
  --ev-panel:        rgba(165,208,176,0.60);
  --ev-center-bg:    rgba(255,255,255,0.90);
  --ev-page-card-bg: rgba(255,255,255,0.95);
  --ev-text:         #010604;
  --ev-text-soft:    #08180c;
  --ev-muted:        #155828;
  --ev-date:         #472800;
  --ev-accent:       #2a8040;
  --ev-accent-soft:  #155828;
  --ev-border:       rgba(35,105,50,0.14);
  --ev-border-soft:  rgba(35,105,50,0.22);
  --ev-border-acc:   rgba(35,105,50,0.40);
  --ev-shadow:       0 10px 28px rgba(0,0,0,0.08);
  --ev-shadow-card:  0 2px 8px rgba(0,0,0,0.09);
  --ev-shadow-hover: 0 8px 24px rgba(0,0,0,0.13);
}

body.ev-light {
  background: linear-gradient(180deg, #ddeae0 0%, #cfe0d4 100%);
}

body.ev-light::before { opacity: 0.04; }

/* Banner */
body.ev-light .ev-elections-bar {
  background: rgba(165,208,176,0.55);
  border-bottom-color: rgba(35,105,50,0.14);
}
body.ev-light .ev-elections-more,
body.ev-light .ev-ep-more {
  color: #155828;
  border-left-color: rgba(35,105,50,0.20);
}
body.ev-light .ev-banner-label-main {
  color: rgba(21,88,40,0.65);
}
body.ev-light .ev-banner-label {
  border-right-color: rgba(35,105,50,0.18);
}
body.ev-light .ev-inline-legend .ev-legend-item {
  color: rgba(21,88,40,0.55);
  font-size: 9px;
  font-weight: 500;
}
body.ev-light .ev-elections-scroll.ev-scroll-fade::after,
body.ev-light .ev-ep-timeline.ev-scroll-fade::after {
  background: linear-gradient(to right, transparent, rgba(192,214,198,0.95));
}

/* Banner chips */
body.ev-light .ev-election-chip.ev-chip-parl .ev-election-country { color: #5a3a04; }
body.ev-light .ev-election-chip.ev-chip-parl .ev-election-date    { color: #7a5010; }
body.ev-light .ev-election-chip.ev-chip-prez .ev-election-country { color: #6a1a3a; }
body.ev-light .ev-election-chip.ev-chip-prez .ev-election-date    { color: #8a2050; }
body.ev-light .ev-chip-sep { color: rgba(35,105,50,0.30); }
body.ev-light .ev-election-country { color: var(--ev-text-soft); }

/* EP session chips */
body.ev-light .ev-tl-stras .ev-tl-city-name { color: #5a3a04; }
body.ev-light .ev-tl-stras .ev-tl-date      { color: #7a5010; }
body.ev-light .ev-tl-brus  .ev-tl-city-name { color: #6a1a3a; }
body.ev-light .ev-tl-brus  .ev-tl-date      { color: #8a2050; }
body.ev-light .ev-tl-sep { color: rgba(35,105,50,0.30); }

/* Nav labels */
body.ev-light .ev-nav-label {
  color: rgba(21,88,40,0.60);
}

/* Nav list */
body.ev-light .ev-nav-list a::before {
  background: rgba(35,105,50,0.20);
}
body.ev-light .ev-nav-list a:hover,
body.ev-light .ev-nav-list .current-menu-item a {
  background: rgba(35,105,50,0.08);
  color: var(--ev-accent);
}
body.ev-light .ev-nav-list-external a::before {
  color: rgba(42,128,64,0.7);
}

/* Category pills */
body.ev-light .ev-tag-pill.ev-pill-green,
body.ev-light .ev-tag-pill:not([class*="ev-pill-"]) {
  background: rgba(42,128,64,0.12); border-color: rgba(42,128,64,0.30); color: #0d3318;
}
body.ev-light .ev-tag-pill.ev-pill-blue {
  background: rgba(47,130,181,0.12); border-color: rgba(47,130,181,0.30); color: #0d2040;
}
body.ev-light .ev-tag-pill.ev-pill-amber {
  background: rgba(160,100,10,0.12); border-color: rgba(160,100,10,0.30); color: #3a1e00;
}
body.ev-light .ev-tag-pill.ev-pill-coral {
  background: rgba(180,60,30,0.12); border-color: rgba(180,60,30,0.30); color: #3a0e00;
}
body.ev-light .ev-tag-pill.ev-pill-purple {
  background: rgba(100,90,200,0.12); border-color: rgba(100,90,200,0.30); color: #1a1060;
}
body.ev-light .ev-tag-pill.ev-tag-off {
  background: rgba(35,105,50,0.05) !important;
  border-color: rgba(35,105,50,0.12) !important;
  color: var(--ev-muted) !important;
}

/* Category badges */
body.ev-light .ev-badge-green  { background: rgba(42,128,64,0.12);  border-color: rgba(42,128,64,0.30);  color: #0d3318; }
body.ev-light .ev-badge-blue   { background: rgba(47,130,181,0.12); border-color: rgba(47,130,181,0.30); color: #0d2040; }
body.ev-light .ev-badge-amber  { background: rgba(160,100,10,0.12); border-color: rgba(160,100,10,0.30); color: #3a1e00; }
body.ev-light .ev-badge-coral  { background: rgba(180,60,30,0.12);  border-color: rgba(180,60,30,0.30);  color: #3a0e00; }
body.ev-light .ev-badge-purple { background: rgba(100,90,200,0.12); border-color: rgba(100,90,200,0.30); color: #1a1060; }

/* Social buttons */
body.ev-light .ev-social-btn {
  background: rgba(255,255,255,0.70);
  border-color: rgba(35,105,50,0.22);
  color: #155828;
}
body.ev-light .ev-social-btn:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(35,105,50,0.45);
  color: var(--ev-accent);
}

/* Newsletter */
body.ev-light .ev-newsletter-input {
  background: rgba(255,255,255,0.80);
  border-color: rgba(35,105,50,0.20);
  color: #010604;
}
body.ev-light .ev-newsletter-input:focus {
  border-color: rgba(35,105,50,0.45);
}
body.ev-light .ev-newsletter-btn {
  background: rgba(42,128,64,0.12);
  border-color: rgba(42,128,64,0.35);
  color: #0d3318;
}
body.ev-light .ev-newsletter-btn:hover {
  background: rgba(42,128,64,0.22);
}

/* Article cards — background-image: none clears the gradient */
body.ev-light .ev-card-featured-wrap {
  background-image: none;
  background-color: #ffffff;
  border-color: rgba(35,105,50,0.14);
}
body.ev-light .ev-card-featured-wrap:hover {
  background-image: none;
  background-color: #f4faf5;
  border-color: rgba(42,128,64,0.35);
}
body.ev-light .ev-card-mini-wrap {
  background-image: none;
  background-color: #ffffff;
  border-color: rgba(35,105,50,0.10);
}
body.ev-light .ev-card-mini-wrap:hover {
  background-image: none;
  background-color: #f4faf5;
  border-color: rgba(35,105,50,0.18);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Article page card */
body.ev-light .ev-center-article-card {
  background-image: none;
  background-color: #ffffff;
  border-color: rgba(35,105,50,0.14);
}

/* Theme toggle */
body.ev-light .ev-theme-btn {
  background: rgba(255,255,255,0.70);
  border-color: rgba(35,105,50,0.25);
  color: #155828;
}
body.ev-light .ev-theme-btn:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(35,105,50,0.45);
}

/* Ticker dividers */
body.ev-light .ev-ticker-item {
  border-bottom-color: rgba(35,105,50,0.10);
}

/* More button */
body.ev-light .ev-more-btn {
  color: var(--ev-text-soft);
  border-color: var(--ev-accent);
}
body.ev-light .ev-more-btn:hover {
  background: rgba(42,128,64,0.10);
  color: var(--ev-text);
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}
/* SVG logo — light mode stroke overrides */
body.ev-light .ev-brand-logo svg circle {
  stroke: rgba(42,128,64,0.35);
}
body.ev-light .ev-brand-logo svg path:first-of-type {
  stroke: #2a8040;
}
body.ev-light .ev-brand-logo svg path:last-of-type {
  stroke: rgba(42,128,64,0.30);
}
body.ev-light .ev-brand-logo svg circle:last-of-type {
  fill: #2a8040;
}

/* Brand panel separation */
body.ev-light .ev-brand {
  background: rgba(255,255,255,0.45);
  border-bottom-color: rgba(35,105,50,0.18);
}

/* Banner links */
body.ev-light .ev-elections-more,
body.ev-light .ev-ep-more {
  font-size: 11px;
  color: #0d3318;
  border-left-color: rgba(35,105,50,0.25);
}
/* =================================================================
   17. FOOTER
   ================================================================= */
.ev-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--ev-border);
  padding: 20px var(--ev-gap);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.ev-footer-copy { font-size: 12px; color: var(--ev-muted); }
.ev-footer-copy a { color: var(--ev-muted); }
.ev-footer-copy a:hover { color: var(--ev-accent-soft); }

.ev-footer-nav-list {
  list-style: none !important; list-style-type: none !important;
  margin: 0 !important; padding: 0 !important;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.ev-footer-nav-list li { list-style: none !important; }
.ev-footer-nav-list li::marker { content: none; }
.ev-footer-nav-list a { font-size: 12px; color: var(--ev-muted); text-decoration: none; transition: color 0.2s; }
.ev-footer-nav-list a:hover { color: var(--ev-accent-soft); }

/* =================================================================
   18. ANIMATIONS
   ================================================================= */
@keyframes evFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes evPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.5); }
}
@keyframes evChipPulseAmber {
  0%, 100% { box-shadow: 0 0 0 0   rgba(200,155,40,0.0); }
  50%       { box-shadow: 0 0 0 3px rgba(200,155,40,0.25); }
}
@keyframes evChipPulseRose {
  0%, 100% { box-shadow: 0 0 0 0   rgba(220,80,120,0.0); }
  50%       { box-shadow: 0 0 0 3px rgba(220,80,120,0.25); }
}

/* =================================================================
   19. RESPONSIVE
   ================================================================= */
@media (max-width: 960px) and (min-width: 641px) {
  .ev-shell { flex-direction: column; gap: 16px; }
  .ev-left,.ev-center,.ev-right {
    flex: none; max-width: 100%; width: 100%;
    min-height: auto; position: static;
  }
  .ev-home .ev-left,.ev-home .ev-right {
    border: 1px solid var(--ev-border); border-radius: var(--ev-radius);
  }
  .ev-menu-toggle { display: flex; }
  .ev-elections-bar { padding: 0 12px; }
  .ev-footer { padding: 16px 12px; }
}

@media (max-width: 640px) {
  body::before { display: none; }
  .ev-page-wrap { padding: 12px; }
  .ev-shell { flex-direction: column; gap: 16px; }
  .ev-left,.ev-center,.ev-right {
    flex: none; max-width: 100%; width: 100%;
    min-height: auto; position: static;
  }
  .ev-home .ev-left,.ev-home .ev-right {
    border: 1px solid var(--ev-border); border-radius: var(--ev-radius);
  }
  .ev-temos-wrap { display: none; }
  .ev-ticker-wrap { display: none; }
  .ev-shell:not(.ev-home) .ev-left { display: none; }
  .ev-center-article { order: -1; }
  .ev-card-featured-wrap,.ev-card-mini-wrap { flex-direction: column; }
  .ev-image-holder-large,.ev-image-holder-small {
    width: 100% !important; max-width: 100% !important;
    height: 220px !important; overflow: hidden; flex: none;
  }
  .ev-image-holder-large img,.ev-image-holder-small img {
    width: 100%; height: 220px; max-height: 220px; object-fit: cover;
  }
  .ev-text-big,.ev-text-small { width: 100%; max-width: 100%; padding: 16px; }
  .ev-title-primary { font-size: 22px; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; line-height: 1.3; }
  .ev-title-secondary { font-size: 17px; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; line-height: 1.3; }
  .ev-center-article .ev-title-primary { font-size: 26px; }
  .ev-card-featured-wrap:hover,.ev-card-mini-wrap:hover { transform: none; box-shadow: none; }
  .ev-card-mini-wrap:hover { border-left-color: transparent; }
  .ev-page-card { padding: 28px; }
  .ev-page-card h1,.ev-page-card h2 { font-size: 28px; }
  .ev-page-card p { font-size: 16px; }
  .ev-menu-toggle { display: flex; }
  .ev-footer { padding: 16px 12px; }
}

/* =================================================================
   20. REDESIGN — TOKENS  (2.2.0 — gold-led, seal-led prestige)
   Additive: extends section 1 without touching existing tokens.
   ================================================================= */
:root {
  --ev-gold:        #d8b556;   /* primary accent — bezel gold        */
  --ev-gold-soft:   #f2dca6;   /* light gold — hover / highlights     */
  --ev-gold-deep:   #a8842f;   /* dark gold — labels on light fields  */
  --ev-word:        #ecd9a0;   /* wordmark cream                      */
  --ev-seal-disc:   #0c241b;
  --ev-seal-core:   #081810;
  --ev-field:       #143524;   /* poster card field green             */
  --ev-cream:       #f4f1e8;   /* light-mode card cream               */
  --ev-serif:       'EB Garamond', Georgia, serif;
  --ev-maxw:        1200px;    /* capped reading column (ultrawide)   */
  --ev-read:        760px;     /* article reading width               */
}

/* =================================================================
   21. WRAP — centered, capped column (replaces the 3-col shell)
   ================================================================= */
.ev-wrap { width: 100%; max-width: var(--ev-maxw); margin: 0 auto; }

/* =================================================================
   22. MASTHEAD
   ================================================================= */
.ev-masthead {
  position: relative; z-index: 10;
  background: linear-gradient(180deg, rgba(9,26,18,0.97) 0%, rgba(6,18,12,0.97) 100%);
  border-bottom: 1px solid var(--ev-border-soft);
}

/* Utility strip — date · Apie · theme · menu */
.ev-mast-utility {
  padding: 10px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border-bottom: 1px solid var(--ev-border);
}
.ev-mast-date {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ev-muted); white-space: nowrap;
}
.ev-mast-tools { display: flex; align-items: center; gap: 10px; }

.ev-apie { position: relative; }
.ev-apie-btn {
  background: none; border: none; font: inherit;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ev-muted); cursor: pointer;
  display: flex; align-items: center; gap: 6px; padding: 4px 2px;
  transition: color 0.2s;
}
.ev-apie-btn:hover, .ev-apie:focus-within .ev-apie-btn { color: var(--ev-gold-soft); }
.ev-apie-btn svg { width: 9px; height: 9px; }
.ev-apie-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 190px; background: var(--ev-seal-core);
  border: 1px solid var(--ev-border-soft); border-radius: 10px;
  padding: 6px; box-shadow: var(--ev-shadow-card); z-index: 40;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.ev-apie:hover .ev-apie-menu, .ev-apie:focus-within .ev-apie-menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.ev-apie-menu a {
  display: block; padding: 9px 12px; border-radius: 7px;
  font-size: 13px; color: var(--ev-text-soft); white-space: nowrap;
}
.ev-apie-menu a:hover { background: rgba(216,181,86,0.10); color: var(--ev-gold-soft); }

/* Crest — seal + wordmark + tagline, centered */
.ev-mast-brand {
  max-width: var(--ev-maxw); margin: 0 auto;
  padding: 22px 28px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center;
}
.ev-mast-crest { display: flex; align-items: center; justify-content: center; gap: 16px; text-decoration: none; }
.ev-mast-crest .ev-seal { flex-shrink: 0; }
.ev-wordmark {
  font-family: var(--ev-serif); font-weight: 500;
  font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: 0.4px;
  color: var(--ev-word); transition: color 0.2s;
}
.ev-mast-brand:hover .ev-wordmark { color: var(--ev-gold-soft); }
.ev-mast-tag {
  font-family: var(--ev-serif); font-style: italic;
  font-size: 15px; color: var(--ev-muted); letter-spacing: 0.2px; margin: 0;
}

/* Primary nav row */
.ev-mast-nav { border-top: 1px solid var(--ev-border); margin-top: 14px; }
.ev-mast-nav-inner {
  max-width: var(--ev-maxw); margin: 0 auto; padding: 13px 28px;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
}
.ev-mast-nav a {
  position: relative; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ev-text-soft); padding: 5px 22px; transition: color 0.2s;
}
.ev-mast-nav a + a { border-left: 1px solid var(--ev-border); }
.ev-mast-nav a:hover, .ev-mast-nav a.ev-nav-active { color: var(--ev-gold-soft); }
.ev-mast-nav a.ev-nav-active::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: -14px;
  height: 2px; background: var(--ev-gold);
}

/* =================================================================
   23. HOMEPAGE — POSTER GRID
   ================================================================= */
.ev-home2 { display: flex; flex-direction: column; gap: 30px; padding: 6px 0 8px; }

/* Flag fill — full-bleed cover (real colours) behind the lighting veil */
.ev-flagfill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Lead — landscape; flag panel lit from the far edge, seal sits in shadow at the seam */
.ev-poster-lead {
  position: relative; display: grid; grid-template-columns: 1.5fr 1fr;
  min-height: 340px; overflow: hidden; text-decoration: none;
  background: linear-gradient(135deg, #16412c 0%, #0c241b 100%);
  border: 1px solid var(--ev-border-soft); border-radius: var(--ev-radius-lg);
  box-shadow: var(--ev-shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  animation: evFadeUp 0.5s ease both;
}
.ev-poster-lead:hover { transform: translateY(-4px); box-shadow: var(--ev-shadow-hover); border-color: rgba(216,181,86,0.40); }
.ev-lead-body { padding: 36px 34px; display: flex; flex-direction: column; justify-content: center; gap: 15px; position: relative; z-index: 2; }
.ev-lead-country { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ev-gold); }
.ev-lead-head { font-family: var(--ev-serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: 0.2px; color: #f3ead0; margin: 0; }
.ev-lead-summary { font-family: var(--ev-serif); font-size: 20px; line-height: 1.5; color: var(--ev-text-soft); margin: 0; max-width: 34ch; }
.ev-lead-cta { align-self: flex-start; margin-top: 4px; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: #0c241b; background: var(--ev-gold); padding: 11px 24px; border-radius: 8px; transition: background 0.2s; }
.ev-poster-lead:hover .ev-lead-cta { background: var(--ev-gold-soft); }
.ev-lead-panel { position: relative; }
.ev-lead-veil { position: absolute; inset: 0; background: radial-gradient(140% 160% at 100% 50%, rgba(12,36,27,0.04) 0%, rgba(12,36,27,0.5) 42%, #0c241b 80%); }
.ev-lead-seal { position: absolute; top: 50%; left: -22px; transform: translateY(-50%); z-index: 3; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55)); }

/* Section label between lead and grid */
.ev-home2 .ev-section-label { margin: 6px 0 -10px; color: var(--ev-gold); letter-spacing: 0.16em; }

/* Grid — portrait atmospheric cards; lit from the corner away from the seal */
.ev-poster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.ev-poster {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px; text-decoration: none;
  background: #0c241b; border: 1px solid var(--ev-border-soft); border-radius: var(--ev-radius);
  box-shadow: var(--ev-shadow-card);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
  animation: evFadeUp 0.5s ease both;
}
.ev-poster:hover { transform: translateY(-5px); box-shadow: var(--ev-shadow-hover); border-color: rgba(216,181,86,0.40); }
.ev-poster .ev-flagfill { opacity: 0.78; border-radius: inherit; }
.ev-poster-veil { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(125% 108% at 18% 16%, rgba(12,36,27,0) 0%, rgba(12,36,27,0.4) 32%, rgba(8,22,15,0.9) 66%, #06140d 100%); }
.ev-poster-seal { position: absolute; top: -12px; right: -11px; z-index: 3; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5)); }
.ev-poster-body { position: relative; z-index: 2; padding: 24px; display: flex; flex-direction: column; gap: 9px; }
.ev-poster-country { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ev-gold); }
.ev-poster-head { font-family: var(--ev-serif); font-weight: 500; font-size: 24px; line-height: 1.16; letter-spacing: 0.2px; color: #f3ead0; margin: 0; }
.ev-poster-meta { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ev-muted); }

/* Empty state */
.ev-home2-empty { color: var(--ev-muted); text-align: center; padding: 60px 0; font-family: var(--ev-serif); font-size: 19px; }

/* =================================================================
   24. ARTICLE PAGE (redesign)
   ================================================================= */
.ev-article2 { max-width: var(--ev-read); margin: 0 auto; padding: 8px 0 10px; }
.ev-art-hero { position: relative; display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.ev-art-eyebrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ev-art-country { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ev-gold); }
.ev-art-flagrow { display: flex; align-items: center; gap: 16px; }
.ev-art-title { font-family: var(--ev-serif); font-weight: 500; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.1; letter-spacing: 0.2px; color: #f3ead0; margin: 0; }
.ev-art-byline { font-size: 12.5px; letter-spacing: 0.06em; color: var(--ev-muted); }
.ev-art-byline strong { color: var(--ev-text-soft); font-weight: 600; }
.ev-art-byline .ev-art-date { color: var(--ev-gold); }
.ev-art-why { border-left: 3px solid var(--ev-gold); background: rgba(216,181,86,0.06); border-radius: 0 10px 10px 0; padding: 14px 18px; }
.ev-art-why-label { display: block; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ev-gold-deep); margin-bottom: 6px; }
.ev-art-why-text { font-family: var(--ev-serif); font-size: 18px; line-height: 1.55; color: var(--ev-text); margin: 0; }
.ev-art-figure { width: 100%; margin: 6px 0 4px; }
.ev-art-figure img { width: 100%; height: auto; border-radius: var(--ev-radius); display: block; }
.ev-art-share { display: flex; align-items: center; gap: 8px; }

.ev-article2 .ev-article-text { padding: 0; font-size: 18px; }
.ev-article2 .ev-article-text > *:first-child { margin-top: 0; }

.ev-art-sources { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--ev-border-soft); }
.ev-art-sources-label { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ev-gold); margin: 0 0 10px; }
.ev-art-sources-body { font-size: 14px; line-height: 1.7; color: var(--ev-muted); }
.ev-art-sources-body a { color: var(--ev-text-soft); text-decoration: underline; text-decoration-color: rgba(216,181,86,0.4); }
.ev-art-sources-body a:hover { color: var(--ev-gold-soft); }

/* =================================================================
   25. FOOTER SITEMAP
   ================================================================= */
.ev-foot {
  position: relative; z-index: 1; margin-top: 52px;
  border-top: 1px solid var(--ev-border-soft);
  background: linear-gradient(180deg, rgba(6,18,12,0.55) 0%, rgba(3,11,8,0.85) 100%);
}
.ev-foot-inner {
  max-width: var(--ev-maxw); margin: 0 auto; padding: 46px 28px 26px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px;
}
.ev-foot-brand { display: flex; flex-direction: column; gap: 14px; }
.ev-foot-crest { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.ev-foot-word { font-family: var(--ev-serif); font-weight: 500; font-size: 24px; color: var(--ev-word); line-height: 1; }
.ev-foot-tag { font-family: var(--ev-serif); font-style: italic; font-size: 13.5px; color: var(--ev-muted); margin: 0; max-width: 34ch; line-height: 1.5; }
.ev-foot-col h4 { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ev-gold); margin: 2px 0 13px; }
.ev-foot-col ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ev-foot-col li { list-style: none !important; }
.ev-foot-col a { display: block; padding: 5px 0; font-size: 14px; color: var(--ev-text-soft); transition: color 0.2s; }
.ev-foot-col a:hover { color: var(--ev-gold-soft); }

.ev-foot-news { margin-top: 4px; }
.ev-foot-news .ev-nav-label { color: var(--ev-gold); margin-bottom: 8px; }

.ev-foot-bottom {
  max-width: var(--ev-maxw); margin: 0 auto; padding: 16px 28px;
  border-top: 1px solid var(--ev-border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.ev-foot-copy { font-size: 12px; color: var(--ev-muted); }
.ev-foot-copy a { color: var(--ev-muted); }
.ev-foot-copy a:hover { color: var(--ev-gold-soft); }
.ev-foot-social { display: flex; gap: 8px; }

/* =================================================================
   26. BANNER — sits under the masthead (kept; refined spacing)
   ================================================================= */
.ev-banner-wrap { border-bottom: 1px solid var(--ev-border); }

/* =================================================================
   27. LIGHT MODE — redesign components
   ================================================================= */
body.ev-light {
  --ev-word:      #0f3a23;
  --ev-gold:      #9a7521;
  --ev-gold-soft: #6a4f12;
  --ev-gold-deep: #7a5d18;
}
body.ev-light .ev-masthead { background: linear-gradient(180deg, #e9f1eb 0%, #dde9e0 100%); }
body.ev-light .ev-mast-tag { color: #2c5e3d; }
body.ev-light .ev-mast-nav a { color: #133b22; }
body.ev-light .ev-mast-nav a:hover, body.ev-light .ev-mast-nav a.ev-nav-active { color: #9a7521; }
body.ev-light .ev-apie-menu { background: #ffffff; border-color: rgba(35,105,50,0.18); }
body.ev-light .ev-apie-menu a { color: #08180c; }
body.ev-light .ev-apie-menu a:hover { background: rgba(154,117,33,0.12); color: #5a3a04; }

body.ev-light .ev-poster { background: var(--ev-cream); border-color: rgba(35,105,50,0.16); }
body.ev-light .ev-poster-veil { background: radial-gradient(125% 108% at 18% 16%, rgba(244,241,232,0) 0%, rgba(244,241,232,0.42) 32%, rgba(244,241,232,0.9) 66%, #f4f1e8 100%); }
body.ev-light .ev-poster-head { color: #0c2417; }
body.ev-light .ev-poster-lead { background: linear-gradient(135deg, #ffffff 0%, #f1f6f1 100%); border-color: rgba(35,105,50,0.16); }
body.ev-light .ev-lead-veil { background: radial-gradient(140% 160% at 100% 50%, rgba(244,241,232,0.12) 0%, rgba(244,241,232,0.5) 42%, #f4f1e8 80%); }
body.ev-light .ev-lead-head { color: #0c2417; }
body.ev-light .ev-lead-summary { color: #1c4a30; }
body.ev-light .ev-lead-cta { color: #fbf6e6; background: #2a8040; }
body.ev-light .ev-poster-lead:hover .ev-lead-cta { background: #1f6531; }

body.ev-light .ev-art-title, body.ev-light .ev-art-why-text { color: #0c2417; }
body.ev-light .ev-art-why { background: rgba(154,117,33,0.07); }
body.ev-light .ev-foot { background: linear-gradient(180deg, #e3ece5 0%, #d7e3d9 100%); }
body.ev-light .ev-foot-word { color: #0f3a23; }
body.ev-light .ev-foot-col a, body.ev-light .ev-foot-copy, body.ev-light .ev-foot-copy a { color: #1c4a30; }

/* =================================================================
   28. RESPONSIVE — redesign
   ================================================================= */
@media (max-width: 860px) {
  .ev-poster-lead { grid-template-columns: 1fr; }
  .ev-lead-panel { display: none; }
  .ev-foot-inner { grid-template-columns: 1fr 1fr; }
  .ev-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ev-mast-nav { display: none; }
  .ev-mast-utility { padding: 8px 14px; }
  .ev-apie { display: none; }
  .ev-mast-brand { padding: 16px 14px 10px; }
  .ev-mast-crest { gap: 12px; }
  .ev-poster-grid { grid-template-columns: 1fr; }
  .ev-foot-inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px 20px; }
  .ev-lead-body { padding: 26px 22px; }
}
