
/*!
  Marvin Help Scout Theme — Mirrored Styles
  - Implements requested @font-face for "Cooper Lt BT" (italic, 700–900)
  - Mirrors provided layout & selectors for Help Scout Docs
  - Upload into Help Scout: Docs → Appearance → Custom CSS
*/

/* -------- Font Face: Cooper Lt BT (Italic, 700–900) -------- */
/* Replace the src URLs with your hosted font files (.woff2 / .woff). */
@font-face {
  font-family: "Cooper Lt BT";
  font-style: italic;
  font-weight: 700 900;
  font-display: swap;
  src:
    local("Cooper Lt BT Italic"),
    url("/fonts/CooperLtBT-Italic.woff2") format("woff2"),
    url("/fonts/CooperLtBT-Italic.woff") format("woff");
}

/* -------- Design Tokens / Variables -------- */
:root {
    --font-primary: Aeonik, arial, sans-serif;
    --font-secondary: "Cooper Lt BT", serif;
    --font-color-primary: #171D37;
    --max-container-width: 982px;

    /* Optional art assets (replace or remove) */
    --marvin-image: none;
    --marvin-image-2: none;

    /* Optional background ovals (replace with data-urls if needed) */
    --white-oval: none;
    --maroon-oval: none;
    --teal-oval: none;
}

/* * new styles */
html, body {
    min-height: 100vh;
    height: fit-content;
}

body {
    display: flex;
    flex-direction: column;
    color: var(--font-color-primary);
    leading-trim: both;
    text-edge: cap;
    font-family: var(--font-primary);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

body:has(#contentArea > .row-fluid) {
    background-image: var(--white-oval), var(--maroon-oval), linear-gradient(180deg, rgba(178, 191, 252, 0.20) 0%, #FFF 72.86%);
    background-position: left 500px top 200px, right 500px top 200px, top;
    background-repeat: no-repeat, no-repeat, repeat-x;
}

body:has(#contentArea > .category-list) {
    background-image: var(--white-oval), var(--teal-oval), linear-gradient(180deg, rgba(178, 191, 252, 0.20) 0%, #FFF 72.86%);
    background-position: left 500px top 200px, right 500px top 200px, top;
    background-repeat: no-repeat, no-repeat, repeat-x;
}

/* ---- header ---- */
.navbar .navbar-inner {
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 40px);
    background-color: transparent;
    box-shadow: none;
}

.navbar .navbar-inner::after, .navbar .navbar-inner::before {
    display: none;
}

/* hides the home link */
.navbar .nav a {
    line-height: initial;
}

@media (max-width: 768px) {
    .navbar {
        margin-bottom: 20px;
    }
}

@media (min-width: 769px) {
    header.navbar {
        margin-bottom: 57px;
    }

    .navbar-inner .container-fluid {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-inner .container-fluid::after, .navbar-inner .container-fluid::before {
        display: none;
    }

    .navbar ul.nav {
        position: relative;
    }

    .nav #home {
        display: none;
    }

    .navbar .nav li {
        border-radius: 13px;
        border: 1px solid #FFF;
        background: #FFF6C0;
        /* D1.1 */
        box-shadow: 4px 4px 10px 0px rgba(255, 238, 147, 0.30);
    }

    .navbar .nav > li > a {
        padding: 20px 30px;
    }
}

/* ---- Search ---- */
#docsSearch {
    background-color: transparent;
    border: none;
    width: 100%;
    max-width: var(--max-container-width, 9882px);
    margin: 0 auto;
    padding: 0;
    flex-grow: 0;
}

#searchBar {
    width: 100%;
    display: flex;
    gap: 23px;
    padding: 20px 0;
}

#docsSearch h1::before {
    font-family: var(--font-secondary);
    font-style: italic;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: -0.8px;
    content: "Common Questions ";
}

#docsSearch h1 {
    font-family: var(--font-primary);
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    text-align: left;
    margin-bottom: 0;
}

#searchBar .search-query {
    width: initial;
    flex-grow: 1;
    border-radius: 13px;
    border: 1px solid rgba(23, 29, 55, 0.10);
    background: var(--ffffff, #FFF);
}

#searchBar button {
    border-radius: 13px;
    border: 1px solid #FFF;
    background: #FFEE93;
    /* D1.1 */
    box-shadow: 4px 4px 10px 0px rgba(255, 238, 147, 0.30);
    text-shadow: none;
    color: #171D37;
    position: initial;
}

/* ---- Categories ---- */
#contentArea {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    max-width: var( --max-container-width, 982px);
    flex: 1 1 auto;
}

#contentArea:has( > .row-fluid) {
    background-image: var(--marvin-image-2);
    background-position: left bottom;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    #contentArea:has( > .row-fluid) {
        background-position-y: calc(100% - 60px);
    }
}

.category-list {
    position: relative;
    border-radius: 26px;
    padding: 30px;
    background: #FFF;
    box-shadow: 0px 32px 50px 0px rgba(23, 29, 55, 0.10);
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    gap: 20px 10px;
    width: calc(100% - 60px);
    flex: 0 1 auto;
}

.category-list .category {
    --item-width: 33%;
    display: block;
    max-width: calc(var(--item-width) - 46px);
    border-radius: 16px;
    border: 1px solid #CCC;
    background: #FFF;
    padding: 20px;
    margin: 0;
    flex: 1 1 auto;
    text-decoration: none;
}

.category-list:not(:has(.category:nth-last-child(n + 3))) .category {
    --item-width: 49.8%;
}

.category-list:not(:has(.category:nth-last-child(n + 2))) .category {
    --item-width: 100;
}

.category-list h3 {
    color: #171D37;
    text-align: center;
    font-family: var(--font-secondary);
    font-size: 18px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

.category-list p {
    font-size: 17px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-block-start: 10px; margin-block-end: 0;
}

.category-list .category p {
    color: var(--font-color-primary);
}

.category-list .category .article-count {
    color: #4F5E9E;
    font-size: 16px;
    margin-block-start: 10px;
    font-family: var(--font-primary);
}

@media (max-width: 855px) {
    .category-list .category, .category-list.two-col .category {
        --item-width: 50%;
    }
}

@media (max-width: 768px) {
    #contentArea .category-list .category, #contentArea .category-list.two-col .category {
        width: 29%;
    }

    #contentArea .row-fluid {
        display: flex;
        flex-wrap: wrap;
        flex: 1 1 auto;
    }
}

@media (max-width: 600px) {
    #contentArea .category-list .category, #contentArea .category-list.two-col .category {
        --item-width: 100%;
        width: 100%;
        max-width: 100%;
    }
}

/* ---- Main Content ---- */
#main-content {
    padding-top: 0;
}

.contentWrapper {
    border-radius: 26px;
    background: #FFF;
    box-shadow: 0px 32px 50px 0px rgba(23, 29, 55, 0.10);
}

button, input, select, textarea {
    font-family: var(--font-primary);
}

@media (min-width: 1200px) {
    .row-fluid .span9 {
        width: 70%;
    }
}

@media (max-width: 768px) {
    #main-content {
        order: 2;
        flex: 1 1 auto;
    }

    .contentWrapper {
        margin: 0 20px;
    }
}

/* ---- Sidebar ---- */
#sidebar {
    margin-top: 0;
    top: 60px;
    position: relative;
    display: flex;
    padding: 30px 50px;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    align-self: stretch;
    border-radius: 26px;
    background: #FFF;
    box-shadow: 0px 32px 50px 0px rgba(101, 17, 85, 0.08);
}

#sidebar form#searchBar {
    display: block;
    position: absolute;
    top: -60px;
    left: 0;
    margin: 0;
}

#sidebar form .search-query {
    border-radius: 13px;
    border: 1px solid rgba(23, 29, 55, 0.10);
    background: #FFF;
    padding-right: 55px;
    padding-left: 30px;
}

#searchBar.sm button {
    height: 20px;
    right: 30px;
    top: 10px;
}

#sidebar h3 {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

#sidebar .nav-list {
    margin-bottom: 0;
}

#sidebar .nav-list a {
    color: var(--font-color-primary);
    opacity: 0.4;
    font-family: Aeonik;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

#sidebar .nav-list .active a, #sidebar .nav-list .active a:focus, #sidebar .nav-list .active a:hover {
    opacity: 1;
    text-decoration-line: underline;
}

#sidebar .nav-list .active a .icon-arrow, #sidebar .nav-list .active a:focus .icon-arrow, #sidebar .nav-list .active a:hover .icon-arrow {
    display: none;
}

@media (min-width: 1200px) {
    .row-fluid .span3 {
        width: 30%;
    }
}

@media (max-width: 768px) {
    #sidebar {
        order: 1;
        margin-bottom: 80px;
    }
}

/* ---- Footer ---- */
footer {
    overflow: visible;
    position: relative;
    width: 100%;
    display: flex;
    margin-top: auto;
    justify-content: space-between;
    flex: 0 1 auto;
}

footer p, footer p a {
    margin-top: auto;
    font-family: var(--font-primary);
    color: var(--font-color-primary);
}

.category-list + footer::after {
    display: block;
    margin-right: -75px;
    background-image: var(--marvin-image);
    background-size: 461px;
    background-repeat: no-repeat;
    background-position: bottom right;
    width: 461px;
    height: 400px;
    content: "";
}

.row-fluid ~ footer p {
    order: 2;
}

.row-fluid ~ footer::after {
    display: block;
    content: "";
    order: 1;
}

@media screen and (max-width: 768px) {
    footer {
        flex-wrap: wrap;
        margin-top: 250px;
    }

    .category-list + footer::after {
        width: 100%;
        height: 300px;
        background-size: contain;
        background-position: bottom center;
        order: 1;
    }

    footer p {
        width: 200px;
        margin: 1rem auto;
        order: 2;
    }
}
