:root {
  --text: #111;
  --muted: #667085;
  --line: #e4eee8;
  --bg: #fff;
  --chip: #f3faf6;
  --green: #1db954;
  --green-d: #148a3e;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Segoe UI", sans-serif;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 28px; border-bottom: 1px solid var(--line); background: #fff;
}
.brand { font-weight: 650; letter-spacing: -.02em; color: inherit; display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: .08em; margin-top: 1px; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.lang { display: flex; align-items: center; gap: 14px; }
.lang button {
  appearance: none; border: 0; background: none; padding: 0;
  cursor: pointer; font: inherit; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.lang button[aria-pressed="true"] { color: var(--green); font-weight: 650; }
.pdf-btn {
  appearance: none; border: 0; background: none; padding: 0;
  cursor: pointer; font: inherit; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text);
}
.pdf-btn:hover, .lang button:hover { color: var(--green); }
.pdf-btn[disabled] { opacity: .5; cursor: wait; }
.wrap { max-width: 980px; margin: 0 auto; padding: 24px 28px 96px; }
.intro {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px;
  align-items: start; margin-bottom: 8px;
}
.kicker {
  color: var(--green); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 650; margin: 0 0 8px;
}
h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.03em; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 16px; max-width: 46em; }
.ver { color: var(--muted); font-size: 13px; margin: 0; }
h2 {
  font-size: 20px; margin: 36px 0 8px; color: var(--green);
  letter-spacing: -.02em;
}
h3 { font-size: 17px; margin: 24px 0 8px; }
p, ul, ol { margin: 0 0 12px; }
li { margin: 4px 0; }
table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 9px 8px; vertical-align: top; }
th { color: var(--green); font-weight: 600; font-size: 12px; letter-spacing: .04em; background: var(--chip); }
pre {
  background: #0f1a14; color: #e8f6ee; border-radius: 12px;
  padding: 14px 16px; overflow: auto; font: 13px/1.55 ui-monospace, Menlo, monospace;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
p code, li code, td code { background: var(--chip); padding: 1px 5px; border-radius: 4px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 36px; }
.toc { position: sticky; top: 76px; font-size: 13px; }
.toc .h { color: var(--muted); font-size: 12px; margin-bottom: 8px; letter-spacing: .08em; text-transform: uppercase; }
.toc a { display: block; color: var(--muted); padding: 3px 0; }
.hero {
  margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--chip);
}
.hero img { width: 100%; display: block; height: 180px; object-fit: cover; }
.shot {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  margin: 0; background: #fff;
}
.shot img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; background: #0f1a14; }
.shot figcaption { padding: 10px 12px; font-size: 13px; color: #3d4a42; line-height: 1.55; }
.shot figcaption .lab { display: block; color: var(--green); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; margin-bottom: 3px; }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 22px; }
.note { color: var(--muted); font-size: 13px; }
.lang-pane[hidden] { display: none !important; }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .grid4 { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
  .intro { grid-template-columns: 1fr; }
  .hero img { height: 160px; }
  .top { padding-left: 16px; padding-right: 16px; }
}
@media print {
  .top { position: static; }
  .toc, .pdf-btn, .lang { display: none !important; }
  .layout { grid-template-columns: 1fr; }
  .shot { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .lang-pane[hidden] { display: none !important; }
}
