:root {
  color-scheme: light;
  --ink: #182837;
  --muted: #4c5f70;
  --blue: #0064a6;
  --blue-hover: #004c81;
  --line: #d6e1eb;
  --surface: #f4f7fa;
  --white: #fff;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 15px/1.65 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #0074b9; outline-offset: 4px; }
main:focus, article:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
.container { width: min(1180px, calc(100% - 88px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 4; top: 8px; left: 8px; padding: 8px 14px; background: var(--white); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 75px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 700; white-space: nowrap; }
.brand-mark { display: block; width: 38px; height: 38px; flex: none; }
.site-nav { display: flex; align-items: stretch; gap: clamp(20px, 3vw, 42px); align-self: stretch; margin-left: auto; white-space: nowrap; }
.site-nav a { display: flex; align-items: center; border-block: 2px solid transparent; color: #344a5f; font-size: 14px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--blue); border-bottom-color: var(--blue); }
.header-search { display: inline-flex; align-items: center; gap: 10px; min-height: 34px; margin-left: 7px; padding: 4px 0 4px 17px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--blue); font-size: 13px; white-space: nowrap; }
.header-search:hover { color: var(--blue-hover); }
.icon-search { position: relative; display: inline-block; flex: none; width: 14px; height: 14px; border: 1.6px solid currentColor; border-radius: 50%; margin-right: 4px; }
.icon-search::after { content: ""; position: absolute; width: 6px; height: 1.5px; border-radius: 2px; background: currentColor; transform: rotate(45deg); bottom: -2px; right: -4px; }
kbd { color: #405771; font: 10px/1.4 var(--mono); padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); white-space: nowrap; }

.hero { position: relative; isolation: isolate; background: linear-gradient(112deg, #f1f8ff, #e4f1fd); overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 45%; background: url("./assets/glass-facades.webp") center 47% / cover no-repeat; mask-image: linear-gradient(90deg, transparent, #000 43%); }
.hero-inner { display: flex; align-items: center; min-height: 345px; padding-block: 47px 49px; }
.hero-copy { width: min(100%, 516px); }
.hero h1 { font-size: clamp(40px, 4.3vw, 61px); line-height: 1.16; letter-spacing: -.05em; font-weight: 710; color: #122b43; }
.hero-description { margin-top: 15px; font-size: 16px; color: #354e66; }
.hero-search { display: flex; align-items: center; margin-top: 24px; min-height: 51px; color: var(--blue); background: #fff; border: 1px solid #aebfd1; border-radius: 8px; overflow: hidden; box-shadow: 0 3px 13px #2c5e8b0d; }
.hero-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.hero-search .icon { margin-left: 16px; margin-right: 9px; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 11px 8px; color: var(--ink); }
.hero-search input::placeholder { color: #5a6d7f; }
.hero-search button { align-self: stretch; min-width: 89px; padding: 0 16px; border: 0; background: linear-gradient(120deg, #126bac, #005893); color: var(--white); font-weight: 650; }
.hero-search button:hover { background: var(--blue-hover); }
.hero-search button:focus-visible { outline-offset: -5px; outline-color: white; }
.hero-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 15px; color: var(--blue-hover); font-size: 14px; }
.hero-links a, .section-link { display: inline-flex; align-items: center; gap: 7px; }
.hero-links a:hover, .section-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.products { padding-block: 35px 40px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 18px; }
.section-heading h2, .guide-card h2 { font-size: 26px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.section-heading p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.section-link { flex: none; color: var(--blue); font-size: 14px; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.product-card { position: relative; display: grid; justify-items: start; gap: 3px; min-width: 0; min-height: 133px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: background .18s, border-color .18s, box-shadow .18s; }
.product-card:hover { background: #f6fbff; border-color: #92b8d6; box-shadow: 0 5px 16px #24618e12; }
.product-card:focus-visible { z-index: 1; outline-offset: -3px; }
.product-card strong { margin-top: 5px; color: #1b3349; font-size: 19px; line-height: 1.3; font-weight: 650; overflow-wrap: anywhere; }
.card-arrow { position: absolute; top: 18px; right: 19px; color: var(--blue); font-size: 18px; }
.card-caption { color: var(--muted); font-size: 13px; }
.product-mark { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: none; border-radius: 9px; background: var(--icon-bg, #eaf4fc); color: var(--icon-ink, var(--blue)); }
.product-mark i { display: block; width: 17px; height: 17px; position: relative; }
.product-mark.thais { --icon-bg: #e9f4f5; --icon-ink: #236f7a; }
.product-mark.vietnam { --icon-bg: #edf0fa; --icon-ink: #465d9f; }
.product-mark.message { --icon-bg: #eef0fb; --icon-ink: #5c5699; }
.data i { border: 1.6px solid currentColor; border-top: 0; height: 14px; border-radius: 0 0 7px 7px / 0 0 4px 4px; }
.data i::before, .data i::after { content: ""; position: absolute; inset-inline: -1.6px; height: 7px; top: -3px; border: 1.6px solid currentColor; border-radius: 50%; }
.data i::after { top: 3px; border-color: transparent transparent currentColor; }
.thais i { border: 1.6px solid currentColor; border-radius: 50%; }
.thais i::before { content: ""; position: absolute; inset: -1.6px 3px; border: 1.4px solid currentColor; border-radius: 50%; }
.thais i::after { content: ""; position: absolute; inset: 6px 0 auto; border-top: 1.5px solid currentColor; }
.vietnam i { border: 1.6px solid currentColor; width: 15px; height: 17px; border-radius: 2px; }
.vietnam i::after { content: ""; position: absolute; width: 7px; height: 1.5px; background: currentColor; top: 4px; left: 2.5px; box-shadow: 0 4px currentColor; }
.message i { border: 1.6px solid currentColor; border-radius: 5px; height: 13px; margin-bottom: 3px; }
.message i::before { content: ""; position: absolute; left: 2px; bottom: -3px; width: 5px; height: 5px; border-left: 1.5px solid; border-bottom: 1.5px solid; transform: skewY(-34deg); background: var(--icon-bg, #eaf4fc); }
.message i::after { content: ""; position: absolute; width: 2px; height: 2px; border-radius: 50%; background: currentColor; top: 4px; left: 3px; box-shadow: 3px 0 currentColor, 6px 0 currentColor; }

.reference-band { padding-block: 38px 54px; background: var(--surface); border-block: 1px solid var(--line); }
.reference-layout { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(230px, 1fr); gap: 32px; align-items: start; }
.reference-content { grid-column: 1; grid-row: 1; }
.guide-card { grid-column: 2; grid-row: 1; padding: 20px 21px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.guide-card h2 { font-size: 20px; padding-bottom: 10px; }
.guide-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; color: var(--blue); border-top: 1px solid var(--line); font-size: 14px; }
.guide-link:hover { color: var(--blue-hover); text-decoration: underline; text-underline-offset: 4px; }
.filter-list { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 13px; }
.filter-list button { color: #334f68; background: #fff; border: 1px solid #c7d6e3; padding: 5px 11px; min-height: 33px; border-radius: 5px; font-size: 13px; }
.filter-list button:hover { border-color: var(--blue); }
.filter-list button[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.reference-results, .endpoint-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.reference-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; align-items: center; gap: 14px; padding: 10px 14px; min-height: 47px; background: #fff; }
.reference-row:hover { background: #edf5fc; }
.reference-row:focus-visible { outline-offset: -4px; }
.reference-row strong { font-size: 14px; overflow-wrap: anywhere; }
.row-meta { font-size: 12px; color: var(--muted); }
.row-arrow { color: var(--blue); }
.site-footer { padding-block: 22px; background: white; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.footer-inner .brand { font-size: 13px; }
.footer-inner .brand-mark { width: 28px; height: 28px; }
.footer-domain { color: var(--muted); font: 11px var(--mono); }
.footer-link { margin-left: auto; color: var(--blue); font-size: 13px; white-space: nowrap; }
.footer-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.reader { min-height: 72vh; padding-block: 26px 65px; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; margin-bottom: 19px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--blue); }
.breadcrumbs a:hover { text-decoration: underline; }
.reader-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 28px; }
.reader-nav { display: flex; flex-direction: column; align-self: start; gap: 3px; padding: 10px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.reader-nav h2 { margin: 6px 0 5px 9px; font-size: 12px; color: var(--muted); }
.reader-nav h2:not(:first-child) { margin-top: 14px; }
.reader-nav a { padding: 6px 9px; font-size: 14px; border-left: 2px solid transparent; }
.reader-nav a:hover, .reader-nav a[aria-current] { color: var(--blue); background: #e6f1fb; border-color: var(--blue); }
#reader-article { padding: clamp(20px, 4vw, 40px); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.reader-heading { display: flex; gap: 11px; align-items: center; }
.reader-heading h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.reader-intro { color: var(--muted); margin-top: 9px; margin-bottom: 23px; }
.reader-section { padding-block: 17px; border-top: 1px solid var(--line); }
.reader-section h2 { font-size: 18px; margin-bottom: 5px; }
.reader-section p { color: var(--muted); }
.doc-note { background: #ecf5fc; padding: 14px 16px; border-left: 2px solid #3382ba; margin-bottom: 16px; color: #25445f; font-size: 14px; overflow-wrap: anywhere; }
.article-bottom { display: inline-block; margin-top: 16px; color: var(--blue); font-size: 14px; font-weight: 650; }
.article-bottom:hover { text-decoration: underline; }

.search-dialog { width: min(610px, calc(100% - 30px)); max-height: 78vh; margin: min(16vh, 140px) auto auto; padding: 0; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 72px #152f4a45; }
.search-dialog::backdrop { background: #122d4a99; }
.search-form { display: flex; gap: 13px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-form .icon { color: var(--blue); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); padding: 6px 0; }
.search-form input:focus { outline: none; }
.search-form:focus-within { box-shadow: inset 0 -2px var(--blue); }
.search-close { color: var(--muted); border: 1px solid var(--line); background: var(--surface); font: 12px var(--mono); padding: 6px 8px; }
.search-results { padding: 10px; }
.search-label { margin: 3px 8px 6px; color: var(--muted); font-size: 12px; }
.search-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 11px; }
.search-result:hover, .search-result:focus { background: #ecf5fc; }
.search-result strong { overflow-wrap: anywhere; }
.search-result .row-meta { align-self: center; }
.search-result small { grid-column: 1 / -1; color: var(--muted); overflow-wrap: anywhere; }
.search-empty { padding: 12px 8px; color: var(--muted); }

@media (max-width: 900px) {
  .container { width: calc(100% - 56px); }
  .header-search kbd { display: none; }
  .hero::before { left: 39%; mask-image: linear-gradient(90deg, transparent 5%, #000 65%); }
  .hero-copy { max-width: min(65%, 490px); }
  .reference-layout { gap: 21px; }
  .reader-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 650px) {
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding-top: 11px; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-self: start; margin-left: 0; gap: 24px; }
  .site-nav a { min-height: 43px; }
  .header-search { justify-self: end; margin: 0; padding: 3px 0 3px 11px; gap: 8px; }
  .hero::before { inset: auto 0 0; height: 97px; background-position: center 42%; mask-image: linear-gradient(180deg, transparent, #000 78%); }
  .hero-inner { min-height: 0; padding-block: 30px 95px; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(35px, 9vw, 49px); }
  .hero-description { margin-top: 11px; font-size: 14px; }
  .hero-search { margin-top: 17px; min-height: 47px; }
  .hero-search button { min-width: 65px; padding-inline: 12px; }
  .hero-links { margin-top: 12px; }
  .products { padding-block: 26px 31px; }
  .section-heading { margin-bottom: 13px; }
  .section-heading h2 { font-size: 23px; }
  .section-link { font-size: 13px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-card { min-height: 118px; padding: 13px 14px; }
  .product-card strong { font-size: 16px; }
  .card-arrow { right: 13px; top: 13px; }
  .reference-band { padding-block: 27px 34px; }
  .reference-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .guide-card { grid-column: 1; grid-row: 2; }
  .reader-layout { grid-template-columns: minmax(0, 1fr); }
  .reader-nav { flex-flow: row wrap; }
  .reader-nav h2, .reader-nav h2:not(:first-child) { margin: 4px 9px 0; flex-basis: 100%; }
}
@media (max-width: 360px) {
  .header-search span:not(.icon) { display: none; }
  .section-heading { gap: 7px; }
  .hero-search input { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.row-label { min-width: 0; }
.row-path { display: block; margin-top: 1px; color: var(--muted); font: 12px/1.5 var(--mono); overflow-wrap: anywhere; }
.docs-sources { display: flex; flex-wrap: wrap; gap: 7px 16px; align-items: center; padding: 13px 15px; margin-bottom: 14px; background: #eef6fd; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.docs-sources .base-url { flex-basis: 100%; color: var(--muted); }
.base-url code { color: var(--ink); font-family: var(--mono); overflow-wrap: anywhere; }
.docs-sources a, .docs-topics a { color: var(--blue); }
.docs-sources a:hover, .docs-topics a:hover { text-decoration: underline; text-underline-offset: 4px; }
.docs-topics { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 20px; padding-inline: 2px; font-size: 14px; }
.endpoint-title { font-size: 20px; margin: 14px 0 10px; }
.api-request { display: block; margin-top: 16px; font-family: var(--mono); }

.published-intro { padding: 22px 24px; margin-bottom: 24px; background: #edf6fe; border: 1px solid var(--line); border-radius: 10px; }
.published-intro h1 { font-size: clamp(26px, 4.5vw, 40px); line-height: 1.25; letter-spacing: -.03em; }
.published-intro p { margin-top: 9px; color: var(--muted); }
.published-doc code { font-family: var(--mono); overflow-wrap: anywhere; }
.download-link { display: inline-flex; gap: 9px; align-items: center; margin-top: 13px; color: var(--blue); font-weight: 650; }
.download-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.published-toc { position: sticky; top: 22px; }
.published-body { min-width: 0; }
.published-body section { margin-bottom: 16px; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: 10px; }
.published-body h2 { font-size: 23px; line-height: 1.35; margin-bottom: 13px; }
.published-body h3 { font-size: 17px; margin: 18px 0 7px; }
.published-body p + p { margin-top: 12px; }
.published-body p code, .published-body li code, .published-body td code { padding: 1px 3px; border-radius: 3px; color: #24445f; background: var(--surface); }
.published-body ol, .published-body ul { margin: 10px 0; padding-left: 1.5em; }
.published-body li + li { margin-top: 6px; }
.published-body pre { padding: 13px 15px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); overflow: auto; font: 13px/1.55 var(--mono); tab-size: 2; }
.published-body pre code { overflow-wrap: normal; }
.published-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.published-body th, .published-body td { padding: 8px 9px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.published-body th { background: var(--surface); }
.published-body th:first-child { white-space: nowrap; }

@media (max-width: 650px) {
  .published-intro { padding: 18px; margin-bottom: 18px; }
  .published-toc { position: static; }
  .published-body section { padding: 16px 13px; }
  .published-body th, .published-body td { padding: 6px 5px; }
}
