/* Dealer help pages (templates/help.html, help-index.html): /help/*, /start/, /what-happens-next/,
   /for-platforms/. Loaded only on those pages, after bhc.css; uses its variables, nothing new in
   colour. Square edges, Outfit headings, cyan accents as the rest of the light site. */

.help-page { padding: var(--section-pad) 0; padding-top: calc(var(--section-pad) + 5rem); }

.help-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0 0 1rem; padding: 0; font-size: 0.85rem; color: var(--text-gray); }
.help-crumbs li + li::before { content: '\203A'; margin-right: 0.5rem; color: var(--text-gray); }
.help-crumbs a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 0.15em; }
.help-crumbs [aria-current] { font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--green-dark); }

.help-title { max-width: 900px; font-size: clamp(2rem, 4.5vw, 3rem); overflow-wrap: anywhere; }
.help-lede { font-size: 1.15rem; line-height: 1.7; color: var(--white); max-width: 800px; margin: 0 0 2rem; }

/* Body: headings get a short cyan rule; numbered pages count their H2s like the site's steps. */
.help-body { max-width: 800px; }
.help-body h2 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); line-height: 1.25; padding-top: 1.5rem; border-top: 1px solid var(--mid-gray); margin-top: 2rem; }
.help-body > h2:first-child { margin-top: 0; }
.help-body h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.help-body code { font-family: inherit; font-weight: 600; color: var(--white); background: var(--off-black); padding: 0.05em 0.35em; }
.help-body .subj { font-weight: 600; color: #031059; }
.help-body .var { font-style: italic; font-weight: 400; color: var(--text-gray); }
.help-body blockquote { margin: 1rem 0; padding: 0.75rem 1rem; border-left: 4px solid var(--green); background: var(--off-black); color: var(--white); }
.help-body blockquote p:last-child { margin-bottom: 0; }

.help-numbered { counter-reset: help-step; }
.help-numbered h2 { counter-increment: help-step; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 0.75rem; align-items: baseline; }
.help-numbered h2::before { content: counter(help-step); font-family: var(--font-heading); font-weight: 900; font-size: 1.6rem; line-height: 1; color: var(--green-dark); }
.help-numbered h2 ~ p, .help-numbered h2 ~ ul, .help-numbered h2 ~ ol, .help-numbered h2 ~ blockquote { margin-left: 3.25rem; }
@media (max-width: 600px) {
    .help-numbered h2 ~ p, .help-numbered h2 ~ ul, .help-numbered h2 ~ ol, .help-numbered h2 ~ blockquote { margin-left: 0; }
}

/* Tables: main.js wraps every body table in .table-wrap (scrolls sideways, never the page). */
.help-body .table-wrap { margin: 1rem 0 1.5rem; }
.help-body .table-wrap table { margin: 0; }
.help-body td, .help-body th { vertical-align: top; }
/* bhc.css keeps a body table's first column on one line (comparison tables); a subject line must wrap. */
.help-body td:first-child { white-space: normal; }
.help-body table.help-mail { table-layout: fixed; }
.help-body table.help-mail th:nth-child(1) { width: 42%; }
.help-body table.help-mail th:nth-child(2) { width: 24%; }
.help-body table.help-mail th:nth-child(3) { width: 34%; }
/* On a phone each email is a card: subject, then "When" and "What to do" as labelled lines. */
@media (max-width: 640px) {
    .help-body table.help-mail, .help-body table.help-mail tbody, .help-body table.help-mail tr, .help-body table.help-mail td { display: block; width: 100%; }
    .help-body table.help-mail thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .help-body .table-wrap:has(> table.help-mail) { border: 0; overflow: visible; }
    .help-body table.help-mail tr { border: 1px solid var(--mid-gray); border-left: 4px solid var(--green); background: #ffffff; margin: 0 0 0.75rem; }
    .help-body table.help-mail tr:last-child { margin-bottom: 0; }
    .help-body table.help-mail td { border-bottom: 0; padding: 0.35rem 0.9rem; }
    .help-body table.help-mail td:first-child { padding-top: 0.8rem; font-size: 0.9rem; }
    .help-body table.help-mail td:last-child { padding-bottom: 0.8rem; }
    .help-body table.help-mail td:nth-child(2)::before { content: 'When: '; font-weight: 700; color: var(--white); }
    .help-body table.help-mail td:nth-child(3)::before { content: 'What to do: '; font-weight: 700; color: var(--white); }
}

.help-video { margin: 0 0 2rem; max-width: 800px; }
.help-video-link { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: #ffffff; border: 1px solid var(--mid-gray); border-left: 4px solid var(--green); color: #031059; text-decoration: none; }
.help-video-link:hover { border-color: var(--green); }
.help-video-play { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; background: var(--green); color: #031059; font-size: 0.9rem; flex-shrink: 0; }

.help-cta { margin: 2rem 0 0; }
.help-cta .btn { min-height: 44px; }

.help-contact { max-width: 800px; margin: 3rem 0 0; padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--off-black); border: 1px solid var(--mid-gray); border-top: 4px solid var(--green); color: var(--text-gray); line-height: 1.7; }
.help-contact p { margin: 0; }
.help-contact p + p { margin-top: 0.75rem; }
.help-contact strong { color: var(--white); }
.help-contact a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 0.15em; overflow-wrap: anywhere; }

/* /help/ index */
.help-index-section { margin: 2.5rem 0 0; }
.help-index-title { font-family: var(--font-heading); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--green-dark); margin: 0 0 1rem; }
.help-tiles { margin: 0; max-width: none; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }

/* Long addresses and links never push the page sideways on a phone. */
.help-page .page-body a { overflow-wrap: anywhere; }
