:root {
  --bg: #ffffff;
  --surface: #f3faf8;
  --surface-2: #e7f2ef;
  --ink: #17312c;
  --muted: #4d6963;
  --accent: #0c8f8a;
  --accent-dark: #07706c;
  --pine: #1f4d43;
  --pine-soft: #dcebe6;
  --line: #cfe0db;
  --focus: #ff9f1c;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --shadow: 0 6px 24px rgba(23,49,44,.08);
  --transition: .2s ease;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine); }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--pine); font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 .7rem; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 2rem 0 .7rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
p { margin: .5rem 0 1rem; }
ul { list-style: none; padding: 0; margin: .5rem 0; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
th { background: var(--pine-soft); color: var(--pine); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
button { font: inherit; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.2rem; }
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.brand { font-size: 1.4rem; font-weight: 700; color: var(--accent-dark); text-decoration: none; letter-spacing: .5px; }
.brand span { color: var(--pine); }
.menu-toggle {
  display: none; background: var(--pine); color: #fff; border: 0;
  padding: .6rem 1rem; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600;
}
.menu-toggle:focus-visible, a:focus-visible, button:focus-visible, details:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
#site-menu ul { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; }
#site-menu a { text-decoration: none; color: var(--ink); font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
#site-menu a:hover { color: var(--accent-dark); border-color: var(--accent); }
.hero { background: linear-gradient(135deg, #eefaf7 0%, #f7fdfb 60%, #e5f2ed 100%); border-bottom: 1px solid var(--line); padding: 2.6rem 0 2.2rem; }
.hero h1 { max-width: 750px; }
.hero p { max-width: 650px; color: var(--muted); font-size: 1.1rem; }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 1rem;
  margin-top: 1.8rem;
}
.stat-card { background: rgba(255,255,255,.7); backdrop-filter: blur(4px); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; }
.stat-card strong { display: block; font-size: 1.8rem; color: var(--accent-dark); }
.stat-card span { color: var(--muted); font-size: .9rem; }
.region-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1.3rem; padding: 2.4rem 0 1rem; }
.region-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; box-shadow: none; transition: background var(--transition), box-shadow var(--transition);
}
.region-card:hover { background: #fff; box-shadow: var(--shadow); }
.region-card h2 { margin: 0 0 .4rem; font-size: 1.3rem; }
.region-card p { color: var(--muted); margin: 0 0 .8rem; }
.region-card a { font-weight: 600; }
.contact-directory { padding: 1.8rem 0 3rem; }
.directory-item { border-bottom: 1px solid var(--line); padding: 1.2rem 0; display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; }
.directory-item:last-child { border-bottom: 0; }
.directory-item .country { font-weight: 700; color: var(--accent-dark); }
.directory-item .details p { margin: .2rem 0; color: var(--muted); }
.directory-item .details strong { color: var(--ink); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; margin: .6rem 0; }
summary { cursor: pointer; font-weight: 600; color: var(--pine); }
details[open] { background: #fff; }
figure { margin: 1.5rem 0; }
figure img { border-radius: var(--radius); border: 1px solid var(--line); }
figcaption { color: var(--muted); font-size: .85rem; margin-top: .4rem; }
.breadcrumb { color: var(--muted); font-size: .9rem; padding: 1.2rem 0 0; }
.breadcrumb a { color: var(--accent-dark); }
.content-layout { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; padding: 1rem 0 3rem; }
.sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; align-self: start; position: sticky; top: 90px; }
.sidebar h2 { margin-top: 0; font-size: 1.1rem; }
.sidebar li { margin: .4rem 0; }
.sidebar a { text-decoration: none; }
.article-body { min-width: 0; }
.article-body table { font-size: .95rem; }
.footer { background: var(--pine); color: #eaf5f1; padding: 2rem 0; margin-top: 2rem; }
.footer a { color: #9fe2d9; }
.footer p { margin: .2rem 0; }
@media (max-width: 720px) {
  .header-inner { flex-wrap: nowrap; }
  .menu-toggle { display: block; }
  #site-menu { width: 100%; display: none; }
  #site-menu.is-open { display: block; }
  #site-menu ul { flex-direction: column; gap: .6rem; padding: .6rem 0; }
  .directory-item { grid-template-columns: 1fr; gap: .3rem; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero { padding: 1.8rem 0 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .skip-link { transition: none; }
}
main { min-inline-size: 0; overflow-wrap: anywhere; }
main img { max-inline-size: 100%; height: auto; }
main pre, .content-table-scroll { max-inline-size: 100%; overflow-x: auto; }
