/* ============================================================
   lawpan.info — Design System
   Deep royal blue + gold · Myanmar pagoda elegance
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600&family=Padauk:wght@400;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
img, svg, canvas { max-width: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }

/* ── Design Tokens ── */
:root {
  /* Colours */
  --clr-bg:          #080f1e;
  --clr-bg-elevated: #0f1d32;
  --clr-bg-card:     #132238;
  --clr-bg-hover:    #1a2d4a;
  --clr-surface:     #1c3050;
  --clr-border:      #2a4060;
  --clr-border-light:#3a5575;
  --clr-gold:        #d4a843;
  --clr-gold-light:  #f0d078;
  --clr-gold-dark:   #8b6914;
  --clr-blue:        #1e3a6e;
  --clr-blue-mid:    #2d5090;
  --clr-text:        #f2ead8;
  --clr-text-muted:  #9aa8be;
  --clr-text-dim:    #607088;
  --clr-accent:      #c9a84c;
  --clr-danger:      #c0392b;
  --clr-success:     #27ae60;
  --clr-focus:       #5dade2;

  /* Typography */
  --ff-heading: 'Playfair Display', 'Padauk', Georgia, serif;
  --ff-body:    'Inter', 'Padauk', system-ui, sans-serif;
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.563rem;
  --fs-2xl:  1.953rem;
  --fs-3xl:  2.441rem;
  --fs-4xl:  3.052rem;
  --lh-tight: 1.2;
  --lh-base:  1.6;
  --lh-loose: 1.8;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  /* Radii */
  --rad-sm: 4px;
  --rad-md: 8px;
  --rad-lg: 16px;
  --rad-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.6);
  --shadow-gold: 0 0 20px rgba(212,168,67,.25);

  /* Transitions */
  --tr-fast: 150ms ease;
  --tr-base: 250ms ease;
  --tr-slow: 400ms ease;

  /* Layout */
  --max-w: 1120px;
  --header-h: 64px;
}

/* ── Body ── */
body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--clr-text);
  background: var(--clr-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}
@media (min-width: 64em) {
  .container { padding-left: var(--sp-6); padding-right: var(--sp-6); }
}

/* ── Long-word safety ── */
h1, h2, h3, h4, th, td { overflow-wrap: anywhere; }

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--clr-focus);
  outline-offset: 2px;
  border-radius: var(--rad-sm);
}
button:focus-visible, a:focus-visible {
  outline-offset: 4px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #0a1424 0%, #0d1a2e 100%);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: var(--shadow-md);
  height: var(--header-h);
}
.site-header::before {
  content: '';
  display: block;
  height: 3px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--clr-gold) 0px,
      var(--clr-gold) 12px,
      transparent 12px,
      transparent 16px,
      var(--clr-gold-light) 16px,
      var(--clr-gold-light) 28px,
      transparent 28px,
      transparent 32px
    );
  opacity: .7;
}

/* Pagoda silhouette accent */
.site-header::after {
  content: '';
  display: block;
  height: 8px;
  background:
    linear-gradient(135deg, transparent 33%, var(--clr-bg) 33%, var(--clr-bg) 66%, transparent 66%),
    linear-gradient(225deg, transparent 33%, var(--clr-bg) 33%, var(--clr-bg) 66%, transparent 66%);
  background-size: 16px 8px;
  opacity: .15;
}

.site-header .container {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: var(--sp-4);
}

/* ── Brand ── */
.brand {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-gold);
  letter-spacing: .02em;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 0 20px rgba(212,168,67,.3);
}
.brand:hover { color: var(--clr-gold-light); }

/* ── Site Nav ── */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-left: auto;
}
.site-nav a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  border-radius: var(--rad-sm);
  transition: color var(--tr-fast), background var(--tr-fast);
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--clr-gold);
  background: rgba(212,168,67,.08);
}
.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--clr-gold);
}

/* ── Lang Switch ── */
.lang-switch {
  display: flex;
  gap: var(--sp-1);
  flex-shrink: 0;
}
.lang-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-full);
  min-height: 32px;
  min-width: 44px;
  transition: all var(--tr-fast);
}
.lang-switch a:hover,
.lang-switch a[aria-current="page"] {
  color: var(--clr-gold);
  border-color: var(--clr-gold-dark);
  background: rgba(212,168,67,.1);
}

/* ── Nav Toggle (hamburger) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: var(--rad-sm);
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text-muted);
  border-radius: 2px;
  transition: transform var(--tr-base), opacity var(--tr-base);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #0a1424 0%, #0d1c30 100%);
    border-bottom: 1px solid var(--clr-border);
    box-shadow: var(--shadow-lg);
    transition: max-height var(--tr-slow);
  }
  .site-header.nav-open .site-nav {
    max-height: 60vh;
  }
  .site-nav a {
    padding: var(--sp-4) var(--sp-6);
    border-bottom: 1px solid var(--clr-border);
    min-height: 52px;
  }
  .site-nav a:last-child { border-bottom: none; }
  .lang-switch {
    padding: var(--sp-4) var(--sp-6);
    justify-content: flex-start;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: var(--sp-16) 0 var(--sp-12);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30,58,110,.5) 0%, transparent 70%),
    var(--clr-bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(212,168,67,.02) 60px,
      rgba(212,168,67,.02) 61px
    );
  pointer-events: none;
}

.hero h1 {
  font-family: var(--ff-heading);
  font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl));
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--clr-text);
  margin-bottom: var(--sp-4);
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero h1 em {
  font-style: normal;
  color: var(--clr-gold);
  text-shadow: 0 0 30px rgba(212,168,67,.4);
}

.hero .lead {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto var(--sp-6);
  line-height: var(--lh-loose);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-gold);
  background: rgba(212,168,67,.1);
  border: 1px solid rgba(212,168,67,.3);
  border-radius: var(--rad-full);
  margin-bottom: var(--sp-6);
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-gold);
  box-shadow: 0 0 6px var(--clr-gold);
}

/* ============================================================
   GAME SECTION
   ============================================================ */
.game-section {
  padding: var(--sp-12) 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(30,58,110,.3) 0%, transparent 70%),
    var(--clr-bg-elevated);
}
#game-root {
  width: 100%;
  min-height: 420px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-lg);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
  position: relative;
}
#game-root::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-gold-dark), var(--clr-gold-light), var(--clr-gold-dark));
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  padding: var(--sp-4) 0;
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
}
.breadcrumbs a {
  color: var(--clr-text-muted);
  transition: color var(--tr-fast);
}
.breadcrumbs a:hover { color: var(--clr-gold); }
.breadcrumbs + * { margin-top: 0; }
.breadcrumbs::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
  margin-bottom: var(--sp-4);
}

/* ============================================================
   CONTENT (article typography)
   ============================================================ */
.content {
  padding: var(--sp-12) 0;
}
.content h2 {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--clr-text);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--clr-border);
}
.content h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-gold), transparent);
  margin-top: var(--sp-3);
}
.content h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--clr-gold-light);
  margin: var(--sp-8) 0 var(--sp-3);
}
.content p {
  margin-bottom: var(--sp-4);
  color: var(--clr-text-muted);
  line-height: var(--lh-base);
}
.content strong { color: var(--clr-text); font-weight: 600; }
.content ul, .content ol {
  margin-bottom: var(--sp-4);
  padding-left: var(--sp-6);
}
.content ul { list-style: disc; }
.content ol { list-style: decimal; }
.content li {
  margin-bottom: var(--sp-2);
  color: var(--clr-text-muted);
  line-height: var(--lh-base);
}
.content li::marker { color: var(--clr-gold); }

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: var(--sp-6);
  border-radius: var(--rad-md);
  border: 1px solid var(--clr-border);
}
.content table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.content th {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-gold);
  background: var(--clr-bg-elevated);
  border-bottom: 1px solid var(--clr-border);
}
.content td {
  padding: var(--sp-3) var(--sp-4);
  color: var(--clr-text-muted);
  border-bottom: 1px solid var(--clr-border);
  vertical-align: top;
}
.content tr:last-child td { border-bottom: none; }
.content tr:hover td { background: rgba(212,168,67,.04); }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: var(--sp-12) 0;
  background: var(--clr-bg-elevated);
}
.faq details {
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-md);
  margin-bottom: var(--sp-3);
  overflow: hidden;
  transition: border-color var(--tr-fast);
}
.faq details[open] { border-color: var(--clr-border-light); }
.faq summary {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--clr-text);
  cursor: pointer;
  list-style: none;
  transition: background var(--tr-fast);
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: '';
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 5px solid var(--clr-gold);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  transition: transform var(--tr-base);
  margin-left: auto;
}
.faq details[open] summary::before {
  transform: rotate(90deg);
}
.faq summary:hover { background: var(--clr-bg-hover); }
.faq details[open] summary {
  background: var(--clr-bg-card);
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-gold);
}
.faq details[open] summary::after {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.faq div {
  padding: var(--sp-4) var(--sp-5);
  color: var(--clr-text-muted);
  line-height: var(--lh-base);
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  margin: var(--sp-12) 0;
  padding: var(--sp-8) var(--sp-8);
  background: linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-bg-card) 100%);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
}
.cta h2 {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  color: var(--clr-text);
  margin-bottom: var(--sp-3);
  border: none;
  padding: 0;
}
.cta h2::after { display: none; }
.cta p {
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--fs-base);
  font-weight: 600;
  color: #080f1e;
  background: linear-gradient(135deg, var(--clr-gold) 0%, var(--clr-gold-light) 100%);
  border: none;
  border-radius: var(--rad-md);
  box-shadow: var(--shadow-gold);
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), opacity var(--tr-fast);
  min-height: 48px;
  min-width: 44px;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(212,168,67,.45);
  opacity: .95;
}
.btn:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--clr-gold);
  background: transparent;
  border: 1px solid var(--clr-gold-dark);
  border-radius: var(--rad-md);
  transition: all var(--tr-fast);
  min-height: 48px;
  min-width: 44px;
}
.btn-secondary:hover {
  background: rgba(212,168,67,.1);
  border-color: var(--clr-gold);
}

/* ============================================================
   CARD GRID
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-5);
  padding: var(--sp-12) 0;
}
.card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-lg);
  transition: border-color var(--tr-base), transform var(--tr-base), box-shadow var(--tr-base);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-gold-dark), transparent);
  opacity: 0;
  transition: opacity var(--tr-base);
}
.card:hover {
  border-color: var(--clr-border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}
.card:hover::before { opacity: 1; }
.card a {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-height: 100%;
}
.card h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--clr-gold-light);
  margin: 0;
  border: none;
  padding: 0;
}
.card h3::after { display: none; }
.card p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: var(--lh-base);
  margin: 0;
  flex: 1;
}

/* ============================================================
   NOTICE
   ============================================================ */
.notice {
  margin: var(--sp-8) 0;
  padding: var(--sp-5) var(--sp-6);
  background: rgba(192,57,43,.08);
  border: 1px solid rgba(192,57,43,.3);
  border-left: 4px solid var(--clr-danger);
  border-radius: var(--rad-md);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: var(--lh-base);
}
.notice strong { color: var(--clr-danger); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-bg-elevated);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-12) 0 var(--sp-6);
  position: relative;
}
.site-footer::before {
  content: '';
  display: block;
  height: 3px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--clr-gold-dark) 0px,
      var(--clr-gold-dark) 8px,
      transparent 8px,
      transparent 12px,
      var(--clr-gold) 12px,
      var(--clr-gold) 20px,
      transparent 20px,
      transparent 24px
    );
  opacity: .5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}
@media (min-width: 64em) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-gold);
  margin-bottom: var(--sp-3);
}
.footer-brand-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  line-height: var(--lh-base);
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer-links-title {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-gold);
  margin-bottom: var(--sp-3);
}
.footer-links a {
  display: block;
  padding: var(--sp-1) 0;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  transition: color var(--tr-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-links a:hover { color: var(--clr-gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--clr-border);
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-bg);
  background: var(--clr-gold);
  border-radius: var(--rad-full);
  flex-shrink: 0;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}

/* game polish */
#game-root button{min-height:44px;min-width:44px;touch-action:manipulation}
#game-root{overflow:hidden;max-width:100%}
/* header polish (QA): brand + language switch + hamburger must fit 320px */
.site-header .container{min-width:0}
@media (max-width:860px){
 .site-header .container{display:flex;align-items:center;flex-wrap:nowrap;gap:8px}
 .site-header .brand{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .site-header .lang-switch{flex:0 0 auto;display:flex;gap:4px;margin:0}
 .site-header .lang-switch a{padding:6px 8px;font-size:12px;line-height:1.2;min-height:32px;display:inline-flex;align-items:center}
 .site-header .nav-toggle{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin-left:0}
}
@media (max-width:480px){ .site-header .brand small{display:none} }
.site-footer .footer-links a,.site-footer a{display:inline-flex;align-items:center;min-height:40px}
.site-header .brand{min-height:44px;display:inline-flex;align-items:center}
.footer-links{list-style:none;padding:0;margin:0}
.hero{padding-left:clamp(16px,4vw,32px);padding-right:clamp(16px,4vw,32px)}
html,body{overflow-x:clip}
/* Myanmar script: KAT fonts may lack it (font linked in <head>) */
html[lang=my] body,html[lang=my] h1,html[lang=my] h2,html[lang=my] h3,html[lang=my] .brand,html[lang=my] button,html[lang=my] .btn,.lang-switch a[lang=my]{font-family:'Noto Sans Myanmar','Myanmar Text','Padauk',sans-serif}
html[lang=my] body{line-height:1.8}
