/* help.css — the public Help Center: the landing and the article page (2026-09-23).
 *
 * Both views live in help.html and are chosen by the ?a= parameter, so this file styles both.
 * The glass surfaces are the project's own shared primitive from glass-primitives.css — NOT the
 * mockups' inline copy — so every card here stays inside the sheen audit and the contrast guard.
 * Anything sitting in a glass card's top-left corner carries .glass-lift with it (row 204).
 *
 * Secondary text is #5C6367 or darker throughout: row 177 measured the lighter greys failing on
 * a grained/glass ground, and row 151 measured slate-500 failing inside a glass card. */

.hc-wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* ---------------------------------------------------------------- hero + search */
.hc-hero { background: linear-gradient(160deg, var(--brand-navy-ground), #302036); padding: 58px 0 74px; margin-bottom: -38px; }
.hc-hero .hc-wrap { text-align: center; }
.hc-eb { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--brand-cream-rgb),.72); }
.hc-hero h1 { font-size: 36px; font-weight: 600; letter-spacing: -.03em; color: var(--brand-cream); margin-top: 12px; }
.hc-hero > .hc-wrap > p { font-size: 15px; color: rgba(var(--brand-cream-rgb),.82); margin-top: 10px; }

.hc-search { position: relative; max-width: 600px; margin: 26px auto 0; }
.hc-search input { width: 100%; height: 56px; padding: 0 20px 0 52px; border: none; border-radius: 15px;
  background: #ffffff; font: 500 15px 'Bricolage Grotesque', sans-serif; font-variant-numeric: tabular-nums; color: #302036; outline: none;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); }
.hc-search input::placeholder { color: var(--brand-muted); }
.hc-search input:focus { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45), 0 0 0 3px rgba(var(--brand-teal-ground-rgb),.45); }
.hc-search svg { position: absolute; left: 19px; top: 50%; transform: translateY(-50%); }

.hc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 17px; }
.hc-chip { font-size: 12px; color: rgba(var(--brand-cream-rgb),.92); background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2); padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.hc-chip:hover { background: rgba(255, 255, 255, .2); color: #ffffff; }

/* ---------------------------------------------------------------- results (search) */
.hc-results { margin-bottom: 14px; padding: 6px 0; }
.hc-empty { padding: 26px 22px; font-size: 13.5px; color: #4E4550; line-height: 1.65; }
/* Batch E (help_search_v1): the count line, the article line, the highlight, the arrow-key row and
   "Most asked" under the no-result line. body.ip-help so these outrank im-inner.css's result rules. */
body.ip-help .hc-results .hc-rhead {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 10px;
  border-bottom: 1px solid rgba(var(--brand-navy-rgb), .16); font-size: 13.5px; color: var(--im-muted);
}
body.ip-help .hc-results .hc-rhead b { font-weight: 600; color: var(--im-ink); }
body.ip-help .hc-qq .hc-sn { display: block; font-size: 14px; line-height: 1.5; color: var(--im-plum-d); margin-top: 6px; max-width: 68ch; }
body.ip-help .hc-results mark { background: rgba(var(--brand-terracotta-tint-rgb), .28); color: inherit; border-radius: 3px; padding: 0 1px; }
body.ip-help .hc-results .hc-aq.is-kb {
  background: rgba(var(--brand-navy-rgb), .05); border-radius: 12px; padding-left: 12px; padding-right: 12px; margin: 0 -12px;
}
body.ip-help .hc-results .hc-alt { padding: 6px 0 18px; }
body.ip-help .hc-results .hc-alt h3 {
  font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--im-muted); margin: 6px 0 2px;
}

/* ---------------------------------------------------------------- intro band */
/* ★ THE FIRST CARD SITS OVER THE DARK HERO, so it cannot use .glass's default translucency.
   .hc-hero's margin-bottom: -38px lifts this band up over the navy on purpose (the mockup's
   own look), and measured at 1440px the top strip composites text over that navy: the
   “New here?” kicker read 3.61:1 and the intro list's empty-state 2.85:1. Same finding as the
   Philosophy panel (row 136), same fix — override the background to a much more opaque white
   while keeping the blur, border and shadow. .hc-results is given the same treatment because
   it renders in the same overlap position when a search is active. */
.hc-intro, .hc-results {
  background: linear-gradient(150deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .93));
}
.hc-intro { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); margin-bottom: 14px; }
.hc-ib { padding: 26px 28px; }
.hc-k { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--brand-teal-deep); }
.hc-ib h2 { font-size: 21px; font-weight: 600; letter-spacing: -.022em; color: #302036; margin-top: 11px; }
.hc-ib p { font-size: 13.5px; color: #4E4550; line-height: 1.65; margin-top: 9px; }
.hc-ilist { padding: 22px 28px; border-left: 1px solid rgba(var(--brand-navy-ground-rgb),.08); }
.hc-ilist a { display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-top: 1px solid rgba(var(--brand-navy-ground-rgb),.07); font-size: 13.5px; color: #302036; text-decoration: none; font-weight: 500; }
.hc-ilist a:first-child { border-top: none; padding-top: 2px; }
.hc-ilist a:hover { color: var(--brand-teal-deep); }
.hc-ilist svg { flex-shrink: 0; color: #656066; }

/* ---------------------------------------------------------------- section heads */
.hc-sech { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 32px 0 13px; }
.hc-sech b { font-size: 17px; font-weight: 600; color: #302036; letter-spacing: -.015em; }
.hc-sech span { font-size: 12px; color: #656066; }

/* ---------------------------------------------------------------- topic cards */
.hc-cats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.hc-cat { padding: 20px 21px; display: flex; flex-direction: column; }
.hc-cat h3 { font-size: 15px; font-weight: 600; color: #302036; margin-top: 13px; letter-spacing: -.012em; }
.hc-cat .hc-d { font-size: 12.5px; color: #656066; line-height: 1.55; margin-top: 5px; min-height: 38px; }
.hc-cat ul { list-style: none; margin-top: 12px; border-top: 1px solid rgba(var(--brand-navy-ground-rgb),.08); padding: 6px 0 0; }
.hc-cat li a { display: block; font-size: 12.5px; color: #4E4550; text-decoration: none; padding: 6px 0; line-height: 1.45; }
.hc-cat li a:hover { color: var(--brand-teal-deep); }
.hc-all { margin-top: auto; padding-top: 11px; font-size: 12px; font-weight: 600; color: var(--brand-teal-deep); text-decoration: none; }
.hc-soon { margin-top: auto; padding-top: 11px; font-size: 12px; color: #656066; }

/* ---------------------------------------------------------------- most asked */
.hc-asked { padding: 6px 0; }
.hc-aq { display: flex; align-items: center; gap: 14px; padding: 15px 22px;
  border-top: 1px solid rgba(var(--brand-navy-ground-rgb),.08); text-decoration: none; }
.hc-aq:first-child { border-top: none; }
.hc-aq:hover { background: rgba(var(--brand-navy-ground-rgb),.03); }
.hc-qq { flex: 1; min-width: 0; }
.hc-qq b { display: block; font-size: 14px; font-weight: 600; color: #302036; }
.hc-qq span { display: block; font-size: 12px; color: #656066; margin-top: 3px; }
.hc-aq svg { flex-shrink: 0; color: #958F96; }

/* ---------------------------------------------------------------- contact band */
.hc-contact { display: grid; grid-template-columns: minmax(0,1.2fr) repeat(3, minmax(0,1fr)); margin-top: 30px; }
.hc-cb0 { padding: 24px 26px; }
.hc-cb0 b { display: block; font-size: 17px; font-weight: 600; color: #302036; letter-spacing: -.015em; }
.hc-cb0 span { display: block; font-size: 13px; color: #656066; margin-top: 7px; line-height: 1.6; }
.hc-ch { padding: 22px 20px; border-left: 1px solid rgba(var(--brand-navy-ground-rgb),.08); text-decoration: none; display: block;
  background: none; border-top: none; border-right: none; border-bottom: none; width: 100%; text-align: left;
  font: inherit; cursor: pointer; }
.hc-ch:hover { background: rgba(var(--brand-navy-ground-rgb),.03); }
.hc-ch b { display: block; font-size: 13.5px; font-weight: 600; color: #302036; margin-top: 11px; }
.hc-ch span { display: block; font-size: 12px; color: #656066; margin-top: 4px; line-height: 1.5; }

/* ================================================================= article view */
.hc-art-wrap { padding: 34px 22px 0; max-width: 1000px; margin: 0 auto; }
.hc-crumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #656066;
  margin-bottom: 16px; flex-wrap: wrap; }
.hc-crumb a { color: #656066; text-decoration: none; }
.hc-crumb a:hover { color: #302036; }
.hc-crumb b { color: #302036; font-weight: 600; }

.hc-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 22px; align-items: start; }
.hc-side { position: sticky; top: 24px; }
.hc-scat { margin-bottom: 18px; }
.hc-scat b { display: block; font-size: 10px; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: #656066; margin-bottom: 8px; }
.hc-scat a { display: block; font-size: 12.5px; color: #4E4550; text-decoration: none;
  padding: 6px 10px; border-radius: 8px; line-height: 1.4; }
.hc-scat a:hover { background: rgba(var(--brand-navy-ground-rgb),.05); color: #302036; }
.hc-scat a.is-on { background: rgba(var(--brand-navy-ground-rgb),.08); color: #302036; font-weight: 600; }

.hc-art { padding: 30px 34px 34px; }
.hc-tagrow { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; flex-wrap: wrap; }
.hc-tag { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px; background: rgba(var(--brand-navy-ground-rgb),.08); color: #4E4550; }
.hc-rt { font-size: 11px; color: #656066; }
.hc-art h1 { font-size: 27px; font-weight: 600; letter-spacing: -.026em; color: #302036; line-height: 1.25; }
.hc-lede { font-size: 15px; color: #4E4550; line-height: 1.65; margin-top: 13px; }

/* blocks, rendered by article-render.js — MOVED to article-render.css (2026-09-24), so the
   blog can render the same blocks without a second copy of these rules. This page links it.
   Do not re-add .ha-* rules here. */

.hc-related { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(var(--brand-navy-ground-rgb),.1); }
.hc-related > b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: #656066; margin-bottom: 11px; }
.hc-rel { display: flex; align-items: center; gap: 10px; padding: 11px 0;
  border-top: 1px solid rgba(var(--brand-navy-ground-rgb),.07); font-size: 13.5px; color: #4E4550; text-decoration: none; }
.hc-rel:first-of-type { border-top: none; }
.hc-rel:hover { color: #302036; }
.hc-rel svg { flex-shrink: 0; color: #656066; }

.hc-ask { display: flex; align-items: center; gap: 16px; padding: 19px 21px; margin: 14px 0 0; flex-wrap: wrap; }
.hc-ab { flex: 1; min-width: 220px; }
.hc-ab b { display: block; font-size: 14px; font-weight: 600; color: #302036; }
.hc-ab span { display: block; font-size: 12.5px; color: #656066; margin-top: 4px; line-height: 1.55; }
.hc-ask-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hc-note { font-size: 12px; color: #656066; text-align: center; line-height: 1.7; margin: 26px 0 0; }

/* the <noscript> index — a real, crawlable, readable list when JS never runs */
.hc-ns { max-width: 1000px; margin: 0 auto; padding: 30px 22px; }
.hc-ns h2 { font-size: 18px; font-weight: 600; color: #302036; }
.hc-ns p { font-size: 13.5px; color: #4E4550; line-height: 1.7; margin-top: 8px; }

.hc-loading { padding: 40px 22px; text-align: center; font-size: 13.5px; color: #656066; }

@media (max-width: 880px) {
  .hc-cats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hc-intro { grid-template-columns: 1fr; }
  .hc-ilist { border-left: none; border-top: 1px solid rgba(var(--brand-navy-ground-rgb),.08); }
  .hc-contact { grid-template-columns: 1fr 1fr; }
  .hc-cb0 { grid-column: 1 / -1; }
  .hc-ch { border-left: none; border-top: 1px solid rgba(var(--brand-navy-ground-rgb),.08); }
}
@media (max-width: 840px) {
  .hc-layout { grid-template-columns: 1fr; }
  .hc-side { position: static; display: none; }
  .hc-art { padding: 24px 20px 26px; }
  .hc-art h1 { font-size: 23px; }
}
@media (max-width: 600px) {
  .hc-hero { padding: 40px 0 64px; }
  .hc-hero h1 { font-size: 27px; }
  .hc-hero > .hc-wrap > p { font-size: 14px; }
  .hc-search input { height: 52px; font-size: 14px; }
  .hc-cats { grid-template-columns: 1fr; }
  .hc-cat .hc-d { min-height: 0; }
  .hc-contact { grid-template-columns: 1fr; }
  .hc-ib, .hc-ilist { padding: 20px; }
  .hc-aq { padding: 14px 18px; }
  .hc-art-wrap { padding-top: 24px; }
}
