:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #e4e7ec;
  --brand: #2563eb;
  --brand-soft: #eff6ff;
  --warn: #9a6700;
  --warn-bg: #fff8db;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a { color: var(--brand); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(228, 231, 236, .9);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #4f8cff, #1653d4);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
}

.language-select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 34px 9px 12px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

.page-shell {
  width: min(820px, calc(100% - 32px));
  margin: 30px auto 60px;
}

.side-nav, .document {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 30px rgba(16, 24, 40, .04);
}

.side-nav {
  position: sticky;
  top: 92px;
  padding: 12px;
}

.side-nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: #475467;
  text-decoration: none;
}

.side-nav a:hover { background: #f8fafc; }
.side-nav a.active { color: var(--brand); background: var(--brand-soft); font-weight: 650; }

.document { padding: clamp(24px, 5vw, 58px); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.2; letter-spacing: -.02em; }
h2 { margin: 42px 0 12px; padding-top: 4px; font-size: 23px; line-height: 1.35; }
h3 { margin: 25px 0 8px; font-size: 18px; }
p, li { color: #344054; }
ul, ol { padding-left: 1.4em; }

.meta {
  margin: 18px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
}

.draft-note {
  margin: 24px 0 30px;
  padding: 16px 18px;
  border: 1px solid #f0d568;
  border-radius: 12px;
  color: #704b00;
  background: var(--warn-bg);
}

.draft-note strong { color: var(--warn); }

.info-table {
  width: 100%;
  margin: 16px 0 22px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: table;
}

.info-table th, .info-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.info-table th { width: 31%; color: #475467; background: #f8fafc; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }

.callout {
  margin: 18px 0;
  padding: 15px 18px;
  border-left: 4px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: var(--brand-soft);
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: -30px auto 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  color: #344054;
  background: #f2f4f7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
}

@media (max-width: 760px) {
  .page-shell { width: 100%; margin: 0; }
  .document { padding: 28px 20px 42px; border: 0; border-radius: 0; box-shadow: none; }
  h1 { font-size: 32px; }
  h2 { margin-top: 36px; font-size: 21px; }
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: 0; padding-bottom: 4px; }
  .info-table td { padding-top: 4px; }
}

@media print {
  body { background: #fff; font-size: 12pt; }
  .topbar, .side-nav, .footer { display: none; }
  .page-shell { width: 100%; margin: 0; display: block; }
  .document { border: 0; box-shadow: none; padding: 0; }
  .draft-note { break-inside: avoid; }
}
