/* EX-IM · countries.css · /countries (pages/countries.php), a standalone page
   without the site header and footer. Ported as-is from the approved design
   "EXIM-Countries-list-Globe" (Nov 2026); only the fonts differ: the site's own
   Inter files instead of the design's embedded copies. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }

/* Shared base for the countries-list style options D to H: tokens, top bar, hero type, filters,
   status pills, flags, empty state and footer. Each option adds its own layout on top. */
:root {
  --bg: #050608;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-solid: #0c0d11;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f6f8;
  --muted: rgba(245, 246, 248, 0.64);
  --faint: rgba(245, 246, 248, 0.42);
  --orange: #ffba6a;
  --purple: #d8d3ff;
  --cyan: #6fe2ff;
  --grad: linear-gradient(110deg, #ffba6a 0%, #d8d3ff 50%, #6fe2ff 100%);
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 15% -10%, rgba(255, 186, 106, 0.1), transparent 70%),
    radial-gradient(900px 520px at 85% -12%, rgba(111, 226, 255, 0.1), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 400 16px / 1.55 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Top bar */
.top {
  position: relative;
  z-index: 10;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.top__logo svg {
  display: block;
  width: 118px;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top nav a {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.top nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.top nav a.demo {
  background: var(--grad);
  color: #0a0b0e;
  font-weight: 600;
  box-shadow: 0 8px 26px -10px rgba(111, 226, 255, 0.7);
}

/* Hero type */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(111, 226, 255, 0.16);
}

.title {
  margin: 20px 0 0;
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 600px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.search {
  position: relative;
  flex: 1 1 240px;
  max-width: 320px;
}

.search svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  fill: none;
  stroke: var(--faint);
  stroke-width: 2;
  stroke-linecap: round;
}

.search input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search input::placeholder {
  color: var(--faint);
}

.search input:focus {
  border-color: rgba(111, 226, 255, 0.55);
  outline: none;
  box-shadow: 0 0 0 4px rgba(111, 226, 255, 0.12);
}

.seg {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.seg button,
.chips button {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.seg button {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.seg button:hover {
  color: var(--text);
}

.seg button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.92);
  color: #0a0b0e;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips button {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}

.chips button:hover {
  border-color: var(--line-2);
  color: var(--text);
}

.chips button[aria-pressed="true"] {
  border-color: rgba(111, 226, 255, 0.45);
  background: rgba(111, 226, 255, 0.1);
  color: var(--text);
}

.count {
  margin: 0 0 0 auto;
  color: var(--faint);
  font-size: 13px;
  white-space: nowrap;
}

/* Status pills */
.pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill--live {
  background: rgba(111, 226, 255, 0.12);
  color: var(--cyan);
}

.pill--live::before {
  box-shadow: 0 0 0 3px rgba(111, 226, 255, 0.2);
}

.pill--stopped {
  background: rgba(255, 186, 106, 0.12);
  color: var(--orange);
}

.pill--mirror {
  background: rgba(216, 211, 255, 0.12);
  color: var(--purple);
}

/* Flags */
.flag {
  display: block;
  flex: none;
  object-fit: cover;
  background: #1a1c22;
}

.flag.round {
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.flag.is-region {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 186, 106, 0.3), rgba(111, 226, 255, 0.3));
  color: var(--text);
}

.flag.is-region svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.empty {
  margin: 40px 0 0;
  padding: 40px 24px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty a {
  color: var(--cyan);
}

.foot {
  margin-top: 96px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .top nav a:not(.demo) {
    display: none;
  }

  .search {
    max-width: none;
  }

  .seg {
    width: 100%;
  }

  .seg button {
    flex: 1;
    padding-inline: 6px;
  }

  .chips {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .chips button {
    flex: none;
  }

  .count {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* Style H, "Globe": a rotating dotted globe with a pin for every primary country (drag it,
   hover a pin, click to find the country), then an editorial list by region. */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 24px 48px;
  padding: 36px 0 24px;
}

.hero .title {
  font-size: clamp(38px, 5.2vw, 66px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--line);
}

.stats li {
  padding: 18px 16px 16px 22px;
}

.stats li:first-child {
  padding-left: 0;
}

.stats li + li {
  border-left: 1px solid var(--line);
}

.stats b {
  display: block;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--faint);
  font-size: 13px;
}

.stats li:nth-child(2) b {
  color: var(--cyan);
}

.stats li:nth-child(3) b {
  color: var(--purple);
}

/* Globe */
.globe {
  position: relative;
  width: 100%;
  max-width: 700px; /* larger canvas, same globe: the glow needs the margin */
  margin-inline: auto;
  aspect-ratio: 1;
}

.globe canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.globe canvas:active {
  cursor: grabbing;
}

.globe__tip {
  position: absolute;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(12, 13, 17, 0.95);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.9);
}

.globe__tip small {
  display: block;
  color: var(--faint);
  font-weight: 500;
}

.globe__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.globe__legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.globe__legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-top: 32px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.84);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* Editorial list */
.region {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px 48px;
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
}

.region__name {
  position: sticky;
  top: 96px;
  align-self: start;
}

.region__name h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.region__name p {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 14px;
  line-height: 1.8;
}

.region__name p b {
  font-weight: 600;
}

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.label::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.sub + .sub {
  margin-top: 32px;
}

.plist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 6px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s ease;
}

.plist li.flash {
  background: rgba(111, 226, 255, 0.12);
}

/* Primary and mirror flags are the same size. */
.plist .flag,
.mlist .flag {
  width: 30px;
  height: 22px;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.plist .who {
  flex: 1;
  min-width: 0;
}

.plist strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.plist .when {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plist .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.plist .is-stopped .dot {
  background: none;
  border: 1.5px solid var(--orange);
  box-shadow: none;
}

.plist .is-stopped .flag {
  filter: grayscale(0.85);
  opacity: 0.7;
}

.plist .is-stopped .when {
  color: var(--orange);
}

.mlist {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 3 180px;
  column-gap: 28px;
}

.mlist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  break-inside: avoid;
  color: rgba(245, 246, 248, 0.78);
  font-size: 14px;
  line-height: 1.3;
}

@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .globe {
    max-width: 560px;
  }

  .region {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 40px 0;
  }

  .region__name {
    position: static;
  }
}

@media (max-width: 720px) {
  .bar {
    position: static;
  }

  .plist {
    grid-template-columns: minmax(0, 1fr);
  }

  .mlist {
    columns: 2 130px;
    column-gap: 16px;
  }
}

@media (max-width: 480px) {
  .stats li {
    padding-inline: 14px 8px;
  }

  .stats b {
    font-size: 32px;
  }
}
