/*
 * 11/03/2026 - The full help pages (/help, /help/<topic>, /help/<article>). They use their own layout, templates/Help.Master, so this
 * file stands alone: it doesn't load or lean on the site's admin or public styles, and a page looks the same on both sites. The article
 * text itself is styled in help-drawer.css and only sized up here. See docs/help-system-plan.md, section 3.
 */

.help-site {
    --hs-text: #1f2933;
    --hs-text-2: #4a5866;
    --hs-line: #e2e6ea;
    --hs-line-2: #c6ced6;
    --hs-tint: #f3f5f7;
    --hs-link: #0b5cad;
    --hs-brand: #d4530f;
    --hs-top-height: 60px;
    margin: 0;
    background: #fff;
    color: var(--hs-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

.help-site-dd {
    --hs-brand: #f18805;
}

.help-site *,
.help-site *::before,
.help-site *::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 84px;
}

.help-site a {
    color: var(--hs-link);
    text-decoration: none;
}

.help-site a:hover {
    text-decoration: underline;
}

.help-site a:focus-visible,
.help-site summary:focus-visible,
.help-site button:focus-visible,
.help-site input:focus-visible,
.help-site textarea:focus-visible {
    outline: 2px solid var(--hs-link);
    outline-offset: 2px;
}

.help-site [hidden] {
    display: none !important;
}

/* ---- Top bar ---- */

.hs-top {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--hs-top-height);
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid var(--hs-line);
}

.help-site .hs-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
    color: var(--hs-text);
    font-size: 17px;
    font-weight: 600;
}

.help-site .hs-logo:hover {
    text-decoration: none;
}

.hs-logo img {
    display: block;
    width: auto;
    height: 34px;
}

.hs-logo-word {
    padding-left: 12px;
    border-left: 1px solid var(--hs-line-2);
}

/* MyLittleSalesman's logo is made for its navy header. */
.help-site-mls .hs-top {
    background: #252c62;
    border-bottom-color: #252c62;
}

.help-site.help-site-mls .hs-logo,
.help-site.help-site-mls .hs-top-link {
    color: #fff;
}

.help-site-mls .hs-logo img {
    height: 42px;
}

.help-site-mls .hs-logo-word {
    border-left-color: rgba(255, 255, 255, 0.4);
}

.help-site-mls .hs-top .hs-q {
    border-color: transparent;
}

.hs-search {
    position: relative;
    flex: 1;
    max-width: 520px;
    margin: 0 auto;
}

.hs-search .fa-search {
    position: absolute;
    top: 50%;
    left: 12px;
    color: var(--hs-text-2);
    font-size: 14px;
    transform: translateY(-50%);
}

.hs-q {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 36px;
    background: #fff;
    border: 1px solid var(--hs-line-2);
    border-radius: 8px;
    color: var(--hs-text);
    font: inherit;
    -webkit-appearance: none;
}

.hs-q::placeholder {
    color: var(--hs-text-2);
}

.hs-top-link {
    flex: none;
    margin-left: auto;
    font-size: 15px;
}

/* ---- Three columns: the list of help, the article, and On this page ---- */

.hs-body {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr) 250px;
    align-items: start;
    max-width: 1440px;
    margin: 0 auto;
}

.hs-body-home {
    display: block;
    max-width: 1080px;
    padding: 0 24px;
}

.hs-nav {
    position: sticky;
    top: var(--hs-top-height);
    height: calc(100vh - var(--hs-top-height));
    padding: 20px 14px 40px 20px;
    overflow-y: auto;
    border-right: 1px solid var(--hs-line);
    font-size: 15px;
    line-height: 1.4;
}

.hs-nav-toggle > summary {
    display: none;
}

.hs-area {
    margin-bottom: 4px;
}

.hs-area > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.hs-area > summary::-webkit-details-marker {
    display: none;
}

.hs-area > summary::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    margin-top: -2px;
    border-right: 2px solid var(--hs-text-2);
    border-bottom: 2px solid var(--hs-text-2);
    transform: rotate(-45deg);
}

.hs-area[open] > summary::before {
    margin-top: -5px;
    transform: rotate(45deg);
}

.hs-area > summary:hover {
    background: var(--hs-tint);
}

.hs-area ul {
    margin: 2px 0 8px;
    padding: 0 0 0 15px;
    list-style: none;
}

.help-site .hs-area a {
    display: block;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--hs-text);
}

.help-site .hs-area a:hover {
    background: var(--hs-tint);
    text-decoration: none;
}

.help-site .hs-area a.current {
    background: var(--hs-tint);
    color: var(--hs-text);
    font-weight: 600;
}

.hs-main {
    min-width: 0;
    padding: 28px 40px 72px;
}

.hs-main > * {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hs-body-home .hs-main {
    padding: 0 0 72px;
}

.hs-body-home .hs-main > * {
    max-width: none;
}

.hs-toc {
    position: sticky;
    top: var(--hs-top-height);
    max-height: calc(100vh - var(--hs-top-height));
    padding: 32px 20px 40px 8px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.4;
}

.hs-toc-title {
    margin-bottom: 8px;
    padding-left: 13px;
    font-weight: 600;
}

.hs-toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--hs-line);
}

.help-site .hs-toc a {
    display: block;
    margin-left: -1px;
    padding: 5px 0 5px 12px;
    border-left: 2px solid transparent;
    color: var(--hs-text-2);
}

.help-site .hs-toc a:hover {
    color: var(--hs-text);
    text-decoration: none;
}

.help-site .hs-toc a.current {
    border-left-color: var(--hs-brand);
    color: var(--hs-text);
    font-weight: 600;
}

/* Where the right-hand column doesn't fit, the same list folds up above the article. */
.hs-toc-inline {
    display: none;
    margin: 0 0 20px;
    padding: 10px 14px;
    border: 1px solid var(--hs-line);
    border-radius: 8px;
    font-size: 15px;
}

.hs-toc-inline summary {
    cursor: pointer;
    font-weight: 600;
}

.hs-toc-inline ul {
    margin: 8px 0 2px;
    padding: 0 0 0 18px;
}

.hs-toc-inline li {
    margin-bottom: 4px;
}

/* ---- Headings, trail and meta ---- */

.hs-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--hs-text-2);
    font-size: 14px;
}

.help-site .help-article-title {
    margin: 0 0 16px;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    outline: 0;
}

.hs-lead {
    margin: 0 0 20px;
    color: var(--hs-text-2);
    font-size: 18px;
    line-height: 1.5;
}

.hs-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    vertical-align: middle;
}

.hs-tag-draft {
    background: #fff1d6;
    color: #6b4a00;
}

.hs-tag-staff {
    background: #dcebf8;
    color: #0c4a80;
}

/* ---- Where this page stands, for someone who can publish it ---- */

.hs-publish {
    margin: 0 0 16px;
    padding: 10px 14px;
    border: 1px solid #ecd9ad;
    border-radius: 8px;
    background: #fff8e8;
    color: #6b4a00;
    font-size: 15px;
}

.hs-publish-on {
    border-color: #bfe3c9;
    background: #eef8f0;
    color: #1b5e30;
}

.hs-publish-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.hs-publish-text {
    flex: 1 1 100%;
}

.hs-publish-views {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    margin-top: 8px;
    font-size: 14px;
}

.hs-publish-views a,
.hs-publish-line a {
    color: inherit;
    text-decoration: underline;
}

.hs-publish-error {
    flex-basis: 100%;
    color: #a32d2d;
}

.hs-publish button {
    padding: 6px 14px;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.hs-publish button.hs-publish-main {
    border-color: #185fa5;
    background: #185fa5;
    color: #fff;
}

.hs-publish button:disabled {
    opacity: .6;
    cursor: default;
}

/* ---- The article, a little bigger and roomier than in the drawer ---- */

.help-page-article {
    font-size: 16px;
    line-height: 1.7;
}

.help-page-article > p:first-child {
    color: var(--hs-text-2);
    font-size: 18px;
    line-height: 1.55;
}

.help-site .help-page-article h1,
.help-site .help-page-article h2 {
    margin: 36px 0 10px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.help-site .help-page-article h3,
.help-site .help-page-article h4 {
    margin: 26px 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.help-site .help-page-article p {
    margin: 0 0 14px;
}

.help-site .help-page-article ol,
.help-site .help-page-article ul {
    margin: 0 0 14px;
    padding-left: 24px;
}

.help-site .help-page-article li {
    margin-bottom: 8px;
}

.help-site .help-page-article .help-note > :last-child,
.help-site .help-page-article .help-warning > :last-child,
.help-site .help-page-article .help-staff-note > :last-child {
    margin-bottom: 0;
}

.help-site .help-page-article strong {
    font-weight: 600;
}

.help-site .help-page-article table {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
}

.help-site .help-page-article th,
.help-site .help-page-article td {
    padding: 9px 12px;
    border: 1px solid var(--hs-line);
    text-align: left;
    vertical-align: top;
}

.help-site .help-page-article th {
    background: var(--hs-tint);
    font-weight: 600;
}

.help-site .help-page-article code {
    padding: 1px 5px;
    background: var(--hs-tint);
    border-radius: 4px;
    font-size: 14px;
}

.help-article-meta {
    margin-top: 28px;
    color: var(--hs-text-2);
    font-size: 14px;
}

/* ---- Under the article ---- */

.help-site .help-article-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--hs-line);
    font-size: 15px;
}

.help-site .help-footer-row {
    margin-bottom: 12px;
}

.help-site .help-helped {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.help-site .help-helped a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 14px;
    border: 1px solid var(--hs-line-2);
    border-radius: 8px;
    color: var(--hs-text);
}

.help-site .help-helped a:hover {
    background: var(--hs-tint);
    text-decoration: none;
}

.help-site .help-footer-links a {
    margin-right: 16px;
}

.help-site .help-form textarea {
    display: block;
    width: 100%;
    min-height: 88px;
    padding: 8px 10px;
    border: 1px solid var(--hs-line-2);
    border-radius: 8px;
    color: var(--hs-text);
    font: inherit;
}

.help-site .help-form-label {
    margin-bottom: 6px;
    font-weight: 600;
}

.help-site .help-form-buttons {
    margin-top: 8px;
}

.help-site .btn {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
}

.help-site .btn-primary {
    background: var(--hs-brand);
    color: #fff;
}

.help-site .btn-link {
    background: transparent;
    color: var(--hs-link);
}

.hs-prevnext {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.help-site .hs-prevnext a {
    display: block;
    padding: 12px 16px;
    border: 1px solid var(--hs-line);
    border-radius: 8px;
    color: var(--hs-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.help-site .hs-prevnext a:hover {
    border-color: var(--hs-line-2);
    background: var(--hs-tint);
    text-decoration: none;
}

.hs-prevnext span {
    display: block;
}

.hs-prevnext a span {
    margin-bottom: 2px;
    color: var(--hs-text-2);
    font-size: 13px;
    font-weight: 400;
}

.help-site .hs-prevnext .hs-next {
    text-align: right;
}

/* ---- Search results ---- */

.hs-results .help-result {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--hs-line);
}

.hs-results .help-result > a {
    font-size: 18px;
    font-weight: 600;
}

/* ---- A topic's list of articles ---- */

.hs-rows {
    border-top: 1px solid var(--hs-line);
}

.help-site .hs-row {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--hs-line);
}

.help-site .hs-row:hover {
    background: var(--hs-tint);
    text-decoration: none;
}

.hs-row-title {
    display: block;
    font-size: 17px;
    font-weight: 600;
}

.hs-row-text {
    display: block;
    color: var(--hs-text-2);
    font-size: 15px;
    line-height: 1.45;
}

/* ---- The help home page ---- */

.hs-hero {
    padding: 44px 0 28px;
}

.hs-hero h1 {
    margin: 0 0 18px;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.2;
}

.hs-hero .hs-search {
    max-width: none;
    margin: 0;
}

.hs-hero .hs-q {
    height: 50px;
    padding-left: 42px;
    font-size: 17px;
}

.hs-hero .fa-search {
    left: 15px;
    font-size: 16px;
}

.hs-body-home section {
    margin-bottom: 36px;
}

.hs-body-home h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.hs-trouble ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 17px;
}

.hs-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hs-card {
    padding: 18px 20px;
    border: 1px solid var(--hs-line);
    border-radius: 10px;
}

.hs-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.help-site .hs-card h3 a {
    color: var(--hs-text);
}

.hs-card h3 .fa {
    width: 22px;
    color: var(--hs-brand);
    font-size: 16px;
}

.hs-card p {
    margin: 0 0 10px;
    color: var(--hs-text-2);
    font-size: 15px;
    line-height: 1.45;
}

.hs-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.35;
}

.hs-card li {
    margin-bottom: 7px;
}

.help-site .hs-card-more {
    display: inline-block;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
}

/* ---- Narrower screens ---- */

@media (max-width: 1239.98px) {
    .hs-body {
        grid-template-columns: 270px minmax(0, 1fr);
    }

    .hs-toc {
        display: none;
    }

    .hs-toc-inline {
        display: block;
    }
}

@media (max-width: 899.98px) {
    html {
        scroll-padding-top: 12px;
    }

    /* On a phone the top bar scrolls away, so it doesn't eat a third of the screen. */
    .hs-top {
        position: static;
        flex-wrap: wrap;
        height: auto;
        gap: 8px 12px;
        padding: 10px 16px;
    }

    .hs-top .hs-search {
        order: 3;
        flex: 0 0 100%;
        max-width: none;
    }

    .hs-logo img {
        height: 30px;
    }

    .hs-body {
        display: block;
    }

    .hs-body-home {
        padding: 0 16px;
    }

    .hs-nav {
        position: static;
        height: auto;
        padding: 12px 16px 0;
        overflow: visible;
        border-right: 0;
    }

    .hs-nav-toggle > summary {
        display: block;
        padding: 10px 14px;
        border: 1px solid var(--hs-line-2);
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
    }

    .hs-nav-toggle[open] > summary {
        margin-bottom: 10px;
    }

    .hs-main {
        padding: 16px 16px 56px;
    }

    .hs-body-home .hs-main {
        padding: 0 0 56px;
    }

    .hs-hero {
        padding: 24px 0 20px;
    }

    .hs-hero h1,
    .help-site .help-article-title {
        font-size: 26px;
    }

    .hs-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599.98px) {
    /* Keeps the link beside the logo on most phones, so the article starts higher. */
    .hs-top-link {
        font-size: 14px;
    }

    .hs-cards,
    .hs-trouble ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .hs-prevnext {
        grid-template-columns: minmax(0, 1fr);
    }

    .help-site .hs-prevnext .hs-next {
        text-align: left;
    }

    .hs-prevnext span:empty {
        display: none;
    }
}

@media print {
    .hs-publish,
    .hs-top,
    .hs-nav,
    .hs-toc,
    .hs-prevnext,
    .help-site .help-article-footer {
        display: none !important;
    }

    .hs-body {
        display: block;
    }
}
