/* Read-only pages generated by scripts/static-pages.mjs. Colors mirror the
   app's tokens in src/styles.css. */
:root {
  color-scheme: light dark;
  --bg: #faf9f6;
  --surface: #fff;
  --text: #20333d;
  --soft: #46555b;
  --line: #daddd7;
  --primary: #0f5f62;
  --primary-soft: #dceeee;
  --on-primary: #fff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1516;
    --surface: #142123;
    --text: #ecf6f4;
    --soft: #b7c9c6;
    --line: #2d4141;
    --primary: #72c7c8;
    --primary-soft: #17383a;
    --on-primary: #0c1516;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.75 "Noto Sans TC",
    "PingFang TC",
    "Microsoft JhengHei",
    system-ui,
    sans-serif;
}
a {
  color: var(--primary);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.5rem 1rem;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 0.8rem 1rem;
}
.brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.open-app {
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.shell {
  display: grid;
  grid-template-columns: 15rem minmax(0, 46rem);
  gap: 2rem;
  justify-content: center;
  padding: 1.5rem 1rem 3rem;
}
nav ul {
  position: sticky;
  top: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}
nav a {
  display: block;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  text-decoration: none;
}
nav a[aria-current="page"] {
  background: var(--primary-soft);
  font-weight: 700;
}
h1 {
  margin-top: 0;
  line-height: 1.35;
}
h2 {
  margin-top: 2.2rem;
  line-height: 1.4;
}
table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}
th,
td {
  border: 1px solid var(--line);
  padding: 0.4rem 0.6rem;
  vertical-align: top;
}
code {
  font-size: 0.92em;
}
pre {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--surface);
  padding: 0.8rem;
}
dt {
  margin-top: 0.8rem;
  font-weight: 700;
}
dd {
  margin-left: 0;
  color: var(--soft);
}
.question,
.qa {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.stem {
  font-weight: 700;
}
details {
  border-radius: 8px;
  background: var(--surface);
  padding: 0.6rem 0.9rem;
}
summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 700;
}
footer {
  border-top: 1px solid var(--line);
  color: var(--soft);
  padding: 1rem;
  font-size: 0.85rem;
  text-align: center;
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  nav {
    order: 2;
  }
  nav ul {
    position: static;
  }
}
