.body-bag {
    background-color: white;
    font-family: "Ringside Regular A","Ringside Regular B",sans-serif;
  font-size: 16px;
  color: #393B3C;
}

.imgPopup {
    max-width: 100%;
}

.custom-link-white {
    color: #fff !important;
}    

.custom-link-black {
    color: #000 !important;
} 

.show {
    display: block;
}

.inv {
    display: none;
}

.container .card-header {
    background-color: #346732;
}

.img-small {
    max-width: 250px;
}

/*---- General settings ----*/

.container h1, .container h2, .container h3 {
  color: #003b4a;
  font-weight: bold;
}

.container a {
    color: #008294;
}

/*---- Map settings ----*/
.map {
    min-height: 600px;
}

.mapboxgl-popup {
    border-radius: 5px;
    max-width: 500px;
    font: 12px/20px "Ringside Regular A","Ringside Regular B",sans-serif;
}

.mapboxgl-popup-content {
    border: 2px solid grey;
    box-shadow: 0px 2px 4px 2px rgba(0,0,0,.1)
}

.map-controls {
    background: white;
    font-size: 18px;
    z-index: 1;
}

.map-control-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.map-legend {
    margin-top: 4px;
    font-size: 16px;
}

.map-legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    vertical-align: middle;
}

.map-policy-select {
    max-width: 99%;
    padding: 6px 8px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
}

.map-policy-select:focus {
    outline: none;
    border-color: #666;
}

.map-policy-description {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.accordion .accordion-button {
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-btn-color: #000;
    --bs-accordion-active-bg: #f2f1f1;
}

.bi .bi-check-circle-fill {
    fill: #2E7D32;
    color: #2E7D32;
}

/*---- Glossary hover definitions ----*/
:root {
    --brand-teal: #008294;
    --brand-teal-dark: #00657a;
}

.glossary-term {
    text-decoration: underline dotted var(--brand-teal) 2px;
    text-underline-offset: 3px;
    cursor: help;
    border-radius: 3px;
    transition: background-color .15s ease, color .15s ease;
}

.glossary-term:hover,
.glossary-term:focus-visible {
    background-color: rgba(0, 130, 148, .1);
    color: var(--brand-teal-dark);
    outline: none;
}

.glossary-tooltip {
    position: absolute;
    z-index: 2000;
    max-width: 320px;
    background: #fff;
    border: 1px solid #e3e6e8;
    border-top: 3px solid var(--brand-teal);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
    padding: 12px 14px 10px;
    font-size: 14px;
    line-height: 1.45;
    color: #393B3C;
    visibility: hidden;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.glossary-tooltip.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.glossary-tooltip-term {
    font-weight: 700;
    color: var(--brand-teal);
    margin-bottom: 4px;
}

.glossary-tooltip-def a {
    margin-bottom: 8px;
    color: var(--brand-teal);
}

.glossary-tooltip-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-teal);
    text-decoration: none;
}

.glossary-tooltip-link:hover {
    text-decoration: underline;
    color: var(--brand-teal-dark);
}

.glossary-tooltip-arrow {
    position: absolute;
    left: var(--arrow-left, 50%);
    bottom: -7px;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    background: #fff;
    border-right: 1px solid #e3e6e8;
    border-bottom: 1px solid #e3e6e8;
    transform: rotate(45deg);
}

.glossary-tooltip.is-below .glossary-tooltip-arrow {
    bottom: auto;
    top: -7px;
    background: var(--brand-teal);
    border: none;
}

/*---- Glossary page ----*/
.glossary-page {
    max-width: 960px;
}

.glossary-subtitle {
    color: #5b5f61;
    max-width: 640px;
}

.glossary-tip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(0, 130, 148, .07);
    border-left: 4px solid var(--brand-teal);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0 24px;
}

.glossary-tip .bi {
    color: var(--brand-teal);
    font-size: 18px;
}

.glossary-search {
    position: relative;
    max-width: 420px;
    margin-bottom: 24px;
}

.glossary-search .bi {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a8f92;
}

.glossary-search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #d4d8da;
    border-radius: 24px;
    font-size: 15px;
}

.glossary-search input:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(0, 130, 148, .15);
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.glossary-card {
    background: #fff;
    border: 1px solid #e3e6e8;
    border-radius: 10px;
    padding: 16px 18px;
    scroll-margin-top: 90px;
    transition: box-shadow .15s ease, transform .15s ease;
}

.glossary-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.glossary-card:target {
    border-color: var(--brand-teal);
    animation: glossary-pulse 1.8s ease;
}

@keyframes glossary-pulse {
    0% {
        background-color: rgba(0, 130, 148, .18);
    }

    100% {
        background-color: #fff;
    }
}

.glossary-card-term {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-teal);
    margin-bottom: 2px;
}

.glossary-card-aliases {
    font-size: 12.5px;
    color: #8a8f92;
    font-style: italic;
    margin-bottom: 6px;
}

.glossary-card-def {
    font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 0;
}

@keyframes x {
    100% {
        transform: translateX(calc(100vw - var(--width)));
    }
}
@keyframes y {
    100% {
        transform: translateX(calc(100vh - var(--width)));
    }
}