:root {
  --ink: #2b1a1f;           /* deep plum from enara.jpg dark tones */
  --ink-strong: #1c1014;    /* darker anchor */
  --accent: #7a5b73;        /* muted mauve accent (100,79,95) */
  --sage: #9ab591;          /* soft sage green */
  --sand: #e7d8ae;          /* warm beige */
  --light: #fefdf9;         /* off-white background */
  --muted: #6b5f68;         /* muted text */
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(29, 16, 20, 0.16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(231,216,174,0.25), transparent 35%),
              radial-gradient(circle at 80% 10%, rgba(154,181,145,0.18), transparent 30%),
              linear-gradient(135deg, rgba(254,253,249,0.96), rgba(255,255,255,0.9));
  color: var(--ink);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("media/V4_background_final.jpeg") center / cover no-repeat;
  opacity: 0.18;
  filter: saturate(0.82);
  z-index: -3;
  pointer-events: none;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
  margin: 0 0 12px 0;
  color: var(--ink-strong);
  letter-spacing: -0.5px;
}

p {
  margin: 0 0 12px 0;
  color: var(--muted);
  line-height: 1.6;
}

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

a:hover { color: var(--rose); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(12,47,50,0.06);
}

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

.brand__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand__kicker {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.brand__title {
  margin: 2px 0 0;
  font-weight: 700;
  color: var(--ink-strong);
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 600;
}

.nav a {
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: rgba(122,91,115,0.16);
  color: var(--ink-strong);
}

.cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(42,26,31,0.12);
  border-radius: 12px;
  overflow: hidden;
  margin-right: 8px;
  box-shadow: 0 8px 18px rgba(28,16,20,0.12);
  gap: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 6px 8px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  flex: 1 1 0;
}

.lang-btn[aria-pressed=\"true\"] {
  background: rgba(122,91,115,0.16);
  color: var(--ink-strong);
}

.flag {
  width: 16px;
  height: 11px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(28,16,20,0.1);
  background-size: cover;
}

/* Simplified flags drawn with gradients to avoid external assets */
.flag-es {
  background: linear-gradient(#c60b1e 0 33%, #ffc400 33% 66%, #c60b1e 66% 100%);
}
.flag-uk {
  background: url("logos/united-kingdom-flag-logo-png_seeklogo-309793.png") center / cover no-repeat;
}

main {
  padding: 40px 6vw 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: center;
  padding: 32px;
  background: rgba(255,255,255,0.9);
  border-radius: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero__content h1 { font-size: clamp(32px, 4vw, 44px); }

.lede {
  font-size: 18px;
  color: var(--ink);
}

.eyebrow {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--ink-strong), #4b2d3a);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: rgba(42, 26, 31, 0.06);
  color: var(--ink-strong);
  border-color: rgba(42,26,31,0.12);
}

.btn:hover { transform: translateY(-2px); }

.pill-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.pill {
  background: rgba(154,181,145,0.25);
  color: var(--ink-strong);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}

.hero__media { display: grid; gap: 14px; }

.media-title {
  margin: 0;
  font-weight: 800;
  color: var(--ink-strong);
}

.media-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  position: relative;
}

.media-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.hero-stats .stat {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(12,47,50,0.08);
}

.stat {
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(12,47,50,0.08);
  box-shadow: 0 12px 22px rgba(0,0,0,0.05);
}

.stat__number { display: block; font-size: 28px; font-weight: 700; color: var(--ink-strong); }
.stat__label { color: var(--muted); font-size: 14px; }

.stat--alert {
  border: 1px solid rgba(232,90,112,0.45);
  background: linear-gradient(180deg, rgba(232,90,112,0.12), #fff);
}
.stat--alert .stat__number { color: #b0223c; }
.stat--alert .stat__label { color: #5a1a28; font-weight: 700; }

.panel {
  margin-top: 54px;
  background: rgba(255,255,255,0.92);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.panel--split .tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.panel--split .track { background: #fff; border: 1px solid rgba(12,47,50,0.08); border-radius: 16px; padding: 18px; box-shadow: 0 10px 18px rgba(0,0,0,0.05); }
.track__title { font-weight: 700; color: var(--ink-strong); margin-bottom: 10px; }
.track ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.5; }

.cards { display: grid; gap: 18px; }
.cards--three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card { background: #fff; padding: 18px; border-radius: 16px; border: 1px solid rgba(12,47,50,0.08); box-shadow: 0 12px 24px rgba(0,0,0,0.05); }
.card__kicker { color: var(--accent); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; margin: 0 0 6px; }

.panel__header { max-width: 720px; margin-bottom: 18px; }

.resource-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.resource { background: #fff; border-radius: 16px; padding: 18px; border: 1px solid rgba(12,47,50,0.08); box-shadow: 0 10px 22px rgba(0,0,0,0.05); }
.resource__tag { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); margin: 0 0 8px; font-weight: 700; }
.resource__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.resource__link::after { content: '->'; font-size: 14px; }

.updates-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.update-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(28,16,20,0.08);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
  display: grid;
  gap: 8px;
}

.update-card__tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0;
  font-weight: 700;
}

.update-card__meta {
  font-size: 13px;
  color: var(--muted);
}

.committee-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid rgba(28,16,20,0.08);
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
  flex-wrap: wrap;
}

.member-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(28,16,20,0.08);
  background: #f4f1e8;
}

.member-name {
  margin: 0;
  font-weight: 700;
  color: var(--ink-strong);
  white-space: nowrap;
  text-decoration: none;
}

.member-name:hover {
  color: var(--accent);
}

.committee-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.panel--contrast {
  background: linear-gradient(120deg, rgba(42,26,31,0.95), rgba(122,91,115,0.92));
  color: #fff;
}
.panel--contrast h2, .panel--contrast p, .panel--contrast .eyebrow { color: #fff; }
.panel--contrast .chips span {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 10px 12px; border-radius: 999px; font-weight: 600; }
.chip-link {
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.report {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 3fr) minmax(200px, 2fr);
  align-items: center;
}

.report__meta { background: rgba(12,47,50,0.06); border-radius: 16px; padding: 16px; }
.meta { margin: 0 0 8px; color: var(--ink); font-weight: 600; }

.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  align-items: center;
  justify-items: center;
}

.logo-strip img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(28,16,20,0.15));
}

.footer {
  margin-top: 60px;
  padding: 28px 6vw 34px;
  background: #0b1f23;
  color: #fefefe;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer__links a { color: #ffffff; font-weight: 700; }
.footer__links a:hover { color: #f3d7ff; }

.footer-logos {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-logos img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
  background: rgba(255,255,255,0.94);
  border-radius: 10px;
  padding: 6px 8px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.12));
}

.footer .brand__kicker { color: #dfe8ff; }
.footer .brand__title { color: #ffffff; }

.ally-logos {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  align-items: center;
}

.ally-logos img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.28));
  background: rgba(255,255,255,0.92);
  border-radius: 12px;
  padding: 8px 12px;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  filter: blur(120px);
  opacity: 0.65;
}

.bg-shape--one { width: 520px; height: 520px; background: radial-gradient(circle at 30% 30%, rgba(122,91,115,0.35), transparent 60%); top: -80px; left: -60px; }
.bg-shape--two { width: 480px; height: 480px; background: radial-gradient(circle at 70% 40%, rgba(154,181,145,0.35), transparent 55%); bottom: -120px; right: -80px; }

@media (max-width: 820px) {
  .nav { display: none; }
  .topbar { gap: 12px; }
  .report { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  main { padding: 28px 5vw 60px; }
  .hero, .panel { padding: 22px; }
  .brand__logo { width: 52px; height: 52px; }
  .cta { display: none; }
}
