:root {
  color-scheme: light;
  --ink: #172226;
  --muted: #5b6a6e;
  --line: #d9e1e2;
  --surface: #f5f8f7;
  --panel: #ffffff;
  --nav: #18272b;
  --nav-muted: #b9c9ca;
  --teal: #087f78;
  --teal-soft: #e0f1ef;
  --green: #237a4b;
  --green-soft: #e4f3e9;
  --amber: #9a5c00;
  --amber-soft: #fff1d6;
  --red: #aa3b36;
  --red-soft: #fbe7e5;
  --shadow: 0 10px 30px rgba(23, 34, 38, 0.08);
  font-family: "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
}
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #045e59; }
:focus-visible { outline: 3px solid #f1b650; outline-offset: 3px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 8px 12px; color: #fff; background: var(--nav); border-radius: 4px;
}
.skip-link:focus { top: 12px; }
.site-header {
  background: var(--nav); color: #fff; border-bottom: 4px solid var(--teal);
}
.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 16px 24px;
  display: flex; gap: 18px; align-items: center; justify-content: space-between;
}
.brand-link { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-link img { width: 38px; height: 38px; object-fit: contain; }
.brand-name { font-size: 1.1rem; font-weight: 700; }
.brand-meta { display: block; color: var(--nav-muted); font-size: .82rem; font-weight: 400; }
.mobile-menu-button { display: none; border: 1px solid #688083; color: #fff; background: transparent; padding: 8px 12px; border-radius: 4px; }
.docs-layout {
  display: grid; grid-template-columns: minmax(220px, 272px) minmax(0, 760px) minmax(180px, 220px);
  gap: 32px; max-width: 1320px; margin: 0 auto; padding: 24px;
  align-items: start;
}
.docs-sidebar, .page-toc { position: sticky; top: 20px; }
.docs-sidebar { padding: 18px; background: var(--nav); color: #fff; border-radius: 6px; box-shadow: var(--shadow); }
.sidebar-label, .toc-label { margin: 0 0 10px; color: var(--nav-muted); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.docs-nav { display: grid; gap: 4px; }
.docs-nav a { color: var(--nav-muted); padding: 8px 10px; text-decoration: none; border-radius: 4px; }
.docs-nav a:hover, .docs-nav a[aria-current="page"] { color: #fff; background: #244348; }
.page-toc { padding: 8px 0 8px 16px; border-left: 1px solid var(--line); }
.page-toc nav { display: grid; gap: 4px; }
.page-toc a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.page-toc a:hover { color: var(--teal); }
.docs-main { min-width: 0; }
.eyebrow { color: var(--teal); font-size: .86rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 14px; }
h1 { font-size: 3rem; letter-spacing: 0; }
h2 { margin-top: 42px; font-size: 1.7rem; }
h3 { margin-top: 24px; font-size: 1.18rem; }
p { margin: 0 0 14px; }
.lede { max-width: 62ch; color: var(--muted); font-size: 1.08rem; }
.page-header { padding: 12px 0 22px; border-bottom: 1px solid var(--line); }
.page-header .eyebrow { margin-bottom: 8px; }
.section { padding-top: 6px; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 14px; border-radius: 4px; border: 1px solid var(--teal); background: var(--teal); color: #fff; text-decoration: none; font-weight: 700; }
.button-link.secondary { background: #fff; color: var(--teal); }
.button-link:hover { background: #05645e; color: #fff; }
.button-link.secondary:hover { background: var(--teal-soft); color: var(--teal); }
.hero-figure { margin: 24px 0 32px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.hero-figure img { display: block; width: 100%; height: auto; border-radius: 3px; }
figcaption { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-panel, .callout, .capability-row, details { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.info-panel, .callout, .capability-row { padding: 18px; }
.callout { border-left: 4px solid var(--teal); }
.callout.warning { border-left-color: var(--amber); background: #fffaf0; }
.callout.issue { border-left-color: var(--red); background: #fff8f7; }
.callout p:last-child, .info-panel p:last-child { margin-bottom: 0; }
.meta-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 16px; margin: 0; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 650; }
.steps { padding-left: 24px; }
.steps li { margin-bottom: 12px; padding-left: 4px; }
.code-block { overflow-x: auto; padding: 14px; color: #f2f6f5; background: #203136; border-radius: 4px; font: .88rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.status { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: normal; }
.status-enabled { color: var(--green); background: var(--green-soft); }
.status-prerequisite { color: #315e6a; background: #e3f0f4; }
.status-emulator { color: #4c5d94; background: #e8ebfb; }
.status-risk { color: var(--amber); background: var(--amber-soft); }
.status-not-implemented { color: #7e4c00; background: #fff0d1; }
.status-not-included { color: #58666a; background: #e9eef0; }
.status-known-issue { color: var(--red); background: var(--red-soft); }
.status-planned { color: #5f4d8c; background: #eee9fa; }
.status-line { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.capability-list { display: grid; gap: 12px; }
.capability-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; justify-content: space-between; }
.capability-heading h3 { margin: 0; }
.table-like { display: grid; gap: 12px; }
details { padding: 0; }
summary { cursor: pointer; padding: 16px 18px; font-weight: 700; }
details > div { padding: 0 18px 16px; }
.site-footer { margin-top: 20px; background: var(--nav); color: var(--nav-muted); }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links a { color: #d5e3e2; }
.drawer-backdrop { display: none; }
.route-list { display: grid; gap: 8px; padding-left: 22px; }
.route-list li { padding-left: 4px; }
.flow { display: grid; gap: 8px; padding: 0; list-style: none; counter-reset: flow; }
.flow li { counter-increment: flow; position: relative; padding: 12px 14px 12px 46px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.flow li::before { content: counter(flow); position: absolute; left: 14px; top: 11px; display: grid; place-items: center; width: 22px; height: 22px; color: #fff; background: var(--teal); border-radius: 50%; font-size: .8rem; font-weight: 700; }
@media (max-width: 980px) {
  .docs-layout { grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); }
  .page-toc { display: none; }
}
@media (max-width: 760px) {
  .header-inner { padding: 12px 16px; }
  .mobile-menu-button { display: inline-flex; }
  h1 { font-size: 2.25rem; }
  .docs-layout { display: block; padding: 18px 16px; }
  .docs-sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: min(82vw, 300px); overflow-y: auto; border-radius: 0; transform: translateX(-105%); transition: transform .2s ease; }
  body.drawer-open .docs-sidebar { transform: translateX(0); }
  .drawer-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(12, 25, 28, .55); }
  body.drawer-open .drawer-backdrop { display: block; }
  .grid-two { grid-template-columns: 1fr; }
  .hero-figure { margin-left: -4px; margin-right: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
