/* ====================================================================
   Support help center — hub (/support/) and article (/support/<slug>/).
   Scoped .hc-* (".support-*" belongs to the marketing SupportSection).
   Typography mirrors blog.css's .post-* scale.
   ==================================================================== */

/* ---- Hub hero ---- */
.hc-hero { padding-bottom: 24px; }
.hc-h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.6vw, 3.8rem);
  font-weight: 500; letter-spacing: -0.032em; line-height: 1.03;
  margin: 0; text-wrap: balance;
}
.hc-h1 em { font-style: normal; color: var(--accent); }
.hc-lede {
  font-family: var(--serif); font-size: 19px; line-height: 1.5;
  color: var(--ink-2); margin: 18px 0 0; max-width: 56ch; text-wrap: pretty;
}

/* ---- Hub category groups ---- */
.hc-list-section { padding-top: 40px; }
.hc-category { margin: 0 0 52px; }
.hc-category:last-child { margin-bottom: 0; }
.hc-category-h {
  font-family: var(--serif); font-size: 28px; font-weight: 500;
  letter-spacing: -0.024em; line-height: 1.15; margin: 0 0 20px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.hc-groups {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px;
}
@media (max-width: 900px) { .hc-groups { grid-template-columns: 1fr; } }
.hc-group-h {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4);
  margin: 0 0 12px;
}
.hc-group-list { list-style: none; margin: 0; padding: 0; }
.hc-group-list li { margin: 0 0 10px; }
.hc-group-list a {
  font-size: 15.5px; line-height: 1.45; color: var(--ink-2);
  text-decoration: none;
}
.hc-group-list a:hover { color: var(--accent); text-decoration: underline; }

/* ---- Article page ---- */
.hc-wrap { max-width: 760px; }
.hc-article-hero { padding-bottom: 0; }
.hc-crumb {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4);
  margin: 0 0 22px;
}
.hc-crumb a { color: var(--accent-warm); text-decoration: none; }
.hc-crumb a:hover { text-decoration: underline; }
.hc-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  font-weight: 500; letter-spacing: -0.028em; line-height: 1.08;
  margin: 0; text-wrap: balance;
}
.hc-body-section { padding-top: 48px; }

/* ---- Article body typography ---- */
.hc-body p {
  font-size: 17px; line-height: 1.72; color: var(--ink-2);
  margin: 0 0 20px; text-wrap: pretty;
}
.hc-body h2 {
  font-family: var(--serif); font-size: 28px; font-weight: 500;
  letter-spacing: -0.024em; line-height: 1.15; margin: 44px 0 16px; text-wrap: balance;
}
.hc-body h3 {
  font-size: 20px; font-weight: 600; letter-spacing: -0.018em;
  line-height: 1.25; margin: 34px 0 12px;
}
.hc-body h4 {
  font-size: 16.5px; font-weight: 600; letter-spacing: -0.012em;
  line-height: 1.3; margin: 26px 0 10px;
}
.hc-body h2:first-child, .hc-body h3:first-child, .hc-body p:first-child { margin-top: 0; }
.hc-body ul, .hc-body ol { margin: 0 0 20px; padding-left: 26px; }
.hc-body li {
  font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 0 0 8px;
}
.hc-body li::marker { color: var(--accent-warm); }
.hc-body li ul, .hc-body li ol { margin: 8px 0 0; }
.hc-body strong { color: var(--ink); font-weight: 600; }
.hc-body a {
  color: var(--accent); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.hc-body a:hover { color: var(--accent-deep); }
.hc-body code {
  font-family: var(--mono); font-size: 0.88em;
  background: var(--paper-warm); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 5px;
}
.hc-body hr {
  border: 0; border-top: 1px solid var(--line); margin: 36px 0;
}
.hc-body blockquote {
  margin: 0 0 20px; padding: 14px 18px;
  border-left: 3px solid var(--accent-warm);
  background: var(--paper-warm); border-radius: 0 8px 8px 0;
  font-size: 16px; line-height: 1.65; color: var(--ink-2);
}
.hc-body blockquote p { font-size: 16px; margin: 0 0 10px; }
.hc-body blockquote p:last-child { margin-bottom: 0; }
.hc-body pre {
  margin: 0 0 20px; padding: 16px 18px; overflow-x: auto;
  background: var(--ink); color: var(--paper);
  border-radius: 10px; font-size: 14px; line-height: 1.6;
}
.hc-body pre code {
  background: none; border: 0; padding: 0; color: inherit; font-size: inherit;
}

/* ---- Tables ---- */
.hc-table-scroll { margin: 0 0 20px; overflow-x: auto; }
.hc-body table {
  width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5;
}
.hc-body th {
  text-align: left; font-weight: 600; color: var(--ink);
  padding: 10px 14px; border-bottom: 2px solid var(--ink-4);
  white-space: nowrap;
}
.hc-body td {
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  color: var(--ink-2); vertical-align: top;
}

/* ---- Figures ---- */
.hc-figure { margin: 0 0 24px; }
.hc-figure img {
  max-width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 10px;
}
.hc-figure figcaption {
  font-size: 13.5px; color: var(--ink-4); margin: 10px 0 0;
}

/* ---- Search (SupportSearch client island) ---- */
.hc-search { position: relative; }
.hc-search--hero { max-width: 560px; margin-top: 26px; }
.hc-search--compact { width: 260px; flex-shrink: 0; }
.hc-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-4); pointer-events: none;
}
.hc-search--compact .hc-search-icon { left: 11px; width: 14px; height: 14px; }
.hc-search-input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 16px 13px 42px;
  -webkit-appearance: none; appearance: none;
}
.hc-search--compact .hc-search-input {
  font-size: 16px; border-radius: 8px; padding: 7px 12px 7px 32px;
}
.hc-search-input::placeholder { color: var(--ink-4); }
.hc-search-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.hc-search-input::-webkit-search-decoration,
.hc-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hc-search-results {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  z-index: 40; list-style: none; margin: 0; padding: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(20, 22, 28, 0.12);
  max-height: min(60vh, 420px); overflow-y: auto;
}
.hc-search.is-open .hc-search-results { display: block; }
.hc-search--compact .hc-search-results {
  left: auto; right: 0; width: min(420px, calc(100vw - 48px));
}
.hc-search-result {
  display: block; padding: 12px 16px; text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.hc-search-results li:last-child .hc-search-result { border-bottom: 0; }
.hc-search-result:hover, .hc-search-result.is-active { background: var(--paper-warm); }
.hc-search-result-title {
  display: block; font-size: 15.5px; font-weight: 600; line-height: 1.35;
  color: var(--ink);
}
.hc-search-result-meta {
  display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4);
  margin: 4px 0 2px;
}
.hc-search-result-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 13.5px; line-height: 1.5; color: var(--ink-3);
}
.hc-search-empty { padding: 14px 16px; font-size: 14px; color: var(--ink-4); }
.hc-crumb-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin: 0 0 22px;
}
.hc-crumb-row .hc-crumb { margin: 0; padding-top: 8px; }
@media (max-width: 700px) {
  .hc-crumb-row { flex-direction: column; }
  .hc-crumb-row .hc-crumb { padding-top: 0; }
  .hc-search--compact { width: 100%; }
  .hc-search--compact .hc-search-results { left: 0; right: 0; width: auto; }
}
.hc-sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden;
  white-space: nowrap;
}
