/* Help centre: docs layout */
.wrap-wide { max-width: 1280px; }
.help-grid { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 64px; }

/* sidebar */
.side { position: sticky; top: 60px; align-self: start; height: calc(100vh - 60px); overflow-y: auto; padding: 28px 20px 28px 0; border-right: 1px solid var(--line); }
.help-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel); color: var(--faint); cursor: text; transition: border-color .12s; }
.help-search:focus-within { border-color: #50505c; }
.help-search svg { width: 14px; height: 14px; flex: none; }
.help-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--text); }
.help-search input::placeholder { color: var(--faint); }
.help-search input::-webkit-search-cancel-button { display: none; }
.toc { display: flex; flex-direction: column; margin-top: 18px; }
.toc h5 { margin: 18px 0 6px; padding: 0 10px; font-size: 11.5px; font-weight: 550; color: var(--faint); }
.toc h5:first-child { margin-top: 4px; }
.toc a { padding: 6px 10px; border-radius: var(--r-sm); color: var(--dim); font-size: 13.5px; transition: color .12s, background .12s; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); background: var(--panel-2); }

/* content */
.doc { max-width: 720px; padding: 44px 0 0; }
.doc-head { padding-bottom: 36px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 12.5px; color: var(--faint); }
.crumbs span { margin: 0 6px; }
.doc h1 { margin: 10px 0 0; font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.doc-lead { margin: 10px 0 0; font-size: 16px; color: var(--dim); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 28px; }
.quick a { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 40px 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); transition: border-color .12s, background .12s; }
.quick a:hover { border-color: var(--line-2); background: var(--panel); }
.quick b { font-size: 14px; font-weight: 550; }
.quick span { font-size: 13px; color: var(--dim); }
.quick svg { position: absolute; right: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; color: var(--faint); transition: transform .15s, color .15s; }
.quick a:hover svg { color: var(--text); transform: translateX(2px); }
.no-res { margin: 0 0 40px; color: var(--dim); font-size: 14.5px; }

.doc section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
.doc section:last-of-type { border-bottom: 0; }
.doc section.hide { display: none; }
.doc h2 { margin: 0 0 14px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.doc h3 { margin: 28px 0 6px; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.doc p, .doc li { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin-bottom: 6px; padding-left: 4px; }
.doc li::marker { color: var(--faint); }
.doc b { color: var(--text); font-weight: 600; }
.doc code { font: 13px var(--mono); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.steps-list li::marker { color: var(--dim); font-weight: 600; }
.note { margin-top: 16px !important; padding: 12px 16px; border: 1px solid var(--line-2); border-left: 2px solid var(--brand); border-radius: var(--r-sm); background: var(--panel); font-size: 14px !important; }

.rules-tbl { width: 100%; margin: 16px 0 8px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 14px; }
.rules-tbl th { padding: 9px 16px; text-align: left; font-size: 12px; font-weight: 500; color: var(--dim); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.rules-tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: top; }
.rules-tbl tr:last-child td { border-bottom: 0; }
.rules-tbl td:first-child { width: 36%; color: var(--dim); }

.kbd { display: inline-flex; align-items: center; gap: 3px; font: 12px var(--mono); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); vertical-align: 1px; }
.kbd svg.i { width: 11px; height: 11px; color: var(--brand); vertical-align: 0; }
.small-list li { font-size: 14px !important; }

/* faq (shares .faq from site.css) */
.doc .faq { margin-top: 4px; }
.doc .faq summary { font-size: 14.5px; padding: 15px 0; }
.doc .faq details p { font-size: 14.5px; margin: -2px 0 0; }

.help-cta { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); font-size: 14px; }
.help-cta b { font-weight: 600; }
.help-cta span { color: var(--dim); }
mark { background: rgba(231, 183, 76, .25); color: inherit; border-radius: 3px; }

.foot-slim { margin-top: 72px; padding: 32px 0 28px; }
.foot-slim .foot-top { align-items: center; }
.foot-row { display: flex; gap: 24px; font-size: 13.5px; }
.foot-row a { color: var(--dim); }
.foot-row a:hover { color: var(--text); }
.foot-slim .foot-legal { margin-top: 24px; }

@media (max-width: 960px) {
  .help-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { position: sticky; top: 60px; z-index: 5; height: auto; overflow: visible; padding: 12px 0; margin: 0 -20px; padding-left: 20px; padding-right: 20px; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(9, 9, 11, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .toc { flex-direction: row; gap: 4px; margin: 10px -20px 0; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc h5 { display: none; }
  .toc a { flex: none; padding: 5px 10px; border: 1px solid var(--line); font-size: 13px; }
  .toc a.on { border-color: var(--line-2); }
  .doc { padding-top: 32px; }
  .doc section { scroll-margin-top: 170px; }
}
@media (max-width: 600px) {
  .quick { grid-template-columns: 1fr; }
  .doc h1 { font-size: 28px; }
  .doc h2 { font-size: 21px; }
  .doc p, .doc li { font-size: 14.5px; }
  .rules-tbl td { display: block; width: auto !important; padding: 0 14px; border-bottom: 0; }
  .rules-tbl td:first-child { padding-top: 10px; font-size: 12.5px; }
  .rules-tbl td:last-child { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .rules-tbl tr:last-child td:last-child { border-bottom: 0; }
  .rules-tbl thead { display: none; }
  .foot-row { gap: 18px; flex-wrap: wrap; }
}
@media (max-width: 960px) { .help-search kbd { display: none; } }
