/* Inherit the same page palette and gradient as /Trips from design-system.css. */
body { margin: 0; min-height: 100vh; line-height: 1.65; }
a { text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 3px; }
::selection { background: var(--secondary); color: var(--foreground); }
.skip-link { position: absolute; padding: .75rem; background: var(--card); z-index: 2; }
.help-header, .help-layout, .help-footer { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.help-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.3rem; }
.help-brand { display: flex; gap: .65rem; align-items: center; font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: var(--foreground); text-decoration: none; }
.help-search-band { background: var(--card); border-bottom: 1px solid var(--border); padding: 1.5rem; }
.help-search { max-width: 48rem; margin-inline: auto; }
.help-search label { display: block; font-size: 1.15rem; font-weight: 700; margin-bottom: .65rem; }
.help-layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 3.5rem; padding-block: 2.5rem 4rem; }
.help-topics summary { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-weight: 700; padding-bottom: .75rem; list-style: none; cursor: pointer; }
.help-topics summary::-webkit-details-marker { display: none; }
.help-topics summary::after { content: ""; width: 2rem; height: 2rem; flex-shrink: 0; border-radius: 50%; background: var(--secondary) url("/help/lib/chevron-down.svg") center / 1rem no-repeat; transition: transform var(--motion-fast) var(--ease); }
.help-topics[open] summary::after { transform: rotate(180deg); }
.help-topics nav { display: flex; flex-direction: column; gap: .15rem; }
.help-topics a { padding: .45rem .65rem; border-radius: .5rem; text-decoration: none; }
.help-topics a:hover { text-decoration: underline; background: var(--muted); }
.help-topics a[aria-current] { background: var(--secondary); font-weight: 700; color: var(--secondary-foreground); }
main { min-width: 0; max-width: 72ch; outline: none; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 1.25rem; }
h2 { font-size: 1.55rem; margin: 2.5rem 0 .85rem; }
h3 { font-size: 1.25rem; margin: 1.75rem 0 .65rem; }
article > p:first-of-type { font-size: 1.15rem; }
p { margin-bottom: 1.1rem; }
li { padding-left: .2rem; margin-block: .45rem; }
article table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; }
td, th { padding: .65rem; border-bottom: 1px solid var(--border); }
td:first-child, th:first-child { min-width: 8.5rem; overflow-wrap: normal; word-break: normal; }
blockquote { padding: 1rem; background: var(--muted); border-radius: .75rem; }
blockquote p:last-child { margin: 0; }
pre { overflow: auto; padding: 1rem; background: var(--muted); }
.help-results { list-style: none; padding: 0; }
.help-results li { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.help-results h2 { margin: 0 0 .5rem; }
.help-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); padding-block: 1.25rem; }
@media (max-width: 767px) {
    .help-header, .help-layout, .help-footer { width: calc(100% - 2rem); }
    .help-header { flex-wrap: wrap; }
    .help-layout { display: flex; flex-direction: column; gap: 2rem; padding-top: 1.5rem; }
    .help-layout main { order: -1; }
    .help-topics { border-top: 1px solid var(--border); padding-top: 1.25rem; }
    .help-search-band { padding: 1.25rem 1rem; }
}
@media print {
    .help-header, .help-search-band, aside, .help-footer, .skip-link { display: none; }
    .help-layout { display: block; width: 100%; padding: 0; }
    main { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .help-topics summary::after { transition: none; }
}
