/* 6090ti theme 0.3.3 - pixel style, first edition.
 * Every colour, border and shadow is a variable in :root below; a later
 * restyle changes only this block (and the fonts it names).
 * Fonts: system fonts for all text. The two self-hosted pixel fonts
 * (assets/fonts, SIL OFL 1.1, files unmodified) are used ONLY for the logo
 * and decorative English labels - never for body text, tables, amounts,
 * model names, keys or code (0/O and 1/l are not distinguishable in them).
 */
@font-face {
  font-family: "Press Start 2P";
  src: url("../fonts/PressStart2P-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "VT323";
  src: url("../fonts/VT323-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --p6-bg: #eef3f0;
  --p6-bg-soft: #f7faf8;
  --p6-bg-strong: #e3ece7;
  --p6-surface: #ffffff;
  --p6-text: #1d2a33;
  --p6-text-muted: #4b5b66;
  --p6-line: #d3ded7;
  --p6-line-strong: #1d2a33;
  --p6-shadow-color: #b9cfc2;
  --p6-primary: #1f7a55;
  --p6-primary-dark: #145a3e;
  --p6-primary-bright: #2f9e6e;
  --p6-primary-line: #8fc9a8;
  --p6-primary-soft: #dff1e6;
  --p6-amber: #d99a1e;
  --p6-amber-soft: #e9c46a;
  --p6-amber-line: #e3c477;
  --p6-amber-text: #8a5f12;
  --p6-blue: #3d6699;
  --p6-blue-line: #9db8d9;
  --p6-rose: #b5617a;
  --p6-rose-line: #d9a6b3;
  --p6-term-bg: #2a3a44;
  --p6-term-bar: #34474f;
  --p6-term-text: #dbe7e1;
  --p6-term-green: #8fd3a8;
  --p6-term-amber: #e9c46a;
  --p6-warn-bg: #fff3d1;
  --p6-warn-text: #7a5410;
  --p6-warn-line: #e3c477;
  --p6-our-bg: #f7faf8;
  --p6-our-head-bg: #e3ece7;
  --p6-border: 3px;
  --p6-shadow-sm: 4px 4px 0 var(--p6-shadow-color);
  --p6-shadow: 6px 6px 0 var(--p6-shadow-color);
  --p6-shadow-lg: 8px 8px 0 var(--p6-shadow-color);
  --p6-max: 1200px;
  --p6-gutter: 16px;
  --p6-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
  --p6-font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, Menlo, "Liberation Mono", monospace;
  --p6-font-pixel: "Press Start 2P", var(--p6-font-mono);
  --p6-font-pixel-label: "VT323", var(--p6-font-mono);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--p6-bg);
  color: var(--p6-text);
  font-family: var(--p6-font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--p6-primary); text-decoration: none; }
a:hover { color: var(--p6-primary-dark); text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--p6-amber); outline-offset: 2px; }

img, svg { max-width: 100%; height: auto; }

code, pre, kbd, samp { font-family: var(--p6-font-mono); font-size: 0.92em; }
code { background: var(--p6-bg-strong); padding: 0.1em 0.35em; overflow-wrap: anywhere; }
pre { background: var(--p6-term-bg); color: var(--p6-term-text); padding: 14px 16px; overflow-x: auto; border: var(--p6-border) solid var(--p6-line-strong); }
pre code { padding: 0; background: none; color: inherit; }

.p6-container { width: 100%; max-width: var(--p6-max); margin: 0 auto; padding: 0 var(--p6-gutter); }

.p6-skip { position: absolute; left: -9999px; top: 0; }
.p6-skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--p6-surface); padding: 6px 10px; border: var(--p6-border) solid var(--p6-line-strong); }

/* decorative pixel labels (English only, aria-hidden in content) */
.p6-pixel-label { font-family: var(--p6-font-pixel); font-size: 12px; line-height: 1.6; letter-spacing: 0.04em; color: var(--p6-amber-text); margin: 0 0 10px; }
.p6-pixel-tagline { font-family: var(--p6-font-pixel-label); font-size: 24px; line-height: 1.2; color: var(--p6-amber-text); margin: 0; }

/* ---- header / navigation ---- */
.p6-header { background: var(--p6-bg-soft); border-bottom: var(--p6-border) solid var(--p6-line); position: sticky; top: 0; z-index: 50; }
.p6-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 20px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.p6-brand { justify-self: start; font-family: var(--p6-font-pixel); font-size: 18px; line-height: 1; color: var(--p6-text); white-space: nowrap; }
.p6-brand:hover { text-decoration: none; color: var(--p6-text); }
.p6-brand__cursor { color: var(--p6-primary-bright); }

/* centre: navigation (console last); right: language box and account (theme 0.3.3) */
.p6-nav { justify-self: center; min-width: 0; }
.p6-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 6px 20px; align-items: center; white-space: nowrap; }
.p6-nav__list a { color: var(--p6-text); font-size: 15px; padding: 6px 0; display: inline-block; }
.p6-nav__list a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -3px 0 var(--p6-primary-bright); }
.p6-nav__list a:hover { text-decoration: none; color: var(--p6-primary); }
.p6-nav__list a.p6-nav__console { background: var(--p6-primary); color: #ffffff; font-weight: 700; padding: 8px 14px; box-shadow: var(--p6-shadow-sm); }
.p6-nav__list a.p6-nav__console:hover { background: var(--p6-primary-dark); color: #ffffff; }

.p6-tools { justify-self: end; display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.p6-lang { position: relative; }
.p6-lang__label { list-style: none; cursor: pointer; font-size: 15px; color: var(--p6-text); padding: 6px 0; user-select: none; }
.p6-lang__label::-webkit-details-marker { display: none; }
.p6-lang__label::after { content: ""; display: inline-block; margin-left: 6px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.p6-lang[open] > .p6-lang__label::after { border-top: 0; border-bottom: 5px solid currentColor; }
.p6-lang__label:hover { color: var(--p6-primary); }
.p6-lang__menu { list-style: none; margin: 0; padding: 6px 0; position: absolute; right: 0; top: calc(100% + 8px); min-width: 130px; background: var(--p6-surface); border: 2px solid var(--p6-line-strong); box-shadow: var(--p6-shadow-sm); z-index: 60; }
.p6-lang__menu a { display: block; padding: 8px 14px; font-size: 14px; color: var(--p6-text); white-space: nowrap; }
.p6-lang__menu a:hover { text-decoration: none; background: var(--p6-primary-soft); }
.p6-lang__menu a[aria-current="true"] { font-weight: 700; color: var(--p6-primary); }
.p6-auth { font-size: 15px; font-weight: 700; color: var(--p6-primary); padding: 6px 0; display: inline-block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.p6-auth:hover { text-decoration: none; color: var(--p6-primary-dark); }
.p6-auth.is-user::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: middle; background: var(--p6-primary-bright); }

/* narrow screens: first row logo + language + account; second row the navigation, scrolling sideways */
@media (max-width: 959px) {
  .p6-header__bar { grid-template-columns: auto 1fr; gap: 0 12px; }
  .p6-tools { grid-column: 2; grid-row: 1; gap: 14px; }
  .p6-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; border-top: 2px solid var(--p6-line); }
  .p6-nav__list { gap: 18px; padding: 8px 2px 6px 0; }
  .p6-nav__list a.p6-nav__console { padding: 4px 10px; }
  .p6-lang__label, .p6-auth { font-size: 14px; }
  .p6-auth { max-width: 110px; }
}

/* ---- main / prose ---- */
.p6-main { flex: 1 0 auto; padding: 36px 0 64px; }
.p6-page-title { font-size: 30px; line-height: 1.3; margin: 0 0 22px; padding-bottom: 12px; border-bottom: var(--p6-border) solid var(--p6-line); }
.p6-prose { max-width: 860px; }
.p6-prose h2 { font-size: 22px; margin: 32px 0 12px; line-height: 1.4; }
.p6-prose h3 { font-size: 18px; margin: 24px 0 8px; }
.p6-key { background: var(--p6-term-green); color: var(--p6-primary-dark); font-weight: 700; padding: 0 3px; box-shadow: 0 0 0 1px var(--p6-primary-bright), 0 0 8px rgba(47, 158, 110, 0.55); } /* "<your key>" placeholder: where readers put their own key */
.p6-prose h2[id], .p6-prose h3[id] { scroll-margin-top: 130px; } /* in-page links (#sec-5-1) land below the sticky header */
.p6-prose p, .p6-prose ul, .p6-prose ol { margin: 0 0 14px; }
/* Terms / privacy: one long sentence per item, so a little more air (owner 2026-10-14). */
[data-p6090ti-page="terms"] .p6-prose p, [data-p6090ti-page="privacy"] .p6-prose p { line-height: 1.9; margin-bottom: 18px; }
.p6-prose ul, .p6-prose ol { padding-left: 1.4em; }
.p6-prose blockquote { margin: 0 0 14px; padding: 8px 16px; border-left: 6px solid var(--p6-primary-line); background: var(--p6-bg-soft); color: var(--p6-text-muted); }
.p6-prose table { border-collapse: collapse; width: fit-content; max-width: 100%; margin: 0 0 16px; display: block; overflow-x: auto; background: var(--p6-surface); }
.p6-prose th, .p6-prose td { border: 2px solid var(--p6-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.p6-prose thead th { background: var(--p6-bg-strong); }
.p6-meta { color: var(--p6-text-muted); font-size: 14px; margin-top: -10px; }

.p6-notice { background: var(--p6-bg-soft); border: 2px solid var(--p6-line); padding: 12px 16px; }
.p6-notice--warn { background: var(--p6-warn-bg); border-color: var(--p6-warn-line); color: var(--p6-warn-text); }
.p6-draft-note { color: var(--p6-text-muted); font-size: 14px; }
.p6-tbd { background: var(--p6-warn-bg); color: var(--p6-warn-text); padding: 0 4px; }

/* ---- buttons ---- */
.p6-btn { display: inline-block; padding: 12px 22px; font-weight: 700; border: var(--p6-border) solid var(--p6-line-strong); line-height: 1.4; }
.p6-btn--primary { background: var(--p6-primary); color: #ffffff; border-color: var(--p6-primary); box-shadow: var(--p6-shadow); }
.p6-btn--primary:hover { background: var(--p6-primary-dark); border-color: var(--p6-primary-dark); color: #ffffff; text-decoration: none; }
.p6-btn--ghost { background: var(--p6-bg-soft); color: var(--p6-text); }
.p6-btn--ghost:hover { background: var(--p6-surface); color: var(--p6-primary); text-decoration: none; }
.p6-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.p6-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 22px 0 0; }
.p6-more { font-weight: 700; }

/* ---- home ---- */
.p6-home { padding-top: 0; padding-bottom: 0; }
.p6-section { padding: 52px 0; }
.p6-section--soft { background: var(--p6-bg-soft); border-top: var(--p6-border) solid var(--p6-line); border-bottom: var(--p6-border) solid var(--p6-line); }
.p6-section h2 { font-size: 26px; line-height: 1.35; margin: 0 0 12px; }
.p6-section__lead { color: var(--p6-text-muted); margin: 0 0 16px; }

.p6-hero { padding: 48px 0 52px; }
.p6-hero__grid { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.p6-hero__text { flex: 999 1 480px; min-width: 0; }
.p6-hero h1 { font-size: 34px; line-height: 1.25; font-weight: 800; margin: 10px 0 14px; }
.p6-hero__lead { font-size: 20px; font-weight: 700; color: var(--p6-primary); margin: 0 0 10px; }
.p6-hero__sub { color: var(--p6-text-muted); font-size: 17px; max-width: 640px; margin: 0; }

.p6-terminal { flex: 1 1 320px; min-width: 0; background: var(--p6-term-bg); border: 4px solid var(--p6-line-strong); box-shadow: var(--p6-shadow-lg); }
.p6-terminal__bar { display: flex; gap: 8px; padding: 10px 14px; background: var(--p6-term-bar); border-bottom: 4px solid var(--p6-line-strong); }
.p6-terminal__bar span { width: 12px; height: 12px; background: #e58f7c; }
.p6-terminal__bar span:nth-child(2) { background: var(--p6-term-amber); }
.p6-terminal__bar span:nth-child(3) { background: var(--p6-term-green); }
.p6-terminal__body { margin: 0; padding: 20px 22px; background: none; border: 0; color: var(--p6-term-text); font-family: var(--p6-font-body); font-size: 16px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.p6-terminal__cmd { font-family: var(--p6-font-pixel-label); font-size: 22px; line-height: 1.3; color: var(--p6-term-green); }
.p6-terminal__note { color: var(--p6-term-amber); }

.p6-cards { display: grid; grid-template-columns: 1fr; gap: 20px; list-style: none; padding: 0; margin: 0; }
.p6-card { background: var(--p6-surface); border: var(--p6-border) solid var(--p6-primary-line); padding: 20px 22px; }
.p6-card:nth-child(2) { border-color: var(--p6-amber-line); }
.p6-card:nth-child(3) { border-color: var(--p6-blue-line); }
.p6-card:nth-child(4) { border-color: var(--p6-rose-line); }
.p6-card__icon { display: block; width: 36px; height: 36px; margin: 0 0 10px; }
.p6-card h3 { margin: 0 0 6px; font-size: 18px; }
.p6-card p { margin: 0; color: var(--p6-text-muted); }

.p6-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 20px; counter-reset: p6step; }
.p6-steps li { position: relative; padding: 2px 0 0 66px; min-height: 50px; }
.p6-steps li::before {
  counter-increment: p6step; content: counter(p6step); position: absolute; left: 0; top: 0;
  width: 50px; height: 50px; background: var(--p6-primary); color: #ffffff;
  font-family: var(--p6-font-pixel); font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.p6-steps li:nth-child(2)::before { background: var(--p6-amber-soft); color: var(--p6-text); }
.p6-steps li:nth-child(3)::before { background: var(--p6-blue); }
.p6-steps h3 { margin: 0 0 2px; font-size: 18px; }
.p6-steps p { margin: 0; color: var(--p6-text-muted); }

.p6-split { display: grid; grid-template-columns: 1fr; gap: 40px; }
.p6-guide-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.p6-guide-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--p6-surface); border: var(--p6-border) solid var(--p6-line); color: var(--p6-text); }
.p6-guide-list a:hover { border-color: var(--p6-primary); text-decoration: none; }

.p6-faq { margin: 0; display: grid; gap: 16px; }
.p6-faq > div { border-left: 6px solid var(--p6-primary-bright); padding: 2px 0 2px 16px; }
.p6-faq > div:nth-child(2) { border-left-color: var(--p6-amber-soft); }
.p6-faq > div:nth-child(3) { border-left-color: var(--p6-blue); }
.p6-faq dt { font-weight: 700; margin: 0 0 4px; }
.p6-faq dd { margin: 0; color: var(--p6-text-muted); }

.p6-latest { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.p6-latest a { display: block; padding: 14px 16px; background: var(--p6-surface); border: var(--p6-border) solid var(--p6-line); color: var(--p6-text); }
.p6-latest a:hover { border-color: var(--p6-primary); text-decoration: none; }
.p6-latest strong { display: block; }

@media (min-width: 768px) {
  .p6-hero { padding: 72px 0 72px; }
  .p6-hero h1 { font-size: 46px; }
  .p6-cards { grid-template-columns: repeat(2, 1fr); }
  .p6-steps { grid-template-columns: repeat(3, 1fr); }
  .p6-split { grid-template-columns: repeat(2, 1fr); }
  .p6-page-title { font-size: 34px; }
  .p6-pixel-label { font-size: 13px; }
}
@media (min-width: 1200px) {
  .p6-cards { grid-template-columns: repeat(4, 1fr); }
  .p6-hero h1 { font-size: 52px; }
}

/* ---- pricing ---- */
.p6-prices { margin: 8px 0 20px; }
.p6-th-unit { display: block; font-size: 12px; font-weight: 400; color: var(--p6-text-muted); }
.p6-table--prices .p6-price-official { color: var(--p6-text-muted); }
.p6-table--prices .p6-col-our { background: var(--p6-our-bg); }
.p6-table--prices thead .p6-col-our { background: var(--p6-our-head-bg); }
.p6-price-our { font-weight: 700; color: var(--p6-text); }
.p6-price-cache { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--p6-text-muted); }
.p6-discount { display: inline-block; background: var(--p6-primary); color: var(--p6-surface); padding: 0 6px; font-size: 12px; font-weight: 700; line-height: 1.6; margin-left: 6px; white-space: nowrap; }
.p6-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: var(--p6-border) solid var(--p6-line-strong); background: var(--p6-surface); }
.p6-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; display: table; margin: 0; background: var(--p6-surface); }
.p6-table th, .p6-table td { border: 0; border-bottom: 2px solid var(--p6-bg-strong); padding: 11px 14px; text-align: left; white-space: nowrap; }
.p6-table thead th { background: var(--p6-bg-strong); font-weight: 700; }
.p6-table tbody tr:last-child th, .p6-table tbody tr:last-child td { border-bottom: 0; }
.p6-table__model { font-family: var(--p6-font-mono); font-weight: 600; color: var(--p6-primary-dark); }
.p6-tag { display: inline-block; background: var(--p6-warn-bg); color: var(--p6-warn-text); border: 2px solid var(--p6-warn-line); padding: 0 6px; font-size: 12px; line-height: 1.6; margin-right: 4px; white-space: nowrap; }
.p6-prose .p6-table-wrap table { display: table; width: 100%; max-width: none; }
.p6-prose .p6-table-wrap th, .p6-prose .p6-table-wrap td { border: 0; border-bottom: 2px solid var(--p6-bg-strong); }

/* ---- articles ---- */
.p6-article-list { list-style: none; padding: 0; margin: 24px 0 0; max-width: 860px; display: grid; gap: 12px; }
.p6-article-list__item { padding: 14px 18px; background: var(--p6-surface); border: var(--p6-border) solid var(--p6-line); }
.p6-article-list__title { font-size: 18px; font-weight: 700; }
.p6-article-list__excerpt { margin: 6px 0 0; color: var(--p6-text-muted); }
.p6-pager { margin-top: 20px; }
.p6-pager .page-numbers { display: inline-block; margin-right: 8px; padding: 2px 10px; border: 2px solid var(--p6-line); background: var(--p6-surface); }
.p6-pager .page-numbers.current { border-color: var(--p6-line-strong); font-weight: 700; }

/* ---- docs layout (0.3.1): sidebar, back link, pager, copy buttons ---- */
.p6-docs { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.p6-docs__body { min-width: 0; max-width: 860px; }
.p6-docs__side { background: var(--p6-surface); border: var(--p6-border) solid var(--p6-line); padding: 0 0 12px; }
.p6-docs__group { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; padding: 8px 18px; font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--p6-primary-dark); background: var(--p6-primary-soft); border-top: 2px solid var(--p6-primary-line); border-bottom: 2px solid var(--p6-primary-line); cursor: pointer; list-style: none; }
.p6-docs__group::-webkit-details-marker { display: none; }
.p6-docs__group:focus-visible { outline: 2px solid var(--p6-primary); outline-offset: -4px; }
.p6-docs__heading { flex: 1; min-width: 0; margin: 0; font: inherit; color: inherit; }
.p6-docs__group::before { content: ""; flex: 0 0 10px; width: 10px; height: 10px; background: var(--p6-primary-bright); }
.p6-docs__group::after { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.p6-docs__section[open] > .p6-docs__group::after { transform: rotate(45deg); }
.p6-docs__section:first-child > .p6-docs__group { margin-top: 0; border-top: 0; }
.p6-docs__section:nth-of-type(2) > .p6-docs__group { color: var(--p6-amber-text); background: var(--p6-warn-bg); border-color: var(--p6-amber-line); }
.p6-docs__section:nth-of-type(2) > .p6-docs__group::before { background: var(--p6-amber); }
.p6-docs__section:nth-of-type(3) > .p6-docs__group { color: var(--p6-blue); background: #e8eef6; border-color: var(--p6-blue-line); }
.p6-docs__section:nth-of-type(3) > .p6-docs__group::before { background: var(--p6-blue); }
.p6-docs__list { list-style: none; margin: 0 0 6px; padding: 0; }
.p6-docs__list a { display: block; padding: 7px 18px 7px 15px; border-left: 3px solid transparent; color: var(--p6-text); font-size: 15px; line-height: 1.5; }
.p6-docs__list a:hover { background: var(--p6-bg-soft); text-decoration: none; color: var(--p6-primary); }
.p6-docs__list a[aria-current="page"] { border-left-color: var(--p6-primary-bright); background: var(--p6-primary-soft); font-weight: 700; color: var(--p6-primary-dark); }
.p6-docs__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; min-height: 0; }
.p6-backlink { font-weight: 700; display: inline-block; padding: 4px 0; }
.p6-docs__toggle { display: none; }
.p6-docs__scrim { display: none; }
.p6-docs__pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin: 40px 0 0; padding-top: 20px; border-top: var(--p6-border) solid var(--p6-line); }
.p6-docs__pager a { display: block; flex: 1 1 220px; max-width: 100%; padding: 12px 16px; background: var(--p6-surface); border: var(--p6-border) solid var(--p6-line); color: var(--p6-text); font-weight: 700; }
.p6-docs__pager a:hover { border-color: var(--p6-primary); text-decoration: none; }
.p6-docs__pager span { display: block; font-size: 13px; font-weight: 400; color: var(--p6-text-muted); }
.p6-docs__next { text-align: right; margin-left: auto; }
.p6-docs__body .p6-notice { margin: 0 0 18px; }

.p6-codebox { position: relative; }
.p6-codebox pre { margin-top: 0; }
.p6-copy { position: absolute; top: 6px; right: 6px; font: inherit; font-size: 12px; line-height: 1.4; padding: 3px 9px; cursor: pointer; background: var(--p6-term-bar); color: var(--p6-term-text); border: 2px solid var(--p6-term-text); }
.p6-copy:hover { background: var(--p6-primary); }
.p6-copy.is-done { background: var(--p6-primary-bright); color: #ffffff; }

@media (min-width: 960px) {
  .p6-docs { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; }
  .p6-docs__side { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; }
}
@media (max-width: 959px) {
  .p6-js .p6-docs__toggle {
    display: inline-block; background: var(--p6-surface); border: 2px solid var(--p6-line-strong);
    padding: 6px 12px; font: inherit; font-size: 15px; color: var(--p6-text); cursor: pointer; box-shadow: var(--p6-shadow-sm);
  }
  .p6-js .p6-docs__side {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 70; width: min(300px, 85vw); overflow-y: auto;
    border-width: 0 var(--p6-border) 0 0; padding-top: 20px; transform: translateX(-105%); transition: transform 0.2s ease;
  }
  .p6-js .p6-docs__side.is-open { transform: translateX(0); box-shadow: var(--p6-shadow-lg); }
  .p6-js .p6-docs__scrim.is-open { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(29, 42, 51, 0.35); }
}

/* ---- home additions (0.3.1): base URL card, step buttons, quick start tabs ---- */
.p6-baseurl { margin: 22px 0 0; max-width: 640px; background: var(--p6-surface); border: var(--p6-border) solid var(--p6-line-strong); padding: 12px 16px; }
.p6-baseurl__label { margin: 0 0 6px; font-weight: 700; font-size: 14px; color: var(--p6-text-muted); }
.p6-baseurl dl { margin: 0; display: grid; gap: 6px; }
.p6-baseurl dl > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.p6-baseurl dt { font-size: 14px; min-width: 110px; }
.p6-baseurl dd { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; }
.p6-baseurl code { font-size: 15px; }
.p6-baseurl .p6-copy { position: static; background: var(--p6-bg-soft); color: var(--p6-text); border-color: var(--p6-line-strong); }
.p6-baseurl .p6-copy.is-done { background: var(--p6-primary-bright); color: #ffffff; }

.p6-steps .p6-step { display: block; color: var(--p6-text); padding: 12px 14px 12px 0; }
.p6-steps .p6-step:hover { text-decoration: none; }
.p6-steps .p6-step:hover h3 { color: var(--p6-primary); }
.p6-step__go { display: inline-block; margin-top: 8px; padding: 4px 12px; font-size: 14px; font-weight: 700; border: 2px solid var(--p6-line-strong); background: var(--p6-surface); color: var(--p6-text); box-shadow: var(--p6-shadow-sm); }
.p6-step:hover .p6-step__go { background: var(--p6-primary); border-color: var(--p6-primary); color: #ffffff; }

.p6-tabs__list { display: none; }
.p6-js .p6-tabs__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 -3px; }
.p6-tabs__tab { font: inherit; font-size: 15px; padding: 7px 14px; cursor: pointer; background: var(--p6-bg-strong); color: var(--p6-text); border: var(--p6-border) solid var(--p6-line); border-bottom: 0; }
.p6-tabs__tab[aria-selected="true"] { background: var(--p6-term-bg); color: var(--p6-term-text); border-color: var(--p6-line-strong); font-weight: 700; }
.p6-tabs__panel { margin: 0 0 18px; }
.p6-tabs__panel p { margin: 8px 0 0; color: var(--p6-text-muted); }
.p6-js .p6-tabs__title { display: none; }
.p6-tabs__title { font-size: 17px; margin: 18px 0 8px; }
.p6-quick pre { margin: 0; }

.p6-faq > div:nth-child(3n+1) { border-left-color: var(--p6-primary-bright); }
.p6-faq > div:nth-child(3n+2) { border-left-color: var(--p6-amber-soft); }
.p6-faq > div:nth-child(3n) { border-left-color: var(--p6-blue); }

/* ---- 404 ---- */
.p6-404 { text-align: center; padding: 48px 0; }
.p6-404__text { font-size: 22px; }

/* ---- footer ---- */
.p6-footer { border-top: var(--p6-border) solid var(--p6-line); background: var(--p6-bg-strong); padding: 30px 0; font-size: 14px; color: var(--p6-text-muted); }
.p6-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 18px 24px; }
.p6-footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.p6-footer__links a { color: var(--p6-text-muted); }
.p6-footer__support { margin: 0; padding: 8px 14px; border: 2px dashed var(--p6-text-muted); overflow-wrap: anywhere; max-width: 100%; }
.p6-support__line { display: block; line-height: 1.6; }
.p6-support__line + .p6-support__line { margin-top: 4px; }
.p6-footer__copy { margin: 18px 0 0; font-family: var(--p6-font-pixel); font-size: 11px; line-height: 1.6; color: var(--p6-text-muted); }

@media (prefers-reduced-motion: reduce) {
  .p6-btn:active { transform: none; }
}
