:root {
  --ink: #17231d;
  --muted: #6d766f;
  --paper: #f7f3ed;
  --land: #cfd6cc;
  --land-hover: #173f31;
  --accent: #52735f;
  --line: rgba(23, 35, 29, 0.16);
  --card: #fffdf7;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { min-height: calc(100vh - 88px); }

.site-header, .intro, .map-section, footer {
  width: calc(100% - 32px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.brand > img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  color: var(--ink);
}

.brand-name > span {
  color: var(--accent);
}
.date { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 28px;
  padding: 28px 0 18px;
}

.eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1 {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  width: 100%;
  font-size: clamp(30px, 5.5vw, 92px);
  font-weight: 650;
  letter-spacing: -.065em;
  line-height: .9;
  white-space: nowrap;
}
.dek {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  margin: 0;
  max-width: 360px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.5;
  text-transform: uppercase;
}
.map-shell {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(circle, rgba(23,35,29,.10) .7px, transparent .7px);
  background-size: 9px 9px;
}

#world-map { display: block; width: 100%; height: 560px; }
.country { fill: var(--land); stroke: var(--paper); stroke-width: .65px; transition: fill .15s ease; outline: none; cursor: pointer; }
.country.has-news { fill: #9eafa3; }
.country:hover, .country:focus, .country.is-active { fill: var(--land-hover); }

.map-status { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; color: var(--muted); font-size: 13px; }
.map-status.error { color: #8d3328; }

.news-card {
  position: absolute;
  z-index: 3;
  width: min(360px, calc(100% - 28px));
  padding: 20px;
  border: 1px solid var(--ink);
  background: var(--card);
  box-shadow: 7px 7px 0 rgba(23,35,29,.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity .14s ease, transform .14s ease;
}

.news-card.visible { opacity: 1; transform: translateY(0); }
.news-card__topline { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 18px; font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.news-card__country { color: var(--accent); }
.news-card__time { color: var(--muted); }
.news-card h2 { margin: 0 0 9px; font-size: 22px; font-weight: 400; line-height: 1.12; }
.news-card p { margin: 0; color: #465049; font-size: 13px; line-height: 1.5; }
.news-card__source { display: block; margin-top: 16px; color: var(--muted); font-size: 10px; }

.map-footer { display: flex; justify-content: space-between; padding: 13px 0; color: var(--muted); font-size: 11px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #9eafa3; }

footer { display: flex; justify-content: space-between; padding: 26px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer p { margin: 0; }

@media (max-width: 800px) {
  .site-header, .intro, .map-section, footer { width: min(100% - 32px, 1320px); }
  .intro { grid-template-columns: 1fr; gap: 18px; }
  h1 { grid-column: 1; }
  .dek { margin-left: 0; }
  .map-shell, #world-map { min-height: 310px; }
  .news-card { position: fixed; left: 14px !important; right: 14px; bottom: 14px; top: auto !important; width: auto; }
  .map-footer, footer { gap: 14px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.title-dot {
  color: var(--accent);
}

.news-card.has-link {
  pointer-events: auto;
  cursor: pointer;
}

.news-card.has-link:hover {
  box-shadow: 10px 10px 0 rgba(23, 35, 29, 0.18);
}

/* Match the FlyFinjay homepage header exactly */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: initial;
  font-weight: initial;
  letter-spacing: initial;
  text-decoration: none;
}

.brand > img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.wordmark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

.date {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .nav {
    width: calc(100% - 28px);
  }

  .brand {
    gap: 7px;
  }

  .brand > img {
    width: 31px;
    height: 31px;
  }
}

.title-green {
  color: #52735f;
}
/* Additional headlines for focus countries */
.news-card__additional {
  display: grid;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.news-card__additional:empty {
  display: none;
}

.news-card__additional-story {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.news-card__additional-story > span {
  grid-row: 1 / 3;
  color: #52735f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.news-card__additional-story strong {
  font-size: 14px;
  line-height: 1.25;
}

.news-card__additional-story small {
  color: var(--muted);
  font-size: 10px;
}

.news-card__additional-story:hover strong {
  color: #52735f;
}
