/* GENERATED COPY — source of truth: domains/civi/shared/how.css. Re-sync: python scripts/sync_shared_agent.py */
/* How it works — the components of the page (path of a case, contents box,
   problem types, example history). One source
   for both copies of the page: the app's /how-it-works and the landing's
   generated /{lang}/how-it-works/ (D53). The generic .doc rules (headings,
   tables, notes) stay in each site's own stylesheet — they also style
   privacy and terms. Load it AFTER the site's stylesheet (it overrides .doc ol and .doc h3).
   Edit here, then: python scripts/sync_shared_agent.py */
.how-path { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.doc .how-path { padding: 0; }
.how-path li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); position: relative; }
.how-path li + li::before { content: "↓"; position: absolute; top: -17px; left: 22px; color: var(--ink-2); font-size: 14px; }
.how-path .pill { justify-self: start; max-width: 100%; white-space: normal; }
.how-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 10px 0; }
.how-cat, .how-history, .how-toc { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 14px; }
.how-cat h3, .how-history h3 { font-family: var(--display); font-size: 18px; margin: 0 0 4px; }
.how-cat p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.how-cat p { color: var(--ink-2); }
.how-toc { margin: 16px 0 6px; }
.how-toc-label { margin: 0 0 6px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.how-toc ol { margin: 0; padding-left: 22px; columns: 2 240px; column-gap: 24px; font-size: 15px; }
.how-toc li { break-inside: avoid; padding: 2px 0; }
.how-history { margin: 14px 0; }
.how-history h3 { margin-bottom: 8px; }
.how-history ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.how-history time { display: inline-block; min-width: 56px; font-weight: 700; }
@media (max-width: 560px) { .how-path li { grid-template-columns: 1fr; gap: 6px; } }
/* On phones each site stacks its tables at its own width; the who-can-do-what
   cells then name their role — those rules sit with the stacking in each site. */
/* How it works as documentation (owner, 2026-10-27): the topic tree on the
   left, one topic on the right — the landing's pages and the app's page
   (static/how.js) use the same classes. On a phone the tree folds into a
   "Topics" button above the text. */
.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.docs-tree { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; font-size: 15px; }
.docs-tree > summary { display: none; }
.docs-tree nav { display: grid; gap: 2px; }
.docs-tree a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.docs-tree a:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.docs-tree a.here { background: color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.docs-tree .docs-root { font-weight: 700; }
.docs-group { margin: 14px 10px 4px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.docs-tree ul { list-style: none; margin: 0; padding: 0; }
.docs-crumbs { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.docs-crumbs a { color: inherit; }
.docs-body { min-width: 0; }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 36px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.docs-pager a { display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; }
.docs-pager a small { display: block; font-weight: 400; color: var(--ink-2); font-size: 13px; }
.docs-pager .next { text-align: right; grid-column: 2; }
@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; gap: 8px; }
  .docs-tree { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .docs-tree > summary { display: block; cursor: pointer; padding: 10px 14px; font-weight: 700; }
  .docs-tree nav { padding: 0 6px 10px; }
}
/* The app's page holds the article itself as the layout (how.js). */
.doc.docs-layout { max-width: 1120px; }
.docs-body { max-width: 72ch; }
.page-main:has(.docs-layout) { max-width: 1180px; }
/* "On this page" (the page's headings): a third column on a wide screen,
   a small box above the text below that — only on pages with enough headings. */
.docs-layout.has-rail { grid-template-areas: "tree rail" "tree body"; grid-template-rows: auto 1fr; }
.docs-layout.has-rail > .docs-tree { grid-area: tree; grid-row: 1 / span 2; }
.docs-layout.has-rail > .docs-body { grid-area: body; }
.docs-rail { grid-area: rail; font-size: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px 14px; }
.docs-rail[hidden] { display: none; }
.docs-rail-label { margin: 0 0 6px; font-weight: 700; color: var(--ink-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.docs-rail ul { list-style: none; margin: 0; padding: 0; columns: 2 150px; column-gap: 16px; }
.docs-rail li { break-inside: avoid; padding: 2px 0; }
.docs-rail a { color: var(--ink); text-decoration: none; }
.docs-rail a:hover { text-decoration: underline; }
.docs-rail a.here { font-weight: 700; color: var(--accent); }
@media (min-width: 1180px) {
  .docs-layout.has-rail { grid-template-columns: 250px minmax(0, 1fr) 210px; grid-template-areas: "tree body rail"; grid-template-rows: auto; }
  .docs-layout.has-rail > .docs-tree { grid-row: auto; }
  .docs-rail { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; border: 0; background: none; padding: 4px 0 4px 14px; border-left: 1px solid var(--line); border-radius: 0; }
  .docs-rail ul { columns: auto; }
}
@media (max-width: 860px) {
  .docs-layout.has-rail { grid-template-areas: "tree" "rail" "body"; grid-template-rows: auto; }
  .docs-layout.has-rail > .docs-tree { grid-row: auto; }
}
.page-main:has(.docs-layout.has-rail) { max-width: 1280px; }
/* The blur list with its reasons (D147). */
.how-blur { margin: 4px 0 12px; padding-left: 18px; }
.how-blur li { margin: 4px 0; }
