:root {
  color-scheme: light;
  --paper: #ffffff;
  --page: #f5f7f8;
  --ink: #202124;
  --muted: #667085;
  --line: #d9dee3;
  --brand: #1f5f8b;
  --brand-deep: #164664;
  --accent: #b84d3a;
  --success: #286a4b;
  --code: #eef2f4;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  color: var(--ink);
  font-family: "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

body {
  margin: 0;
  min-width: 280px;
  background: var(--page);
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar-inner,
.page-shell,
.index-main,
.site-footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.brand span {
  color: var(--brand);
}

.language-nav,
.route-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.language-nav a,
.route-nav a {
  color: var(--muted);
  font-size: 14px;
}

.route-nav a[aria-current="page"] {
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
}

.index-main {
  padding: 64px 0 72px;
}

.index-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

.eyebrow,
.document-meta,
.status-line {
  color: var(--muted);
  font-size: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--brand-deep);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 1.25;
}

h2 {
  margin: 36px 0 12px;
  font-size: 24px;
  line-height: 1.35;
}

h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

p,
ul,
ol,
dl,
table {
  margin-top: 0;
  margin-bottom: 16px;
}

.lede {
  max-width: 760px;
  color: #3d444b;
  font-size: 18px;
}

.invite-band {
  margin: 32px 0 48px;
  padding: 18px 0;
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.invite-band strong {
  color: var(--accent);
}

.locale-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.locale-section {
  border-top: 3px solid var(--brand);
  padding-top: 18px;
}

.locale-section h2 {
  margin-top: 0;
}

.route-list {
  list-style: none;
  padding: 0;
}

.route-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.route-list a {
  display: inline-block;
  font-weight: 700;
}

.route-list span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.page-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 48px;
  padding: 48px 0 72px;
}

.side-nav {
  align-self: start;
  position: sticky;
  top: 24px;
}

.side-nav p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.route-nav {
  display: grid;
  gap: 8px;
}

.legal-document {
  min-width: 0;
  padding: 36px 48px 56px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
}

.legal-document header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.legal-document section {
  scroll-margin-top: 24px;
}

.notice {
  margin: 24px 0;
  padding: 14px 18px;
  background: #fff8f5;
  border-left: 4px solid var(--accent);
}

.boundary {
  margin: 24px 0;
  padding: 14px 18px;
  background: #f2f8f5;
  border-left: 4px solid var(--success);
}

code {
  padding: 2px 5px;
  overflow-wrap: anywhere;
  background: var(--code);
  border-radius: 3px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.92em;
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: #eef3f6;
  color: var(--brand-deep);
}

tr:last-child td {
  border-bottom: 0;
}

.site-footer {
  background: #252a2e;
  color: #d9dee3;
}

.site-footer-inner {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}

.site-footer a {
  color: #ffffff;
}

.variable {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .topbar-inner,
  .page-shell,
  .index-main,
  .site-footer-inner {
    width: min(100% - 28px, 680px);
  }

  .topbar-inner,
  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .index-main {
    padding: 40px 0 56px;
  }

  h1 {
    font-size: 29px;
  }

  .locale-grid,
  .page-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .locale-grid,
  .page-shell {
    gap: 30px;
  }

  .page-shell {
    padding: 28px 0 48px;
  }

  .side-nav {
    position: static;
  }

  .route-nav {
    display: flex;
  }

  .legal-document {
    padding: 28px 20px 40px;
  }

  th,
  td {
    min-width: 140px;
  }
}
