body {
    --bs-primary: #4950f6;
    --bs-link-color: #4950f6;
    --bs-link-hover-color: #3f47f6;
    --bs-body-font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.navbar.bg-light {
    background-color: #ffffff !important;
}

a.navbar-brand {
    color: var(--bs-link-color);
    font-weight: 600;
}

a.navbar-brand:hover {
    color: var(--bs-link-hover-color);
}

/**
 * Ensure content pushes footer to the bottom
 *
 * Ref: https://stackoverflow.com/a/49227697
 */
#content {
    --header-height: 58px;
    --footer-height: 180px;
    min-height: 70vh;
    min-height: -webkit-calc(100vh - var(--header-height) - var(--footer-height));
    min-height: -moz-calc(100vh - var(--header-height) - var(--footer-height));
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* Footer */
.site-footer {
    position: relative;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0px;
    color: #ABABC9;
    background-color:#11103E;
}

.site-footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30%;
    right: 0;
    height: 93px;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjk4IiBoZWlnaHQ9IjkzIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPiAgPGRlZnM+ICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iMjguOTQlIiB5MT0iLTMwLjY4MyUiIHgyPSI2Ny40NzMlIiB5Mj0iMTM1LjAyMiUiIGlkPSJhIj4gICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNTY1Njc4IiBvZmZzZXQ9IjAlIi8+ICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzU2NTY3OCIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjEwMCUiLz4gICAgPC9saW5lYXJHcmFkaWVudD4gIDwvZGVmcz4gIDxwYXRoIGQ9Ik00MDMuMjQ0IDY5MGMyNC4yMDktNTQuNzc2IDc5LjAxOS05MyAxNDIuNzU2LTkzIDUzLjI1NSAwIDEyMy40NTggNTAuNjc0IDE5Ny4yMTUgOTNoLTMzOS45N3oiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC00MDMgLTU5NykiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZmlsbC1vcGFjaXR5PSIuMjQiLz48L3N2Zz4=);
    background-repeat:no-repeat;
}

.site-footer a {
    color: #ABABC9;
    text-decoration: none;
}

.site-footer a:hover, .site-footer a:active {
    color: #fff;
    text-decoration: underline;
}

.site-footer-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    padding-top: 48px;
    padding-bottom: 48px;
}

.site-footer-inner.has-top-divider::before {
    background: #565678;
    background: linear-gradient(to right, rgba(86, 86, 120, 0.1) 0, rgba(86, 86, 120, 0.6) 50%, rgba(86, 86, 120, 0.1) 100%);
}

.footer-brand, .footer-links, .footer-social-links, .footer-copyright {
    flex: none;
    width: 100%;
    display: inline-flex;
    justify-content: center
}

.footer-brand, .footer-links, .footer-social-links {
    margin-bottom: 24px
}

.footer-links.list-reset {
    list-style: none;
}

.footer-links li + li, .footer-social-links li + li {
    margin-left: 16px;
}

.footer-social-links li {
    display: inline-flex;
}

.footer-social-links li a {
    padding: 8px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

@media (min-width: 576px) {
    .site-footer::before {
        left: 30%;
        right: 30%;
    }
    .site-footer-inner {
        justify-content: space-between;
    }

    .footer-brand, .footer-links, .footer-social-links, .footer-copyright {
        flex: 50%;
    }

    .footer-brand, .footer-copyright {
        justify-content: flex-start;
    }

    .footer-links, .footer-social-links {
        justify-content: flex-end;
    }

    .footer-links {
        order: 1;
        margin-bottom: 0;
    }
}


/* Page sections */
.page {
    padding-bottom: 9rem;
    padding-top: 2rem;
}

.page a {
    text-decoration: none;
}

.page .section {
    margin: 0 auto;
    max-width: 1000px;
}

.page .section--narrow {
    max-width: 720px;
}

.page .section > header {
    padding-bottom: 1rem;
    padding-top: 3rem;
}

.page .section ol[type='a'] {
    list-style-type: lower-alpha;
    margin-left: 30px;
}

.page .section ol[type='i'] {
    list-style-type: lower-roman;
    margin-left: 20px;
}

/* Page nav-pills section */
.page .section--pills {
    border-bottom: 0;
    padding-bottom: 0;
    padding-top: 15px;
}

.page .section--pills > header {
    padding-top: 0rem;
}

.page .section--pills + .section > header {
    padding-top: 0.5rem;
}

.page .nav-pills {
    flex-direction: row;
    margin: 15px 0;
}

.page .nav-pills > li {
    float: left;
}

.page .nav-pills > li + li {
    margin-left: 10px;
}

.page .nav-pills a {
    background: #f5f5f5;
    color: #2f2f2f;
    font-size: 14px;
    padding: 8px;
}

.page .nav-pills a:focus,
.page .nav-pills a:hover,
.page .nav-pills a:active {
    background: #eeeeee;
    color: #222222;
}

/* Terms page */
.page--legal h1,
.page--legal h2 {
    font-weight: $fontWeight-light;
}

.page--legal h3 {
    font-size: 1.2rem;
}

.page--legal h1,
.page--legal h2,
.page--legal h3 {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.page--legal h1:hover .anchor,
.page--legal h2:hover .anchor,
.page--legal h3:hover .anchor {
    height: auto;
    width: auto;
}

.page--legal .anchor {
    height: 0;
    margin-left: -1em;
    overflow: hidden;
    position: absolute;
    width: 0;
}
.page--legal .anchor:focus,
.page--legal .anchor:hover {
    height: auto;
    text-decoration: none;
    width: auto;
}

.page--form .section {
    max-width: 500px;
}

/**
 * Bootstrap overrides
 */
.btn-primary {
    --bs-btn-bg: #4950f6;
    --bs-btn-border-color: #4950f6;
    --bs-btn-hover-bg: #4248dd;
    --bs-btn-hover-border-color: #4248dd;
    --bs-btn-active-bg: #3a40c5;
    --bs-btn-active-border-color: #3a40c5;
}

.pagination {
    --bs-pagination-active-bg: #4950f6;
    --bs-pagination-active-border-color: #4950f6;
}
.alert .alert-link {
    text-decoration: underline;
}

/* intl-tel-input overrides */
.iti {
    display: block;
}

.form-label {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Dropdown navbar button */
.navbar-expand-lg .navbar-nav .dropdown-menu {
    position: absolute;
}


/* Larger check input */
.form-switch {
    padding-left: 3.5em;
}
.form-switch .form-check-input {
    height: 1.5rem;
    width: 2.75rem;
    border-radius: 3rem;
    margin-left: -3.5em;
}

/**
 * OTP input
 * Ref: https://dev.to/madsstoumann/using-a-single-input-for-one-time-code-352l
 */
input[autocomplete=one-time-code] {
    --otp-digits: 6;
    --otp-fz: 1.75em;  /* Font size */
    --otp-ls: 2ch;   /* Width of each digit */
    --otp-gap: 1.25;

    /* private consts */
    --_otp-bgsz: calc(var(--otp-ls) + 1ch);
    --_otp-digit: 0;

    all: unset;
    background:
	linear-gradient(90deg,
	var(--otp-bg, #bbb) calc(var(--otp-gap) * var(--otp-ls)),
	transparent 0),
	linear-gradient(90deg,
	var(--otp-bg, #eee) calc(var(--otp-gap) * var(--otp-ls)),
	transparent 0
	);
    background-position: calc(var(--_otp-digit) * var(--_otp-bgsz)) 0, 0 0;
    background-repeat: no-repeat, repeat-x;
    background-size: var(--_otp-bgsz) 100%;
    caret-color: var(--otp-cc, #212529);
    caret-shape: block;
    clip-path: inset(0% calc(var(--otp-ls) / 2) 0% 0%);
    font-family: ui-monospace, monospace;
    font-size: var(--otp-fz, 2.5em);
    inline-size: calc(var(--otp-digits) * var(--_otp-bgsz));
    letter-spacing: var(--otp-ls);
    padding-block: var(--otp-pb, 1ch);
    padding-inline-start: calc(((var(--otp-ls) - 1ch) / 2) * var(--otp-gap));
}


@media (min-width: 768px) {
    input[autocomplete=one-time-code] {
        --otp-fz: 2.5em;
    }
}

/* Toasts */
.toasts-wrapper {
    z-index: 11;
}

/* Tape list */
.page--list .tape-stats {
    border: 1px solid #d3d6d8;
    border-radius: 0.375rem;
    color: #6c757d;
    margin: 0.25rem 0.125rem;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    text-align: center;
    width: 3rem;
}

.page--list .tape-card.is-rolling .tape-stats {
    border-color: #4950f6;
}

.page--list .tape-stats svg {
    width: 20px;
    fill: #6c757d;
}

.page--list .tape-card.is-rolling .tape-stats svg {
    fill: #4950f6;
}

/* Tape details */
.page--detail .container--recordingsSummary {
    max-width: 600px;
}

.page--detail .qrcode-wrapper img {
    margin: 0 auto;
}

/* Recordings playback */
.container--player {
    max-width: 600px;
}

.container--player #player-subtitle {
    font-size: 0.8em;
}
ul.playlist {
    padding-left: 0;
}
.playlist .track {
    cursor: pointer;
    padding: 10px 10px;
}
.playlist .track:hover {
    background-color:rgba(0, 0, 0, .1);
}

.playlist .track.is-selected,
.playlist .track.is-selected:hover {
    background-color:rgba(207, 226, 255, .7);
    cursor:default !important;
}

.playlist .track-index {
    font-size: 0.85em;
    margin-right: 4px;
}
.playlist .track-timestamp {
    font-size: 0.85em;
}
