:root {
  --ink: #0b1f14;
  --text: #1c2b22;
  --muted: #5b6b61;
  --bg: #f6faf6;
  --surface: #ffffff;
  --border: #dbe7dd;
  --brand: #15803d;
  --brand-deep: #0f4a2c;
  --mint: #bbf7d0;
  --yellow: #facc15;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f7f2;
    --text: #dfe9e1;
    --muted: #9db0a3;
    --bg: #0c1510;
    --surface: #14201a;
    --border: #243329;
    --brand: #4ade80;
    --brand-deep: #0f4a2c;
    --mint: #14532d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Lao", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: var(--brand); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.bar { border-bottom: 1px solid var(--border); background: var(--surface); }
header.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .lang button[aria-pressed="true"] { color: #06240f; } }

.hero { background: linear-gradient(160deg, #04170d, #0b3a22 55%, #167a45); color: #fff; padding: 56px 0 64px; text-align: center; }
.hero img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 12px 34px rgba(0,0,0,.35); }
.hero h1 { font-size: clamp(30px, 7vw, 44px); line-height: 1.25; margin: 20px 0 8px; text-wrap: balance; }
.hero h1 mark { background: var(--yellow); color: #0b1f14; padding: 0 .25em; border-radius: 8px; }
.hero p { margin: 0 auto; max-width: 34em; color: rgba(255,255,255,.85); }
.cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; background: #fff; color: #15803d; font-weight: 800; padding: 12px 22px; border-radius: 999px; text-decoration: none; }
.soon { display: block; margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.7); }

main { padding: 32px 0 48px; }
h1.title { font-size: clamp(26px, 6vw, 34px); line-height: 1.3; color: var(--ink); margin: 8px 0 4px; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
h2 { font-size: 21px; color: var(--ink); margin: 32px 0 8px; line-height: 1.4; }
ul { padding-left: 1.2em; margin: 8px 0; }
li { margin: 4px 0; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 12px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.card b { display: block; color: var(--ink); margin-bottom: 2px; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: #0b1f14; font-weight: 800; margin-bottom: 8px; }
.note { background: var(--mint); border-radius: 14px; padding: 12px 16px; margin: 16px 0; color: var(--ink); }
footer { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--muted); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }

/* Language switch: Lao is the default; site.js sets data-lang on <html>. Without JS both show. */
html[data-lang="lo"] [lang="en"], html[data-lang="en"] [lang="lo"] { display: none; }
