/* Help center (Dec 1, 2026). Loaded only on /help/ pages, after styles.css.
   The site's own palette: porcelain and ink, with the logo spark as the one
   colour. Light and dark follow the site's theme switch. */
:root, :root[data-theme="light"] {
  --hp-tint: #FDF5ED; --hp-tint-line: rgba(232,147,58,.34); --hp-ic-bg: #FDF1E4; --hp-ic: #B4641F;
  --hp-hero-a: #FFFFFF; --hp-hero-b: var(--ivory); --hp-glow: rgba(232,147,58,.16);
  --hp-note-bg: #FDF7F0; --hp-imp-bg: #FFF3EA; --hp-row-hover: #FAF8F5;
}
:root[data-theme="dark"] {
  --hp-tint: #2C2A2B; --hp-tint-line: rgba(232,147,58,.30); --hp-ic-bg: rgba(232,147,58,.12); --hp-ic: #F0A659;
  --hp-hero-a: #222227; --hp-hero-b: var(--ivory); --hp-glow: rgba(232,147,58,.08);
  --hp-note-bg: #2A2A30; --hp-imp-bg: #33292A; --hp-row-hover: #2C2C33;
}

.hp { padding-bottom: 72px; }
/* The hero glow runs edge to edge; keep it from widening the page. */
body:has(main[data-page="help"]) { overflow-x: clip; }
.hp a { text-underline-offset: 3px; }
.hp-h2 { font-family: var(--f-d); font-weight: 400; font-size: clamp(28px, 3.2vw, 36px); margin: 0 0 22px; }
.hp-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: 14px; color: var(--ink-3); }

/* Search: a pill field with a suggestions list under it. */
.hp-search { position: relative; max-width: 380px; width: 100%; }
.hp-search > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.hp-search input { width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); padding: 0 18px 0 44px; font: 500 15px var(--f-b); box-shadow: 0 1px 2px rgba(24,24,27,.05); -webkit-appearance: none; appearance: none; }
.hp-search input::placeholder { color: var(--ink-3); opacity: 1; }
.hp-search input:focus { outline: 2px solid var(--spark); outline-offset: 2px; border-color: transparent; }
.hp-search-big { max-width: 660px; margin: 30px auto 0; }
.hp-search-big > svg { left: 22px; }
.hp-search-big input { height: 60px; font-size: 17px; padding-left: 54px; box-shadow: var(--sh-1); border-color: color-mix(in srgb, var(--ink-3) 55%, var(--paper)); }
.hp-suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-2); max-height: min(440px, 60vh); overflow: auto; }
.hp-suggest[hidden] { display: none; }
.hp-suggest li a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.hp-suggest li a strong { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; }
.hp-suggest li a span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.hp-suggest li[aria-selected="true"] a, .hp-suggest li a:hover { background: var(--hp-row-hover); }
.hp-suggest li.hp-suggest-all a { font-size: 14px; font-weight: 600; color: var(--ink-2); border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; margin-top: 4px; }
.hp-suggest li.hp-suggest-none { padding: 12px 14px; font-size: 14px; color: var(--ink-2); }

/* Home */
.hp-hero { position: relative; text-align: center; padding: 72px 0 40px; }
.hp-hero::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: radial-gradient(60% 90% at 50% 0%, var(--hp-glow), transparent 70%), linear-gradient(180deg, var(--hp-hero-a), var(--hp-hero-b)); }
.hp-hero h1 { font-size: clamp(44px, 6.4vw, 72px); margin: 0 0 14px; }
.hp-hero .lead { max-width: 34em; margin: 0 auto; }
.hp-hero-small { padding: 28px 0 24px; }
.hp-hero-small h1 { font-size: clamp(34px, 4.6vw, 52px); }
.hp-popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; max-width: 820px; margin: 20px auto 0; font-size: 14px; }
.hp-popular > span { color: var(--ink-3); font-weight: 600; }
.hp-popular a { color: var(--ink-2); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.hp-popular a:hover { color: var(--ink); border-color: var(--line-2); }

.hp-collections { padding-top: 40px; }
.hp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; column-gap: 16px; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.hp-card:hover { border-color: var(--line-2); box-shadow: var(--sh-1); transform: translateY(-1px); }
.hp-card .hp-ic { grid-row: 1 / span 3; }
.hp-card-title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.hp-card-desc { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.hp-card-count { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.hp-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--hp-ic-bg); color: var(--hp-ic); border: 1px solid var(--hp-tint-line); flex: none; }
.hp-ic-lg { width: 60px; height: 60px; border-radius: 18px; }
.hp-ic-lg svg { width: 30px; height: 30px; }

.hp-also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.hp-also-card { display: block; padding: 20px 22px; border-radius: 18px; background: var(--sand); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.hp-also-card:hover { border-color: var(--line-2); }
.hp-also-card strong { display: block; font-size: 16px; }
.hp-also-card span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

.hp-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 56px; padding: 30px 34px; border-radius: 24px; background: var(--hp-tint); border: 1px solid var(--hp-tint-line); }
.hp-contact h2 { font-size: 30px; margin: 0 0 6px; }
.hp-contact p { margin: 0; color: var(--ink-2); max-width: 36em; }
.hp-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Collection and article pages */
.hp-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 26px 0 6px; }
.hp-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.hp-crumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); }
.hp-crumbs a { color: var(--ink-2); text-decoration: none; }
.hp-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.hp-crumbs [aria-current] { color: var(--ink-3); }
.hp-chev { flex: none; color: var(--ink-3); }

.hp-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 28px; align-items: start; }
.hp-layout-article { grid-template-columns: 240px minmax(0, 1fr) 200px; gap: 44px; }
.hp-side { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow: auto; font-size: 14px; padding-bottom: 8px; }
.hp-side > p { margin: 18px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hp-side > p:first-child { margin-top: 0; }
.hp-side ul { list-style: none; margin: 0; padding: 0; }
.hp-side li a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.hp-side li a svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.hp-side li a:hover { color: var(--ink); background: var(--hp-row-hover); }
.hp-side li a[aria-current] { color: var(--ink); background: var(--sand); font-weight: 600; }
.hp-side li a[aria-current] svg { color: var(--hp-ic); }
.hp-side-back { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 700; }
.hp-side-back svg { width: 20px; height: 20px; color: var(--hp-ic); flex: none; }
.hp-side-articles li a { padding: 6px 10px; }

.hp-col-head { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.hp-col-head h1 { font-size: clamp(36px, 4.4vw, 52px); margin: 2px 0 8px; }
.hp-col-head .lead { margin: 0; font-size: 18px; }
.hp-sec { margin-top: 34px; }
.hp-sec-title { font-family: var(--f-b); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.hp-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); overflow: hidden; }
.hp-rows li + li { border-top: 1px solid var(--line); }
.hp-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; color: var(--ink); text-decoration: none; }
.hp-row:hover { background: var(--hp-row-hover); }
.hp-row-text { flex: 1; min-width: 0; }
.hp-row-title { display: block; font-weight: 600; font-size: 16px; line-height: 1.4; }
.hp-row-sum { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.hp-row .hp-chev { transition: transform .18s ease; }
.hp-row:hover .hp-chev { transform: translateX(2px); color: var(--ink); }

/* Article */
.hp-article { min-width: 0; max-width: 46em; }
.hp-art-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.hp-art-head h1 { font-size: clamp(34px, 4.2vw, 48px); margin: 0 0 12px; }
.hp-art-sum { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.hp-body { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); padding-top: 8px; }
.hp-body h2 { font-family: var(--f-d); font-weight: 400; font-size: 30px; color: var(--ink); margin: 40px 0 12px; scroll-margin-top: 96px; }
.hp-body h3 { font-family: var(--f-b); font-weight: 700; font-size: 18px; color: var(--ink); margin: 28px 0 8px; scroll-margin-top: 96px; }
.hp-body p { margin: 0 0 16px; }
.hp-body strong { color: var(--ink); font-weight: 700; }
.hp-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--spark); text-decoration-thickness: 1.5px; }
.hp-body a:hover { text-decoration-thickness: 2.5px; }
.hp-body ul { margin: 0 0 18px; padding-left: 22px; }
.hp-body ul li { margin: 6px 0; padding-left: 4px; }
.hp-body ul li::marker { color: var(--spark); }
.hp-steps { list-style: none; counter-reset: hp-step; margin: 4px 0 22px; padding: 0; }
.hp-steps li { counter-increment: hp-step; position: relative; padding: 0 0 14px 46px; min-height: 32px; }
.hp-steps li::before { content: counter(hp-step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--f-b); color: var(--ink); background: var(--hp-ic-bg); border: 1px solid var(--hp-tint-line); }
.hp-steps li + li::after { content: ""; position: absolute; left: 15px; top: -14px; height: 14px; border-left: 1px dashed var(--line-2); }
.hp-step-text { display: block; padding-top: 2px; }
.hp-note { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 20px; padding: 16px 18px; border-radius: 14px; background: var(--hp-note-bg); border: 1px solid var(--line); }
.hp-note svg { flex: none; margin-top: 4px; color: var(--spark); }
.hp-note p { margin: 0; font-size: 15.5px; line-height: 1.65; }
.hp-note-important { background: var(--hp-imp-bg); border-color: var(--hp-tint-line); }
.hp-table { margin: 6px 0 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.hp-table:focus-visible { outline: 2px solid var(--spark); outline-offset: 2px; }
.hp-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.hp-table th { text-align: left; font-weight: 700; color: var(--ink); background: var(--sand); padding: 11px 14px; white-space: nowrap; }
.hp-table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
/* Round 5 (Dec 2 2026): on phones each table row stacks as its own block, with the column name above each cell, so nothing is cut off at the right edge. */
@media (max-width: 640px) {
  .hp-table { overflow-x: visible; }
  .hp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hp-table table, .hp-table tbody, .hp-table tr, .hp-table td { display: block; width: 100%; }
  .hp-table tr { padding: 6px 0; border-top: 1px solid var(--line); }
  .hp-table tbody tr:first-child { border-top: 0; }
  .hp-table td { border-top: 0; padding: 6px 16px; overflow-wrap: anywhere; }
  .hp-table td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink-3); margin-bottom: 2px; }
}
.hp-related { margin-top: 44px; }
.hp-related h2 { font-size: 26px; margin: 0 0 14px; }

.hp-toc { position: sticky; top: 96px; font-size: 14px; }
.hp-toc > p { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hp-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.hp-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.hp-toc li a:hover { color: var(--ink); }
.hp-toc li a.is-active { color: var(--ink); border-left-color: var(--spark); font-weight: 600; }
.hp-toc-m { display: none; }

/* Search results page */
.hp-results { max-width: 760px; margin: 0 auto; }
.hp-results-count { color: var(--ink-2); margin: 0 0 14px; }
.hp-results .hp-rows:empty { display: none; }
.hp-results .hp-row-coll { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

@media (max-width: 1180px) {
  .hp-layout-article { grid-template-columns: 220px minmax(0, 1fr); }
  .hp-layout-article .hp-toc { display: none; }
  .hp-toc-m { display: block; margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 0 16px; }
  .hp-toc-m summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink); }
  .hp-toc-m ol { list-style: none; margin: 0 0 12px; padding: 0; border-left: 1px solid var(--line); }
  .hp-toc-m li a { display: block; padding: 6px 0 6px 14px; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
}
@media (max-width: 960px) {
  .hp-grid, .hp-also { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-layout, .hp-layout-article { grid-template-columns: 1fr; gap: 20px; padding-top: 16px; }
  .hp-side { display: none; }
  .hp-toc-empty { display: none !important; }
  .hp-article { max-width: none; }
  .hp-top .hp-search { max-width: none; }
}
@media (max-width: 600px) {
  .hp-hero { padding: 40px 0 26px; }
  .hp-search-big input { height: 54px; font-size: 16px; }
  .hp-grid, .hp-also { grid-template-columns: 1fr; gap: 12px; }
  .hp-card { padding: 18px; }
  .hp-popular { justify-content: flex-start; }
  .hp-col-head { gap: 14px; }
  .hp-col-head .hp-ic-lg { width: 48px; height: 48px; border-radius: 14px; }
  .hp-row { padding: 14px 16px; }
  .hp-body { font-size: 16px; }
  .hp-body h2 { font-size: 26px; margin-top: 32px; }
  .hp-steps li { padding-left: 42px; }
  .hp-contact { padding: 24px 20px; margin-top: 40px; }
  .hp-contact-actions, .hp-contact-actions .btn { width: 100%; }
  .hp-search input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-card, .hp-row .hp-chev { transition: none; }
  .hp-card:hover { transform: none; }
}
