/* FAQ and rental terms (/faq, /terms). Loaded after app.css; uses its colour tokens. */
.help h1 { margin-bottom: 6px; }
.help .season-line { font-weight: 700; color: var(--brand); }
.help .terms-version { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.help ul, .help ol { margin: 0 0 0.75em; padding-left: 1.3em; }
.help li { margin: 0 0 0.35em; }
.help h2[id], .help details[id], .help #refunds { scroll-margin-top: 16px; }

/* Table of contents */
.help-toc { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 12px; }
.help-toc .toc-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; }
.help-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.help-toc li { margin: 0; }
.help-toc a { display: inline-block; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.9rem; color: var(--text); background: var(--surface); }
.help-toc a:hover { border-color: var(--brand); color: var(--brand); }
body[data-help="terms"] .help-toc ol { display: block; columns: 2 220px; column-gap: 24px; }
body[data-help="terms"] .help-toc li { break-inside: avoid; margin-bottom: 2px; }
body[data-help="terms"] .help-toc a { border: 0; padding: 3px 0; background: none; font-weight: 500; color: var(--brand); text-decoration: underline; }
.help-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.help-cta .btn { text-decoration: none; }

/* FAQ questions */
.help-group h2 { margin-bottom: 8px; }
details.faq { border-top: 1px solid var(--border); }
details.faq summary { cursor: pointer; padding: 12px 28px 12px 0; position: relative; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; font-weight: 700; color: var(--brand); }
details.faq[open] summary::after { content: "−"; }
details.faq summary h3 { display: inline; font-size: 1rem; margin: 0; }
details.faq summary:hover h3 { color: var(--brand); }
.faq-body { padding: 0 0 12px; }
.faq-body > :last-child { margin-bottom: 0; }

/* Tables */
.help-table-wrap { overflow-x: auto; margin: 4px 0 12px; }
.help-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.help-table caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.help-table th, .help-table td { text-align: left; padding: 7px 8px; border-top: 1px solid var(--border); vertical-align: top; }
.help-table thead th { border-top: 0; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.help-table tbody th { font-weight: 600; }
.help-table.prices td { white-space: nowrap; }
.help-table .pkg-name { display: block; font-weight: 700; }
.help-table .sub { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.help-table.refunds td:last-child { font-weight: 700; }
.help-table .svc-day { font-weight: 700; color: var(--service-ink, var(--brand)); background: var(--service); border-radius: 6px; padding: 1px 6px; }
@media (prefers-color-scheme: dark) { .help-table .svc-day { color: var(--text); } }

/* Terms */
.terms-section + .terms-section { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 16px; }
.terms-section h2 { display: block; }
.terms-section .sec-num { color: var(--muted); }
.help-foot p:last-child { margin-bottom: 0; }

@media print {
  .site-header, .site-footer, .help-toc, .help-cta { display: none; }
  .card { box-shadow: none; border: 0; }
}
