:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-bg: #eff6ff;
  --border: #e5e7eb;
  --header-h: 46px;
  --nav-w: 230px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); }

/* ─── Header ─────────────────────────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: #111827; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; z-index: 300; border-bottom: 2px solid var(--accent);
}
#menu-toggle {
  display: none; background: none; border: none; color: #9ca3af;
  font-size: 18px; cursor: pointer; padding: 4px 6px; line-height: 1; flex-shrink: 0;
}
.site-title { font-size: 14px; font-weight: 600; color: #93c5fd; letter-spacing: 0.3px; text-decoration: none; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.layout { display: flex; margin-top: var(--header-h); min-height: calc(100vh - var(--header-h)); }

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
nav#sidebar {
  width: var(--nav-w); flex-shrink: 0;
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 16px 0;
  position: sticky; top: var(--header-h); align-self: flex-start;
  height: calc(100vh - var(--header-h)); overflow-y: auto;
}
nav#sidebar::-webkit-scrollbar { width: 3px; }
nav#sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.nav-label {
  padding: 4px 16px 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.9px;
  text-transform: uppercase; color: var(--muted);
}
nav#sidebar a {
  display: block; padding: 8px 16px 8px 18px; font-size: 13px; color: var(--text);
  text-decoration: none; border-left: 3px solid transparent;
  transition: background .12s, color .12s; line-height: 1.4;
}
nav#sidebar a:hover { background: #f9fafb; color: var(--accent); }
nav#sidebar a.active {
  color: var(--accent); border-left-color: var(--accent);
  background: var(--accent-bg); font-weight: 500;
}

/* ─── Main ───────────────────────────────────────────────────────────────── */
main { flex: 1; min-width: 0; padding: 40px 52px 64px; }
.content { max-width: 760px; }

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1 { font-size: 24px; font-weight: 700; line-height: 1.3; color: #111827; margin-bottom: 8px; }
.lead { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 32px; }
h2 { font-size: 17px; font-weight: 600; color: #1f2937; margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
h3 { font-size: 13px; font-weight: 700; color: #374151; margin: 24px 0 8px; text-transform: uppercase; letter-spacing: 0.5px; }
p { font-size: 15px; line-height: 1.8; color: #374151; margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
strong { color: #111827; font-weight: 600; }
hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
a { color: var(--accent); }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 22px; margin-bottom: 16px; }
li { font-size: 15px; line-height: 1.75; color: #374151; margin-bottom: 4px; }

/* ─── Tables ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: 8px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  background: #f3f4f6; font-weight: 600; color: #1f2937;
  padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td { padding: 8px 12px; border-bottom: 1px solid var(--border); color: #374151; vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) td { background: #f9fafb; }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; text-decoration: none; color: inherit; display: block;
  transition: box-shadow .15s, border-color .15s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: #c7d2fe; }
.card-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.card h3 { font-size: 14px; font-weight: 600; color: var(--accent); margin: 0 0 6px; text-transform: none; letter-spacing: 0; }
.card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ─── Misc ───────────────────────────────────────────────────────────────── */
.note {
  background: var(--accent-bg); border: 1px solid #bfdbfe; border-radius: 8px;
  padding: 12px 16px; margin-bottom: 20px; font-size: 13px; color: #1e40af; line-height: 1.6;
}
.map-embed { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); margin: 20px 0; }
.map-embed iframe { display: block; width: 100%; height: 540px; border: none; }

/* ─── Facebook banner ────────────────────────────────────────────────────── */
.fb-banner {
  display: flex; align-items: center; gap: 12px;
  background: #1877f2; border-radius: 10px;
  padding: 14px 20px; margin-bottom: 24px;
  text-decoration: none; color: #fff;
  transition: background .15s, transform .12s;
}
.fb-banner:hover { background: #1564d0; transform: translateY(-1px); }
.fb-banner-label {
  font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  opacity: .75; white-space: nowrap;
}
.fb-banner-name {
  flex: 1; font-size: 15px; font-weight: 700; line-height: 1.3;
}
.fb-banner-arrow { font-size: 20px; opacity: .8; flex-shrink: 0; }

/* ─── Blockquote ─────────────────────────────────────────────────────────── */
blockquote {
  border-left: 3px solid var(--accent); margin: 16px 0;
  padding: 10px 16px; background: var(--accent-bg);
  border-radius: 0 6px 6px 0;
}
blockquote p { font-style: italic; color: #1e40af; }

/* ─── RWD ────────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  #menu-toggle { display: block; }
  nav#sidebar {
    position: fixed; left: calc(-1 * var(--nav-w)); top: var(--header-h);
    height: calc(100vh - var(--header-h)); z-index: 200;
    transition: left .22s ease;
  }
  nav#sidebar.open { left: 0; box-shadow: 4px 0 20px rgba(0,0,0,0.12); }
  main { padding: 24px 18px 48px; }
  h1 { font-size: 20px; }
  h2 { font-size: 16px; margin-top: 28px; }
  .map-embed iframe { height: 360px; }
}
