/* PrintXpand brand: logo orange #F26334 → #FE812F, charcoal #262626 */
:root {
  --bg: #f7f6f5;
  --surface: #ffffff;
  --text: #262626;
  --muted: #5e5955;
  --line: #e8e3df;
  --accent: #c2461c;       /* readable brand orange for text and links */
  --brand: #f26334;        /* logo orange for marks, borders, fills */
  --brand-2: #fe812f;
  --accent-soft: #fdece4;
  --code-bg: #f3f0ee;
  --warn-bg: #fff4ec;
  --warn-line: #fe812f;
  --bad: #c2362f;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #171514;
    --surface: #201d1b;
    --text: #efebe8;
    --muted: #aaa29c;
    --line: #36312d;
    --accent: #fe812f;
    --brand: #fe812f;
    --brand-2: #ff9a5c;
    --accent-soft: #3a2519;
    --code-bg: #28231f;
    --warn-bg: #2e2117;
    --warn-line: #b8561f;
    --bad: #f07a72;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, .card h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
code, pre { font-family: "JetBrains Mono", Consolas, monospace; font-size: .86em; }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }

.topbar { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: inset 0 -2px 0 0 transparent; }
.topbar::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.topbar .wrap { display: flex; gap: 12px; align-items: center; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text); }
.brand .logo { height: 26px; width: auto; display: block; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .brand .logo-light { display: none; } .brand .logo-dark { display: block; } }
.brand .product { padding-left: 12px; border-left: 1px solid var(--line); font-size: .95rem; white-space: nowrap; }
.foot a { color: var(--muted); }
.foot .px { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; }
.crumb { color: var(--muted); font-size: .95rem; }
.asof { margin-left: auto; color: var(--muted); font-size: .85rem; }
a.brand { text-decoration: none; }
.switch { margin-left: auto; display: flex; gap: 4px; background: var(--code-bg); border-radius: 8px; padding: 3px; }
.switch a { padding: 5px 10px; border-radius: 6px; font-size: .85rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.switch a:hover { color: var(--text); }
.switch a[aria-current="page"] { background: var(--surface); color: var(--accent); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.kicker { margin: 0 0 6px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

.hub { max-width: 980px; margin: 0 auto; padding: 48px 16px 64px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card .tag { align-self: flex-start; font-size: .75rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
.card h2 { display: block; font-size: 1.25rem; margin: 12px 0 4px; }
.card p { color: var(--muted); font-size: .94rem; margin: 0 0 12px; }
.card ul { margin: 0 0 16px; padding-left: 18px; font-size: .92rem; }
.card .go { margin-top: auto; font-weight: 600; color: var(--accent); }

.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 32px; }
.toc { position: sticky; top: 80px; align-self: start; font-size: .92rem; }
.toc-title { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--muted); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; color: var(--muted); }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }

main { min-width: 0; padding-bottom: 64px; }
h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 12px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 70ch; }
section { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px 32px; margin: 28px 0; }
h2 { font-size: 1.45rem; margin: 0 0 12px; display: flex; align-items: center; gap: 12px; }
h2 .num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1rem; flex: none; }
h3 { font-size: 1.08rem; margin: 22px 0 8px; }

.table-wrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--code-bg); font-weight: 600; }

.steps > li { margin: 0 0 18px; padding-left: 4px; }
.steps > li::marker { font-weight: 700; color: var(--accent); }

.note { background: var(--warn-bg); border-left: 4px solid var(--warn-line); padding: 12px 16px; border-radius: 6px; }

.flow { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: f; }
.flow li { counter-increment: f; flex: 1 1 110px; background: var(--accent-soft); border-radius: 8px; padding: 10px 12px; font-weight: 600; font-size: .92rem; position: relative; }
.flow li::before { content: counter(f); display: block; font-size: .75rem; color: var(--accent); }
.flow small { display: block; font-weight: 400; color: var(--muted); }

figure.shot { margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--code-bg); }
figure.shot img { display: block; width: 100%; height: auto; }
figure.shot figcaption { padding: 8px 12px; font-size: .88rem; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }
figure.shot.missing img { display: none; }
figure.shot.missing::before {
  content: "Screenshot coming: " attr(data-shot);
  display: grid; place-items: center; min-height: 160px; color: var(--muted);
  font: 500 .9rem "JetBrains Mono", monospace; border-bottom: 1px dashed var(--line);
}

table.avoid td:first-child { font-weight: 600; padding-left: 30px; position: relative; width: 34%; }
table.avoid td:first-child::before { content: "✕"; position: absolute; left: 10px; color: var(--bad); font-weight: 700; }
table.avoid td:last-child { color: var(--text); }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
ul.check { list-style: none; padding: 0; }
ul.check li { margin: 6px 0; }
ul.check input { margin-right: 8px; accent-color: var(--accent); }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 20px 0; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
  section { padding: 20px 16px; }
  .checks { grid-template-columns: 1fr; }
  .asof, .crumb { display: none; }
  .brand .logo { height: 22px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand .product { display: none; }
  .switch a { padding: 5px 8px; }
}
