/* DoorStep Help Center. Same design tokens as the homepage (public/index.html) and portal. */
:root {
  --page: #fdfdfc; --panel: #ffffff; --panel2: #f5f5f4; --line: #e4e4e2; --line2: #c8c8c5;
  --text: #262626; --muted: #6b6b6b; --accent: #ff5e1f; --green: #15784f; --green-bg: #e8f5ee; --green-line: #b5dfc8; --ink: #c2410c; --btn: #cc4410; --btn2: #b93c0a;
  --tint: #fff7f3; --tint-line: #ffd2bf; --grid-dot: rgba(0,0,0,.07);
  --warn-bg: #fff8e6; --warn-line: #f2d58a; --warn-ink: #8a5a00;
  --shadow: 0 4px 60px rgba(255, 80, 10, .07), 0 2px 12px rgba(0, 0, 0, .04);
  --r: 4px;
  --font: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0f0f0f; --panel: #1a1a1a; --panel2: #222; --line: #2f2f2f; --line2: #474747;
    --text: #f2f2f0; --muted: #a3a3a0; --accent: #ff6a2e; --green: #4fd197; --green-bg: #10291d; --green-line: #24573b; --ink: #ff8a5c; --btn: #cc4410; --btn2: #e0500f;
    --tint: #26170f; --tint-line: #5c2c14; --grid-dot: rgba(255,255,255,.06);
    --warn-bg: #2a2110; --warn-line: #5e4815; --warn-ink: #f2c66b;
    --shadow: 0 4px 60px rgba(255, 80, 10, .06), 0 2px 12px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0f0f0f; --panel: #1a1a1a; --panel2: #222; --line: #2f2f2f; --line2: #474747;
  --text: #f2f2f0; --muted: #a3a3a0; --accent: #ff6a2e; --green: #4fd197; --green-bg: #10291d; --green-line: #24573b; --ink: #ff8a5c; --btn: #cc4410; --btn2: #e0500f;
  --tint: #26170f; --tint-line: #5c2c14; --grid-dot: rgba(255,255,255,.06);
  --warn-bg: #2a2110; --warn-line: #5e4815; --warn-ink: #f2c66b;
  --shadow: 0 4px 60px rgba(255, 80, 10, .06), 0 2px 12px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: var(--page); color: var(--text); font: 16px/1.6 var(--font); letter-spacing: -.16px; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-weight: 500; margin: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0; text-transform: uppercase; color: var(--green); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 50; border-radius: var(--r); }
.skip:focus { left: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r); font: 500 14px var(--font); letter-spacing: -.15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--btn); color: #fff; }
.btn.primary:hover { background: var(--btn2); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -.4px; color: var(--text); text-decoration: none; }
.logo i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, var(--green) 32%, var(--accent) 36%); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }
.logo-sub { color: var(--muted); text-decoration: none; font-size: 15px; padding-left: 14px; border-left: 1px solid var(--line); }
.logo-sub:hover { color: var(--text); }
.grow { flex: 1; }
.top-r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.theme { width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 16px; cursor: pointer; }
.theme:hover { border-color: var(--line2); }

/* Search */
.search { position: relative; }
.search input { width: 100%; height: 38px; padding: 0 40px 0 36px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px 50%; color: var(--text); font: 15px var(--font); letter-spacing: -.15px; -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:hover { border-color: var(--line2); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 11px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; background: var(--panel2); pointer-events: none; }
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { display: none; }
.top-search { flex: 1; max-width: 420px; margin-left: 10px; }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow), 0 12px 32px rgba(0,0,0,.12); max-height: min(70vh, 520px); overflow-y: auto; z-index: 30; padding: 6px; }
.top-search .results { min-width: min(480px, calc(100vw - 32px)); }
.results a { display: block; padding: 10px 12px; border-radius: 3px; text-decoration: none; color: var(--text); }
.results a b { display: block; font-weight: 600; font-size: 15px; }
.results a small { display: block; color: var(--green); font: 11px var(--mono); text-transform: uppercase; margin-bottom: 2px; letter-spacing: 0; }
.results a span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
.results a mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; border-radius: 2px; }
.results a.on, .results a:hover { background: var(--tint); }
.results .none { padding: 14px 12px; color: var(--muted); font-size: 14px; }

/* Article layout: list of articles | article | on this page */
.layout { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 48px; }
.side { position: sticky; top: 60px; align-self: start; max-height: calc(100vh - 60px); overflow-y: auto; padding: 28px 4px 40px 0; scrollbar-width: thin; }
.side-menu > summary { display: none; }
.side-sec { margin-bottom: 22px; }
.side-sec b { display: block; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: 0; color: var(--green); margin: 0 0 6px 10px; }
.side-sec a { display: block; padding: 5px 10px; border-radius: 3px; color: var(--muted); text-decoration: none; font-size: 14.5px; line-height: 1.35; border-left: 2px solid transparent; }
.side-sec a:hover { color: var(--text); background: var(--panel2); }
.side-sec a[aria-current] { color: var(--text); background: var(--tint); border-left-color: var(--accent); font-weight: 500; }
.toc { position: sticky; top: 60px; align-self: start; padding: 34px 0 40px; font-size: 13.5px; }
.toc b { display: block; font: 500 11.5px var(--mono); text-transform: uppercase; color: var(--muted); margin-bottom: 10px; letter-spacing: 0; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0 4px 12px; border-left: 1px solid var(--line); line-height: 1.35; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--ink); border-left-color: var(--accent); }

.article { padding: 28px 0 64px; min-width: 0; max-width: 740px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.article h1 { font-size: clamp(32px, 4.4vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
.article .lead { font-size: 18.5px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }

/* Article text */
.prose { margin-top: 30px; font-size: 16.5px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose table, .prose pre, .prose .callout, .prose dl { margin: 0 0 18px; }
.prose h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.03em; margin: 44px 0 14px; padding-top: 4px; }
.prose h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.02em; margin: 30px 0 10px; font-weight: 600; }
.prose .hash { color: var(--line2); text-decoration: none; font-weight: 400; opacity: 0; margin-left: 4px; }
.prose h2:hover .hash, .prose h3:hover .hash, .prose .hash:focus { opacity: 1; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--muted); }
.prose b, .prose strong { font-weight: 600; }
.prose code { font: 13.5px var(--mono); background: var(--panel2); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; letter-spacing: 0; overflow-wrap: anywhere; }
.prose pre { font: 13px/1.6 var(--mono); background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; overflow-x: auto; letter-spacing: 0; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose kbd { font: 12.5px var(--mono); background: var(--panel); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 3px; padding: 0 5px; letter-spacing: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

/* A label you'll see on screen: a button, tab or menu item. */
.ui { display: inline-block; font-weight: 500; font-size: .92em; line-height: 1.35; padding: 0 7px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: var(--text); white-space: nowrap; box-shadow: 0 1px 0 var(--line); }
.ui.go { background: var(--btn); border-color: var(--btn); color: #fff; box-shadow: none; }

/* Numbered steps */
.steps { list-style: none; padding: 0 !important; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 2px 0 14px 46px; margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); border: 1px solid var(--tint-line); color: var(--ink); font: 600 14px/28px var(--font); text-align: center; }
.steps > li::after { content: ''; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 1px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps > li > b:first-child { display: block; font-weight: 600; margin-bottom: 2px; }

/* Callouts */
.callout { border: 1px solid var(--line); border-left: 3px solid var(--green); background: var(--panel); border-radius: var(--r); padding: 14px 16px; font-size: 15.5px; }
.callout > b:first-child { display: block; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: 0; color: var(--green); margin-bottom: 4px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.tip { background: var(--green-bg); border-color: var(--green-line); border-left-color: var(--green); }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-line); border-left-color: #d99a00; }
.callout.warn > b:first-child { color: var(--warn-ink); }
.callout.key { background: var(--tint); border-color: var(--tint-line); border-left-color: var(--accent); }
.callout.key > b:first-child { color: var(--ink); }

/* Tables */
.prose .tw { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font: 500 11.5px var(--mono); text-transform: uppercase; color: var(--muted); background: var(--panel2); letter-spacing: 0; }
.prose td:first-child { font-weight: 500; white-space: nowrap; }
.prose td.wrap { white-space: normal; }

/* Related links at the end of an article */
.related { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.related li { margin: 0; }
.related a { display: block; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px; }
.related a:hover { border-color: var(--line2); }
.related a::after { content: ' →'; color: var(--accent); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); font-weight: 500; background: var(--panel); }
.pager a:hover { border-color: var(--line2); }
.pager small { display: block; font: 11.5px var(--mono); text-transform: uppercase; color: var(--muted); margin-bottom: 3px; letter-spacing: 0; }
.pager .next { text-align: right; grid-column: 2; }
.still { margin-top: 28px; color: var(--muted); font-size: 14.5px; }

/* Help center home */
.hub-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hub-hero { padding: 72px 0 56px; background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px); background-size: 22px 22px; border-bottom: 1px solid var(--line); }
.hub-hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.04; letter-spacing: -.045em; margin-top: 14px; }
.hub-hero .lead { font-size: 19px; color: var(--muted); max-width: 36em; margin: 16px 0 28px; }
.search.big { max-width: 640px; }
.search.big input { height: 52px; font-size: 17px; padding-left: 44px; background-position: 16px 50%; box-shadow: var(--shadow); }
.popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.popular a { color: var(--text); text-decoration: none; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px 12px; }
.popular a:hover { border-color: var(--line2); }
.hub-start { padding: 56px 0; border-bottom: 1px solid var(--line); }
.hub-start h2, .sec-h h2 { font-size: 26px; letter-spacing: -.03em; line-height: 1.2; }
.path { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.path a { display: block; height: 100%; padding: 20px; background: var(--panel); text-decoration: none; color: var(--text); }
.path a:hover { background: var(--tint); }
.path .n { font: 12px var(--mono); color: var(--green); }
.path b { display: block; margin: 10px 0 4px; font-weight: 600; font-size: 16px; }
.path small { color: var(--muted); font-size: 14px; line-height: 1.4; display: block; }
.hub-secs { padding: 56px 0 80px; }
.hub-secs .hub-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.sec { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 24px; scroll-margin-top: 80px; }
.sec-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.sec-h .ic { width: 42px; height: 42px; border-radius: var(--r); background: var(--tint); border: 1px solid var(--tint-line); display: grid; place-items: center; font-size: 20px; flex: none; }
.sec-h h2 { font-size: 21px; }
.sec-h p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.sec ul { list-style: none; margin: 0; padding: 0; }
.sec li a { display: block; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.sec li a b { font-weight: 500; display: block; }
.sec li a b::after { content: ' →'; color: var(--accent); opacity: 0; transition: opacity .12s; }
.sec li a:hover b::after { opacity: 1; }
.sec li a span { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 1px; }

.foot { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 13.5px; }
.foot-in { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.foot a { color: var(--muted); }

@media (max-width: 1180px) {
  .layout { grid-template-columns: 230px minmax(0, 1fr); gap: 40px; }
  .toc { display: none; }
}
@media (max-width: 960px) {
  .path { grid-template-columns: 1fr; }
  .hub-secs .hub-in { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 16px; }
  .side { position: static; max-height: none; overflow: visible; padding: 16px 0 0; }
  .side-menu { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
  .side-menu > summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; cursor: pointer; font-weight: 500; list-style: none; }
  .side-menu > summary::-webkit-details-marker { display: none; }
  .side-menu > summary::after { content: '▾'; color: var(--muted); }
  .side-menu[open] > summary::after { content: '▴'; }
  .side-list { padding: 4px 6px 6px; border-top: 1px solid var(--line); }
  .side-sec:first-child { margin-top: 14px; }
  .article { padding-top: 20px; }
  .top-in { padding: 0 16px; gap: 10px; }
  .hub-in { padding: 0 16px; }
  .foot-in { padding: 0 16px; }
}
@media (max-width: 640px) {
  .article-page .logo-sub { display: none; }
  .top-r .btn { display: none; }
  .top-search { margin-left: 0; }
  .top-search kbd { display: none; }
  .top-search { position: static; }
  .top-search .results { left: 12px; right: 12px; top: calc(100% + 4px); min-width: 0; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 23px; margin-top: 36px; }
  .prose td:first-child { white-space: normal; }
  .hub-hero { padding: 48px 0 40px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .sec { padding: 18px; }
}
@media (max-width: 640px) { .search kbd { display: none; } .search input { padding-right: 12px; } }
@media (max-width: 400px) {
  .article-page .logo { font-size: 0; gap: 0; }
}
