/* HELP CENTER — public /help pages (on top of site.css), plus the shared article body styles used by the staff KB. */

/* ---------------------------------------------------------------- hero + search */
.hc-hero { position: relative; background: var(--s-paper); border-bottom: 1px solid var(--s-line); padding: 72px 0 64px; isolation: isolate; overflow: visible; }
.hc-hero .s-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hc-hero.is-compact { padding: 44px 0 36px; }
.hc-hero h1 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem); letter-spacing: -.045em; line-height: 1.04; margin: 0 0 .8rem; }
.hc-hero.is-compact h1 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.hc-hero p.hc-sub { color: var(--s-muted); font-size: 1.12rem; max-width: 620px; margin: 0 0 1.8rem; }
.hc-hero.is-center { text-align: center; }
.hc-hero.is-center p.hc-sub, .hc-hero.is-center .hc-search { margin-left: auto; margin-right: auto; }

.hc-search { position: relative; max-width: 680px; }
.hc-search form { display: flex; align-items: center; gap: 0; background: #fff; border: 1px solid var(--s-line-2); border-radius: 12px; box-shadow: var(--s-shadow); padding: 6px 6px 6px 16px; transition: border-color .15s, box-shadow .15s; }
.hc-search form:focus-within { border-color: var(--s-blue-500); box-shadow: 0 0 0 4px rgba(25,118,210,.12), var(--s-shadow); }
.hc-search .bi-search { color: var(--s-subtle); font-size: 1.05rem; }
.hc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: .7rem .75rem; font-size: 1.05rem; color: var(--s-ink); font-family: var(--s-font); }
.hc-search input::-webkit-search-cancel-button { cursor: pointer; }
.hc-search button { flex-shrink: 0; }
.hc-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--s-line); border-radius: 12px; box-shadow: var(--s-shadow-lg); z-index: 30; overflow: hidden; text-align: left; }
.hc-suggest a { display: block; padding: .7rem 1rem; color: var(--s-text) !important; border-bottom: 1px solid var(--s-line); }
.hc-suggest a:last-child { border-bottom: 0; }
.hc-suggest a:hover, .hc-suggest a.is-active { background: var(--s-blue-50); }
.hc-suggest strong { display: block; color: var(--s-ink); font-weight: 600; font-size: .95rem; }
.hc-suggest small { display: block; color: var(--s-muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-suggest .hc-suggest-all { font-size: .85rem; color: var(--s-blue-600) !important; background: var(--s-paper); }
.hc-suggest .hc-suggest-empty { padding: .8rem 1rem; color: var(--s-muted); font-size: .9rem; }
.hc-popular-q { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; font-size: .85rem; color: var(--s-muted); align-items: center; }
.hc-hero.is-center .hc-popular-q { justify-content: center; }
.hc-popular-q a { padding: .25rem .65rem; border: 1px solid var(--s-line); border-radius: 999px; background: #fff; color: var(--s-text) !important; }
.hc-popular-q a:hover { border-color: var(--s-line-2); color: var(--s-ink) !important; }

/* ---------------------------------------------------------------- category grid */
.hc-section { padding: 64px 0; }
.hc-section + .hc-section { border-top: 1px solid var(--s-line); }
.hc-section h2.hc-h { font-size: 1.5rem; margin: 0 0 1.5rem; }
.hc-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hc-cat { display: flex; flex-direction: column; gap: .35rem; padding: 24px; border: 1px solid var(--s-line); border-radius: var(--s-radius-lg); background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.hc-cat:hover { border-color: var(--s-line-2); box-shadow: var(--s-shadow); }
.hc-cat-head { display: flex; gap: .85rem; align-items: center; color: var(--s-ink) !important; }
.hc-cat-head:hover h3 { color: var(--s-blue-600); }
.hc-ic { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--s-blue-50); color: var(--s-blue-600); border: 1px solid var(--s-blue-100); font-size: 1.1rem; flex-shrink: 0; }
.hc-cat h3 { font-size: 1.08rem; margin: 0; transition: color .15s; }
.hc-cat h3 small { display: block; font-family: var(--s-mono); font-size: .7rem; color: var(--s-subtle); font-weight: 450; letter-spacing: .02em; margin-top: .2rem; }
.hc-cat p { color: var(--s-muted); font-size: .92rem; margin: .4rem 0 .35rem; }
.hc-cat ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.hc-cat li a { display: flex; gap: .45rem; align-items: baseline; padding: .28rem 0; font-size: .92rem; color: var(--s-text) !important; }
.hc-cat li a:hover { color: var(--s-blue-600) !important; }
.hc-cat li a i { color: var(--s-subtle); font-size: .8rem; }
.hc-cat .hc-more { margin-top: auto; padding-top: .6rem; font-size: .86rem; font-weight: 550; }

/* ---------------------------------------------------------------- article lists */
.hc-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--s-line); border-radius: var(--s-radius-lg); overflow: hidden; background: #fff; }
.hc-list li + li { border-top: 1px solid var(--s-line); }
.hc-list a { display: flex; gap: 1rem; align-items: center; padding: 18px 22px; color: var(--s-text) !important; transition: background .15s; }
.hc-list a:hover { background: var(--s-paper); }
.hc-list a > div { min-width: 0; flex: 1; }
.hc-list strong { display: block; color: var(--s-ink); font-weight: 600; font-size: 1.02rem; }
.hc-list span.hc-sum { display: block; color: var(--s-muted); font-size: .92rem; margin-top: .15rem; }
.hc-list .bi-chevron-right { color: var(--s-subtle); }
.hc-list .s-chip { margin-bottom: .35rem; }
.hc-list mark { background: #FFF3BF; padding: 0 .1em; border-radius: 2px; color: inherit; }
.hc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.hc-grid2 a { display: flex; gap: .6rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--s-line); color: var(--s-text) !important; }
.hc-grid2 a:hover { color: var(--s-blue-600) !important; }
.hc-grid2 a i { color: var(--s-blue); }

/* ---------------------------------------------------------------- layout with side nav */
.hc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 56px; align-items: start; }
.hc-layout.no-toc { grid-template-columns: 240px minmax(0, 1fr); }
.hc-side { position: sticky; top: calc(var(--s-header-h) + 24px); display: grid; gap: 24px; max-height: calc(100vh - var(--s-header-h) - 48px); overflow: auto; }
.hc-side-box { display: grid; gap: 1px; }
.hc-side-box > strong { font-family: var(--s-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--s-muted); margin-bottom: .55rem; font-weight: 500; }
.hc-side-box a { padding: .38rem .75rem; border-left: 1px solid var(--s-line); color: var(--s-text) !important; font-size: .88rem; line-height: 1.4; }
.hc-side-box a:hover { color: var(--s-ink) !important; border-left-color: var(--s-line-2); }
.hc-side-box a.is-active { color: var(--s-ink) !important; font-weight: 600; border-left: 2px solid var(--s-blue); padding-left: calc(.75rem - 1px); }
.hc-side-box a.lvl3 { padding-left: 1.5rem; font-size: .84rem; }

/* ---------------------------------------------------------------- article */
.hc-art-head { margin-bottom: 2rem; }
.hc-art-head h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); letter-spacing: -.04em; line-height: 1.08; margin: .9rem 0 .8rem; text-wrap: balance; }
.hc-art-head .s-lead { color: var(--s-muted); font-size: 1.15rem; line-height: 1.55; margin: 0; }
.hc-art-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--s-subtle); font-size: .84rem; margin-top: 1rem; }
.hc-body { font-size: 1.04rem; /* same tokens as site.css so the body also renders in Admin preview and the team KB */ --s-blue: #1976D2; --s-blue-50: #EFF5FC; --s-blue-100: #D6E6F8; --s-blue-700: #0E4C8F; --s-line: #E6E3DC; --s-paper: #FAF9F6; --s-ink: #0B1220; --s-radius: 10px; --s-navy-900: #07111F; }
.hc-body p, .hc-body ul, .hc-body ol { margin: 0 0 1rem; }
.hc-body ul { padding-left: 1.25rem; }
.hc-body code { font-size: .86em; background: #F6F5F1; border: 1px solid var(--s-line); padding: .1em .35em; border-radius: 5px; }
.hc-body h2 { font-size: 1.4rem; margin: 2.4rem 0 .8rem; scroll-margin-top: calc(var(--s-header-h) + 20px); }
.hc-body h3 { font-size: 1.12rem; margin: 1.8rem 0 .5rem; scroll-margin-top: calc(var(--s-header-h) + 20px); }
.hc-body ol { counter-reset: hc; list-style: none; padding-left: 0; }
.hc-body ol > li { counter-increment: hc; position: relative; padding-left: 2.2rem; margin-bottom: .7rem; }
.hc-body ol > li::before { content: counter(hc); position: absolute; left: 0; top: .1em; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--s-blue-50); color: var(--s-blue-700); border: 1px solid var(--s-blue-100); font-size: .78rem; font-weight: 600; display: flex; align-items: center; justify-content: center; line-height: 1; }
.hc-callout { border: 1px solid var(--s-blue-100); background: var(--s-blue-50); border-radius: var(--s-radius); padding: .9rem 1.1rem; margin: 1.5rem 0; color: var(--s-ink); font-size: .97rem; }
.hc-callout p:last-child { margin-bottom: 0; }
.hc-callout.hc-warn { border-color: #F6D9A8; background: #FFF8EB; }
.hc-table { overflow-x: auto; margin: 1.25rem 0 1.5rem; border: 1px solid var(--s-line); border-radius: var(--s-radius); }
.hc-table table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.hc-table th, .hc-table td { padding: .6rem .85rem; border-bottom: 1px solid var(--s-line); text-align: left; vertical-align: top; }
.hc-table th { background: var(--s-paper); color: var(--s-ink); font-weight: 600; }
.hc-table tr:last-child td { border-bottom: 0; }
.hc-body pre { background: var(--s-navy-900); color: #E7ECF3; padding: 1rem 1.2rem; border-radius: var(--s-radius); overflow-x: auto; font-size: .88rem; }
.hc-body pre code { background: none; border: 0; color: inherit; padding: 0; }

/* feedback */
.hc-feedback { margin-top: 3rem; padding: 22px 24px; border: 1px solid var(--s-line); border-radius: var(--s-radius-lg); background: var(--s-paper); }
.hc-fb-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.hc-fb-row strong { color: var(--s-ink); font-size: 1.02rem; margin-right: auto; }
.hc-fb-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 8px; border: 1px solid var(--s-line-2); background: #fff; color: var(--s-ink); font-weight: 550; font-size: .92rem; cursor: pointer; transition: border-color .15s, background .15s; }
.hc-fb-btn:hover { border-color: var(--s-blue-500); }
.hc-fb-btn.is-on { background: var(--s-blue-50); border-color: var(--s-blue-500); color: var(--s-blue-700); }
.hc-fb-more { margin-top: 1rem; }
.hc-fb-more textarea { width: 100%; min-height: 90px; }
.hc-fb-thanks { color: var(--s-green); font-weight: 550; margin-top: .75rem; }

/* still need help */
.hc-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding: 28px 32px; border-radius: var(--s-radius-lg); background: var(--s-navy-900); color: var(--s-on-dark); }
.hc-contact h2 { color: #fff; font-size: 1.35rem; margin: 0 0 .3rem; }
.hc-contact p { margin: 0; }
.hc-contact > div:first-child { flex: 1; min-width: 240px; }
.hc-contact .hc-contact-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.hc-empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--s-line-2); border-radius: var(--s-radius-lg); color: var(--s-muted); }
.hc-empty i { font-size: 2rem; color: var(--s-subtle); }
.hc-empty h2 { font-size: 1.25rem; margin: .6rem 0 .3rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1199.98px) {
  .hc-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .hc-layout .hc-toc-col { display: none; }
}
@media (max-width: 991.98px) {
  .hc-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-layout, .hc-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
  .hc-side { position: static; max-height: none; }
  .hc-layout .hc-nav-col { order: 2; }
}
@media (max-width: 767.98px) {
  .site .hc-wrap .container, .hc-hero .container { padding-left: 16px; padding-right: 16px; }
  .hc-hero { padding: 40px 0 36px; }
  .hc-hero.is-compact { padding: 28px 0 24px; }
  .hc-hero p.hc-sub { font-size: 1rem; margin-bottom: 1.25rem; }
  .hc-search form { padding: 4px 4px 4px 12px; }
  .hc-search input { font-size: 1rem; padding: .6rem .5rem; }
  .hc-search button .hc-btn-label { display: none; }
  .hc-section { padding: 40px 0; }
  .hc-cats { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hc-cat { padding: 18px; }
  .hc-grid2 { grid-template-columns: minmax(0, 1fr); }
  .hc-list a { padding: 14px 16px; }
  .hc-contact { padding: 22px 20px; }
  .hc-feedback { padding: 18px; }
  .hc-body { font-size: 1rem; }
  .hc-table table { font-size: .88rem; }
}
