/* The help center: the site's own tokens (styles.css) plus what a knowledge
   base needs. Same rule as the landing page: plain, big type, lots of air. */
body.help { font-size: 17px; }
.help .nav-links a[aria-current] { color: var(--stake-deep); }
@media (max-width: 720px) { .help .nav .btn { padding: 0 .9rem; } .help .nav .btn .long { display: none; } }
html, body.help { overflow-x: hidden; }
.help h1 { font-size: clamp(2rem, 5vw, 3rem); }
.narrow-wide { max-width: 860px; }

/* hero */
.help-hero { padding: clamp(2.8rem, 7vw, 5rem) 0 2.4rem; text-align: center; position: relative; overflow: hidden; }
.help-hero::before { content: ''; position: absolute; left: 50%; top: -30%; width: 120vw; max-width: 1400px; height: 90%; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(232,96,10,.10), transparent 60%); pointer-events: none; }
.help-hero .wrap { position: relative; }
.help-hero .lead { margin: 0 auto 1.8rem; }
.help-hero.small { padding-bottom: 1.4rem; }
.hero-ctas.left { justify-content: center; }

/* search */
.help-search { position: relative; max-width: 640px; margin: 0 auto 1.6rem; }
.help-search svg { position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; color: var(--slate); pointer-events: none; }
.help-search input[type="search"] { padding-left: 2.6rem; min-height: 50px; }
.help-search.big svg { left: 18px; top: 19px; width: 22px; height: 22px; }
.help-search.big input[type="search"] { min-height: 60px; font-size: 1.1rem; padding-left: 3.1rem; border-radius: 10px; box-shadow: 0 12px 30px rgba(15,26,43,.08); }
.results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 40px rgba(15,26,43,.14); text-align: left; max-height: 70vh; overflow: auto; }
.results a { display: block; padding: .75rem 1rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.results a:last-child { border-bottom: 0; }
.results a:hover, .results a.on { background: var(--canvas); }
.results b { display: block; font-weight: 600; }
.results span { display: block; font-size: .9rem; color: var(--slate); line-height: 1.4; }
.results small { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--stake-deep); font-weight: 600; }
.results .none { padding: .9rem 1rem; color: var(--slate); font-size: .95rem; }

/* blocks on the home page */
.help-main { padding: 0 0 4rem; }
.help-main section.block { padding: 0; margin: 0 0 3rem; }
.block h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { padding: .5rem .9rem; border: 1px solid var(--line); background: var(--white); border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.chips a:hover { border-color: var(--ink); }
.topics { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.topic, .panel { display: flex; flex-direction: column; gap: .3rem; padding: 1.3rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.topic:hover, .panel:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,26,43,.08); }
.topic b, .panel b { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; }
.topic span, .panel span:not(.ic) { color: var(--slate); font-size: .95rem; line-height: 1.45; }
.topic small { margin-top: auto; padding-top: .5rem; color: var(--stake-deep); font-weight: 600; font-size: .85rem; }
.ic { width: 42px; height: 42px; border-radius: 10px; background: var(--stake-soft); color: var(--stake-deep); display: grid; place-items: center; flex: none; margin-bottom: .5rem; }
.ic svg { width: 22px; height: 22px; }
.three { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; } }
.panel.dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.panel.dark span:not(.ic) { color: rgba(255,255,255,.75); }
.panel.dark .ic { background: rgba(232,96,10,.25); color: #ffb27a; }
.setup { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; background: var(--canvas-2); border-radius: var(--radius-lg); padding: 1.6rem; }
.setup h2 { margin-bottom: .3rem; font-size: 1.4rem; }
.setup p { margin: 0; }

/* topic page */
.crumbs { font-size: .9rem; color: var(--slate); margin: 2rem 0 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--stake-deep); }
.crumbs .sep { opacity: .5; }
.topic-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.topic-head .ic { width: 52px; height: 52px; margin: .3rem 0 0; }
.topic-head h1 { margin-bottom: .2em; }
.topic-head .lead { margin: 0; }
.narrow-wide .help-search { margin: 0 0 1.4rem; max-width: none; }
.list { list-style: none; margin: 0 0 2rem; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.list li { border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list a { display: block; padding: 1rem 1.3rem; text-decoration: none; color: var(--ink); }
.list a:hover { background: var(--canvas); }
.list b { display: block; font-weight: 600; font-size: 1.05rem; }
.list span { display: block; color: var(--slate); font-size: .95rem; line-height: 1.45; margin-top: .15rem; }
.list .empty { padding: 1rem 1.3rem; color: var(--slate); }

/* article */
.help-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 3rem; align-items: start; }
.side { position: sticky; top: 88px; padding-top: 2rem; max-height: calc(100vh - 100px); overflow: auto; }
.side .help-search { margin: 0 0 1.2rem; }
.side-head a { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 600; color: var(--ink); text-decoration: none; font-size: .98rem; }
.side-head svg { width: 18px; height: 18px; color: var(--stake-deep); }
.side ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.side li a { display: block; padding: .38rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--slate); text-decoration: none; font-size: .93rem; line-height: 1.35; }
.side li a:hover { color: var(--ink); }
.side li a[aria-current] { color: var(--ink); font-weight: 600; border-left-color: var(--stake); }
@media (max-width: 900px) { .help-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .side { position: static; max-height: none; order: 2; padding-top: 1rem; border-top: 1px solid var(--line); margin-top: 1rem; } }
.article { max-width: 760px; min-width: 0; }
.article h1 { margin-bottom: .3em; }
.article .lead { font-size: 1.15rem; margin-bottom: 1rem; }
.where { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: .4rem .8rem; font-size: .92rem; font-weight: 500; margin: 0 0 1.4rem; }
.where span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stake-deep); font-weight: 700; margin-right: .3rem; }
.where i { font-style: normal; color: var(--slate); }
.toc { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .92rem; padding: .8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.toc a { color: var(--slate); text-decoration: none; }
.toc a:hover { color: var(--stake-deep); }
.prose h2 { font-size: 1.45rem; margin: 2rem 0 .7rem; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.12rem; margin: 1.5rem 0 .5rem; }
.prose p, .prose li { line-height: 1.65; }
.prose ul { padding-left: 1.2rem; }
.prose ul li { margin: .35rem 0; }
.prose ul li::marker { color: var(--stake); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: .05em .35em; word-break: break-word; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0; }
.steps > li { counter-increment: step; position: relative; padding: .8rem 0 .8rem 3rem; border-top: 1px solid var(--line); }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: .75rem; width: 2rem; height: 2rem; border-radius: 6px; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; font-size: .92rem; }
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps ul { margin: .4rem 0 0; }
.callout { border-radius: 8px; padding: .9rem 1.1rem; margin: 1.2rem 0; line-height: 1.55; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--ink); }
.callout.careful { background: var(--stake-soft); border-color: #f6cfa9; border-left-color: var(--stake); }
.table { overflow-x: auto; margin: 1rem 0; }
.table table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--white); }
.table th, .table td { text-align: left; padding: .6rem .8rem; border: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--canvas-2); font-weight: 600; }
.stuck { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 2.6rem 0 1.4rem; padding: 1.2rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stuck .btn { min-height: 46px; box-shadow: none; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pager a { display: block; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; background: var(--white); }
.pager a:hover { border-color: var(--ink); }
.pager a.next { text-align: right; grid-column: 2; }
.pager small { display: block; font-weight: 500; color: var(--slate); font-size: .82rem; }

/* roadmap */
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin: 0; }
.stats div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: .7rem 1.2rem; min-width: 130px; }
.stats dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.stats dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
.tag { display: inline-block; font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 4px; vertical-align: middle; }
.tag.building { background: var(--ink); color: #fff; margin-bottom: .7rem; }
.tag.planned { background: var(--stake-soft); color: var(--stake-deep); }
.tag.exploring { background: var(--canvas-2); color: var(--slate); }
.tag.security { background: #e8f5ec; color: #1d6b38; }
.next { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: 1.6rem; margin-top: 1rem; }
.changes { list-style: none; padding: 0; margin: .6rem 0 0; }
.changes li { position: relative; padding: .45rem 0 .45rem 1.3rem; line-height: 1.5; font-size: .98rem; color: var(--slate); }
.changes li::before { content: ''; position: absolute; left: 0; top: .95rem; width: 7px; height: 7px; border-radius: 2px; background: var(--stake); }
.changes b { color: var(--ink); font-weight: 600; }
.planned { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.plan .tag { align-self: flex-start; }
.plan b { font-weight: 600; }
.plan span:not(.tag) { color: var(--slate); font-size: .94rem; line-height: 1.45; }
.timeline { list-style: none; margin: 1.2rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 118px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline > li { display: grid; grid-template-columns: 100px 1fr; gap: 38px; padding: 0 0 1.8rem; position: relative; scroll-margin-top: 90px; }
.timeline > li::before { content: ''; position: absolute; left: 112px; top: .45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--stake); }
.when { text-align: right; padding-top: .1rem; }
.ver { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.when time { display: block; font-size: .82rem; color: var(--slate); line-height: 1.3; }
.rel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; min-width: 0; }
.rel h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.rel > .muted { margin: 0 0 .2rem; font-size: .96rem; }
.next details summary, .rel details summary { cursor: pointer; color: var(--stake-deep); font-weight: 600; font-size: .92rem; margin-top: .4rem; }
@media (max-width: 640px) {
  .timeline::before { left: 6px; }
  .timeline > li { grid-template-columns: 1fr; gap: .4rem; padding-left: 1.8rem; }
  .timeline > li::before { left: 0; }
  .when { text-align: left; display: flex; gap: .7rem; align-items: baseline; }
}

/* support */
.support-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
@media (max-width: 900px) { .support-layout { grid-template-columns: minmax(0, 1fr); } }
.support-form { display: grid; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.2rem, 3vw, 2rem); }
.support-form label small { font-weight: 400; color: var(--slate); }
.support-form textarea { resize: vertical; }
.support-form input[type="file"] { min-height: 0; padding: .6rem; }
.support-form .btn { justify-self: start; }
.support-form .fine { margin: 0; }
.urgency { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.urgency legend { font-weight: 600; font-size: .92rem; margin-bottom: .3rem; padding: 0; }
.urgency label { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .97rem; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; margin: 0; }
.urgency label:has(input:checked) { border-color: var(--ink); background: var(--canvas); }
.urgency input[type="radio"] { width: 18px; height: 18px; min-height: 0; margin-top: .2rem; flex: none; padding: 0; }
.support-side { position: sticky; top: 88px; }
.support-side h2 { font-size: 1.35rem; }
.support-side h3 { font-size: 1.05rem; margin-top: 1.6rem; }
.support-side .steps > li { font-size: .96rem; }
.plain { padding-left: 1.1rem; }
.plain li { margin: .3rem 0; }
@media (max-width: 900px) { .support-side { position: static; } }
@media (max-width: 720px) { .help .brand { font-size: 1rem; white-space: nowrap; } .help .nav .wrap { gap: .6rem; } }
@media (max-width: 640px) { .stats { display: grid; grid-template-columns: 1fr 1fr; } }
.prose pre { background: var(--ink); color: #fff; border-radius: 8px; padding: 1rem 1.1rem; overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.prose pre code { background: none; border: 0; color: inherit; padding: 0; word-break: normal; }
