/* City Guide Myanmar — site styles. No external fonts or scripts: works straight from disk. */

:root {
  --ink: #14403f;
  --ink-soft: #2c5b59;
  --gold: #a87b12;
  --gold-soft: #f6ead0;
  --paper: #faf7f2;
  --card: #ffffff;
  --line: #e4dfd5;
  --text: #1b1c1a;
  --muted: #5c5f5a;
  --sidebar: 300px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6c676;
    --ink-soft: #cdb26a;
    --gold: #8fd0c8;
    --gold-soft: #1f2a2a;
    --paper: #0f1214;
    --card: #171b1e;
    --line: #2c3236;
    --text: #e7e3dc;
    --muted: #a9ada8;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Padauk", "Noto Sans Myanmar", "Myanmar Text", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

/* ---------- Language switch (pure CSS, radio buttons) ---------- */

.lang-input { position: absolute; opacity: 0; pointer-events: none; }

#lang-my:checked ~ .shell [lang="en"],
#lang-en:checked ~ .shell [lang="my"] { display: none; }

.lang-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
}

.lang-switch label {
  padding: 6px 16px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  color: var(--muted);
}

#lang-my:checked ~ .shell label[for="lang-my"],
#lang-en:checked ~ .shell label[for="lang-en"] {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.lang-input:focus-visible ~ .shell .lang-switch { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Layout: fixed sidebar + reading column ---------- */

.shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 52px; height: 52px; border-radius: 12px; }
.brand-name { font-family: "Roboto", system-ui, sans-serif; font-weight: 800; font-size: 17px; line-height: 1.2; }
.brand-name small {
  display: block;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
}

.nav-title {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid;
  grid-template-columns: 28px 1fr;
  padding: 5px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 12px;
  color: var(--gold);
  padding-top: 3px;
}
.toc a:hover { background: var(--gold-soft); color: var(--text); }

.side-links { margin-top: auto; display: grid; gap: 8px; font-size: 15px; }

.content { padding: 56px clamp(20px, 6vw, 88px) 96px; max-width: 920px; }

/* ---------- Typography ---------- */

.eyebrow {
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.4; margin: 6px 0 12px; color: var(--ink); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 8px; max-width: 60ch; }
.meta { font-size: 14px; color: var(--muted); }

/* ---------- Summary strip ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  margin: 32px 0 8px;
  overflow: hidden;
}
.fact { padding: 18px 20px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-size: 19px; line-height: 1.4; color: var(--ink); }
.fact > span { font-size: 14px; color: var(--muted); line-height: 1.6; display: block; }

/* ---------- Numbered sections ---------- */

.policy { counter-reset: section; }

.policy section {
  counter-increment: section;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 16px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.policy section::before {
  content: counter(section, decimal-leading-zero);
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--gold);
}
.policy section > div > :first-child { margin-top: 0; }

h2 { font-size: 23px; line-height: 1.6; margin: 0 0 8px; color: var(--ink); }
h3 { font-size: 17px; margin: 20px 0 4px; }
p { margin: 0 0 12px; max-width: 66ch; }
ul { margin: 0 0 12px; padding-left: 22px; max-width: 66ch; }
li { margin-bottom: 4px; }

.note {
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 12px 0;
  max-width: 66ch;
}
.note p:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; margin: 8px 0 12px; font-size: 15.5px; line-height: 1.7; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
td:first-child { font-weight: 700; white-space: nowrap; }

.contact-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}

/* ---------- Home page ---------- */

.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 0; max-width: none; }
.feature-list li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.feature-list b { color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--ink-soft); color: var(--paper); }

footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- Small screens: sidebar becomes a top bar ---------- */

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px;
    gap: 16px;
  }
  .sidebar nav { display: none; }
  .side-links { margin-top: 0; grid-auto-flow: column; justify-content: start; gap: 16px; }
  .content { padding-top: 32px; }
  .policy section { grid-template-columns: 1fr; }
  .policy section::before { font-size: 20px; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .feature-list li { grid-template-columns: 1fr; gap: 2px; }
  td:first-child { white-space: normal; }
}

@media print {
  .sidebar { display: none; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
}
