/* A results anchor should settle before the visitor focuses the search field again. */
html:has(.fv-help-centre) { scroll-behavior: auto; }
.fv-help-centre, .fv-help-shortcuts, .fv-help-directory, .fv-help-support {
    --help-forest: #153e2f;
    --help-ink: #1b382b;
    --help-muted: #4b6154;
    --help-line: #d0dccc;
    --help-paper: #fffef9;
    --help-tint: #edf2e6;
    color: var(--help-ink);
}
.fv-help-centre *, .fv-help-search *, .fv-help-directory * { box-sizing: border-box; }
.fv-help-centre .fv-help-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.3rem, 4vw, 4rem);
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border-radius: 24px;
    color: #fffef7;
    background: #153e2f;
}
.fv-help-heading h1 {
    margin: 0;
    font-size: clamp(2.65rem, 4.75vw, 4.3rem);
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -.055em;
    color: #fffef7;
    text-wrap: balance;
}
.fv-help-heading p {
    max-width: 46ch;
    margin: 1rem 0 0;
    color: #e0e9da;
    font-size: clamp(1rem, 1.35vw, 1.13rem);
    line-height: 1.6;
}
.fv-help-search { margin: 0; min-width: 0; }
.fv-help-search label { display: block; margin: 0 0 .45rem; font-size: .95rem; font-weight: 650; }
.fv-help-search-bar {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding: .42rem;
    min-width: 0;
    border: 1px solid #acbea8;
    border-radius: 12px;
    color: #163e30;
    background: #fffef9;
}
.fv-help-search-bar:focus-within { outline: 3px solid #8da268; outline-offset: 3px; }
.fv-help-search-icon {
    position: relative;
    display: inline-block;
    flex: 0 0 .98rem;
    height: .98rem;
    margin-left: .65rem;
    border: 2px solid #55705d;
    border-radius: 50%;
}
.fv-help-search-icon::after { content: ""; position: absolute; width: .45rem; height: 2px; background: #55705d; right: -.32rem; bottom: -.13rem; transform: rotate(45deg); }
.fv-help-search-bar input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    min-height: 46px;
    border: 0;
    padding: .4rem .35rem;
    font: inherit;
    font-size: 1rem;
    color: #163e30;
    background: transparent;
}
.fv-help-search-bar input::placeholder { color: #59685e; opacity: 1; }
.fv-help-search-bar button, .fv-help-pages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .55rem 1.15rem;
    border: 1px solid #bfd29f;
    border-radius: 8px;
    background: #dcecaf;
    color: #163e30;
    font: inherit;
    font-size: .95rem;
    font-weight: 650;
    cursor: pointer;
}
.fv-help-search-bar button:hover { background: #e9f4ca; }
.fv-help-shortcuts, .fv-help-directory, .fv-help-support { margin: clamp(1.5rem, 3.3vw, 2.75rem) 0 0; }
.fv-help-shortcuts h2, .fv-help-topics h2, .fv-help-results h2, .fv-help-support h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.15vw, 1.85rem);
    line-height: 1.2;
    font-weight: 650;
    letter-spacing: -.035em;
    color: var(--help-ink);
}
.fv-help-quick-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: .85rem; margin-top: 1rem; }
.fv-help-answer {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--help-line);
    border-radius: 14px;
    background: var(--help-paper);
}
.fv-help-answer[open] { border-color: #8ea98e; }
.fv-help-answer summary {
    display: flex;
    gap: .8rem;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: .85rem 1.1rem;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.45;
    color: var(--help-ink);
    cursor: pointer;
    border-radius: inherit;
    list-style: none;
}
.fv-help-answer summary::-webkit-details-marker { display: none; }
.fv-help-answer summary:hover { background: #f2f6eb; }
.fv-help-toggle {
    position: relative;
    flex: 0 0 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #e5eddb;
    color: var(--help-forest);
}
.fv-help-toggle::before, .fv-help-toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: .66rem; height: 2px; transform: translate(-50%,-50%); background: currentColor; }
.fv-help-toggle::after { transform: translate(-50%,-50%) rotate(90deg); }
.fv-help-answer[open] .fv-help-toggle::after { display: none; }
.fv-help-answer > div { margin: 0 1.1rem 1.1rem; border-top: 1px solid var(--help-line); }
.fv-help-answer p, .fv-help-list p, .fv-help-empty p, .fv-help-support p {
    color: var(--help-muted);
    line-height: 1.6;
    font-size: .96rem;
}
.fv-help-answer p { margin: .8rem 0 .5rem; }
.fv-help-answer a, .fv-help-results header a, .fv-help-empty a { color: var(--help-forest); text-underline-offset: .2em; font-weight: 600; font-size: .9rem; }
.fv-help-directory { display: grid; grid-template-columns: minmax(13rem, .72fr) minmax(0, 2.28fr); align-items: start; gap: clamp(1rem, 2.4vw, 2rem); scroll-margin-top: 1rem; }
.fv-help-topics, .fv-help-results { min-width: 0; border: 1px solid var(--help-line); border-radius: 16px; }
.fv-help-topics { background: var(--help-tint); padding: 1.15rem; }
.fv-help-topics h2 { margin: .2rem .3rem .8rem; font-size: 1.13rem; letter-spacing: -.025em; }
.fv-help-topics > div { display: grid; gap: .23rem; }
.fv-help-topics a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    min-height: 44px;
    padding: .55rem .7rem;
    color: var(--help-forest);
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    font-size: .93rem;
    line-height: 1.4;
}
.fv-help-topics a:hover { border-color: #a3b69e; }
.fv-help-topics a[aria-current="true"] { background: var(--help-forest); color: #fffef7; font-weight: 650; }
.fv-help-topic-count { font-size: .82rem; font-variant-numeric: tabular-nums; }
.fv-help-results { padding: clamp(1rem, 2.1vw, 1.8rem); background: var(--help-paper); overflow-wrap: anywhere; }
.fv-help-results header, .fv-help-support { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.fv-help-results header p { margin: .25rem 0 0; font-size: .9rem; color: var(--help-muted); }
.fv-help-results header a { flex: 0 0 auto; }
.fv-help-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.fv-help-list li { position: relative; margin: 0; padding: 1rem .2rem; border-top: 1px solid var(--help-line); }
.fv-help-list h3 { margin: 0; font-size: clamp(1.02rem,1.35vw,1.15rem); font-weight: 650; line-height: 1.4; }
.fv-help-list h3 a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; color: var(--help-forest); text-decoration: none; }
.fv-help-list h3 a::after { content: ""; position: absolute; inset: .1rem 0; border-radius: 4px; }
.fv-help-list h3 a:hover { text-decoration: underline; text-underline-offset: .18em; }
.fv-help-list p { margin: .25rem 1.6rem 0 0; max-width: 72ch; }
.fv-help-pages { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--help-line); }
.fv-help-pages a { background: #edf2e6; border-color: var(--help-line); text-decoration: none; font-size: .88rem; }
.fv-help-pages span { font-size: .9rem; color: var(--help-muted); }
.fv-help-empty { margin-top: 1rem; padding: 1.1rem; background: #f1f4ea; border-radius: 9px; }
.fv-help-empty h3 { margin: 0; font-size: 1.12rem; }
.fv-help-empty p, .fv-help-support p { margin: .3rem 0; }
.fv-help-support { padding: clamp(1.3rem, 2.5vw, 2rem); border: 1px solid var(--help-line); border-radius: 16px; background: var(--help-tint); }
.fv-help-support .fv-button { flex-shrink: 0; gap: .6rem; }
.fv-help-centre :is(a, summary, button, input):focus-visible, .fv-help-directory a:focus-visible { outline: 3px solid #39764e; outline-offset: 3px; }
.fv-help-search input[type="search"]:focus-visible { outline-offset: -3px; }
@media (max-width: 52rem) {
    .fv-help-centre .fv-help-hero { grid-template-columns: 1fr; gap: 1.3rem; }
    .fv-help-directory { grid-template-columns: 1fr; }
    .fv-help-topics > div { display: flex; flex-wrap: wrap; gap: .35rem; }
    .fv-help-topics a { border-color: #becfb8; }
    .fv-help-topics h2 { margin-inline-start: 0; }
}
@media (max-width: 42rem) {
    .fv-help-quick-grid { grid-template-columns: 1fr; gap: .5rem; }
    .fv-help-answer summary { min-height: 50px; }
    .fv-help-support, .fv-help-results header { align-items: flex-start; flex-wrap: wrap; }
    .fv-help-search-bar { gap: .2rem; }
    .fv-help-search-bar button { padding-inline: .7rem; }
    .fv-help-search-icon { display: none; }
}
@media (max-width: 24rem) {
    .fv-help-search-bar { flex-wrap: wrap; }
    .fv-help-search-bar input[type="search"] { flex-basis: 100%; }
    .fv-help-search-bar button { width: 100%; }
}
@media (forced-colors: active) {
    .fv-help-topics a[aria-current="true"] { border: 2px solid Highlight; }
    .fv-help-toggle::before, .fv-help-toggle::after { background: ButtonText; }
}
