/* Help center: layout and article typography, on top of site.css */
body.docs-page { background: var(--surface); }
.docs-page section { padding: 0; }
.docs-page .site-header { position: sticky; }
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 36px; padding-bottom: 80px; align-items: start; }
.docs-nav { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 14.5px; padding-right: 6px; }
.docs-nav a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.docs-nav a:hover { background: var(--bg); color: var(--ink); }
.docs-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.docs-home { font-weight: 600; margin-bottom: 10px; }
.docs-group { margin-bottom: 16px; }
.docs-group-title { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 4px 10px 6px; }
.docs-main { min-width: 0; max-width: 760px; }
.docs-hero h1, .docs-article h1 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 780; letter-spacing: -.025em; margin: 6px 0 12px; }
.docs-hero .lead, .docs-article > .lead { font-size: 18px; color: var(--ink-2); margin-bottom: 26px; }
.docs-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); }
.docs-search { width: 100%; max-width: 480px; font: inherit; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.docs-search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.docs-none { color: var(--muted); margin-top: 14px; }
.docs-section { margin-top: 40px; }
.docs-section h2 { font-size: 20px; margin-bottom: 14px; }
.docs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.docs-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.docs-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.docs-card span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.docs-article { line-height: 1.7; color: var(--ink-2); }
.docs-article h2 { font-size: 22px; color: var(--ink); margin: 36px 0 10px; scroll-margin-top: 90px; }
.docs-article h3 { font-size: 18px; color: var(--ink); margin: 26px 0 8px; }
.docs-article p { margin: 0 0 14px; }
.docs-article ul, .docs-article ol { margin: 0 0 16px; padding-left: 22px; }
.docs-article li { margin: 6px 0; }
.docs-article strong { color: var(--ink); }
.docs-article code { font-size: .9em; background: var(--bg); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.docs-article kbd { font: 600 .82em/1 Inter, system-ui, sans-serif; padding: 3px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--ink); }
.docs-article a { font-weight: 550; }
.docs-article .note { margin: 20px 0; padding: 14px 18px; border-radius: 12px; background: var(--brand-soft); color: var(--ink); border-left: 4px solid var(--brand); }
.docs-toc { margin: 0 0 26px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; }
.docs-toc-title { width: 100%; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.docs-toc a { text-decoration: none; }
.docs-pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.docs-pager a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; font-weight: 600; max-width: 48%; }
.docs-pager a span { font-size: 13px; font-weight: 500; color: var(--muted); }
.docs-pager .next { text-align: right; margin-left: auto; }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  .docs-nav { position: static; max-height: none; display: none; }
  .docs-nav.open { display: block; }
  .docs-nav-toggle { display: inline-flex !important; }
}
.docs-nav-toggle { display: none; align-items: center; gap: 8px; font: inherit; font-weight: 600; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); margin-bottom: 4px; }

/* ---- What's new (built by docs-src/build.py from docs-src/<lang>/news/) ---- */
.news-wrap { max-width: 760px; padding-top: 44px; padding-bottom: 88px; }
.news-hero h1 { font-size: clamp(32px, 3.8vw, 44px); font-weight: 780; letter-spacing: -.025em; margin: 0 0 12px; }
.news-hero .lead { font-size: 18px; color: var(--ink-2); }
.news-rss { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.news-rss::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--spark); vertical-align: 1px; }
.news-rss:hover { color: var(--brand); }
.news-list { margin-top: 40px; border-left: 1px solid var(--line); }
.news-item { position: relative; padding: 0 0 44px 32px; scroll-margin-top: 90px; }
.news-item::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px var(--surface); }
.news-item:first-child::before { background: var(--spark); }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.news-tag { font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 99px; background: var(--bg); color: var(--ink-2); }
.news-tag.new { background: var(--brand-soft); color: var(--brand); }
.news-tag.improved { background: var(--spark-soft); color: #9a5a0c; }
.news-item h2 { font-size: 22px; margin: 8px 0 10px; letter-spacing: -.015em; }
.news-item h2 a { color: var(--ink); text-decoration: none; }
.news-item h2 a:hover { color: var(--brand); }
.news-body { color: var(--ink-2); line-height: 1.7; }
.news-body p { margin: 0 0 12px; }
.news-body ul { margin: 0 0 12px; padding-left: 20px; }
.news-body li { margin: 4px 0; }
.news-body kbd { font: 600 .82em/1 Inter, system-ui, sans-serif; padding: 3px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--ink); }
@media (max-width: 760px) { .news-wrap { padding-top: 28px; } .news-item { padding-left: 22px; } }

/* ---- legal pages (docs-src/<lang>/legal/) ---- */
.legal-updated { color: var(--muted); font-size: 14px; margin: -12px 0 22px; }
.legal-draft { margin: 0 0 22px; padding: 12px 16px; border-radius: 12px; background: var(--spark-soft); color: #7a4708; font-size: 14.5px; font-weight: 600; }
