/*? Adjusts the colours when printed */
body,
html {
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
}

/* Define font families for Track My Trail */
:root {
    /* Font families */
    --primary-font: 'trackmytrail', -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue;
    --heading-font: 'trackmytrail', -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue;
    --bold-font: 'trackmytrail-bold', 'trackmytrail', -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue;
    --tailwind-font: 'Inter', 'Inter Fallback', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

    /* Primary brand colors */
    --color-green-primary: #14914a;
    --color-green-light: #25E078;
    --color-green-transparent: #0cf28f33;

    /* Neutral colors */
    --color-gray-100: #f9f9f9;
    --color-gray-200: #eee;
    --color-gray-900: #222;

    /* Alert colors */
    --color-red: #960532;
    --color-yellow: #f3f3a5;

    /* Font sizes */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */

    /* Font weights */
    --font-normal: 400;
    --font-semibold: 600;
    --font-bold: 700;

    /* Breakpoints */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;

    /* Box shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    font-family: var(--primary-font);
}

.tailwind-font {
    font-family: var(--tailwind-font);
}

.tailwind-font-force {
    font-family: var(--tailwind-font) !important;
}

.primary-font {
    font-family: var(--primary-font);
}

/* Shared page headers */
.page-shell {
    padding-top: 32px;
    padding-bottom: 48px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.page-hero {
    text-align: center;
    margin-bottom: 32px;
}

.page-hero-title {
    font-size: 42px;
    line-height: 1.04;
    letter-spacing: -0.015em;
    font-weight: 600;
    margin-bottom: 12px;
    margin-bottom: 0;
    font-family: var(--primary-font);
}

.page-hero-subtitle {
    font-size: 1.05rem;
    color: #4a5568;
    margin: 0 auto;
    max-width: 680px;
}

@media (max-width: 768px) {
    .page-hero-title {
        font-size: 1.75rem;
    }
}

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        /* Ensures the background color and text colors are printed */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    table {
        width: 100% !important;
        table-layout: auto !important;
    }
}

.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/*? Scroll to top styling */
#back-to-top {
    position: fixed;
    opacity: 0;
    color: #eeeeee;
    width: 50px;
    height: 50px;
    right: 2%;
    bottom: 3%;
    padding-top: 2px;
    padding: 20px;
    border-radius: 50%;
    visibility: hidden;
    overflow: hidden;
    text-align: center;
    z-index: 10;
    background-color: #777777;
    background: rgba(0, 0, 0, .6) url(/static/img/back-to-top.svg) no-repeat center center;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out
}

#back-to-top:hover {
    background-color: #888888;
}

#back-to-top.show {
    visibility: visible;
    cursor: pointer;
    opacity: 0.6;
}

/* Text Selection */
::selection {
    background-color: #0cf28f33
        /* WebKit/Blink Browsers */
}

::-moz-selection {
    background-color: #0cf28f33
        /* Gecko Browsers */
}

/* Styling for text above analysis/account page */
.account-heading {
    text-align: center;
    margin: 20px auto
}

/*? Testing adding a custom bottom margin to the pricing box on the `paused` page */
.custom-parent-box {
    margin-bottom: 40px !important
        /* normally 100px */
}

/* Under the pricing on the analysis/account page */
.under-pricing {
    text-align: center;
    max-width: 85vw;
    margin: 20px auto
}

/*  Make footer stay at the bottom of the page */
body.small-viewport,
html.small-viewport {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* height: -webkit-fill-available; */
    /* Must remove this or Safari doesn't vertically center the content */

}

body.small-viewport {
    min-height: 100vh;
    /* min-height: -webkit-fill-available; */
    /* Must remove this or Safari doesn't vertically center the content */
}

.tw-flex-grow-copycat {
    flex-grow: 1;
}

.Aligner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Footer, top shadow only */
.footer {
    min-height: 50px;
    margin-top: auto;
    padding: 20px 5vw;
    -webkit-box-shadow: 0 - 0 -2px 6px -3px #ccc;
    /* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
    -moz-box-shadow: 0 0 -2px 6px -3px #ccc;
    /* Firefox 3.5 - 3.6 */
    box-shadow: 0 -2px 6px -3px #ccc;
    /* Opera 10.5, IE 9, Firefox 4+, Chrome 6+, iOS 5 */
}

/*? Nav styling */
.nav {
    padding: 10px 0;
    box-shadow: 0 2px 6px 0 #ccc
}

.nav,
.footer {
    font-size: 20px
}

.container-fluid {
    padding: 0 20px;
}

.nav a,
#brand {
    margin-right: 15px
}

#brand>img {
    margin-right: 3px
}

/* Stack items in a column and center them when collapsed */
@media (max-width: 991.98px) {

    #navbarToggler-signed-in .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 450px) {
    .container-fluid {
        padding: 0
    }
}

.navbar.logged-out>.container-fluid {
    flex-wrap: nowrap;
}

#navbarToggler-signed-out .navbar-nav {
    justify-content: flex-end;
    flex-direction: row;
}

/* For dropdown submenu items */
nav.nav .dropdown-menu>li>a.dropdown-item:hover:not(#brand) {
    box-shadow: inset 0 -40px 0 0 var(--color-green-transparent) !important
}

.dropdown-menu {
    padding-top: 0;
    padding-bottom: 0
}

/* Nav-link is for the dropdown menu */
.nav-link {
    padding-top: 0;
    padding-bottom: 0;
    display: inline
}

/* Dropdown menu */
@media all and (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: none;
    }

    .navbar .nav-item:hover .dropdown-menu {
        display: block;
    }

    .navbar .nav-item .dropdown-menu {
        margin-top: 0;
    }
}


#brand,
#brand:hover {
    color: #000;
    text-decoration: none;
    box-shadow: none
}

/*? General styling mostly copied from webpop */

h1,
h2,
h3,
h4,
h5,
h6,
.alert,
.btn,
.nav,
.footer,
.parent-card-group,
.individual-card-layout,
.table-div,
div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label,
div.dataTables_wrapper div.row:last-child,
.table>tbody,
.form-select {
    --x-height-multiplier: 0.342;
    --baseline-multiplier: 0.22;
    overflow-wrap: break-word;
    word-break: break-word;
    font-weight: 600;
}

h1 {
    font-size: 46px;
    margin-left: -2.63px;
    line-height: 1.04;
    letter-spacing: -.015em;
}

h2 {
    font-size: 40px;
    margin: 42px 0 0 -2.13px;
    line-height: 1.15;
    letter-spacing: -.015em
}

h3,
h4 {
    font-size: 32px;
    margin: 20px auto -1.63px;
    line-height: 1.22;
    letter-spacing: -.012em;
    max-width: 95vw
}

h3 {
    font-size: 36px
}

h3+h4,
h3+h5 {
    margin-top: 12px
}

.title {
    font-size: 2.2rem;
    border-bottom: 1px solid #dbe3ec;
    padding-bottom: 5px;
    margin: 0 0 20px 0;
}

/* 
p {
    font-size: 1.2rem;
} */

mark {
    background-color: #0c452c;
    /* Fallback for older browsers */
    background-color: var(--color-green-transparent);
    color: inherit;
    padding: 0 5px
}

/*? Custom styling */
/* Note: .page-link is for the pagination links in datatable footer */
a:not(#back-to-top, .page-link, .btn-social, #login, #brand, .green-btns, .info-a, .login, .tailwind-scope.tailwind-scope-left-nav a, .tailwind-scope.navbar-nav a, .tailwind-scope.footer-parent a, .remove-link-styling, .tw-button, .tw-button-secondary, .aggregator-menu-item, .dropdown-menu-item, .pricing-tier-button, .standard-green, .link-underline-gray, .link-underline-red, .link-underline-blue, .link-underline-amber, .link-underline-green, .valuation-link-gray, .valuation-link-red, .valuation-link-amber, .valuation-link-blue, .valuation-link-green),
.link-button,
.payment-date {
    color: #000;
    -webkit-transition: all 0.2s linear 0s;
    -moz-transition: all 0.2s linear 0s;
    -ms-transition: all 0.2s linear 0s;
    -o-transition: all 0.2s linear 0s;
    transition: all 0.2s linear 0s;
    -webkit-transform: translateZ(0);
    text-decoration: none;
    box-shadow: inset 0 -2px 0 0 #25e078;
    overflow-wrap: break-word
}

/* Note: .page-link is for the pagination links in datatable footer */
a:not(#back-to-top, .page-link, .btn-social, #login, #brand, .green-btns, .info-a, .login, .tailwind-scope.tailwind-scope-left-nav a, .tailwind-scope.navbar-nav a, .tailwind-scope.footer-parent a, .remove-link-styling, .tw-button, .tw-button-secondary, .aggregator-menu-item, .dropdown-menu-item, .pricing-tier-button, .standard-green, .link-underline-gray, .link-underline-red, .link-underline-blue, .link-underline-amber, .link-underline-green, .valuation-link-gray, .valuation-link-red, .valuation-link-amber, .valuation-link-blue, .valuation-link-green):hover,
.link-button:hover,
.payment-date:hover {
    color: #000;
    text-decoration: none;
    box-shadow: inset 0 -22px 0 0 #0cf28f33;
}

/* Utility to strip inherited link styling before applying custom colors */
.remove-link-styling {
    color: inherit !important;
    text-decoration: none !important;
}

/* Color-coordinated underline links for contextual callouts */
.link-underline-gray,
.link-underline-red,
.link-underline-blue,
.link-underline-amber,
.link-underline-green {
    text-decoration: none;
    transition: color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.link-underline-gray {
    color: #4b5563;
    box-shadow: inset 0 -2px 0 0 #9ca3af;
}

.link-underline-gray:hover,
.link-underline-gray:focus {
    color: #111827;
    box-shadow: inset 0 -2px 0 0 #6b7280;
}

.link-underline-red {
    color: #b91c1c;
    box-shadow: inset 0 -2px 0 0 #ef4444;
}

.link-underline-red:hover,
.link-underline-red:focus {
    color: #991b1b;
    box-shadow: inset 0 -2px 0 0 #dc2626;
}

.link-underline-blue {
    color: #1d4ed8;
    box-shadow: inset 0 -2px 0 0 #2563eb;
}

.link-underline-blue:hover,
.link-underline-blue:focus {
    color: #1e3a8a;
    box-shadow: inset 0 -2px 0 0 #1d4ed8;
}

.link-underline-amber {
    color: #b45309;
    box-shadow: inset 0 -2px 0 0 #f59e0b;
}

.link-underline-amber:hover,
.link-underline-amber:focus {
    color: #92400e;
    box-shadow: inset 0 -2px 0 0 #d97706;
}

.link-underline-green {
    color: #15803d;
    box-shadow: inset 0 -2px 0 0 #16a34a;
}

.link-underline-green:hover,
.link-underline-green:focus {
    color: #166534;
    box-shadow: inset 0 -2px 0 0 #15803d;
}

/*
 * Info heroicon styling for standalone SVG info icons
 * Adds a question mark cursor when hovering over info icons that are not wrapped in links
 */
svg.info-heroicon {
    cursor: help
}

/* Provide a lightweight green link style without the global box-shadow underline */
a.standard-green {
    color: #0f6b3b;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a.standard-green:hover,
a.standard-green:focus {
    color: #0b4d2c;
}

/* Override link styling for valuation learn-more links with explicit colors */
a.valuation-link-gray,
a.valuation-link-red,
a.valuation-link-amber,
a.valuation-link-blue,
a.valuation-link-green {
    text-decoration: none !important;
    transition: color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

a.valuation-link-gray:hover,
a.valuation-link-gray:focus,
a.valuation-link-red:hover,
a.valuation-link-red:focus,
a.valuation-link-amber:hover,
a.valuation-link-amber:focus,
a.valuation-link-blue:hover,
a.valuation-link-blue:focus,
a.valuation-link-green:hover,
a.valuation-link-green:focus {
    text-decoration: none !important;
}

a.valuation-link-gray {
    color: #6b7280 !important;
    box-shadow: inset 0 -1px 0 0 #9ca3af !important;
}

a.valuation-link-gray:hover,
a.valuation-link-gray:focus {
    color: #374151 !important;
    box-shadow: inset 0 -22px 0 0 #6b728033 !important;
}

a.valuation-link-red {
    color: #991b1b !important;
    box-shadow: inset 0 -1px 0 0 #fca5a5 !important;
}

a.valuation-link-red:hover,
a.valuation-link-red:focus {
    color: #7f1d1d !important;
    box-shadow: inset 0 -22px 0 0 #dc262633 !important;
}

a.valuation-link-amber {
    color: #92400e !important;
    box-shadow: inset 0 -1px 0 0 #fcd34d !important;
}

a.valuation-link-amber:hover,
a.valuation-link-amber:focus {
    color: #78350f !important;
    box-shadow: inset 0 -22px 0 0 #d9770633 !important;
}

a.valuation-link-blue {
    color: #1e40af !important;
    box-shadow: inset 0 -1px 0 0 #93c5fd !important;
}

a.valuation-link-blue:hover,
a.valuation-link-blue:focus {
    color: #1d4ed8 !important;
    box-shadow: inset 0 -22px 0 0 #2563eb33 !important;
}

a.valuation-link-green {
    color: #166534 !important;
    box-shadow: inset 0 -1px 0 0 #86efac !important;
}

a.valuation-link-green:hover,
a.valuation-link-green:focus {
    color: #0f5132 !important;
    box-shadow: inset 0 -22px 0 0 #16a34a33 !important;
}

/*
 * Maintain pointer cursor for info icons that are wrapped in links
 * This ensures linked info icons still show the hand pointer cursor
 */
.info-a,
a.info-a svg.info-heroicon {
    cursor: pointer
}

.payment-date {
    cursor: pointer;
}

.payment-date:hover {
    color: var(--color-yellow);
}

h3 a:not(.page-link, .btn-social, #login, #brand, .green-btns, .info-a):hover {
    box-shadow: inset 0 -35px 0 0 #0cf28f33
}

.alert a:not(.page-link, .btn-social, #login, #brand, .green-btns):hover {
    box-shadow: inset 0 -27px 0 0 #0cf28f33;
}

/* Remove underline from buttons */
.tw-button,
.tw-button-secondary {
    text-decoration: none;
}

/* Hide the divs by default */
.hidden {
    display: none;
}

/* Main content means on the output page or home page */
#main-content {
    max-width: 95%;
    margin: 20px auto 50px
}

.container-max {
    max-width: min(90vw, 1300px);
    margin: auto !important;
}

.container-max-database-user {
    max-width: min(95vw, 1500px);
    margin: auto;
}

#main-content>h1,
#main-content h2,
.text-center {
    text-align: center
}

#main-content .faq-content h2 {
    text-align: left
}

/* This is for pages with mainly text, like contact, privacy policy, and FAQ */
.entry-content {
    margin: 0 auto 50px;
    max-width: 740px;
    padding: 0 20px
}

.entry-content.video-container {
    max-width: 1500px;
    margin-top: 1.2em;
}

/* Apply margin to entry-content when it's the main content container on specific pages */
/* Target entry-content that is the main page content (after any alerts) */
.main-body-content .entry-content {
    margin-top: 1.2em;
}

/* But exclude entry-content that is NOT the main content (e.g., nested content) */
.entry-content .entry-content {
    margin-top: 0;
}

.entry-content p {
    margin-bottom: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 35px;
}

/* Home Page styling */

.login-div {
    max-width: 850px;
    padding: 20px 0
}

.sign-in-info {
    margin: 30px auto 0;
    font-size: 19px
}

.container>.sign-in-info:first-of-type {
    margin-top: 30px;
}

/* Entry Content / Top of blog Spacing */
.pre-entry>.entry-content,
.entry-content:not(:first-child),
.entry-summary:not(:first-child),
.page-content:not(:first-child) {
    margin-top: 1.2em
}

.entry-content h2+p {
    margin-top: 8px
}

.entry-content h3+p,
.entry-content h4+p,
.entry-content h5+p {
    margin-top: 6px
}

.entry-content:not(:first-child),
.entry-summary:not(:first-child),
.page-content:not(:first-child) {
    margin-top: 1.2em
}

.entry-content p {
    margin-bottom: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 35px;
    margin-top: 29px
}

/* List styling */
.entry-content>ul {
    list-style-type: none;
}

.entry-content>ol,
.entry-content>ul {
    padding: 0px;
    margin: 25px 0px 0px
}

.entry-content>ol>li,
.entry-content>ul>li {
    margin-bottom: 14px;
    margin-left: 30px
}

.entry-content>ul>li::before {
    position: absolute;
    padding-top: 4px;
    padding-right: 15px;
    content: "•";
    display: inline-block;
    width: 4.875em;
    margin-left: -4.875em;
    text-align: right;
    font-size: 16.8px;
    box-sizing: border-box;
}

/*? Used for database upload pages  */
.aggregator-confirmation {
    font-weight: 600;
}

/* Inline code styling */
.code {
    background-color: rgba(175, 184, 193, 0.2);
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 85%;
    margin: 0;
    padding: 0.2em 0.4em;
    color: #902c5e;
    /* Base color */
    color: #812955;
    word-wrap: break-word;
}

body {
    --x-height-multiplier: 0.375;
    --baseline-multiplier: 0.17;
    font-family: var(--primary-font);
    font-weight: var(--font-normal);
    font-style: normal;
    color: rgba(0, 0, 0, .84);
    font-size: 21px;
    line-height: 1.58;
    letter-spacing: -.003em;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    -moz-font-feature-settings: "liga" on;
    overflow-y: scroll;
}

@media (min-width: 1400px) {

    /* Increase main content size on tablet */
    #main-content {
        max-width: min(90%, 1500px)
    }
}

@media (max-width: 1024px) {

    /* Increase main content size on tablet */
    #main-content {
        max-width: 95vw
    }
}

@media (max-width: 768px) {
    .nav-item {
        margin-bottom: 10px
    }

    /*? Styling for logged out navigation bar*/
    .logged-out .nav-item {
        margin-bottom: 0
    }

    .logged-out #brand {
        margin-right: 0px
    }

    .logged-out .nav-item>a {
        margin-right: 10px
    }

    .sign-in-info {
        display: none
    }

    .sign-in-contact {
        display: block;
        margin-top: 30px
    }
}

@media (max-width: 576px) {

    /* Increase main content size on tablet */
    #main-content {
        max-width: 92vw
    }

    .footer {
        padding: 10px 20px
    }

    .copyright {
        display: none
    }

    .footer>.container-max {
        justify-content: flex-end
    }

    #sign-in-h2 {
        font-size: 28px
    }

    #sign-in-logo {
        width: 80px
    }

    /* Home page CSS */
    .sign-in-info {
        font-size: 16px;
        padding: 0 10px
    }

    .line-break {
        width: 100%;
    }

    .security-badge-wrapper span {
        font-size: 11px
    }

    .security-badge-wrapper {
        margin-top: 25px;
    }

    .sign-in-info {
        margin-top: 15px;
    }

    .login-div {
        padding: 20px 0
    }
}

@media screen and (max-width: 387px) {

    .navbar-brand,
    .logged-out .navbar-nav>.nav-item {
        font-size: 18px
    }
}

@media (min-width: 350px) {
    .navbar-expand-sm .navbar-collapse {
        display: flex !important;
        justify-content: flex-end;
    }

    .navbar-expand-sm .navbar-toggler {
        display: none !important;
    }

    /* Align the flex item to the end of the row when not collapsed */

    #navbarToggler-signed-out,
    #navbarToggler-signed-out .navbar-nav {
        justify-content: flex-end;
        flex-direction: row;
    }
}

/* Override Bootstrap 5 breakpoints */
@media (max-width: 349.98px) {

    .navbar-brand,
    .logged-out .navbar-nav>.nav-item {
        font-size: 20px
    }

    .logged-out .container-max {
        padding: 0 20px
    }

    .navbar-expand-sm .navbar-collapse {
        display: flex !important;
        justify-content: flex-end;
    }

    .hide-on-small {
        display: none
    }
}

/* Hide short version by default */
.demo-short {
    display: none;
}

/* At screen width below 400px */
@media screen and (max-width: 400px) {

    /* Hide full version */
    .demo-full {
        display: none;
    }

    /* Show short version */
    .demo-short {
        display: inline;
    }
}