/* Warhost.App organizer manual: shared by www.warhost.app/manual and every event site's /manual.
   The page that includes this sets the --m-* colours (see the two templates); everything else is here. */
.man { --m-read: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 36px; align-items: start; max-width: 1240px; margin: 0 auto; padding: 28px 20px 80px;
  font-family: var(--m-read); font-size: 16.5px; line-height: 1.62; color: var(--m-text); letter-spacing: 0; text-transform: none; }
.man *, .man *::before, .man *::after { box-sizing: border-box; }
.man a { color: var(--m-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.man a:hover { filter: brightness(1.15); }

/* ---- sidebar */
.man-side { position: sticky; top: var(--man-top, 84px); max-height: calc(100vh - var(--man-top, 84px) - 16px); overflow-y: auto; padding: 16px; background: var(--m-panel); border: 1px solid var(--m-line); border-radius: 8px; scrollbar-width: thin; }
.man-side h2 { font: 700 .74rem/1 var(--m-read); letter-spacing: .14em; text-transform: uppercase; color: var(--m-muted); margin: 0 0 8px; }
.man-search { width: 100%; padding: 9px 11px; border-radius: 6px; border: 1px solid var(--m-line); background: var(--m-bg); color: var(--m-text); font: inherit; font-size: .95rem; }
.man-search:focus { outline: 2px solid var(--m-accent); outline-offset: 1px; }
.man-found { font-size: .82rem; color: var(--m-muted); min-height: 1.2em; margin: 6px 0 10px; }
.man-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.man-chips button { font: 600 .8rem/1 var(--m-read); padding: 7px 10px; border-radius: 99px; border: 1px solid var(--m-line); background: transparent; color: var(--m-muted); cursor: pointer; }
.man-chips button[aria-pressed="true"] { background: var(--m-accent); border-color: var(--m-accent); color: var(--m-on-accent); }
.man-toc { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.man-toc .part { margin: 14px 0 4px; font: 700 .72rem/1.2 var(--m-read); letter-spacing: .12em; text-transform: uppercase; color: var(--m-muted); }
.man-toc a { display: block; padding: 4px 8px; border-left: 2px solid transparent; color: var(--m-text); text-decoration: none; border-radius: 0 4px 4px 0; }
.man-toc a:hover { background: var(--m-bg); }
.man-toc a.on { border-left-color: var(--m-accent); color: var(--m-accent); font-weight: 600; background: var(--m-bg); }
.man-toc li.gone { display: none; }
.man-toc ul { list-style: none; margin: 0 0 4px; padding: 0 0 0 12px; display: none; font-size: .88rem; }
.man-toc li.open > ul { display: block; }
.man-toc ul a { color: var(--m-muted); padding: 2px 8px; }
.man-pdf { display: block; margin-top: 16px; text-align: center; padding: 10px 12px; border-radius: 6px; background: var(--m-accent); color: var(--m-on-accent) !important; font-weight: 700; text-decoration: none !important; }
.man-print { display: block; width: 100%; margin-top: 8px; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--m-line); background: transparent; color: var(--m-muted); font: inherit; font-size: .88rem; cursor: pointer; }
.man-menu { display: none; }

/* ---- body */
.man-body { min-width: 0; }
.man-body section { padding: 0; border-top: 0; }
.man-hero { padding: 26px 28px; background: var(--m-panel); border: 1px solid var(--m-line); border-radius: 10px; margin-bottom: 30px; }
.man-hero h1 { font: 800 clamp(1.9rem, 4vw, 2.7rem)/1.1 var(--m-read); margin: 0 0 10px; color: var(--m-text); letter-spacing: -.01em; text-transform: none; }
.man-hero h1::before, .man-hero h1::after, .man-body h2::before, .man-body h2::after, .man-body h3::before, .man-body h3::after, .man-body h4::before, .man-body h4::after { content: none !important; }
.man-hero p { margin: 0 0 8px; color: var(--m-muted); max-width: 62ch; }
.man-hero .meta { font-size: .85rem; }
.man-body section.level1 > h1 { font: 700 .8rem/1 var(--m-read); letter-spacing: .16em; text-transform: uppercase; color: var(--m-accent); margin: 46px 0 6px; padding-top: 18px; border-top: 1px solid var(--m-line); }
.man-body section.level1:first-of-type > h1 { border-top: 0; margin-top: 0; }
.man-body h2 { font: 800 1.75rem/1.15 var(--m-read); margin: 0 0 12px; padding-top: 14px; color: var(--m-text); letter-spacing: -.01em; text-transform: none; scroll-margin-top: var(--man-top, 90px); }
.man-body section.level2 { margin-bottom: 40px; scroll-margin-top: var(--man-top, 90px); }
.man-body h3 { font: 700 1.2rem/1.25 var(--m-read); margin: 26px 0 8px; color: var(--m-text); letter-spacing: 0; text-transform: none; scroll-margin-top: var(--man-top, 90px); }
.man-body h4 { font: 700 1rem/1.3 var(--m-read); margin: 18px 0 6px; color: var(--m-text); letter-spacing: 0; text-transform: none; }
.man-body p { margin: 0 0 12px; max-width: 74ch; }
.man-body ul, .man-body ol { margin: 0 0 14px; padding-left: 1.4em; max-width: 74ch; }
.man-body li { margin: 3px 0; }
.man-body li > ul, .man-body li > ol { margin: 4px 0 6px; }
.man-body strong { color: var(--m-strong); font-weight: 700; }
.man-body code { font: .88em ui-monospace, SFMono-Regular, Menlo, monospace; padding: 1px 5px; border-radius: 4px; background: var(--m-panel); border: 1px solid var(--m-line); color: var(--m-strong); }
.man-body .anchor { margin-left: 8px; font-size: .8em; opacity: 0; text-decoration: none; color: var(--m-muted); }
.man-body h2:hover .anchor, .man-body h3:hover .anchor, .man-body .anchor:focus { opacity: 1; }
.man-body hr { border: 0; border-top: 1px solid var(--m-line); margin: 24px 0; }

.man-body table { border-collapse: collapse; width: 100%; margin: 6px 0 16px; font-size: .94rem; display: block; overflow-x: auto; }
.man-body th, .man-body td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--m-line); }
.man-body th { font: 700 .76rem/1.3 var(--m-read); letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted); white-space: nowrap; }
.man-body td:first-child { font-weight: 600; color: var(--m-strong); }

/* numbered procedures */
.man-body .steps > ol { list-style: none; counter-reset: step; padding-left: 0; }
.man-body .steps > ol > li { counter-increment: step; position: relative; padding: 2px 0 10px 44px; margin: 0; }
.man-body .steps > ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--m-accent); color: var(--m-on-accent); font: 700 .9rem/1 var(--m-read); }
.man-body .steps > ol > li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 34px; bottom: 2px; width: 2px; background: var(--m-line); }

/* callouts */
.man-body .tip, .man-body .warn, .man-body .note { margin: 14px 0 16px; padding: 12px 16px 12px 18px; border-radius: 6px; border: 1px solid var(--m-line); border-left: 4px solid var(--m-accent); background: var(--m-panel); max-width: 78ch; }
.man-body .tip > :last-child, .man-body .warn > :last-child, .man-body .note > :last-child { margin-bottom: 0; }
.man-body .tip::before, .man-body .warn::before, .man-body .note::before { display: block; font: 700 .72rem/1 var(--m-read); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; color: var(--m-accent); }
.man-body .tip::before { content: 'Tip'; }
.man-body .note::before { content: 'Good to know'; }
.man-body .warn { border-left-color: var(--m-warn); }
.man-body .warn::before { content: 'Careful'; color: var(--m-warn); }

/* checklists: ticks are remembered in this browser */
.man-body .checklist { margin: 14px 0 18px; padding: 14px 18px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-panel); max-width: 78ch; }
.man-body .checklist ul { list-style: none; padding: 0; margin: 0; }
.man-body .checklist li { margin: 0; }
.man-body .checklist label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.man-body .checklist input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--m-accent); flex: none; }
.man-body .checklist li.done span { color: var(--m-muted); text-decoration: line-through; }
.man-body .checklist .bar { height: 6px; border-radius: 99px; background: var(--m-bg); overflow: hidden; margin: 2px 0 10px; }
.man-body .checklist .bar i { display: block; height: 100%; width: 0; background: var(--m-accent); transition: width .2s; }
.man-body .checklist .foot { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; color: var(--m-muted); margin-top: 8px; }
.man-body .checklist .foot button { font: inherit; background: none; border: 0; color: var(--m-accent); cursor: pointer; text-decoration: underline; padding: 0; }

/* screenshots */
.man-body figure { margin: 16px 0 20px; }
.man-body figure img { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--m-line); cursor: zoom-in; background: #0d1014; }
.man-body figcaption { font-size: .86rem; color: var(--m-muted); margin-top: 6px; }
.man-zoom { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .88); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.man-zoom img { max-width: 100%; max-height: 100%; border-radius: 6px; }

/* "open this in your admin" links (event sites only; plain text on the main site and in print) */
.man-body a.go { display: inline-block; margin: 2px 0 10px; padding: 7px 12px; border-radius: 6px; border: 1px solid var(--m-accent); color: var(--m-accent); font-weight: 600; font-size: .92rem; text-decoration: none; }
.man-body a.go::after { content: ' \2192'; }
.man-body span.go { font-weight: 600; color: var(--m-strong); }
.man-body mark { background: var(--m-accent); color: var(--m-on-accent); border-radius: 2px; padding: 0 1px; }
.man-body section.gone, .man-body .gone { display: none; }
.man-body details { margin: 8px 0 12px; padding: 8px 14px; border: 1px solid var(--m-line); border-radius: 6px; background: var(--m-panel); max-width: 78ch; }
.man-body summary { cursor: pointer; font-weight: 600; color: var(--m-strong); }
.man-body details[open] summary { margin-bottom: 8px; }

@media (max-width: 920px) {
  .man { grid-template-columns: 1fr; gap: 0; padding-top: 14px; }
  .man-menu { display: block; position: sticky; top: 70px; z-index: 20; width: 100%; padding: 10px 14px; margin-bottom: 12px; border-radius: 6px; border: 1px solid var(--m-line); background: var(--m-panel); color: var(--m-text); font: 600 .95rem/1 var(--m-read); text-align: left; cursor: pointer; }
  .man-side { display: none; position: static; max-height: none; margin-bottom: 16px; }
  .man-side.open { display: block; }
  .man-hero { padding: 18px; }
}
@media print {
  .man { display: block; padding: 0; color: #111; }
  .man-side, .man-menu, .man-body .anchor { display: none !important; }
  .man-body section.gone { display: block; }
}

.man-body figure img.phone { max-width: 300px; }

/* Event sites come in many skins, some with terminal typefaces and forced capitals. Inside the manual the reading
   typography above always wins, so it looks the same on every site. */
.man label, .man summary, .man li, .man p, .man td, .man figcaption, .man input, .man button, .man a, .man span, .man div { font-family: var(--m-read) !important; text-transform: none !important; }
.man h1, .man h2, .man h3, .man h4, .man th { font-family: var(--m-read) !important; }
.man .man-hero h1, .man .man-body h2, .man .man-body h3, .man .man-body h4 { text-transform: none !important; letter-spacing: -.01em !important; }
.man .man-side h2, .man .man-toc .part, .man .man-body section.level1 > h1, .man .man-body th { text-transform: uppercase !important; }
.man .man-side h2 { font-size: .74rem !important; margin: 0 0 8px !important; }
.man .man-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; }
.man .man-search::placeholder { color: var(--m-muted); }
.man .man-menu { top: var(--man-top, 70px); }
.man .man-body h1::before, .man .man-body h1::after { content: none !important; }
.man .man-hero h1, .man .man-body h2 { font-weight: 800 !important; }
.man .man-body h3, .man .man-body h4 { font-weight: 700 !important; }
