/**
 * GENERAL TYPOGRAPHY AND FONTS
 */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

html, body {
    font-family: Lato, sans-serif;
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

h1 {
    font-size: 46px;
}

h2 {
    font-size: 32px;
    color: #472F0E;
}

h3 {
    font-size: 28px;
    color: #472F0E;
}

h4 {
    font-size: 24px;
    color: #472F0E;
}

h5 {
    font-size: 20px;
    color: #472F0E;
}

.text-verylarge {
    font-size: 1.75rem;
}
.text-large {
    font-size: 1.2rem;
}
.text-normalsize {
    font-size: 1rem;
}
.text-small {
    font-size: 0.8rem;
}

.no-margin-on-final-item *:last-child {
    margin-bottom: 0 !important;
}

/* Custom widths */
/* Small (sm): 576px and up */
@media (min-width: 576px) {
  .w-sm-25 { width: 25% !important; }
  .w-sm-50 { width: 50% !important; }
  .w-sm-75 { width: 75% !important; }
  .w-sm-100 { width: 100% !important; }
}

/* Medium (md): 768px and up */
@media (min-width: 768px) {
  .w-md-25 { width: 25% !important; }
  .w-md-50 { width: 50% !important; }
  .w-md-75 { width: 75% !important; }
  .w-md-100 { width: 100% !important; }
}

/* Large (lg): 992px and up */
@media (min-width: 992px) {
  .w-lg-25 { width: 25% !important; }
  .w-lg-50 { width: 50% !important; }
  .w-lg-75 { width: 75% !important; }
  .w-lg-100 { width: 100% !important; }
}

/* Extra Large (xl): 1200px and up */
@media (min-width: 1200px) {
  .w-xl-25 { width: 25% !important; }
  .w-xl-50 { width: 50% !important; }
  .w-xl-75 { width: 75% !important; }
  .w-xl-100 { width: 100% !important; }
}

/* Extra Extra Large (xxl): 1400px and up */
@media (min-width: 1400px) {
  .w-xxl-25 { width: 25% !important; }
  .w-xxl-50 { width: 50% !important; }
  .w-xxl-75 { width: 75% !important; }
  .w-xxl-100 { width: 100% !important; }
}

/**
 * COLOR UTILITY CLASSES
 */

.border {
    border-color: silver !important;
}

.bg-black {
    background-color: #000 !important;
}
.text-black {
    color: #000 !important;
}

.bg-white {
    background-color: #FFF !important;
}
.text-white {
    color: #FFF !important;
}

.bg-silver {
    background-color: #DDDDDD !important;
}
.text-silver {
    color: #DDDDDD !important;
}

.bg-darkgreen {
    background-color: #10403C !important;
}
.text-darkgreen {
    color: #10403C !important;
}

.bg-midgreen {
    background-color: #285D58 !important;
}
.text-midgreen {
    color: #285D58 !important;
}

.bg-lightgreen {
    background-color: #82C3BD !important;
}
.text-lightgreen {
    color: #82C3BD !important;
}

.bg-palegreen {
    background-color: #E7F4F3 !important;
}
.text-palegreen {
    color: #E7F4F3 !important;
}

.bg-lightblue {
    background-color: #BAD3EF !important;
}
.text-lightblue {
    color: #BAD3EF !important;
}

.bg-midblue {
    background-color: #4F86C6 !important;
}
.text-midblue {
    color: #4F86C6 !important;
}

.bg-darkblue {
    background-color: #1B2E55 !important;
}
.text-darkblue {
    color: #1B2E55 !important;
}

.bg-yellow {
    background-color: #F3D57B !important;
}
.text-yellow {
    color: #F3D57B !important;
}

.bg-orange {
    background-color: #FF664B !important;
}
.text-orange {
    color: #FF664B !important;
}

.bg-beige {
    background-color: #f4f2ee !important;
}
.text-beige {
    color: #f4f2ee !important;
}

.bg-lightbrown {
    background-color: #eae5d3 !important;
}
.text-lightbrown {
    color: #eae5d3 !important;
}

.bg-good {
    background-color: #82C3BD !important;
}
.bg-caution {
    background-color: #F3D57B !important;
}
.bg-concern {
    background-color: #FF664B !important;
}
.bg-unknown {
    background-color: #E5E5E5 !important;
}


/**
 * BUTTONS AND LINKS
 */

a:not(.btn) {
    color: #10403C;
}

.btn.btn-primary {
    background-color: #285D58;
    border-color: #285D58;
    color: white;
}
.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn.btn-primary:hover {
    background-color: white;
    border-color: #285D58;
    color: #285D58;
}

.btn.btn-secondary {
    background-color: white;
    border-color: #1B2E55;
    color: #1B2E55;
}
.btn.btn-secondary:focus,
.btn.btn-secondary:active,
.btn.btn-secondary:hover {
    background-color: #1B2E55;
    border-color: #285D58;
    color: white;
}

.btn.btn-tertiary {
    background-color: #F3D57B;
    border-color: #F3D57B;
    color: black;
}
.btn.btn-tertiary:focus,
.btn.btn-tertiary:active,
.btn.btn-tertiary:hover {
    background-color: black;
    border-color: black;
    color: #F3D57B;
}


/**
 * HEADER AND NAVBAR
 */

#announcement {
    color: #000 !important;
}

#announcement p {
    margin-bottom: 0;
}

#announcement a {
    color: #000 !important;
}

nav.navbar a.navbar-brand img {
    height: 80px;
}

nav.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

nav.navbar a.nav-link {
    color: white;
    text-decoration: none;
    padding-left: 2rem;
    margin-left: 1rem;
    font-size: 1.1rem;
    text-underline-offset: 0.5rem;
    border-radius: .25rem;
    border: 1px solid transparent;  /* so adding a border doesn't make the links jump around */
}

nav.navbar a.nav-link:active,
nav.navbar a.nav-link:hover,
nav.navbar a.nav-link:focus,
nav.navbar a.dropdown-item:active,
nav.navbar a.dropdown-item:hover,
nav.navbar a.dropdown-item:focus {
    color: #ffd966 !important;
}

nav.navbar ul.dropdown-menu {
    background-color: #10403C;
    text-align: right;
}

nav.navbar ul.dropdown-menu li,
nav.navbar ul.dropdown-menu li a {
    color: #FFF;
}

nav.navbar .dropdown-item {
    background-color: transparent !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: inherit;
}

/* specific navbar buttons */
#menu-top-menu #menu-item-16 a.nav-link {
    background-color: #F3D57B;
    color: #000;
}

#menu-top-menu #menu-item-16 a.nav-link:active,
#menu-top-menu #menu-item-16 a.nav-link:hover,
#menu-top-menu #menu-item-16 a.nav-link:focus {
    background-color: transparent !important;
    color: unset;
    border: 1px solid #F3D57B;
}


/**
 * HERO IMAGE BANNERS
 */

div.h1banner {
    background-size: cover;
    display: flex;
    align-items: center;
    background-position: bottom;
}

div.h1banner img {
    position: absolute;
    object-fit: cover;
	object-position: center;
    width: 100%;
}

div.h1banner h1 {
    padding: 2rem 2rem 2rem 0;
    background-color: rgba(0, 0, 0, 0.70);
    color: white;
    border-radius: 6px;
    padding: 1rem;
    display: inline-block;
	position: relative;
}

div.h1banner,
div.h1banner img {
    height: 340px;
}

@media (max-width: 576px) {
    div.h1banner,
	div.h1banner img {
        height: 270px;
    }
}

@media (min-width: 576px) {
    div.h1banner,
	div.h1banner img {
        height: 290px;
    }
}

@media (min-width: 768px) {
    div.h1banner,
	div.h1banner img {
        height: 335px;
    }
}

@media (min-width: 992px) {
    div.h1banner,
	div.h1banner img {
        height: 225px;
    }
}

@media (min-width: 1200px) {
    div.h1banner,
	div.h1banner img {
        height: 260px;
    }
}

@media (min-width: 1400px) {
    div.h1banner,
	div.h1banner img {
        height: 300px;
    }
}


/**
 * CARDS
 */

div.card {
    border-radius: 0;
    box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.15);
}

div.card.indicator-card {
}

div.card.indicator-card img.indicator-card-metric-condition-icon,
div.card.indicator-card img.indicator-card-metric-trend-icon,
div.card.indicator-card img.indicator-card-metric-confidence-icon {
    height: 50px;
}

div.card.indicator-card img.indicator-card-thumbnail {
    object-fit: cover;
    width: 150px;
    height: 150px;
	aspect-ratio: 1 / 1;
}

div.calloutbox {
    background-color: #BAD3EF;
    color: #1B2E55;

    padding: 1rem 1.5rem;

    height: 100%;
}

div.calloutbox > div {
    border-left: 3px solid #4F86C6;
    padding-left: 1.5rem;
}

div.calloutbox p:last-child {
    margin-bottom: 0 !important;
}

div.calloutbox b,
div.calloutbox strong {
    font-size: 1.5em;
}



/**
 * FOOTER
 */

footer {
    border-top: 20px solid #82C3BD;
}


/**
 * TABLES
 */

table.table,
table.table th,
table.table td {
    border-color: #B9B9B9;
}

table.table th {
    background-color: #E5E5E5;
}

.indicators-table {
}

.indicators-table img {
    height: 2rem;
}

.indicators-table div p:last-child,
.indicators-table div ul:last-child {
    margin-bottom: 0;
}


/**
 * ACCORDIONS
 */

.accordion-button::after {
    display: none !important;
}

.accordion-button::before {
    flex-shrink: 0;
    width: 1.25rem; /* Adjust size as needed */
    height: 1.25rem; /* Adjust size as needed */
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); /* SVG for down arrow */
    background-repeat: no-repeat;
    background-size: 1.25rem; /* Match size */
    transition: transform 0.2s ease-in-out;
    margin-right: 0.5rem; /* Add some spacing between arrow and text */
}

.accordion-button.collapsed::before {
    transform: rotate(-90deg); /* Rotate for up arrow when expanded */
}

.accordion-item {
    background-color: inherit;
    border: 0 none transparent;
}

.accordion-button {
    padding-top: 0.125em;
    padding-bottom: 0.125em;
    padding-left: 0;
    background-color: inherit;
}

.accordion-body {
    padding-top: .5rem;
    padding-bottom: .5rem;
    padding-left: 1.75rem;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

.accordion-button:not(.collapsed) {
    color: inherit;
    background-color: inherit;
    box-shadow: none;
}


/**
 * TABS
 */

.nav-tabs {
    border-bottom: 2px solid #472F0E;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    background-color: #472F0E;
    color: white;
    border-bottom: 0 none transparent;
}

.nav-tabs .nav-link {
    color: #472F0E;
    font-weight: bold;
}
