/* =========================================================
   MapChart India — Global Styles
   ========================================================= */

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f6fa;
  color: #222;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────── */
header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 52px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  z-index: 100;
  flex-shrink: 0;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a56db;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.logo svg, .logo img { flex-shrink: 0; }

.logo img { border-radius: 6px; }

nav {
  margin-left: 20px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  flex-wrap: nowrap;
}

nav::-webkit-scrollbar { height: 0; }

nav a {
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #555;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

nav a:hover { background: #eff6ff; color: #1a56db; }
nav a.active { background: #eff6ff; color: #1a56db; font-weight: 700; }

.header-badge {
  margin-left: auto;
  background: #fff3cd;
  color: #856404;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #ffc107;
  white-space: nowrap;
}

/* ── App Layout ──────────────────────────────────────────── */
.app-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Left Sidebar ────────────────────────────────────────── */
.sidebar {
  width: 252px;
  min-width: 252px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

.panel-section {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.panel-section h3 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #94a3b8;
  margin-bottom: 10px;
}

/* ── Color Palette ───────────────────────────────────────── */
.color-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.color-swatch {
  aspect-ratio: 1;
  border-radius: 7px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform .12s, border-color .12s, box-shadow .12s;
  position: relative;
}

.color-swatch:hover { transform: scale(1.12); }

.color-swatch.active {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 2px #fff inset, 0 2px 8px rgba(0,0,0,.2);
}

.color-swatch .swatch-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  opacity: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

.color-swatch.active .swatch-check { opacity: 1; }

.custom-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.custom-color-row label {
  font-size: 0.8rem;
  color: #64748b;
  flex-shrink: 0;
  width: 46px;
}

.hex-input {
  flex: 1;
  min-width: 0;
  height: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 0.78rem;
  font-family: Consolas, 'Courier New', monospace;
  color: #334155;
  text-transform: uppercase;
  outline: none;
  transition: border-color .15s;
}

.hex-input:focus { border-color: #1a56db; }

#customColorInput {
  width: 38px;
  height: 30px;
  padding: 0 2px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  background: none;
}

.active-color-preview {
  flex: 1;
  height: 30px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: #fff;
  font-weight: 600;
  letter-spacing: .5px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn {
  padding: 6px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn:active { transform: scale(0.97); }

.btn-primary { background: #1a56db; color: #fff; border-color: #1a56db; }
.btn-primary:hover { background: #1a44b0; }

.btn-danger { color: #dc2626; }
.btn-danger:hover { background: #fef2f2; border-color: #fca5a5; }

.btn-full { width: 100%; justify-content: center; margin-top: 8px; }

/* ── Options ─────────────────────────────────────────────── */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.options-list label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.options-list input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #1a56db;
  cursor: pointer;
}

/* ── Legend Editor ───────────────────────────────────────── */
.legend-entry {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.legend-color-dot {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.1);
}

.legend-label-input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.8rem;
  color: #222;
  outline: none;
  transition: border-color .15s;
}

.legend-label-input:focus { border-color: #1a56db; }

.legend-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* ── Map Area ────────────────────────────────────────────── */
/* column that stacks the map above the under-map ad strip */
.map-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.map-container {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #b8d4e8;
}

#map {
  width: 100%;
  height: 100%;
}

#mapSvg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Country / region paths */
.country-path {
  cursor: pointer;
  stroke: rgba(255,255,255,0.7);
  stroke-width: 0.5px;
  transition: filter .1s;
}

.country-path:hover { filter: brightness(0.88); }

.country-label {
  font-size: 7px;
  fill: #1e293b;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 500;
}

/* Tooltip */
.tooltip {
  position: fixed;
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  pointer-events: none;
  z-index: 9999;
  display: none;
  max-width: 220px;
  line-height: 1.4;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* Map controls (zoom) */
.map-controls {
  position: absolute;
  bottom: 20px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.map-ctrl-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1;
  background: rgba(255,255,255,.92);
  border-radius: 7px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #374151;
  transition: background .15s;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.map-ctrl-btn:hover { background: #fff; }

/* India claim banner */
.india-claim-banner {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255,255,255,.9);
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.72rem;
  color: #92400e;
  max-width: 280px;
  line-height: 1.4;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Tile attribution */
.map-attribution {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(255,255,255,.78);
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 4px;
  color: #475569;
  pointer-events: none;
  z-index: 5;
  display: none;
}

/* On-map legend */
.map-legend-overlay {
  position: absolute;
  background: rgba(255,255,255,.93);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 10px 14px;
  min-width: 110px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  backdrop-filter: blur(6px);
}

.map-legend-overlay.pos-bl { bottom: 60px; left: 16px; }
.map-legend-overlay.pos-br { bottom: 60px; right: 56px; }
.map-legend-overlay.pos-tl { top: 12px; left: 16px; }
.map-legend-overlay.pos-tr { top: 12px; right: 56px; }

.map-legend-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 4px;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}

.map-legend-box {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.1);
}

.map-legend-text {
  font-size: 0.76rem;
  color: #475569;
  white-space: nowrap;
}

/* ── Right Export Panel ──────────────────────────────────── */
.right-panel {
  width: 190px;
  min-width: 190px;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  overflow-y: auto;
}

.export-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

.export-row label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.export-row select,
.export-row input[type="number"] {
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #222;
  outline: none;
  width: 100%;
}

.export-row select:focus,
.export-row input:focus { border-color: #1a56db; }

.legend-pos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 4px;
}

.pos-btn {
  padding: 5px 4px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #fff;
  font-size: 0.72rem;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
  color: #555;
}

.pos-btn:hover, .pos-btn.active { background: #eff6ff; border-color: #1a56db; color: #1a56db; font-weight: 600; }

/* ── Index / Homepage ────────────────────────────────────── */
.index-body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.hero {
  background:
    linear-gradient(rgba(13, 31, 56, 0.55), rgba(16, 38, 70, 0.65)),
    url('../hero-bg.jpg') center / cover no-repeat,
    linear-gradient(135deg, #1e3a5f 0%, #1a56db 100%);
  color: #fff;
  text-align: center;
  padding: 64px 20px;
}

.hero h1, .hero p { text-shadow: 0 1px 8px rgba(0,0,0,0.35); }

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.5px;
}

.hero p {
  font-size: 1.05rem;
  opacity: .85;
  margin-top: 10px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero-note {
  display: inline-block;
  margin-top: 18px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  padding: 28px 36px 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  padding: 20px 36px 36px;
}

.map-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
  display: block;
}

.map-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

.map-card-thumb {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}

.map-card-thumb.world-thumb   { background: linear-gradient(135deg, #1e3a5f, #1a56db); }
.map-card-thumb.asia-thumb    { background: linear-gradient(135deg, #065f46, #10b981); }
.map-card-thumb.india-thumb   { background: linear-gradient(135deg, #7c2d12, #f97316); }
.map-card-thumb.europe-thumb  { background: linear-gradient(135deg, #312e81, #6366f1); }
.map-card-thumb.africa-thumb  { background: linear-gradient(135deg, #92400e, #f59e0b); }
.map-card-thumb.na-thumb      { background: linear-gradient(135deg, #134e4a, #14b8a6); }
.map-card-thumb.sa-thumb      { background: linear-gradient(135deg, #831843, #ec4899); }
.map-card-thumb.oceania-thumb { background: linear-gradient(135deg, #0c4a6e, #0ea5e9); }
.map-card-thumb.countries-thumb { background: linear-gradient(135deg, #3730a3, #a855f7); }

.map-card-body { padding: 14px 16px; }
.map-card-title { font-size: 1rem; font-weight: 700; color: #1e293b; }
.map-card-desc  { font-size: 0.78rem; color: #64748b; margin-top: 4px; line-height: 1.4; }

.map-card-badge {
  display: inline-block;
  margin-top: 8px;
  background: #eff6ff;
  color: #1a56db;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ── Loading / Error ─────────────────────────────────────── */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248,250,252,.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  font-size: 0.9rem;
  color: #64748b;
  gap: 12px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #1a56db;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Context Menu ────────────────────────────────────────── */
.ctx-menu {
  position: fixed;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  z-index: 9998;
  min-width: 160px;
  padding: 4px 0;
  font-size: 0.82rem;
}

.ctx-menu-item {
  padding: 8px 16px;
  cursor: pointer;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .1s;
}

.ctx-menu-item:hover { background: #f8fafc; }
.ctx-menu-item.danger { color: #dc2626; }
.ctx-menu-item.danger:hover { background: #fef2f2; }
.ctx-menu-divider { height: 1px; background: #f1f5f9; margin: 3px 0; }

/* ── Bring-your-own tile API key ─────────────────────────── */
.key-box { margin-top: 10px; }

.key-box summary {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a56db;
  cursor: pointer;
  user-select: none;
}

.key-box .key-hint {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.5;
  margin: 7px 0 2px;
}

.key-box .key-hint a { color: #1a56db; }

.key-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}

.key-row input {
  flex: 1;
  min-width: 0;
  height: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 0.76rem;
  font-family: Consolas, 'Courier New', monospace;
  color: #334155;
  outline: none;
}

.key-row input:focus { border-color: #1a56db; }

.key-status {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.4;
  flex-basis: 100%;
}

/* banner shown over the map after repeated tile failures */
.tile-key-notice {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: min(92%, 560px);
  background: #fff;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.14);
  padding: 9px 12px;
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.45;
  z-index: 60;
}

.tile-key-notice .btn { flex-shrink: 0; }

.tile-key-notice .notice-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 2px 4px;
  flex-shrink: 0;
}

.tile-key-notice .notice-close:hover { color: #475569; }

/* ── Guide visuals ───────────────────────────────────────── */
.g-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #1a56db;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 9px;
  flex-shrink: 0;
}

/* step headings: center the badge against the title text */
.art h2 { display: flex; align-items: center; }

.g-fig {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 14px 8px;
  margin: 14px 0 20px;
  text-align: center;
}

.g-fig svg { max-width: 100%; height: auto; }

.g-fig figcaption {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 6px 0 4px;
  line-height: 1.45;
}

.g-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0 20px; }
.g-row .g-fig { flex: 1 1 210px; margin: 0; }

.g-tip {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-left: 4px solid #1a56db;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 14px 0;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.6;
}

.g-kbd {
  display: inline-block;
  padding: 0 7px;
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #f8fafc;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.8em;
  color: #334155;
}

.g-ui {
  display: inline-block;
  padding: 1px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  font-size: 0.85em;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.g-swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,.12);
  vertical-align: -2px;
}

.g-legend {
  display: inline-block;
  text-align: left;
  background: rgba(255,255,255,.95);
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 10px 16px 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.g-legend-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.g-legend-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: #475569;
  margin-top: 4px;
}

.g-legend-row i {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,.1);
  flex-shrink: 0;
}

/* ── Ad slots ────────────────────────────────────────────── */
.ad-slot {
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #d9e1ec;
  border-radius: 10px;
  overflow: hidden;
}

.ad-slot::before {
  content: 'Advertisement';
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #b3bfce;
  padding: 4px 0 2px;
}

.ad-slot .adsbygoogle { display: block; margin: 0 auto; }

/* hide slots that have no ad unit in them yet — no empty dashed boxes */
.ad-slot:not(:has(.adsbygoogle)) { display: none; }

/* horizontal strip under the map on editor pages — fixed height so the
   map keeps a stable size and ads cause no layout shift */
.ad-bar {
  flex-shrink: 0;
  height: 108px;
  border: none;
  border-top: 1px solid #e2e8f0;
  border-radius: 0;
  background: #fff;
}

/* vertical slot at the bottom of the right export panel (min 160×600
   skyscrapers and 300×250 rectangles scale down responsively) */
.ad-panel {
  margin: 12px 12px 16px;
  min-height: 272px;
}

/* in-content banner on the home, list and guide pages */
.ad-banner {
  width: min(748px, calc(100% - 40px));
  min-height: 118px;
  margin: 26px auto;
}

/* ── Site footer ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid #e2e8f0;
  background: #fff;
  padding: 26px 24px 30px;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 2;
}
.site-footer a { color: #64748b; text-decoration: none; margin: 0 7px; }
.site-footer a:hover { color: #1a56db; text-decoration: underline; }
.site-footer .foot-note { font-size: 0.74rem; margin-top: 4px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .right-panel { display: none; }
  .sidebar { width: 220px; min-width: 220px; }
}

@media (max-width: 640px) {
  .sidebar { width: 200px; min-width: 200px; }
  nav a { padding: 5px 8px; font-size: 0.8rem; }
}

/* ── SEO / info content below the map app ─────────────────── */
/* Tool pages that carry content below the app scroll as a page;
   the app itself still fills the first viewport. */
body.has-page-content {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
}
body.has-page-content .app-container {
  flex: none;
  height: calc(100vh - 52px);
  min-height: 480px;
}

.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  width: 100%;
}
.page-content h1 {
  font-size: 1.5rem;
  color: #1e293b;
  line-height: 1.3;
  margin-bottom: 12px;
}
.page-content h2 {
  font-size: 1.08rem;
  color: #1e293b;
  margin: 26px 0 8px;
}
.page-content p, .page-content li {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.7;
}
.page-content ol, .page-content ul { padding-left: 22px; margin: 6px 0; }
.page-content a { color: #1a56db; }
.page-content .faq h3 {
  font-size: 0.95rem;
  color: #1e293b;
  margin: 16px 0 4px;
}
.page-content .related {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #64748b;
}
.page-content .related a { margin-right: 4px; }
.region-list {
  columns: 3;
  column-gap: 24px;
  padding-left: 22px;
  margin: 6px 0;
}
@media (max-width: 640px) { .region-list { columns: 2; } }
