/* Help: the help home and its articles (site/help/help.js), over site.css. An article is one column to read,
   as prose is: where you are, its title and strip, the answer on the side's grey, Show me or Jean's replay, then its
   parts; a part of Jean it names is in bold, as the screen's own words. Classes start with help-. */

/* The article */
.help { display: flex; flex-direction: column; gap: 1.25rem; max-inline-size: calc(44rem + 2 * var(--site-gutter)); margin-inline: auto; padding: clamp(1.5rem, 5vw, 3rem) var(--site-gutter) 5rem; }
.help h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
.help h2 { font-size: clamp(1.3rem, 2.8vw, 1.55rem); }
.help-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; color: var(--ink-soft); font-size: 0.9rem; }
.help-crumbs span[aria-hidden] { color: var(--ink-faint); }
:dir(rtl) .help-crumbs span[aria-hidden] { scale: -1 1; }
.help-strip { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.help-strip li { padding: 0.15rem 0.65rem; border-radius: 1rem; background: var(--site-side); color: var(--ink-soft); font-size: 0.8125rem; }
.help-answer { padding: 1rem 1.15rem; border-radius: var(--site-pane); border-inline-start: 0.3rem solid var(--felt); background: var(--site-side); font-size: 1.1rem; text-wrap: pretty; }
.help-ui { font-weight: 650; color: var(--ink); }
.help-show { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; color: var(--ink-soft); font-size: 0.9rem; }
.help-show .button { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 1.15rem; font-size: 1rem; }
.help-demo { --demo: 22rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--site-pane); background: var(--room); }
.help-part { display: flex; flex-direction: column; gap: 0.75rem; padding-block-start: 0.75rem; }
.help-part > p { text-wrap: pretty; }
.help-list { display: flex; flex-direction: column; gap: 0.6rem; }
.help-list > li { display: flex; gap: 0.6rem; }
.help-list > li::before { content: '–' / ''; color: var(--ink-faint); }
.help-terms { display: flex; flex-direction: column; gap: 0.9rem; margin: 0; }
.help-terms > div { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: 0.25rem 1.25rem; padding-block-end: 0.9rem; border-block-end: 1px solid var(--line); }
.help-terms dt { font-weight: 650; }
.help-terms dd { margin: 0; text-wrap: pretty; }
.help-steps { display: flex; flex-direction: column; gap: 0.85rem; counter-reset: help-step; }
.help-steps > li { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; counter-increment: help-step; }
.help-steps > li::before { content: counter(help-step, decimal) / ''; display: grid; place-items: center; inline-size: 1.7rem; block-size: 1.7rem; border-radius: 50%; background: var(--site-fill); color: var(--site-on-fill); font-size: 0.85rem; font-weight: 600; }
/* What shows a part (figures.js): a part of Jean drawn on a stage of the app's room, with the app's own classes, a
   drawing of where the work stays, or a replay; its caption under it */
.help-figure { display: flex; flex-direction: column; gap: 0.6rem; margin-block-start: 0.35rem; }
.help-figure figcaption { color: var(--ink-soft); font-size: 0.875rem; text-wrap: pretty; }
.help-drawn, .help-kept { padding: clamp(1rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: var(--site-pane); background: radial-gradient(120% 90% at 50% 0%, var(--site-side), var(--room)); line-height: 1.5; }
.help-drawn { display: flex; flex-direction: column; justify-content: center; min-block-size: 11rem; }
.help-drawn :is(.button, .icon-button, .brain-chip, .send) { pointer-events: none; }
.help-box .composer { inline-size: 100%; max-inline-size: 34rem; margin-inline: auto; cursor: default; }
.help-box .brain-chip { flex: none; }
.help-box-words { min-block-size: 1.7em; color: var(--ink-faint); font-size: 1.06rem; line-height: 1.55; }
.help-box-note { margin-block-start: 0.6rem; color: var(--ink-soft); font-size: 0.75rem; text-align: center; }
.help-sheet { align-items: stretch; }
.help-sheet > * { inline-size: 100%; max-inline-size: 24rem; margin-inline: auto; }
.help-sheet-title { font-size: 1.2rem; font-weight: 650; }
.help-sheet-lede { margin-block: 0.25rem 1rem; color: var(--ink-soft); font-size: 0.9rem; }
.help-sheet .button { display: flex; justify-content: center; gap: 0.35rem; padding-block: 0.7rem; }
.help-sheet-hint { margin-block: 0.4rem 0.9rem; color: var(--ink-soft); font-size: 0.8125rem; text-align: center; }
.help-doors { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; }
.help-doors li + li { border-block-start: 1px solid var(--line); }
.help-door { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.9rem; }
.help-door > span { display: flex; flex: 1; flex-direction: column; }
.help-door b { font-weight: 600; font-size: 0.9375rem; }
.help-door small { color: var(--ink-soft); font-size: 0.8125rem; }
.help-door .icon { color: var(--ink-soft); }
.help-offer .approval { inline-size: 100%; max-inline-size: 30rem; margin-inline: auto; animation: none; }
.help-figure .help-demo { --demo: 28rem; }
.help-steps > li > .help-figure { grid-column: 2; }
/* What a step names, ringed as Show me rings it (caps/tour's .is-toured) */
.help-figure .help-ring { outline: 2px solid var(--flame); outline-offset: 3px; }
.help-box .offer { inline-size: 100%; max-inline-size: 34rem; margin: 0 auto 0.75rem; }
.help-box .offer .row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* A page of Settings, as Jean draws its pages (ui/dialogs.css): its head, its lede, then rows in a rounded list */
.help-settings { justify-content: flex-start; gap: 0.9rem; font-size: 0.95rem; }
.help-settings > * { inline-size: 100%; max-inline-size: 30rem; margin-inline: auto; }
.help-settings .help-back { justify-content: flex-start; inline-size: max-content; margin-inline-start: max(0px, (100% - 30rem) / 2 - 0.6rem); }
.help-settings-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem; }
.help-settings-head p { font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.help-settings .button { display: inline-flex; align-items: center; gap: 0.4rem; }
.help-settings-lede { color: var(--ink-soft); font-size: 0.9rem; }
.help-settings-lede strong { color: var(--ink); font-weight: 600; }
.help-settings-part { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.help-settings-group { display: flex; gap: 0.5rem; color: var(--ink-soft); font-size: 0.85rem; font-weight: 600; }
.help-settings-group span { font-weight: 400; }
.help-rows { align-self: stretch; border: 1px solid var(--line); border-radius: 1rem; }
.help-rows > li { padding: 0.6rem 0.85rem; }
.help-rows > li + li { border-block-start: 1px solid var(--line); }
.help-rows .item { display: flex; align-items: center; gap: 0.75rem; border-radius: 0.6rem; }
.help-rows .item > .icon:last-child { color: var(--ink-faint); }
.help-rows .item-icon { display: grid; flex: none; place-items: center; inline-size: 2.2rem; aspect-ratio: 1; border-radius: 0.7rem; background: oklch(from var(--flame) l c h / 0.14); }
.help-rows .item-icon .icon { color: var(--flame); }
.help-rows .item-text { display: flex; flex: 1; flex-direction: column; min-inline-size: 0; }
.help-rows .item-text strong { font-weight: 600; }
.help-rows .item-text small { color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.4; }
.help-rows .data-state { flex: none; padding: 0.1rem 0.55rem; border-radius: 999px; background: oklch(from var(--flame) l c h / 0.14); box-shadow: inset 0 0 0 1px oklch(from var(--flame) l c h / 0.45); font-size: 0.78rem; white-space: nowrap; }
.help-case > .is-todo .item-icon { border: 1.5px dashed var(--line-strong); background: none; }
.help-case > .is-todo .item-icon .icon { color: var(--ink-faint); }
/* Approvals' three rules: each its name and what Jean does, its kinds as chips */
.help-rules > li { display: grid; gap: 0.5rem; padding-block: 0.75rem 0.85rem; border-radius: 0.9rem; }
.help-rules p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.6rem; }
.help-rules b { font-weight: 600; }
.help-rules small { color: var(--ink-soft); font-size: 0.8rem; }
.help-kinds { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.help-kinds span { display: inline-flex; align-items: center; gap: 0.4rem; min-block-size: 2rem; padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--line); font-size: 0.85rem; }
.help-kinds .is-fixed { background: none; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-soft); }
.help-kinds .icon { inline-size: 1rem; block-size: 1rem; }
.help-kept { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; font-size: 0.9375rem; }
.help-kept :is(.help-kept-here, .help-kept-there) { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--room); }
.help-kept-here { outline: 2px solid var(--felt); outline-offset: -2px; }
.help-kept p { display: flex; align-items: flex-start; gap: 0.5rem; }
.help-kept p .icon { margin-block-start: 0.1rem; color: var(--ink-soft); }
.help-kept .help-kept-head { align-items: center; font-weight: 650; }
.help-kept .help-kept-head .icon { margin: 0; color: var(--ink); }
.help-kept-there p:not(.help-kept-head) { color: var(--ink-soft); }
.help-kept-way { display: flex; flex-direction: column; gap: 0.75rem; color: var(--ink-soft); font-size: 0.8125rem; text-align: center; }
.help-kept-way span { display: flex; flex-direction: column; }
.help-kept-way i { color: var(--ink); font-size: 1.4rem; font-style: normal; line-height: 1; }
.help-kept .help-kept-none { grid-column: 1 / -1; justify-content: center; color: var(--ink-soft); }
.help-fixes { display: flex; flex-direction: column; gap: 0.35rem; }
.help-fixes h3 { margin-block-start: 0.6rem; }
.help-fixes p { color: var(--ink-soft); }

/* The article before and after it in its moment, after a line: where it is in it, then a card each, the next one at
   the end; one above the other on a phone */
.help-pager { display: flex; flex-direction: column; gap: 0.75rem; margin-block-start: 1.25rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line); }
.help-pager ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.site .help-pager a { display: flex; flex-direction: column; gap: 0.3rem; block-size: 100%; padding: 0.9rem 1.1rem 1rem; border: 1px solid var(--line); border-radius: 0.9rem; color: var(--ink); text-decoration: none; }
.site .help-pager a:hover { border-color: var(--ink-faint); background: var(--site-side); }
.help-pager a span { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ink-soft); font-size: 0.8125rem; }
.help-pager a .icon { inline-size: 1rem; block-size: 1rem; }
.help-pager b { font-weight: 650; line-height: 1.35; text-wrap: balance; }
.help-pager-next { grid-column: 2; }
.site .help-pager-next a { align-items: flex-end; text-align: end; }

/* The home, one column: its title, something wrong as a row of chips, Start here as a row of tiles in order, then a
   card for each moment listing its articles */
.help-home { display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 3rem); padding: clamp(2.5rem, 6vw, 4rem) var(--site-edge) 5rem; }
.help-head { display: flex; flex-direction: column; gap: 1rem; }
.help-band { display: flex; flex-direction: column; gap: 1rem; }
.site .help-label { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; color: var(--ink-soft); font: 600 0.8125rem/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.help-label span::before { content: '·' / ''; margin-inline-end: 0.5rem; }
.help-label span { font-weight: 500; }
.help-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.site .help-chips a { display: inline-flex; align-items: center; min-block-size: 2.75rem; padding: 0.45rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; }
.help-path { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 0.75rem; counter-reset: help-path; }
.help-path > li { display: flex; counter-increment: help-path; }
.site .help-path a { display: flex; flex-direction: column; gap: 0.6rem; inline-size: 100%; padding: 1rem 1.1rem 1.15rem; border: 1px solid transparent; border-radius: 0.9rem; background: var(--site-side); color: var(--ink); font-weight: 650; line-height: 1.35; text-decoration: none; text-wrap: balance; }
.help-path a::before { content: counter(help-path, decimal) / ''; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 600; }
.help-moments { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0.9rem; }
.help-moments > section { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.1rem 1.25rem 1.25rem; border: 1px solid var(--line); border-radius: var(--site-pane); }
.help-moments h3 { font-size: 1.05rem; }
.help-moments ul { display: flex; flex-direction: column; gap: 0.35rem; }
.site .help-moments a { color: var(--ink-soft); text-decoration-color: var(--line); }
.site :is(.help-chips, .help-path, .help-moments) a:hover { border-color: var(--ink-faint); color: var(--ink); text-decoration-color: currentColor; }
.help-more { color: var(--ink-soft); }

@media (max-width: 36rem) {
  .help-terms > div { grid-template-columns: minmax(0, 1fr); }
  .help-kept { grid-template-columns: minmax(0, 1fr); }
  .help-pager ul { grid-template-columns: minmax(0, 1fr); }
  .help-pager-next { grid-column: auto; }
  .help-kept-way { flex-direction: row; justify-content: center; gap: 2rem; }
  .help-kept-way i { rotate: 90deg; }
}
