/* Shared styles for the localised Glossary & Methodology pages
   (guide.ha.html, guide.yo.html, guide.ig.html, guide.pcm.html).
   The English page keeps its own inline styles; this is a superset that
   supports both the not-yet-translated shells and a fully translated page. */
:root {
  --g900: #073f2a; --g800: #075236; --g700: #006b45; --g600: #008751;
  --g100: #dff5e8; --g050: #f1fbf5;
  --gold-100: #fff1cc; --gold-700: #8a5a00;
  --ink: #1b2720; --muted: #5f6f66; --faint: #7f8c84;
  --line: #d9e2dc; --line-strong: #b9cbc1;
  --bg: #f6f8f3; --surface: #fffef9;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Instrument Sans", "Segoe UI", sans-serif; line-height: 1.55;
}
a { color: var(--g700); }
.wrap { max-width: 860px; margin: 0 auto; }

header.hero { border-bottom: 1px solid var(--line-strong); background: var(--surface); padding: 28px 24px; }
.back-link { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--g700); }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--g700); }
h1 { font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: 32px; margin: 6px 0 8px; }
.lede { color: var(--muted); font-size: 15.5px; max-width: 600px; }
.version { font-family: var(--mono); font-size: 12px; color: var(--faint); margin: 12px 0 0; }
.version a { color: var(--faint); }
.draft-note {
  margin: 14px 0 0; max-width: 620px;
  font-size: 12.5px; color: var(--gold-700);
  background: var(--gold-100); border: 1px solid #e6ca7a; border-radius: 6px;
  padding: 9px 12px;
}
.draft-note a { color: var(--gold-700); }

.langbar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 24px; overflow-x: auto; white-space: nowrap; }
.langbar .wrap { display: flex; gap: 14px; align-items: center; }
.langbar span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); }
.langbar a { font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.langbar a[aria-current="true"] { color: var(--g800); text-decoration: underline; }

nav.toc { background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 24px; overflow-x: auto; white-space: nowrap; }
nav.toc .wrap { display: flex; gap: 18px; }
nav.toc a { font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
nav.toc a:hover { color: var(--g700); }

main { padding: 40px 24px 80px; }
section { margin-bottom: 48px; }
h2 {
  font-size: 20px; font-weight: 800; color: var(--g800); margin: 0 0 6px;
  display: flex; align-items: center; gap: 8px;
}
h2 .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--g100); color: var(--g700); font-size: 12px; font-weight: 800;
  flex-shrink: 0;
}
.section-lede { color: var(--muted); margin: 0 0 16px; max-width: 640px; }

.notice {
  background: var(--gold-100); border: 1px solid #e6ca7a; border-radius: 8px;
  padding: 16px 18px; margin-bottom: 32px; font-size: 14px; color: var(--gold-700);
}
.notice strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--gold-700); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 20px; }

dl.term-list { margin: 0; }
dl.term-list dt { display: inline-block; font-weight: 800; color: var(--ink); font-size: 14px; padding: 14px 0 2px; }
dl.term-list dt .badge {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.03em;
  padding: 1px 7px; border-radius: 999px; margin-left: 8px; text-transform: uppercase;
  background: var(--g100); color: var(--g800); vertical-align: middle;
}
dl.term-list dd { margin: 0 0 14px; padding-bottom: 14px; color: var(--muted); font-size: 13.5px; border-bottom: 1px solid var(--line); }
dl.term-list dd:last-of-type { border-bottom: none; }

.subgroup-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--faint); margin: 22px 0 4px;
}
.subgroup-label:first-child { margin-top: 0; }
.hint { font-size: 12.5px; color: var(--faint); margin: 8px 0 0; }

.zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.zone-chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 12px; font-size: 13px; font-weight: 700; text-align: center;
}

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 800; }
td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.table-scroll tr:last-child td { border-bottom: none; }

.cta { margin-top: 28px; font-size: 14px; }
.cta a { font-weight: 700; }

footer { border-top: 1px solid var(--line-strong); padding: 24px; text-align: center; color: var(--faint); font-size: 12.5px; }
footer a { color: var(--muted); }

@media (max-width: 600px) {
  .zone-grid { grid-template-columns: repeat(2, 1fr); }
}
