/* One help library in the public site and app shell. */
.help-library { color: var(--text); }
.help-library [hidden] { display: none !important; }
.help-discovery .page-head { padding-block: clamp(40px, 5vw, 64px) var(--space-8); }
.help-discovery .page-head h1 { font-size: clamp(38px, 4.4vw, 56px); }
.help-discovery .page-head .lead { margin-top: var(--space-4); }
.help-discovery .help-search { margin-bottom: 0; }
.help-search { max-width: 720px; margin-block: var(--space-7) var(--space-6); }
.help-search label { display: block; margin-bottom: var(--space-2); color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.help-search-field { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-panel); box-shadow: var(--shadow-sm); }
.help-search-field:focus-within { border-color: var(--gold); outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.help-search-field > .bg-icon { color: var(--gold-deep); flex: none; }
.help-library .help-search-field input[type="search"] { height: auto; scroll-margin-top: 120px; flex: 1; min-width: 0; width: 100%; padding: var(--space-3) 0; border: 0; border-radius: 0; box-shadow: none; outline: none; background: transparent; color: var(--ink); font: inherit; }
.help-search-field input::-webkit-search-cancel-button { display: none; }
.help-search-field :is(button, a) { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--r-md); color: var(--text-muted); background: transparent; cursor: pointer; }
.help-search-field button { color: var(--on-accent); background: var(--ink); }
.help-search-field a:hover { color: var(--ink); background: var(--sand-50); }
.help-search-field button:hover { background: var(--gold-deep); }
.help-library :is(a, button, summary):focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.help-search p { min-height: 1.5em; margin: var(--space-3) 0 0; color: var(--text-muted); font-size: var(--fs-sm); }
.help-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-5); }
.help-section-heading h2 { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.02em; }
.help-section-heading > a { font-size: var(--fs-sm); color: var(--gold-deep); text-underline-offset: 4px; }
.help-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.help-topic-card { display: flex; align-items: start; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--r-xl); color: var(--ink); background: var(--bg-panel); text-decoration: none; transition: border-color .15s; }
.help-topic-card:hover { border-color: var(--gold); }
.help-topic-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-lg); background: var(--gold-wash); color: var(--gold-deep); }
.help-topic-copy { flex: 1; min-width: 0; }
.help-topic-copy strong { display: block; margin-bottom: var(--space-2); font-size: var(--fs-body); line-height: 1.35; font-weight: 600; }
.help-topic-copy > span { display: block; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; }
.help-topic-copy small { display: block; margin-top: var(--space-4); color: var(--text-muted); font-size: var(--fs-xs); }
.help-topic-arrow { flex: none; margin-top: var(--space-1); color: var(--gold); }
.help-start { margin-top: var(--space-8); padding-top: var(--space-7); border-top: 1px solid var(--border); }
.help-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.help-paths a { display: block; min-width: 0; color: var(--ink); text-decoration: none; }
.help-path-visual { display: block; position: relative; aspect-ratio: 1.6; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-panel); }
.help-paths img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.help-paths a:last-child img { object-position: bottom center; }
.help-path-arrow { position: absolute; right: var(--space-3); bottom: var(--space-3); display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--ink); }
.help-path-copy { display: block; padding: var(--space-5) var(--space-1) 0; }
.help-paths strong { display: block; font-size: clamp(20px, 1.8vw, 25px); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; text-wrap: pretty; }
.help-paths small { display: block; margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; }
.help-paths a:hover strong { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 4px; }
.help-browser { scroll-margin-top: 100px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.help-topic-picker { position: sticky; top: 96px; }
.help-topic-picker > summary { display: none; }
.help-topic-nav { display: grid; gap: var(--space-1); }
.help-topic-nav a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3); border-radius: var(--r-md); color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.45; text-decoration: none; }
.help-topic-nav a[aria-current] { color: var(--ink); background: var(--gold-soft); font-weight: 600; }
.help-topic-nav a:hover { color: var(--ink); background: var(--sand-50); }
.help-topic-nav .help-topic-home { justify-content: flex-start; padding-bottom: var(--space-5); color: var(--gold-deep); }
.help-topic-nav :is(small, a > span:last-child:not(:first-child)) { color: var(--text-muted); font-size: var(--fs-xs); }
.help-guide-results { min-width: 0; scroll-margin-top: 100px; }
.help-results-heading { padding-bottom: var(--space-5); border-bottom: 1px solid var(--border); }
.help-results-heading h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.025em; line-height: 1.2; }
.help-results-heading p { margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--text-muted); }
.help-guide-group + .help-guide-group { margin-top: var(--space-7); }
.help-group-label { margin-top: var(--space-6); font-size: var(--fs-xs); font-weight: 600; color: var(--gold-deep); letter-spacing: .04em; }
.help-guide-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-5) 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border); }
.help-guide-row > .bg-icon { flex: none; color: var(--gold); }
.help-guide-row strong { display: block; font-size: var(--fs-body); font-weight: 600; line-height: 1.45; }
.help-guide-row span > span { display: block; margin-top: var(--space-1); color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; }
.help-guide-row:hover strong { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 4px; }
.help-empty { padding-block: var(--space-8); }
.help-empty h3 { font-size: var(--fs-lg); }
.help-empty p { color: var(--text-muted); margin-block: var(--space-3); }
.help-empty a { color: var(--gold-deep); }
.help-contact { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-5); margin-top: clamp(40px, 5vw, 64px); padding-block: var(--space-6); border-top: 1px solid var(--border); }
.help-contact strong { font-size: var(--fs-body); font-weight: 600; }
.help-contact p { margin-top: var(--space-1); color: var(--text-muted); font-size: var(--fs-sm); }
.help-contact > a { display: inline-flex; align-items: center; gap: var(--icon-gap-sm); color: var(--gold-deep); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
@media (max-width: 1000px) { .help-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    .help-browser { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
    .help-topic-picker { position: static; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-panel); }
    .help-topic-picker > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4); font-size: var(--fs-sm); font-weight: 600; list-style: none; cursor: pointer; }
    .help-topic-picker summary::-webkit-details-marker { display: none; }
    .help-topic-picker[open] summary .bg-icon { transform: rotate(180deg); }
    .help-topic-nav { padding: 0 var(--space-2) var(--space-2); }
    .help-topic-grid { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--border); }
    .help-topic-card { padding: var(--space-4) 0; align-items: center; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
    .help-topic-copy > span { display: none; }
    .help-topic-copy strong { margin-bottom: 0; }
    .help-topic-copy small { margin-top: var(--space-1); }
    .help-paths { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
    .help-discovery .page-head { padding-top: var(--space-8); }
}
@media (prefers-reduced-motion: reduce) { .help-topic-card { transition: none; } }
