/* The help center (help/index, help/show), on the landing layout. Loaded
   only by those pages: `page_stylesheets "help"`. */

/* ---------- Search (help/index) ---------- */
.help-search-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; background: #fff; border: 1px solid #e5e7eb; border-top: none; border-radius: 0 0 0.75rem 0.75rem; box-shadow: 0 8px 24px rgba(0,0,0,0.08); max-height: 24rem; overflow-y: auto; display: none; }
.help-search-results.active { display: block; }
.help-search-result { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; text-decoration: none; color: inherit; transition: background 0.1s; cursor: pointer; }
.help-search-result:hover, .help-search-result.selected { background: #f3f4f6; }
.help-search-result-title { font-size: 0.875rem; font-weight: 500; color: #111827; }
.help-search-result-category { font-size: 0.75rem; color: #9ca3af; }
.help-search-result mark { background: rgba(23, 174, 172, 0.15); color: inherit; border-radius: 2px; padding: 0 1px; }
.help-search-result-snippet { font-size: 0.75rem; color: #6b7280; margin-top: 2px; line-height: 1.4; }
.help-search-empty { padding: 1.5rem 1rem; text-align: center; font-size: 0.875rem; color: #9ca3af; }
.help-search-wrap { position: relative; }
.help-search-input { width: 100%; padding: 0.75rem 1rem 0.75rem 3rem; font-size: 1rem; border: 1px solid #d1d5db; border-radius: 0.75rem; outline: none; background: #fff; color: #111827; transition: border-color 0.15s, box-shadow 0.15s; -webkit-appearance: none; }
.help-search-input::placeholder { color: #9ca3af; }
.help-search-input:focus { border-color: #17AEAC; box-shadow: 0 0 0 3px rgba(23, 174, 172, 0.1); }
.help-search-input.has-results:focus { border-radius: 0.75rem 0.75rem 0 0; }
.help-search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }

/* ---------- An article (help/show): its text (.dc) and the contents column ---------- */
.dc h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2; color: #111827; }
.dc h2, .dc h3 { scroll-margin-top: 5rem; position: relative; }
.dc h2 { font-size: 1.375rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid #e5e7eb; color: #111827; }
.dc h3 { font-size: 1.125rem; font-weight: 600; margin-top: 1.75rem; margin-bottom: 0.5rem; color: #1f2937; }
.dc p { margin-bottom: 1rem; line-height: 1.8; color: #4b5563; font-size: 0.9375rem; }
.dc ul, .dc ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.dc ul { list-style-type: disc; }
.dc ol { list-style-type: decimal; }
.dc li { margin-bottom: 0.375rem; line-height: 1.7; color: #4b5563; font-size: 0.9375rem; }
.dc li > ul, .dc li > ol { margin-top: 0.375rem; margin-bottom: 0; }
.dc strong { font-weight: 600; color: #111827; }
/* The brand teal is 2.7:1 on white; the deep teal passes WCAG AA for body-size link text. */
.dc a:not(.anchor), .help-back-link { color: var(--teal-deep, #0B6E6C); }
.dc a:not(.anchor) { text-decoration: underline; text-underline-offset: 2px; }
.dc a:not(.anchor):hover { opacity: 0.8; }
.dc a.anchor { position: absolute; visibility: hidden; }
.dc code { background: #f3f4f6; padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.85em; }
.dc pre { background: #f3f4f6; padding: 1rem; border-radius: 0.5rem; overflow-x: auto; margin-bottom: 1rem; }
.dc pre code { background: none; padding: 0; font-size: 0.875rem; }
.dc blockquote { border-left: 3px solid #17AEAC; padding: 0.75rem 1rem; margin-bottom: 1.25rem; background: rgba(23, 174, 172, 0.04); border-radius: 0 0.5rem 0.5rem 0; }
.dc blockquote p { margin-bottom: 0; font-size: 0.9375rem; }
.dc table { width: 100%; margin-bottom: 1.25rem; border-collapse: collapse; font-size: 0.875rem; }
.dc th { text-align: left; font-weight: 600; padding: 0.625rem 0.75rem; border-bottom: 2px solid #e5e7eb; color: #374151; }
.dc td { padding: 0.625rem 0.75rem; border-bottom: 1px solid #f3f4f6; color: #4b5563; }
.dc tr:hover td { background: #f9fafb; }
.dc hr { border: none; border-top: 1px solid #e5e7eb; margin: 2rem 0; }
.dc img { display: block; border: 1px solid #e5e7eb; border-radius: 0.5rem; margin: 1rem 0 1.5rem; max-width: 100%; height: auto; }
@media (max-width: 640px) {
  .dc table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.help-toc { display: none; width: 13rem; flex-shrink: 0; margin-left: 4rem; position: sticky; top: 2rem; align-self: flex-start; }
@media (min-width: 1024px) { .help-toc { display: block; } }
.help-toc-title { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; margin-bottom: 0.75rem; }
.help-toc-list { list-style: none; padding: 0; margin: 0; border-left: 1px solid #e5e7eb; }
.help-toc-list li { margin: 0; }
.help-toc-link { display: block; font-size: 0.8125rem; line-height: 1.4; color: #9ca3af; padding: 0.25rem 0; padding-left: 1rem; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; transition: color 0.15s, border-color 0.15s; }
.help-toc-link:hover { color: #17AEAC; border-left-color: #17AEAC; }
.help-toc-back { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.help-toc-back-link { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: #9ca3af; text-decoration: none; transition: color 0.15s; }
.help-toc-back-link:hover { color: #374151; }
.help-toc-link--sub { padding-left: 1.5rem; }
