.ia-shell {
  --ia-ink: #111;
  --ia-muted: #666;
  --ia-line: #dedede;
  --ia-red: #e9322d;
  --ia-soft: #f6f7f7;
  --ia-ocean: #101820;
  --ia-land: #d8ddd9;
  --ia-land-active: #f04438;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  color: var(--ia-ink);
}

.ia-hero,
.ia-country-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 24px 0 30px;
  border-bottom: 1px solid var(--ia-line);
}

.ia-hero p,
.ia-country-hero p,
.ia-section-head p,
.ia-map-head p,
.ia-panel > p {
  margin: 0 0 8px;
  color: var(--ia-red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ia-hero h1,
.ia-country-hero h1 {
  max-width: 960px;
  margin: 0;
  font-family: Futura, "Futura PT", "Avenir Next", Avenir, "Century Gothic", ui-sans-serif, system-ui, sans-serif;
  font-size: 2rem;
  line-height: 1.39;
  letter-spacing: 0;
}

.ia-hero span,
.ia-country-hero span {
  display: block;
  max-width: 760px;
  margin-top: 14px;
  color: var(--ia-muted);
  font-size: 18px;
  line-height: 1.5;
}

.ia-map-panel,
.ia-panel {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--ia-line);
  border-radius: 8px;
  background: #fff;
}

.ia-map-panel {
  padding: 0;
  overflow: hidden;
  background: #fffdf8;
}

.ia-map-panel .ia-map-head {
  padding: 20px 20px 0;
}

.ia-map-head,
.ia-map-layout,
.ia-country-layout {
  display: grid;
  gap: 18px;
}

.ia-map-head {
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: end;
}

.ia-map-head h2,
.ia-section-head h2,
.ia-panel h2 {
  margin: 0;
  font-family: Futura, "Futura PT", "Avenir Next", Avenir, "Century Gothic", ui-sans-serif, system-ui, sans-serif;
  font-size: 2rem;
  line-height: 1.39;
}

.ia-country-search {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--ia-line);
  border-radius: 8px;
  padding: 0 12px;
}

.ia-map-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.ia-map-stage {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 0;
  border-top: 1px solid rgba(17, 17, 17, .08);
  border-radius: 0;
  background:
    linear-gradient(rgba(17, 17, 17, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, .045) 1px, transparent 1px),
    radial-gradient(circle at 18% 22%, rgba(233, 50, 45, .08), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #eef6f8 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
  cursor: grab;
}

.ia-map-canvas {
  width: 100%;
  height: 640px;
  min-height: 640px;
  display: block;
  box-sizing: border-box;
}

.ia-map-toolbar,
.ia-map-legend {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ia-map-toolbar,
.ia-map-legend {
  pointer-events: none;
}

.ia-map-toolbar {
  top: 16px;
  left: 18px;
}

.ia-map-toolbar span,
.ia-map-legend span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(17, 17, 17, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: rgba(17, 17, 17, .72);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.ia-map-legend {
  right: 18px;
  bottom: 18px;
}

.ia-map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d8ddd9;
}

.ia-map-legend span:nth-child(2) i {
  background: var(--ia-land-active);
}

.ia-map-stage .leaflet-container {
  background: transparent;
  font-family: Futura, "Futura PT", "Avenir Next", Avenir, "Century Gothic", ui-sans-serif, system-ui, sans-serif;
}

.ia-map-stage .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, .14);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(17, 17, 17, .08);
}

.ia-map-stage .leaflet-control-zoom a {
  color: #111;
  font-weight: 900;
}

.ia-map-stage .leaflet-interactive {
  transition: fill .16s ease, stroke .16s ease, opacity .16s ease;
}

.ia-leaflet-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(17, 17, 17, .2);
}

.ia-leaflet-popup .leaflet-popup-content {
  display: grid;
  gap: 8px;
  margin: 15px 16px;
}

.ia-leaflet-popup strong,
.ia-leaflet-popup span,
.ia-leaflet-popup a {
  display: block;
}

.ia-leaflet-popup span {
  color: var(--ia-muted);
  line-height: 1.45;
}

.ia-leaflet-popup a,
.ia-button {
  color: var(--ia-red);
  font-weight: 900;
  text-decoration: none;
}

.ia-focus-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--ia-line);
  border-radius: 8px;
  background: #fff;
  color: #111;
  box-shadow: 0 18px 46px rgba(17, 17, 17, .08);
}

.ia-focus-flag img,
.ia-country-hero img {
  width: 92px;
  height: auto;
  border: 1px solid var(--ia-line);
  border-radius: 6px;
}

.ia-focus-flag span,
.ia-country-hero strong {
  font-size: 52px;
  line-height: 1;
}

.ia-focus-card p {
  margin: 0 0 4px;
  color: var(--ia-red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ia-focus-card h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.39;
}

.ia-focus-card span {
  color: var(--ia-muted);
}

.ia-focus-card .ia-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--ia-red);
  color: #fff;
}

.ia-country-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.ia-country-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--ia-line);
  border-radius: 8px;
  color: var(--ia-ink);
  text-decoration: none;
  background: #fff;
}

.ia-country-card.is-active,
.ia-country-card.is-search-match {
  border-color: var(--ia-red);
  box-shadow: 0 10px 26px rgba(233, 50, 45, .12);
}

.ia-country-card img {
  width: 54px;
  height: 38px;
  object-fit: cover;
  border: 1px solid var(--ia-line);
}

.ia-country-card em {
  color: var(--ia-muted);
  font-style: normal;
  font-size: 12px;
}

.ia-country-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.ia-country-side {
  position: sticky;
  top: 24px;
}

.ia-country-hero {
  align-items: center;
}

.ia-country-hero h1 {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ia-country-hero h1 > span:not(.ia-country-hero__emoji) {
  display: inline;
  max-width: none;
  margin: 0;
  color: var(--ia-ink);
  font-size: inherit;
  line-height: inherit;
}

.ia-country-hero h1 img {
  width: 58px;
  height: 40px;
  object-fit: cover;
  border: 1px solid var(--ia-line);
  border-radius: 0;
}

.ia-country-hero__emoji {
  font-size: 42px;
  line-height: 1;
}

.ia-country-hero__meta {
  min-width: 120px;
  display: grid;
  gap: 3px;
  justify-items: end;
  padding: 14px 0 0;
}

.ia-country-hero__meta strong {
  font-size: 2rem;
  line-height: 1;
}

.ia-country-hero__meta span {
  margin: 0;
  color: var(--ia-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.ia-facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--ia-line);
}

.ia-facts-grid div {
  display: grid;
  grid-template-columns: minmax(110px, .55fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--ia-line);
  border-radius: 0;
  background: transparent;
}

.ia-facts-grid span {
  display: block;
  color: var(--ia-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ia-facts-grid strong {
  display: block;
  margin-top: 0;
  font-size: 14px;
  line-height: 1.38;
}

.ia-source-note {
  margin: 16px 0 0;
  color: var(--ia-muted);
  font-size: 13px;
}

.ia-article-list {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--ia-line);
}

.ia-article-list article {
  display: grid;
  grid-template-columns: minmax(150px, 28%) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ia-line);
}

.ia-article-list__media {
  position: relative;
  min-height: 118px;
  display: block;
  overflow: hidden;
  background: var(--ia-soft);
  border: 1px solid var(--ia-line);
}

.ia-article-list__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}

.ia-article-list__media span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ia-red);
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
}

.ia-article-list__body {
  min-width: 0;
  align-self: center;
}

.ia-article-list time {
  color: var(--ia-red);
  font-size: 12px;
  font-weight: 900;
}

.ia-article-list h3 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.39;
}

.ia-article-list p {
  margin: 0;
  color: var(--ia-muted);
  line-height: 1.5;
}

.ia-article-list a {
  color: var(--ia-ink);
  text-decoration: none;
}

.ia-sources {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.ia-sources span {
  display: block;
  color: var(--ia-muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .ia-hero,
  .ia-country-hero,
  .ia-map-head,
  .ia-map-layout,
  .ia-country-layout,
  .ia-facts-grid,
  .ia-country-grid {
    grid-template-columns: 1fr;
  }

  .ia-country-side {
    position: static;
  }

  .ia-map-stage,
  .ia-map-canvas {
    min-height: 460px;
  }

  .ia-map-canvas {
    height: 460px;
  }

  .ia-focus-card {
    grid-template-columns: 1fr;
  }

  .ia-article-list article {
    grid-template-columns: 1fr;
  }
}

.ia-hero h1,
.ia-country-hero h1,
.ia-map-head h2,
.ia-section-head h2,
.ia-panel h2,
.ia-focus-card h2,
.ia-article-list h3 {
  font-size: 2rem;
  line-height: 1.39;
}

.ia-panel,
.ia-map-panel,
.ia-country-card,
.ia-focus-card,
.ia-country-search,
.ia-focus-card .ia-button {
  border-radius: 0;
}
