/* help.choutes.com: the Help Center layout on top of the styles of choutes.com */
.wiki-head { padding-bottom: clamp(64px, 8vw, 110px); }
.wiki-head h1 { font-size: clamp(2rem, 4vw, 3rem); }

.wiki-layout {
  display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px);
  padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(56px, 7vw, 96px); align-items: start;
}
.wiki-side { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; padding-right: 4px; }

/* Search */
.wiki-search { position: relative; margin-bottom: 18px; }
.wiki-search > svg { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.wiki-search input {
  width: 100%; height: 44px; padding: 0 12px 0 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: 400 .95rem/1 var(--font-text);
}
.wiki-search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(91,24,229,.18); }
.wiki-results {
  list-style: none; margin: 6px 0 0; padding: 6px; position: absolute; left: 0; right: 0; z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(24,8,64,.18);
}
.wiki-results a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text); }
.wiki-results a:hover, .wiki-results a.active { background: var(--tint); }
.wiki-results small { display: block; color: var(--muted); font-size: .8rem; }
.wiki-results .none { padding: 8px 10px; color: var(--muted); font-size: .9rem; }

/* Contents */
.wiki-nav > summary { display: none; }
.wiki-nav ul { list-style: none; margin: 0 0 14px; padding: 0; }
.wiki-nav-title { font: 600 .78rem/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px 10px; }
.wiki-nav a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.wiki-nav a:hover { background: var(--tint); }
.wiki-nav a[aria-current="page"] { background: var(--tint); color: var(--accent-text); font-weight: 600; box-shadow: inset 3px 0 0 var(--violet); }
.wiki-home { font-weight: 600; }

/* Article */
.wiki-article { max-width: 46em; min-width: 0; }
.wiki-article h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 1.8em; scroll-margin-top: 20px; }
.wiki-article h2:first-child { margin-top: 0; }
.wiki-article h3 { margin-top: 1.4em; font-size: 1.05rem; font-family: var(--font-text); font-weight: 600; }
.wiki-article ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.wiki-article li { margin: .3em 0; }
.wiki-article code { background: var(--code-bg); border-radius: 5px; padding: 1px 6px; }
.wiki-article pre code { background: none; padding: 0; }
.wiki-article table.req { margin: 6px 0 20px; }
.wiki-article table.req th, .wiki-article table.req td { vertical-align: top; }

ol.wiki-steps { list-style: none; counter-reset: step; padding: 0; margin: 4px 0 22px; }
ol.wiki-steps > li { counter-increment: step; position: relative; padding: 0 0 6px 50px; min-height: 40px; }
ol.wiki-steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tint); color: var(--accent-text); font: 600 .95rem/1 var(--font-text);
}
ol.wiki-steps > li > strong { display: block; margin-bottom: 2px; }
ol.wiki-steps > li p { margin: 0 0 .6em; color: var(--muted); }

.callout { border-radius: 12px; padding: 14px 18px; margin: 18px 0 22px; border: 1px solid var(--line); background: var(--surface); border-left: 4px solid var(--violet); }
.callout p { margin: 0; }
.callout .callout-title { font-weight: 600; margin-bottom: 4px; color: var(--accent-text); }
.callout.warn { border-left-color: #E0A12E; }
.callout.warn .callout-title { color: #B07400; }
.callout.info { border-left-color: #3D8BFD; }
.callout.info .callout-title { color: #2A6CD6; }
@media (prefers-color-scheme: dark) {
  .callout.warn .callout-title { color: #F6CC77; }
  .callout.info .callout-title { color: #8DB8FF; }
}

.wiki-shot { margin: 8px 0 26px; }
.wiki-shot img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(24,8,64,.14); width: 100%; }

details.faq { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; margin: 0 0 10px; }
details.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 1.4rem; color: var(--accent-text); }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { padding: 0 18px 14px; margin: 0; color: var(--muted); }

.wiki-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.wiki-pager a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); background: var(--surface); font-weight: 600; }
.wiki-pager a:hover { border-color: var(--accent-text); }
.wiki-pager a > span:first-child { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.wiki-pager .next { text-align: right; }

/* Home: topics */
.wiki-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0 8px; }
.wiki-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 8px; }
.wiki-card h2 { font-size: 1.15rem; margin: 0 0 10px; }
.wiki-card ul { list-style: none; padding: 0; margin: 0; }
.wiki-card li { margin: 0 0 12px; }
.wiki-card li a { font-weight: 600; text-decoration: none; }
.wiki-card li a:hover { text-decoration: underline; }
.wiki-card li p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }

@media (max-width: 900px) {
  .wiki-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wiki-side { position: static; max-height: none; overflow: visible; padding: 0; }
  .wiki-nav { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 8px; }
  .wiki-nav > summary { display: block; cursor: pointer; padding: 12px 16px; font-weight: 600; }
  .wiki-nav > nav { padding: 0 8px 8px; }
  .wiki-pager { grid-template-columns: minmax(0, 1fr); }
  .wiki-pager .next { text-align: left; }
}

/* Help Center: the stick figure next to the greeting. */
.help-hello { display: flex; align-items: center; gap: 18px; }
.help-hello .help-mascot { width: 64px; flex: none; animation: mascot-bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.help-hello p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .help-hello .help-mascot { animation: none; } }
.wiki-article, .wiki-side { min-width: 0; }
.wiki-article { overflow-wrap: break-word; }
