/* Base: fonts, reset, typography, focus, accessibility helpers (SPEC 8.4, 8.6). */

/* OFL fonts, self-hosted (SPEC 8.4): Bebas Neue for titles, Inter 400/600/700 for text, Noto for th/hi */
@font-face { font-family: "Bebas Neue"; font-weight: 400; font-display: swap;
  src: local("Bebas Neue"), url(../fonts/bebas-neue-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bebas Neue"; font-weight: 400; font-display: swap;
  src: local("Bebas Neue"), url(../fonts/bebas-neue-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap;
  src: local("Inter Regular"), url(../fonts/inter-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap;
  src: local("Inter SemiBold"), url(../fonts/inter-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap;
  src: local("Inter Bold"), url(../fonts/inter-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Thai"; font-weight: 400; font-display: swap;
  src: local("Noto Sans Thai"), url(../fonts/noto-sans-thai-400.woff2) format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-weight: 700; font-display: swap;
  src: local("Noto Sans Thai Bold"), url(../fonts/noto-sans-thai-700.woff2) format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 400; font-display: swap;
  src: local("Noto Sans Devanagari"), url(../fonts/noto-sans-devanagari-400.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 700; font-display: swap;
  src: local("Noto Sans Devanagari Bold"), url(../fonts/noto-sans-devanagari-700.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

*, ::before, ::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-block: 6rem; }
body {
  margin: 0; min-block-size: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 1rem/1.55 var(--font-body); font-synthesis-weight: none; overflow-wrap: break-word;
}
:lang(th) { font-family: var(--font-th); }
:lang(hi) { font-family: var(--font-hi); }
:lang(zh) { font-family: var(--font-zh); }
/* th/hi: size and leading on root and body only */
html:lang(th), html:lang(hi) { font-size: 1.0625rem; }
html:lang(th) body, html:lang(hi) body { line-height: 1.7; }
html:lang(zh) body { line-height: 1.65; line-break: strict; }
/* English fallback runs keep the Latin stack */
[lang="en"] { font-family: var(--font-body); }

/* Titles: Bebas Neue capitals; h4, small headings and th/hi/zh titles use the text face */
h1, h2, h3, h4 { margin: 0 0 .5em; text-wrap: balance; hyphens: auto; }
h4 { font-size: 1.0625rem; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; line-height: 1.1; letter-spacing: .03em; text-transform: uppercase; }
h1 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.25rem); line-height: 1.05; }
h2 { font-size: 1.875rem; } h3 { font-size: 1.5rem; }
h4, :is(h2, h3).small, html:is(:lang(th), :lang(hi), :lang(zh)) :is(h1, h2, h3, .display) { font-family: inherit; font-weight: 700; line-height: 1.3; letter-spacing: normal; text-transform: none; }
html:is(:lang(th), :lang(hi), :lang(zh)) h1 { font-size: clamp(1.625rem, 1.2rem + 2vw, 2.25rem); }
html:is(:lang(th), :lang(hi), :lang(zh)) h2 { font-size: 1.5rem; }
html:is(:lang(th), :lang(hi), :lang(zh)) h3 { font-size: 1.25rem; }
html:is(:lang(th), :lang(hi)) :is(h1, h2, h3, h4, .display) { line-height: 1.5; }
p, ul, ol, dl, table, figure, fieldset { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.25rem; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .12em; }
img, svg, video { max-inline-size: 100%; block-size: auto; }
hr { border: 0; border-block-start: 1px solid var(--divider); margin-block: 1.5rem; }
small, .small { font-size: .875rem; }
.muted { color: var(--text-muted); }
button, input, select, textarea { font: inherit; color: inherit; }
b, strong { font-weight: 700; }
[hidden] { display: none !important; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.chrome :focus-visible, .site-footer :focus-visible { outline-color: var(--chrome-focus); }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.hp { position: absolute; inset-inline-start: -10000px; inline-size: 1px; block-size: 1px; overflow: hidden; }
.skip {
  position: absolute; inset-inline-start: .5rem; inset-block-start: -10rem; z-index: 100;
  padding: .75rem 1rem; background: var(--btn-bg); color: var(--btn-fg); border-radius: var(--radius);
}
.skip:focus { inset-block-start: .5rem; }
.js-only { display: none; }
.js .js-only { display: revert; }
.js .no-js-only { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .chrome, .subnav, .site-footer, .skip, .beta { display: none !important; } body { background: #fff; color: #000; } }
