/* The Help centre (public/help.html, 2026-10-08): the site's own look -
   Plus Jakarta Sans, cool neutrals, near-black accents - with a docs layout:
   quiet sidebar with an active rail, screenshots on the page, numbered step
   rails, a command-bar search. Colours come from style.css's tokens, so dark
   mode follows the site's theme switch. */
html {
  /* the three callouts: what to know, a tip, what can't be undone */
  --hp-key: #197a4b; --hp-key-bg: rgba(31, 157, 97, 0.09); --hp-key-line: rgba(31, 157, 97, 0.28);
  --hp-tip: #2f62c7; --hp-tip-bg: rgba(59, 111, 212, 0.08); --hp-tip-line: rgba(59, 111, 212, 0.26);
  --hp-bad: #c93636; --hp-bad-bg: rgba(212, 59, 59, 0.075); --hp-bad-line: rgba(212, 59, 59, 0.26);
  --hp-edge: rgba(16, 17, 19, 0.3); --hp-lift: rgba(16, 17, 19, 0.1); /* a picture's outline and its shadow */
}
html[data-theme='dark'] {
  --hp-key: #4fd094; --hp-key-bg: rgba(70, 201, 138, 0.1); --hp-key-line: rgba(70, 201, 138, 0.28);
  --hp-tip: #8bb0f5; --hp-tip-bg: rgba(126, 166, 240, 0.1); --hp-tip-line: rgba(126, 166, 240, 0.28);
  --hp-bad: #f58a8a; --hp-bad-bg: rgba(240, 122, 122, 0.1); --hp-bad-line: rgba(240, 122, 122, 0.3);
  --hp-edge: rgba(255, 255, 255, 0.28); --hp-lift: rgba(0, 0, 0, 0.45);
}
.hp-app { --hp-red: #e5484d; --hp-max: 1400px; max-width: var(--hp-max); margin: 0 auto; padding: 0 28px 64px; color: var(--text); } /* as wide as Plugins and Admin */
.hp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp-eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-dim); }
.hp-lead { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-dim); max-width: 640px; }
.hp-empty { color: var(--text-dim); font-size: 14px; }
.hp-app kbd, .hp-search-overlay kbd { display: inline-block; min-width: 18px; padding: 2px 5px; font: 600 11px/1.2 inherit; font-family: inherit; text-align: center; color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; }

/* ---------- search buttons ---------- */
.hp-searchbtn { display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 10px 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); font: inherit; font-size: 13px; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 17, 19, 0.04); transition: border-color 0.15s; }
.hp-searchbtn:hover { border-color: var(--hover-border); }
.hp-searchbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.hp-searchbtn span { flex: 1; text-align: left; }
.hp-searchbtn.is-hero { width: 280px; flex: none; }
.hp-searchbtn.is-side { height: 32px; margin: 10px 0 12px; font-size: 12.5px; }
.hp-searchbtn.is-side kbd:first-of-type { display: none; }

/* ---------- home ---------- */
.hp-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 44px 0 26px; }
.hp-hero h1, .hp-main h1 { margin: 8px 0 0; font-size: 34px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
.hp-tiles { display: grid; grid-template-columns: repeat(var(--hp-cols, 3), minmax(0, 1fr)); gap: 14px; } /* one column per area: the public Help has two, so no empty third */
.hp-tile { display: flex; flex-direction: column; padding: 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.hp-tile.is-soon { opacity: 0.7; }
.hp-tile-head { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.hp-tile-head .hp-art { transition: border-color 0.15s; }
.hp-tile-head:hover .hp-art { border-color: var(--hover-border); }
.hp-tile-head:hover .hp-tile-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hover-border); }
.hp-tile-title { margin-top: 12px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.hp-tile-sub { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.hp-tile-list { display: flex; flex-direction: column; margin-top: 10px; border-top: 1px solid var(--border); }
.hp-tile-list a { padding: 7px 0; font-size: 13.5px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); transition: transform 0.15s; }
.hp-tile-list a:hover { transform: translateX(3px); }
.hp-tile-more { display: flex; align-items: baseline; gap: 12px; margin-top: auto; padding-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none; }
.hp-tile-more:hover > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.hp-tile-count { display: inline-flex; flex-wrap: wrap; gap: 0 12px; font-size: 12px; font-weight: 400; color: var(--text-dim); }
.hp-art { height: 86px; border-radius: 7px; background: var(--subtle-bg); position: relative; overflow: hidden; }
.hp-art-cpt { display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 0 14px; }
.hp-art-row { display: flex; gap: 7px; }
.hp-art-row span { height: 13px; border-radius: 3px; background: var(--surface); }
.hp-art-row span:first-child { width: 26px; background: var(--hover-border); }
.hp-art-row span:nth-child(2) { flex: 1; }
.hp-art-row span:last-child { width: 40px; border-radius: 7px; }
.hp-art-sync { background: #1f1f21; }
.hp-art-track { position: absolute; left: 14px; right: 14px; height: 15px; display: flex; gap: 3px; }
.hp-art-track.v { top: 22px; }
.hp-art-track.a { top: 44px; }
.hp-art-track span { border-radius: 2px; }
.hp-art-track.v span { background: #4a86e8; }
.hp-art-track.v span:nth-child(2) { opacity: 0.75; }
.hp-art-track.v span:nth-child(3) { opacity: 0.55; }
.hp-art-track.a span { background: #3fae6a; opacity: 0.65; }
.hp-art-head { position: absolute; top: 10px; bottom: 10px; left: 58%; width: 2px; background: var(--hp-red); }
.hp-art-head::before { content: ''; position: absolute; top: 0; left: -4px; width: 10px; height: 6px; border-radius: 1px; background: var(--hp-red); }
.hp-art-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 11px; }
.hp-art-gallery span { border-radius: 4px; background: var(--surface); }
.hp-art-gallery span.on { background: var(--hover-border); }
.hp-h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.hp-home-sec { margin-top: 28px; }
.hp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp-cards .hp-note { display: flex; flex-direction: column; margin: 0; font-size: 14px; }
.hp-cards .hp-note a { margin-top: auto; padding-top: 4px; font-size: 12.5px; color: var(--text-dim); text-decoration: none; }
.hp-cards .hp-note a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.hp-home-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.hp-home-cols > div { display: flex; flex-direction: column; min-width: 0; }
.hp-home-cols .hp-tlist, .hp-home-cols .hp-links { flex: 1; }
.hp-colhead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.hp-news { align-items: baseline; }
.hp-news .hp-trow-title small { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-dim); }
.hp-colmeta { font-size: 12px; font-weight: 600; color: var(--text-dim); text-decoration: none; }
.hp-colmeta:hover { color: var(--text); }
.hp-links { display: flex; flex-direction: column; }
.hp-links a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.hp-links a:last-child { border-bottom: 0; }
.hp-links a span:last-child { color: var(--text-dim); transition: transform 0.15s; }
.hp-links a:hover span:last-child { transform: translateX(3px); color: var(--text); }

/* tutorial rows (home, section pages, tutorials list) */
.hp-tlist { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.hp-trow { display: flex; align-items: center; gap: 12px; padding: 11px 14px; color: var(--text); text-decoration: none; font-size: 13.5px; }
.hp-trow + .hp-trow { border-top: 1px solid var(--border); }
.hp-trow:hover { background: var(--subtle-bg); }
.hp-trow.is-current { background: var(--subtle-bg); }
.hp-trow-title { flex: 1; font-weight: 600; min-width: 0; }
.hp-trow.is-done .hp-trow-title { color: var(--text-dim); text-decoration: line-through; text-decoration-color: var(--hover-border); }
.hp-trow-meta { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.hp-pill-btn { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 6px; background: var(--text); color: var(--surface); }
.hp-dot { width: 22px; height: 22px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; border: 1.5px solid var(--hover-border); color: var(--text-dim); }
.hp-dot.is-current { border-color: var(--text); color: var(--text); }
.hp-dot.is-done { border-color: var(--text); background: var(--text); color: var(--surface); }

/* ---------- docs layout ---------- */
.hp-doc { display: grid; grid-template-columns: 264px minmax(0, 1fr) 208px; gap: 28px; align-items: start; padding-top: 28px; }
.hp-side { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.hp-home-link { font-size: 12.5px; font-weight: 600; color: var(--text-dim); text-decoration: none; }
.hp-home-link:hover { color: var(--text); }
.hp-secpick select { width: 100%; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hp-tree { margin-top: 14px; }
.hp-navgroup { margin-bottom: 16px; }
.hp-navhead { margin: 0 0 4px; padding-left: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
/* one line down the side, with the page you're on marked on it */
.hp-navlink { display: block; margin-left: 2px; padding: 5px 10px 5px 12px; border-left: 2px solid var(--border); color: var(--text-dim); text-decoration: none; font-size: 13px; font-weight: 500; line-height: 1.4; }
.hp-navlink:hover { color: var(--text); border-left-color: var(--hover-border); }
.hp-navlink.is-active { color: var(--text); font-weight: 600; border-left-color: var(--text); }
.hp-navlink.is-done::after { content: ' \2713'; color: var(--text-dim); font-weight: 700; }
.hp-menu-btn { display: none; }
.hp-main { min-width: 0; }
.hp-crumbs { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.hp-crumbs a { color: inherit; text-decoration: none; }
.hp-crumbs a:hover { color: var(--text); }
.hp-crumbs span { opacity: 0.5; margin: 0 3px; }
.hp-main h1 { font-size: 30px; margin-top: 6px; }
.hp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.hp-chip { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--subtle-bg); }
.hp-updated { font-size: 12px; color: var(--text-dim); }
.hp-chip + .hp-updated { padding-left: 4px; }
.hp-rail { position: sticky; top: 76px; font-size: 12.5px; padding-top: 4px; }
.hp-rail .hp-eyebrow { margin-bottom: 8px; }
.hp-toc { display: flex; flex-direction: column; margin-bottom: 26px; }
.hp-toc a { padding: 4px 0 4px 10px; border-left: 2px solid var(--border); color: var(--text-dim); text-decoration: none; line-height: 1.4; }
.hp-toc a:hover { color: var(--text); }
.hp-toc a.is-active { border-left-color: var(--text); color: var(--text); font-weight: 600; }
.hp-related { display: flex; flex-direction: column; gap: 7px; }
.hp-related a { color: var(--text-dim); text-decoration: none; line-height: 1.4; }
.hp-related a:hover { color: var(--text); }
.hp-related a.is-tutorial { color: var(--text); font-weight: 700; }
.hp-related a.is-tutorial::after { content: ' \2192'; }
.hp-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); }
.hp-pn { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; }
.hp-pn:hover { border-color: var(--hover-border); }
.hp-pn span { font-size: 11.5px; font-weight: 600; color: var(--text-dim); }
.hp-pn.is-next { text-align: right; grid-column: 2; }

/* ---------- the article ---------- */
.hp-body { font-size: 15px; line-height: 1.7; }
.hp-body > :first-child { margin-top: 18px; }
.hp-body h2 { margin: 40px 0 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; scroll-margin-top: 80px; }
.hp-body h3 { margin: 26px 0 6px; font-size: 16px; font-weight: 700; scroll-margin-top: 80px; }
.hp-body p { margin: 10px 0; }
.hp-body ul, .hp-body ol { margin: 10px 0; padding-left: 22px; }
.hp-body li { margin: 4px 0; }
.hp-body li::marker { color: var(--text-dim); }
.hp-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--hover-border); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.hp-body a:hover { text-decoration-color: var(--text); }
.hp-body strong { font-weight: 700; }
.hp-body code { font-family: Consolas, 'SFMono-Regular', monospace; font-size: 0.86em; padding: 1px 5px; border-radius: 4px; background: var(--subtle-bg); }
.hp-body kbd { font-size: 11.5px; }
.hp-steps ol { list-style: none; counter-reset: hp-step; padding: 0; margin: 14px 0; }
.hp-steps ol > li { counter-increment: hp-step; position: relative; padding: 0 0 18px 38px; margin: 0; }
.hp-steps ol > li::before { content: counter(hp-step); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: var(--surface); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hp-steps ol > li::after { content: ''; position: absolute; left: 11px; top: 30px; bottom: 4px; width: 2px; background: var(--border); }
.hp-steps ol > li:last-child { padding-bottom: 4px; }
.hp-steps ol > li:last-child::after { display: none; }
/* the callouts: a colour and an icon each (mask: the icon takes the text's colour) */
.hp-note { position: relative; margin: 20px 0; padding: 13px 16px 13px 46px; border: 1px solid; border-radius: 10px; font-size: 14.5px; line-height: 1.6; }
.hp-note::before { content: ''; position: absolute; left: 16px; top: 15px; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--hp-icon) center / contain no-repeat; mask: var(--hp-icon) center / contain no-repeat; }
.hp-note-title { display: block; font-weight: 600; margin-bottom: 1px; }
.hp-note p { margin: 3px 0; }
.hp-note ul, .hp-note ol { margin: 4px 0; }
.hp-note :is(p, li) { color: var(--text); }
.hp-note.is-important { color: var(--hp-key); background: var(--hp-key-bg); border-color: var(--hp-key-line); --hp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7.5'/%3E%3Cpath d='M6.5 10.2l2.4 2.4 4.6-5'/%3E%3C/svg%3E"); }
.hp-note.is-tip { color: var(--hp-tip); background: var(--hp-tip-bg); border-color: var(--hp-tip-line); --hp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 2.5a5 5 0 0 0-3 9c.6.5 1 1.1 1 1.8V14h4v-.7c0-.7.4-1.3 1-1.8a5 5 0 0 0-3-9zM8 17h4'/%3E%3C/svg%3E"); }
.hp-note.is-careful { color: var(--hp-bad); background: var(--hp-bad-bg); border-color: var(--hp-bad-line); --hp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3l8 14H2zM10 8.5v4M10 14.8v.2'/%3E%3C/svg%3E"); }
.hp-trouble { margin: 12px 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.hp-trouble p { margin: 0; padding: 12px 16px; font-size: 14px; }
.hp-trouble p + p { border-top: 1px solid var(--border); }
.hp-trouble strong { display: block; margin-bottom: 2px; }
.hp-see { margin: 12px 0; padding: 10px 14px; border-radius: 8px; border: 1px dashed var(--hover-border); font-size: 14px; }
.hp-see-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.hp-see p { margin: 2px 0; }
.hp-table { margin: 14px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.hp-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hp-table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); background: var(--subtle-bg); }
.hp-table th, .hp-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.hp-table tr:last-child td { border-bottom: 0; }

/* screenshots: framed, captioned, click to zoom */
.hp-figure { margin: 22px 0; }
/* one layer: the picture on the page. The shadow is a filter, so it follows the picture's own outline, see-through corners and all */
.hp-shot { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.hp-shot img, .hp-shot video { display: block; max-width: 100%; height: auto; border-radius: 10px; cursor: zoom-in; filter: drop-shadow(0 0 1px var(--hp-edge)) drop-shadow(0 6px 16px var(--hp-lift)); }
.hp-figure.is-narrow .hp-shot { max-width: min(360px, 100%); }
/* pause or play a clip: always the same dark round button, over any picture */
.hp-clip-btn { position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(16, 18, 22, 0.72); cursor: pointer; opacity: 0.85; transition: opacity 0.15s; }
.hp-clip-btn:hover, .hp-clip-btn:focus-visible { opacity: 1; }
.hp-clip-btn::before { content: ''; position: absolute; left: 11px; top: 9px; border-left: 11px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hp-clip-btn.is-playing::before { left: 10px; top: 9px; width: 10px; height: 12px; border: 0; background: linear-gradient(90deg, #fff 0 3.5px, transparent 3.5px 6.5px, #fff 6.5px); }
.hp-figure figcaption { margin-top: 8px; text-align: center; font-size: 12.5px; color: var(--text-dim); }
.hp-shot .hp-dark { display: none; }
html[data-theme='dark'] .hp-shot .hp-light { display: none; }
html[data-theme='dark'] .hp-shot .hp-dark { display: block; }
.hp-zoom { position: fixed; inset: 0; z-index: 60; background: var(--overlay-scrim); display: flex; align-items: center; justify-content: center; padding: 32px; cursor: zoom-out; }
.hp-zoom img, .hp-zoom video { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }

/* ---------- groups on a section's page ---------- */
/* a section's page: columns, so a long group and a short one leave no hole inside a card */
.hp-groups { columns: 2; column-gap: 16px; margin: 26px 0 10px; }
.hp-groupcard { break-inside: avoid; margin: 0 0 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.hp-gart { height: 86px; margin: 12px 12px 0; border-radius: 8px; background: var(--subtle-bg); }
.hp-gart svg { display: block; width: 100%; height: 100%; }
.hp-gart .s { fill: var(--surface); }
.hp-gart .o { fill: var(--hover-border); }
.hp-gart .b { fill: #4a86e8; }
.hp-gart .b.d { opacity: 0.75; }
.hp-gart .b.e { opacity: 0.55; }
.hp-gart .l { fill: #b9c8f0; }
.hp-gart .g { fill: #a8dcb9; }
.hp-gart .y { fill: #f5d77a; }
.hp-gart .r { fill: var(--hp-red); }
.hp-gart .k { fill: #1f1f21; }
.hp-gart .w { fill: #fff; }
.hp-gart .ol { stroke: var(--hover-border); stroke-width: 2; }
.hp-gart .rim { stroke: var(--subtle-bg); stroke-width: 3; }
.hp-gart .ln { fill: none; stroke: var(--hover-border); stroke-width: 2; }
.hp-gart .ar { stroke-linecap: round; stroke-linejoin: round; }
html[data-theme='dark'] .hp-gart .k { fill: #0a0b0d; }
.hp-groupbody { padding: 12px 16px 6px; }
.hp-grouphead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
html.look .hp-main .hp-grouphead h2 { margin: 0; padding: 0; border: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.hp-grouphead span { flex: none; font-size: 12px; color: var(--text-dim); }
.hp-groupline { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-dim); }
.hp-groupcard .hp-tile-list a { font-weight: 500; }
.hp-groupcard .hp-tile-list a:last-child { border-bottom: 0; }
.hp-main > h2 { margin: 36px 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }

/* ---------- tutorials ---------- */
.hp-tmeta { margin: 8px 0 0; font-size: 13.5px; color: var(--text-dim); }
.hp-segs { display: flex; gap: 4px; margin-top: 18px; }
.hp-segs span { flex: 1; height: 5px; border-radius: 3px; background: var(--subtle-bg); }
.hp-segs span.is-done { background: var(--text); }
.hp-segs span.is-current { background: var(--hover-border); }
.hp-segnote { margin: 6px 0 0; font-size: 12px; font-weight: 600; color: var(--text-dim); }
.hp-finished { margin: 18px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--subtle-bg); font-size: 14px; }
.hp-finished a { color: var(--text); font-weight: 700; }
.hp-tsteps { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hp-tstep { border: 1px solid transparent; border-radius: 12px; }
.hp-tstep.is-open { border-color: var(--text); background: var(--surface); }
.hp-tstep-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; background: none; border: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer; border-radius: 12px; }
.hp-tstep:not(.is-open) .hp-tstep-head:hover { background: var(--subtle-bg); }
.hp-tstep-title { font-size: 15px; font-weight: 700; }
.hp-tstep.is-done:not(.is-open) .hp-tstep-title { color: var(--text-dim); font-weight: 600; }
.hp-tstep-body { display: none; padding: 0 18px 16px 46px; }
.hp-tstep.is-open .hp-tstep-body { display: block; }
.hp-tstep-body > :first-child { margin-top: 0; }
.hp-tstep-actions { display: flex; gap: 8px; margin-top: 14px; }

/* ---------- search ---------- */
.hp-search-overlay { position: fixed; inset: 0; z-index: 50; background: var(--modal-scrim); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.hp-search-box { width: 100%; max-width: 620px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25); overflow: hidden; display: flex; flex-direction: column; max-height: 70vh; }
.hp-search-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.hp-search-field svg { width: 18px; height: 18px; fill: none; stroke: var(--text-dim); stroke-width: 1.8; flex: none; }
.hp-search-field input { flex: 1; height: 54px; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 16px; }
.hp-search-field input::-webkit-search-cancel-button { display: none; }
.hp-search-results { overflow: auto; padding: 6px; }
.hp-search-label { margin: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.hp-search-empty { margin: 18px 12px; color: var(--text-dim); font-size: 14px; }
.hp-hit { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.hp-hit.is-sel { background: var(--subtle-bg); }
.hp-hit-top { display: flex; align-items: baseline; gap: 10px; }
.hp-hit-title { flex: 1; font-size: 14px; font-weight: 700; }
.hp-hit-sec { font-size: 11.5px; font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.hp-hit-snip { font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.hp-hit-snip mark { background: rgba(229, 72, 77, 0.16); color: var(--text); border-radius: 2px; padding: 0 1px; }
.hp-search-foot { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-dim); }
.hp-search-foot kbd { margin-right: 2px; }

/* ---------- narrower screens ---------- */
@media (max-width: 1180px) {
  .hp-doc { grid-template-columns: 240px minmax(0, 1fr); }
  .hp-rail { display: none; }
}
@media (max-width: 1020px) {
  .hp-cards, .hp-home-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .hp-app { padding: 0 16px 48px; }
  html.look .hp-doc .hp-main { padding: 20px 16px 24px; }
  .hp-hero { flex-direction: column; align-items: stretch; padding: 28px 0 20px; }
  .hp-hero h1 { font-size: 27px; }
  .hp-searchbtn.is-hero { width: 100%; }
  .hp-tiles { grid-template-columns: minmax(0, 1fr); }
  .hp-groups { columns: 1; }
  .hp-doc { display: block; padding-top: 16px; }
  .hp-menu-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; margin-bottom: 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
  html.look .hp-doc .hp-side { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: 280px; max-height: none; align-self: stretch; padding: 18px 16px; background: var(--surface); border: 0; border-right: 1px solid var(--border); border-radius: 0; box-shadow: none; transform: translateX(-100%); transition: transform 0.2s; }
  html.look .hp-side-open .hp-doc .hp-side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.25); }
  .hp-main h1 { font-size: 26px; }
  .hp-note { padding-left: 42px; }
  .hp-note::before { left: 13px; }
  .hp-tstep-body { padding: 0 14px 14px; }
}
.header-actions .btn.ghost.is-current { background: var(--subtle-bg); }
/* a heading jumped to from "On this page" (or a link) flashes, so the eye finds it */
@keyframes hp-flash { 0% { background: rgba(229, 72, 77, 0.18); } 100% { background: transparent; } }
.hp-body h2.hp-flash, .hp-body h3.hp-flash { animation: hp-flash 1.4s ease-out; border-radius: 6px; box-shadow: -8px 0 0 transparent; }
