body {
    font-family: 'Courier New', Courier, monospace;
}

.cmm-usa {
    display: none;
    margin: 0 auto;
    padding: 10px
}

.cmm-usa svg {
    margin-left: 30px;
    width: clamp(45%, 80vw, 95%);
    z-index: 99;
    max-width: 930px;
}

.cmm-usa svg path {
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-miterlimit: 10
}

.cmm-usa-hover-state-info {
    position: relative;
    margin: -40px auto 20px auto;
    display: none;
    box-sizing: border-box;
    padding: .75em;
    width: 300px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 20px #999;
    font-size: 14px;
    z-index: 100
}

.cmm-usa-hover-state-info span {
    display: block;
    line-height: 1.5em
}

.cmm-usa-hover-state-info span:first-child {
    font-weight: bold;
    text-align: center
}

.cmm-usa-listview {
    width: 100%;
    text-align: center;
    margin: 1em 0
}

.cmm-usa-listview ul {
    vertical-align: top;
    list-style: none;
    display: inline-block;
    text-align: left;
    margin: 0;
    padding: 0
}

.cmm-usa-listview ul li {
    padding: 0;
    margin: 0
}

.cmm-usa-listview ul li span {
    display: inline-block;
    position: relative;
    height: 12px;
    width: 12px;
    border-radius: 12px;
    color: black;
    text-align: center;
    line-height: 12px;
    font-weight: bold;
    border: 1px solid #999;
    opacity: 1.0;
    margin-right: .5em
}

.cmm-usa-listview ul li span::after {
    content: "\2B9E";
    position: relative;
    color: #333;
    font-size: 12px
}

.cmm-usa-listview ul li a {
    display: inline-block;
    margin: .5em 1em .5em 0;
    color: #ccc;
    text-decoration: none
}

.cmm-usa-listview ul li a.cmm-usa-live-link {
    color: #000;
    text-decoration: underline;
    cursor: pointer
}

.cmm-usa-title {
    width: 100%;
    text-align: center;
    font-weight: bold
}

.cmm-usa-credit-link {
    text-align: center
}

@media (max-width: 1500px) and (orientation: portrait) {
    a {
        top: 90%;
        left: 5%;
        position: relative;
    }

    .cmm-usa-hover-state-info {
        top: 55%;
        position: relative;
        margin-top: 6%;

    }
}

@media (min-width: 2000px) {
    .cmm-usa svg {
        max-width: 1255px !important;
    }

    h1 {
        font-size: 42px !important;
    }

    .cmm-usa-hover-state-info {
        width: 30% !important;
        font-size: 25px !important;
    }
}

@media (min-width: 3000px) {
    .cmm-usa svg {
        max-width: 1882px !important;
    }

    h1 {
        font-size: 60px !important;
    }

    .cmm-usa-hover-state-info {
        width: 30% !important;
        font-size: 42px !important;
    }
}

.category-economic path   { fill: #E9EEF5 !important; }
.category-cultural path  { fill: #C9D6E5 !important; }
.category-historical path { fill: #9FB6D4 !important; }
.category-climate path    { fill: #6E8FB8 !important; }
.category-geography path  { fill: #3F5F87 !important; }

.map-legend {
    padding: 1.2rem 1.4rem;
    background: #f6f8fb;
    border-radius: 0.8rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
    width: clamp(12rem, 18vw, 18rem);
    max-width: 25vw;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.legend-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.legend-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legend-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.legend-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 0.15rem;
    border: 0.06rem solid rgba(0, 0, 0, 0.15);
}

.legend-list li.economic::before   { background: #E9EEF5; }
.legend-list li.cultural::before  { background: #C9D6E5; }
.legend-list li.historical::before { background: #9FB6D4; }
.legend-list li.climate::before    { background: #6E8FB8; }
.legend-list li.geography::before  { background: #3F5F87; }

@media (max-width: 58rem) {

    .map-legend {
        position: fixed;
        bottom: 15%;
        left: 25%;
        right: auto;
        top: auto;
        transform: translateX(-50%);
        width: 85%;
        max-width: 22rem;
    }

}

@media (max-aspect-ratio: 4/3) {

    .map-legend {
        width: clamp(12rem, 30vw, 16rem);
        font-size: clamp(0.75rem, 0.9vw, 1.1rem) !important;
    }
    .legend-list li{
        font-size: clamp(0.75rem, 0.9vw, 1.1rem) !important;
    }
    .cmm-usa svg {
        width: clamp(50%, 70vw, 95%);
    }

}