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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f9f9f7;
  color: #1c1917;
  line-height: 1.7;
  padding: 0 16px;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 48px 0 80px; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: #003704;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-mark img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.logo-name { font-size: 18px; font-weight: 700; }

.lang {
  display: flex; gap: 6px;
  background: #f0ede8; border-radius: 10px; padding: 4px;
}
.lang button {
  border: 0; background: transparent;
  padding: 6px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 700; color: #78716c; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: #1c1917; }

h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.meta { font-size: 14px; color: #78716c; margin-bottom: 8px; }
.nav-docs { font-size: 14px; color: #78716c; margin-bottom: 24px; }
.nav-docs a { color: #2A6B3C; text-decoration: none; }
.nav-docs a:hover { text-decoration: underline; }

h2 {
  font-size: 18px; font-weight: 700; margin: 40px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid #e5e0d8;
}
p { margin-bottom: 12px; font-size: 15px; color: #292524; }
ul { margin: 8px 0 12px 20px; }
li { font-size: 15px; color: #292524; margin-bottom: 6px; }
strong { color: #1c1917; }
a { color: #2A6B3C; text-decoration: none; }
a:hover { text-decoration: underline; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
th {
  text-align: left; padding: 10px 12px;
  background: #f0ede8; color: #1c1917; font-weight: 600;
  border: 1px solid #e5e0d8;
}
td { padding: 10px 12px; border: 1px solid #e5e0d8; color: #292524; vertical-align: top; }
tr:nth-child(even) td { background: #fafaf9; }

.callout {
  background: #e8f4ec; border-left: 3px solid #2A6B3C;
  padding: 12px 16px; border-radius: 6px; margin: 16px 0;
  font-size: 14px; color: #1c4a29;
}
.warn {
  background: #FDF0E0; border-left: 3px solid #E8801A;
  padding: 14px 16px; border-radius: 6px; margin: 16px 0 28px;
  font-size: 14px; color: #1c1917;
}
.warn strong { display: block; margin-bottom: 6px; font-size: 15px; }

.btn {
  display: inline-block;
  background: #2A6B3C; color: #fff !important;
  padding: 12px 20px; border-radius: 12px;
  font-weight: 700; font-size: 15px; text-decoration: none !important;
}
.btn:hover { background: #245c34; text-decoration: none !important; }
.btn-secondary {
  background: #fff; color: #2A6B3C !important;
  border: 1px solid #cfe3d4;
}
.btn-secondary:hover { background: #e8f4ec; }

.contact-card {
  background: #fff;
  border: 1px solid #e5e0d8;
  border-radius: 14px;
  padding: 20px;
  margin: 16px 0;
}
.contact-card p { margin-bottom: 8px; }
.contact-card .label { font-size: 12px; font-weight: 700; color: #78716c; text-transform: uppercase; letter-spacing: 0.04em; }

footer {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid #e5e0d8;
  font-size: 13px; color: #a8a29e;
}
footer a { color: #78716c; }

[data-lang] { display: none; }
html[lang="vi"] [data-lang="vi"],
html[lang="en"] [data-lang="en"] { display: block; }
html[lang="vi"] [data-lang="vi"].inline,
html[lang="en"] [data-lang="en"].inline { display: inline; }
