/* sidekicknote.com help center — on top of site.css (same tokens, Retro / Clean). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.kicker { font: 600 0.8rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin: 0 0 12px; }

/* home hero + search */
.help-hero { padding: 56px 0 34px; background: radial-gradient(900px 380px at 80% -20%, var(--accent-weak), transparent 70%); }
[data-look='retro'] .help-hero { background: none; }
.help-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
[data-look='retro'] .help-hero h1 { font-size: clamp(2.8rem, 6vw, 4.2rem); }
.help-hero .lead { max-width: 720px; color: var(--fg2); font-size: 1.12rem; }
.help-search { position: relative; display: flex; gap: 10px; max-width: 720px; margin: 22px 0 10px; }
.help-search input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.help-search input:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
[data-look='retro'] .help-search input { border-radius: 2px; border-color: var(--fg2); }
.help-res { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: min(60vh, 460px); overflow: auto; }
[data-look='retro'] .help-res { border-radius: 2px; box-shadow: 0 0 0 1px var(--fg2); }
.help-res li a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--fg); text-decoration: none; }
.help-res li a[aria-selected='true'], .help-res li a:hover { background: var(--bg3); }
.help-res b { display: block; }
.help-res .sec { color: var(--accent); font-weight: 600; }
.help-res .snip { display: block; color: var(--fg2); font-size: 0.9rem; margin-top: 2px; }
.help-res mark { background: var(--accent-weak); color: inherit; border-radius: 3px; padding: 0 2px; }
.help-res .none { padding: 10px 12px; color: var(--fg2); }
.help-quick a { color: var(--fg2); }

/* category cards */
.help-cats { padding: 26px 24px 70px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat h3 { margin: 0 0 6px; }
.cat p { font-size: 0.93rem; margin-bottom: 12px; }
.cat ul { list-style: none; padding: 0; margin: 0; }
.cat li { padding: 3px 0; font-size: 0.95rem; }
.cat li a { text-decoration: none; }
.cat li a:hover { text-decoration: underline; }
.help-list { list-style: none; padding: 0; margin: 0; counter-reset: pop; }
.help-list li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.help-list li a:hover b { color: var(--accent); text-decoration: underline; }
.help-list b { display: block; }
.help-list span { color: var(--fg2); font-size: 0.93rem; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.help-side-boxes { display: grid; gap: 16px; align-content: start; }
.help-side-boxes h3 { margin-bottom: 6px; }
.help-side-boxes p { margin: 0 0 8px; color: var(--fg2); font-size: 0.95rem; }
.help-results-static { padding: 10px 24px 30px; }
.help-results-static h2 { font-size: 1.4rem; }

/* article */
.help-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 22px; }
.help-top .help-search { margin: 0; flex: 0 1 380px; }
.help-top .help-search input { font-size: 0.95rem; padding: 8px 12px; border-radius: 10px; }
.help-top .help-search .btn { display: none; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 0.9rem; color: var(--fg3); }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--fg3); }
.crumbs a { color: var(--fg2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.help-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-top: 26px; padding-bottom: 70px; align-items: start; }
.help-aside { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; font-size: 0.92rem; }
.toc summary, .cat-nav-h { font: 600 0.78rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg3); cursor: pointer; padding: 4px 0 8px; }
.cat-nav-h { cursor: default; margin: 22px 0 0; }
.toc ol, .cat-nav ul { list-style: none; padding: 0 0 0 2px; margin: 0; border-left: 2px solid var(--line); }
.toc li a, .cat-nav li a { display: block; padding: 4px 0 4px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--fg2); text-decoration: none; line-height: 1.4; }
.toc li a:hover, .cat-nav li a:hover { color: var(--fg); }
.toc li a.on, .cat-nav li a[aria-current='page'] { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.help-art { min-width: 0; max-width: 820px; }
.art-head h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
[data-look='retro'] .art-head h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.art-head .lead { color: var(--fg2); font-size: 1.12rem; }
.art-head .meta { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 26px; }
.os-switch button { font: inherit; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; color: var(--fg2); cursor: pointer; }
.os-switch button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--onacc); }
.art-body h2 { font-size: 1.55rem; margin-top: 1.9em; scroll-margin-top: 80px; }
[data-look='retro'] .art-body h2 { font-size: 2rem; }
.art-body h3 { margin-top: 1.5em; scroll-margin-top: 80px; }
.art-body h2 .anchor, .art-body h3 .anchor { margin-left: 8px; font-size: 0.8em; color: var(--fg3); text-decoration: none; opacity: 0; }
.art-body h2:hover .anchor, .art-body h3:hover .anchor, .art-body .anchor:focus { opacity: 1; }
.art-body ul, .art-body ol { padding-left: 1.4em; }
.art-body li { margin: 0.35em 0; }
.art-body .ui { font-weight: 650; color: var(--fg); }
.art-body table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: 0.95rem; }
.tbl { overflow-x: auto; }
.art-body th, .art-body td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.art-body th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg3); background: var(--bg2); }
.art-body td.n { width: 2.4em; font: 700 0.9rem var(--mono); color: var(--accent); }
.art-body pre { background: var(--code); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow: auto; font: 0.86rem/1.55 var(--mono); }
.art-body pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.keys { white-space: nowrap; }
.keys kbd { margin-right: 2px; border-bottom-width: 2px; font-weight: 600; }
.k-mac + .k-win::before { content: ' / '; color: var(--fg3); font-size: 0.85em; }
[data-os='mac'] .k-win, [data-os='win'] .k-mac { display: none; }
[data-os] .k-mac + .k-win::before { content: none; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; margin: 0.9em 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-weak); color: var(--accent); font: 700 0.9rem var(--mono); }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--bg2); border-radius: 10px; padding: 12px 16px; margin: 1.2em 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-t { font: 600 0.78rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin: 0 0 4px; }
.callout-warn { border-left-color: #c97a00; }
.callout-warn .callout-t { color: #8a5300; }
.callout-private { border-left-color: #117b4f; }
.callout-private .callout-t { color: #0d6a43; }
[data-look='retro'] .callout { border-radius: 2px; }
[data-look='retro'] .callout-warn .callout-t, [data-look='retro'] .callout-private .callout-t { color: var(--accent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-look='retro']) .callout-warn .callout-t { color: #f0b44a; }
  :root:not([data-look='retro']) .callout-private .callout-t { color: #5fd29a; }
}

/* screenshots + numbered callouts */
.shot { margin: 1.4em 0 1.8em; }
.shot-a { display: block; }
.shot-in { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20, 30, 70, 0.1); background: #fff; }
[data-look='retro'] .shot-in { border-radius: 2px; box-shadow: 0 0 30px rgba(70, 255, 122, 0.1); }
.shot-in img { width: 100%; }
.shot svg.marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mk-box { fill: none; stroke: #c42b31; stroke-width: 2.5; stroke-dasharray: 6 4; opacity: 0.85; }
.mk-dot { fill: #c42b31; stroke: #fff; stroke-width: 3; }
.mk-n { fill: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; }
.shot figcaption { margin-top: 10px; color: var(--fg2); font-size: 0.92rem; text-align: center; }
.shot-narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.legend { columns: 2 260px; column-gap: 32px; list-style: none; padding: 0 !important; margin: 0 0 1.5em; }
.legend li { break-inside: avoid; display: grid; grid-template-columns: 30px 1fr; gap: 6px; margin: 0 0 10px; font-size: 0.95rem; }
.legend .num { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #c42b31; color: #fff; font: 700 0.78rem var(--mono); margin-top: 2px; }
.legend b { color: var(--fg); }
.legend span.d { color: var(--fg2); }

/* helpful + prev / next + related */
.helpful { margin-top: 50px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.helpful-h { font-size: 1.1rem !important; margin: 0 0 10px !important; }
[data-look='retro'] .helpful-h { font-size: 1.5rem !important; }
.helpful-btns { display: flex; gap: 10px; margin: 0 0 8px; }
.helpful-btns .btn[aria-pressed='true'] { background: var(--accent); color: var(--onacc); border-color: var(--accent); }
.helpful-thanks { font-weight: 600; }
.helpful-more { margin: 0; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.pn { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--fg); }
.pn:hover { border-color: var(--accent); }
.pn.next { text-align: right; grid-column: 2; }
.related-h { font-size: 1.2rem !important; margin-top: 40px !important; }
[data-look='retro'] .related-h { font-size: 1.6rem !important; }
.rel-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.rel-grid .card { display: grid; gap: 4px; height: 100%; text-decoration: none; color: var(--fg); padding: 16px; }
.rel-grid .card:hover { border-color: var(--accent); }
.rel-grid span { color: var(--fg2); font-size: 0.9rem; }
.nav a[aria-current='page'] { color: var(--fg); font-weight: 600; }

/* responsive */
@media (max-width: 1020px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: 1fr; gap: 10px; }
  .help-aside { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
  .cat-nav { display: none; }
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .help-top .help-search { flex: 1 1 100%; }
  .prevnext { grid-template-columns: 1fr; }
  .pn.next { grid-column: auto; }
  .help-hero { padding-top: 36px; }
}
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr; }
  .help-search .btn { padding: 10px 14px; }
}
@media print {
  .help-aside, .help-top, .helpful, .prevnext, .related { display: none; }
  .help-grid { display: block; }
  .shot svg.marks { display: block; }
}
.showcase { border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; margin: 1em 0; }
.showcase summary { cursor: pointer; }
.showcase pre { max-height: 520px; }
.copy-row { margin: 10px 0 0; }
.faq-d { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-d summary { cursor: pointer; padding: 10px 0; }
.faq-d p { color: var(--fg2); }
.mk-box.big { stroke-width: 2; stroke-dasharray: 3 5; opacity: 0.55; }

/* template gallery (plan/templates T4) */
.gal-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 14px 0; background: var(--bg); }
.gal-card h3 { margin: 0 0 4px; }
.gal-card p { margin: 6px 0; }
.gal-chips code { margin-right: 4px; }
.gal-card details pre { max-height: 22em; overflow: auto; }
