:root {
  --ink: #151925;
  --ink-2: #252b39;
  --dim: #555a7a;
  --mute: #6b7288;
  --line: #e9ecf2;
  --bg: #fff;
  --gray-0: #f8f9fa;
  --gray-1: #f1f3f5;
  --indigo-0: #edf2ff;
  --green: #128a4a;
  --green-9: #2b8a3e;
  --green-soft: #e7f7ed;
  --blue: #228be6;
  --blue-3: #74c0fc;
  --header-h: 84px;
  --wrap: 1234px;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(21, 25, 37, .04);
  --font: Inter, "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --head: Manrope, Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 80;
  background: var(--ink); color: #fff; padding: .5rem .8rem; border-radius: 8px;
}
.skip:focus { top: .8rem; }

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}
@media (min-width: 992px) {
  .wrap { width: min(var(--wrap), calc(100% - 96px)); }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-bar {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: 28px;
}
@media (min-width: 992px) {
  .header-bar { padding-inline: 48px; }
}
.logo {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.logo-mark {
  width: 36px; height: 36px; flex-shrink: 0;
}
.logo-word {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.04em;
  line-height: 1;
}
.logo-word span { color: var(--green); }
.nav {
  display: none;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.search-btn, .burger {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; color: var(--ink-2);
}
.search-btn:hover, .burger:hover { background: var(--gray-0); }
.burger { display: inline-flex; flex-direction: column; gap: 5px; }
.burger span {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
}
@media (min-width: 992px) {
  .nav { display: flex; }
  .burger { display: none; }
}

.mobile-nav {
  display: none;
  position: fixed; inset: var(--header-h) 0 0;
  background: #fff; z-index: 39;
  padding: 24px 28px;
  flex-direction: column; gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--head);
  font-size: 1.25rem; font-weight: 700;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
body.nav-open { overflow: hidden; }

/* Hero */
.hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 474px;
  margin: 0 0 8px;
}
@media (min-width: 992px) {
  .hero { height: 530px; margin: 16px 48px 0; }
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
}
.hero-shade {
  position: absolute; inset: auto 0 0;
  height: 80%;
  background: linear-gradient(180deg, transparent 0, rgba(0,0,0,.78));
  pointer-events: none;
}
@media (min-width: 992px) {
  .hero-shade { height: 48%; }
}
.hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}
@media (min-width: 992px) {
  .hero-inner { padding: 28px 32px; }
}
.hero-badge {
  align-self: flex-start;
  background: rgba(12, 18, 32, .46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 20px 28px 22px;
}
.hero h1 {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.03em;
  color: #fff;
}
.hero-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
@media (min-width: 992px) {
  .hero-links { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.hero-links a {
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.hero-links a:hover { color: var(--blue-3); }

.page-hero {
  padding: 28px 0 8px;
}
.page-hero h1 {
  margin: 0 0 8px;
  font-family: var(--head);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.page-hero p {
  margin: 0;
  color: var(--dim);
  max-width: 52ch;
}

/* Sections */
.section { padding-top: 28px; }
@media (min-width: 992px) {
  .section { padding: 28px 0 8px; }
}
.section h2, .block-title {
  margin: 0 0 14px;
  font-family: var(--head);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
}
#popular-directions { scroll-margin-top: 100px; padding: 32px 0 48px; }

/* Transport */
.transport-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (min-width: 992px) {
  .transport-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.t-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 181px;
  padding: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  transition: color .15s ease;
}
.t-card:hover { color: var(--blue); }
.t-card svg {
  position: absolute;
  top: 22px; left: 16px;
  width: 118px; height: auto;
  opacity: .95;
}
.t-car { background: #fff5f5; }
.t-plane { background: #f8f0fc; }
.t-train { background: #e6fcf5; }
.t-cruise { background: #e7f5ff; }

/* Editorial split */
.split {
  display: grid;
  gap: 16px;
}
@media (min-width: 992px) {
  .split { grid-template-columns: 1fr 1fr; }
}
.feature-card {
  position: relative;
  isolation: isolate;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.feature-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.feature-card::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.78));
}
.feature-card span {
  position: relative; z-index: 2;
  padding: 24px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .feature-card { min-height: 420px; }
}
@media (min-width: 992px) {
  .feature-card { min-height: 0; }
  .feature-card span { padding: 32px; font-size: 1.35rem; }
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  grid-auto-rows: minmax(181px, auto);
}
@media (min-width: 768px) {
  .article-grid { grid-template-columns: 1fr 1fr; }
  .article-grid .article-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--gray-0);
  color: inherit;
  transition: background-color .15s ease;
}
.article-card:hover { background: var(--indigo-0); }
.article-card .tag {
  color: var(--green-9);
  font-family: var(--head);
  font-size: .75rem;
  font-weight: 600;
  line-height: 14px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.article-card .meta-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}
.article-card h3 {
  margin: 0;
  font-family: var(--head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  transition: color .15s ease;
}
.article-card:hover h3 { color: var(--blue); }
.article-card time, .article-card .read {
  color: var(--dim);
  font-size: .75rem;
  line-height: 16px;
}

/* Countries */
.country-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .country-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .country-grid { grid-template-columns: repeat(4, 1fr); }
}
.country-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--gray-0);
  overflow: hidden;
  transition: background-color .15s ease;
}
.country-card:hover { background: var(--gray-1); }
.country-card img {
  width: 40px; height: 30px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}
.country-card h3 {
  margin: 0;
  font-family: var(--head);
  font-size: 1.05rem;
  font-weight: 700;
}
@media (min-width: 992px) {
  .country-card {
    flex-direction: column;
    align-items: flex-start;
    height: 257px;
    padding: 16px 20px 20px;
  }
  .country-card img { width: 56px; height: 42px; }
  .country-card .grow { flex: 1; }
  .country-card h3 { font-size: 1.25rem; }
}
.country-card.hidden { display: none; }
@media (min-width: 992px) {
  .country-card.hidden { display: none; }
}
body.show-all .country-card.hidden { display: flex; }

.more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 24px;
}
.more-btn {
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--dim);
  font-weight: 600;
}
.more-btn:hover { background: #d3f0de; }
body.show-all .more-btn { display: none; }

/* Article page */
.crumbs {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: .875rem; color: var(--dim); margin: 20px 0 12px;
}
.crumbs a:hover { color: var(--blue); }
.article-head h1 {
  margin: 0 0 10px;
  font-family: var(--head);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.article-head .byline {
  color: var(--dim);
  font-size: .9rem;
  margin-bottom: 22px;
}
.lead {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 68ch;
}
.prose {
  max-width: 72ch;
}
.prose h2 {
  font-family: var(--head);
  font-size: 1.4rem;
  margin: 2rem 0 .75rem;
  letter-spacing: -.02em;
}
.prose h3 {
  font-family: var(--head);
  font-size: 1.1rem;
  margin: 1.4rem 0 .5rem;
}
.prose p { margin: 0 0 1rem; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--ink-2); }
.prose li { margin: .3rem 0; }
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 1.5rem 0 2rem;
}
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}
.fact {
  background: var(--gray-0);
  border-radius: 16px;
  padding: 16px;
}
.fact dt {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--green-9);
  font-weight: 700;
  font-family: var(--head);
}
.fact dd { margin: 6px 0 0; font-weight: 600; }

.cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 8px 0 28px;
  max-height: 420px;
}
.cover img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.related {
  margin: 48px 0 24px;
}

/* Search */
.search-modal {
  display: none;
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15, 18, 32, .45);
  padding: 10vh 16px 16px;
}
.search-modal.open { display: block; }
.search-box {
  width: min(640px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15,18,32,.25);
}
.search-box input {
  width: 100%;
  border: 0;
  padding: 18px 20px;
  font-size: 1rem;
  outline: none;
}
.search-results {
  max-height: 50vh;
  overflow: auto;
  border-top: 1px solid var(--line);
}
.search-results a {
  display: block;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.search-results a:hover { background: var(--indigo-0); }
.search-results small { display: block; color: var(--dim); font-size: .75rem; }

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

.notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}
.notfound .code {
  font-family: var(--head);
  font-size: 5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin: 0;
}
.back-home {
  display: inline-flex;
  margin-top: 20px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--green);
  color: #fff !important;
  font-weight: 700;
}

@media (max-width: 640px) {
  .header-bar { padding-inline: 16px; }
  .logo-word { font-size: 1.15rem; }
  .hero { border-radius: 0; }
  .wrap { width: min(var(--wrap), calc(100% - 24px)); }
}

/* City guide */
.city-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 10px;
  margin: 8px 0 28px;
}
.city-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  position: relative;
}
.city-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.city-gallery figure:first-child {
  grid-row: 1 / span 2;
}
.city-gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
}
@media (max-width: 720px) {
  .city-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 160px 160px;
  }
  .city-gallery figure:first-child { grid-column: 1 / -1; grid-row: auto; }
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--gray-0);
  color: var(--ink-2);
  font-size: .85rem;
  font-weight: 600;
}
.toc a:hover { background: var(--green-soft); color: var(--green-9); }

.info-block {
  margin: 0 0 40px;
  scroll-margin-top: 100px;
}
.info-block > h2 {
  font-family: var(--head);
  font-size: 1.55rem;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
.info-block > .sub {
  margin: 0 0 18px;
  color: var(--dim);
  max-width: 68ch;
}
.info-block > h3, .health-hiv-title {
  font-family: var(--head);
  font-size: 1.2rem;
  margin: 22px 0 6px;
  letter-spacing: -.02em;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: var(--gray-0);
}
.info-table th, .info-table td {
  text-align: left;
  padding: 14px 18px;
  vertical-align: top;
  border-bottom: 1px solid #fff;
}
.info-table th {
  width: 34%;
  font-family: var(--head);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--green-9);
  font-weight: 700;
}
.info-table td { color: var(--ink-2); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: auto; }
  .info-table th { padding-bottom: 0; }
  .info-table td { padding-top: 6px; }
}

.visa-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border-radius: 20px;
  background: #e7f7ed;
  border: 1px solid #92d6ab;
  margin: 0 0 16px;
}
.visa-banner .mark {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: #128a4a;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.1rem;
}
.visa-banner h3 { margin: 0 0 6px; font-family: var(--head); font-size: 1.15rem; }
.visa-banner p { margin: 0; color: var(--ink-2); }
.note {
  font-size: .9rem;
  color: var(--dim);
  margin: 0 0 1rem;
}

.map-panel {
  background: var(--gray-0);
  border-radius: 24px;
  padding: 18px;
  overflow: hidden;
}
.map-panel svg, .map-panel img { width: 100%; height: auto; border-radius: 16px; background: #fff; }
.map-legend {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  margin-top: 12px;
  font-size: .85rem;
  color: var(--dim);
}
.map-legend i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
}

.warn-list {
  display: grid;
  gap: 12px;
}
.warn-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff5f5;
}
.warn-card h3 {
  margin: 0 0 8px;
  font-family: var(--head);
  font-size: 1.05rem;
  color: #c92a2a;
}
.warn-card p, .warn-card ul { margin: 0; color: var(--ink-2); }
.warn-card ul { padding-left: 1.15rem; }

.useful-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.useful-card {
  background: var(--gray-0);
  border-radius: 20px;
  padding: 20px;
}
.useful-card h3 {
  margin: 0 0 8px;
  font-family: var(--head);
  font-size: 1.08rem;
}
.useful-card p, .useful-card ul { margin: 0; color: var(--ink-2); }
.useful-card ul { padding-left: 1.15rem; }
@media (max-width: 720px) {
  .useful-grid { grid-template-columns: 1fr; }
}

.embassy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 22px;
  border-radius: 20px;
  background: #edf2ff;
}
.embassy h3 { margin: 0 0 8px; font-family: var(--head); }
.embassy p { margin: 0 0 6px; color: var(--ink-2); }
.embassy a { color: var(--blue); font-weight: 600; }
@media (max-width: 720px) {
  .embassy { grid-template-columns: 1fr; }
}

.city-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.city-mini {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--gray-0);
  color: inherit;
}
.city-mini img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.city-mini div { padding: 14px 16px 16px; }
.city-mini h3 {
  margin: 0 0 6px;
  font-family: var(--head);
  font-size: 1.05rem;
}
.city-mini p { margin: 0; color: var(--dim); font-size: .9rem; }
@media (max-width: 992px) {
  .city-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .city-cards { grid-template-columns: 1fr; }
  .city-mini img { height: 180px; }
}

.city-live-map {
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  position: relative;
  z-index: 1;
  background: #dce8dc;
}
.city-live-map .leaflet-container {
  height: 100%;
  width: 100%;
  font-family: inherit;
}
.city-live-hint {
  margin: 10px 0 0;
  font-size: .82rem;
  color: var(--dim);
}
.life-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 16px;
}
@media (max-width: 720px) {
  .life-grid { grid-template-columns: 1fr; }
  .city-live-map { height: 360px; }
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 18px;
}
.stat-card {
  background: var(--gray-0);
  border-radius: 18px;
  padding: 18px 16px;
}
.stat-card .num {
  font-family: var(--head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-9);
  letter-spacing: -.03em;
  line-height: 1.15;
}
.stat-card .lbl {
  display: block;
  font-size: .82rem;
  color: var(--dim);
  margin-top: 6px;
}
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0 0 12px;
}
.fact-card {
  background: var(--gray-0);
  border-radius: 18px;
  padding: 16px 14px;
}
.fact-card .lbl {
  display: block;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
  margin-bottom: 6px;
}
.fact-card strong {
  font-family: var(--head);
  font-size: 1.12rem;
  letter-spacing: -.02em;
}
@media (max-width: 900px) {
  .fact-grid { grid-template-columns: 1fr 1fr; }
}

.live-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 14px;
  margin: 0 0 16px;
}
.live-card {
  background: var(--gray-0);
  border-radius: 20px;
  padding: 20px 18px 18px;
}
.live-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-9);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e03131;
  box-shadow: 0 0 0 4px rgba(224, 49, 49, .15);
  animation: livepulse 1.6s ease-in-out infinite;
}
@keyframes livepulse { 50% { opacity: .35; } }
.live-time {
  font-family: var(--head);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}
.live-date {
  margin: 0 0 14px;
  color: var(--dim);
  font-size: .95rem;
  text-transform: capitalize;
}
.live-temp {
  font-family: var(--head);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  margin: 0 0 6px;
}
.live-temp small { font-size: .45em; color: var(--dim); margin-left: 2px; }
.live-desc { margin: 0 0 14px; color: var(--ink-2); }
.live-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.live-meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .9rem;
  border-top: 1px solid #fff;
  padding-top: 8px;
}
.live-meta li span { color: var(--mute); }
.live-meta-lg li { padding: 10px 0 0; }
@media (max-width: 960px) {
  .live-grid { grid-template-columns: 1fr; }
}

.forecast {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.forecast-day {
  background: var(--gray-0);
  border-radius: 16px;
  padding: 12px 8px 14px;
  text-align: center;
}
.forecast-day .d {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}
.forecast-day .w { font-size: .82rem; color: var(--ink-2); margin: 0 0 6px; }
.forecast-day .t {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1rem;
}
.forecast-day .t em { font-style: normal; color: var(--mute); font-weight: 600; }
.forecast-day .p { display: block; margin-top: 4px; font-size: .78rem; color: var(--blue); }
@media (max-width: 800px) {
  .forecast { grid-template-columns: 1fr 1fr; }
}

.climate-scroll { overflow-x: auto; margin: 0 0 22px; }
.climate-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--gray-0);
  border-radius: 18px;
  overflow: hidden;
}
.climate-table th, .climate-table td {
  text-align: left;
  padding: 10px 12px;
  font-size: .86rem;
  border-bottom: 1px solid #fff;
  white-space: nowrap;
}
.climate-table thead th {
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-9);
}
.climate-table tbody th {
  font-family: var(--head);
  font-weight: 700;
  color: var(--ink);
}
.climate-table em {
  font-style: normal;
  color: var(--green-9);
  font-size: .72rem;
  font-weight: 700;
  margin-left: 4px;
}
.c-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
}
.c-badge-good { background: #e7f7ed; color: #2b8a3e; }
.c-badge-ok { background: #fff3bf; color: #9c6b00; }
.c-badge-bad { background: #ffe3e3; color: #c92a2a; }
.c-badge-wet { background: #d0ebff; color: #1864ab; }

.trange-list { display: grid; gap: 8px; margin: 0 0 22px; }
.trange {
  display: grid;
  grid-template-columns: 42px 1fr 64px;
  gap: 10px;
  align-items: center;
  font-size: .85rem;
}
.trange-track {
  height: 10px;
  border-radius: 999px;
  background: #e9ecef;
  position: relative;
}
.trange-track i {
  position: absolute;
  top: 0; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #74c0fc, #f08c00);
}
.trange span { color: var(--dim); font-variant-numeric: tabular-nums; text-align: right; }

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 12px;
}
.chart-card {
  margin: 0;
  background: var(--gray-0);
  border-radius: 20px;
  padding: 16px 14px 12px;
}
.chart-card figcaption {
  font-family: var(--head);
  font-weight: 700;
  font-size: .95rem;
  margin: 0 0 12px;
}
.cbar-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  align-items: end;
  height: 140px;
}
.cbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}
.cbar span {
  font-size: .62rem;
  color: var(--dim);
  margin-bottom: 4px;
}
.cbar i {
  display: block;
  width: 100%;
  max-width: 22px;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: var(--green);
}
.cbar small {
  margin-top: 6px;
  font-size: .65rem;
  color: var(--mute);
}
@media (max-width: 800px) {
  .chart-grid { grid-template-columns: 1fr; }
  .cbar span { display: none; }
}

body:has(.city-guide) { background: #f4f1ea; }
body:has(.city-guide) .site-header {
  background: rgba(244, 241, 234, .9);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom-color: rgba(21, 25, 37, .06);
}
.city-kicker {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-9);
}
.city-guide > .article-head { margin-bottom: 8px; }
.city-guide > .article-head h1 {
  font-size: clamp(2rem, 4.6vw, 3.05rem);
  max-width: 18ch;
  letter-spacing: -.03em;
}
.city-guide > .lead {
  font-size: clamp(1.15rem, 2vw, 1.38rem);
  line-height: 1.6;
  max-width: 48ch;
  margin: 0 0 40px;
  color: var(--ink);
}
.city-guide > .city-gallery {
  grid-template-rows: minmax(240px, 28vw) minmax(240px, 28vw);
  gap: 12px;
  margin: 8px 0 28px;
}
.city-guide > .crumbs { margin-top: 28px; }

.h2-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  background: #f3eee4;
  border: 1px solid rgba(21, 25, 37, .06);
  overflow: hidden;
}
.h2-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.city-guide .info-block > h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  margin: 0 0 12px;
}
.city-guide .info-block {
  background: #fff;
  border: 1px solid rgba(21, 25, 37, .06);
  border-radius: 28px;
  padding: 28px 26px 32px;
  margin: 0 0 20px;
  box-shadow: 0 10px 30px rgba(28, 23, 18, .04);
}
.city-guide .info-block > .sub {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 62ch;
  margin: 0 0 22px;
}
.city-guide .prose {
  max-width: none;
}
.city-guide .prose p,
.city-guide .prose li {
  line-height: 1.7;
  font-size: 1.04rem;
}
.city-guide .info-table th,
.city-guide .info-table td {
  padding: 16px 20px;
  line-height: 1.6;
}
.city-guide .useful-card,
.city-guide .warn-card,
.city-guide .live-card,
.city-guide .fact-card,
.city-guide .stat-card,
.city-guide .chart-card {
  background: #f8f6f1;
}
.city-guide .warn-card { background: #fff5f5; }
.city-guide .visa-banner { margin-top: 4px; }
.city-guide .climate-table { background: #f8f6f1; }
.city-guide .climate-table th,
.city-guide .climate-table td { border-bottom-color: #fff; }

.toc-label {
  display: none;
  margin: 0 0 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}

@media (min-width: 1100px) {
  .city-guide { width: min(1180px, calc(100% - 64px)); }
  .city-layout {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr);
    gap: 36px 40px;
    align-items: start;
  }
  .city-guide > .toc,
  .city-layout > .toc {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2px;
    margin: 0;
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid rgba(21, 25, 37, .06);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(28, 23, 18, .04);
  }
  .toc-label { display: block; padding: 0 10px; }
  .city-layout > .toc a {
    border-radius: 12px;
    min-height: 36px;
    padding: 0 12px;
    font-size: .82rem;
    background: transparent;
  }
  .city-layout > .toc a:hover {
    background: #f4f1ea;
    color: var(--green-9);
  }
  .city-layout > .toc a.is-active {
    background: var(--green-soft);
    color: var(--green-9);
  }
}
@media (max-width: 1099px) {
  .city-layout { display: block; }
  .city-guide .toc { margin: 0 0 24px; }
  .city-guide .toc a.is-active {
    background: var(--green-soft);
    color: var(--green-9);
  }
}
@media (max-width: 720px) {
  .city-guide .info-block { padding: 20px 16px 22px; border-radius: 22px; }
  .h2-icon { width: 44px; height: 44px; border-radius: 14px; }
  .city-guide > .city-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 140px;
  }
  .city-guide .info-block > h2 { gap: 10px; }
}

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

body:has(.world-page) { background: #f4f1ea; }
body:has(.world-page) .site-header {
  background: rgba(244, 241, 234, .9);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom-color: rgba(21, 25, 37, .06);
}
.world-page { padding-bottom: 64px; }
.world-page > .lead { margin-bottom: 28px; }
.w-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 28px;
}
.w-stat {
  background: #fff;
  border-radius: 20px;
  padding: 18px 16px;
  border: 1px solid rgba(21, 25, 37, .06);
  box-shadow: 0 10px 30px rgba(28, 23, 18, .04);
}
.w-stat .lbl {
  display: block;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 700;
  margin-bottom: 6px;
}
.w-stat strong {
  font-family: var(--head);
  font-size: 1.35rem;
  letter-spacing: -.03em;
}
.w-stat a { color: var(--green-9); }
.w-stat small { display: block; margin-top: 4px; color: var(--dim); font-size: .85rem; }
@media (max-width: 800px) {
  .w-stats { grid-template-columns: 1fr 1fr; }
}

.w-search-bar { margin: 0 0 18px; }
.w-search input,
.w-search-inline input {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(21, 25, 37, .1);
  background: #fff;
  padding: 0 18px;
  font: inherit;
  font-size: 1.02rem;
}
.w-search-inline { display: block; margin: 0 0 16px; }
.w-search-meta { margin: 8px 0 0; color: var(--dim); font-size: .85rem; }
.w-search-hits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  background: #fff;
  border-radius: 20px;
  padding: 10px;
  border: 1px solid rgba(21, 25, 37, .06);
}
.w-search-hits a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}
.w-search-hits a:hover { background: #f4f1ea; }
.w-search-hits small { display: block; color: var(--dim); font-size: .8rem; }
@media (max-width: 720px) {
  .w-search-hits { grid-template-columns: 1fr; }
}

.w-chips, .w-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.w-chip, .w-letters button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(21, 25, 37, .08);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.w-letters button { min-width: 36px; padding: 0; }
.w-chip.is-on, .w-letters button.is-on {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.w-h2 {
  margin: 28px 0 14px;
  font-family: var(--head);
  font-size: 1.45rem;
}
.w-countries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.w-country {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(21, 25, 37, .06);
}
.w-country:hover { border-color: #92d6ab; }
.w-flag { width: 40px; height: 30px; object-fit: cover; border-radius: 4px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(21,25,37,.08); }
.w-flag-lg { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px rgba(21,25,37,.08); }
.w-country-body { min-width: 0; }
.w-country-body strong { display: block; font-family: var(--head); letter-spacing: -.02em; }
.w-country-body small { color: var(--dim); font-size: .82rem; }
.w-empty { color: var(--dim); }
.w-country-head { display: flex; align-items: center; gap: 18px; }
@media (max-width: 900px) {
  .w-countries { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .w-countries { grid-template-columns: 1fr; }
  .w-country-head { align-items: flex-start; }
}

.w-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(21, 25, 37, .06);
}
.w-table { width: 100%; border-collapse: collapse; }
.w-table th, .w-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #f0ebe3;
  vertical-align: top;
}
.w-table th {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-9);
}
.w-table tr:last-child td { border-bottom: 0; }
.w-table a { font-weight: 600; }
.w-table a:hover { color: var(--green-9); }
.w-table .en { color: var(--mute); font-weight: 400; font-size: .85rem; }
.w-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-guide-link, .w-map-link { margin: 0 0 18px; }
.w-guide-link a, .w-map-link a { color: var(--green-9); font-weight: 600; }
.w-mini-cities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.w-mini-cities a {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 25, 37, .06);
}
.w-mini-cities small { display: block; color: var(--dim); margin-top: 4px; }
@media (max-width: 800px) {
  .w-mini-cities { grid-template-columns: 1fr 1fr; }
}
