/* ---------------------------------------------------------------------------
   The help at its own address (the Help context, templates/help/).

   Loaded after app.css and site.css: the site's tokens, fonts, buttons and
   footer, with the help's own pieces here, every class prefixed hc-. Light
   whatever the OS says, as the site is. An article is read, so its text is
   set for reading: a measure of about seventy characters, screenshots as
   figures in a frame, callouts beside the text, the contents beside it on a
   wide screen.
   --------------------------------------------------------------------------- */

html.hc-root {
    --hc-surface: #ffffff;
    --hc-line: #dde3e7;
    --hc-line-strong: #c3ccd3;
    --hc-soft: #f5f8fa;
    --hc-mark: #fff1c2;
    --hc-tip: #e8f6ee;
    --hc-tip-line: #b7e3c9;
    --hc-tip-ink: #12653a;
    --hc-note: #e6eef3;
    --hc-note-line: #c5d6e2;
    --hc-note-ink: #24394a;
    --hc-warn: #fdf3e2;
    --hc-warn-line: #f4dcae;
    --hc-warn-ink: #8a5a06;
    --hc-header: 4.25rem;

    scroll-padding-top: calc(var(--hc-header) + 1rem);
}

@layer base {
    .hc-body {
        background: var(--site-page);
    }
}

@layer components {
    /* ---- header ----------------------------------------------------------- */

    .hc-header {
        position: sticky;
        top: 0;
        z-index: 30;
        border-bottom: 1px solid var(--hc-line);
        background: rgb(255 255 255 / 0.94);
        backdrop-filter: saturate(1.4) blur(8px);
    }

    .hc-header-row {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        min-height: var(--hc-header);
    }

    .hc-brand {
        display: inline-flex;
        align-items: center;
        gap: 0.7rem;
        min-height: 2.75rem;
        color: var(--site-ink);
        text-decoration: none;
        white-space: nowrap;
    }

    .hc-logo {
        display: block;
        width: auto;
        height: 1.6rem;
    }

    .hc-brand-name {
        padding-left: 0.7rem;
        border-left: 1.5px solid var(--hc-line-strong);
        font-size: 1.0625rem;
        font-weight: 700;
        line-height: 1.6rem;
    }

    .hc-header-search {
        flex: 1;
        max-width: 30rem;
        margin-left: auto;
    }

    .hc-header-link {
        display: inline-flex;
        align-items: center;
        min-height: 2.75rem;
        color: var(--site-muted);
        font-size: 0.9375rem;
        text-decoration: none;
        white-space: nowrap;

        &:hover {
            color: var(--site-ink);
            text-decoration: underline;
        }
    }

    .hc-header-row:not(:has(.hc-header-search)) .hc-header-link {
        margin-left: auto;
    }

    @media (max-width: 40rem) {
        .hc-header-row {
            flex-wrap: wrap;
            gap: 0 1rem;
            padding-block: 0.5rem;
        }

        .hc-header-search {
            order: 3;
            flex-basis: 100%;
            max-width: none;
            padding-bottom: 0.25rem;
        }

        .hc-header-link {
            margin-left: auto;
        }

        .hc-logo {
            height: 1.4rem;
        }
    }

    /* ---- search ----------------------------------------------------------- */

    .hc-search {
        position: relative;
        display: flex;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
    }

    .hc-search-field {
        position: relative;
        display: flex;
        flex: 1;
        align-items: center;
        min-width: 0;

        & input {
            width: 100%;
            min-height: 2.75rem;
            padding: 0 0.9rem 0 2.6rem;
            border: 1.5px solid var(--hc-line-strong);
            border-radius: 0.65rem;
            background: var(--hc-surface);
            color: var(--site-ink);
            font: inherit;
            /* A field's text at 16 px at least, or iOS zooms in as it is tapped. */
            font-size: 1rem;
            -webkit-appearance: none;
            appearance: none;

            &:focus {
                border-color: var(--site-ink);
                outline: 3px solid rgb(19 33 44 / 0.12);
                outline-offset: 0;
            }

            &::placeholder {
                color: #8a96a0;
            }
        }
    }

    .hc-search-icon {
        position: absolute;
        left: 0.8rem;
        color: var(--site-muted);
        pointer-events: none;
    }

    .hc-search-submit {
        min-height: 2.75rem;
        padding: 0 1.1rem;
        border: 0;
        border-radius: 0.65rem;
        background: var(--site-ink);
        color: #fff;
        font: inherit;
        font-weight: 700;
        cursor: pointer;

        &:hover {
            background: #24394a;
        }
    }

    .hc-search-small {
        & .hc-search-submit {
            display: none;
        }

        & input {
            background: var(--hc-soft);
        }
    }

    .hc-search-large {
        & input {
            min-height: 3.5rem;
            padding-left: 3rem;
            border-width: 2px;
            border-radius: 0.85rem;
            font-size: 1.125rem;
            box-shadow: 0 10px 30px -18px rgb(19 33 44 / 0.45);
        }

        & .hc-search-icon {
            left: 1rem;
            width: 22px;
            height: 22px;
        }

        & .hc-search-submit {
            min-height: 3.5rem;
            padding: 0 1.6rem;
            border-radius: 0.85rem;
            font-size: 1.0625rem;
        }
    }

    @media (max-width: 30rem) {
        .hc-search-large .hc-search-submit {
            display: none;
        }
    }

    .hc-suggest {
        position: absolute;
        top: calc(100% + 0.4rem);
        right: 0;
        left: 0;
        z-index: 40;
        display: grid;
        max-height: min(28rem, 70vh);
        overflow-y: auto;
        padding: 0.35rem;
        border: 1px solid var(--hc-line);
        border-radius: 0.8rem;
        background: var(--hc-surface);
        box-shadow: 0 18px 40px -16px rgb(19 33 44 / 0.35);
        text-align: left;

        &[hidden] {
            display: none;
        }
    }

    .hc-suggest-item {
        display: grid;
        gap: 0.05rem;
        padding: 0.6rem 0.75rem;
        border-radius: 0.55rem;
        color: var(--site-ink);
        text-decoration: none;

        &:hover,
        &.is-active {
            background: var(--hc-soft);
        }
    }

    .hc-suggest-category {
        color: var(--site-muted);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .hc-suggest-title {
        font-weight: 700;
    }

    .hc-suggest-desc {
        overflow: hidden;
        color: var(--site-muted);
        font-size: 0.875rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hc-suggest-all {
        margin-top: 0.2rem;
        padding: 0.65rem 0.75rem;
        border-top: 1px solid var(--hc-line);
        color: var(--site-ink);
        font-size: 0.9375rem;
        font-weight: 700;

        &:hover,
        &.is-active {
            background: var(--hc-soft);
        }
    }

    /* ---- front page --------------------------------------------------------- */

    .hc-hero {
        padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2rem, 5vw, 3rem);
        background:
            radial-gradient(60rem 18rem at 50% -4rem, #ffffff 0%, transparent 70%),
            var(--site-dawn);
        text-align: center;

        & .site-wrap {
            max-width: 46rem;
        }
    }

    .hc-hero-title {
        margin: 0 0 0.6rem;
        font-size: clamp(2rem, 5.5vw, 3rem);
        font-weight: 800;
        letter-spacing: -0.025em;
        line-height: 1.08;
    }

    .hc-hero-intro {
        margin: 0 auto 1.6rem;
        max-width: 34rem;
        color: var(--site-muted);
        font-size: 1.125rem;
    }

    .hc-try {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.4rem;
        margin: 1.1rem 0 0;
        color: var(--site-muted);
        font-size: 0.875rem;

        & a {
            display: inline-flex;
            align-items: center;
            min-height: 2rem;
            padding: 0 0.75rem;
            border: 1px solid var(--hc-line-strong);
            border-radius: 999px;
            background: rgb(255 255 255 / 0.7);
            color: var(--site-ink);
            text-decoration: none;

            &:hover {
                background: #fff;
                border-color: var(--site-ink);
            }
        }
    }

    .hc-home {
        display: grid;
        gap: 3rem;
        padding-block: 2.5rem 3.5rem;
    }

    .hc-section-title {
        margin: 0 0 1.1rem;
        font-size: 1.375rem;
        font-weight: 800;
        letter-spacing: -0.01em;
    }

    .hc-category-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
        gap: 1rem;
    }

    .hc-category-card {
        display: flex;
        flex-direction: column;
        padding: 1.25rem 1.3rem 1rem;
        border: 1px solid var(--hc-line);
        border-radius: 1rem;
        background: var(--hc-surface);
        transition: border-color 0.15s, box-shadow 0.15s;

        &:hover {
            border-color: var(--hc-line-strong);
            box-shadow: 0 14px 30px -22px rgb(19 33 44 / 0.5);
        }
    }

    .hc-category-head {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        color: var(--site-ink);
        text-decoration: none;

        &:hover .hc-category-name {
            text-decoration: underline;
        }
    }

    .hc-category-icon {
        display: inline-grid;
        flex: none;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 0.75rem;
        background: var(--site-morning);
        color: var(--site-ink);

        &.is-large {
            width: 3.5rem;
            height: 3.5rem;
            border-radius: 0.9rem;

            & .hc-icon {
                width: 28px;
                height: 28px;
            }
        }
    }

    .hc-category-name {
        display: block;
        font-size: 1.125rem;
        font-weight: 800;
        line-height: 1.25;
    }

    .hc-category-desc {
        margin: 0.7rem 0 0.6rem;
        color: var(--site-muted);
        font-size: 0.9375rem;
        line-height: 1.45;
    }

    .hc-category-list {
        display: grid;
        gap: 0.1rem;
        margin: 0 0 0.6rem;
        padding: 0;
        list-style: none;
        font-size: 0.9375rem;

        & a {
            display: block;
            padding: 0.3rem 0;
            color: var(--site-ink);
            text-decoration: none;

            &::before {
                content: '›';
                margin-right: 0.5rem;
                color: var(--site-muted);
            }

            &:hover {
                text-decoration: underline;
            }
        }
    }

    .hc-category-all {
        margin-top: auto;
        padding-top: 0.6rem;
        border-top: 1px solid var(--hc-line);
        color: var(--site-muted);
        font-size: 0.875rem;
        font-weight: 700;
        text-decoration: none;

        &:hover {
            color: var(--site-ink);
        }
    }

    .hc-badge {
        display: inline-block;
        margin-top: 0.25rem;
        padding: 0.05rem 0.55rem;
        border: 1.5px solid var(--brand-green);
        border-radius: 999px;
        color: var(--brand-green);
        font-size: 0.75rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .hc-popular-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
        gap: 0 2rem;
        margin: 0;
        padding: 0;
        list-style: none;

        & a {
            display: grid;
            gap: 0.1rem;
            padding: 0.85rem 0;
            border-bottom: 1px solid var(--hc-line);
            color: var(--site-ink);
            text-decoration: none;

            &:hover .hc-popular-title {
                text-decoration: underline;
            }
        }
    }

    .hc-popular-title {
        font-weight: 700;
    }

    .hc-popular-desc {
        color: var(--site-muted);
        font-size: 0.9375rem;
    }

    /* ---- inner pages ---------------------------------------------------------- */

    .hc-page {
        padding-block: 2rem 3.5rem;
    }

    .hc-narrow {
        max-width: 50rem;
    }

    .hc-with-nav {
        display: grid;
        grid-template-columns: 15.5rem minmax(0, 1fr);
        gap: 2.75rem;
        align-items: start;
    }

    .hc-with-toc {
        grid-template-columns: 15.5rem minmax(0, 1fr) 13.5rem;
    }

    @media (max-width: 80rem) {
        .hc-with-toc {
            grid-template-columns: 15.5rem minmax(0, 1fr);

            & .hc-toc {
                display: none;
            }
        }
    }

    @media (max-width: 63.99rem) {
        .hc-with-nav,
        .hc-with-toc {
            grid-template-columns: minmax(0, 1fr);
            gap: 1.25rem;
        }
    }

    .hc-content {
        min-width: 0;
        max-width: 46rem;
    }

    .hc-crumbs {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.4rem;
        margin-bottom: 0.75rem;
        color: var(--site-muted);
        font-size: 0.875rem;

        & a {
            color: var(--site-muted);

            &:hover {
                color: var(--site-ink);
            }
        }
    }

    .hc-title {
        margin: 0 0 0.6rem;
        font-size: clamp(1.75rem, 4.5vw, 2.4rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        line-height: 1.12;
    }

    .hc-lead {
        margin: 0 0 1rem;
        color: var(--site-muted);
        font-size: 1.1875rem;
        line-height: 1.5;
    }

    .hc-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.4rem;
        margin: 0 0 1.5rem;
    }

    .hc-chip {
        display: inline-block;
        padding: 0.1rem 0.6rem;
        border-radius: 999px;
        background: var(--site-morning);
        color: var(--site-ink);
        font-size: 0.8125rem;
        font-weight: 600;
    }

    .hc-meta .hc-badge {
        margin-top: 0;
    }

    .hc-category-header {
        display: flex;
        gap: 1.1rem;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }

    .hc-article-list {
        display: grid;
        gap: 0.6rem;
        margin: 0 0 2.5rem;
        padding: 0;
        list-style: none;

        & a {
            display: grid;
            gap: 0.15rem;
            padding: 1rem 1.2rem;
            border: 1px solid var(--hc-line);
            border-radius: 0.85rem;
            background: var(--hc-surface);
            color: var(--site-ink);
            text-decoration: none;

            &:hover {
                border-color: var(--hc-line-strong);
                box-shadow: 0 10px 24px -20px rgb(19 33 44 / 0.6);
            }

            &:hover .hc-article-list-title {
                text-decoration: underline;
            }
        }
    }

    .hc-article-list-title {
        font-size: 1.0625rem;
        font-weight: 700;
    }

    .hc-article-list-desc {
        color: var(--site-muted);
        font-size: 0.9375rem;
    }

    /* ---- the sections down the side ----------------------------------------- */

    .hc-sidenav {
        position: sticky;
        top: calc(var(--hc-header) + 1.5rem);
        max-height: calc(100vh - var(--hc-header) - 3rem);
        overflow-y: auto;
        font-size: 0.9375rem;

        & ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        & a {
            display: flex;
            align-items: center;
            gap: 0.55rem;
            padding: 0.4rem 0.6rem;
            border-radius: 0.5rem;
            color: var(--site-muted);
            text-decoration: none;

            &:hover {
                background: rgb(255 255 255 / 0.7);
                color: var(--site-ink);
            }

            &[aria-current='page'] {
                background: var(--hc-surface);
                color: var(--site-ink);
                font-weight: 700;
                box-shadow: inset 3px 0 0 var(--site-ink);
            }
        }

        & .is-current > a {
            color: var(--site-ink);
            font-weight: 700;
        }
    }

    .hc-sidenav-summary {
        display: none;
    }

    .hc-sidenav-articles {
        margin: 0.15rem 0 0.5rem 1.15rem !important;
        padding-left: 0.65rem !important;
        border-left: 1.5px solid var(--hc-line);
        font-size: 0.875rem;

        & a {
            padding-block: 0.3rem;
            font-weight: 400 !important;
            line-height: 1.35;
        }
    }

    .hc-icon.is-small {
        flex: none;
        width: 18px;
        height: 18px;
    }

    @media (max-width: 63.99rem) {
        .hc-sidenav {
            position: static;
            max-height: none;
        }

        .hc-sidenav-box {
            border: 1px solid var(--hc-line);
            border-radius: 0.8rem;
            background: var(--hc-surface);

            & > ul {
                padding: 0 0.4rem 0.5rem;
            }
        }

        .hc-sidenav-summary {
            display: flex;
            align-items: center;
            min-height: 2.75rem;
            padding: 0 1rem;
            font-weight: 700;
            cursor: pointer;
        }
    }

    /* A box that folds says so: a chevron that turns as it opens. */
    .hc-sidenav-summary,
    .hc-toc-inline summary {
        justify-content: space-between;
        list-style: none;

        &::-webkit-details-marker {
            display: none;
        }

        &::after {
            content: '';
            width: 0.55rem;
            height: 0.55rem;
            margin-left: 1rem;
            border-right: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: translateY(-25%) rotate(45deg);
            transition: transform 0.15s;
        }
    }

    details[open] > .hc-sidenav-summary::after,
    .hc-toc-inline[open] > summary::after {
        transform: translateY(25%) rotate(-135deg);
    }

    /* ---- the contents beside an article ------------------------------------- */

    .hc-toc {
        position: sticky;
        top: calc(var(--hc-header) + 1.5rem);
        max-height: calc(100vh - var(--hc-header) - 3rem);
        overflow-y: auto;
        padding-left: 1rem;
        border-left: 1.5px solid var(--hc-line);
        font-size: 0.875rem;

        & ol {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        & a {
            display: block;
            padding: 0.3rem 0;
            color: var(--site-muted);
            line-height: 1.35;
            text-decoration: none;

            &:hover {
                color: var(--site-ink);
            }

            &.is-current {
                color: var(--site-ink);
                font-weight: 700;
            }
        }
    }

    .hc-toc-title {
        margin: 0 0 0.4rem;
        color: var(--site-ink);
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .hc-toc-inline {
        display: none;
        margin: 0 0 1.5rem;
        border: 1px solid var(--hc-line);
        border-radius: 0.8rem;
        background: var(--hc-surface);

        & summary {
            display: flex;
            align-items: center;
            min-height: 2.75rem;
            padding: 0 1rem;
            font-weight: 700;
            cursor: pointer;
        }

        & ol {
            margin: 0;
            padding: 0 1rem 0.75rem 2.2rem;
        }

        & li {
            padding: 0.2rem 0;
        }

        & a {
            color: var(--site-ink);
        }
    }

    @media (max-width: 80rem) {
        .hc-toc-inline {
            display: block;
        }
    }

    /* ---- an article's text -------------------------------------------------- */

    .hc-prose {
        font-size: 1.0625rem;
        line-height: 1.65;

        & > :first-child {
            margin-top: 0;
        }

        & h2 {
            margin: 2.4rem 0 0.7rem;
            padding-top: 0.4rem;
            font-size: 1.5rem;
            font-weight: 800;
            letter-spacing: -0.015em;
            line-height: 1.25;
        }

        & h3 {
            margin: 1.8rem 0 0.5rem;
            font-size: 1.1875rem;
            font-weight: 800;
            line-height: 1.3;
        }

        & h4 {
            margin: 1.4rem 0 0.4rem;
            font-size: 1.0625rem;
            font-weight: 800;
        }

        & p,
        & ul,
        & ol {
            margin: 0 0 1rem;
        }

        & ul,
        & ol {
            padding-left: 1.4rem;
        }

        & li {
            margin: 0.3rem 0;
            padding-left: 0.2rem;
        }

        & li > p {
            margin: 0.3rem 0;
        }

        & li::marker {
            color: var(--site-muted);
            font-weight: 700;
        }

        /* A numbered list is a set of steps: the number in a circle. */
        & > ol {
            counter-reset: hc-step;
            padding-left: 0;
            list-style: none;

            & > li {
                position: relative;
                margin: 0.75rem 0;
                padding-left: 2.6rem;
                counter-increment: hc-step;

                &::before {
                    content: counter(hc-step);
                    position: absolute;
                    top: 0.05rem;
                    left: 0;
                    display: grid;
                    place-items: center;
                    width: 1.75rem;
                    height: 1.75rem;
                    border-radius: 999px;
                    background: var(--site-ink);
                    color: #fff;
                    font-size: 0.875rem;
                    font-weight: 800;
                    line-height: 1;
                }
            }
        }

        & a {
            color: var(--site-ink);
            text-decoration: underline;
            text-decoration-color: rgb(19 33 44 / 0.35);
            text-decoration-thickness: 1.5px;
            text-underline-offset: 3px;

            &:hover {
                text-decoration-color: currentColor;
            }
        }

        & strong {
            font-weight: 700;
        }

        & code {
            padding: 0.1rem 0.35rem;
            border-radius: 0.3rem;
            background: var(--site-morning);
            font-family: 'Spline Sans Mono', ui-monospace, monospace;
            font-size: 0.875em;
        }

        & hr {
            margin: 2rem 0;
            border: 0;
            border-top: 1px solid var(--hc-line);
        }

        & blockquote {
            margin: 0 0 1rem;
            padding-left: 1rem;
            border-left: 3px solid var(--hc-line-strong);
            color: var(--site-muted);
        }

        & mark {
            background: var(--hc-mark);
        }
    }

    .hc-table {
        overflow-x: auto;
        margin: 0 0 1.25rem;
        border: 1px solid var(--hc-line);
        border-radius: 0.75rem;
        background: var(--hc-surface);

        & table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.9375rem;
            line-height: 1.45;
        }

        & th,
        & td {
            padding: 0.6rem 0.85rem;
            border-bottom: 1px solid var(--hc-line);
            text-align: left;
            vertical-align: top;
        }

        & th {
            background: var(--hc-soft);
            font-weight: 700;
            white-space: nowrap;
        }

        & tr:last-child td {
            border-bottom: 0;
        }
    }

    .hc-figure {
        margin: 1.4rem 0 1.6rem;

        & img {
            display: block;
            max-width: 100%;
            height: auto;
            border: 1px solid var(--hc-line);
            border-radius: 0.75rem;
            background: #fff;
            box-shadow: 0 16px 34px -26px rgb(19 33 44 / 0.55);
        }

        & figcaption {
            margin-top: 0.55rem;
            color: var(--site-muted);
            font-size: 0.875rem;
            line-height: 1.45;
        }
    }

    .hc-figure-link {
        display: inline-block;
        max-width: 100%;
        cursor: zoom-in;
    }

    .hc-callout {
        margin: 1.25rem 0;
        padding: 0.85rem 1.1rem 0.15rem;
        border: 1px solid var(--hc-note-line);
        border-left-width: 4px;
        border-radius: 0.65rem;
        background: var(--hc-note);

        &[data-kind='tip'] {
            border-color: var(--hc-tip-line);
            background: var(--hc-tip);

            & .hc-callout-label {
                color: var(--hc-tip-ink);
            }
        }

        &[data-kind='warning'] {
            border-color: var(--hc-warn-line);
            background: var(--hc-warn);

            & .hc-callout-label {
                color: var(--hc-warn-ink);
            }
        }

        & p {
            margin: 0 0 0.7rem;
        }
    }

    .hc-callout-label {
        margin-bottom: 0.25rem !important;
        color: var(--hc-note-ink);
        font-size: 0.8125rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .hc-updated {
        margin: 2rem 0 0;
        color: var(--site-muted);
        font-size: 0.875rem;
    }

    .hc-pager {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        margin: 1.75rem 0 0;

        & a {
            display: grid;
            gap: 0.15rem;
            padding: 0.9rem 1.1rem;
            border: 1px solid var(--hc-line);
            border-radius: 0.8rem;
            background: var(--hc-surface);
            color: var(--site-ink);
            font-weight: 700;
            text-decoration: none;

            &:hover {
                border-color: var(--site-ink);
            }

            & span {
                color: var(--site-muted);
                font-size: 0.8125rem;
                font-weight: 600;
            }
        }
    }

    .hc-pager-next {
        grid-column: 2;
        text-align: right;
    }

    @media (max-width: 34rem) {
        .hc-pager {
            grid-template-columns: minmax(0, 1fr);
        }

        .hc-pager-next {
            grid-column: 1;
        }
    }

    /* ---- search results --------------------------------------------------- */

    .hc-search-page {
        margin: 0.5rem 0 1.5rem;
    }

    .hc-search-count {
        margin: 0 0 1rem;
        color: var(--site-muted);
    }

    .hc-results {
        display: grid;
        gap: 0.6rem;
        margin: 0 0 2.5rem;
        padding: 0;
        list-style: none;

        & a {
            display: grid;
            gap: 0.2rem;
            padding: 1rem 1.2rem;
            border: 1px solid var(--hc-line);
            border-radius: 0.85rem;
            background: var(--hc-surface);
            color: var(--site-ink);
            text-decoration: none;

            &:hover {
                border-color: var(--hc-line-strong);
            }

            &:hover .hc-result-title {
                text-decoration: underline;
            }
        }

        & mark {
            border-radius: 0.2rem;
            background: var(--hc-mark);
            color: inherit;
        }
    }

    .hc-result-category {
        color: var(--site-muted);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .hc-result-title {
        font-size: 1.0625rem;
        font-weight: 700;
    }

    .hc-result-snippet {
        color: var(--site-muted);
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    /* ---- whom to ask ------------------------------------------------------ */

    .hc-contact {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 1rem 2rem;
        margin-top: 2.5rem;
        padding: 1.4rem 1.6rem;
        border-radius: 1rem;
        background: var(--site-morning);

        & h2 {
            margin: 0 0 0.2rem;
            font-size: 1.25rem;
            font-weight: 800;
        }

        & p {
            margin: 0;
            color: var(--site-muted);
        }
    }

    .hc-contact-ways {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .hc-home .hc-contact {
        margin-top: 0;
    }

    /* ---- footer ----------------------------------------------------------- */

    .hc-footer-links {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0 1.25rem;
        max-width: 40rem;
    }

    @media (max-width: 40rem) {
        .hc-footer .site-wrap {
            grid-template-columns: minmax(0, 1fr);
        }

        .hc-footer-links {
            justify-content: flex-start;
        }
    }

    @media print {
        .hc-header,
        .hc-sidenav,
        .hc-toc,
        .hc-toc-inline,
        .hc-pager,
        .hc-contact,
        .hc-footer {
            display: none !important;
        }

        .hc-with-nav,
        .hc-with-toc {
            display: block;
        }
    }
}
