:root {
  --ink: #17201b;
  --muted: #617068;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --leaf: #1f6f5b;
  --leaf-dark: #15483e;
  --gold: #c4933f;
  --sky: #dcecf0;
  --coral: #d9634a;
  --line: rgba(23, 32, 27, 0.14);
  --shadow: 0 18px 50px rgba(30, 44, 39, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: var(--leaf-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--leaf);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  font-size: 14px;
  white-space: nowrap;
  overflow-x: auto;
}

.nav-links a {
  color: var(--ink);
}

.anonamed-link {
  color: #a42016 !important;
  font-weight: 700;
}

.language-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

select {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 25, 22, 0.86), rgba(15, 25, 22, 0.48) 48%, rgba(15, 25, 22, 0.05)),
    linear-gradient(0deg, rgba(18, 30, 25, 0.72), transparent 52%);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 108px 0 52px;
  color: white;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--gold);
  color: #1f170b;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: white;
}

.country-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 38px;
  max-width: 980px;
}

.country-strip span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
}

.notice,
.quick-grid,
.content-section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.notice {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.notice h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.notice p:last-child,
.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 38px 0 18px;
}

.quick-grid article,
.cards article,
.profile-card,
.place-card,
.link-group,
.country-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-grid article {
  padding: 22px;
  box-shadow: none;
}

.metric {
  display: block;
  color: var(--leaf);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h3 {
  margin: 12px 0 8px;
  line-height: 1.15;
}

.quick-grid p,
.cards p,
.profile-card p,
.place-card p,
.link-group p {
  color: var(--muted);
}

.image-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 34px 0 12px;
  border-block: 1px solid var(--line);
  background: var(--ink);
}

.image-band figure {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
}

.image-band img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: saturate(0.95);
  transition: transform 0.35s ease;
}

.image-band figure:hover img {
  transform: scale(1.04);
}

.image-band figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(14, 22, 19, 0.72);
  color: white;
  font-weight: 800;
  font-size: 14px;
}

.content-section {
  padding: 76px 0;
}

.content-section.alt {
  width: 100%;
  padding-inline: max(16px, calc((100vw - 1180px) / 2));
  background: #edf4ef;
  border-block: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
  gap: 32px;
  margin-bottom: 28px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--leaf-dark);
  font-size: 13px;
  text-transform: uppercase;
}

td {
  color: #2c3832;
}

.cards,
.place-grid,
.profile-grid,
.link-directory {
  display: grid;
  gap: 16px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.cards.four {
  grid-template-columns: repeat(4, 1fr);
}

.cards article,
.profile-card,
.place-card,
.link-group,
.country-panel {
  padding: 22px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.feature-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.feature-images.single {
  grid-template-columns: 1fr;
}

.feature-images.single img {
  height: clamp(260px, 44vw, 520px);
}

.feature-images figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.feature-images img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.feature-images figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
}

.split > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.check-list {
  padding-left: 19px;
}

.check-list li {
  margin: 9px 0;
}

.place-grid {
  grid-template-columns: repeat(3, 1fr);
}

.place-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.place-card img {
  width: calc(100% + 44px);
  max-width: none;
  height: 170px;
  object-fit: cover;
  margin: -22px -22px 18px;
  border-radius: 8px 8px 0 0;
}

.place-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.pill,
.score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf4ef;
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 750;
}

.score.warn {
  background: #fff2e0;
  color: #7d4f0e;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 9px 12px;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.tab-button[aria-selected="true"] {
  background: var(--leaf-dark);
  color: white;
}

.country-panel {
  box-shadow: none;
}

.country-panel h3 {
  margin-top: 0;
}

.profile-grid {
  grid-template-columns: repeat(4, 1fr);
}

.profile-card {
  box-shadow: none;
}

.profile-card strong {
  color: var(--leaf-dark);
}

.risk-meter {
  height: 8px;
  border-radius: 999px;
  background: #e6ece9;
  overflow: hidden;
  margin: 14px 0 10px;
}

.risk-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--leaf), var(--gold), var(--coral));
}

.link-directory {
  grid-template-columns: repeat(3, 1fr);
}

.link-group ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.link-group li {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 36px 0 48px;
  color: var(--muted);
}

.site-footer p {
  max-width: 720px;
  margin: 6px 0 0;
}

[dir="rtl"] body {
  text-align: right;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
  }

  .hero {
    min-height: 680px;
  }

  .notice,
  .section-heading,
  .split,
  .feature-images {
    grid-template-columns: 1fr;
  }

  .quick-grid,
  .cards.four,
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .place-grid,
  .cards.three,
  .link-directory {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: auto;
  }

  .language-control {
    flex: 1;
    justify-content: space-between;
  }


  .hero {
    min-height: 760px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .quick-grid,
  .cards.four,
  .cards.three,
  .profile-grid,
  .place-grid,
  .link-directory,
  .image-band {
    grid-template-columns: 1fr;
  }

  .image-band figure,
  .image-band img {
    min-height: 240px;
  }

  .site-footer {
    display: block;
  }
}
