@font-face {
  font-family: "Noto Sans Myanmar";
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/NotoSansMyanmar-400.ttf) format("truetype");
}

@font-face {
  font-family: "Noto Sans Myanmar";
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/NotoSansMyanmar-600.ttf) format("truetype");
}

@font-face {
  font-family: "Noto Sans Myanmar";
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/NotoSansMyanmar-700.ttf) format("truetype");
}

:root {
  color-scheme: dark;
  --bg: #0c101b;
  --bg2: #121a2c;
  --card: #151c2e;
  --line: #2e3858;
  --gold: #e8c888;
  --gold-d: #c9a769;
  --text: #eef0f6;
  --muted: #b4bcd1;
  --warn-bg: #1b1a22;
  --warn-line: #6d5832;
  --r: 1.25rem;
  --max: 62rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem / 1.7 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Myanmar", sans-serif;
  text-align: start;
  overflow-x: hidden;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link:focus-visible {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  background: var(--gold);
  color: #1c1406;
  font-weight: 700;
  text-decoration: none;
}

:where(a:any-link, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 16, 27, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46, 56, 88, 0.75);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-block-size: 4rem;
  padding-block: 0.625rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-block-size: 2.75rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--gold);
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--gold-d);
  flex-shrink: 0;
}

.top-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  list-style: none;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.5rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--gold);
}

.top-nav a[aria-current="page"] {
  color: var(--gold);
  background: rgba(232, 200, 136, 0.12);
  border: 1px solid rgba(201, 167, 105, 0.45);
  font-weight: 600;
}

main {
  padding-block: 2.5rem 4rem;
  overflow-wrap: break-word;
}

.doc {
  max-width: 68ch;
  margin-inline: auto;
}

.doc-head {
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-d);
}

h1,
h2,
h3 {
  color: var(--gold);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.5rem);
  margin-block: 0.5rem 0.75rem;
}

h2 {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  margin-block: 2.25rem 0.75rem;
}

h3 {
  font-size: 1.125rem;
  margin-block: 1.5rem 0.5rem;
  color: var(--text);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.lead {
  color: var(--muted);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

p,
li {
  text-wrap: pretty;
}

p + p,
p + ul,
ul + p,
table + p,
.callout + p {
  margin-top: 0.875rem;
}

.doc ul,
.doc ol {
  margin-top: 0.75rem;
  padding-inline-start: 1.375rem;
}

.doc li {
  margin-block: 0.45rem;
  color: var(--text);
}

.doc li strong {
  color: var(--gold);
  font-weight: 600;
}

main a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

main a:hover {
  text-decoration-thickness: 2px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 0.35rem;
  overflow-wrap: anywhere;
}

.toc {
  background: linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.25rem 1.375rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.625rem;
}

.toc ol {
  margin-top: 0;
  padding-inline-start: 1.25rem;
  display: grid;
  gap: 0.35rem 1.5rem;
}

@media (min-width: 40rem) {
  .toc ol {
    grid-template-columns: 1fr 1fr;
  }
}

.toc a {
  display: inline-block;
  padding-block: 0.2rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.toc a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.callout {
  background: linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--gold-d);
  border-radius: 0.875rem;
  padding: 1.125rem 1.25rem;
  margin-block: 1.25rem;
}

.callout.warn {
  background: linear-gradient(180deg, var(--warn-bg), var(--bg2));
  border-color: var(--warn-line);
  border-inline-start-color: var(--gold);
}

.callout-title {
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.375rem;
}

.table-wrap {
  margin-block: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 34rem;
}

caption {
  padding: 0.875rem 1rem;
  text-align: start;
  font-weight: 700;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid rgba(46, 56, 88, 0.7);
}

th {
  color: var(--gold);
  font-weight: 600;
  text-wrap: balance;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.contact-card {
  background: linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.375rem;
  margin-top: 1rem;
}

.contact-card dl {
  display: grid;
  gap: 0.75rem;
}

.contact-card dt {
  font-size: 0.875rem;
  color: var(--gold-d);
  font-weight: 600;
}

.contact-card dd {
  color: var(--text);
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem 3rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  color: var(--gold);
  font-weight: 700;
}

.footer-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1rem;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.5rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-links a:hover {
  color: var(--gold);
}

@media (pointer: coarse) {
  .top-nav a,
  .footer-links a,
  .toc a {
    min-block-size: 2.75rem;
    padding-block: 0.4rem;
  }
}

@media (forced-colors: active) {
  .callout,
  .toc,
  .table-wrap,
  .contact-card {
    border: 1px solid CanvasText;
  }
}

@media print {
  :root {
    color-scheme: light;
    --bg: #ffffff;
    --bg2: #f6f6f6;
    --card: #ffffff;
    --line: #cccccc;
    --gold: #111111;
    --gold-d: #333333;
    --text: #111111;
    --muted: #444444;
  }
  header {
    position: static;
    background: #ffffff;
    border-bottom: 1px solid #cccccc;
  }
  .top-nav,
  .skip-link {
    display: none;
  }
}
