/*
 * Content Snare help centre: components.
 *
 * Styled by hc- class and by element inside .hc-prose, from tokens.css only. Markup for every selector
 * here is defined in CONTRACT.md. Values follow the designer's Figma ("Help centre redesign", Phase 1
 * and Phase 2 sections); the comments name the Figma component. Sections marked "undesigned" keep the
 * draft design until they are designed or rebuilt (the home body and the AI chat are drawn in Phase 2
 * and are being rebuilt; the 404 is undrawn).
 *
 * Breakpoints (literal, because custom properties cannot drive @media):
 *   phone   < 768px   ("Phones only (below 768)")
 *   header  < 1024px  (the header and footer take their phone layout, DEVIATIONS #132)
 *   rail   >= 1158px  (contents rail beside the article: the 1030 shell plus two 64px gutters)
 */

/* =========================================================================
   Base
   ========================================================================= */

.hc-body {
  margin: 0;
  background: var(--hc-color-ground);
  color: var(--hc-color-text);
  font-family: var(--hc-font-body);
  font-size: var(--hc-fs-ui);
  line-height: var(--hc-lh-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.hc-body--home { background: var(--hc-color-ground-home); }
.hc-body *, .hc-body *::before, .hc-body *::after { box-sizing: border-box; }

.hc-body a { color: var(--hc-color-primary); text-decoration: none; }
.hc-body a:hover { color: var(--hc-color-primary-deep); text-decoration: underline; }
/* Every Focus variant in the design: a 3px #703DC1 ring outside the element, keeping its own shape.
   A contrast theme (forced colours) drops every box-shadow, so there the ring is an outline in the system's
   Highlight colour instead: see "Forced colours" at the end of this file (DEVIATIONS #218) */
.hc-body :focus-visible { outline: none; box-shadow: var(--hc-focus-ring); }

/* Keyboard focus and jumps stop clear of the sticky header: whatever the browser scrolls into view (Tab,
   Shift+Tab, the skip link, a contents jump) lands 16 under it, 90 from the top (85 below 1024, where the
   header is 69). Not while the focus is in the header itself, because Chrome would then scroll the page to
   "reveal" a control that's stuck to the top. The Home header doesn't stick (#133). The Answers page also
   keeps 16 clear of the pinned composer, whose height ask-page.js keeps in --hc-chat-bar-h (DEVIATIONS #217) */
html:not(:has(.hc-header--home, .hc-header :focus)) { scroll-padding-top: calc(var(--hc-header-height) + var(--hc-space-4)); }
@media (max-width: 1023px) {
  html:not(:has(.hc-header--home, .hc-header :focus)) { scroll-padding-top: calc(var(--hc-header-height-phone) + var(--hc-space-4)); }
}
html:has(.hc-body--chat):not(:has(.hc-chat__composer-wrap :focus)) { scroll-padding-bottom: calc(var(--hc-chat-bar-h, 136px) + var(--hc-space-4)); }
/* And 16 clear of the window's own edges, so a focused control and its 3px ring never sit flush against them:
   at the bottom on every page but the Answers page (its composer has the rule above), and at the top on Home,
   whose header doesn't stick, so there's no header to "reveal" (DEVIATIONS #230) */
html:not(:has(.hc-body--chat)) { scroll-padding-bottom: var(--hc-space-4); }
html:has(.hc-header--home) { scroll-padding-top: var(--hc-space-4); }

.hc-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hc-skip {
  position: absolute; left: var(--hc-space-4); top: -100px; z-index: 50;
  background: var(--hc-color-surface); padding: var(--hc-space-2) var(--hc-space-4);
  border-radius: var(--hc-radius-sm); box-shadow: var(--hc-shadow-raised);
}
.hc-skip:focus { top: var(--hc-space-2); }

/* Icons are Font Awesome glyphs sized by height, like the icon font they come from */
.hc-icon { display: inline-block; flex: 0 0 auto; height: 1em; width: auto; overflow: visible; vertical-align: -0.125em; }

/* Page wrappers */
.hc-main { display: block; padding: 0 var(--hc-gutter-wide) var(--hc-space-24); }
.hc-main--home { padding: 0; }
.hc-container { max-width: var(--hc-measure); margin: 0 auto; }
.hc-container--article { max-width: var(--hc-width-article); }
.hc-container--list { max-width: var(--hc-width-list); }
.hc-container--wide { max-width: var(--hc-width-wide); }

/* Label/Eyebrow: the small label ("In this article", "Related", "Who can do this", group labels).
   Uppercase is applied case by case, as the style's note says */
.hc-eyebrow {
  display: block;
  margin: 0;
  font-family: var(--hc-font-body);
  font-size: var(--hc-fs-small);
  font-weight: var(--hc-fw-regular);
  line-height: var(--hc-lh-eyebrow);
  letter-spacing: var(--hc-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--hc-color-muted);
}
.hc-eyebrow--accent { color: var(--hc-color-primary); font-weight: var(--hc-fw-semibold); }

/* =========================================================================
   Button. Primary (filled, pink arrow badge), Secondary (outline, hc-btn--ghost) and Text. Default 50
   tall, Small 40. Secondary and Text take an optional plain arrow, off by default (Phase 2 library)
   ========================================================================= */

.hc-btn {
  display: inline-flex; align-items: center;
  background: var(--hc-color-accent); color: var(--hc-color-primary-deep);
  padding: var(--hc-space-btn) var(--hc-space-btn) var(--hc-space-btn) var(--hc-space-5);
  border: 0; border-radius: var(--hc-radius-pill);
  font-family: var(--hc-font-body); font-weight: var(--hc-fw-regular);
  font-size: var(--hc-fs-small); line-height: var(--hc-lh-button);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: var(--hc-transition);
}
.hc-body a.hc-btn, .hc-body a.hc-btn:hover { color: var(--hc-color-primary-deep); text-decoration: none; }
.hc-btn__text { padding: 10px 10px 10px 0; transition: var(--hc-transition); }
.hc-btn__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: var(--hc-radius-pill);
  background: var(--hc-color-pink); color: var(--hc-color-on-dark);
  font-size: 16px;
  transition: var(--hc-transition);
}
/* Hover: the arrow turns to point back, as the drawn Hover does (Phase 1 3929:1889 and 3929:1904, arrow-left).
   The drawn Hover also adds 30 to the label's right padding, so the button grows 30 and shoves whatever sits
   beside it (the header link and search field, the contact block's text). The build keeps the width
   (DEVIATIONS #201) */
.hc-btn:hover .hc-btn__arrow { transform: rotate(180deg); }

.hc-btn--sm { padding: var(--hc-space-1) var(--hc-space-1) var(--hc-space-1) var(--hc-space-4); }
.hc-btn--sm .hc-btn__text { padding: 7px var(--hc-space-2) 7px 0; }
.hc-btn--sm .hc-btn__arrow { width: 32px; height: 32px; flex-basis: 32px; font-size: 13px; }

.hc-btn--ghost, .hc-btn--text { gap: var(--hc-space-2); background: transparent; }
/* The optional plain arrow on Secondary and Text: Regular arrow-right, 13, Text/Link */
.hc-btn__icon { font-size: 13px; color: var(--hc-color-primary); }

/* Secondary (outline): 1px Border/Default, padding 5/20 inside it round a 38 label, so 50 tall (Figma
   counts this stroke: 130 wide for "Start a chat"). Small isn't drawn: 40 tall, like Primary Small.
   Hover isn't drawn: Surface/Subtle, the design's "button hover" ground (DEVIATIONS #134) */
.hc-btn--ghost { border: 1px solid var(--hc-color-border); padding: var(--hc-space-btn) var(--hc-space-5); }
.hc-btn--ghost .hc-btn__text { padding: 10px 0; }
.hc-btn--ghost:hover { background: var(--hc-color-zebra); }
.hc-btn--ghost.hc-btn--sm { padding: calc(var(--hc-space-1) - 1px) calc(var(--hc-space-4) - 1px); }
.hc-btn--ghost.hc-btn--sm .hc-btn__text { padding: 7px 0; }

/* Text: no fill or border, padding 6/8, label in Text/Link. "Underline on hover." A text button does
   something; a text link goes somewhere and sits in a sentence */
.hc-btn--text { padding: var(--hc-space-1-5) var(--hc-space-2); }
.hc-btn--text .hc-btn__text { padding: 10px 0; text-underline-offset: 3px; }
.hc-body a.hc-btn--text, .hc-body a.hc-btn--text:hover { color: var(--hc-color-primary); }
.hc-btn--text:hover .hc-btn__text { text-decoration: underline; }
.hc-btn--text.hc-btn--sm { padding: var(--hc-space-1) var(--hc-space-2); }
.hc-btn--text.hc-btn--sm .hc-btn__text { padding: 7px 0; }

/* Disabled isn't drawn: faded to 40%, as the design fades a send button that can't be used, and still
   (DEVIATIONS #134). A link can't be disabled, so only a <button> takes this */
.hc-btn:disabled, .hc-btn[aria-disabled="true"] { opacity: 0.4; cursor: default; pointer-events: none; }

/* Touch targets: at least 44 × 44 where a control is drawn smaller, without changing what's drawn. A
   transparent ::after, centred on the control, takes the taps: Small buttons (40 tall), the 40 send circles
   of the Page search field and the chat composer, the home guide link (29 tall as a row), the brand (the
   phone mark is 29 × 28) and the Home header's "Back to Content Snare" (23 tall). Undrawn (DEVIATIONS #203,
   #211) */
.hc-btn--sm, .hc-search__submit, .hc-chat__send, .hc-guide, .hc-brand, .hc-header__link { position: relative; }
.hc-btn--sm::after, .hc-search__submit::after, .hc-chat__send::after, .hc-guide::after, .hc-header .hc-brand::after, .hc-header__link::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: max(100%, var(--hc-tap)); height: max(100%, var(--hc-tap));
  transform: translate(-50%, -50%);
}
/* Header-size search fields (drawn 41: the header's and the phone sheet's) and the feedback buttons (42.5) take
   taps over 44 tall the same way (DEVIATIONS #224). The field's strip sits behind its content (the header and
   the sheet's bar are stacking contexts), so a click on the text still puts the caret where it lands */
.hc-header .hc-search__field, .hc-search--sheet .hc-search__field, .hc-feedback__btn { position: relative; }
.hc-header .hc-search__field::after, .hc-search--sheet .hc-search__field::after, .hc-feedback__btn::after, .hc-feedback__option::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: max(100%, var(--hc-tap));
  transform: translateY(-50%);
}
.hc-header .hc-search__field::after, .hc-search--sheet .hc-search__field::after { z-index: -1; }
/* Breadcrumb links: 44 tall, never wider than drawn, so neighbouring crumbs can't overlap. The phone crumb is
   44 tall already (its min-height further down) */
.hc-crumbs__link { position: relative; }
.hc-crumbs__link::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: max(100%, var(--hc-tap));
  transform: translateY(-50%);
}

/* =========================================================================
   Header (Phase 2 "Header" 3940:1882), brand and the search field
   ========================================================================= */

/* Default: Left (brand) and Right (button) fill equally and the search sits between them, fixed at 440,
   in the exact centre. A grid does what Figma's two fills do: the 440 track is filled first, then the two
   1fr tracks share what's left, never less than the brand or the button. So below 1148 the search keeps
   to the brand's side, and below about 1064 it narrows (401 at 1024). Below 1024 the phone layout takes
   over (DEVIATIONS #132). 16/64 padding, 24 apart, a 1px rule under it: 74 tall */
.hc-header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr minmax(0, var(--hc-width-header-search)) 1fr;
  align-items: center; column-gap: var(--hc-space-6);
  padding: var(--hc-space-4) var(--hc-gutter-wide);
  background: var(--hc-color-surface);
  border-bottom: 1px solid var(--hc-color-border);
}
.hc-header > .hc-brand { justify-self: start; }
.hc-header > .hc-search { grid-column: 2; }
.hc-header > .hc-header__actions { grid-column: 3; justify-self: end; }
/* Home: no search (it's in the page). Brand, then "Back to Content Snare" 24 before the button, at the
   right edge. Not sticky: the page's own search is at the top (DEVIATIONS #133) */
.hc-header--home { position: static; display: flex; justify-content: space-between; gap: var(--hc-space-6); }
/* Home sits on the purple band (build review 11 Nov 2026, "Header" 3950:4230; DEVIATIONS #266): Surface/Brand and
   no rule (the rule takes the band's colour, so the header stays 74), the wordmark white, "Help centre" in
   Primary/200, "Back to Content Snare" white. The mark keeps its three colours, as the brand kit's reversed logo
   does. Focus rings in Button/Surface, as on the footer */
.hc-header--home { background: var(--hc-color-hero); border-bottom-color: var(--hc-color-hero); }
.hc-header--home .hc-brand__type { fill: var(--hc-color-hero-text); }
.hc-header--home .hc-brand__label { color: var(--hc-color-hero-hint); }
.hc-body .hc-header--home a.hc-header__link { color: var(--hc-color-hero-text); }
.hc-header--home :focus-visible { box-shadow: var(--hc-focus-ring-on-dark); }

.hc-brand { display: inline-flex; align-items: center; gap: var(--hc-space-3); flex-shrink: 0; }
.hc-body a.hc-brand:hover { text-decoration: none; }
.hc-brand__logo { display: block; height: 24px; width: auto; }
.hc-brand__type { fill: var(--hc-color-text); }
.hc-brand__mark { display: none; height: 28px; width: auto; }
/* "Help centre": Label/Eyebrow in sentence case, as Phase 2 draws it (Phase 1 drew "HELP") */
.hc-brand__label {
  font-size: var(--hc-fs-small); line-height: var(--hc-lh-eyebrow);
  letter-spacing: var(--hc-tracking-eyebrow); color: var(--hc-color-muted); white-space: nowrap;
}

.hc-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--hc-space-6); }
.hc-body a.hc-header__link { color: var(--hc-color-text); font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); white-space: nowrap; }
/* "Start a chat (icon button, 44)", labelled "Talk to a human" (James, 2026-10-29): the phone header's
   button. White, 1px Border/Default, radius 9, the Regular comment glyph 18 in Text/Primary */
.hc-header__talk {
  display: none; align-items: center; justify-content: center;
  width: var(--hc-tap); height: var(--hc-tap); flex: 0 0 var(--hc-tap);
  background: var(--hc-color-surface); color: var(--hc-color-text);
  border: 1px solid var(--hc-color-border); border-radius: var(--hc-radius-field);
  font-size: 18px;
}
.hc-body a.hc-header__talk, .hc-body a.hc-header__talk:hover { color: var(--hc-color-text); text-decoration: none; }
.hc-body a.hc-header__talk:hover { background: var(--hc-color-zebra); }

/* Search field ("Search field" 3940:1828): one component, three sizes.
   Header (no modifier): 41 tall, radius 9, padding 8/12, glass 16, Body/Small, no send button.
   Page (hc-search--page): the homepage, the 404 and the empty search page. 58 tall, radius 12,
   padding 8/8/8/20, glass 18, Body/Default, and a 40 send button.
   Chat: the composer, the Page size with "Ask another question"; built with the chat page.
   Focus, every size: the 3px ring outside, and the 1px border drops out (transparent over the white
   ground), which is the drawn "padding + 1": nothing moves */
.hc-search { position: relative; min-width: 0; margin: 0; }
.hc-search__field {
  display: flex; align-items: center; gap: var(--hc-space-2);
  min-height: 41px;
  background: var(--hc-color-surface);
  border: 1px solid var(--hc-color-border);
  border-radius: var(--hc-radius-field);
  padding: var(--hc-space-2) var(--hc-space-3);
}
/* The whole field takes the click: hc.js puts the focus in the text from its padding and glass too */
.hc-js .hc-search__field, .hc-js .hc-chat__field { cursor: text; }
.hc-search__field:focus-within { border-color: transparent; box-shadow: var(--hc-focus-ring); }
/* The ring is the text's: with the focus on the send button only the button rings (DEVIATIONS #207) */
.hc-search__field:focus-within:not(:has(.hc-search__input:focus)) { border-color: var(--hc-color-border); box-shadow: none; }
.hc-search__icon { font-size: 16px; color: var(--hc-color-muted); }
.hc-search__input {
  flex: 1 1 auto; min-width: 0;
  border: 0; outline: 0; background: transparent; padding: 0;
  font-family: var(--hc-font-body); font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-text);
}
.hc-body .hc-search__input:focus-visible, .hc-body .hc-chat__input:focus-visible { box-shadow: none; }
.hc-search__input::placeholder { color: var(--hc-color-muted); opacity: 1; }
.hc-search__input::-webkit-search-cancel-button { display: none; }
/* Send: a 40 circle in Button/Label with a white Regular arrow 16. hc.js disables it while the field is empty.
   It used to fade to 40% then, with the arrow in Text/Tertiary (James, 2026-10-29), which was 2.5:1. Since the
   build review (11 Nov 2026, "Send (empty, solid)" 3950:4244) it stays solid with the white arrow, 13.9:1, and
   only the pointer changes (DEVIATIONS #267) */
.hc-search__submit {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 40px; padding: 0;
  border: 0; border-radius: var(--hc-radius-pill);
  background: var(--hc-color-primary-deep); color: var(--hc-color-on-dark); cursor: pointer;
  font-size: 16px;
}
.hc-search__submit:disabled { cursor: default; }

.hc-search--page { width: 100%; max-width: var(--hc-measure); margin: 0 auto; }
.hc-search--page .hc-search__field { gap: var(--hc-space-3); min-height: 58px; padding: var(--hc-space-2) var(--hc-space-2) var(--hc-space-2) var(--hc-space-5); border-radius: var(--hc-radius-lg); }
.hc-search--page .hc-search__icon { font-size: 18px; }
.hc-search--page .hc-search__input { font-size: var(--hc-fs-body); line-height: var(--hc-lh-body); }
.hc-search--page .hc-search__submit { display: inline-flex; }

/* The drop-down under the field and the phone search sheet: "Phase 2: search drop-down and phone sheet"
   further down */

/* =========================================================================
   Breadcrumbs. One line: only the current page truncates, links never do
   ========================================================================= */

/* "Breadcrumbs row": 16 above a 30-tall row of crumbs */
.hc-crumbs { display: flex; align-items: center; padding-top: var(--hc-space-4); font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }
.hc-crumbs__list { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--hc-space-2); min-width: 0; min-height: 30px; margin: 0; padding: 0; list-style: none; }
.hc-crumbs__item { display: inline-flex; align-items: center; gap: var(--hc-space-2); flex: 0 0 auto; white-space: nowrap; }
.hc-crumbs__item:last-child { flex: 0 1 auto; min-width: 0; }
.hc-crumbs__item + .hc-crumbs__item::before { content: "/"; color: var(--hc-color-muted); }
.hc-body a.hc-crumbs__link { color: var(--hc-color-muted); }
.hc-crumbs__current { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--hc-color-text); }

/* =========================================================================
   Article page. Rail 250, gap 80, article 700, in the centred 1030 shell
   ========================================================================= */

.hc-article__layout {
  display: grid;
  grid-template-columns: var(--hc-rail) minmax(0, var(--hc-measure));
  grid-template-areas: "rail header" "rail body" "rail footer";
  column-gap: var(--hc-rail-gap);
  align-items: start;
  padding-top: var(--hc-space-2);
}
.hc-article__header { grid-area: header; padding-top: var(--hc-space-6); }
.hc-article__body { grid-area: body; padding-top: var(--hc-space-12); }
.hc-article__footer { grid-area: footer; padding-top: var(--hc-space-12); }

.hc-article__title {
  margin: 0 0 var(--hc-space-4);
  font-family: var(--hc-font-heading); font-weight: var(--hc-fw-heading);
  font-size: var(--hc-fs-h1); line-height: var(--hc-lh-h1);
  color: var(--hc-color-text);
}

/* Summary, Style=Panel: the quick answer */
.hc-summary {
  display: flex; flex-direction: column; gap: var(--hc-space-4);
  margin: 0 0 var(--hc-space-6);
  padding: 40px var(--hc-space-6);
  background: var(--hc-color-primary-100);
  border: 1px solid var(--hc-color-primary-200);
  border-radius: var(--hc-radius-xl);
  box-shadow: var(--hc-shadow-raised);
}
.hc-summary__title { margin: 0; font-family: var(--hc-font-body); font-size: var(--hc-fs-body); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-body); color: var(--hc-color-primary); }
.hc-summary__text { margin: 0; font-size: var(--hc-fs-body); line-height: var(--hc-lh-body); color: var(--hc-color-text); }
.hc-summary__steps { display: flex; flex-direction: column; gap: var(--hc-space-3); margin: 0; padding: 0; list-style: none; }
.hc-summary__steps > li { display: flex; gap: var(--hc-space-2); font-size: var(--hc-fs-body); line-height: var(--hc-lh-body); }
.hc-summary__steps > li::before { content: counter(list-item) "."; flex: 0 0 24px; font-weight: var(--hc-fw-semibold); color: var(--hc-color-primary); }
.hc-summary__feedback {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--hc-space-3);
  padding-top: var(--hc-space-4); border-top: 1px solid var(--hc-color-primary-200);
}
.hc-summary__question, .hc-summary__thanks { margin: 0; font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }
.hc-summary__thanks { display: none; }
.hc-summary__feedback[data-state="done"] .hc-summary__question,
.hc-summary__feedback[data-state="done"] .hc-feedback__buttons { display: none; }
.hc-summary__feedback[data-state="done"] .hc-summary__thanks { display: block; }

/* Who can do this */
.hc-who {
  display: flex; flex-direction: column; gap: var(--hc-space-1);
  margin: 0 0 var(--hc-space-4); padding: var(--hc-space-4);
  background: var(--hc-color-surface);
  border: 1px solid var(--hc-color-border);
  border-radius: var(--hc-radius-md);
}
.hc-who__text { margin: 0; font-size: var(--hc-fs-small); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-small); color: var(--hc-color-text); }

/* Last updated: absolute date, then the dot and read time as one unit, so a wrap takes the dot with it.
   Parts 12 apart, rows 0 apart ("wrap gap 0"), and a rule 24 below on desktop */
.hc-article__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--hc-space-3);
  margin: 0; padding-bottom: var(--hc-space-6);
  border-bottom: 1px solid var(--hc-color-border);
  font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted);
}
.hc-article__reading { display: inline-flex; align-items: center; gap: var(--hc-space-3); }
.hc-article__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--hc-color-muted); }
/* When the two don't fit one line, hc.js stacks them: the reading time on its own line, without the dot, so no
   line starts with one (DEVIATIONS #221) */
.hc-article__meta--stacked .hc-article__reading { flex-basis: 100%; }
.hc-article__meta--stacked .hc-article__dot { display: none; }

/* TOC: "Contents rail 250 (sticky, top 90)". Scrolls inside itself when taller than the screen. A scroll box
   clips what's outside it, so it gets 3px of room on the sides for the items' 3px focus ring, and the negative
   margin keeps the items exactly where they were. Its foot is the window's bottom edge, so it gets the page's
   16 there (Base, DEVIATIONS #230): the last item can scroll clear of it. The rail draws nothing of its own,
   so the extra room shows only as scroll */
.hc-toc {
  grid-area: rail;
  position: sticky; top: var(--hc-rail-top);
  margin-inline: -3px;
  padding: var(--hc-space-8) 3px var(--hc-space-4);
  max-height: calc(100vh - var(--hc-rail-top));
  overflow-y: auto;
  /* Mid-list, Tab scrolls the rail and parks the item against its edge, cutting the ring: stop 8 short of the
     top and 16 short of the bottom (DEVIATIONS #229) */
  scroll-padding-block: var(--hc-space-2) var(--hc-space-4);
}
/* On the rail the toggle is the plain "In this article" eyebrow: no clicks here, and hc.js takes it out of the
   Tab order and the accessibility tree (the nav is named by its title). Its own line box is the eyebrow's 21 */
.hc-toc__toggle {
  display: block; width: 100%;
  margin: 0 0 var(--hc-space-4); padding: 0;
  border: 0; background: none; text-align: left;
  font-family: var(--hc-font-body); font-size: var(--hc-fs-small); line-height: var(--hc-lh-eyebrow); color: inherit;
  pointer-events: none;
}
.hc-toc__title {
  font-size: var(--hc-fs-small); line-height: var(--hc-lh-eyebrow); letter-spacing: var(--hc-tracking-eyebrow);
  text-transform: uppercase; color: var(--hc-color-muted);
}
.hc-toc__count, .hc-toc__chevron { display: none; }
.hc-toc__list { margin: 0; padding: 0; list-style: none; }
/* The TOC Item's left stroke isn't in its layout, so its 16 (32 for a child) is measured from the edge: CSS
   counts the 1px border inside the padding, so the padding is 1 less */
.hc-toc__link {
  display: block;
  padding: var(--hc-space-2) var(--hc-space-4) var(--hc-space-2) calc(var(--hc-space-4) - 1px);
  border-left: 1px solid var(--hc-color-border);
  font-size: var(--hc-fs-small); line-height: var(--hc-lh-small);
}
.hc-body a.hc-toc__link { color: var(--hc-color-muted); }
.hc-body a.hc-toc__link:hover { color: var(--hc-color-primary-deep); text-decoration: underline; }
.hc-body a.hc-toc__link[aria-current="true"] { color: var(--hc-color-text); font-weight: var(--hc-fw-semibold); border-left-color: var(--hc-color-text); text-decoration: none; }
/* A child item: 32 in from the edge and 32 on the right, as TOC Item Level=child draws (3929:969), so its
   text box is 186 */
.hc-toc__item--sub .hc-toc__link { padding-left: calc(var(--hc-space-8) - 1px); padding-right: var(--hc-space-8); }

/* Feedback: Yes goes to Thanks; No opens the reason step, then Thanks */
.hc-feedback {
  margin: 0; padding: var(--hc-space-6);
  background: var(--hc-color-surface);
  border: 1px solid var(--hc-color-border);
  border-radius: var(--hc-radius-lg);
}
/* The question and the buttons sit in a row and wrap, 16 apart, when the question doesn't fit */
.hc-feedback__ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--hc-space-4) var(--hc-space-5); }
.hc-feedback__question { margin: 0; font-family: var(--hc-font-body); font-size: var(--hc-fs-body); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-body); color: var(--hc-color-text); }
.hc-feedback__buttons { display: flex; flex: 0 0 auto; gap: var(--hc-space-2); }
.hc-feedback__btn, .hc-feedback__option {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--hc-space-2);
  margin: 0; padding: 9px var(--hc-space-4);
  border: 1px solid var(--hc-color-border); border-radius: var(--hc-radius-sm);
  background: var(--hc-color-surface); color: var(--hc-color-text);
  font-family: var(--hc-font-body); font-size: var(--hc-fs-small); line-height: var(--hc-lh-small);
  cursor: pointer; transition: var(--hc-transition);
}
.hc-feedback__btn:hover, .hc-feedback__option:hover { background: var(--hc-color-zebra); }
.hc-feedback__btn[aria-pressed="true"], .hc-feedback__option:has(input:checked) { background: var(--hc-color-primary-100); border-color: var(--hc-color-primary-200); }
.hc-feedback__btn[aria-pressed="true"] .hc-feedback__icon { color: var(--hc-color-primary); }
.hc-feedback__option:has(input:focus-visible) { box-shadow: var(--hc-focus-ring); }
/* The reasons are radios drawn as toggle buttons: the radio itself is hidden but still takes focus */
.hc-feedback__option { position: relative; }
.hc-feedback__radio { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.hc-feedback__icon { font-size: 16px; }
.hc-feedback__reason { display: none; flex-direction: column; gap: var(--hc-space-4); margin: 0; }
.hc-feedback__legend { margin: 0; font-size: var(--hc-fs-body); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-body); color: var(--hc-color-text); }
.hc-feedback__legend:focus { outline: none; box-shadow: none; }
.hc-feedback__options { display: flex; flex-wrap: wrap; gap: var(--hc-space-2); }
.hc-feedback__text {
  display: block; width: 100%; min-height: 88px; margin: 0;
  padding: var(--hc-space-3) var(--hc-space-4);
  border: 1px solid var(--hc-color-border); border-radius: var(--hc-radius-sm);
  background: var(--hc-color-surface);
  font-family: var(--hc-font-body); font-size: var(--hc-fs-body); line-height: var(--hc-lh-body); color: var(--hc-color-text);
  resize: vertical;
}
.hc-feedback__text::placeholder { color: var(--hc-color-muted); opacity: 1; }
.hc-feedback__text:focus { outline: none; border-color: var(--hc-color-primary); box-shadow: var(--hc-focus-ring); }
.hc-feedback__reason .hc-btn { align-self: flex-start; }
/* Cloudflare Turnstile, before Send. It takes no room, gap included, unless Cloudflare wants a click
   (hc.js adds --shown then) (DEVIATIONS #242) */
.hc-feedback__check { margin-bottom: calc(-1 * var(--hc-space-4)); }
.hc-feedback__check--shown { margin-bottom: 0; }
.hc-feedback__thanks { display: none; align-items: center; gap: var(--hc-space-3); margin: 0; font-size: var(--hc-fs-body); line-height: var(--hc-lh-body); color: var(--hc-color-text); }
.hc-feedback__thanks .hc-icon { font-size: 20px; color: var(--hc-color-primary); }
/* Focus lands on the thanks line so it's read out; it isn't a control, so no ring */
.hc-feedback__thanks:focus { outline: none; box-shadow: none; }
.hc-feedback[data-state="reason"] .hc-feedback__ask { display: none; }
.hc-feedback[data-state="reason"] .hc-feedback__reason { display: flex; }
.hc-feedback[data-state="done"] .hc-feedback__ask,
.hc-feedback[data-state="done"] .hc-feedback__reason { display: none; }
.hc-feedback[data-state="done"] .hc-feedback__thanks { display: flex; }

/* Next step: a Getting started article's last block before the feedback, 24 above it (build review 11 Nov 2026,
   "Next step block" 3950:4064 and 4085; DEVIATIONS #271). Surface/Tint, 1px Border/Brand, radius 12, padding 24.
   The text column: the eyebrow (Label/Eyebrow in Text/Link), "Next: <step>" (Body/Default Semibold in Text/Link)
   with the Regular arrow 16, 8 apart, then the step's line (Body/Small Secondary), 4 apart. "All six steps"
   (Body/Small Link, underlined) 16 to the right, or under the text when the row is too narrow (undrawn: phones).
   The last step: the eyebrow, "You've finished Getting started", then the link home */
.hc-next {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--hc-space-4);
  margin: 0 0 var(--hc-space-6); padding: var(--hc-space-6);
  background: var(--hc-color-primary-100);
  border: 1px solid var(--hc-color-primary-200);
  border-radius: var(--hc-radius-lg);
}
.hc-next__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--hc-space-1); flex: 1 1 320px; min-width: 0; }
.hc-next__eyebrow { color: var(--hc-color-primary); }
.hc-next__link { display: inline-flex; align-items: center; gap: var(--hc-space-2); font-size: var(--hc-fs-body); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-body); }
.hc-body a.hc-next__link, .hc-body a.hc-next__link:hover { color: var(--hc-color-primary); text-decoration: none; }
.hc-body a.hc-next__link:hover .hc-next__label { text-decoration: underline; }
.hc-next__icon { font-size: 16px; }
.hc-next__line { margin: 0; font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }
.hc-body a.hc-next__all { flex: 0 0 auto; font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-primary); text-decoration: underline; text-underline-offset: 3px; }
.hc-body a.hc-next__all:hover { color: var(--hc-color-primary-deep); }

/* Contact support: a row on desktop and tablet, stacked on a phone. Phase 2's library revision: the
   actions are the filled button plus an "Email support" Text button, 8 apart, whenever the title is
   "Still stuck?" (every page today). The button keeps "Talk to a human" (James, 2026-10-29) */
/* The row wraps when the text would get under 280 beside the two actions (a 640 box at 768 leaves it 247):
   the actions drop under the text, left-aligned, 16 below, as stacked (DEVIATIONS #202) */
.hc-contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--hc-space-4) var(--hc-space-5);
  margin: var(--hc-space-4) 0 0; padding: var(--hc-space-6);
  background: var(--hc-color-primary-100);
  border: 1px solid var(--hc-color-primary-200);
  border-radius: var(--hc-radius-lg);
}
.hc-contact__text { flex: 1 1 280px; min-width: 0; }
.hc-contact__title { margin: 0 0 var(--hc-space-1); font-size: var(--hc-fs-body); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-body); color: var(--hc-color-text); }
/* No lone last word when the line wraps beside the button (DEVIATIONS #123) */
.hc-contact__sub { margin: 0; font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); text-wrap: pretty; }
.hc-contact__actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: var(--hc-space-2); }

/* Related articles */
.hc-related { margin: var(--hc-space-12) 0 0; padding-top: var(--hc-space-6); border-top: 1px solid var(--hc-color-border); }
.hc-related__title { margin: 0 0 var(--hc-space-3); font-family: var(--hc-font-body); font-size: var(--hc-fs-small); font-weight: var(--hc-fw-regular); line-height: var(--hc-lh-eyebrow); letter-spacing: var(--hc-tracking-eyebrow); text-transform: uppercase; color: var(--hc-color-muted); }
.hc-related__list { display: flex; flex-direction: column; gap: var(--hc-space-2); margin: 0; padding: 0; list-style: none; }
.hc-related__link { font-size: var(--hc-fs-body); line-height: var(--hc-lh-body); }

/* =========================================================================
   Prose: the article body. Markdown and Gutenberg both produce plain elements here
   ========================================================================= */

.hc-prose { font-size: var(--hc-fs-body); line-height: var(--hc-lh-body); color: var(--hc-color-text); overflow-wrap: break-word; }
.hc-prose > :first-child { margin-top: 0; }
.hc-prose > :last-child { margin-bottom: 0; }
.hc-prose p { margin: 0 0 var(--hc-space-5); }
.hc-prose strong, .hc-prose b { font-weight: var(--hc-fw-semibold); color: var(--hc-color-text); }
.hc-prose a { text-decoration: underline; text-decoration-color: var(--hc-color-primary-200); text-underline-offset: 3px; }
.hc-prose a:hover { text-decoration-color: currentColor; }

/* 48 before an H2 and 16 after; 32 before an H3 and 8 after. A contents jump lands 16 under the sticky
   header through the page's scroll-padding (Base, DEVIATIONS #217) */
.hc-prose h2 {
  margin: var(--hc-space-12) 0 var(--hc-space-4);
  font-family: var(--hc-font-heading); font-weight: var(--hc-fw-heading);
  font-size: var(--hc-fs-h2); line-height: var(--hc-lh-h2); color: var(--hc-color-text);
}
.hc-prose h3 {
  margin: var(--hc-space-8) 0 var(--hc-space-2);
  font-family: var(--hc-font-body); font-weight: var(--hc-fw-semibold);
  font-size: var(--hc-fs-h3); line-height: var(--hc-lh-h3); color: var(--hc-color-text);
}
.hc-prose h4 { margin: var(--hc-space-6) 0 var(--hc-space-2); font-size: var(--hc-fs-body); font-weight: var(--hc-fw-semibold); }
/* A heading keeps its own gap below it whatever follows: a callout, table or screenshot straight after a
   heading sits 16 (h2) or 8 (h3) below it, like text, rather than 24. Undrawn (DEVIATIONS #124) */
.hc-prose :is(h2, h3) + :not(h2, h3, h4) { margin-top: 0; }

/* Bullet item: pink dot with a halo, at x 4, centred on the first line. Items 8 apart */
.hc-prose ul { margin: 0 0 var(--hc-space-5); padding: 0; list-style: none; }
.hc-prose ul > li { position: relative; padding-left: 26px; }
.hc-prose ul > li + li { margin-top: var(--hc-space-2); }
.hc-prose ul > li::before {
  content: ""; position: absolute; left: 4px;
  top: calc((var(--hc-lh-body) * 1em - 6px) / 2);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hc-color-bullet); box-shadow: 0 0 0 3px var(--hc-color-bullet-halo);
}

/* Step Item: every ordered list. Since the build review (11 Nov 2026, "Article / Numbered steps" 3950:4041;
   DEVIATIONS #268): 32px Text/Link SemiBold numerals (36 line) in a 48 box, 16 gap, a rule between steps. The
   text is 20 below the rule. The numeral's top is level with the top of the step's first line, not centred on it
   as drawn, so it doesn't stand above the text when a step wraps (James, 2026-11-12). At least 76 tall, the drawn
   height of a one-line step. It was 52px Primary/200 Black in a 72 box, 1.37:1. counter(list-item) honours start= */
.hc-prose ol { margin: 0 0 var(--hc-space-6); padding: 0; list-style: none; }
.hc-prose ol > li {
  position: relative;
  min-height: calc(var(--hc-lh-step-numeral) + 2 * var(--hc-space-5));
  padding: var(--hc-space-5) 0 var(--hc-space-5) calc(48px + var(--hc-space-4));
}
.hc-prose ol > li + li { border-top: 1px solid var(--hc-color-border); }
.hc-prose ol > li::before {
  content: counter(list-item, decimal-leading-zero);
  position: absolute; left: 0;
  top: calc(var(--hc-space-5) + (var(--hc-lh-body) * var(--hc-fs-body) - var(--hc-lh-step-numeral)) / 2 + var(--hc-cap-above-middle) * (var(--hc-fs-step-numeral) - var(--hc-fs-body)));
  width: 48px;
  font-family: var(--hc-font-numeral); font-size: var(--hc-fs-step-numeral); font-weight: var(--hc-fw-semibold);
  line-height: var(--hc-lh-step-numeral); letter-spacing: var(--hc-tracking-numeral);
  color: var(--hc-color-primary);
}
.hc-prose li > p { margin: 0 0 var(--hc-space-2); }
.hc-prose li > p:last-child { margin-bottom: 0; }
.hc-prose li > ul, .hc-prose li > ol { margin: var(--hc-space-2) 0 0; }
.hc-prose li > :last-child { margin-bottom: 0; }

/* A list inside a step: nested ordered lists count a), b); nested bullets stay bullets. Undesigned */
.hc-prose li ol > li { min-height: 0; padding: 0 0 0 26px; border: 0; }
.hc-prose li ol > li + li { margin-top: var(--hc-space-2); border: 0; }
.hc-prose li ol > li::before {
  content: counter(list-item, lower-alpha) ")";
  top: 0; width: auto;
  font-family: var(--hc-font-body); font-size: var(--hc-fs-body); font-weight: var(--hc-fw-semibold);
  line-height: inherit; letter-spacing: 0;
  color: var(--hc-color-primary);
}

/* Blockquote: 3px rule, quote in Body/Quote, attribution 16 below */
/* The 3px rule sits inside the 24 padding in Figma (its stroke isn't counted in the layout) */
.hc-prose blockquote {
  margin: var(--hc-space-6) 0; padding: var(--hc-space-2) var(--hc-space-6) var(--hc-space-2) calc(var(--hc-space-6) - 3px);
  border-left: 3px solid var(--hc-color-primary);
}
.hc-prose blockquote p { margin: 0 0 var(--hc-space-4); font-size: var(--hc-fs-body); line-height: var(--hc-lh-quote); font-weight: var(--hc-fw-bold); font-style: italic; }
.hc-prose blockquote p:last-child { margin-bottom: 0; }
.hc-prose blockquote cite { display: block; margin-top: var(--hc-space-4); font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); font-style: normal; font-weight: var(--hc-fw-regular); color: var(--hc-color-muted); }

/* Inline code and Code block. Code blocks scroll sideways and never wrap */
.hc-prose code {
  font-family: var(--hc-font-mono); font-size: var(--hc-fs-small); line-height: var(--hc-lh-small);
  background: var(--hc-color-zebra); color: var(--hc-color-primary-strong);
  border: 1px solid var(--hc-color-border); border-radius: var(--hc-radius-xs);
  padding: 2px 5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hc-prose pre {
  margin: var(--hc-space-6) 0; padding: var(--hc-space-4) var(--hc-space-5);
  background: var(--hc-color-primary-strong); color: var(--hc-color-code-text);
  border-radius: var(--hc-radius-field);
  font-family: var(--hc-font-mono); font-size: var(--hc-fs-small); line-height: var(--hc-lh-code);
  white-space: pre; overflow-x: auto; tab-size: 2;
}
.hc-prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; line-height: inherit; }

.hc-prose hr { margin: var(--hc-space-12) 0; border: 0; border-top: 1px solid var(--hc-color-border); }

/* UI label chip: :ui[Label]. 15px at every size of surrounding text, padding 0/8, 25 tall */
.hc-ui {
  font-size: var(--hc-fs-small); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-small); color: var(--hc-color-text);
  background: var(--hc-color-primary-100);
  border: 1px solid var(--hc-color-primary-200);
  border-radius: var(--hc-radius-xs);
  padding: 1px var(--hc-space-2);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* UI message: a sentence the product shows. Upright, in curly quotes, never italic or bold */
.hc-uimsg { font-style: normal; font-weight: var(--hc-fw-regular); color: var(--hc-color-quoted-ui); quotes: "\201C" "\201D"; }
.hc-uimsg::before { content: open-quote; }
.hc-uimsg::after { content: close-quote; }

/* Glossary term: a 2px dotted underline; its definition opens on hover, focus or tap */
.hc-term {
  position: relative;
  text-decoration: underline dotted 2px var(--hc-color-primary);
  text-underline-offset: 3px;
  cursor: help;
}
.hc-term:focus-visible { box-shadow: none; outline: none; background: var(--hc-color-primary-100); }
.hc-term__tip {
  position: absolute; left: 0; bottom: calc(100% + var(--hc-space-2)); z-index: 10;
  display: none; width: max-content; max-width: var(--hc-tooltip-max);
  padding: calc(var(--hc-space-2) - 1px); /* 8 including the border: Figma doesn't count this stroke */
  background: var(--hc-color-surface);
  border: 1px solid var(--hc-color-primary-200);
  border-radius: var(--hc-radius-lg);
  box-shadow: var(--hc-shadow-raised);
  font-size: var(--hc-fs-small); font-weight: var(--hc-fw-regular); line-height: var(--hc-lh-small);
  color: var(--hc-color-text); white-space: normal; text-decoration: none;
}
.hc-term:hover .hc-term__tip, .hc-term:focus .hc-term__tip, .hc-term[data-open="true"] .hc-term__tip { display: block; }
/* hc.js keeps the tip on screen: it shifts it sideways, flips it below the term under the sticky
   header, and Esc dismisses it without moving the pointer or focus */
.hc-term__tip { transform: translateX(var(--hc-tip-shift, 0)); }
.hc-term[data-place="below"] .hc-term__tip { bottom: auto; top: calc(100% + var(--hc-space-2)); }
.hc-term[data-dismissed="true"] .hc-term__tip { display: none; }

/* Inline UI icon: the app's own glyph after a UI label, 18px in Text/Link purple at every text size */
.hc-uicon { font-size: var(--hc-fs-body); color: var(--hc-color-primary); }

/* Callout, Style=Tint: note, tip, warning. Title 4 above the body. Since the build review (11 Nov 2026, "Callout /
   icon + Text/Primary title 18px" 3950:4103 to 4105; DEVIATIONS #270) the title is Text/Primary Bold 18/24, the
   same for all three, after a Regular icon 14 in the callout's colour, 8 apart: pen (note), lightbulb (tip),
   triangle-exclamation (warning). The coloured 15px titles were 3.8:1 (warning) and 4.1:1 (tip). A callout with no
   title has no icon */
/* Padding 16/20 including the 1px border: the Callout is one of the few frames whose stroke Figma
   doesn't count in the layout */
.hc-notice {
  margin: var(--hc-space-6) 0; padding: calc(var(--hc-space-4) - 1px) calc(var(--hc-space-5) - 1px);
  background: var(--hc-notice-note-bg);
  border: 1px solid var(--hc-notice-note-border);
  border-radius: var(--hc-radius-xl);
}
.hc-notice__title, .hc-prose .hc-notice__title {
  display: flex; align-items: flex-start; gap: var(--hc-space-2);
  margin: 0 0 var(--hc-space-1);
  font-size: var(--hc-fs-body); line-height: var(--hc-lh-callout-title); font-weight: var(--hc-fw-bold); color: var(--hc-color-text);
}
/* The icon box is 14 wide, 1 down, the glyph centred on a 20 line: 4 below the title's top */
.hc-notice__icon { flex: 0 0 14px; width: 14px; margin-top: 4px; font-size: 14px; color: var(--hc-notice-note-fg); }
.hc-notice__title-text { flex: 1 1 auto; min-width: 0; }
.hc-notice__body { font-size: var(--hc-fs-body); line-height: var(--hc-lh-body); }
.hc-notice__body > :last-child { margin-bottom: 0; }
.hc-notice--tip { background: var(--hc-notice-tip-bg); border-color: var(--hc-notice-tip-border); }
.hc-notice--tip .hc-notice__icon { color: var(--hc-notice-tip-fg); }
.hc-notice--warning { background: var(--hc-notice-warning-bg); border-color: var(--hc-notice-warning-border); }
.hc-notice--warning .hc-notice__icon { color: var(--hc-notice-warning-fg); }

/* Prerequisites: "You will need this first" */
.hc-prereq {
  display: flex; flex-direction: column; gap: var(--hc-space-3);
  margin: var(--hc-space-6) 0; padding: var(--hc-space-5) var(--hc-space-6);
  background: var(--hc-color-surface);
  border: 1px solid var(--hc-color-border);
  border-radius: var(--hc-radius-md);
}
.hc-prereq__title, .hc-prose .hc-prereq__title { display: flex; align-items: center; gap: var(--hc-space-2); margin: 0; font-size: var(--hc-fs-body); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-body); }
.hc-prereq__title .hc-icon { font-size: 18px; color: var(--hc-color-primary); }
.hc-prereq__body > :last-child { margin-bottom: 0; }
.hc-prose .hc-prereq ul { padding-left: var(--hc-space-6); }

/* Table: header Tint, first column bold, zebra rows, columns at least 160. On desktop it grows past
   700 up to the page gutter, then scrolls inside itself. On a phone a hint sits under it */
.hc-table-wrap { margin: var(--hc-space-6) 0 var(--hc-space-5); }
.hc-table {
  border: 1px solid var(--hc-color-border);
  border-radius: var(--hc-radius-sm);
  background: var(--hc-color-surface);
  overflow-x: auto;
}
.hc-table table { width: 100%; border-collapse: collapse; font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); }
.hc-table th, .hc-table td { padding: var(--hc-space-5); text-align: left; vertical-align: top; min-width: var(--hc-table-col-min); }
.hc-table th { background: var(--hc-color-primary-100); color: var(--hc-color-primary); font-weight: var(--hc-fw-bold); }
.hc-table td { border-top: 1px solid var(--hc-color-border); color: var(--hc-color-text); }
.hc-table td:first-child { font-weight: var(--hc-fw-bold); }
/* Table cell, Type=Chip: the chip only, 20 round it, so it's a block of its own height rather than a
   chip hanging over a 22.5 line (row 66, as drawn) */
.hc-table td:first-child .hc-ui { display: inline-block; white-space: nowrap; padding-top: 0; padding-bottom: 0; vertical-align: top; }
.hc-table tbody tr:nth-child(even) td { background: var(--hc-color-zebra); }
.hc-table p { margin: 0 0 var(--hc-space-2); }
.hc-table p:last-child { margin: 0; }
.hc-table-wrap[data-cols="1"] { --hc-table-cols: 1; }
.hc-table-wrap[data-cols="2"] { --hc-table-cols: 2; }
.hc-table-wrap[data-cols="3"] { --hc-table-cols: 3; }
.hc-table-wrap[data-cols="4"] { --hc-table-cols: 4; }
.hc-table-wrap[data-cols="5"] { --hc-table-cols: 5; }
.hc-table-wrap[data-cols="6"] { --hc-table-cols: 6; }
.hc-table-wrap[data-cols="7"] { --hc-table-cols: 7; }
.hc-table-wrap[data-cols="8"] { --hc-table-cols: 8; }
.hc-table-wrap table { min-width: calc(var(--hc-table-cols, 1) * var(--hc-table-col-min)); }
.hc-table__hint, .hc-prose .hc-table__hint { margin: var(--hc-space-2) 0 0; font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }
.hc-table__hint[hidden] { display: none; }

/* ImageFrame, Type=Framed: a white frame (8 padding, #DFD8F5, radius 16) round a mat (4 padding,
   #D6D8E2, radius 12), the image at radius 8, the caption under the frame */
.hc-figure { display: block; margin: var(--hc-space-6) 0; padding: 0; }
/* A screenshot narrower than the column is never stretched: the frame shrinks round it, centred.
   The design only draws full-width images (DEVIATIONS #110) */
.hc-figure__frame {
  width: fit-content; max-width: 100%; margin: 0 auto;
  padding: var(--hc-space-2);
  background: var(--hc-color-surface);
  border: 1px solid var(--hc-color-primary-200);
  border-radius: var(--hc-radius-xl);
}
.hc-figure__mat {
  position: relative;
  padding: var(--hc-space-1);
  background: var(--hc-color-surface);
  border: 1px solid var(--hc-color-border);
  border-radius: var(--hc-radius-lg);
}
.hc-figure__link { display: block; border-radius: var(--hc-radius-sm); }
.hc-figure__img { display: block; max-width: 100%; height: auto; border-radius: var(--hc-radius-sm); }
.hc-figure[data-enlarge="true"] .hc-figure__link { cursor: zoom-in; }
.hc-figure[data-enlarge="false"] .hc-figure__link { cursor: default; }
/* "Enlarge shows when the image is displayed smaller than its real size". hc.js decides */
/* 12 in from the mat's outer edge, as Figma measures it; CSS measures from inside the 1px border */
.hc-figure__enlarge {
  position: absolute; top: calc(var(--hc-space-3) - 1px); right: calc(var(--hc-space-3) - 1px);
  display: none; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  background: var(--hc-color-surface); color: var(--hc-color-text);
  border: 1px solid var(--hc-color-border); border-radius: var(--hc-radius-sm);
  box-shadow: var(--hc-shadow-raised);
  font-size: 16px; cursor: zoom-in;
}
.hc-figure[data-enlarge="true"] .hc-figure__enlarge { display: inline-flex; }
.hc-figure__caption {
  display: block; margin: 0;
  padding: var(--hc-space-2) var(--hc-space-4);
  text-align: center;
  font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted);
}

/* Lightbox: a <dialog> hc.js opens from an ImageFrame. Black 55% scrim, close button 24 from the corner.
   Taller than the screen: fits the width and scrolls down */
.hc-lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; overflow: auto;
}
.hc-lightbox::backdrop { background: var(--hc-overlay-lightbox); }
.hc-lightbox-open { overflow: hidden; }
.hc-lightbox__stage { display: flex; align-items: center; justify-content: center; min-height: 100%; padding: var(--hc-space-16); }
.hc-lightbox__img { display: block; max-width: 100%; height: auto; border-radius: var(--hc-radius-xs); background: var(--hc-color-surface); }
.hc-lightbox__close {
  position: fixed; top: var(--hc-space-6); right: var(--hc-space-6);
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--hc-tap); height: var(--hc-tap); padding: 0;
  background: var(--hc-color-surface); color: var(--hc-color-text);
  border: 1px solid var(--hc-color-border); border-radius: 50%;
  box-shadow: var(--hc-shadow-raised);
  font-size: 16px; cursor: pointer;
}

/* Video wrapper: 16:9 on the deep violet, radius 9 */
.hc-video { margin: var(--hc-space-6) 0; padding: 0; }
.hc-video__frame {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--hc-color-primary-strong);
  border-radius: var(--hc-radius-field);
  overflow: hidden;
}
.hc-video__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================================
   Topic and Getting started pages, and the shared article list (also search results)
   ========================================================================= */

.hc-listing__header { display: flex; flex-direction: column; gap: var(--hc-space-2); padding-top: var(--hc-space-8); }
.hc-listing__title { margin: 0; font-family: var(--hc-font-heading); font-weight: var(--hc-fw-heading); font-size: var(--hc-fs-h1); line-height: var(--hc-lh-h1); color: var(--hc-color-text); }
/* No lone last word (as the contact sub-line, DEVIATIONS #123) */
.hc-listing__desc { margin: 0; font-size: var(--hc-fs-body); line-height: var(--hc-lh-body); color: var(--hc-color-muted); text-wrap: pretty; }
.hc-listing__count { margin: 0; font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }
.hc-listing__body { margin-top: var(--hc-space-2); }
.hc-listing--ordered .hc-listing__body { margin-top: var(--hc-space-6); }
.hc-listing + .hc-contact { margin-top: var(--hc-space-8); }

/* Topic group label */
.hc-group__label { margin: 0; padding: var(--hc-space-6) 0 var(--hc-space-1); font-family: var(--hc-font-body); font-size: var(--hc-fs-small); font-weight: var(--hc-fw-regular); line-height: var(--hc-lh-eyebrow); letter-spacing: var(--hc-tracking-eyebrow); text-transform: uppercase; color: var(--hc-color-muted); }

/* Article list item. Article: file icon. Numbered: Getting started. Result: search. No rule on the first row */
.hc-list { margin: 0; padding: 0; list-style: none; }
.hc-list__item + .hc-list__item { border-top: 1px solid var(--hc-color-border); }
.hc-list__link { display: flex; align-items: flex-start; gap: var(--hc-space-4); padding: var(--hc-space-4) 0; }
.hc-body a.hc-list__link:hover { text-decoration: none; }
.hc-body a.hc-list__link:hover .hc-list__title { text-decoration: underline; }
.hc-list__icon { display: flex; align-items: center; justify-content: flex-start; flex: 0 0 18px; height: calc(var(--hc-lh-body) * var(--hc-fs-body)); font-size: 18px; color: var(--hc-color-muted); }
/* The numeral: Text/Link SemiBold (6:1 on the panel's Surface/Tint, 6.7:1 on white). It was Primary/200 Black,
   1.22:1 (build review 11 Nov 2026, 3950:3770; DEVIATIONS #268). Its top is level with the title's, about 3 down
   from the row's top (James, 2026-11-12) */
.hc-list__num { margin-top: calc((var(--hc-lh-body) * var(--hc-fs-body) - var(--hc-lh-list-numeral) * var(--hc-fs-list-numeral)) / 2 + var(--hc-cap-above-middle) * (var(--hc-fs-list-numeral) - var(--hc-fs-body))); }
.hc-list__num { flex: 0 0 42px; font-family: var(--hc-font-numeral); font-size: var(--hc-fs-list-numeral); font-weight: var(--hc-fw-semibold); letter-spacing: var(--hc-tracking-list-numeral); line-height: var(--hc-lh-list-numeral); color: var(--hc-color-primary); }
.hc-list__body { display: flex; flex-direction: column; gap: var(--hc-space-1); flex: 1 1 auto; min-width: 0; }
.hc-list__title { font-size: var(--hc-fs-body); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-body); color: var(--hc-color-primary); }
.hc-list__crumb { padding-bottom: var(--hc-space-1); font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }
.hc-list__summary {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted);
}
/* A Getting started step's time, under its summary, the same type as the "About 20 minutes" note (DEVIATIONS #255) */
.hc-list__time { font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }
.hc-list--results .hc-list__link { padding: var(--hc-space-6) 0; }
/* The Result snippet isn't clamped: it's a short excerpt (20 words) and runs to 3 lines on a phone, as drawn */
.hc-list--results .hc-list__summary { display: block; -webkit-line-clamp: unset; overflow: visible; }
/* "Words that match the search are bold in the snippet": Body/Small Semibold in Text/Primary */
.hc-list__summary mark { background: none; color: var(--hc-color-text); font-weight: var(--hc-fw-semibold); padding: 0; }

/* =========================================================================
   Search results, the ask bar and the empty state
   ========================================================================= */

.hc-results { padding-top: var(--hc-space-8); }
/* "Heading (H2 style, page H1)" */
.hc-results__title { margin: 0; font-family: var(--hc-font-heading); font-weight: var(--hc-fw-heading); font-size: var(--hc-fs-h2); line-height: var(--hc-lh-h2); color: var(--hc-color-text); }
.hc-results__sub { margin: var(--hc-space-1) 0 0; font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }
.hc-results__header + .hc-list { margin-top: var(--hc-space-6); }

/* While the search runs (DEVIATIONS #263, undrawn): the results header as "Searching for “…”…" over four ghost
   rows in the Result row's shape, each line the chat's skeleton bar centred in that line's height, so the results
   land where the ghosts were. A step darker than the chat's bars. Hidden unless the page's script found a search in
   the address (.hc-searching) */
.hc-results--wait { display: none; }
.hc-searching .hc-results--wait { display: block; }
.hc-searching .hc-search-start { display: none; }
.hc-wait__line { display: flex; align-items: center; height: calc(var(--hc-lh-small) * var(--hc-fs-small)); }
.hc-wait__line .hc-skeleton { width: 100%; background: var(--hc-color-skeleton-strong); }
.hc-wait__line--title { height: calc(var(--hc-lh-body) * var(--hc-fs-body)); }
.hc-wait__line--crumb { margin-bottom: var(--hc-space-1); }
/* Uneven lengths, so the rows read as different articles */
.hc-list__item:nth-child(1) .hc-wait__line--title .hc-skeleton { width: 52%; }
.hc-list__item:nth-child(2) .hc-wait__line--title .hc-skeleton { width: 68%; }
.hc-list__item:nth-child(3) .hc-wait__line--title .hc-skeleton { width: 44%; }
.hc-list__item:nth-child(4) .hc-wait__line--title .hc-skeleton { width: 60%; }
.hc-wait__line--crumb .hc-skeleton { width: 20%; }
.hc-list__item:nth-child(even) .hc-wait__line--crumb .hc-skeleton { width: 26%; }
.hc-list__item:nth-child(1) .hc-wait__line:last-child .hc-skeleton { width: 72%; }
.hc-list__item:nth-child(2) .hc-wait__line:last-child .hc-skeleton { width: 58%; }
.hc-list__item:nth-child(3) .hc-wait__line:last-child .hc-skeleton { width: 80%; }
.hc-list__item:nth-child(4) .hc-wait__line:last-child .hc-skeleton { width: 64%; }

/* Search ask bar: between the count and the first result, only when there are results */
.hc-askbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--hc-space-4);
  margin: var(--hc-space-6) 0 var(--hc-space-2); padding: var(--hc-space-4) var(--hc-space-5);
  background: var(--hc-color-primary-100);
  border: 1px solid var(--hc-color-primary-200);
  border-radius: var(--hc-radius-lg);
}
.hc-askbar__text { display: flex; align-items: center; gap: var(--hc-space-2); margin: 0; font-size: var(--hc-fs-small); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-small); color: var(--hc-color-primary-deep); }
.hc-askbar__text .hc-icon { font-size: 16px; color: var(--hc-color-primary); }
/* Tone=Neutral (Phase 2): hands off to a person in the chat, under the latest answer only. Grey, hugs its
   content, left-aligned, no icon, the prompt in Text/Primary and a Primary Small "Talk to a human".
   Desktop a row 16 apart; phone stacked, 8 apart. The chat page sets the space round it */
.hc-askbar--neutral {
  justify-content: flex-start;
  width: fit-content; max-width: 100%; margin: 0;
  background: var(--hc-color-zebra);
  border-color: var(--hc-color-border);
}
.hc-askbar--neutral .hc-askbar__text { color: var(--hc-color-text); }

/* Search empty state: the heading repeats the search words, one action */
.hc-empty { padding: 112px var(--hc-space-6) var(--hc-space-12); text-align: center; }
.hc-empty__icon { display: block; margin: 0 auto var(--hc-space-4); font-size: var(--hc-fs-icon-lg); color: var(--hc-color-primary-200); }
.hc-empty__title { margin: 0 0 var(--hc-space-2); font-family: var(--hc-font-body); font-weight: var(--hc-fw-semibold); font-size: var(--hc-fs-h3); line-height: var(--hc-lh-h3); color: var(--hc-color-text); }
.hc-empty__text { max-width: 450px; margin: 0 auto var(--hc-space-6); font-size: var(--hc-fs-body); line-height: var(--hc-lh-body); color: var(--hc-color-muted); text-wrap: pretty; }
.hc-empty__actions { display: flex; flex-wrap: wrap; gap: var(--hc-space-2); justify-content: center; }
.hc-empty .hc-search { margin-top: var(--hc-space-6); }


/* =========================================================================
   Skeleton bar (Phase 2, from the chat's "Waiting placeholder" 3940:2322). 14 tall, Neutral/100,
   radius 7. Decorative: the parent hides it from screen readers. "Soft pulse on the lines. No motion
   with reduced motion." The chat page lays the bars out (four, 12 apart, cut short on the right)
   ========================================================================= */

.hc-skeleton { display: block; height: 14px; border-radius: var(--hc-radius-pill); background: var(--hc-color-skeleton); animation: hc-skeleton-pulse 1.6s ease-in-out infinite; }
@keyframes hc-skeleton-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* =========================================================================
   ==== Phase 2: home ====
   Phase 2 "Homepage" (3940:2336), with the "Suggestion chip" (3940:2124) and "Topic card" (3940:2142)
   components. Built from Desktop 1440 (3940:2398) and Mobile 390 (3940:2337). Figma counts the 1px strokes in
   its layouts, so a padding beside a border is the drawn padding. No tablet frame: the choices are in
   DEVIATIONS ("Phase 2: home and search drop-down")
   ========================================================================= */

/* Each section sets its own width and gutter, at every size (the phone .hc-main gutter doesn't apply) */
.hc-main.hc-main--home { padding: 0; }

/* Search band, since the build review (11 Nov 2026, "Hero search" 3950:4231; DEVIATIONS #266): Surface/Brand,
   padding 80/64/64, 32 between the heading, the field and the suggestions, centred. Heading: H1 in Text/Inverse
   over the intro (Body/Default, Primary/100), 16 apart, 560 wide. It was Primary/50 with dark text, where the
   field's border was 1.35:1 */
.hc-home-search {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: var(--hc-space-8);
  padding: var(--hc-space-20) var(--hc-gutter-wide) var(--hc-space-16);
  background: var(--hc-color-hero);
  text-align: center;
}
/* Two blobs from contentsnare.com in #8352D1, cut off by the band: 560 × 532.5 flipped, 200 above the band's top
   and 260 past its right edge; 520 × 494.5, 260 down and 260 past its left edge. The design draws them at 1440
   only. Below 1200 they would sit behind the hint, which drops to 3.7:1 on a blob, so they go (DEVIATIONS #266) */
.hc-home-search::before, .hc-home-search::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background-repeat: no-repeat; background-size: 100% 100%;
}
.hc-home-search::before { top: -200px; right: -260px; width: 560px; height: 532.521px; background-image: url("icons/hero-blob-right.svg"); transform: scaleX(-1); }
.hc-home-search::after { top: 260px; left: -260px; width: 520px; height: 494.484px; background-image: url("icons/hero-blob-left.svg"); }
@media (max-width: 1199px) {
  .hc-home-search::before, .hc-home-search::after { display: none; }
}
.hc-home-search__heading { display: flex; flex-direction: column; align-items: center; gap: var(--hc-space-4); width: 100%; max-width: var(--hc-width-home-heading); }
.hc-home-search__title { margin: 0; font-family: var(--hc-font-heading); font-weight: var(--hc-fw-heading); font-size: var(--hc-fs-h1); line-height: var(--hc-lh-h1); color: var(--hc-color-hero-text); }
.hc-home-search__intro { margin: 0; font-size: var(--hc-fs-body); line-height: var(--hc-lh-body); color: var(--hc-color-hero-intro); text-wrap: pretty; }
/* The Page field, then the hint 12 below it in Primary/200. The drop-down opens over the hint and chips */
.hc-home-search__box { display: flex; flex-direction: column; align-items: center; gap: var(--hc-space-3); width: 100%; max-width: var(--hc-measure); }
.hc-home-search__hint { margin: 0; font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-hero-hint); }
/* The white field needs no border on the band (6.7:1): the border turns white, so nothing moves. Focus: 2px in the
   band's colour, then 3px Button/Surface ("Focus" 3950:4537), and the border stays white */
.hc-home-search .hc-search__field,
.hc-home-search .hc-search__field:focus-within,
.hc-home-search .hc-search__field:focus-within:not(:has(.hc-search__input:focus)) { border-color: var(--hc-color-surface); }
.hc-home-search .hc-search__field:focus-within { box-shadow: var(--hc-focus-ring-on-brand); }
.hc-home-search .hc-search__field:focus-within:not(:has(.hc-search__input:focus)) { box-shadow: none; }
/* The chips, then the guide link 24 below them */
.hc-home-search__more { display: flex; flex-direction: column; align-items: center; gap: var(--hc-space-6); width: 100%; max-width: var(--hc-measure); }

/* Suggestion chip: "A button, not a link". Each submits its question to the answer page, so it works without
   JavaScript too. Hugs its text, 44 tall (9.5/16 padding), radius 22 even when the text wraps, Body/Small.
   Hover Surface/Subtle; Pressed Neutral/100 with a Neutral/300 border; Focus the ring with the border dropped.
   The row wraps, 8 apart both ways, centred on desktop */
.hc-chips { width: 100%; margin: 0; }
.hc-chips__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--hc-space-2); margin: 0; padding: 0; list-style: none; }
.hc-chips__list > li { max-width: 100%; }
.hc-chip {
  display: inline-flex; align-items: center; max-width: 100%; min-height: 44px; margin: 0;
  padding: var(--hc-space-chip) var(--hc-space-4);
  background: var(--hc-color-surface); color: var(--hc-color-text);
  border: 1px solid var(--hc-color-border); border-radius: var(--hc-radius-chip);
  font-family: var(--hc-font-body); font-size: var(--hc-fs-small); font-weight: var(--hc-fw-regular); line-height: var(--hc-lh-small);
  text-align: left; cursor: pointer;
}
.hc-chip:hover { background: var(--hc-color-zebra); }
.hc-chip:active { background: var(--hc-color-neutral-100); border-color: var(--hc-color-neutral-300); }
.hc-chip:focus-visible { border-color: transparent; }
/* On the purple band (3950:4248; DEVIATIONS #266): no fill, Text/Inverse, a Primary/200 border (4.9:1), 12 apart
   both ways. Hover and pressed aren't drawn: white at 12% and 20%. Focus: the Button/Surface ring */
.hc-home-search .hc-chips__list { gap: var(--hc-space-3); }
.hc-home-search .hc-chip { background: transparent; color: var(--hc-color-hero-text); border-color: var(--hc-color-hero-hint); }
.hc-home-search .hc-chip:hover { background: rgba(255, 255, 255, 0.12); }
.hc-home-search .hc-chip:active { background: rgba(255, 255, 255, 0.2); border-color: var(--hc-color-hero-hint); }
.hc-home-search .hc-chip:focus-visible { border-color: transparent; box-shadow: var(--hc-focus-ring-on-dark); }

/* Guide link: the "New here?" badge (Surface/Tint, 1px Border/Brand, pill, padding 2/12, Body/Small Semibold
   in Text/Link), 12 before "Start with the getting started guide" (15/22.5 Text/Secondary) and its Regular
   arrow 13, 6 apart. "Scrolls down to the Getting started section on this page." Hover isn't drawn: the text
   underlines */
.hc-guide { display: inline-flex; align-items: center; gap: var(--hc-space-3); }
.hc-body a.hc-guide, .hc-body a.hc-guide:hover { color: var(--hc-color-muted); text-decoration: none; }
.hc-guide__badge {
  padding: var(--hc-space-0-5) var(--hc-space-3);
  background: var(--hc-color-primary-100); border: 1px solid var(--hc-color-primary-200); border-radius: var(--hc-radius-pill);
  font-size: var(--hc-fs-small); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-small); color: var(--hc-color-primary);
  white-space: nowrap;
}
.hc-guide__text { display: inline-flex; align-items: center; gap: var(--hc-space-1-5); font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); text-underline-offset: 3px; }
.hc-guide__icon { font-size: 13px; }
.hc-body a.hc-guide:hover .hc-guide__text { text-decoration: underline; }
/* On the purple band (3950:4261): the text white, the badge borderless (its border takes the fill, so it keeps
   its size). Focus: the Button/Surface ring */
.hc-body .hc-home-search a.hc-guide, .hc-body .hc-home-search a.hc-guide:hover { color: var(--hc-color-hero-text); }
.hc-home-search .hc-guide__badge { border-color: var(--hc-color-primary-100); }
.hc-home-search .hc-guide:focus-visible { box-shadow: var(--hc-focus-ring-on-dark); }

/* Browse by topic: white, 80 above and below, the 1120 column. The heading (H2, then Body/Small Secondary 8
   below) sits 24 above the grid */
.hc-home-topics { padding: var(--hc-space-20) var(--hc-gutter-wide); }
.hc-home-topics__inner { display: flex; flex-direction: column; gap: var(--hc-space-6); max-width: var(--hc-width-wide); margin: 0 auto; }
.hc-home-topics__heading { display: flex; flex-direction: column; gap: var(--hc-space-2); }
.hc-home-topics__title { margin: 0; font-family: var(--hc-font-heading); font-weight: var(--hc-fw-heading); font-size: var(--hc-fs-h2); line-height: var(--hc-lh-h2); color: var(--hc-color-text); }
.hc-home-topics__sub { margin: 0; font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }

/* Topic card, Stacked on desktop: four to a row, 16 apart, each as tall as the tallest in its row, the count
   pinned to the bottom at least 16 below the description. White, 1px Border/Default, radius 12, padding
   24/24/20/24. A 44 Surface/Tint square (radius 8) with the Regular glyph 20 in Text/Link, then 16, the name
   (Body/Default Semibold, wraps, never cut), 4, the description and the count (Body/Small Secondary).
   Hover: Border/Brand and the name in Text/Link. Focus: the ring, border dropped */
.hc-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--hc-space-4); margin: 0; padding: 0; list-style: none; }
.hc-topics__item { display: flex; min-width: 0; }
.hc-topic {
  display: flex; flex-direction: column; width: 100%;
  padding: var(--hc-space-6) var(--hc-space-6) var(--hc-space-5);
  background: var(--hc-color-surface);
  border: 1px solid var(--hc-color-border); border-radius: var(--hc-radius-lg);
}
.hc-body a.hc-topic, .hc-body a.hc-topic:hover { color: var(--hc-color-text); text-decoration: none; }
.hc-body a.hc-topic:hover { border-color: var(--hc-color-primary-200); }
.hc-body a.hc-topic:hover .hc-topic__name { color: var(--hc-color-primary); }
.hc-topic:focus-visible { border-color: transparent; }
.hc-topic__icon {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 44px; width: 44px; height: 44px;
  background: var(--hc-color-primary-100); border-radius: var(--hc-radius-sm);
  color: var(--hc-color-primary); font-size: 20px;
}
.hc-topic__body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; padding-top: var(--hc-space-4); }
.hc-topic__name { font-size: var(--hc-fs-body); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-body); color: var(--hc-color-text); }
.hc-topic__desc { margin-top: var(--hc-space-1); font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }
.hc-topic__count { margin-top: auto; padding-top: var(--hc-space-4); font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }

/* Getting started: white, 80 above and 32 below. The panel: 1120, Surface/Tint, 1px Border/Brand, radius 16,
   padding 48, the 400 intro column 64 from the steps. Intro: the eyebrow (Label/Eyebrow in Text/Link), H2,
   Body/Default and Body/Small in Text/Secondary, 8 apart; the button 24 below. Steps: the Article list item,
   Numbered (rules in Border/Default, none above the first), with the article's one-line step description
   (`step_line`) under the title and no time per step. It was the article's summary cut to one line
   (build review 11 Nov 2026, 3950:3755; DEVIATIONS #269) */
.hc-home-gs { padding: var(--hc-space-20) var(--hc-gutter-wide) var(--hc-space-8); }
.hc-gs {
  display: flex; align-items: flex-start; gap: var(--hc-space-16);
  max-width: var(--hc-width-wide); margin: 0 auto;
  padding: var(--hc-space-12);
  background: var(--hc-color-primary-100);
  border: 1px solid var(--hc-color-primary-200); border-radius: var(--hc-radius-xl);
}
.hc-gs__intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--hc-space-6); flex: 0 0 var(--hc-width-gs-intro); min-width: 0; }
.hc-gs__copy { display: flex; flex-direction: column; gap: var(--hc-space-2); }
.hc-gs__eyebrow { color: var(--hc-color-primary); }
.hc-gs__title { margin: 0; font-family: var(--hc-font-heading); font-weight: var(--hc-fw-heading); font-size: var(--hc-fs-h2); line-height: var(--hc-lh-h2); color: var(--hc-color-text); }
.hc-gs__text { margin: 0; font-size: var(--hc-fs-body); line-height: var(--hc-lh-body); color: var(--hc-color-muted); }
.hc-gs__time { margin: 0; font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }
.hc-gs__steps { flex: 1 1 auto; min-width: 0; }
.hc-gs__steps .hc-list__summary { -webkit-line-clamp: 2; }

/* Still stuck: not the Contact support block. White, centred, 48 above and 64 below, 24 apart: a 56 circle in
   Surface/Chat tint with the Regular comment glyph 24 in Button/Label; "Still stuck?" (Heading/H3) over the
   hours (Body/Default Secondary), 8 apart; "Talk to a human" (Primary) and "Email support" (Text), 8 apart */
.hc-home-stuck {
  display: flex; flex-direction: column; align-items: center; gap: var(--hc-space-6);
  padding: var(--hc-space-12) var(--hc-gutter-wide) var(--hc-space-16);
  text-align: center;
}
.hc-home-stuck__icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--hc-color-chat-tint); color: var(--hc-color-primary-deep); font-size: 24px;
}
.hc-home-stuck__text { display: flex; flex-direction: column; gap: var(--hc-space-2); }
.hc-home-stuck__title { margin: 0; font-family: var(--hc-font-body); font-size: var(--hc-fs-h3); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-h3); color: var(--hc-color-text); }
.hc-home-stuck__sub { margin: 0; font-size: var(--hc-fs-body); line-height: var(--hc-lh-body); color: var(--hc-color-muted); }
.hc-home-stuck__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--hc-space-2); }

/* Tablet isn't drawn. Below 1158 (where the 1120 column has shrunk to 1030): three topic cards to a row, and
   the Getting started panel stacks, keeping its 48 padding, the intro (up to 560) 32 above the steps.
   Below 1024: two cards to a row */
@media (max-width: 1157px) {
  .hc-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hc-gs { flex-direction: column; align-items: stretch; gap: var(--hc-space-8); }
  .hc-gs__intro { flex-basis: auto; max-width: var(--hc-width-home-heading); }
  .hc-gs__steps { width: 100%; }
}
@media (max-width: 1023px) {
  .hc-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phone (Mobile 390): everything left-aligned at 16. Search band 48/16, 24 apart, H1 Mobile, the suggestions
   20 above the guide link, which stacks (badge, 12, text). Browse by topic 48/16, H2 Mobile, one Row card per
   line, 12 apart: the icon square left, 16, then name, 4, description, 16, count. Getting started 48/16/24, the
   panel stacked, padding 24/20, 20 apart, summaries on two lines. Still stuck 32/16/48, 20 apart */
@media (max-width: 767px) {
  .hc-home-search { align-items: stretch; gap: var(--hc-space-6); padding: var(--hc-space-12) var(--hc-gutter-phone); text-align: left; }
  .hc-home-search__heading, .hc-home-search__box, .hc-home-search__more { align-items: flex-start; max-width: none; }
  .hc-home-search__title { font-size: var(--hc-fs-h1-phone); line-height: var(--hc-lh-h1-phone); }
  .hc-home-search__more { gap: var(--hc-space-5); }
  .hc-chips__list { justify-content: flex-start; }
  .hc-guide { flex-direction: column; align-items: flex-start; }

  .hc-home-topics { padding: var(--hc-space-12) var(--hc-gutter-phone); }
  .hc-home-topics__title, .hc-gs__title { font-size: var(--hc-fs-h2-phone); line-height: var(--hc-lh-h2-phone); }
  .hc-topics { grid-template-columns: minmax(0, 1fr); gap: var(--hc-space-3); }
  .hc-topic { flex-direction: row; align-items: flex-start; gap: var(--hc-space-4); }
  .hc-topic__body { padding-top: 0; }

  .hc-home-gs { padding: var(--hc-space-12) var(--hc-gutter-phone) var(--hc-space-6); }
  .hc-gs { gap: var(--hc-space-5); padding: var(--hc-space-6) var(--hc-space-5); }
  .hc-gs__intro { gap: var(--hc-space-5); }
  .hc-gs__steps .hc-list__summary { -webkit-line-clamp: 2; }

  .hc-home-stuck { gap: var(--hc-space-5); padding: var(--hc-space-8) var(--hc-gutter-phone) var(--hc-space-12); }
}

/* =========================================================================
   ==== Phase 2: search drop-down and phone search sheet ====
   "Search drop-down" (3940:2265) and "Drop-down row" (3940:2206), rendered by hc.js initSearch() into the
   ul.hc-search__drop of each form.hc-search. "Opens 8px under the search box, same width as the box."
   Header size: Results, No match, Empty focus ("Try asking"). Page size: Results, No match.
   Phones: the full-screen "Search sheet" (3940:2637), same rows
   ========================================================================= */

/* The box: white, 1px Border/Default, radius 12, Shadow/Raised, no padding, rows stacked with no gap */
.hc-search__drop {
  position: absolute; left: 0; right: 0; top: calc(100% + var(--hc-space-2)); z-index: 30;
  margin: 0; padding: 0; list-style: none;
  background: var(--hc-color-surface);
  border: 1px solid var(--hc-color-border);
  border-radius: var(--hc-radius-lg);
  box-shadow: var(--hc-shadow-drop);
  overflow: hidden;
  text-align: left;
}
.hc-search__drop[hidden] { display: none; }
.hc-search__drop > li { margin: 0; }
/* The header's list on a short window (a laptop zoomed in, a short browser window): the header is sticky, so
   scrolling the page can't bring the list's foot into view. It stops 16 above the window's bottom edge and
   scrolls inside itself, and hc.js scrolls the highlighted row into view there, never the page (DEVIATIONS
   #227). Its top is 65 under the window's (the header's 16 padding, the 41 field, 8), 62.5 below 1024 (12, the
   field centred on the 44 row, 8). On a tall enough window nothing changes. The radius still clips the rows */
.hc-header .hc-search__drop {
  max-height: calc(100vh - 65px - var(--hc-space-4));
  max-height: calc(100dvh - 65px - var(--hc-space-4));
  overflow: hidden auto; overscroll-behavior: contain;
}
@media (max-width: 1023px) {
  .hc-header .hc-search__drop {
    max-height: calc(100vh - 62.5px - var(--hc-space-4));
    max-height: calc(100dvh - 62.5px - var(--hc-space-4));
  }
}

/* Every row: padding 12/16, 12 apart, white, a 1px Border/Default rule under it (none on See all, the status
   line or the last row). Highlighted ("the row the arrow keys are on", or under the mouse): Surface/Subtle,
   nothing else changes. Icons sit in a 24 box so the text lines up */
.hc-search__option {
  display: flex; align-items: center; gap: var(--hc-space-3);
  padding: var(--hc-space-3) var(--hc-space-4);
  background: var(--hc-color-surface);
  border-bottom: 1px solid var(--hc-color-border);
  color: var(--hc-color-text); cursor: pointer;
}
.hc-search__drop > li:last-child .hc-search__option { border-bottom: 0; }
.hc-body a.hc-search__option, .hc-body a.hc-search__option:hover { color: var(--hc-color-text); text-decoration: none; }
.hc-search__option[aria-selected="true"] { background: var(--hc-color-zebra); }
.hc-body .hc-search__option:focus-visible { box-shadow: none; }
.hc-search__option-icon {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 24px; width: 24px; height: 24px;
  font-size: 16px; color: var(--hc-color-muted);
}
.hc-search__option-body { display: flex; flex-direction: column; gap: var(--hc-space-0-5); flex: 1 1 auto; min-width: 0; }
.hc-search__option-title { font-size: var(--hc-fs-small); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-small); color: var(--hc-color-text); }
.hc-search__option-meta { font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }

/* AI: always first, highlighted while typing. The Regular wand 18 in Text/Link. "Ask about “…”" on one line,
   ending in "…" when cut; "Opens the answer page" 2 below. The Enter key chip on the right: Surface/Subtle,
   1px Border/Default, radius 4, padding 0/6, Body/Small Secondary. 73 tall as drawn */
.hc-search__option--ai, .hc-search__option--article { min-height: 73px; }
.hc-search__option--ai .hc-search__option-icon { font-size: 18px; color: var(--hc-color-primary); }
.hc-search__option--ai .hc-search__option-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hc-kbd {
  flex: 0 0 auto;
  padding: 0 var(--hc-space-1-5);
  background: var(--hc-color-zebra);
  border: 1px solid var(--hc-color-border); border-radius: var(--hc-radius-xs);
  font-family: var(--hc-font-body); font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted);
}
/* Article: the Regular file-lines 16, top-aligned; the title (two lines max) over its topic name. Words of the
   question in the title keep its weight on a Surface/Tint highlight, radius as the UI chip's (undrawn; James,
   2026-11-02, DEVIATIONS #232) */
.hc-search__option--article { align-items: flex-start; }
.hc-search__option--article .hc-search__option-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hc-search__match {
  padding: 0 1px; border-radius: var(--hc-radius-xs);
  background: var(--hc-color-primary-100); color: inherit; font-weight: inherit;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* An earlier question's article, held in place until this question's arrive: looks the same, can't be picked
   (DEVIATIONS #210) */
.hc-search__option--held { cursor: default; }
/* See all: always last. "See all results for “…”" in Body/Small Secondary, the Regular arrow 14 on the right */
.hc-search__option--all .hc-search__option-title { font-weight: var(--hc-fw-regular); color: var(--hc-color-muted); }
.hc-search__option--all .hc-search__option-icon { font-size: 14px; }
/* Question (the "Try asking" list): the Regular glass 16, the question in Body/Small. 49 tall */
.hc-search__option--question .hc-search__option-title { font-weight: var(--hc-fw-regular); }
/* "Try asking": Body/Small Semibold Secondary, padding 12/16/4 */
.hc-search__heading { padding: var(--hc-space-3) var(--hc-space-4) var(--hc-space-1); font-size: var(--hc-fs-small); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }
/* "No articles match “…”": Body/Small Secondary, padding 12/16, 47 tall. Not selectable */
.hc-search__status { min-height: 47px; padding: var(--hc-space-3) var(--hc-space-4); font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }

/* Search sheet (phones: below 768, or a touch screen under 481 tall, hc.js decides, DEVIATIONS #228): a
   full-screen white <dialog>. Top bar 69 tall: padding 12/16/12/8, 8
   apart, a 1px rule under it; Phase 1's Close button (a 44 white circle, 1px Border/Default, Shadow/Raised,
   the Solid xmark 16), then the Header-size field filling the row. Below it the same rows, full width, with no
   box, shadow or Enter key chip. The page behind can't scroll while it's open */
.hc-sheet {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--hc-color-surface); color: var(--hc-color-text);
  overflow-y: auto; overscroll-behavior: contain;
}
.hc-sheet::backdrop { background: var(--hc-color-surface); }
/* The rows scroll under the sticky bar (69): a highlighted row the arrow keys bring into view stops below it */
.hc-sheet { scroll-padding-top: var(--hc-header-height-phone); }
.hc-sheet-open { overflow: hidden; }
.hc-search--sheet { display: block; }
.hc-sheet__bar {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: var(--hc-space-2);
  padding: var(--hc-space-3) var(--hc-gutter-phone) var(--hc-space-3) var(--hc-space-2);
  background: var(--hc-color-surface);
  border-bottom: 1px solid var(--hc-color-border);
}
.hc-sheet__bar .hc-search__field { flex: 1 1 auto; min-width: 0; }
.hc-sheet__close {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 var(--hc-tap); width: var(--hc-tap); height: var(--hc-tap); padding: 0;
  background: var(--hc-color-surface); color: var(--hc-color-text);
  border: 1px solid var(--hc-color-border); border-radius: 50%;
  box-shadow: var(--hc-shadow-raised);
  font-size: 16px; cursor: pointer;
}
.hc-search--sheet .hc-search__drop { position: static; border: 0; border-radius: 0; box-shadow: none; }
.hc-search--sheet .hc-kbd { display: none; }

/* ==== Phase 2: chat ====================================================
   The Answers page ("Chat page" 3940:2866) at /ask/. The question bubble ("Chat question" 3940:2305),
   the answer as plain text on the left, the Waiting placeholder (3940:2322, four hc-skeleton bars), the
   hand-off box (the Neutral ask bar, latest turn only), the error callout, and the composer pinned to the
   bottom (the Search field's Chat size 3940:1853, built as its own block so hc.js's search code never
   binds to it). Desktop: the 700 column, turns 56 apart. Phone (below 768): the 16 gutter, turns 40
   apart. No footer. Behaviour: design/ask-page.js
   ========================================================================= */

/* A full-height column: header, thread, composer. The composer is sticky at the bottom, so it sits at the
   foot of the window however short the thread is, and stays there as the thread grows */
.hc-body--chat { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.hc-main.hc-main--chat { display: flex; flex: 1 0 auto; flex-direction: column; padding: 0; --hc-chat-gutter: var(--hc-gutter-wide); }

/* "Thread": padding 24/0/64, 32 between the breadcrumbs and the column */
.hc-chat {
  flex: 1 0 auto;
  display: flex; flex-direction: column; gap: var(--hc-space-8);
  width: 100%; max-width: calc(var(--hc-measure) + 2 * var(--hc-chat-gutter));
  margin: 0 auto;
  padding: var(--hc-space-6) var(--hc-chat-gutter) var(--hc-space-16);
}
.hc-chat .hc-crumbs { padding-top: 0; }
.hc-chat__thread { display: flex; flex-direction: column; gap: var(--hc-space-14); margin: 0; padding: 0; list-style: none; }
/* "Turn": the question, 20, the reply. A new turn scrolls to 16 under the sticky header (ask-page.js measures
   the header, as the page's scroll-padding does for the focus, DEVIATIONS #217) */
.hc-chat__turn { display: flex; flex-direction: column; gap: var(--hc-space-5); }

/* Chat question: on the right, Surface/Tint, 1px Border/Brand, radii 14/14/4/14, padding 12/16 inside
   the border, Body/Default, at most 80% of the column. The question is a heading (h2) that starts with a
   hidden "You asked:", so screen readers can jump between turns */
.hc-chat__question { display: flex; justify-content: flex-end; margin: 0; font-family: var(--hc-font-body); font-size: var(--hc-fs-body); font-weight: var(--hc-fw-regular); line-height: var(--hc-lh-body); color: var(--hc-color-text); }
/* 80% of the column is the drawn text and padding; the 1px border goes on top, as the frame counts its stroke
   (288 at 390, 562 at 1440) */
.hc-chat__bubble {
  display: block; max-width: calc(80% + 2px);
  padding: var(--hc-space-3) var(--hc-space-4);
  background: var(--hc-color-primary-100);
  border: 1px solid var(--hc-color-primary-200);
  border-radius: var(--hc-radius-bubble) var(--hc-radius-bubble) var(--hc-radius-xs) var(--hc-radius-bubble);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
/* Try again moves the focus to the turn's question so it isn't lost; a heading, not a control, so no ring */
.hc-chat__question:focus { outline: none; box-shadow: none; }

/* The reply: whatever answers the question, blocks 16 apart. The answer, the waiting state and the error
   callout fill the column; the hand-off box and the buttons hug, on the left */
.hc-chat__reply { display: flex; flex-direction: column; align-items: flex-start; gap: var(--hc-space-4); }
.hc-chat__answer, .hc-chat__waiting, .hc-chat__error { align-self: stretch; }

/* "Did this answer your question?" under each answer (DEVIATIONS #258): the summary panel's small muted line
   with the article vote's buttons, then the thanks line in its place */
.hc-chat__vote { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hc-space-3); }
.hc-chat__vote-question, .hc-chat__vote-thanks { margin: 0; font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }
.hc-chat__vote-thanks { display: none; align-items: center; gap: var(--hc-space-2); }
.hc-chat__vote-thanks .hc-icon { font-size: 16px; color: var(--hc-color-primary); }
.hc-chat__vote-thanks:focus { outline: none; box-shadow: none; }
.hc-chat__vote[data-state="done"] .hc-chat__vote-question,
.hc-chat__vote[data-state="done"] .hc-feedback__buttons { display: none; }
.hc-chat__vote[data-state="done"] .hc-chat__vote-thanks { display: flex; }
/* Team feedback mode (DEVIATIONS #259): after the vote, the article feedback's text box and a small button, the
   width of the answer, in the question and buttons' place */
.hc-chat__vote-comment { display: none; flex: 1 1 100%; flex-direction: column; gap: var(--hc-space-3); margin: 0; }
.hc-chat__vote-label { display: flex; flex-direction: column; gap: var(--hc-space-2); font-size: var(--hc-fs-small); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-small); color: var(--hc-color-text); }
.hc-chat__vote-comment .hc-btn { align-self: flex-start; }
/* After No (DEVIATIONS #272): the label takes the focus so it's read out, like an article's "What was missing?";
   it isn't a control, so no ring. Then the reasons, drawn as an article's, and the comment box */
.hc-chat__vote-label:focus { outline: none; box-shadow: none; }
.hc-chat__vote-more { display: block; margin: 0; }
.hc-chat__vote[data-state="comment"] { align-self: stretch; }
.hc-chat__vote[data-state="comment"] .hc-chat__vote-question,
.hc-chat__vote[data-state="comment"] .hc-feedback__buttons { display: none; }
.hc-chat__vote[data-state="comment"] .hc-chat__vote-comment { display: flex; }

/* The answer: plain text, no bubble. Body/Default, blocks 16 apart */
.hc-prose--chat p, .hc-prose--chat ul, .hc-prose--chat ol { margin: 0 0 var(--hc-space-4); }
/* The compact list: "1." Body/Default Semibold in Text/Link, in a 24 box, 8 to the text, items 12 apart */
.hc-prose--chat ol > li { min-height: 0; padding: 0 0 0 var(--hc-space-8); border: 0; }
.hc-prose--chat ol > li + li { margin-top: var(--hc-space-3); border-top: 0; }
.hc-prose--chat ol > li::before {
  content: counter(list-item) "."; top: 0; width: 24px;
  font-family: var(--hc-font-body); font-size: var(--hc-fs-body); font-weight: var(--hc-fw-semibold);
  line-height: var(--hc-lh-body); letter-spacing: 0; color: var(--hc-color-primary);
}
.hc-prose--chat ul > li + li { margin-top: var(--hc-space-3); }
/* Links: Text/Link, underlined in the same colour, as drawn ("Set up two-factor authentication") */
.hc-prose--chat a { text-decoration-color: currentColor; }
/* UI names arrive as `code` (the AI writes backticks, it can't write :ui[]) and show as the UI label
   chip, as in the articles (James, 2026-10-29), not as Inline code as drawn. Same values as .hc-ui */
.hc-prose--chat code {
  font-family: var(--hc-font-body); font-size: var(--hc-fs-small); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-small);
  color: var(--hc-color-text); background: var(--hc-color-primary-100);
  border: 1px solid var(--hc-color-primary-200); border-radius: var(--hc-radius-xs);
  padding: 1px var(--hc-space-2);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* The articles an answer quotes, "From our help articles:" and a list (undrawn: the design's sample
   answer links its article in a sentence). The label is Body/Small Semibold in Text/Secondary, as the
   drop-down's "Try asking"; the list is the article bullet list, 8 apart. The fallback's search results
   use the list too */
.hc-prose--chat .hc-chat__sources-label { margin-bottom: var(--hc-space-2); font-size: var(--hc-fs-small); font-weight: var(--hc-fw-semibold); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }
.hc-prose--chat .hc-chat__sources > li + li { margin-top: var(--hc-space-2); }
/* inline-block, so a title that wraps takes its focus ring as one box round both lines, as the footer's do
   (#215); top-aligned, so a one-line item keeps its 29.7 line (DEVIATIONS #225) */
.hc-prose--chat .hc-chat__sources a { display: inline-block; vertical-align: top; }

/* Waiting placeholder: wand 18 in Text/Link in a 24 box, 8, "Reading our help articles…" Body/Small in
   Text/Secondary; 16; four bars 12 apart, cut short on the right by 0, 32, 80 and 240 */
.hc-chat__waiting { display: flex; flex-direction: column; gap: var(--hc-space-4); }
.hc-chat__status { display: flex; align-items: center; gap: var(--hc-space-2); margin: 0; font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }
.hc-chat__status-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 24px; font-size: 18px; color: var(--hc-color-primary); }
.hc-chat__lines { display: flex; flex-direction: column; gap: var(--hc-space-3); }
/* As fractions of the drawn 700 column, so the bars keep their shape at 358 and 640 (DEVIATIONS #209) */
.hc-chat__lines .hc-skeleton:nth-child(2) { margin-right: calc(100% * 32 / 700); }
.hc-chat__lines .hc-skeleton:nth-child(3) { margin-right: calc(100% * 80 / 700); }
.hc-chat__lines .hc-skeleton:nth-child(4) { margin-right: calc(100% * 240 / 700); }

/* The hand-off box is the Neutral ask bar (hc-askbar--neutral): it hugs, on the left, 16 under the answer.
   Row on desktop, stacked on a phone (the ask bar's own phone rule) */

/* Error: Callout Warning in the Tint style, 700 wide, then 16, "Try again" (Primary) and "Talk to a human"
   (Secondary, no arrow), 8 apart */
.hc-chat__error { display: flex; flex-direction: column; align-items: flex-start; gap: var(--hc-space-4); }
.hc-chat__error .hc-notice { align-self: stretch; margin: 0; }
.hc-chat__error .hc-notice__body p { margin: 0; }
.hc-chat__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hc-space-2); }

/* "Ask another question (pinned)": full width, white, 1px rule on top, padding 16/0/24, the field 700 and
   centred. Then the AI notice, small Text/Secondary under the field (James, 2026-10-29) */
.hc-chat__composer-wrap {
  position: sticky; bottom: 0; z-index: 10;
  padding: var(--hc-space-4) var(--hc-chat-gutter) var(--hc-space-6);
  background: var(--hc-color-surface);
  border-top: 1px solid var(--hc-color-border);
}
.hc-chat__composer { max-width: var(--hc-measure); margin: 0 auto; }
/* Short windows, 500 tall or less (a phone on its side, heavy zoom): not pinned. The bar sits under the latest
   turn and scrolls with the page, so the header and the bar don't squeeze the thread to a strip. Keyboard focus,
   the composer's included, keeps 16 clear of the window's foot, as on every other page (#230) (James,
   2026-11-02, DEVIATIONS #233) */
@media (max-height: 500px) {
  .hc-chat__composer-wrap { position: static; }
  html:has(.hc-body--chat), html:has(.hc-body--chat):not(:has(.hc-chat__composer-wrap :focus)) { scroll-padding-bottom: var(--hc-space-4); }
}
.hc-chat__notice { max-width: var(--hc-measure); margin: var(--hc-space-2) auto 0; font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); text-wrap: pretty; }
/* Cloudflare Turnstile under the composer. It takes no room unless Cloudflare wants a click (ask-page.js adds
   --shown then) */
.hc-chat__check { max-width: var(--hc-measure); margin: 0 auto; }
.hc-chat__check--shown { margin-top: var(--hc-space-2); }

/* Search field, Chat size: the Page size (58 tall, radius 12, padding 8/8/8/20, glass 18, Body/Default,
   the 40 send circle). "Grows to 3 lines, then scrolls inside": a textarea sized to its text (field-sizing,
   or --hc-chat-input-h from ask-page.js where that's unsupported), one line to three. Focus: the 3px ring
   outside and the border drops out. Disabled while an answer loads: Surface/Subtle, "Wait for the answer
   to finish", the send button faded */
.hc-chat__field {
  display: flex; align-items: center; gap: var(--hc-space-3);
  min-height: 58px;
  padding: var(--hc-space-2) var(--hc-space-2) var(--hc-space-2) var(--hc-space-5);
  background: var(--hc-color-surface);
  border: 1px solid var(--hc-color-border);
  border-radius: var(--hc-radius-lg);
}
.hc-chat__field:focus-within { border-color: transparent; box-shadow: var(--hc-focus-ring); }
/* The ring is the text's: with the focus on the send button only the button rings (DEVIATIONS #207) */
.hc-chat__field:focus-within:not(:has(.hc-chat__input:focus)) { border-color: var(--hc-color-border); box-shadow: none; }
/* Waiting: the textarea is read-only (not disabled, so the focus stays in it) with aria-disabled (#206) */
.hc-chat__composer[data-state="waiting"] .hc-chat__field { background: var(--hc-color-zebra); }
.hc-chat__icon { font-size: 18px; color: var(--hc-color-muted); }
.hc-chat__input {
  flex: 1 1 0; min-width: 0;
  height: var(--hc-chat-input-h, auto);
  min-height: calc(var(--hc-fs-body) * var(--hc-lh-body));
  max-height: calc(3 * var(--hc-fs-body) * var(--hc-lh-body));
  margin: 0; padding: 0; border: 0; outline: 0; background: transparent;
  resize: none; overflow-y: auto; field-sizing: content;
  font-family: var(--hc-font-body); font-size: var(--hc-fs-body); line-height: var(--hc-lh-body); color: var(--hc-color-text);
}
.hc-body .hc-chat__input:focus-visible { box-shadow: none; }
.hc-chat__input::placeholder { color: var(--hc-color-muted); opacity: 1; }
.hc-chat__input:disabled, .hc-chat__input[aria-disabled="true"] { cursor: default; }
/* Send: a 40 circle in Button/Label, a white Regular arrow 16. Disabled (empty, or an answer loading):
   Button/Label at 40%, the arrow in Text/Tertiary (James, 2026-10-29) */
.hc-chat__send {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 40px; padding: 0;
  border: 0; border-radius: var(--hc-radius-pill);
  background: var(--hc-color-primary-deep); color: var(--hc-color-on-dark); cursor: pointer;
  font-size: 16px;
}
/* Empty: solid, like the search field's (DEVIATIONS #267). aria-disabled while an answer loads, so a focused send
   button keeps the focus (#206): that one still fades, because sending is busy, not just waiting for text */
.hc-chat__send:disabled { cursor: default; }
.hc-chat__send[aria-disabled="true"] { background: color-mix(in srgb, var(--hc-color-primary-deep) 40%, transparent); color: var(--hc-color-tertiary); cursor: default; }

.hc-chat__noscript { margin: 0; font-size: var(--hc-fs-body); line-height: var(--hc-lh-body); color: var(--hc-color-muted); }

/* Phone (below 768): "Thread" padding 12/16/40, 16 between the breadcrumbs (the parent only, 44 tall)
   and the column, turns 40 apart; the composer padding 12/16 */
@media (max-width: 767px) {
  .hc-main.hc-main--chat { --hc-chat-gutter: var(--hc-gutter-phone); }
  .hc-chat { gap: var(--hc-space-4); padding: var(--hc-space-3) var(--hc-chat-gutter) var(--hc-space-10); }
  .hc-chat__thread { gap: var(--hc-space-10); }
  .hc-chat__composer-wrap { padding: var(--hc-space-3) var(--hc-chat-gutter); }
}

/* Site-wide, kept here from the draft chat section: no pulse on skeleton bars, no button slide */
@media (prefers-reduced-motion: reduce) {
  .hc-skeleton { animation: none; }
  .hc-btn, .hc-btn__text, .hc-btn__arrow { transition: none; }
}

/* =========================================================================
   404
   ========================================================================= */

/* Undrawn. Laid out as the search empty state (3929:2728), the nearest drawn page with nothing to show:
   112 above (68 on a phone) and 48 below, no side padding so the search field keeps the Page size's 700.
   The "404" numeral in the icon's place, 16, the title in Heading/H1 (H1 Mobile on a phone), 8, the text in
   Body/Default Secondary up to 450 wide, 24, the Page search field, 24, the button (DEVIATIONS #205) */
.hc-notfound { padding: 112px 0 var(--hc-space-12); text-align: center; }
.hc-notfound__code { margin: 0 0 var(--hc-space-4); font-family: var(--hc-font-numeral); font-size: var(--hc-fs-numeral); font-weight: var(--hc-fw-black); letter-spacing: var(--hc-tracking-numeral); line-height: 1; color: var(--hc-color-primary-200); }
.hc-notfound__title { margin: 0 0 var(--hc-space-2); font-family: var(--hc-font-heading); font-weight: var(--hc-fw-heading); font-size: var(--hc-fs-h1); line-height: var(--hc-lh-h1); color: var(--hc-color-text); }
.hc-notfound__text { max-width: 450px; margin: 0 auto var(--hc-space-6); font-size: var(--hc-fs-body); line-height: var(--hc-lh-body); color: var(--hc-color-muted); text-wrap: pretty; }
.hc-notfound__actions { margin: var(--hc-space-6) 0 0; }

/* =========================================================================
   Footer (Phase 2 "Footer" 3940:1984). Deep violet, the 1120 column. Desktop: four 256 columns 32
   apart (Templates, Uses, Product, then the logo and tagline), 40 to a 1px rule, 40 to the copyright.
   Phone: the logo and tagline on top, the link lists in 171 columns that wrap. Same links as the live site
   ========================================================================= */

.hc-footer { padding: var(--hc-space-16) var(--hc-gutter-wide) var(--hc-space-12); background: var(--hc-color-footer-bg); color: var(--hc-color-footer-link); }
.hc-footer__inner { max-width: var(--hc-width-wide); margin: 0 auto; }
.hc-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 256px)); justify-content: space-between; gap: var(--hc-space-8); }
.hc-footer__col, .hc-footer__brand { display: flex; flex-direction: column; gap: var(--hc-space-2); min-width: 0; }
/* The logo and tagline are first in the markup (they say whose site it is) and last on desktop */
.hc-footer__brand { order: 4; gap: var(--hc-space-3); }
.hc-footer__logo { display: block; height: 24px; width: auto; align-self: flex-start; }
.hc-footer .hc-brand__type { fill: var(--hc-color-on-dark); }
/* Column headings have no text style: Poppins 600 15/22.5, uppercase, +1.2px, Footer/Heading */
.hc-footer__heading {
  margin: 0; font-family: var(--hc-font-body); font-size: var(--hc-fs-small); font-weight: var(--hc-fw-semibold);
  line-height: var(--hc-lh-small); letter-spacing: var(--hc-tracking-footer-heading); text-transform: uppercase;
  color: var(--hc-color-footer-heading);
}
.hc-footer__links { display: flex; flex-direction: column; gap: var(--hc-space-2); margin: 0; padding: 0; list-style: none; font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); }
.hc-footer__link, .hc-footer__tagline, .hc-footer__legal { font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); }
/* inline-block so a link that wraps (13 of the 30 at 390) takes its focus ring as one box round both lines,
   not one open-sided box a line */
.hc-body a.hc-footer__link { display: inline-block; color: var(--hc-color-footer-link); }
/* Hover isn't drawn: white and underlined (DEVIATIONS #134) */
.hc-body a.hc-footer__link:hover { color: var(--hc-color-on-dark); }
/* Focus isn't drawn on the footer, and the design's #703DC1 ring is 2.1:1 on Footer/Surface: the same 3px ring
   in Footer/Heading cyan instead, 8.1:1 (DEVIATIONS #200) */
.hc-footer :focus-visible { box-shadow: var(--hc-focus-ring-on-dark); }
.hc-footer__tagline { margin: 0; color: var(--hc-color-footer-link); }
.hc-footer__legal { margin: var(--hc-space-10) 0 0; padding-top: var(--hc-space-10); border-top: 1px solid var(--hc-color-footer-rule); color: var(--hc-color-footer-link); }


/* =========================================================================
   Responsive
   ========================================================================= */

/* Desktop only: a table grows past the 700 column, up to the page gutter, when its columns need
   160 each ("Grows past 700 when its columns need it (160 each), up to the gutter"). The article's
   left edge sits at 50vw - 515 + 330, so the room to the right gutter is 50vw + 121px */
@media (min-width: 1158px) {
  .hc-article .hc-table-wrap {
    width: max(100%, min(calc(var(--hc-table-cols, 1) * var(--hc-table-col-min) + 2px), calc(50vw + 121px)));
  }
}

/* Below the rail breakpoint the contents list moves above the body as the TOC Mobile box */
@media (max-width: 1157px) {
  .hc-article__layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "header" "rail" "body" "footer"; max-width: var(--hc-measure); margin: 0 auto; }
  .hc-toc {
    position: static; max-height: none; overflow: visible;
    margin: var(--hc-space-6) 0 0; padding: 0;
    background: var(--hc-color-surface);
    border: 1px solid var(--hc-color-border);
    border-radius: var(--hc-radius-md);
  }
  .hc-toc__toggle {
    display: flex; align-items: center; justify-content: space-between; gap: var(--hc-space-3);
    margin: 0; padding: var(--hc-space-4);
    pointer-events: auto; cursor: pointer;
  }
  .hc-toc__title { font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); letter-spacing: 0; text-transform: none; font-weight: var(--hc-fw-semibold); color: var(--hc-color-text); }
  .hc-toc__meta { display: inline-flex; align-items: center; gap: var(--hc-space-2); }
  .hc-toc__count { display: inline; font-size: var(--hc-fs-small); line-height: var(--hc-lh-small); color: var(--hc-color-muted); }
  .hc-toc__chevron { display: inline-block; font-size: 16px; color: var(--hc-color-muted); transition: var(--hc-transition); }
  /* Expanded: the count goes and the chevron points up */
  .hc-toc[data-open="true"] .hc-toc__count { display: none; }
  .hc-toc[data-open="true"] .hc-toc__chevron { transform: rotate(180deg); }
  .hc-toc__list { padding: var(--hc-space-1) var(--hc-space-4) var(--hc-space-4); border-top: 1px solid var(--hc-color-border); }
  .hc-js .hc-toc:not([data-open="true"]) .hc-toc__list { display: none; }
  .hc-toc__item + .hc-toc__item .hc-toc__link { border-top: 1px solid var(--hc-color-border); }
  .hc-toc__link { display: flex; align-items: center; min-height: var(--hc-tap); padding: var(--hc-space-2) 0; border-left: 0; }
  .hc-body a.hc-toc__link { color: var(--hc-color-text); }
  .hc-body a.hc-toc__link:hover { color: var(--hc-color-primary-deep); }
  .hc-body a.hc-toc__link[aria-current="true"] { color: var(--hc-color-primary-deep); font-weight: var(--hc-fw-semibold); }
  .hc-toc__item--sub .hc-toc__link { padding-left: var(--hc-space-4); padding-right: 0; }
  .hc-body .hc-toc__item--sub a.hc-toc__link { color: var(--hc-color-muted); }
  .hc-body .hc-toc__item--sub a.hc-toc__link[aria-current="true"] { color: var(--hc-color-primary-deep); }
}

/* Header and footer below 1024: their phone layouts, at the page's own gutter (DEVIATIONS #132).
   Header: the mark cropped from the logo, the search field filling the row, the 44 icon button, 12
   apart, padding 12: 69 tall. Home: the mark, "Back to Content Snare" at the right, 12, the icon button.
   Footer: the logo and tagline on top, then the link lists in columns of at least 171, 16 across and
   32 down (two at 390, three on a tablet), 40 below the logo */
@media (max-width: 1023px) {
  .hc-header { display: flex; gap: var(--hc-space-3); padding-top: var(--hc-space-3); padding-bottom: var(--hc-space-3); }
  .hc-header .hc-brand__logo { display: none; }
  /* Hidden from sight only, so the link is still "Content Snare Help centre", not just "Content Snare" next to
     "Back to Content Snare" on Home (DEVIATIONS #223) */
  .hc-header .hc-brand__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .hc-header .hc-brand__mark { display: block; }
  .hc-header > .hc-search { flex: 1 1 auto; }
  .hc-header__actions { flex: 0 0 auto; gap: var(--hc-space-3); }
  .hc-header--home .hc-header__actions { flex: 1 1 auto; }
  .hc-header .hc-header__actions .hc-btn { display: none; }
  .hc-header__talk { display: inline-flex; }

  /* Columns of at least 171, or half the row on a phone narrower than 374, so a phone always gets two (#222) */
  .hc-footer__cols { grid-template-columns: repeat(auto-fill, minmax(min(171px, calc(50% - var(--hc-space-2))), 1fr)); justify-content: stretch; gap: var(--hc-space-8) var(--hc-space-4); }
  .hc-footer__brand { order: 0; grid-column: 1 / -1; margin-bottom: var(--hc-space-2); }
}

/* Phones, below 768 */
@media (max-width: 767px) {
  .hc-main { padding: 0 var(--hc-gutter) var(--hc-space-16); }

  /* Phase 2's phone margin is 16 on the header and the footer (Phase 1's pages keep 20) */
  .hc-header { padding-left: var(--hc-gutter-phone); padding-right: var(--hc-gutter-phone); }
  .hc-footer { padding: var(--hc-space-12) var(--hc-gutter-phone); }

  /* Breadcrumbs: the parent only, a 44 tap target */
  .hc-crumbs { min-height: 0; }
  .hc-crumbs__list { min-height: var(--hc-tap); padding: 0 var(--hc-space-1); }
  .hc-crumbs__item:not(:nth-last-child(2)) { display: none; }
  .hc-crumbs__item + .hc-crumbs__item::before { content: none; }
  .hc-crumbs__link { display: inline-flex; align-items: center; min-height: var(--hc-tap); }
  .hc-container--list .hc-crumbs { padding-top: var(--hc-space-1); }

  /* Article: H1 Mobile, 16 between the header parts, no rule under the last updated line */
  .hc-article__layout { padding-top: 0; }
  .hc-article__header { padding-top: var(--hc-space-3); }
  .hc-article__title { font-size: var(--hc-fs-h1-phone); line-height: var(--hc-lh-h1-phone); }
  .hc-summary { margin-bottom: var(--hc-space-4); }
  .hc-article__meta { padding-bottom: 0; border-bottom: 0; }
  .hc-toc { margin-top: var(--hc-space-4); }
  .hc-article__body { padding-top: var(--hc-space-6); }

  /* Body rhythm on a phone: paragraphs 16 apart, 32 before an H2 and 12 after, 24 before an H3 */
  .hc-prose p { margin-bottom: var(--hc-space-4); }
  .hc-prose ul { margin-bottom: var(--hc-space-4); }
  .hc-prose h2 { margin: var(--hc-space-8) 0 var(--hc-space-3); font-size: var(--hc-fs-h2-phone); line-height: var(--hc-lh-h2-phone); }
  .hc-prose h3 { margin-top: var(--hc-space-6); }
  .hc-table-wrap { margin-bottom: var(--hc-space-4); }
  .hc-lightbox__stage { padding: var(--hc-space-4); }
  .hc-lightbox__close { top: var(--hc-space-4); right: var(--hc-space-4); }

  .hc-contact { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: var(--hc-space-4); }
  .hc-contact__text { flex: 0 1 auto; }
  /* Stacked isn't drawn with two actions: the Text button goes under the filled one, 8 below, its label
     lined up with the box's text (DEVIATIONS #135) */
  .hc-contact__actions { flex-direction: column; align-items: flex-start; }
  .hc-contact__actions .hc-btn--text { margin-left: calc(-1 * var(--hc-space-2)); }

  .hc-listing__header { padding-top: var(--hc-space-3); }
  .hc-listing__title { font-size: var(--hc-fs-h1-phone); line-height: var(--hc-lh-h1-phone); }
  .hc-results { padding-top: var(--hc-space-4); }
  .hc-results__title { font-size: var(--hc-fs-h2-phone); line-height: var(--hc-lh-h2-phone); }
  .hc-askbar { flex-direction: column; align-items: flex-start; gap: var(--hc-space-2); }
  /* Stacked, the prompt is top-aligned: the icon's top is level with the text's */
  .hc-askbar__text { align-items: flex-start; }
  .hc-empty { padding: 68px 0 var(--hc-space-12); }

  /* The 404, as the phone empty state, with the H1 Mobile title */
  .hc-notfound { padding: 68px 0 var(--hc-space-12); }
  .hc-notfound__title { font-size: var(--hc-fs-h1-phone); line-height: var(--hc-lh-h1-phone); }
}

/* =========================================================================
   Forced colours (a Windows contrast theme). The theme drops every box-shadow, and the focus ring with it,
   and replaces the drop-down's Surface/Subtle highlight. The same 3px ring as an outline in the system's
   Highlight colour wherever the ring is drawn, and a 2px one inside the highlighted row (DEVIATIONS #218)
   ========================================================================= */
@media (forced-colors: active) {
  .hc-body :focus-visible,
  .hc-search__field:focus-within,
  .hc-chat__field:focus-within,
  .hc-feedback__option:has(input:focus-visible),
  .hc-feedback__text:focus { outline: 3px solid Highlight; outline-offset: 0; }
  /* No ring where none is drawn: the text inside a field (the field rings), a field whose send button has the
     focus (#207), and the headings and lines the focus is moved to without one */
  .hc-body .hc-search__input:focus-visible, .hc-body .hc-chat__input:focus-visible,
  .hc-search__field:focus-within:not(:has(.hc-search__input:focus)),
  .hc-chat__field:focus-within:not(:has(.hc-chat__input:focus)),
  .hc-body .hc-search__option:focus-visible,
  .hc-chat__question:focus, .hc-feedback__legend:focus, .hc-feedback__thanks:focus { outline: none; }
  .hc-search__option[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
  /* Forced colours: Chrome draws a mark in the system's Mark colours; the underline keeps a matched word
     marked in a browser that drops the background instead (#232) */
  .hc-search__match { text-decoration: underline; }
}
