:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eef2f7;
  --text: #16191d;
  --muted: #5a6370;
  --border: #e1e5eb;
  --accent: #1d5fe0;
  --accent-hover: #164bb4;
  --accent-soft: #e8f0fe;
  --on-accent: #ffffff;
  --code-bg: #14181f;
  --code-text: #e6edf3;
  --code-bar: #1d232c;
  --note: #1d5fe0;
  --note-bg: #eef4ff;
  --tip: #11845b;
  --tip-bg: #eaf7f1;
  --warn: #b25e09;
  --warn-bg: #fff5e8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --surface: #181c22;
    --surface-2: #1f242c;
    --text: #e7eaee;
    --muted: #a1a9b4;
    --border: #2b313a;
    --accent: #6ea2ff;
    --accent-hover: #93baff;
    --accent-soft: #1b2a44;
    --on-accent: #0c1220;
    --code-bg: #0b0e12;
    --code-text: #e6edf3;
    --code-bar: #161b22;
    --note: #6ea2ff;
    --note-bg: #17233a;
    --tip: #4cc690;
    --tip-bg: #13291f;
    --warn: #f0a44b;
    --warn-bg: #2e2112;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.article { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; z-index: 10; }

/* header / footer */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.main-nav { display: flex; gap: 4px 6px; flex-wrap: wrap; }
.main-nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 0.95rem; font-weight: 500; }
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin: 8px 0; max-width: 70ch; }
.foot-nav { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-bottom: 12px; }
.foot-nav a { color: var(--muted); }

/* type */
h1 { font-size: clamp(1.75rem, 4.2vw, 2.4rem); line-height: 1.2; letter-spacing: -0.02em; margin: 18px 0 10px; text-wrap: balance; }
h2 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -0.01em; margin: 44px 0 12px; scroll-margin-top: 16px; }
h3 { font-size: 1.12rem; margin: 28px 0 8px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; margin: 0 0 16px; }
li { margin: 6px 0; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace; font-size: 0.88em; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
kbd { font-family: inherit; font-size: 0.85em; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; background: var(--surface); white-space: nowrap; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* guide header bits */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--muted); margin-top: 22px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 12px; }
.applies { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.applies li { margin: 0; font-size: 0.82rem; background: var(--surface-2); color: var(--text); padding: 3px 10px; border-radius: 999px; }
.intro { font-size: 1.07rem; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin: 22px 0 8px; }
.toc-title { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 6px; }
.toc ul { margin: 0; padding: 0; list-style: none; columns: 2 220px; column-gap: 28px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 18px; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; margin: 0 0 14px; min-height: 30px; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.steps > li .code { margin: 10px 0 8px; }

.path { display: inline; }
.path b { font-weight: 600; }
.path .sep { color: var(--muted); margin: 0 5px; }

/* callouts */
.callout { border-left: 4px solid var(--note); background: var(--note-bg); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 16px; margin: 18px 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; margin-bottom: 4px; color: var(--note); }
.callout.tip { border-color: var(--tip); background: var(--tip-bg); }
.callout.tip .callout-title { color: var(--tip); }
.callout.warn { border-color: var(--warn); background: var(--warn-bg); }
.callout.warn .callout-title { color: var(--warn); }

/* official links */
.official {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
  padding: 12px 16px; margin: 10px 0; text-decoration: none; color: var(--text); box-shadow: var(--shadow);
}
.official:hover { border-color: var(--accent); color: var(--text); }
.official-main { display: flex; flex-direction: column; min-width: 0; }
.official-label { font-weight: 650; }
.official-sub { color: var(--muted); font-size: 0.88rem; }
.official-host { color: var(--accent); font-size: 0.88rem; white-space: nowrap; flex-shrink: 0; }

/* code blocks */
.code { background: var(--code-bg); color: var(--code-text); border-radius: var(--radius); margin: 12px 0 16px; overflow: hidden; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--code-bar); padding: 6px 8px 6px 14px; font-size: 0.8rem; color: #9aa6b2; }
.code pre { margin: 0; padding: 12px 14px; overflow-x: auto; }
.code code { background: none; padding: 0; color: inherit; font-size: 0.88rem; overflow-wrap: normal; white-space: pre; }
button.copy {
  font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  border: 1px solid #3a4452; background: #232b36; color: #e6edf3; border-radius: 6px; padding: 3px 10px;
}
button.copy:hover { background: #2d3744; }
button.copy.done { background: #11845b; border-color: #11845b; color: #fff; }
button.copy.small { border-color: var(--border); background: var(--surface); color: var(--text); }
button.copy.small:hover { background: var(--surface-2); }
button.copy.small.done { background: #11845b; border-color: #11845b; color: #fff; }

/* tables */
.table-wrap { overflow-x: auto; margin: 12px 0 18px; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--surface); font-weight: 650; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; overflow-wrap: normal; }

/* collapsible extra content */
.more { border: 1px solid var(--border); border-radius: var(--radius); margin: 10px 0 16px; }
.more > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; list-style-position: inside; }
.more > summary:hover { color: var(--accent); }
.more[open] > summary { border-bottom: 1px solid var(--border); }
.more > .more-body { padding: 4px 14px; }

/* end-of-guide */
.seller-box { margin-top: 44px; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; background: var(--surface); }
.seller-box h2 { margin: 0 0 8px; font-size: 1.15rem; }
.seller-box p { margin: 0; }
.share { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: var(--muted); font-size: 0.92rem; }
.related h2 { font-size: 1.15rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.card {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--bg); box-shadow: var(--shadow);
}
.card:hover { border-color: var(--accent); color: var(--text); }
.card-title { font-weight: 700; }
.card-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* home */
.hero { padding: 36px 0 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 2.9rem); max-width: 22ch; margin-top: 0; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.quick-link { text-decoration: none; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; }
.quick-link:hover { border-color: var(--accent); color: var(--accent); }
.promises { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 30px 0 8px; }
.promises li { margin: 0; display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 2px solid var(--accent); }
.promises span { color: var(--muted); font-size: 0.92rem; }
.home-cat { margin-top: 40px; }
.home-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.home-cat-head h2 { margin: 0; }
.home-cat-head a { font-size: 0.92rem; }
.sellers-strip { margin-top: 48px; border-radius: 14px; padding: 24px; background: var(--accent-soft); }
.sellers-strip h2 { margin: 0 0 6px; }
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 650; padding: 9px 18px; border-radius: 8px; }
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }

/* sellers page */
.link-list { list-style: none; padding: 0; margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius); }
.link-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.link-row:last-child { border-bottom: 0; }
.link-text { display: flex; flex-direction: column; min-width: 0; }
.link-text code { background: none; padding: 0; color: var(--muted); font-size: 0.82rem; }

/* ads */
.ad { margin: 28px 0; min-height: 100px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .official { flex-direction: column; align-items: flex-start; gap: 2px; }
  .steps > li { padding-left: 40px; }
  .toc ul { columns: 1; }
}
@media print {
  .site-header, .site-footer, .share, .related, .ad, button.copy { display: none; }
  .code { background: none; color: #000; border: 1px solid #999; }
}
