/* dislab.app/help: the help centre, made by apps/console/scripts/helpSite.mjs from the console's guides. */
.hc { padding: 0 0 72px; }
.hc-hero { padding: 56px 0 40px; }
.hc-hero h1 { font-size: clamp(36px, 4.6vw, 52px); font-weight: 750; }
.hc-hero .intro { font-size: 19px; color: var(--ink2); margin-top: 14px; max-width: 640px; }

.hc-search { position: relative; margin-top: 28px; max-width: 680px; }
.hc-search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--ink3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.hc-search input {
  width: 100%; height: 46px; padding: 0 16px 0 46px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: 400 16px var(--font-ui);
}
.hc-search input:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.hc-search.big input { height: 56px; font-size: 17px; border-radius: 14px; box-shadow: 0 1px 2px rgb(13 15 20 / .04), 0 8px 24px rgb(13 15 20 / .06); }
.hc-side .hc-search { margin: 0 0 18px; }

.hc-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--surface2); color: var(--ink2); font: 600 12px/1 var(--font-ui); letter-spacing: .02em; white-space: nowrap; flex: none; }
.hc-chip.pro { background: var(--accent-soft); color: var(--accent-text); }

/* Search results */
.hc-results ul { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 10px; max-width: 780px; }
.hc-results a { display: grid; gap: 2px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink2); }
.hc-results a:hover { border-color: var(--accent); }
.hc-results small { color: var(--ink3); font-size: 13px; }
.hc-results b { color: var(--ink); font: 650 18px/1.3 var(--font-head); letter-spacing: -0.01em; }
.hc-results span { font-size: 15px; }
.hc-none { color: var(--ink2); margin-bottom: 40px; }

/* Start here */
.hc-start { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px 28px; }
.hc-start h2 { font-size: 22px; }
.hc-start ol { list-style: none; counter-reset: step; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hc-start li { counter-increment: step; }
.hc-start a { display: grid; gap: 4px; height: 100%; padding: 16px 16px 18px; border-radius: var(--radius); background: var(--bg); text-decoration: none; color: var(--ink2); }
.hc-start a::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 14px/1 var(--font-head); }
.hc-start a:hover { background: var(--accent-soft); }
.hc-start b { color: var(--ink); font-weight: 650; }
.hc-start span { font-size: 15px; }

/* Topics */
.hc-section-title { font-size: 26px; margin: 48px 0 18px; }
.hc-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hc-topic { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px 14px; scroll-margin-top: 90px; }
.hc-topic-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.hc-topic h3 { font-size: 19px; }
.hc-topic-head p { color: var(--ink3); font-size: 14px; line-height: 1.45; margin-top: 6px; }
.hc-topic ul { list-style: none; margin: 14px 0 0; padding: 0; }
.hc-topic li + li { border-top: 1px solid var(--line); }
.hc-topic a { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); }
.hc-topic a:hover span { color: var(--accent-text); text-decoration: underline; }

.hc-contact { background: var(--accent-soft); border-radius: var(--radius-lg); padding: 26px 28px; margin-top: 48px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hc-contact h2 { font-size: 22px; margin-bottom: 6px; }
.hc-contact p { color: var(--ink2); max-width: 560px; }

/* A guide */
.hc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding-top: 40px; }
.hc-guide { max-width: 780px; min-width: 0; }
.hc-crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink3); margin-bottom: 18px; }
.hc-crumbs a { color: var(--ink3); text-decoration: none; }
.hc-crumbs a:hover { color: var(--accent-text); text-decoration: underline; }
.hc-title { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hc-title h1 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 750; }
.hc-summary { font-size: 19px; color: var(--ink2); margin-top: 14px; }

.hc-body { margin-top: 28px; color: var(--ink2); }
.hc-body > * + * { margin-top: 16px; }
.hc-body h3 { color: var(--ink); font-size: 20px; margin-top: 32px; }
.hc-body h4 { color: var(--ink); font: 650 17px/1.3 var(--font-ui); margin-top: 24px; }
.hc-body strong { color: var(--ink); font-weight: 600; }
.hc-body ul, .hc-body ol { padding-left: 22px; display: grid; gap: 8px; }
.hc-body ol > li::marker { color: var(--accent-text); font-weight: 700; }
.hc-body li > ul, .hc-body li > ol { margin-top: 8px; }
.hc-body code { font: 500 0.88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface2); padding: 2px 6px; border-radius: 6px; color: var(--ink); overflow-wrap: anywhere; }
.hc-body pre { background: var(--tv); color: #E8EAF0; border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; }
.hc-body pre code { background: none; padding: 0; color: inherit; overflow-wrap: normal; font-size: 14px; }
.hc-body dl { display: grid; gap: 4px 0; }
.hc-body dt { color: var(--ink); font-weight: 600; margin-top: 10px; }
.hc-body dd { margin: 0; }
.hc-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hc-body th, .hc-body td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.hc-body th { color: var(--ink); font-weight: 600; }


.hc-related { margin-top: 40px; }
.hc-related h2 { font-size: 15px; font-family: var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.hc-related ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hc-related a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 15px; text-decoration: none; color: var(--ink); }
.hc-related a:hover { border-color: var(--accent); color: var(--accent-text); }

.hc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.hc-pager a { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.hc-pager a:hover { border-color: var(--accent); }
.hc-pager .next { text-align: right; grid-column: 2; }
.hc-pager small { color: var(--ink3); font-size: 13px; }
.hc-pager b { color: var(--ink); font-weight: 600; }

.hc-side { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; padding-bottom: 20px; }
.hc-side details { border-bottom: 1px solid var(--line); }
.hc-side summary { cursor: pointer; padding: 11px 0; font-weight: 600; font-size: 15px; color: var(--ink); list-style-position: outside; }
.hc-side ul { list-style: none; margin: 0 0 12px; padding: 0; }
.hc-side li a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 8px; font-size: 14px; color: var(--ink2); text-decoration: none; }
.hc-side li a:hover { color: var(--ink); background: var(--surface); }
.hc-side li a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }

@media (max-width: 960px) {
  .hc-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-start ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hc-side { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hc-hero { padding: 36px 0 28px; }
  .hc-topics, .hc-start ol { grid-template-columns: minmax(0, 1fr); }
  .hc-start { padding: 22px 18px; }
  .hc-start a { grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 14px 16px; }
  .hc-start a::before { grid-row: span 2; margin: 0; }
  .hc-pager { grid-template-columns: minmax(0, 1fr); }
  .hc-pager .next { grid-column: 1; }
  .hc-contact { padding: 22px 20px; }
}

/* Screenshots in a guide (console help/Shot.tsx) */
.help-shot { margin: 18px 0 6px; }
.help-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgb(13 15 20 / .05), 0 8px 24px rgb(13 15 20 / .07); }
.hc-body li > .help-shot { margin-top: 12px; }

/* Was this helpful? (posts to /help-feedback and comes back to #feedback-thanks, shown with CSS alone) */
.hc-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.hc-feedback span { font-weight: 600; margin-right: 6px; }
.hc-feedback-thanks { display: none; margin-top: 12px; color: var(--ok); font-weight: 500; }
.hc-feedback-thanks:target { display: block; }
.hc-feedback:has(~ .hc-feedback-thanks:target) { display: none; }
