:root {
  --bg: #26272a;
  --bg-2: #313236;
  --bg-3: #3b3d42;
  --line: #4a4c52;
  --text: #f1f1ee;
  --muted: #b3b3ad;
  --accent: #33cccc;
  --accent-ink: #ffffff;
  --ocean: #33cccc;
  --ocean-hover: #5cd6d6;
  --sand: #e8d4a6;
  --sand-ink: #4a3b1c;
  --danger: #ff8a7a;
  --radius: 4px;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3, .display {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Logo banner: small image + text on a colored band */
.banner { padding-top: 16px; }
.banner a {
  display: flex;
  align-items: stretch;
  height: 120px;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
}
.banner .mark { flex: 0 0 120px; background: #33cccc; }
.banner .mark img { width: 120px; height: 120px; object-fit: cover; }
.banner .word {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.banner .word strong {
  flex: 0 0 80%;
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: #33cccc;
  color: #000000;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(26px, 4.4vw, 46px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.banner .word span {
  flex: 0 0 20%;
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: #ffcc99;
  color: #4a3b1c;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.04em;
}

/* Button row */
.nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }

/* Home grid: petition center, photos on the side */
.home { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 24px; padding: 28px 0 48px; }
.hero-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--bg-3); }
.kicker { color: var(--accent); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin: 20px 0 8px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); }
.lead { font-size: 19px; color: var(--muted); max-width: 46em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.count { font-family: "Space Grotesk", sans-serif; font-size: 22px; }
.count small { display: block; font-family: "Inter", sans-serif; font-size: 13px; color: var(--muted); }

.side { display: flex; flex-direction: column; gap: 16px; }
.tile { display: block; text-decoration: none; color: var(--text); }
.tile img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--bg-3); }
.tile h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; margin: 8px 0 2px; }
.tile p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.45; }
.tile:hover h3 { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--ocean);
  color: #000000;
  border: 0;
  border-radius: var(--radius);
  padding: 14px 24px;
  font: 600 16px "Inter", sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--ocean-hover); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* Article pages */
.page { max-width: 780px; margin: 0 auto; padding: 32px 0 56px; }
.page h1 { font-size: clamp(30px, 5vw, 48px); }
.page h2 { font-size: 26px; margin-top: 1.6em; }
.page img.cover { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: var(--radius); margin: 8px 0 24px; background: var(--bg-3); }
.page li { margin-bottom: 0.5em; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
td.num { font-family: "Space Grotesk", sans-serif; font-size: 18px; white-space: nowrap; }
.sources { font-size: 14px; color: var(--muted); }

/* Forms */
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 32px 0; }
.panel h2 { margin-top: 0; }
.field { margin-bottom: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=url], select, textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font: 16px "Inter", sans-serif;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.error { font-size: 13px; color: var(--danger); margin-top: 6px; }
.hidden { display: none; }
.previews { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.previews img { width: 110px; height: 80px; object-fit: cover; border-radius: var(--radius); }

/* Footer */
footer { background: #1d1e20; border-top: 1px solid var(--line); padding: 40px 0; }
.foot { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; }
.foot h2 { font-size: 30px; text-transform: uppercase; }
.foot ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.foot li { margin-bottom: 8px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot a.btn, .foot a.btn:hover { color: #ffffff; }
.legal { color: var(--muted); font-size: 13px; margin-top: 28px; }

@media (max-width: 860px) {
  .home { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .banner a { height: 84px; }
  .banner .mark { flex-basis: 84px; }
  .banner .mark img { width: 84px; height: 84px; }
  .banner .word strong, .banner .word span { padding: 0 14px; }
  .banner .word strong { font-size: 24px; }
  .banner .word span { font-size: 10px; letter-spacing: 0.02em; }
  .row { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr; }
  .foot ul { columns: 1; }
}

/* Video tiles */
.tile.video .thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); }
.tile.video .thumb img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
.tile.video .play {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 36px; margin: -18px 0 0 -26px;
  background: rgba(51, 204, 204, 0.95); border-radius: 9px;
}
.tile.video .play::after {
  content: ""; position: absolute; left: 21px; top: 10px;
  border-left: 14px solid #000; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.tile.video:hover .play { background: var(--ocean-hover); }
.tile-more { font-size: 14px; color: var(--accent); text-decoration: none; }
.tile-more:hover { text-decoration: underline; }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 16px 0 8px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.story { scroll-margin-top: 16px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 32px; }
.note { background: var(--bg-2); border-left: 3px solid var(--sand); padding: 14px 18px; margin: 24px 0; font-size: 15px; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
figure { margin: 32px 0 0; }
figure .cover { margin-bottom: 6px; }
a.src { font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
a.src:hover { color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--bg-3); }
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.3; }

/* Three-column homepage: Europe flags | main story | video reports */
.home { grid-template-columns: 15% minmax(0, 1fr) 22%; }
.europe { display: flex; flex-direction: column; gap: 18px; }
.flag-link { display: block; text-decoration: none; color: var(--text); }
.flag-link img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.flag-link h3 { font-size: 14px; line-height: 1.3; margin: 8px 0 2px; }
.flag-link p { font-size: 12px; color: var(--muted); margin: 0; letter-spacing: 0.06em; text-transform: uppercase; }
.flag-link:hover h3 { color: var(--accent); }
.page .flag-head { width: 120px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 12px; }
@media (max-width: 860px) {
  .home { grid-template-columns: 1fr; }
  .home .hero { order: 1; }
  .home .europe { order: 2; display: grid; grid-template-columns: 1fr 1fr; }
  .home .side { order: 3; }
  .europe .kicker { grid-column: 1 / -1; }
}
.hero-img.wide, .page img.cover.wide { aspect-ratio: 1024 / 341; }

/* #33cccc panels: flag column and footer */
.europe { background: #33cccc; padding: 14px 12px 16px; border-radius: var(--radius); align-self: start; }
.europe .kicker { color: #000000; font-weight: 600; }
.europe .flag-link, .europe .flag-link p { color: #000000; }
.europe .flag-link p { opacity: 0.75; }
.europe .flag-link img { border-color: rgba(0, 0, 0, 0.25); }
.europe .flag-link:hover h3 { color: #ffffff; }
footer { background: #33cccc; border-top: 0; color: #000000; }
footer .foot h2 { color: #000000; }
footer .foot p, footer .legal { color: #000000; }
footer .legal { opacity: 0.75; }
footer .foot a { color: #000000; }
footer .foot a:hover { color: #ffffff; }
footer .foot a.btn, footer .foot a.btn:hover { background: #ffcc99; color: #000000; }
footer .foot a.btn:hover { background: #ffd9b3; }
.story-card { display: block; text-decoration: none; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0 0; }
.story-card h2 { margin: 0 0 6px; font-size: 24px; }
.story-card p { margin: 0 0 6px; color: var(--muted); }
.story-card:hover h2 { color: var(--accent); }
.story-photo { margin: 20px 0 24px; max-width: 360px; }
.story-photo img { width: 100%; border-radius: var(--radius); }
.story-card.has-thumb { display: flex; gap: 18px; align-items: flex-start; }
.story-card.has-thumb img { width: 110px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); flex: 0 0 110px; }
@media (max-width: 520px) { .story-card.has-thumb img { width: 80px; flex-basis: 80px; } }

/* Homepage news feed row */
.feed { margin: 20px 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.feed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
/* Six compact cells in one row; wide (16:9) pictures */
.feed-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.feed-row .tile img { aspect-ratio: 16 / 9; }
.feed-row .tile h3 { margin: 8px 0 3px; font-size: 13px; line-height: 1.3; letter-spacing: 0.02em; }
.feed-row .tile p { font-size: 12px; line-height: 1.35; }
/* Tablet: three per row */
@media (max-width: 900px) { .feed-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Phone: one swipeable strip, about two and a half cells on screen */
@media (max-width: 620px) {
  .feed-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: none; }
  .feed-row::-webkit-scrollbar { display: none; }
  .feed-row .tile { flex: 0 0 42%; scroll-snap-align: start; }
}

/* Site-wide template: page content sits in the middle column */
.home .hero .page { max-width: none; margin: 0; padding: 0 0 24px; }
.home .hero .page > .kicker:first-child { margin-top: 0; }

.story-card.article-card img { width: 180px; aspect-ratio: 3 / 2; flex: 0 0 180px; }
@media (max-width: 520px) { .story-card.article-card img { width: 110px; flex-basis: 110px; } }

/* Language switcher (GTranslate) */
.lang-switch { margin-left: auto; display: flex; align-items: center; }
.lang-switch select.gt_selector { font: inherit; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); background: transparent; border: 1px solid var(--accent); border-radius: 6px; padding: 9px 12px; cursor: pointer; }
.lang-switch select.gt_selector option { color: #000; text-transform: none; }
@media (max-width: 620px) { .lang-switch { margin-left: 0; } }

.banner .word em.brand-inline { font-style: normal; padding: 0; margin: 0; background: none; display: inline; }
