/*
 CSS Table of Contents
 1. Variables
 2. Content
    * Bootstrap Global Overwrites
    * Global
    * Other
 3. Media Queries
*/

@import "./bootstrap.min.css";

/* Variables */
:root {
    --primary: #295952;
    --primary-dark: #0e433b;
    --primary-light: #38766d;
    --secondary: #8fa746;
    --danger: #cd3c3c;
    --dark: #303030;
    --med-dark: #838383;
    --med: #cecfce;
    --light: #f2f2f2;
    --white: #fff;
    --font-primary: mencken-std, serif;
    --font-secondary: myriad-pro, sans-serif;
}

/* TEMP HIDE WP BAR. TODO: Remove after styling */
#wpadminbar {
    display: none;
}

/* Content */
/** Bootstrap Global Overwrites **/
.fund-page .g-5, .fund-page .gx-5 {
    --bs-gutter-x: 5rem;
}

.fund-page .g-4, .fund-page .gx-4 {
    --bs-gutter-x: 3rem;
}

.fund-page .form-group {
    margin-bottom: 20px;
}

.fund-page .form-control {
    background-color: var(--light);
}

/** Global **/
.fund-page.container {
    max-width: 88%;
}

.fund-page .show-mobile {
    display: none;
}

.fund-page .btn {
    border-radius: 0;
    padding: 15px 25px;
    text-decoration: none;
}

.fund-page .btn.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.fund-page .btn.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white);
}

.fund-page .btn.btn-outline-primary {
    border-color: var(--primary);
    border-width: 2px;
    color: var(--primary);
}

.fund-page .btn.btn-outline-primary:hover {
    border-color: var(--primary-light);
    background-color: var(--primary-light);
    color: var(--white);
}

.fund-page .btn.btn-link {
    color: var(--med-dark);
}

.fund-page a {
    color: var(--primary-light);
    font-weight: 700;
    text-decoration: underline var(--primary-light) 1px;
}

.fund-page table td {
    min-width: 70px;
}

.fund-page table a {
    color: var(--dark);
    font-weight: 400;
    text-decoration: none;
}

.fund-page .disclosure a {
    font-weight: 400;
    text-decoration: none;
}

.fund-page h2 {
    font-size: 26px !important;
    margin-bottom: 0;
}

.fund-page h2:before,
.fund-page h2:after,
.fund-page h3:before,
.fund-page h3:after,
.fund-page h4:before,
.fund-page h4:after {
    display: none;
}

.fund-page h3 {
    color: var(--dark) !important;
    font-size: 18px;
    margin-bottom: 0;
}

.fund-page h4 {
    font-size: 16px;
    font-weight: 600;
}

.fund-page p {
    font-size: 18px !important;
    line-height: 1.6 !important;
}

.fund-page hr {
    color: var(--med-dark);
}

.fund-page .scrollable-table {
    max-height: 400px;
    overflow-y: auto;
}

.fund-page .scrollable-table thead {
    inset-block-start: 0;
    position: sticky;
}

.fund-page .table-striped-reverse tbody tr:nth-of-type(even) > * {
    background-color: var(--bs-table-striped-bg);
}

.fund-page .table th {
    font-weight: 600;
}

.fund-page .table .table-secondary-header th {
    padding: 0 0.5rem;
}

.fund-page .table th span {
    color: var(--med-dark);
}

.fund-page .table p {
    font-family: var(--font-primary);
    font-size: 16px !important;
    margin-bottom: 0;
}

.fund-page .table .table-fund {
    color: var(--primary);
    font-weight: 600;
    min-width: 100px;
}

.fund-page .table .table-date {
    color: var(--med-dark);
    font-size: 14px !important;
}

.fund-page .table .table-index {
    font-weight: 600;
}

.fund-page .table-footnotes {
    margin-top: 30px;
}

.fund-disclaimers {
    background: var(--primary);
	margin-top: -15px;
    padding: 0 5% 1%;
}

.fund-disclaimers p {
	color: var(--white);
	font-size: 14px !important;
	line-height: 20px !important;
}

.fund-disclaimers a {
	color: var(--white);
	text-decoration: underline;
}

/** Other **/
.fund-page .page-header {
    padding-bottom: 10px;
}

.fund-page .header-content {
    background-color: var(--white);
}

.fund-page .page-title {
    align-items: center;
    display: flex;
    margin-bottom: 15px;
}

.fund-page .page-title h1 {
    line-height: 1.25;
}

.fund-page .page-title .ticker {
    border-left: 3px solid var(--med);
    color: var(--primary);
    font-family: var(--font-secondary);
    font-size: 26px;
    font-weight: 700;
    margin-left: 20px;
    padding-left: 20px;
}

.fund-page .page-navigation {
    align-items: center;
    border-bottom: 2px solid var(--med);
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.fund-page .page-navigation .nav {
    display: flex !important;
    margin-bottom: -2px; /* Offsets the border so the nav item borders overlap it */
}

.fund-page .page-navigation li {
    margin-bottom: 0;
}

.fund-page .page-navigation .nav-link {
    border-bottom: 2px solid transparent;
    color: var(--dark);
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 400;
    padding: 10px 20px;
    text-decoration: none !important;
}

.fund-page .page-navigation .nav-link.active {
    border-color: var(--secondary);
    color: var(--secondary);
}

.fund-page .page-navigation .form-select {
    border: 2px solid var(--med);
    border-radius: 0;
    color: var(--med-dark);
    font-family: var(--font-secondary);
    font-weight: 600;
    margin-top: -10px;
    width: auto;
}

.fund-page .header-content.stuck {
	box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15);
	left: 0;
	padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
	z-index: 1;
}

.fund-page .header-content.stuck > * {
	margin: 0 auto;
	max-width: 88%; /* Should match container max-width */
}

.fund-page .header-content.stuck .page-title h1 {
	font-size: 25px !important;
	line-height: 1.5;
}

.fund-page .header-content.stuck .page-title .ticker {
	font-size: 18px;
}

.fund-page .page-anchor {
    scroll-margin-top: 50px;
}

.fund-page section {
    padding: 20px 0;
}

.fund-page section section {
    padding: 15px 0;
}

.fund-page .section-header,
.fund-page .section-subheader {
    align-items: center;
    border-bottom: 1px solid var(--med);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.fund-page .section-header {
    margin-bottom: 40px;
    min-height: 80px;
}

.fund-page .section-subheader {
    margin-bottom: 20px;
}

.fund-page .section-header .title,
.fund-page .section-subheader .title {
    align-items: center;
    display: flex;
    gap: 10px;
}

.fund-page .section-header .title span,
.fund-page .section-subheader .title span {
    border-left: 2px solid var(--med);
    color: var(--med-dark);
    font-size: 18px;
    line-height: 1;
    padding-left: 10px;
}

.fund-page .section-header .title span {
    font-size: 24px;
}

.fund-page .section-header .header-buttons,
.fund-page .section-subheader .header-buttons {
    align-items: center;
    display: flex;
    gap: 10px;
    padding: 10px 0;
}

.fund-page .section-header .header-buttons .btn,
.fund-page .section-subheader .header-buttons .btn {
    font-weight: 700;
}

.fund-page .section-header .header-buttons .btn.btn-outline-primary.active,
.fund-page .section-subheader .header-buttons .btn.btn-outline-primary.active {
    background-color: var(--primary);
    color: var(--white);
}

.fund-page .section-header .header-buttons .btn.btn-outline-primary.active:hover,
.fund-page .section-subheader .header-buttons .btn.btn-outline-primary.active:hover {
    background-color: var(--primary-light);
}

.fund-page .stat-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fund-page .stat-box .value {
    background-color: var(--light);
    flex: 1;
    font-family: var(--font-primary);
    font-size: 30px !important;
    margin-bottom: 0;
    padding: 15px;
    text-align: center;
}

.fund-page .stat-box .title {
    background-color: var(--primary);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 16px !important;
    line-height: 1.25 !important;
    margin-bottom: 0;
    padding: 10px;
    text-align: center;
}

.fund-page .stat-box .title .btn-link {
    color: var(--white);
}

.fund-page .info-box {
    align-items: center;
    background-color: var(--light);
    display: flex;
    height: 100%;
}

.fund-page .info-box .icon {
    align-items: center;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    font-size: 50px;
    height: 100%;
    justify-content: center;
    padding: 15px 20px;
}

.fund-page .info-box .content {
    flex: 1;
    padding: 20px 25px;
}

.fund-page .info-box .header {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.fund-page .info-box span {
    border-left: 2px solid var(--med);
    color: var(--med-dark);
    font-size: 18px;
    line-height: 1;
    padding-left: 10px;
}

.fund-page .info-box p {
    font-family: var(--font-primary);
    font-size: 16px !important;
    margin-bottom: 0;
}

.fund-page .info-box.info-box-vertical {
    flex-direction: column;
}

.fund-page .info-box.info-box-vertical .content {
    width: 100%;
}

.fund-page .info-box.info-box-vertical .title {
    align-items: center;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    gap: 20px;
    padding: 10px 20px;
    width: 100%;
}

.fund-page .info-box.info-box-vertical i {
    font-size: 50px;
}

.fund-page .info-box.info-box-vertical .title h3 {
    color: var(--white) !important;
}

.fund-page .info-box.info-box-vertical p {
    margin-bottom: 20px;
}

.fund-page .info-box.info-box-vertical .form-control {
    background-color: transparent;
    border-radius: 0;
}

.fund-page .info-box.info-box-vertical ul li {
    font-size: 16px !important;
}

.fund-page .info-box.info-box-vertical a {
    font-weight: 400;
}

.fund-page .callout-box {
    align-items: center;
    background-color: var(--secondary);
    color: var(--white);
    display: flex;
    font-weight: 400;
    gap: 25px;
    padding: 30px 40px;
    text-decoration: none;
}

.fund-page .callout-box h4 {
    color: var(--white);
    font-family: var(--font-secondary);
    font-size: 24px;
    text-transform: uppercase;
}

.fund-page .callout-box p {
    font-size: 16px !important;
    margin-bottom: 0;
}

.fund-page .callout-box i {
    font-size: 50px;
}

.fund-page .fund-resources {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fund-page .fund-resource {
    align-items: center;
    display: flex;
    gap: 10px;
}

.fund-page .fund-resource span {
    border-left: 2px solid var(--med);
    color: var(--med-dark);
    font-size: 18px;
    line-height: 1;
    padding-left: 10px;
}

.fund-page .ratings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fund-page .rating {
    align-items: center;
    display: flex;
    gap: 10px;
}

.fund-page .rating p {
    color: var(--primary);
    font-size: 17px !important;
    font-weight: 600;
    margin-bottom: 0;
    width: 110px;
}

.fund-page .rating .stars {
    align-items: center;
    display: flex;
    gap: 2px;
}

.fund-page .rating i {
    color: var(--med);
    font-size: 22px;
}

.fund-page .rating i.active {
    color: var(--secondary);
}

.fund-page .stacked-bar-chart canvas {
    max-height: 200px;
}

.fund-page .alert-message {
    background-color: var(--dark);
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 10px;
}

.fund-page .alert-message.success {
    background-color: var(--secondary);
}

.fund-page .alert-message.error {
    background-color: var(--danger);
}

.fund-page .alert-message p {
    color: var(--white);
    margin-bottom: 0 !important;
}

/* Mutual Funds Page */
.fund-page .card.fund-card {
    border: 0;
    border-radius: 0;
    height: 100%;
}

.fund-page .card.fund-card .card-header-block {
    background-color: var(--med);
    height: 40px;
}

.fund-page .family .row > div:nth-of-type(1) .card.fund-card .card-header-block {
    background-color: var(--primary);
}

.fund-page .family .row > div:nth-of-type(2) .card.fund-card .card-header-block {
    background-color: var(--secondary);
}

.fund-page .family .row > div:nth-of-type(3) .card.fund-card .card-header-block {
    background-color: var(--med-dark);
}

.fund-page .card.fund-card .card-body {
    border: 2px solid var(--med);
    border-top: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
}

.fund-page .card.fund-card .card-body .card-content,
.fund-page .card.fund-card .card-body .card-actions {
    width: 100%;
}

.fund-page .card.fund-card .card-body h3 {
    font-size: 20px;
}

.fund-page .card.fund-card .card-title-divider {
    background-color: var(--primary);
    height: 4px;
    margin-bottom: 20px;
    width: 20%;
}

.fund-page .card.fund-card .card-body .card-details {
    margin-bottom: 20px;
}

.fund-page .card.fund-card .card-body .card-details p {
    color: var(--med-dark);
    margin-bottom: 5px;
}

.fund-page .card.fund-card .card-body .card-details p strong {
    color: var(--dark);
}

.fund-page .distribution-tables {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.fund-page .distribution-tables h3 {
    font-size: 20px;
}

.fund-page .forms-reports-table .fund {
    color: var(--primary);
}

.fund-page .forms-reports-table .table-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.fund-page .forms-reports-table .table-actions a {
    align-items: center;
    color: var(--primary);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fund-page .forms-reports-table .table-actions a i {
    color: var(--secondary);
    font-size: 14px;
}

.fund-page .forms-reports-table .table-actions a i.icon-subtle {
    color: var(--med-dark);
    font-size: 20px;
}

.fund-page .forms-reports-table .table-actions a:hover {
    color: var(--secondary);
}

/* Media Queries */
@media screen and (max-width: 1110px) {
    .fund-page .hide-mobile {
        display: none;
    }

    .fund-page table .show-mobile {
        display: table-cell;
    }

    /* Make the header not sticky on mobile */
    .fund-page .header-content.stuck {
        box-shadow: none;
        padding: 0;
        position: unset;
        width: auto;
        z-index: 0;
    }

    .fund-page .page-navigation .nav-link {
        font-size: 16px;
    }

    .fund-page .header-content.stuck .page-navigation {
        border-bottom: 0;
    }

    .fund-page .header-content.stuck .page-navigation .nav-link {
        padding: 10px;
    }

    .fund-page .page-navigation {
        flex-wrap: wrap;
    }

    .fund-page .page-navigation .form-select {
        margin-bottom: 10px;
    }

    .fund-page .page-title h1 {
        font-size: 40px !important;
    }
}

@media screen and (max-width: 991px) {
    .fund-page .modal-lg {
        max-width: 90%;
    }
}

@media screen and (max-width: 767px) {
    .fund-page .header-content.stuck .page-navigation .nav-link {
        font-size: 14px;
    }

    .fund-page .page-title h1 {
        font-size: 26px !important;
    }

    .fund-page .page-title .ticker {
        border-width: 2px;
        font-size: 18px;
        margin-left: 10px;
        padding-left: 10px;
    }

    .fund-page .page-navigation .nav-link {
        padding: 5px 15px;
    }
}
