:root {
    --about-bg: #0b0e14;
    --about-panel: #14171f;
    --about-panel-recessed: #0f1116;
    --about-amber: #e8a33d;
    --about-text: #eaeaea;
    --about-text-muted: #9aa1ad;
    --about-border: rgba(255, 255, 255, .08);
    --about-mono: 'JetBrains Mono', 'Courier New', monospace;
}

::selection {
    color: #e6e6e6;
    background: rgba(40, 40, 40, 0.9);
}

body {
    min-width: 320px;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: var(--about-bg);
    color: var(--about-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#about-content h3,
#about-content h4,
#about-content h5,
#about-content h6 {
    font-family: 'Roboto', sans-serif;
}

header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: rgba(11, 14, 20, .8);
    border-bottom: 1px solid var(--about-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 50;
    padding: 10px 24px;
    box-shadow: 0 0 20px black;

    #header-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex: 1;

        & img {
            height: 40px;
            width: 40px;
        }

        & h1 {
            margin: 0;
            font-family: 'Frijole', sans-serif;
            font-size: 15px;
            letter-spacing: .5px;
        }
    }

    #header-center {
        display: flex;
        align-items: center;
        flex: 1;
        justify-content: center;

        & .nav-ul {
            display: flex;
            flex-direction: row;
            gap: 4px;
            margin: 0;
            padding: 0;

            & .nav-item {
                list-style: none;

                & a {
                    display: inline-block;
                    padding: 6px 12px;
                    font-family: 'Quicksand', sans-serif;
                    font-size: 13px;
                    font-weight: 500;
                    color: var(--about-text-muted);
                    border-radius: 6px;
                    transition: color .2s ease-in-out, background .2s ease-in-out;

                    &:hover {
                        color: var(--about-text);
                        background: rgba(255, 255, 255, .05);
                    }
                }
            }
        }
    }

    #header-right {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex: 1;
        justify-content: flex-end;

        & #account-info {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 10px;
            max-width: 300px;
            height: 40px;

            & > img {
                height: 32px;
                width: 32px;
                border-radius: 50%;
            }

            & > div {
                display: flex;
                flex-direction: column;
                justify-content: center;
                gap: 2px;
                position: relative;

                & > span {
                    font-size: 12px;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    max-width: calc(220px - 10px - 40px);
                    white-space: nowrap;
                }
                & > div {
                    display: flex;
                    flex-direction: row;
                    justify-content: flex-start;
                    align-items: center;
                    gap: 10px;

                    & > i {
                        display: none;
                    }
                    & > a {
                        font-size: 10px;
                        color: var(--about-amber);
                    }
                }
            }
        }
        & #account-in-header {
            height: 31px;
            border-radius: 15px;
            cursor: pointer;
            border: 1px solid var(--about-border);
            transition: all 0.33s ease-in-out;
            background-color: var(--about-panel-recessed);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 12px;

            & > div > div {
                display: flex;
                align-items: center;
                gap: 7px;
                color: var(--about-text);
                font-size: 12px;

                & > svg {
                    width: 12px;
                    height: 12px;
                    fill: var(--about-text);
                }
            }

            &:hover {
                border-color: transparent;
                background-color: var(--about-panel);
            }
        }
    }

    #header-mobile-btn {
        display: none;
        width: 25px;
        height: 25px;
        padding: 2px;
        border: 1px solid var(--about-border);
        border-radius: 7px;
        background: rgba(26, 26, 26, 0.9);
        cursor: pointer;
        transition: all .33s ease-in-out;

        & > svg {
            width: 100%;
            height: 100%;
            fill: rgba(255,255,255,.75);
        }

        &:hover {
            border: 1px solid rgba(255,255,255,.2);
            & > svg {
                fill: rgba(255,255,255,1);
            }
        }
    }
}

a {
    text-decoration: none;
    color: var(--about-amber);
}

#nav-progress {
    position: absolute;
    bottom: 0;
    left: var(--shell-pad, 24px);
    right: calc(var(--shell-pad, 24px) + 8px);
    height: 2px;
    z-index: 999;
    opacity: 0;
    transition: opacity .2s ease-in-out;
}

body.nav-loading #nav-progress,
body.nav-loaded #nav-progress {
    opacity: 1;
}

#nav-progress-fill {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 100%;
    background: var(--about-amber);
    mask-image: linear-gradient(to right, black 0%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 90%, transparent 100%);
}

body.nav-loaded #nav-progress-fill {
    transition: width .15s ease-out;
}

body.nav-loading #nav-progress-fill {
    background-image: linear-gradient(90deg, var(--about-amber), var(--about-amber)),
                       linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
    background-size: 100% 100%, 50% 100%;
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, -50% 0;
    animation: nav-progress-shimmer 1.4s linear infinite;
}

@keyframes nav-progress-shimmer {
    0% { background-position: 0 0, -50% 0; }
    100% { background-position: 0 0, 150% 0; }
}

body.nav-done #nav-progress {
    opacity: 0;
    transition: opacity .4s ease-in-out;
}

body > main {
    top: unset;
}

#about-shell {
    position: relative;
    max-width: 1400px;
    width: 100%;
    margin: 32px auto 0;
    padding: 0 24px;
    box-sizing: border-box;
    --shell-pad: 24px;
}

#about-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 3px;
    padding: 0 8px 0 0;
}

.about-tab {
    position: relative;

    & a {
        display: block;
        padding: 10px 20px 9px;
        font-family: 'Quicksand', sans-serif;
        font-size: 14px;
        font-weight: 600;
        color: var(--about-text-muted);
        background: var(--about-panel-recessed);
        border: 1px solid var(--about-border);
        border-bottom: none;
        border-radius: 8px 8px 0 0;
        transition: color .2s ease-in-out, background .2s ease-in-out;
    }

    & a:hover {
        color: var(--about-text);
    }

    &:after {
        content: "";
        position: absolute;
        bottom: -1px;
        left: 1px;
        height: 1px;
        width: calc(100% - 2px);
        background: transparent;
        transition: background .2s ease-in-out;
    }

    &.active {

        &:after {
            background: var(--about-panel);
        }

        & a {
            color: var(--about-amber);
            background: var(--about-panel);
            border-color: var(--about-border);
            position: relative;
            z-index: 2;
        }
    }
}

#about-tabs-more {
    display: none;
    list-style: none;
    margin-left: auto;
    margin-top: 2px;

    & button {
        display: block;
        padding: 9px 14px 8px;
        font-size: 16px;
        line-height: 1;
        color: var(--about-text-muted);
        background: var(--about-panel-recessed);
        border: 1px solid var(--about-border);
        border-bottom: none;
        border-radius: 8px 8px 0 0;
        cursor: pointer;
    }
}

#about-content {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px 60px;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity .15s ease-in-out;
}

#about-content.nav-fading {
    opacity: 0;
}

#about-content > main {
    display: block;
    flex: 1 0 auto;
    background: var(--about-panel);
    border: 1px solid var(--about-border);
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

footer {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: rgba(11, 14, 20, .9);
    border-top: 1px solid var(--about-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 50;
    padding: 18px 24px;
    color: var(--about-text-muted);
    font-size: 13px;
    box-shadow: 0 0 20px rgb(0 0 0 / 0.5);

    & .nav-ul.flat {
        display: flex;
        flex-direction: row;
        gap: 18px;
        margin: 0;
        padding: 0;

        & .nav-item {
            list-style: none;

            & a {
                color: var(--about-text-muted);
                font-size: 13px;
                transition: color .2s ease-in-out;

                &:hover {
                    color: var(--about-amber);
                }
            }
        }
    }
}

#LoadedModules {
    z-index: 99;
}

#KofiModalCore {
    min-width: unset;
}

@media screen and (max-width: 700px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;

        #header-mobile-btn {
            display: block;
            position: absolute;
            bottom: 14px;
            right: 16px;
        }
        & #header-left {
            & img {
                height: 34px;
                width: 34px;
            }
            & h1 {
                font-size: 13px;
            }
        }
        & #header-right #account-info {
            gap: 8px;

            & > div > span {
            }
        }
        & #header-center {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            box-sizing: border-box;
            padding: 10px 16px 16px;
            background: rgba(11, 14, 20, .95);
            border-bottom: 1px solid var(--about-border);
            justify-content: center;
            text-align: center;
            visibility: hidden;
            opacity: 0;
            translate: 0 -20px;
            box-shadow: 0 15px 15px rgb(0 0 0 / 0.5);
            transition: opacity .25s ease-in-out, translate .25s ease-in-out, visibility .25s;

            & .nav-ul {
                flex-direction: column;
                width: 100%;
            }
        }
        &.nav-open #header-center {
            visibility: visible;
            opacity: 1;
            translate: 0 0;
        }
    }

    #about-shell,
    #about-content {
        padding: 0 12px;
    }

    #about-shell {
        --shell-pad: 12px;
    }

    .about-tab:not(.active) {
        position: absolute;
        left: 12px;
        right: 12px;
        top: calc((var(--tab-slot) - var(--tab-shift, 0)) * 100%);
        z-index: 5;
        visibility: hidden;
        opacity: 0;
        translate: 0 -16px;
        box-shadow: 0 15px 15px rgb(0 0 0 / 0.5);
        transition: opacity .2s ease-in-out, translate .2s ease-in-out, visibility .2s;

        & a {
            border-radius: 0;
            border-bottom: none;
            box-shadow: 0 1px 0 var(--about-border);
        }
    }

    .about-tab:nth-child(1) { --tab-slot: 1; }
    .about-tab:nth-child(2) { --tab-slot: 2; }
    .about-tab:nth-child(3) { --tab-slot: 3; }
    .about-tab:nth-child(4) { --tab-slot: 4; }
    .about-tab:nth-child(5) { --tab-slot: 5; }
    .about-tab:nth-child(6) { --tab-slot: 6; }

    .about-tab.active ~ .about-tab {
        --tab-shift: 1;
        box-shadow: 0 15px 15px rgb(0 0 0 / 0.5);
    }

    .about-tab a {
        white-space: nowrap;
        padding: 10px 14px 9px;
        font-size: 13px;
    }

    #about-tabs-more {
        display: block;
    }

    #about-shell.tabs-open .about-tab:not(.active) {
        visibility: visible;
        opacity: 1;
        translate: 0 0;
    }

    footer {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 20px;

        & .nav-ul.flat {
            flex-wrap: wrap;
        }
    }
}

.content-container {
    display: block;
    width: 100%;
    padding: 40px 48px;
    margin: 0 auto;
    color: var(--about-text);

    & h2 {
        font-size: 24px;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-top: 0;
        margin-bottom: 16px;
        color: #fff;

        & > img {
            max-width: 100%;
            height: auto;
        }
    }

    & p {
        font-size: 14px;
        line-height: 1.7;
        color: #ccc;

        &.small {
            font-size: 12px;
            color: var(--about-text-muted);
            margin: 0;
        }
    }

    & a {
        color: var(--about-amber);
        transition: color .2s ease-in-out;
        &:hover {
            color: color-mix(in srgb, color-mix(in srgb, var(--about-amber) 80%, white) 80%, transparent);
        }
    }

    & h3 {
        margin: 32px 0 10px;
        font-size: 16px;
        font-weight: 600;
        color: var(--about-text);
        padding-left: 12px;
        border-left: 3px solid var(--about-amber);
    }

    & ul {
        margin: 0 0 14px;
        padding-left: 2px;
        padding-right: 2px;
        max-width: 100%;
    }

    & li {
        font-size: 14px;
        line-height: 1.7;
        color: #ccc;
        margin: 6px 0;
    }

    & code {
        background: var(--about-panel-recessed);
        border: 1px solid var(--about-border);
        color: var(--about-amber);
        padding: 1px 6px;
        border-radius: 3px;
        font-family: var(--about-mono);
        font-size: .9em;
    }

    & .pp-updated {
        color: var(--about-text-muted);
        font-style: italic;
        font-size: 13px;
        margin: -6px 0 20px;
    }
}

.privacy-policy-content {
    & .content-container {
        & ul {
            padding-left: 15px;
        }
    }
}

.site-version-info.version-meta {
    top: 16px;
    left: 10px;
    height: 0;
    margin: 0;

    & > span {
        font-size: 10px;
        font-weight: 600;
        padding: 2px 8px;
    }
}

#about-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;

    & > div:first-of-type {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
        align-items: center;

        & > h2 {
            margin: 0;
            font-size: 18px;
            width: 200px;
        }
    }
}

#faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#faq-toggle-all {
    flex-shrink: 0;
    padding: 8px 16px;
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--about-text-muted);
    background: var(--about-panel-recessed);
    border: 1px solid var(--about-border);
    border-radius: 6px;
    cursor: pointer;
    transition: color .2s ease-in-out, border-color .2s ease-in-out;

    &:hover {
        color: var(--about-amber);
        border-color: var(--about-amber);
    }
}

.faq-list {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.faq-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.faq-item {
    background-color: var(--about-panel-recessed);
    border: 1px solid var(--about-border);
    border-radius: 8px;
    transition: border-color .2s ease-in-out;
    overflow: hidden;

    &.faq-item-open {
        border-color: color-mix(in srgb, var(--about-amber) 50%, transparent);
    }

    &:hover {
        border-color: var(--about-amber);
    }
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    color: var(--about-text);
    background: none;
    border: none;
    cursor: pointer;
}

.faq-arrow {
    flex-shrink: 0;
    transition: transform .2s ease-in-out;
}

.faq-svg-icon {
    width: .8em;
    height: .8em;
    fill: var(--about-text-muted);
}

.faq-item-open .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer-body {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 1px;
    transition: grid-template-rows .33s ease-in-out/*, border-top 0s ease-in-out .33s*/;
    /*border-top: 0 solid var(--about-border);*/
}

.faq-item-open .faq-answer-body {
    grid-template-rows: 1fr;
    /*border-top: 1px solid var(--about-border);*/
    transition: grid-template-rows .33s ease-in-out/*, border-top 0s ease-in-out 0s*/;
}

.faq-answer-inner {
    overflow: hidden;
    min-height: 0;

    & p {
        margin: 14px 16px;
    }
}

#faq-sub-tiers {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 14px 16px;
    padding: 0;

    & li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 6px 12px;
        background-color: var(--about-panel);
        border: 1px solid var(--about-border);
        border-radius: 6px;
        width: max-content;
    }
}

.faq-sub-price {
    font-family: var(--about-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--about-amber);
    min-width: 25px;
    text-align: center;
}

.faq-sub-whatget {
    font-size: 13px;
    color: var(--about-text-muted);
    border-bottom: 1px dashed color-mix(in srgb, var(--about-text-muted) 60%, transparent);
    cursor: help;
    transition: color .2s ease-in-out, border-bottom-color .2s ease-in-out;

    &:hover {
        color: var(--about-amber);
        border-bottom-color: var(--about-amber);
    }
}

@media (max-width: 768px) {
    .faq-list {
        flex-direction: column;
    }
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    width: max-content;

    & li {
        padding: 8px 22px 8px 2px;
        border-bottom: 1px solid var(--about-border);
        font-family: var(--about-mono);
        font-size: 13px;
    }
}

.coming-soon-panel {
    display: block;
    background-color: var(--about-panel-recessed);
    border: 1px solid var(--about-border);
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;

    & h4 {
        margin: 0 0 8px;
        color: var(--about-text);
    }

    & .soon-tag {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: var(--about-amber);
        border: 1px solid var(--about-amber);
        border-radius: 10px;
        padding: 2px 8px;
        margin-left: 8px;
    }
}

body.transparency {
    & #TransparencyInfo {
        display: block;
        padding: 40px 48px 48px;
        color: var(--about-text);

        & h2 {
            margin: 0 0 6px;
            font-size: 24px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #fff;
        }

        & .small {
            font-size: 12px;
            color: var(--about-text-muted);
            margin: 0;
        }
        & h4 {
            margin-top: 0;
            margin-bottom: 0;
            text-transform: uppercase;
            letter-spacing: .5px;
        }
        & .transparency-panel {
            & .panel-footer {
                margin-top: 8px;
                font-size: 10px;
                opacity: .9;
            }
        }
    }
    & .transparency-boxes {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
        gap: 20px;
        margin-top: 16px;
        align-items: start;
    }
    & .transparency-panel {
        background-color: var(--about-panel-recessed);
        padding: 20px;
        border: 1px solid var(--about-border);
        border-radius: 8px;
        overflow-x: auto;
        & h3, & h4 {
            color: var(--about-amber);
            margin-bottom: 10px;
            margin-top: 0;
        }
        & h6 {
            color: #f0f0f0;
            margin: 6px 0 2px 0;
            text-transform: uppercase;
            letter-spacing: .5px;
        }
        & ul {
            list-style: none;
            padding-left: 0;
            margin: 10px 0 0;
            color: #ddd;
            font-family: var(--about-mono);
            font-size: 12px;

            & li {
                padding: 5px 0;
                border-bottom: 1px solid var(--about-border);
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                gap: 4px 12px;

                & > span:first-child,
                & > small {
                    color: var(--about-text-muted);
                }
            }
        }
        & .stat-suffix {
            display: inline-block;
            margin-left: 4px;
            padding: 0 6px;
            font-size: 11px;
            line-height: 17px;
            color: var(--about-text-muted);
            background-color: var(--about-panel);
            border: 1px solid var(--about-border);
            border-radius: 4px;
            white-space: nowrap;
            vertical-align: 1px;
            min-width: 87px;
            text-align: center;

            &.pos,
            &.neg {
                min-width: 28px;
            }
            &.pos {
                color: #4cc38a;
            }
            &.neg {
                color: #e2555a;
            }
        }
        & .sub-tier-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;

            & li {
                gap: 8px;
                padding: 4px 10px;
                justify-content: flex-start;
                background-color: var(--about-panel);
                border: 1px solid var(--about-border);
                border-radius: 6px;

                & > span:first-child {
                    color: var(--about-amber);
                }
            }

            & .tier-count {
                color: var(--about-text-muted);
            }
        }
        &.split {
            grid-column: 1 / -1;
            display: flex;
            gap: 40px;
            flex-wrap: wrap;
            & ul li {
                text-align: left;
            }
        }
    }
    & .net-loss {
        color: #e2555a;
        font-weight: 600;
    }
    & .net-gain {
        color: #4cc38a;
        font-weight: 600;
    }
    & .summary-list {
        font-family: var(--about-mono);
        & li {
            display: flex;
            justify-content: space-between;
        }
    }
    & .sub-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 4px;
        font-family: var(--about-mono);
        font-size: 12px;
        color: #ddd;
        & th, & td {
            border: 1px solid var(--about-border);
            padding: 6px;
            text-align: right;
            vertical-align: top;
        }
        & td:first-child, & th:first-child {
            text-align: left;
        }
        & td:first-child {
            color: var(--about-text-muted);
        }
        & th {
            font-weight: 600;
            color: var(--about-amber);
            background-color: rgba(232, 163, 61, .08);

            & > span {
                white-space: nowrap;
            }
        }
        & tbody tr:nth-child(odd) td {
            background-color: rgba(255, 255, 255, .02);
        }
    }
    & .transparency-tiles {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin-top: 20px;
    }
    & .transparency-tile {
        background-color: var(--about-panel-recessed);
        border: 1px solid var(--about-border);
        border-radius: 8px;
        padding: 14px 18px;

        & .tile-label {
            display: block;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: .5px;
            color: var(--about-text-muted);
            margin-bottom: 6px;
        }
        & .tile-value {
            font-family: var(--about-mono);
            font-size: 24px;
            font-weight: 600;
        }
    }
    & .earn-group {
        display: block;
        margin-top: 14px;

        &:first-of-type {
            margin-top: 4px;
        }
        & h6 {
            font-size: 13px;
        }
        & span.has-title {
            text-decoration: underline dashed;
        }
    }
    & .expense-value {
        display: flex;
        white-space: nowrap;
        margin-left: auto;
        text-align: right;
    }
    & .stat-value {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
        margin-left: auto;
        min-width: 0;
        overflow-wrap: break-word;

        & .stat-text {
            text-align: right;
        }
    }
    & .service-status {
        margin: 4px 0 0;

        & a {
            display: inline-flex;
            align-items: center;
            padding: 8px 16px;
            font-family: 'Quicksand', sans-serif;
            font-size: 13px;
            font-weight: 600;
            color: var(--about-text-muted);
            background-color: var(--about-panel-recessed);
            border: 1px solid var(--about-border);
            border-radius: 999px;
            transition: color .2s ease-in-out, border-color .2s ease-in-out;

            &:hover {
                color: var(--about-amber);
                border-color: var(--about-amber);
            }
        }
    }
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 16px;
    margin: 24px 0;
}

.team-card {
    background-color: var(--about-panel-recessed);
    border: 1px solid var(--about-border);
    border-radius: 8px;
    padding: 16px 18px;

    & .team-name {
        display: block;
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 4px;
        transition: opacity .2s ease-in-out;

        &:hover {
            opacity: .75;
        }
    }

    & .team-role {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: var(--about-text-muted);
    }

    & a.name-alphaproject {
        color: #30c0ff;
    }

    & a.name-itsmyghost {
        color: green;
    }

    & .team-links {
        display: flex;
        gap: 6px;
        margin-top: 10px;
    }

    & .team-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        border-radius: 999px;
        background-color: var(--about-panel);
        border: 1px solid var(--about-border);
        transition: border-color .2s ease-in-out;

        & .icon {
            width: 13px;
            height: 13px;
            fill: var(--about-text-muted);
            transition: fill .2s ease-in-out;
        }

        &:hover {
            border-color: var(--about-amber);

            & .icon {
                fill: var(--about-text);
            }
        }
    }
}

.about-quote {
    margin: 28px 0 0;
    padding-left: 14px;
    border-left: 3px solid var(--about-amber);
    font-style: italic;
    font-size: 16px;
    color: var(--about-text-muted);
}

.help-cards {
    display: flex;
    flex-wrap: wrap;
    /*grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 360px));*/
    gap: 12px;
    margin-top: 24px;
}

.content-container .help-card {
    position: relative;
    background-color: var(--about-panel-recessed);
    border: 1px solid var(--about-border);
    border-radius: 8px;
    padding: 15px;
    color: var(--about-text);
    transition: border-color .2s ease-in-out;
    flex: 1 1;
    max-width: calc(310px - 6px);

    & .help-card-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 6px;
    }

    & h4 {
        margin: 0;
        font-size: 15px;
        color: var(--about-text);
    }

    & .help-card-link {
        color: inherit;

        &::after {
            content: "";
            position: absolute;
            inset: 0;
        }
    }

    & .help-card-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    & .help-card-chip {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        gap: 3px;
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: .5px;
        padding: 2px 6px;
        border-radius: 999px;
        background-color: var(--about-panel);
        border: 1px solid var(--about-border);
        color: var(--about-text-muted);
        transition: border-color .2s ease-in-out, color .2s ease-in-out;

        & .icon {
            width: 10px;
            height: 10px;
        }

        &:hover {
            border-color: var(--about-amber);
            color: var(--about-text);
        }
    }

    & p {
        margin: 0;
        font-size: 13px;
        color: var(--about-text-muted);
    }
}

.content-container .help-card:hover {
    border-color: color-mix(in srgb, var(--about-amber) 50%, transparent);;
}

.content-container .help-card.has-link:hover {
    border-color: var(--about-amber);
}

.content-container .help-card-placeholder {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    background: repeating-linear-gradient(
        135deg,
        var(--about-panel-recessed),
        var(--about-panel-recessed) 10px,
        var(--about-panel) 10px,
        var(--about-panel) 20px
    );
    border: 1px dashed var(--about-border);
    border-radius: 8px;
    padding: 18px;
    flex: 1 1;
    max-width: calc(310px - 8px);

    & > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    & .icon {
        width: 22px;
        height: 22px;
        color: var(--about-text-muted);
        animation: help-card-cog-spin 5s linear infinite;
        animation-play-state: paused;
    }

    &:hover .icon {
        animation-play-state: running;
    }

    & h4 {
        margin: 0;
        font-size: 15px;
        color: var(--about-text-muted);
    }

    & p {
        margin: 0;
        font-size: 13px;
        font-style: italic;
        color: var(--about-text-muted);
    }
}

@keyframes help-card-cog-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.content-container .help-card-redacted {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--about-panel-recessed);
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, .025),
        rgba(255, 255, 255, .025) 1px,
        transparent 1px,
        transparent 3px
    );
    border: 1px solid var(--about-border);
    border-radius: 8px;
    padding: 18px 18px 8px;
    flex: 1 1;
    max-width: calc(310px - 8px);
    gap: 6px;
    cursor: help;
    font-family: var(--about-mono);
    transition: border-color .2s ease-in-out;

    & .help-card-redacted-tag {
        display: block;
        font-size: 10px;
        letter-spacing: 2px;
        color: color-mix(in srgb, #c0453a 65%, var(--about-amber));
        margin-bottom: 10px;
    }

    & .help-card-redacted-lines {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    & .help-card-redacted-line {
        display: block;
        height: 9px;
        border-radius: 1px;
        background-color: var(--about-text-muted);
        background-image: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .9) 50%, transparent 100%);
        background-size: 200% 100%;
        background-position: 200% 0;
        background-repeat: no-repeat;
        opacity: .35;

        &:nth-child(1) {
            width: 85%;
        }

        &:nth-child(2) {
            width: 60%;
        }

        &:nth-child(3) {
            width: 72%;
        }
    }

    & .help-card-redacted-footer {
        opacity: .25;
        font-size: 10px;
        transition: opacity .2s ease-in-out;
    }
    &:hover .help-card-redacted-footer {
        opacity: .5;
    }
}

.content-container .help-card-redacted:hover {
    border-color: var(--about-text-muted);

    & .help-card-redacted-line {
        opacity: .7;
        animation: help-card-redacted-glow 7s ease-in-out infinite;
    }
}

@keyframes help-card-redacted-glow {
    0%, 80% { background-position: 200% 0; }
    95%, 100% { background-position: -200% 0; }
}

.pp-toc {
    background-color: var(--about-panel-recessed);
    border: 1px solid var(--about-border);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0 8px;
    display: flex;
    gap: 32px;

    & ol {
        flex: 1;
        margin: 0;
        padding-left: 20px;
    }

    & li {
        margin: 3px 0;
        font-size: 13px;
    }
}

.privacy-policy-content h3[id] {
    scroll-margin-top: 80px;
}

@media screen and (max-width: 900px) {
    body.transparency .transparency-tiles {
        grid-template-columns: 1fr 1fr;
    }

    body.transparency .transparency-tile:last-child {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 1000px) {
    .content-container {
        & .help-cards {
            & .help-card {
                flex: 1 1 calc(50% - 8px);
                max-width: calc(50% - 8px);
            }
        }
    }
}
@media screen and (max-width: 700px) {
    .site-version-info.version-meta {
        flex-direction: row;
        top: 7px;
        left: 10px;
        height: 0;
        margin: 0;
        width: calc(100% - 10px);

        & > span {
            font-size: 10px;
            font-weight: 600;
            padding: 2px 8px;
        }
    }

    .content-container {
        padding: 24px 16px;

        & h2 {
            font-size: 20px;
        }
        & .help-cards {
            & .help-card {
                flex: 1 1 100%;
                max-width: 100%;
            }
        }
    }

    #faq-header {
        flex-wrap: wrap;
    }

    .pp-toc {
        flex-direction: column;
        gap: 0;

        & ol:last-of-type li:first-of-type {
            margin-top: 0;
        }
    }

    body.transparency #TransparencyInfo {
        padding: 24px 16px 32px;

        & h2 {
            font-size: 18px;
            letter-spacing: 0;
        }
    }

    body.transparency .transparency-tiles {
        grid-template-columns: 1fr;
    }

    body.transparency .transparency-panel {
        padding: 14px;
        overflow-x: auto;
    }

    body.transparency .sub-table {
        font-size: 12px;

        & th, & td {
            padding: 5px 6px;
        }

        & th small {
            display: none;
        }
    }

    .pp-toc ol {
        columns: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    #nav-progress,
    header #header-center,
    .about-tab,
    .about-tab a,
    .about-tab:after,
    #faq-toggle-all,
    .faq-arrow,
    .faq-answer-body,
    .content-container a.help-card {
        transition: none;
    }

    #nav-progress-fill {
        animation: none;
    }
}
