/* Shared documentation layout. Editorial fonts/colors match the public site;
   these scoped rules cannot change the private Svelte theme or legal fragments. */
.marketing-help {
  --help-background: #faf8f5;
  --help-surface: #fff;
  --help-ink: #16332a;
  --help-muted: #59625d;
  --help-line: #e5e7e1;
  --help-accent: #c8f026;
  background: var(--help-background);
  color: var(--help-ink);
  font-family: "Hanken Grotesk", sans-serif;
  min-height: 70svh;
  padding: 128px 24px 64px;
  overflow-wrap: anywhere;
}
.help-shell { max-width: 1120px; margin: auto; }
.help-header { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.help-eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: 13px; }
.help-header h1, .help-article h1 { font-family: "Newsreader", Georgia, serif; font-size: clamp(36px, 5vw, 56px); font-weight: 400; line-height: 1.1; margin: 16px 0; }
.help-header > p:last-child, .help-summary { color: var(--help-muted); font-size: 18px; line-height: 1.6; }
.help-empty { padding: 40px 24px; border: 1px solid var(--help-line); background: var(--help-surface); border-radius: 16px; text-align: center; }
.help-empty h2, .help-support h2, .help-results-header h2, .help-categories > h2 { font-size: 23px; font-weight: 600; margin-bottom: 12px; }
.help-empty p, .help-support p { color: var(--help-muted); line-height: 1.6; }
.help-support { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--help-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.help-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid var(--help-ink); border-radius: 10px; background: var(--help-ink); color: var(--help-surface); font: inherit; font-weight: 600; cursor: pointer; }
.marketing-help :is(a, button, input, select, summary):focus-visible { outline: 3px solid var(--help-ink); outline-offset: 3px; }
.help-skip { position: absolute; top: 8px; left: 24px; z-index: 60; padding: 12px; background: var(--help-surface); transform: translateY(-200%); }
.help-skip:focus { transform: none; }
.help-search { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin-bottom: 32px; }
.help-search-field { flex: 1 1 220px; }
.help-search label { display: block; margin-bottom: 8px; font-weight: 600; }
.help-search input, .help-search select { width: 100%; min-height: 46px; border: 1px solid var(--help-line); border-radius: 10px; padding: 10px 12px; background: var(--help-surface); color: var(--help-ink); font: inherit; }
.help-errors { border: 1px solid currentColor; border-radius: 10px; padding: 16px; margin-bottom: 24px; }
.help-results-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.help-results-header h2 { margin: 0; }
.help-text-link { text-decoration: underline; text-underline-offset: 4px; }
.help-category-grid { display: grid; gap: 20px; }
.help-category-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--help-line); border-radius: 12px; background: var(--help-surface); }
.help-category-card h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }
.help-category-count { margin-top: 8px; color: var(--help-muted); font-size: 14px; }
.help-category-card ul { margin: 16px 0 20px; }
.help-category-card li + li { margin-top: 4px; }
.help-category-card li a { display: block; padding-block: 10px; line-height: 1.5; }
.help-category-card li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.help-category-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--help-line); font-size: 14px; font-weight: 600; }
.help-category-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.help-result { display: block; padding: 24px; margin-top: 12px; border: 1px solid var(--help-line); border-radius: 12px; background: var(--help-surface); }
.help-result:hover { border-color: var(--help-ink); }
.help-result h3 { font-size: 20px; font-weight: 600; }
.help-result p { color: var(--help-muted); margin: 8px 0 16px; line-height: 1.6; }
.help-result > span { font-weight: 600; }
.help-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-bottom: 32px; }
.help-breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
.help-layout { display: grid; gap: 24px; }
.help-main { min-width: 0; }
.help-desktop-navigation { display: none; }
.help-sidebar { border: 1px solid var(--help-line); border-radius: 12px; padding: 16px; }
.help-sidebar-title { margin: 4px 8px 12px; color: var(--help-muted); font-size: 13px; font-weight: 600; }
.help-topic + .help-topic { border-top: 1px solid var(--help-line); }
.help-topic > summary, .help-mobile-navigation > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 8px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.help-topic > summary::-webkit-details-marker, .help-mobile-navigation > summary::-webkit-details-marker { display: none; }
.help-topic > summary::after, .help-mobile-navigation > summary::after { content: ""; flex: 0 0 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.help-topic[open] > summary::after, .help-mobile-navigation[open] > summary::after { transform: rotate(225deg); }
.help-topic ul { padding-bottom: 12px; }
.help-sidebar a { display: block; padding: 12px 10px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.help-sidebar a:hover { background: var(--help-line); }
.help-sidebar a[aria-current] { background: var(--help-accent); }
.help-mobile-navigation { border: 1px solid var(--help-line); border-radius: 12px; background: var(--help-surface); }
.help-mobile-navigation > summary { padding: 14px 16px; }
.help-mobile-navigation .help-sidebar { border: 0; border-top: 1px solid var(--help-line); border-radius: 0; }
.help-article { min-width: 0; }
.help-prose { margin-top: 32px; line-height: 1.75; font-size: 17px; }
.help-prose :is(h2, h3) { font-weight: 600; line-height: 1.3; margin: 32px 0 12px; }
.help-prose h2 { font-size: 26px; }
.help-prose h3 { font-size: 21px; }
.help-prose p, .help-prose :is(ul, ol) { margin: 16px 0; }
.help-prose ul { list-style: disc; padding-left: 24px; }
.help-prose ol { list-style: decimal; padding-left: 24px; }
.help-prose a { text-decoration: underline; text-underline-offset: 4px; }
.help-prose img, .help-prose video { max-width: 100%; height: auto; }
.help-prose pre { overflow-x: auto; padding: 16px; background: var(--help-surface); border-radius: 8px; }
@media (min-width: 640px) {
  .help-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .help-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  /* Clear the fixed public navbar while allowing a long category to scroll. */
  .help-desktop-navigation { display: block; position: sticky; top: 104px; max-height: calc(100dvh - 128px); overflow-y: auto; align-self: start; }
  .help-mobile-navigation { display: none; }
}
@media (max-width: 480px) {
  .marketing-help { padding-inline: 20px; }
  .help-support > a, .help-search > div, .help-search > button { width: 100%; }
}
