/* NetWise Help Center on getnetwise.co/docs/.
   Follows the homepage system: white + sand (#F5F5F5) sections, #171717 text,
   #404040 body, Inter, 800-weight headings, pill .btn buttons, purple #580A46 accent.
   The header is the homepage navbar itself (assets/site-nav.*.css). The guide body keeps doc.css (.nwd). */
:root {
  --hc-brand: #580A46;
  --hc-brand-soft: #faf5f8;
  --hc-brand-line: #e9d9e4;
  --hc-ink: #171717;
  --hc-body: #404040;
  --hc-muted: #5f5f5f;      /* 6.4:1 on white */
  --hc-faint: #737373;      /* labels only, 4.7:1 */
  --hc-line: #E5E5E5;
  --hc-line-2: #D4D4D4;
  --hc-sand: #F5F5F5;
  --hc-top: 81px;           /* homepage navbar: 14px + 52px button + 14px + 1px border */
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--hc-top) + 16px); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.hc { margin: 0; padding-top: var(--hc-top); background: #fff; color: var(--hc-ink); line-height: 1.6; overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
.hc .nwd { font-family: inherit; color: var(--hc-ink); }
:where(.hc) a { color: inherit; }
.hc-skip { position: absolute; left: -9999px; top: 8px; z-index: 3000; background: #fff; padding: 8px 12px; border-radius: 8px; }
.hc-skip:focus { left: 8px; }
.hc :focus-visible { outline: 2px solid var(--hc-brand); outline-offset: 2px; }

/* Help Doc is the current page: colour + underline only, so the header never shifts. */
.navbar .nav-links a.is-active { color: var(--hc-brand); position: relative; }
.navbar .nav-links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--hc-brand); }
@media (max-width: 991px) { .navbar .nav-links.open a.is-active::after { display: none; } }

.hc-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hc-label { display: inline-block; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; color: var(--hc-faint); margin-bottom: 16px; }
.hc kbd { font: 600 11px/1 'Inter', sans-serif; color: var(--hc-faint); border: 1px solid var(--hc-line-2); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; background: #fff; }

/* ---- search field (hero, sidebar button, palette) ---- */
.hc-field { position: relative; }
.hc-field > svg { position: absolute; left: 20px; top: 30px; transform: translateY(-50%); color: var(--hc-faint); pointer-events: none; }
.hc-field input { width: 100%; height: 60px; padding: 0 20px 0 54px; border: 1px solid var(--hc-line-2); border-radius: 16px; background: #fff;
  font: inherit; font-size: 17px; color: var(--hc-ink); outline: none; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: border-color .2s ease, box-shadow .2s ease; }
.hc-field input::placeholder { color: #8a8a8a; }
.hc-field input:hover { border-color: #b5b5b5; }
.hc-field input:focus { border-color: var(--hc-brand); box-shadow: 0 0 0 4px rgba(88,10,70,.12); }
.hc-field input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---- landing ---- */
.hc-hero { padding: 72px 0 56px; text-align: center; position: relative; z-index: 3; }
.hc-hero h1 { font-size: 64px; font-weight: 800; line-height: 1.05; letter-spacing: -2px; margin: 0 0 32px; color: var(--hc-ink); }
.hc-hero .hc-field { max-width: 680px; margin: 0 auto; text-align: left; }
.hc-hero .hc-results { position: absolute; left: 0; right: 0; top: 68px; z-index: 30; background: #fff; border: 1px solid var(--hc-line); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.14); max-height: 440px; overflow: auto; }

.hc-topics { background: var(--hc-sand); padding: 64px 0; }
.hc-topics-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.hc-h2 { font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1.2; margin: 0; color: var(--hc-ink); }
.hc-topics-head p { margin: 0; color: var(--hc-muted); font-size: 15px; }
.hc-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hc-cat { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: #fff; border: 1px solid var(--hc-line); border-radius: 16px;
  text-decoration: none; transition: border-color .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1); }
.hc-cat:hover { border-color: var(--hc-line-2); box-shadow: 0 8px 24px rgba(0,0,0,.06); transform: translateY(-2px); }
.hc-cat-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--hc-brand-soft); color: var(--hc-brand); display: grid; place-items: center; margin-bottom: 10px; }
.hc-cat h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--hc-ink); }
.hc-cat p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--hc-muted); }
.hc-cat small { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--hc-brand); }

.hc-all { padding: 72px 0 24px; }
.hc-group { padding: 0 0 56px; scroll-margin-top: calc(var(--hc-top) + 16px); }
.hc-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.hc-group-head .hc-cat-icon { margin: 0; width: 36px; height: 36px; border-radius: 10px; }
.hc-group h2 { font-size: 24px; font-weight: 700; letter-spacing: -.5px; line-height: 1.3; margin: 0; color: var(--hc-ink); }
.hc-group > p { color: var(--hc-muted); margin: 0 0 20px 48px; font-size: 16px; }
.hc-guides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hc-guide { display: flex; align-items: center; gap: 16px; height: 100%; padding: 18px 20px; border: 1px solid var(--hc-line); border-radius: 12px; text-decoration: none; background: #fff;
  transition: border-color .2s ease, background .2s ease; }
.hc-guide:hover { border-color: var(--hc-brand); background: var(--hc-brand-soft); }
.hc-guide > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hc-guide strong { font-size: 16px; font-weight: 600; color: var(--hc-ink); line-height: 1.4; }
.hc-guide em { font-style: normal; font-size: 14px; line-height: 1.5; color: var(--hc-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-guide > svg { flex: 0 0 auto; color: var(--hc-faint); transition: transform .2s ease, color .2s ease; }
.hc-guide:hover > svg { color: var(--hc-brand); transform: translateX(3px); }

/* ---- "Still need help" (both pages) ---- */
.hc-help { margin: 0 0 88px; padding: 40px; border-radius: 24px; background: var(--hc-sand); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hc-help h2 { margin: 0 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -.5px; color: var(--hc-ink); }
.hc-help p { margin: 0; color: var(--hc-body); font-size: 16px; max-width: 520px; }
.hc-help-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hc-help .btn { height: 48px; font-size: 15px; padding: 0 24px; }

/* ---- guide pages ---- */
.hc-layout { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: 288px minmax(0, 1fr) 232px; }
.hc-side { position: sticky; top: var(--hc-top); align-self: start; height: calc(100vh - var(--hc-top)); overflow-y: auto; padding: 24px 16px 40px 24px;
  border-right: 1px solid var(--hc-line); overscroll-behavior: contain; background: #fff; }
.hc-search-btn { width: 100%; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; margin: 0 0 12px;
  border: 1px solid var(--hc-line-2); border-radius: 12px; background: #fff; color: var(--hc-muted); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.hc-search-btn:hover { border-color: #b5b5b5; }
.hc-search-btn span { flex: 1; }
.hc-side-home { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--hc-ink); padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; }
.hc-side-home:hover { background: var(--hc-brand-soft); color: var(--hc-brand); }
.hc-side details { margin: 2px 0; }
.hc-side summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--hc-faint); border-radius: 8px; }
.hc-side summary::-webkit-details-marker { display: none; }
.hc-side summary:hover { color: var(--hc-ink); }
.hc-side summary svg { transition: transform .2s ease; }
.hc-side details[open] summary svg { transform: rotate(90deg); }
.hc-side ul { list-style: none; margin: 0 0 8px; padding: 0; }
.hc-side li a { display: block; padding: 7px 10px 7px 12px; margin-left: 4px; border-left: 2px solid var(--hc-line); font-size: 14px; line-height: 1.45; color: var(--hc-body); text-decoration: none; }
.hc-side li a:hover { color: var(--hc-ink); border-left-color: var(--hc-line-2); background: #fafafa; }
.hc-side li a[aria-current="page"] { color: var(--hc-brand); font-weight: 600; border-left-color: var(--hc-brand); background: var(--hc-brand-soft); border-radius: 0 8px 8px 0; }

.hc-main { min-width: 0; padding: 0 0 24px; }
.hc-main .nwd { padding-top: 16px; }
.hc-main .nwd h1 { font-size: 40px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.15; }
.hc-main .nwd-lede { color: var(--hc-body); }
.hc-crumbs { max-width: 820px; margin: 0 auto; padding: 28px 16px 0; font-size: 14px; color: var(--hc-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hc-crumbs a { color: var(--hc-muted); text-decoration: none; }
.hc-crumbs a:hover { color: var(--hc-brand); text-decoration: underline; }
.hc-mbar { display: none; max-width: 820px; margin: 0 auto; padding: 16px 16px 0; gap: 10px; }
.hc-mbar button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 1px solid var(--hc-line-2); border-radius: 12px;
  background: #fff; font: inherit; font-size: 15px; font-weight: 600; color: var(--hc-ink); cursor: pointer; }
.hc-pager { max-width: 820px; margin: 8px auto 0; padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hc-pager a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--hc-line); border-radius: 12px; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.hc-pager a:hover { border-color: var(--hc-brand); background: var(--hc-brand-soft); }
.hc-pager small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--hc-faint); }
.hc-pager strong { font-size: 16px; color: var(--hc-ink); line-height: 1.4; }
.hc-pager .is-next { text-align: right; grid-column: 2; }
.hc-main .hc-help { max-width: 788px; margin: 40px auto 48px; padding: 32px; }

.hc-toc { position: sticky; top: var(--hc-top); align-self: start; padding: 32px 24px 24px 8px; max-height: calc(100vh - var(--hc-top)); overflow-y: auto; }
.hc-toc h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--hc-faint); }
.hc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hc-line); }
.hc-toc a { display: block; padding: 6px 0 6px 12px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--hc-muted); text-decoration: none; }
.hc-toc a:hover { color: var(--hc-ink); }
.hc-toc a.is-on { color: var(--hc-brand); border-left-color: var(--hc-brand); font-weight: 600; }

/* ---- search results + palette ---- */
.hc-palette { position: fixed; inset: 0; z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(23,23,23,.45); }
.hc-palette.is-open { display: flex; }
.hc-palette-box { width: 100%; max-width: 640px; background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.3); overflow: hidden; display: flex; flex-direction: column; max-height: 76vh; }
.hc-palette-field { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--hc-line); color: var(--hc-faint); }
.hc-palette-field input { flex: 1; height: 60px; border: 0; outline: none; font: inherit; font-size: 17px; color: var(--hc-ink); background: transparent; }
.hc-palette-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hc-palette .hc-results { overflow-y: auto; }
.hc-results-list { list-style: none; margin: 0; padding: 8px; }
.hc-res { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; }
.hc-res em { font-style: normal; display: block; font-size: 12px; font-weight: 600; color: var(--hc-brand); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 1.2px; }
.hc-res b { display: block; font-size: 16px; font-weight: 600; color: var(--hc-ink); line-height: 1.4; }
.hc-res span { display: block; font-size: 14px; color: var(--hc-muted); line-height: 1.5; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-res.is-active, .hc-res:hover { background: var(--hc-brand-soft); }
.hc-res mark { background: rgba(255,171,65,.4); color: inherit; border-radius: 3px; padding: 0 1px; }
.hc-empty { padding: 20px 18px; font-size: 15px; color: var(--hc-muted); }
.hc-empty a { color: var(--hc-brand); font-weight: 600; }
.hc-palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--hc-line); font-size: 12px; color: var(--hc-faint); }

.hc-scrim { position: fixed; inset: 0; z-index: 1400; background: rgba(23,23,23,.4); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
body.hc-drawer-open .hc-scrim { opacity: 1; pointer-events: auto; }

/* ---- responsive (same breakpoints as the homepage) ---- */
@media (max-width: 1279px) {
  .hc-layout { grid-template-columns: 272px minmax(0, 1fr); }
  .hc-toc { display: none; }
}
.hc-cat.is-wide { grid-column: span 2; }
@media (max-width: 1100px) { .hc-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  .hc-layout { grid-template-columns: minmax(0, 1fr); }
  .hc-side { position: fixed; left: 0; top: 0; bottom: 0; height: 100%; width: min(320px, 86vw); z-index: 1500;
    transform: translateX(-100%); transition: transform .25s cubic-bezier(.4,0,.2,1); padding-top: 20px; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  body.hc-drawer-open .hc-side { transform: none; }
  body.hc-drawer-open { overflow: hidden; }
  .hc-mbar { display: flex; }
  .hc-hero h1 { font-size: 52px; }
  .hc-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  :root { --hc-top: 61px; }   /* homepage mobile navbar as measured: 8px + 44px + 8px + border */
  .hc-hero { padding: 48px 0 40px; }
  .hc-hero h1 { font-size: 40px; letter-spacing: -1.2px; margin-bottom: 24px; }
  .hc-field input { height: 54px; font-size: 16px; }
  .hc-field > svg { top: 27px; }
  .hc-hero .hc-results { top: 62px; }
  .hc-topics { padding: 48px 0; }
  .hc-topics-head { flex-direction: column; gap: 4px; }
  .hc-h2 { font-size: 26px; }
  .hc-all { padding: 48px 0 8px; }
  .hc-group { padding-bottom: 40px; }
  .hc-guides { grid-template-columns: 1fr; }
  .hc-group > p { margin-left: 0; }
  .hc-pager { grid-template-columns: 1fr; }
  .hc-pager .is-next { grid-column: 1; }
  .hc-help { padding: 28px 24px; margin-bottom: 56px; }
  .hc-main .hc-help { margin-left: 16px; margin-right: 16px; }
  .hc-main .nwd h1 { font-size: 30px; letter-spacing: -.8px; }
  .hc-palette { padding-top: 12px; }
}
@media (max-width: 479px) {
  .hc-wrap { padding: 0 16px; }
  .hc-hero h1 { font-size: 34px; }
  .hc-cats { grid-template-columns: 1fr; }
  .hc-cat.is-wide { grid-column: auto; }
  .hc-help .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-cat, .hc-side, .hc-scrim, .hc-side summary svg, .hc-guide > svg { transition: none; }
}

/* Hero on the brand gradient (user, 2026-11-06). */
.hc-hero { background: linear-gradient(135deg, #580A46 0%, #2A0321 100%); padding: 80px 0 72px; }
.hc-hero h1 { color: #fff; }
.hc-hero .hc-label { color: #FFAB41; }
.hc-hero .hc-field input { border-color: transparent; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hc-hero .hc-field input:hover { border-color: transparent; }
.hc-hero .hc-field input:focus { border-color: #FFAB41; box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 0 0 3px #FFAB41; }
@media (max-width: 767px) { .hc-hero { padding: 56px 0 48px; } }

/* Touch screens: no keyboard hints. Phones: compact topic cards (icon left), so the guides start sooner. */
@media (hover: none) { .hc kbd { display: none; } }
@media (max-width: 540px) {
  .hc-cat { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; padding: 16px 18px; align-items: start; }
  .hc-cat .hc-cat-icon { grid-row: span 3; margin: 0; }
  .hc-cat h3 { font-size: 17px; }
  .hc-cat p { font-size: 14px; }
  .hc-cat small { padding-top: 4px; font-size: 13px; }
  .hc-cats { gap: 10px; }
}
@media (max-width: 540px) {
  .hc .nwd-sub { font-size: 12px; padding: 5px 10px; bottom: 8px; border-radius: 8px; }
  .hc .nwd-steps li { font-size: 13.5px; }
}
