/* New School 99: /help/logs/ ("Send us your logs"). One column, three numbered steps with a small picture of what the
   player will see beside each, then what the file holds and hides, a safety note and the drawers.
   Tokens, the title band, buttons, windows, drawers and keys come from ns.css. */
.help { --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace; padding-bottom: clamp(56px, 7vw, 96px); }
.help-wrap { width: min(940px, 100% - 2 * var(--gut)); }
.help .ptop h1 { font-size: clamp(38px, 5.2vw, 64px); }
.help code.inline { padding: 1px 6px; font: 500 .88em/1.4 var(--mono); color: var(--gold-hi); background: rgba(228,184,106,.1); border-radius: 3px; overflow-wrap: anywhere; }
.help q { color: var(--ink); }
.help b { color: var(--ink); }

.help-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.help-facts li { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; font-weight: 700; font-size: 16px; background: var(--panel); border: 1px solid var(--frame); border-radius: 999px; }
.help-facts li::before { content: ""; flex: none; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); border-radius: 1px; }
.help-pc-note, .help-opens { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 13px 16px; font-size: 17px; line-height: 1.5; border-radius: 0 4px 4px 0; color: var(--ink-2); }
.help-pc-note { display: none; background: rgba(255,138,74,.09); border-left: 3px solid var(--ember); }
.help-pc-note svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--ember); }
@media (max-width: 767px), (pointer: coarse) { .help-pc-note { display: flex; } }
.help-opens { background: rgba(228,184,106,.08); border-left: 3px solid var(--gold); }
.help-opens svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--gold); }

.help-os-tabs { display: none; margin-top: 26px; gap: 6px; flex-wrap: wrap; }
.js .help-os-tabs { display: flex; }
.help-os-tab { padding: 10px 20px; font-weight: 800; cursor: pointer; color: var(--ink-2); background: var(--panel); border: 1px solid var(--frame-hi); border-radius: 6px; transition: border-color .15s, color .15s; }
.help-os-tab:hover { color: var(--ink); border-color: var(--gold); }
.help-os-tab.is-active { color: #221604; background: linear-gradient(180deg, #f7d98f, #dba850 55%, #b47f33); border-color: #f7d98f; }
.help-os-label { margin-top: 10px; font-weight: 800; color: var(--gold); }
.js .help-os-label { display: none; }
.js:not(.os-set) [data-os="mac"], .js:not(.os-set) [data-os="linux"] { display: none; }      /* scripts on, switcher not run yet: no jump from two blocks to one */

/* ---------- steps ---------- */
.steps { list-style: none; margin: clamp(22px, 3vw, 34px) 0 0; padding: 0; display: grid; gap: clamp(16px, 2vw, 24px); }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 22px; padding: clamp(18px, 2.2vw, 28px); background: linear-gradient(180deg, rgba(17,32,41,.95), rgba(13,23,31,.95)); border: 1px solid var(--frame-hi); border-radius: 6px; box-shadow: 0 0 0 1px #05090c, 0 24px 60px -30px rgba(0,0,0,.8); }
.step-num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font: 700 34px/1 var(--numeral); color: var(--gold-hi); background: radial-gradient(circle at 50% 35%, #6b4a1c, #2a1b07 72%); box-shadow: inset 0 0 0 2px #b98a3c, inset 0 0 0 3px #3a2609, 0 1px 0 #000; }
.step-main { min-width: 0; }
.step h2 { padding-top: 10px; font: 800 clamp(24px, 1vw + 18px, 32px)/1.12 var(--text); letter-spacing: 0; }
.step-cols { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 28px; align-items: start; }
.step-text { color: var(--ink-2); }
.step-text p + p { margin-top: 12px; }
.step-text .step-trouble { padding: 10px 12px; font-size: 16px; background: rgba(255,255,255,.03); border-left: 2px solid var(--frame-hi); }
.ok-text { color: #7fdc8a !important; }
.step-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

/* the command and its Copy button: only the box scrolls sideways, never the page */
.cmd { margin-top: 18px; display: flex; gap: 10px; align-items: stretch; }
.cmd-box { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: 14px 16px; overflow-x: auto; overscroll-behavior-x: contain; background: #05090c; border: 1px solid var(--gold); border-radius: 6px; scrollbar-width: thin; scrollbar-color: rgba(228,184,106,.4) transparent; }
#cmd, #cmdMac { white-space: pre; font: 500 15px/1.5 var(--mono); color: var(--gold-hi); -webkit-user-select: all; user-select: all; }
.cmd-copy { flex: none; min-width: 132px; justify-content: center; padding: 0 24px; font-size: 19px; }
.cmd-copy.is-copied { background: linear-gradient(180deg, #b9f0c0, #6fcf7c 55%, #3c9a4d); }
.cmd-status { margin-top: 8px; font-weight: 700; font-size: 16px; color: #7fdc8a; }
.cmd-status:empty { height: 0; margin: 0; }
.cmd-status.is-warn { color: var(--ember); }
.cmd-safe { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ink-3); }
.cmd-safe svg { flex: none; width: 18px; height: 18px; color: var(--gold); }

/* ---------- the pictures (hidden from screen readers; the caption says what they show). They keep the colours of the
   real Windows, macOS and Discord windows on purpose. ---------- */
.shot { margin: 0; display: grid; gap: 9px; min-width: 0; }
.shot figcaption { font-size: 15px; color: var(--ink-3); text-align: center; }
.mock { position: relative; overflow: hidden; border-radius: 8px; font: 400 12.5px/1.4 "Segoe UI", system-ui, sans-serif; -webkit-user-select: none; user-select: none; box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 22px 40px -20px rgba(0,0,0,.95); }
.mock p { margin: 0; }
.caret { display: inline-block; width: 1px; height: 1.15em; margin-left: 1px; vertical-align: text-bottom; background: currentColor; animation: caret 1.1s steps(1) infinite; }
.mock-ps .caret { width: .6em; height: 2px; vertical-align: baseline; }
@keyframes caret { 50% { opacity: 0; } }
.ps-tile { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px; font: 700 12px/1 var(--mono); color: #fff; background: linear-gradient(135deg, #3a7fd6, #0e3a80); }
.ps-tile-lg { width: 46px; height: 46px; font-size: 17px; border-radius: 8px; }
.ps-tile-sm { width: 16px; height: 16px; font-size: 7px; border-radius: 3px; }

.mock-start { padding: 14px; color: #fff; background: #202020; }
.st-search { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px; font-size: 13.5px; background: #2c2c2c; border-radius: 17px; box-shadow: inset 0 -2px 0 #4cc2ff; }
.st-search svg { width: 15px; height: 15px; color: #cfcfcf; }
.st-cols { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 10px; }
.st-label { margin: 2px 2px 7px; font-size: 11.5px; font-weight: 600; color: #cfcfcf; }
.st-label:not(:first-child) { margin-top: 12px; }
.st-hit { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: #353535; border-radius: 6px; }
.st-hit::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 2px; background: #4cc2ff; }
.st-name { display: grid; min-width: 0; }
.st-name b { font-weight: 600; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-name small, .st-right small { font-size: 11.5px; color: #bdbdbd; }
.st-row { display: flex; align-items: center; gap: 9px; padding: 6px 10px; font-size: 12px; color: #dcdcdc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-dot { flex: none; width: 14px; height: 14px; border-radius: 3px; background: #4a4a4a; }
.st-right { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 16px 10px 8px; text-align: center; background: #2a2a2a; border-radius: 6px; }
.st-right .ps-tile { margin-bottom: 6px; }
.st-right b { font-size: 13px; font-weight: 600; color: #fff; }
.st-open { justify-self: stretch; margin-top: 12px; padding: 7px 4px 0; font-size: 12px; text-align: left; border-top: 1px solid #3a3a3a; }

.mock-ps { color: #eeedf0; background: #012456; }
.mock-bar { display: flex; align-items: center; gap: 8px; height: 30px; padding-left: 10px; font-size: 12px; color: #fff; background: #1f1f1f; }
.mock-bar-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-ctl { margin-left: auto; display: flex; }
.mock-ctl i { position: relative; width: 36px; height: 30px; }
.mock-ctl i::before, .mock-ctl i::after { content: ""; position: absolute; left: 50%; top: 50%; }
.mock-ctl i:nth-child(1)::before { width: 10px; height: 1px; margin-left: -5px; background: #ddd; }
.mock-ctl i:nth-child(2)::before { width: 9px; height: 9px; margin: -5px 0 0 -5px; border: 1px solid #ddd; }
.mock-ctl i:nth-child(3)::before, .mock-ctl i:nth-child(3)::after { width: 12px; height: 1px; margin-left: -6px; background: #ddd; transform: rotate(45deg); }
.mock-ctl i:nth-child(3)::after { transform: rotate(-45deg); }
.mock-body { padding: 10px 12px 14px; font: 12px/1.45 Consolas, "Cascadia Mono", var(--mono); }
.mock-body p { white-space: pre-wrap; word-break: break-all; }
.ps-ok { color: #16c60c; }

.mock-dc { color: #dbdee1; background: #313338; font-family: "gg sans", "Noto Sans", system-ui, sans-serif; font-size: 13px; }
.dc-head { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; font-weight: 600; color: #f2f3f5; border-bottom: 1px solid #26272b; }
.dc-head svg { width: 18px; height: 18px; color: #80848e; }
.dc-new { margin-left: auto; padding: 5px 10px; font-size: 12px; color: #fff; background: #5865f2; border-radius: 4px; }
.dc-form { display: grid; gap: 8px; padding: 12px; }
.dc-label { font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #b5bac1; }
.dc-input { padding: 9px 11px; color: #f2f3f5; background: #1e1f22; border-radius: 6px; }
.dc-msg p { color: #dbdee1; }
.dc-file { margin-top: 10px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; background: #2b2d31; border: 1px solid #3f4147; border-radius: 6px; }
.dc-file svg { flex: none; width: 22px; height: 22px; color: #c9cdfb; }
.dc-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: #00a8fc; }
.dc-file small { flex: none; font-size: 11.5px; color: #949ba4; }
.dc-actions { display: flex; justify-content: flex-end; }
.dc-post { padding: 6px 18px; font-size: 12.5px; font-weight: 600; color: #fff; background: #5865f2; border-radius: 4px; }

/* ---------- what's in the file / what we hide ---------- */
.help-panels { margin-top: clamp(30px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.help-panel { padding: 18px 20px 20px; }
.help-panel h2 { font: 800 24px/1.15 var(--text); letter-spacing: 0; padding-bottom: 12px; border-bottom: 1px solid var(--frame); }
.help-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 11px; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.help-list:not(.help-list-marks) li { position: relative; padding-left: 20px; }
.help-list:not(.help-list-marks) li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
.help-list-marks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.help-list-marks svg { width: 18px; height: 18px; margin-top: 4px; }
.help-list-marks .is-yes svg { color: #7fdc8a; }
.help-list-marks .is-no svg { color: var(--ember); }
.help-list-marks .is-info svg { color: var(--saradomin); }
.help-panel-foot { margin-top: 14px; padding-top: 12px; font-size: 16px; color: var(--ink-3); border-top: 1px dashed var(--frame); }

.help-callout { margin-top: clamp(22px, 3vw, 32px); display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 18px 20px; background: rgba(255,138,74,.08); border: 1px solid rgba(255,138,74,.4); border-left: 3px solid var(--ember); border-radius: 0 6px 6px 0; }
.help-callout > svg { width: 28px; height: 28px; color: var(--ember); }
.help-callout-title { font: 800 22px/1.2 var(--text); letter-spacing: 0; color: #ffc3a1; }
.help-callout p { margin-top: 6px; color: var(--ink-2); }

/* ---------- drawers: by hand, the script itself, small FAQ ---------- */
.help-more { margin-top: clamp(40px, 5vw, 64px); }
.help-more > h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 16px; }
.help-detail > * + * { margin-top: 12px; }
.by-hand { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.by-hand li::marker { font-weight: 700; color: var(--gold); }
.help code.path { padding: 2px 8px; font: 500 .86em/1.6 var(--mono); color: var(--gold-hi); background: rgba(228,184,106,.09); border: 1px solid var(--bronze); border-radius: 3px; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.mini-copy { margin: 0 2px; padding: 3px 10px; font-weight: 700; font-size: 14px; vertical-align: 1px; color: var(--gold-hi); background: rgba(228,184,106,.09); border: 1px solid var(--bronze); border-radius: 4px; cursor: pointer; transition: background-color .2s; }
.mini-copy:hover { background: rgba(228,184,106,.2); }
.mini-copy.is-copied { color: #7fdc8a; border-color: #3c9a4d; }
.help-note { padding-left: 12px; font-size: 16px; color: var(--ink-3); border-left: 2px solid var(--frame-hi); }
.src-block + .src-block { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--frame); }
.src-block-title { font-weight: 800; color: var(--gold-hi); margin-bottom: 8px; }
.src-meta { font-size: 15px; color: var(--ink-3); overflow-wrap: anywhere; }
.src-pre { max-height: 440px; margin: 0; padding: 14px 16px; overflow: auto; overscroll-behavior: contain; white-space: pre; tab-size: 4; font: 12.5px/1.5 var(--mono); color: #d7d2c3; background: #05090c; border: 1px solid var(--frame); border-radius: 4px; scrollbar-width: thin; scrollbar-color: rgba(228,184,106,.4) transparent; }
.src-link { display: flex; flex-wrap: wrap; gap: 4px 12px; font-weight: 700; }
.src-link span { font-weight: 400; color: var(--ink-3); }

@media (max-width: 760px) {
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; }
  .step-main { display: contents; }
  .step-num { grid-row: 1; width: 44px; height: 44px; font-size: 26px; }
  .step-main > div[data-os] { display: contents; }
  .step h2 { grid-column: 2; align-self: center; padding-top: 0; }
  .step-main > :not(h2):not(div[data-os]), .step-main > div[data-os] > :not(h2) { grid-column: 1 / -1; }
  .step-main > div[data-os][hidden] > * { display: none; }
  .step-cols { grid-template-columns: minmax(0, 1fr); }
  .help-panels { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .cmd { flex-direction: column; }
  .cmd-box { padding: 12px 14px; }
  #cmd, #cmdMac { font-size: 13.5px; }
  .cmd-copy { padding: 15px 20px; }
  .step-actions .btn { flex: 1 1 100%; justify-content: center; }
  .help-callout { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px; }
}
@media (max-width: 480px) {
  .st-cols { grid-template-columns: minmax(0, 1fr); }
  .st-right { display: none; }
}
html.calm .caret { animation: none; }      /* motion turned off with the nav button */
