/* The public Help Center ({slug}.onskull.ai, #482). It speaks the OnSkull
   marketing site's language (the hero's threads, Plus Jakarta over Inter,
   cool paper and hairlines) in the business's own colour: --hc-accent, the
   one value that changes per tenant, set inline on <body> from
   Business::HelpCenter::ACCENTS. Loaded only by layouts/help_center. */

.hc {
  --hc-paper: oklch(0.995 0.002 250);
  --hc-quiet: oklch(0.975 0.004 255);
  --hc-ink:   oklch(0.21 0.034 264.7);
  --hc-body:  oklch(0.33 0.03 262);
  --hc-soft:  oklch(0.446 0.03 256.8);
  --hc-line:  oklch(0.928 0.006 264.5);
  --hc-line-strong: oklch(0.86 0.01 264);
  --hc-tint:  color-mix(in oklch, var(--hc-accent) 6%, var(--hc-paper));
  --hc-tint-strong: color-mix(in oklch, var(--hc-accent) 11%, var(--hc-paper));
  --hc-whatsapp: #25d366;
  --hc-whatsapp-hover: #35df76;
  --hc-whatsapp-ink: #10372e;
  --hc-ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --hc-wide:  1120px;
  --hc-gutter: 32px;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--hc-paper);
  color: var(--hc-ink);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--hc-accent);
}
.hc main { flex: 1; }
.hc ::selection { background: color-mix(in oklch, var(--hc-accent) 20%, transparent); color: var(--hc-ink); }
.hc a { transition: color 160ms var(--hc-ease), background-color 160ms var(--hc-ease), text-decoration-color 160ms var(--hc-ease); }
.hc a:focus-visible, .hc button:focus-visible { outline: 2px solid var(--hc-accent); outline-offset: 2px; border-radius: 6px; }

.hc__chev { flex: none; transition: transform 200ms var(--hc-ease); }

/* ── Bar ──────────────────────────────────────────────────────────────── */

.hc__bar { background: var(--hc-paper); border-bottom: 1px solid var(--hc-line); }
/* On the home and inner pages the bar sits on the tinted field it opens. */
.hc:has(.hc__hero, .hc__band) .hc__bar { background: var(--hc-tint); border-bottom-color: transparent; }
.hc__bar-in { max-width: var(--hc-wide); margin: 0 auto; padding: 14px var(--hc-gutter); min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hc__brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--hc-ink); text-decoration: none; }
.hc__brand-name { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc__brand-sep { width: 1px; height: 18px; background: var(--hc-line-strong); flex: none; }
.hc__brand-kind { font-size: 15px; font-weight: 500; color: var(--hc-soft); white-space: nowrap; }
.hc__logo { width: 30px; height: 30px; border-radius: 8px; background: var(--hc-accent); display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 700; flex: none; }
.hc__logo--image { background: transparent; object-fit: contain; }

/* The WhatsApp button: the channel's own green, as on the marketing site. */
.hc__wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; padding: 12px 22px; border-radius: 9999px; background: var(--hc-whatsapp); color: var(--hc-whatsapp-ink); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.hc__wa:hover { background: var(--hc-whatsapp-hover); }
.hc__wa:focus-visible { outline-color: var(--hc-whatsapp-ink); border-radius: 9999px; }
.hc__wa--bar { padding: 9px 16px; font-size: 14px; }
.hc__wa-glyph { flex: none; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hc__hero { position: relative; overflow: hidden; background: var(--hc-tint); padding: 76px var(--hc-gutter) 150px; }
.hc__hero-in { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
.hc__hello { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: clamp(2.1rem, 4.4vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
.hc__sub { margin: 16px auto 0; max-width: 46ch; font-size: 18px; line-height: 1.55; color: var(--hc-soft); text-wrap: pretty; }

/* The brush strokes: the tenant's accent at a few strengths, so the broad
   washes sit behind and the thin, dark strokes read as the last pass. Their
   motion is SMIL in the markup (shared/_strands). */
.hc__strands { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hc__glow-in { stop-color: var(--hc-accent); stop-opacity: 0.16; }
.hc__glow-out { stop-color: var(--hc-accent); stop-opacity: 0; }
.hc__stroke { fill: var(--hc-accent); }
.hc__stroke--deep { fill-opacity: 0.92; }
.hc__stroke--mid { fill-opacity: 0.55; }
.hc__stroke--soft { fill-opacity: 0.3; }
.hc__stroke--faint { fill-opacity: 0.13; }
.hc__stroke--ink { fill: color-mix(in oklch, var(--hc-accent) 55%, var(--hc-ink)); fill-opacity: 0.8; }

/* ── Search ───────────────────────────────────────────────────────────── */

.hc__search { position: relative; margin-top: 34px; display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 8px 0 20px; border: 1px solid var(--hc-line); border-radius: 16px; background: #fff; color: var(--hc-soft); font-size: 16px; text-align: left; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 14px 34px -14px rgba(15, 23, 42, 0.2); transition: border-color 160ms var(--hc-ease), box-shadow 160ms var(--hc-ease); }
.hc__search:focus-within { border-color: var(--hc-accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--hc-accent) 16%, transparent), 0 14px 34px -14px rgba(15, 23, 42, 0.2); }
.hc__search-icon { flex: none; }
.hc__search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0; font: inherit; color: var(--hc-ink); box-shadow: none; }
.hc__search input:focus { box-shadow: none; }
.hc__search input::placeholder { color: var(--hc-soft); opacity: 1; }
.hc__search input::-webkit-search-cancel-button { cursor: pointer; }
.hc__search-go { flex: none; height: 46px; padding: 0 22px; border: 0; border-radius: 9999px; background: var(--hc-accent); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color 160ms var(--hc-ease); }
.hc__search-go:hover { background: color-mix(in oklch, var(--hc-accent) 86%, black); }
.hc__search--inline { margin-top: 0; max-width: 600px; height: 50px; padding-left: 16px; padding-right: 6px; border-radius: 12px; font-size: 15px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.hc__search--inline .hc__search-go { height: 38px; padding: 0 16px; font-size: 14px; }

/* ── Home ─────────────────────────────────────────────────────────────── */

.hc__home { max-width: var(--hc-wide); margin: 0 auto; padding: 0 var(--hc-gutter); }
.hc__home--close { padding-bottom: 96px; }
.hc__block { padding-top: 72px; }
.hc__block-head { margin-bottom: 28px; }
.hc__block-title { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.15; }
.hc__block-sub { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--hc-soft); }

.hc__pops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.hc__pop { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; color: var(--hc-ink); text-decoration: none; }
.hc__pop-mark { grid-row: 1; color: var(--hc-accent); margin-top: 2px; }
.hc__pop-title, .hc__pop-text, .hc__pop-go { grid-column: 2; }
.hc__pop-title { grid-row: 1; font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; transition: color 160ms var(--hc-ease); }
.hc__pop-text { font-size: 15px; line-height: 1.55; color: var(--hc-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc__pop-go { margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; font-weight: 500; color: var(--hc-accent); }
.hc__pop:hover .hc__pop-title { color: var(--hc-accent); }
.hc__pop:hover .hc__chev, .hc__cat-head:hover .hc__chev, .hc__more:hover .hc__chev { transform: translateX(2px); }

.hc__cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; align-items: start; }
.hc__cat { border: 1px solid var(--hc-line); border-radius: 16px; overflow: hidden; background: #fff; }
.hc__cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; background: var(--hc-accent); color: #fff; text-decoration: none; }
a.hc__cat-head:hover { background: color-mix(in oklch, var(--hc-accent) 86%, black); }
.hc__cat-head h3 { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.hc__cat ul { list-style: disc; margin: 0; padding: 18px 22px 20px 40px; display: flex; flex-direction: column; gap: 10px; }
.hc__cat li::marker { color: var(--hc-line-strong); }
.hc__cat li a { font-size: 15px; line-height: 1.45; color: var(--hc-ink); text-decoration: underline; text-decoration-color: var(--hc-line-strong); text-underline-offset: 3px; }
.hc__cat li a:hover { color: var(--hc-accent); text-decoration-color: currentColor; }
.hc__cat ul:has(+ .hc__more) { padding-bottom: 12px; }
.hc__more { display: inline-flex; align-items: center; gap: 4px; margin: 0 20px 18px; font-size: 14px; font-weight: 600; color: var(--hc-accent); text-decoration: none; }

/* Typing on the home page swaps the search page's results into the home's
   frame — give them the article measure. */
.hc__home .hc__results { max-width: 700px; padding-top: 48px; }

/* ── Ask ──────────────────────────────────────────────────────────────── */

.hc__ask { margin-top: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 32px 36px; border-radius: 16px; background: var(--hc-tint); }
.hc__ask-title { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.hc__ask-body { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--hc-soft); }
.hc__main .hc__ask { margin-top: 56px; padding: 24px 28px; }
.hc__main .hc__ask-title { font-size: 18px; }

/* ── Inner pages ──────────────────────────────────────────────────────── */

.hc__band { background: var(--hc-tint); }
.hc__band-in { max-width: var(--hc-wide); margin: 0 auto; padding: 6px var(--hc-gutter) 30px; }

.hc__page { max-width: var(--hc-wide); margin: 0 auto; padding: 48px var(--hc-gutter) 104px; display: grid; grid-template-columns: 236px minmax(0, 1fr); grid-template-areas: "rail main"; column-gap: 72px; }
.hc__page--solo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
.hc__main { grid-area: main; min-width: 0; max-width: 700px; }

.hc__rail { grid-area: rail; align-self: start; position: sticky; top: 24px; }
.hc__rail-title { padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--hc-soft); }
.hc__rail ul { list-style: none; margin: 0; padding: 0; }
.hc__rail > ul { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.hc__rail-topic { display: block; padding: 8px 12px; border-radius: 12px; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--hc-ink); text-decoration: none; }
.hc__rail-topic:hover { background: var(--hc-quiet); }
.hc__rail-topic.is-current { background: var(--hc-tint); color: var(--hc-accent); font-weight: 600; }
.hc__rail-items { margin: 6px 0 10px 12px !important; padding-left: 12px !important; border-left: 1px solid var(--hc-line); display: flex; flex-direction: column; gap: 2px; }
.hc__rail-items a { display: block; padding: 5px 0; font-size: 14px; line-height: 1.4; color: var(--hc-soft); text-decoration: none; }
.hc__rail-items a:hover { color: var(--hc-ink); }
.hc__rail-items a.is-current { color: var(--hc-accent); font-weight: 600; }

.hc__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--hc-soft); }
.hc__crumbs .hc__chev { width: 12px; height: 12px; color: var(--hc-line-strong); }
.hc__crumbs a { color: var(--hc-soft); text-decoration: none; }
.hc__crumbs a:hover { color: var(--hc-accent); }
.hc__h1 { margin-top: 14px; font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.026em; line-height: 1.12; text-wrap: balance; }
.hc__lede { margin-top: 12px; max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--hc-soft); }
.hc__lede a { color: var(--hc-accent); text-underline-offset: 3px; }
.hc__meta { margin-top: 12px; font-size: 14px; color: var(--hc-soft); }

.hc__price { margin-top: 24px; padding: 16px 0; border-top: 1px solid var(--hc-line); border-bottom: 1px solid var(--hc-line); }
.hc__price b { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }

/* The body KnowledgeItem::Body#body_html prints. */
.hc__prose { margin-top: 28px; font-size: 16.5px; line-height: 1.75; color: var(--hc-body); }
.hc__prose > * + * { margin-top: 16px; }
.hc__prose h2 { margin-top: 36px; font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; color: var(--hc-ink); }
.hc__prose h3 { margin-top: 28px; font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 17px; font-weight: 700; color: var(--hc-ink); }
.hc__prose ul, .hc__prose ol { padding-left: 22px; }
.hc__prose ul { list-style: disc; }
.hc__prose ol { list-style: decimal; }
.hc__prose li + li { margin-top: 6px; }
.hc__prose li::marker { color: var(--hc-soft); }
.hc__prose li p { margin: 0; }
.hc__prose strong { font-weight: 600; color: var(--hc-ink); }
.hc__prose a { color: var(--hc-accent); text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--hc-accent) 35%, transparent); text-underline-offset: 3px; }
.hc__prose a:hover { text-decoration-color: currentColor; }
.hc__prose blockquote { padding-left: 16px; border-left: 1px solid var(--hc-line-strong); color: var(--hc-soft); }
.hc__prose hr { border: 0; border-top: 1px solid var(--hc-line); }
.hc__prose img { display: block; max-width: 100%; height: auto; border-radius: 12px; }

.hc__pdf { margin-top: 28px; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--hc-line); border-radius: 16px; background: #fff; text-decoration: none; color: var(--hc-ink); }
.hc__pdf:hover { border-color: var(--hc-accent); }
.hc__pdf svg { flex: none; }
.hc__pdf .t { font-size: 15px; font-weight: 600; }
.hc__pdf .d { font-size: 13.5px; color: var(--hc-soft); }
.hc__pdf .go { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--hc-accent); }

.hc__list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--hc-line); }
.hc__list li { border-bottom: 1px solid var(--hc-line); }
.hc__list a { display: block; padding: 18px 0; text-decoration: none; color: var(--hc-ink); }
.hc__list a:hover .t { color: var(--hc-accent); }
.hc__list .t { display: block; font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -0.008em; line-height: 1.4; transition: color 160ms var(--hc-ease); }
.hc__list .d { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--hc-soft); }
.hc__list mark { background: color-mix(in oklch, var(--hc-accent) 15%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.hc__count { margin-top: 14px; font-size: 15px; color: var(--hc-soft); }
.hc__none { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--hc-soft); }
.hc__none b { color: var(--hc-ink); font-weight: 600; }
.hc__none--home { padding: 72px 0 24px; }

/* ── Foot ─────────────────────────────────────────────────────────────── */

.hc__foot { border-top: 1px solid var(--hc-line); }
.hc__foot-in { max-width: var(--hc-wide); margin: 0 auto; padding: 24px var(--hc-gutter); display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--hc-soft); }
.hc__foot-in { align-items: center; }
.hc__made { display: inline-flex; align-items: center; gap: 8px; color: var(--hc-soft); text-decoration: none; }
.hc__made:hover { color: var(--hc-ink); }
.hc__made img { display: block; height: 22px; width: auto; }

/* ── Smaller screens ──────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hc__pops { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hc__page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "rail"; }
  .hc__rail { position: static; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hc-line); }
  .hc__rail-title { padding: 0; }
  .hc__rail-topic { margin: 0 -12px; }
}

@media (max-width: 640px) {
  .hc { --hc-gutter: 20px; }
  .hc__bar-in { min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
  .hc__brand-sep, .hc__brand-kind { display: none; }
  .hc__wa--bar { padding: 9px; }
  .hc__wa--bar span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hc__hero { padding-top: 48px; padding-bottom: 112px; }
  .hc__sub { font-size: 16.5px; }
  .hc__search { height: 56px; padding-left: 16px; padding-right: 6px; }
  .hc__search-go { height: 44px; padding: 0 16px; }
  .hc__search--inline { height: 48px; }
  .hc__search--inline .hc__search-go { display: none; }
  .hc__block { padding-top: 56px; }
  .hc__block-title { font-size: 23px; }
  .hc__ask { flex-direction: column; align-items: stretch; padding: 24px; }
  .hc__home--close { padding-bottom: 64px; }
  .hc__page { padding-top: 32px; padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .hc *, .hc__chev { transition: none !important; }
}
