/* Global */
body, html {
    padding: 0;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #212C32;
}

.bg-main {
    background-color: #062a35;
}

.bg-submain {
    background-color: #ea5822;
}

.text-main {
    color: #062a35;
}

.text-submain {
    color: #ea5822;
}

:target::before {
    content: "";
    display: block;
    height: 55px;
    margin-top: -55px;
}
/* Global */

/* Maps */
#state-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    border-radius: 5px;
    display: none;
    pointer-events: none;
    z-index: 10;
    font-size: 14px;
}

#continents-map path {
    fill: #C0C0C0;
    stroke: white;
    stroke-width: 40;
}

#continents-map .climbed path {
    fill: #158F22;
}

#continents-map .climbed:hover path {
    fill: #ff9830;
    cursor: pointer;
}

#europe-map path {
    fill: #C0C0C0;
    stroke: white;
    stroke-width: 8;
}

#europe-map .europe.climbed {
    fill: #158F22;
}

#europe-map .europe.attempt {
    fill: #fc3030;
}

#europe-map .europe.climbed:hover, #europe-map .europe.attempt:hover {
    fill: #ff9830;
    cursor: pointer;
}

#europe-map #lakes {
    opacity: 1;
    fill: #dfeffa;
    fill-opacity: 1;
}

#south-america-map path {
    fill: #C0C0C0;
    stroke: white;
    stroke-width: 1; /* 'stroke-width' is also set to some states in 'south-america-map.php' */
}

#south-america-map .south-america.climbed path {
    fill: #158F22;
}

#south-america-map .south-america.climbed:hover path {
    fill: #ff9830;
    cursor: pointer;
}

#north-america-map path {
    fill: #C0C0C0;
    stroke: white;
    stroke-width: 1.2;
}

#north-america-map .north-america.climbed path {
    fill: #158F22;
}

#north-america-map .north-america.climbed:hover path {
    fill: #ff9830;
    cursor: pointer;
}

#north-america-map #lakes path {
    opacity: 1;
    fill: #dfeffa;
    fill-opacity: 1;
}

#africa-map path {
    fill: #C0C0C0;
    stroke: white;
    stroke-width: 1.3;
}

#africa-map .africa.climbed {
    fill: #158F22;
}

#africa-map .africa.climbed:hover {
    fill: #ff9830;
    cursor: pointer;
}

#asia-map path {
    fill: #C0C0C0;
    stroke: white;
    stroke-width: 0.3;
}

#asia-map .asia.climbed {
    fill: #158F22;
}

#asia-map .asia.attempt {
    fill: #fc3030;
}

#asia-map .asia.climbed:hover, #asia-map .asia.attempt:hover {
    fill: #ff9830;
    cursor: pointer;
}

#oceania-map path {
    fill: #C0C0C0;
    stroke: white;
    stroke-width: 0.25;
}

#oceania-map .oceania.climbed {
    fill: #158F22;
}

#oceania-map .oceania.climbed:hover {
    fill: #ff9830;
    cursor: pointer;
}

#europe-map svg, #south-america-map svg, #north-america-map svg, #asia-map svg, #oceania-map svg, #africa-map svg {
    min-height: 100vh;
}

#continents-map svg {
    min-height: 50vh;
}

#ocean, .ocean {
    opacity: 1;
    fill: #dfeffa;
    fill-opacity: 1;
}
/* Maps */

/* About project */
#about-project-main_title-section {
    background-image: url('/views/about_project/photos/background_image.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}

.fa-envelope, .fa-phone {
    color: #ea5822;
}

#about-project-main_title-section-box {
    height: 100%;
}

#about-project-main_title-section_title, #about-project-main_title-section_subtitle, #about-project-main_title-section_motto {
    width: fit-content;
    opacity: 0.9;
}

.about-project-main_section-box {
    padding: 3rem 1rem;
    max-width: 1300px;
    margin: auto;
}

#about-project-main_navigation-section-box {
    padding: 0 1rem;
}

#about-project-main_navigation-section {
    background-color: #ea5822;
}

#about-project-main ::marker {
    font-weight: bold;
    color: #ea5822;
}

.peak-table-sort-altitude, .peak-table-sort-alpha {
    display: none;
}

#about-project-footer {
    font-size: 0.7rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

#about-project-box {
    background:
        radial-gradient(circle at top left, rgba(234, 88, 34, 0.08), transparent 28%),
        linear-gradient(180deg, #f5f8fa 0%, #eef4f6 100%);
    min-height: 100vh;
    overflow: visible;
}

#about-project-main_title-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    isolation: isolate;
    background-image: none;
    overflow: hidden;
}

#about-project-main_title-section::before {
    content: none;
}

#about-project-main_title-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/views/about_project/photos/background_image.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: none;
    transform: none;
    z-index: 0;
}

#about-project-main_title-section-box {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: inherit;
    display: flex;
    align-items: stretch;
    padding-top: clamp(1.8rem, 6.5vh, 4.2rem);
    padding-bottom: clamp(2rem, 6vh, 4.4rem);
}

.about-project-main_section-box {
    padding: 3rem 1rem;
    max-width: 1300px;
    margin: auto;
}

.about-project-hero-card {
    max-width: min(100%, 40rem);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.about-project-hero-eyebrow {
    display: inline-block;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.58rem;
    border-radius: 0.2rem;
    background: rgba(9, 23, 31, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

#about-project-main_title-section_title {
    color: #ffffff;
    font-size: clamp(2rem, 3.8vw, 4.1rem);
    line-height: 0.98;
    font-weight: 800;
    text-transform: none !important;
    text-wrap: balance;
    background: rgba(9, 23, 31, 0.82) !important;
    padding: 0.58rem 0.92rem !important;
    border-radius: 0.2rem !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 0.7rem 1.4rem rgba(6, 24, 31, 0.22);
}

.about-project-hero-summary {
    margin-top: 0.25rem;
    max-width: min(100%, 29rem);
    padding: 0.85rem 0.95rem;
    border-radius: 0.2rem;
    background: rgba(9, 23, 31, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #eef6f8;
    box-shadow: 0 0.7rem 1.4rem rgba(6, 24, 31, 0.22);
}

.about-project-hero-goal {
    margin-bottom: 0.7rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.about-project-hero-goal span:nth-child(1) {
    color: #ffd166;
}

.about-project-hero-goal span:nth-child(2) {
    color: #ff9f43;
}

.about-project-hero-goal span:nth-child(3) {
    color: #ff6b6b;
}

.about-project-hero-lead {
    font-size: clamp(1.1rem, 1.5vw, 1.45rem);
    line-height: 1.3;
    font-weight: 700;
}

.about-project-hero-note {
    font-size: 0.96rem;
    line-height: 1.5;
    color: rgba(238, 246, 248, 0.82);
}

.about-project-hero-motto {
    margin-top: auto;
    margin-bottom: clamp(0.25rem, 1.6vh, 0.9rem);
    max-width: min(100%, 44rem);
    padding: 0.62rem 0.82rem;
    border-radius: 0.25rem;
    background: rgba(246, 249, 251, 0.94);
    color: #163f4d;
    font-size: 0.9rem;
    line-height: 1.45;
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 0.5rem 1.1rem rgba(6, 24, 31, 0.14);
}

@media (max-height: 820px) {
    .about-project-hero-motto {
        margin-top: auto;
        margin-bottom: 0.45rem;
        font-size: 0.84rem;
        line-height: 1.35;
    }
}

.about-project-hero-motto-label {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: #ea5822;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#about-project-main_navigation-section {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
    width: 100%;
    align-self: stretch;
    opacity: 0.98;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(6, 42, 53, 0.98), rgba(12, 58, 73, 0.96)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1rem 2.5rem rgba(4, 26, 33, 0.2);
    backdrop-filter: blur(10px);
}

.about-project-nav-shell {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
}

#about-project-main_navigation-section-box {
    max-width: 1300px;
    padding: 0.62rem 1rem !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.about-project-nav-groups {
    width: 100%;
}

.about-project-nav-list {
    row-gap: 0.38rem;
    max-width: 100%;
}

.about-project-nav-list-main {
    margin: 0 auto;
    width: auto;
}

.about-project-nav-link,
.about-project-nav-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.3rem;
    padding: 0.46rem 0.84rem !important;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(246, 250, 252, 0.96) !important;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.about-project-nav-link:hover,
.about-project-nav-link:focus,
.about-project-nav-control:hover,
.about-project-nav-control:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}

.about-project-nav-link.active,
.about-project-nav-link[aria-current="page"],
.about-project-nav-control.active {
    color: #ffffff !important;
    text-decoration: none !important;
    background: rgba(234, 88, 34, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 214, 196, 0.18);
}

.about-project-nav-link:focus-visible,
.about-project-nav-control:focus-visible,
.about-project-nav-toggler:focus-visible,
.about-project-nav-dropdown .dropdown-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.35);
}

.about-project-nav-section {
    flex-shrink: 0;
}

.about-project-nav-toggler {
    min-width: 2.45rem;
    min-height: 2.45rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
}

.about-project-content-shell {
    position: relative;
    z-index: 0;
}

#about-project-main_contact-section {
    background: transparent;
    /* Match the same outer gutters as the content shell sections */
    padding-left: 1rem;
    padding-right: 1rem;
}

#about-project-main_contact-section > .about-project-main_section-box {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.about-project-contact-card {
    padding: clamp(1rem, 1.5vw, 1.5rem);
    border-radius: 0.3rem;
    background:
        radial-gradient(circle at top right, rgba(234, 88, 34, 0.18), transparent 32%),
        linear-gradient(135deg, #071f28, #0c3745);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1rem 2rem rgba(4, 26, 33, 0.18);
}

.about-project-contact-heading {
    margin-bottom: 1rem;
}

.about-project-contact-eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: #ea5822;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-project-contact-title {
    color: #ffffff;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.05;
}

.about-project-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem);
    gap: 1.1rem;
    align-items: stretch;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-project-contact-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.about-project-contact-person {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.about-project-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.55rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(235, 244, 247, 0.86);
    text-decoration: none;
    line-height: 1.4;
}

.about-project-contact-link + .about-project-contact-link {
    margin-top: 0;
    position: relative;
}

.about-project-contact-link + .about-project-contact-link::before {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    top: -0.35rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.about-project-contact-link:hover,
.about-project-contact-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.fa-envelope,
.fa-phone {
    color: #ea5822;
}

.about-project-contact-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0.2rem solid rgba(234, 88, 34, 0.72);
    text-align: left;
}

.about-project-contact-brand-label {
    margin-bottom: 0;
    color: rgba(235, 244, 247, 0.74);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.about-project-contact-brand-title {
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(0.96rem, 1.25vw, 1.24rem);
    font-weight: 700;
    line-height: 1.22;
    text-wrap: pretty;
}

.about-project-footer {
    background: linear-gradient(135deg, #071f28, #0c3745);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#about-project-footer_box {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.about-project-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.about-project-footer-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.about-project-footer-copy {
    margin-top: 0.2rem;
    color: rgba(235, 244, 247, 0.75);
    font-size: 0.78rem;
}

.about-project-footer-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.about-project-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.about-project-footer-link:hover,
.about-project-footer-link:focus {
    background: rgba(234, 88, 34, 0.18);
    border-color: rgba(255, 214, 196, 0.18);
    color: #ffffff;
}

@media (max-width: 1199px) {
    #about-project-main_navigation-section-box {
        justify-content: space-between;
        padding-top: 0.52rem !important;
        padding-bottom: 0.52rem !important;
    }

    #aboutProjectNavbar {
        width: 100%;
        margin-top: 0.15rem;
        padding-top: 0.7rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .about-project-nav-list {
        width: 100%;
        margin: 0;
    }

    .about-project-nav-list .nav-item {
        width: 100%;
    }

    .about-project-nav-link,
    .about-project-nav-control {
        width: 100%;
        justify-content: space-between;
    }

    #about-project-main_navigation-section .navbar-toggler[aria-expanded="true"] {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 767px) {
    .about-project-main_section-box {
        padding: 1.5rem 1rem;
    }

    #about-project-main_title-section {
        min-height: 100vh;
        min-height: 100svh;
        height: 100vh;
        height: 100svh;
    }

    .about-project-hero-card {
        max-width: 100%;
        padding: 0;
    }

    #about-project-main_title-section_title {
        font-size: clamp(1.8rem, 9vw, 2.7rem);
    }

    .about-project-hero-summary,
    .about-project-hero-motto {
        padding: 0.82rem 0.86rem;
    }

    .about-project-hero-motto {
        margin-top: 1rem;
        max-width: 100%;
    }

    .about-project-contact-grid,
    .about-project-footer-inner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .about-project-contact-brand,
    .about-project-footer-brand,
    .about-project-footer-actions {
        text-align: left;
        justify-content: flex-start;
    }

    .about-project-contact-brand {
        padding: 0.62rem 0.72rem;
        border-left-width: 0.16rem;
    }

    .about-project-contact-brand-title {
        font-size: 1.02rem;
    }

    .about-project-footer-link {
        width: 100%;
    }

    #about-project-main_contact-section {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}
/* About project */

/* Navigation */
.continent-nav-shell {
    position: sticky;
    top: 0;
    z-index: 1020;
    width: 100%;
}

#navigation {
    opacity: 0.98;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(6, 42, 53, 0.98), rgba(12, 58, 73, 0.96));
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1rem 2.5rem rgba(4, 26, 33, 0.2);
    backdrop-filter: blur(10px);
}

#navigation > .container-fluid {
    max-width: none;
    margin: 0;
    padding-left: clamp(1rem, 2vw, 2.1rem) !important;
    padding-right: clamp(1rem, 2vw, 2.1rem) !important;
}

.continent-nav-inner {
    gap: 0.75rem;
}

.continent-nav-headline {
    min-width: 0;
    flex: 0 0 auto;
    position: relative;
}

.continent-nav-headline-actions {
    flex-shrink: 0;
}

.continent-nav-mobile-legend-wrap {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: clamp(0.75rem, 2vw, 2rem);
    z-index: 1025;
    pointer-events: none;
}

#map-legend-mobile-external {
    display: inline-flex;
    justify-content: flex-start;
    pointer-events: auto;
}

#map-legend-mobile-external .continent-nav-legend-toggle {
    min-height: 2.2rem;
    padding: 0.42rem 0.72rem !important;
    background: linear-gradient(135deg, rgba(6, 42, 53, 0.98), rgba(13, 55, 68, 0.97));
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    box-shadow: 0 0.75rem 1.4rem rgba(4, 26, 33, 0.28);
}

#map-legend-mobile-external .continent-nav-legend-toggle:hover,
#map-legend-mobile-external .continent-nav-legend-toggle:focus {
    background: linear-gradient(135deg, rgba(10, 54, 67, 0.99), rgba(16, 66, 82, 0.98));
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

#map-legend-mobile-external .dropdown-menu {
    background: linear-gradient(180deg, rgba(8, 28, 36, 0.99), rgba(5, 18, 24, 0.995));
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.continent-nav-collapse {
    flex: 1 1 auto;
    overflow: visible;
}

.continent-nav-groups {
    width: 100%;
}

.continent-nav-list-main {
    flex: 0 1 auto;
    margin: 0;
    width: auto;
}

.continent-nav-list-actions {
    flex: 0 0 auto;
}

#navigation_main-title {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    line-height: 1.05;
    font-size: clamp(0.98rem, 0.6vw + 0.86rem, 1.15rem);
}

.continent-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    min-height: 2.95rem;
    padding: 0.45rem 0.65rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.continent-nav-brand:hover,
.continent-nav-brand:focus {
    color: #ffffff;
}

.continent-nav-logo {
    width: 2rem;
    height: 2rem;
    object-fit: cover;
    flex: 0 0 auto;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 0.55rem 1rem rgba(4, 26, 33, 0.18);
}

.continent-nav-brand-title,
.continent-nav-brand-author {
    white-space: nowrap;
}

.continent-nav-brand-title {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.continent-nav-brand-author {
    color: rgba(235, 244, 247, 0.78);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.navigation-title-wrap {
    min-width: 0;
    width: 100%;
    text-align: center;
}

.navigation-title-label {
    display: inline-block;
    margin-bottom: 0.12rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(235, 244, 247, 0.68);
}

.continent-nav-list {
    row-gap: 0.4rem;
    max-width: 100%;
}

#navigation,
#navigation .container-fluid,
.continent-nav-inner,
.continent-nav-headline,
.continent-nav-collapse,
.continent-nav-groups,
.continent-nav-list {
    min-width: 0;
}

@media (min-width: 1400px) {
    .continent-nav-headline {
        width: auto !important;
        justify-content: flex-start !important;
    }

    .continent-nav-headline-actions {
        position: static;
        transform: none;
    }

    .continent-nav-collapse {
        display: flex !important;
        flex-grow: 1;
        width: 100% !important;
        overflow: visible !important;
        justify-content: flex-end !important;
        margin-left: 1rem;
    }

    .continent-nav-groups {
        display: flex !important;
        width: 100%;
        justify-content: flex-end;
        align-items: center;
    }

    .continent-nav-list-main {
        flex: 0 0 auto;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: auto;
        overflow: visible;
        padding-bottom: 0;
        min-width: max-content;
    }

    .continent-nav-list-actions {
        flex: 0 0 auto;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        min-width: max-content;
        margin-left: 1rem;
        padding-left: 0.75rem;
        border-left: 1px solid rgba(255, 255, 255, 0.12);
    }

    .continent-nav-list {
        overflow: visible;
    }

    .continent-nav-link,
    .continent-nav-control {
        white-space: nowrap;
    }
}

.continent-nav-link,
.continent-nav-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.72rem !important;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(246, 250, 252, 0.96) !important;
    font-size: 0.88rem;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.continent-nav-link:hover,
.continent-nav-link:focus,
.continent-nav-control:hover,
.continent-nav-control:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}

.continent-nav-link.active,
.continent-nav-link[aria-current="page"] {
    color: #ffffff !important;
    text-decoration: none !important;
    background: rgba(234, 88, 34, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 214, 196, 0.18);
}

.continent-nav-link:focus-visible,
.continent-nav-control:focus-visible,
.continent-nav-toggler:focus-visible,
#navigation_states-dropdown-menu .dropdown-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.35);
}

.continent-nav-section {
    flex-shrink: 0;
}

#navigation_about-project {
    margin-right: 0.5rem;
    padding-right: 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

#navigation_states-dropdown-menu-box {
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

#navigation_states-dropdown-menu {
    max-height: min(70vh, 30rem);
    min-width: min(22rem, calc(100vw - 2.5rem));
    padding: 0.45rem;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

@media (min-width: 1400px) and (max-width: 1600px) {
    .continent-nav-link,
    .continent-nav-control {
        padding: 0.4rem 0.56rem !important;
        font-size: 0.83rem;
    }

    #navigation_about-project {
        margin-right: 0.35rem;
        padding-right: 0.55rem;
    }

    #navigation_states-dropdown-menu-box {
        padding-left: 0.55rem;
    }

    .continent-nav-list-actions {
        margin-left: 0.7rem;
    }

    .continent-nav-brand {
        padding: 0.4rem 0.58rem;
    }

    .continent-nav-brand-title {
        font-size: 0.95rem;
    }
}

#map-legend {
    height: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.continent-nav-toggler {
    min-width: 2.5rem;
    min-height: 2.95rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
}

.continent-nav-dropdown {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.25rem;
    background: linear-gradient(180deg, rgba(9, 31, 39, 0.98), rgba(6, 22, 29, 0.99));
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.26);
    z-index: 1035;
}

.continent-nav-dropdown .dropdown-header {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

#navigation_states-dropdown-menu li + li {
    margin-top: 0.2rem;
}

#navigation_states-dropdown-menu li {
    list-style: none;
}

#navigation_states-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    min-height: 2.45rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.25rem;
    white-space: normal;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    overflow-wrap: anywhere;
}

#navigation_states-dropdown-menu .dropdown-item:hover,
#navigation_states-dropdown-menu .dropdown-item:focus {
    background: rgba(234, 88, 34, 0.18);
    color: #ffffff;
    border-color: rgba(255, 214, 196, 0.18);
    transform: translateX(2px);
}

#navigation_states-dropdown-menu .dropdown-item:active {
    background: rgba(234, 88, 34, 0.24);
    color: #ffffff;
}

.continent-nav-legend-toggle {
    min-width: 7rem;
}

.continent-nav-legend-menu {
    min-width: 18rem;
    max-width: calc(100vw - 2rem);
}

.continent-nav-legend-item {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    align-items: center;
    justify-content: normal;
    text-align: left;
    gap: 0.85rem;
    padding: 0.55rem 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.94);
}

.continent-nav-legend-menu .dropdown-header {
    text-align: center;
}

.continent-nav-swatch {
    width: 2.75rem;
    height: 0.75rem;
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
/* Navigation */

/* State Template */

.min-vh-100.d-flex.flex-column.justify-content-between.bg-light {
    width: 100%;
    overflow-x: clip;
}

#state-template-header_box, #state-template-navigation_box {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 1300px;
    margin: auto;
}

.state-template-nav-shell {
    z-index: 1020;
}

#state-template-navigation {
    opacity: 0.98;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(6, 42, 53, 0.98), rgba(12, 58, 73, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1rem 2.5rem rgba(4, 26, 33, 0.2);
    backdrop-filter: blur(10px);
}

.state-template-nav-meta {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    font-size: clamp(0.98rem, 0.6vw + 0.86rem, 1.15rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.05;
    color: #ffffff;
}

.state-template-nav-inner {
    width: 100%;
    gap: 0.75rem;
}

.state-template-nav-topline {
    min-width: 0;
    flex: 0 0 auto;
}

.state-template-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    min-height: 2.95rem;
    padding: 0.45rem 0.65rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.state-template-nav-brand:hover,
.state-template-nav-brand:focus {
    color: #ffffff;
}

.state-template-nav-logo {
    width: 2rem;
    height: 2rem;
    object-fit: cover;
    flex: 0 0 auto;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 0.55rem 1rem rgba(4, 26, 33, 0.18);
}

.state-template-nav-brand-title,
.state-template-nav-brand-author {
    white-space: nowrap;
}

.state-template-nav-brand-author {
    color: rgba(235, 244, 247, 0.78);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
}

@media (min-width: 1200px) {
    .state-template-nav-topline {
        width: auto;
    }

    .state-template-nav-meta {
        margin-bottom: 0;
        text-align: left !important;
    }

    #state-template-navigation .navbar-collapse {
        flex-grow: 0;
        width: auto !important;
    }

    .state-template-nav-list {
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 1199.98px) {
    .state-template-nav-inner {
        align-items: stretch;
    }

    .state-template-nav-topline {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        justify-content: normal !important;
        gap: 0.9rem;
        width: 100%;
    }

    .state-template-nav-meta {
        margin-bottom: 0;
        text-align: left !important;
        min-width: 0;
        padding-right: 0.35rem;
    }

    .state-template-nav-brand {
        min-width: 0;
    }

    .state-template-nav-logo {
        width: 2rem;
        height: 2rem;
    }

    .state-template-nav-toggler {
        margin-left: 0;
        justify-self: end;
        align-self: center;
    }
}

.state-template-nav-list {
    row-gap: 0.5rem;
    margin: 0;
    width: auto;
}

#state-template-navigation .navbar-collapse {
    justify-content: flex-end;
}

.state-template-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.72rem !important;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(246, 250, 252, 0.96) !important;
    font-size: 0.88rem;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.state-template-nav-link:hover,
.state-template-nav-link:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}

.state-template-nav-link.active,
.state-template-nav-link[aria-current="page"] {
    color: #ffffff !important;
    text-decoration: none !important;
    background: rgba(234, 88, 34, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 214, 196, 0.18);
}

.state-template-nav-link:focus-visible,
.state-template-nav-toggler:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.35);
}

.state-template-nav-section {
    flex-shrink: 0;
}

.state-template-nav-section:first-child {
    margin-right: 0.5rem;
    padding-right: 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.state-template-nav-toggler {
    min-width: 2.55rem;
    min-height: 2.95rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 420px) {
    .state-template-nav-brand {
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.42rem 0.55rem;
    }

    .state-template-nav-meta {
        font-size: 0.9rem;
        line-height: 1.08;
    }

    .state-template-nav-brand-title {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .state-template-nav-brand-author {
        white-space: normal;
    }
}

#state-template-header {
    position: relative;
    overflow: hidden;
}

#state-template-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--state-flag-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    opacity: 0.44;
    pointer-events: none;
    filter: saturate(1.55) contrast(1.16);
    mix-blend-mode: lighten;
}

#state-template-header_box {
    position: relative;
    z-index: 1;
}

#state-template-header_state-box {
    gap: 1.5rem;
    padding: 0;
}

#state-template-header_card {
    padding: clamp(1.25rem, 2vw, 2rem);
    border-radius: 0.3rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        linear-gradient(135deg, rgba(7, 35, 44, 0.975), rgba(13, 55, 68, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.2);
}

.state-template-header_content {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
    flex: 1 1 16rem;
}

.state-template-header_breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
}

.state-template-header_breadcrumb-link,
.state-template-header_breadcrumb-current {
    color: rgba(235, 244, 247, 0.78);
    text-decoration: none;
}

.state-template-header_breadcrumb-link:hover,
.state-template-header_breadcrumb-link:focus {
    color: #ffffff;
}

.state-template-header_breadcrumb-separator {
    color: rgba(255, 255, 255, 0.35);
}

.state-template-header_eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.68);
}

#state-template-header_state-name {
    font-size: clamp(1.7rem, 2.8vw, 2.7rem);
    line-height: 1.05;
    text-wrap: balance;
}

.state-template-header_summary {
    max-width: 48rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(235, 244, 247, 0.8);
    overflow-wrap: anywhere;
}

.state-template-header_flag-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    min-height: 4rem;
    padding: 0.85rem 1rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    flex: 0 1 auto;
    max-width: 100%;
}

#state-template-header_flag {
    display: block;
    max-width: min(100%, 5rem);
    max-height: 2.7rem;
    border-radius: 0.2rem;
    box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.18);
}

#state-template-main {
    padding: 3rem 1rem;
    margin: auto;
    max-width: 1300px;
}

.state-template-main_section + .state-template-main_section {
    margin-top: 2rem;
}

.state-template-section-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1rem, 1.5vw, 1.5rem);
    border-radius: 0.3rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 249, 0.98)),
        linear-gradient(135deg, rgba(6, 42, 53, 0.04), rgba(234, 88, 34, 0.04));
    border: 1px solid rgba(6, 42, 53, 0.1);
    box-shadow: 0 1.2rem 2.8rem rgba(6, 42, 53, 0.08);
}

.state-template-section-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    height: 0.3rem;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(6, 42, 53, 0.95), rgba(234, 88, 34, 0.85));
}

.state-template-section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(6, 42, 53, 0.08);
}

.state-template-section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(6, 42, 53, 0.62);
}

.state-template-section-title {
    color: #062a35;
    font-size: clamp(1.55rem, 2.2vw, 2.15rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-shadow: 0 0.02em 0 rgba(255, 255, 255, 0.5);
}

.state-template-section-title::after {
    content: "";
    display: block;
    width: 3.25rem;
    height: 0.24rem;
    margin-top: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #ea5822, rgba(6, 42, 53, 0.7));
}

.state-template-section-accent {
    display: inline-flex;
    gap: 0.35rem;
    color: #ea5822;
    font-size: 0.72rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(234, 88, 34, 0.08);
    flex-shrink: 0;
}

.state-template-legend-box {
    margin-bottom: 1rem;
}

.state-template-legend-toggle {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(6, 42, 53, 0.12);
    background: linear-gradient(135deg, rgba(6, 42, 53, 0.07), rgba(234, 88, 34, 0.1));
    color: #062a35;
    font-weight: 600;
    box-shadow: none;
}

.state-template-legend-toggle:hover,
.state-template-legend-toggle:focus {
    color: #062a35;
    background: linear-gradient(135deg, rgba(6, 42, 53, 0.08), rgba(234, 88, 34, 0.12));
}

.state-template-legend-panel {
    border: 1px solid rgba(6, 42, 53, 0.12);
    border-radius: 0.25rem;
    padding: 1rem !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 250, 251, 1));
    color: #21323a;
}

.state-template-table-shell {
    overflow: hidden;
    border: 1px solid rgba(6, 42, 53, 0.08);
    border-radius: 0.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 251, 252, 1));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    max-width: 100%;
}

#state-template-main_info-table {
    color: #21323a;
    margin-bottom: 0 !important;
}

#state-template-main_info-table .state-template-main_info-col-key {
    width: 26%;
}

#state-template-main_info-table .state-template-main_info-col-value {
    width: auto;
}

#state-template-main_info-table .state-template-main_info-col-note {
    width: 5.5rem;
}

#state-template-main_info-table > :not(caption) > * > * {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(6, 42, 53, 0.08);
    box-shadow: none;
}

#state-template-main_info-table tbody tr:last-child > * {
    border-bottom: 0;
}

.legend {
    display: none;
}

.legend ::marker {
    font-weight: bold;
    color: #ea5822;
}

.fa-square, .fa-angle-down, .fa-angle-up {
    color: #ea5822;
}

.state-template-main_info-table_head {
    background: linear-gradient(135deg, #062a35, #0f4b5d);
}

.state-template-main_info-table_head th {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.state-template-main_info-table_sub-head {
    background: linear-gradient(135deg, rgba(234, 88, 34, 0.14), rgba(234, 88, 34, 0.08));
}

.state-template-main_info-table_sub-head th {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #b2481b;
}

.state-template-main_info-table_key {
    min-width: 200px;
    width: 26%;
    color: #062a35;
    font-weight: 700;
    background: rgba(6, 42, 53, 0.035);
}

#state-template-main_info-table tbody tr:nth-child(odd) > td,
#state-template-main_info-table tbody tr:nth-child(odd) > th.state-template-main_info-table_key {
    background: rgba(6, 42, 53, 0.025);
}

#state-template-main_info-table tbody tr:nth-child(even) > td,
#state-template-main_info-table tbody tr:nth-child(even) > th.state-template-main_info-table_key {
    background: rgba(255, 255, 255, 0.9);
}

#state-template-main_info-table td {
    color: #2f434c;
}

#state-template-main_info-table td.border-start,
#state-template-main_info-table th.border-start {
    border-left: 1px solid rgba(6, 42, 53, 0.1) !important;
}

#state-template-main_info-table thead + tbody tr:first-child > * {
    border-top: 0;
}

.state-template-note-cell {
    min-width: 5.5rem;
}

.state-template-note-badge,
.state-template-note-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.state-template-note-badge {
    background: rgba(234, 88, 34, 0.12);
    color: #b2481b;
    box-shadow: inset 0 0 0 1px rgba(234, 88, 34, 0.18);
}

.state-template-note-empty {
    background: rgba(6, 42, 53, 0.05);
    color: rgba(6, 42, 53, 0.45);
}

.state-template-main_photo-gallery_img-box {
    position: relative;
    display: inline-block;
    margin: 0.75rem;
    overflow: hidden;
    border-radius: 0.25rem;
    background: #0d1f25;
    border: 1px solid rgba(6, 42, 53, 0.08);
    box-shadow: 0 1rem 2rem rgba(6, 42, 53, 0.12);
}

.state-template-main_photo-gallery_trigger {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.state-template-main_photo-gallery_img {
    height: 270px;
    width: 270px;
    object-fit: cover;
    cursor: pointer;
    border: 0;
    opacity: 0;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.state-template-main_photo-gallery_img.is-loaded {
    opacity: 1;
    transition: opacity 0.35s ease, transform 0.25s ease, filter 0.25s ease;
}

.state-template-main_photo-gallery_zoom {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(6, 42, 53, 0.72);
    color: #ffffff;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    pointer-events: none;
}

.state-template-main_photo-gallery_img-description {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(4, 20, 25, 0.82));
    padding-top: 2rem !important;
    min-height: 4.25rem;
}

#state-template-main_photo-gallery_imgs {
    border: 1px solid rgba(6, 42, 53, 0.08);
    border-radius: 0.25rem;
    background: linear-gradient(180deg, rgba(6, 42, 53, 0.04), rgba(234, 88, 34, 0.03));
    padding: 0.75rem;
    max-width: 100%;
}

#state-template-main_photo-gallery_more-photos {
    width: fit-content;
    background-color: #ea5822;
}

.state-template-main_photo-gallery_trigger:hover .state-template-main_photo-gallery_img,
.state-template-main_photo-gallery_trigger:focus-visible .state-template-main_photo-gallery_img {
    transform: scale(1.03);
    filter: saturate(1.03);
}

.state-template-main_photo-gallery_trigger:hover .state-template-main_photo-gallery_zoom,
.state-template-main_photo-gallery_trigger:focus-visible .state-template-main_photo-gallery_zoom {
    opacity: 1;
    transform: translateY(0);
}

.state-template-main_photo-gallery_trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.28);
    border-radius: 0.25rem;
}

#state-template_image-modal-box {
    display: none;
    z-index: 9999;
    padding: 0.35rem;
    align-items: center;
    justify-content: center;
    background: rgba(4, 16, 21, 0.82);
    backdrop-filter: blur(12px);
}

#state-template_image-modal-panel {
    width: min(1380px, 100%);
    height: calc(100vh - 0.7rem);
    max-height: calc(100vh - 0.7rem);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 0.6rem;
    border-radius: 0.25rem;
    background: linear-gradient(180deg, rgba(9, 31, 39, 0.96), rgba(6, 22, 29, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.32);
}

#state-template_image-modal {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: calc(100vh - 8.75rem);
    border-radius: 0.2rem;
    margin: 0 auto;
    object-fit: contain;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.28);
}

.state-template_image-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
}

.state-template_image-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.state-template_image_modal-stage,
.state-template_image-modal-stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 0;
    overflow: visible;
}

.state-template_image-modal-figure {
    margin: 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.state-template_image_modal-description,
.state-template_image-modal-description {
    margin-top: 0.65rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(248, 251, 252, 0.96);
    font-size: 0.92rem;
    line-height: 1.4;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
}

.state-template_image-modal-counter {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(248, 251, 252, 0.88);
    font-weight: 600;
}

.state-template-modal-control,
.state-template-modal-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.state-template-modal-control:hover,
.state-template-modal-control:focus,
.state-template-modal-nav:hover,
.state-template-modal-nav:focus {
    color: #ffffff;
    background: rgba(234, 88, 34, 0.22);
}

.state-template-modal-control:focus-visible,
.state-template-modal-nav:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.28);
}

#state-template_scroll-to-top-btn {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(6, 42, 53, 0.94), rgba(234, 88, 34, 0.92));
    box-shadow: 0 1rem 2rem rgba(6, 42, 53, 0.18);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

#state-template_scroll-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#state-template_scroll-to-top-btn:hover,
#state-template_scroll-to-top-btn:focus {
    color: #ffffff;
    transform: translateY(-2px);
}

#state-template_scroll-to-top-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.28);
}

#state-template-footer {
    margin-top: 2rem;
    padding: 1.1rem 1rem 1.25rem;
    background: linear-gradient(135deg, #062a35, #0c3d4c);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

#state-template-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 0.22rem;
    background: linear-gradient(90deg, rgba(234, 88, 34, 0.95), rgba(255, 255, 255, 0.28), rgba(6, 42, 53, 0.95));
}

#state-template-footer_box {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.state-template-footer_brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.state-template-footer_label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(235, 244, 247, 0.62);
}

.state-template-footer_name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.state-template-footer_copy {
    font-size: 0.78rem;
    color: rgba(235, 244, 247, 0.74);
    overflow-wrap: anywhere;
}

.state-template-footer_link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.state-template-footer_link:hover,
.state-template-footer_link:focus {
    color: #ffffff;
    background: rgba(234, 88, 34, 0.2);
}

.state-template-footer_link-secondary {
    background: rgba(255, 255, 255, 0.04);
}

.state-template-footer_actions {
    padding: 0.15rem 0;
}
/* State Template */

/* Phones */
@media (max-width: 600px) {
    /* Global */
    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1rem;
    }
    /* Global */

    /* Navigation */
    #about-project-main_text {
        padding: 1rem !important;
    }

    #navigation_main-title {
        font-size: 1rem !important;
    }
    /* Navigation */

    /* About Project */
    .about-project-main_section-box {
        padding: 1.5rem 1rem;
        max-width: 1300px;
        margin: auto;
    }

    #about-project-main_rules-section ol, #about-project-main_lesson-section ol {
        padding: 2rem !important;
    }

    #about-project-main_title-section_title {
        font-size: 1.2rem !important;
    }

    #about-project-main_title-section_subtitle div {
        font-size: 0.9rem !important;
    }

    #about-project-main_title-section_motto {
        font-size: 0.8rem !important;
    }

    #about-project-main_contact-section_contact-box {
        flex-direction: column;
        padding: 0.5rem !important;
        align-items: start !important;
    }

    #about-project-main_contact-section_contact-box h4 {
        margin-top: 1rem !important;
    }

    #about-project-main_tables-section table, #about-project-main_lesson-section table {
        font-size: 0.7rem !important;
    }

    .peak-table-options {
        padding: 0.5rem;
        flex-direction: column;
    }

    .peak-table-options .select-order-box {
        margin-right: auto !important;
    }

    .peak-table-options .legend-box {
        margin-top: 0.5rem;
        margin-right: auto !important;
    }
    /* About Project */

    /* State Template */
    #state-template-navigation .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    #state-template-navigation_box,
    #state-template-header_box,
    #state-template-main,
    #state-template-footer_box {
        max-width: 100%;
    }

    .state-template-nav-inner {
        align-items: stretch;
    }

    .state-template-nav-topline {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        justify-content: normal !important;
        gap: 0.5rem;
        width: 100%;
    }

    .state-template-nav-meta {
        margin-bottom: 0;
        font-size: 0.98rem;
        line-height: 1.05;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-align: left !important;
        min-width: 0;
        overflow-wrap: normal;
        word-break: normal;
    }

    #state-template-navigation .navbar-collapse {
        margin-top: 0.25rem;
        padding-top: 0.95rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .state-template-nav-list {
        width: 100%;
        margin: 0;
    }

    .state-template-nav-link {
        width: 100%;
        justify-content: space-between;
    }

    .state-template-nav-list .nav-item {
        width: 100%;
    }

    .state-template-nav-section:first-child {
        margin-right: 0;
        padding-right: 0;
        border-right: none;
    }

    .state-template-nav-toggler {
        margin-left: 0;
        justify-self: end;
        align-self: center;
    }

    #state-template-navigation .navbar-toggler[aria-expanded="true"] {
        margin-bottom: 0;
    }

    #state-template-header_box {
        display: flex !important;
        justify-content: center !important;
        flex-direction: column;
        font-size: 0.7rem !important;
    }

    #state-template-header_state-box {
        padding: 0;
        gap: 1rem;
        justify-content: center !important;
        text-align: center;
    }

    #state-template-header_card {
        padding: 1rem;
        border-radius: 0.3rem;
        width: 100%;
    }

    #state-template-header::before {
        background-position: center;
        background-size: 100% 100%;
        opacity: 0.3;
    }

    .state-template-header_content {
        align-items: center;
        min-width: 0;
    }

    .state-template-header_breadcrumb {
        justify-content: center;
        flex-wrap: wrap;
        font-size: 0.75rem;
    }

    #state-template-header_state-name {
        text-align: center !important;
        font-size: 1.45rem;
    }

    .state-template-header_summary {
        text-align: center;
        font-size: 0.88rem;
    }

    .state-template-header_flag-wrap {
        width: auto;
        max-width: 100%;
        min-height: 3.5rem;
        padding: 0.75rem;
    }

    #state-template-main_info-table {
        font-size: 0.7rem !important;
        table-layout: fixed;
        width: 100%;
    }

    #state-template-main_info-table .state-template-main_info-col-key {
        width: 4.4rem;
    }

    #state-template-main_info-table .state-template-main_info-col-value {
        width: auto;
    }

    #state-template-main_info-table .state-template-main_info-col-note {
        width: 2rem;
    }

    #state-template-main_info-table > :not(caption) > * > * {
        padding: 0.62rem 0.45rem;
    }

    #state-template-main_info-table th {
        padding-top: 0.48rem !important;
        padding-bottom: 0.48rem !important;
        padding-left: 0.28rem !important;
        padding-right: 0.22rem !important;
    }

    .state-template-main_info-table_head th,
    .state-template-main_info-table_sub-head th {
        letter-spacing: 0.01em;
        font-size: 0.6rem;
        line-height: 1.1;
    }

    .state-template-main_info-table_head th:last-child,
    .state-template-main_info-table_sub-head th:last-child,
    #state-template-main_info-table td.border-start,
    #state-template-main_info-table th.border-start {
        width: 2rem;
        min-width: 2rem;
        max-width: 2rem;
        padding-left: 0.2rem !important;
        padding-right: 0.24rem !important;
        font-size: 0.48rem;
    }

    #state-template-main {
        padding: 1.5rem 1rem !important;
    }

    .state-template-section-card {
        padding: 0.9rem;
        border-radius: 0.3rem;
    }

    .state-template-section-heading {
        margin-bottom: 1rem;
    }

    .state-template-section-heading > div {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .state-template-section-title {
        font-size: 1.4rem;
    }

    .state-template-legend-toggle {
        padding: 0.8rem 0.9rem;
        font-size: 0.9rem;
    }

    .state-template-legend-panel {
        padding: 0.85rem !important;
    }

    .state-template-main_info-table_key {
        min-width: 0;
        font-size: 0.48rem;
        line-height: 1.08;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
        padding-top: 0.36rem !important;
        padding-bottom: 0.36rem !important;
        padding-left: 0.16rem !important;
        padding-right: 0.12rem !important;
    }

    #state-template-main_info-table td:not(.border-start) {
        width: auto;
        font-size: 0.66rem;
        line-height: 1.3;
        overflow-wrap: anywhere;
        word-break: break-word;
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
    }

    .state-template-note-cell {
        min-width: 2rem;
        width: 2rem;
        max-width: 2rem;
        padding-left: 0.2rem !important;
        padding-right: 0.24rem !important;
        white-space: normal;
    }

    .state-template-note-badge,
    .state-template-note-empty {
        min-width: 1rem;
        min-height: 1rem;
        padding: 0.08rem;
        font-size: 0.42rem;
        border-radius: 0.6rem;
    }

    #state-template_scroll-to-top-btn {
        width: 45px;
        height: 45px;
    }

    #state-template-footer_box {
        text-align: center;
    }

    .state-template-footer_actions {
        width: 100%;
    }

    .state-template-footer_link {
        width: 100%;
        justify-content: center;
    }

    .state-template-main_photo-gallery_img-box {
        width: min(100%, 19rem);
        margin: 0.45rem 0;
        max-width: 100%;
    }

    .state-template-main_photo-gallery_img,
    .state-template-main_photo-gallery_trigger {
        width: 100%;
    }

    .state-template-main_photo-gallery_img {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    #state-template_image-modal-box {
        padding: 0.2rem;
    }

    #state-template_image-modal-panel {
        width: 100%;
        height: calc(100vh - 0.4rem);
        max-height: calc(100vh - 0.4rem);
        padding: 0.45rem;
        border-radius: 0.85rem;
    }

    .state-template_image-modal-stage {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .state-template-modal-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    #state-template_shift-image-left {
        left: 0.75rem;
    }

    #state-template_shift-image-right {
        right: 0.75rem;
    }

    #state-template_image-modal {
        max-height: calc(100vh - 7.5rem);
    }

    .state-template_image-modal-description {
        font-size: 0.82rem;
        padding: 0.65rem 0.75rem;
    }

    .state-template_image-modal-topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .legend-box button {
        font-size: 0.8rem !important;
    }
    /* State Template */
}
/* Phones */
  
/* Tablets */
@media (min-width: 601px) and (max-width: 1124px) {
    /* Navigation */
    #navigation_main-title {
        font-size: 1.2rem !important;
    }
    /* Navigation */

    /* About Project */
    /* About Project */

    /* State Template */
    .state-template-nav-inner {
        align-items: stretch;
    }

    .state-template-nav-topline {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        justify-content: normal !important;
        gap: 0.65rem;
        width: 100%;
    }

    #state-template-navigation_box,
    #state-template-header_box,
    #state-template-main,
    #state-template-footer_box {
        max-width: 100%;
    }

    .state-template-nav-meta {
        margin-bottom: 0;
        font-size: 1.05rem;
        line-height: 1.05;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-align: left !important;
        min-width: 0;
        overflow-wrap: normal;
        word-break: normal;
    }

    #state-template-navigation .navbar-collapse {
        margin-top: 0.25rem;
        padding-top: 0.95rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .state-template-nav-list {
        width: 100%;
        margin: 0;
    }

    .state-template-nav-list .nav-item {
        width: 100%;
    }

    .state-template-nav-link {
        width: 100%;
        justify-content: space-between;
    }

    .state-template-nav-section:first-child {
        margin-right: 0;
        padding-right: 0;
        border-right: none;
    }

    .state-template-nav-toggler {
        margin-left: 0;
        justify-self: end;
        align-self: center;
    }

    #state-template-navigation .navbar-toggler[aria-expanded="true"] {
        margin-bottom: 0;
    }

    #state-template-header_state-box{
        padding: 0;
        flex-wrap: wrap;
        justify-content: space-between !important;
    }

    .state-template-section-title {
        font-size: 1.55rem;
    }

    .state-template-header_summary {
        max-width: 40rem;
    }

    .state-template-section-heading > div {
        min-width: 0;
    }

    .state-template_image-modal-stage {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .state-template-modal-nav {
        position: static;
        transform: none;
    }
    /* State Template */
}
/* Tablets */

/* Other sizes */
@media (min-width: 1300px) {
    #state-template-main {
        width: 1300px;
    }
}

@media (max-width: 1399px) {
    #navigation {
        margin: 0;
    }

    .continent-nav-inner {
        align-items: stretch;
    }

    .continent-nav-headline {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        width: 100%;
        justify-content: normal !important;
        gap: 0.75rem;
    }

    .continent-nav-brand {
        min-width: 0;
        max-width: 100%;
        width: auto;
    }

    .continent-nav-brand-title,
    .continent-nav-brand-author {
        white-space: normal;
    }

    .continent-nav-headline-actions {
        margin-left: 0;
        position: static;
        transform: none;
        width: auto;
        justify-content: flex-end !important;
    }

    #map-legend-mobile-external .continent-nav-legend-toggle {
        min-width: auto;
        width: auto;
        justify-content: center;
    }

    #navigation .navbar-collapse {
        margin-top: 0.25rem;
        padding-top: 0.95rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        overflow: auto;
        max-height: min(72vh, 34rem);
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    #navigation_about-project,
    #navigation_states-dropdown-menu-box {
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        border: none !important;
    }

    .continent-nav-link,
    .continent-nav-control {
        width: 100%;
        justify-content: space-between;
        white-space: normal !important;
    }

    .continent-nav-list-main,
    .continent-nav-list-actions {
        width: 100%;
    }

    #map-legend,
    #navigation_states-dropdown-menu-box {
        margin-left: 0 !important;
    }

    #navigation_states-dropdown-menu {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        max-height: min(58vh, 20rem);
        position: static !important;
        inset: auto !important;
        transform: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.06);
        padding: 0.35rem;
        margin-top: 0.5rem !important;
        border-radius: 0.25rem;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0.85rem 1.75rem rgba(0, 0, 0, 0.22);
    }

    .continent-nav-legend-toggle {
        min-width: auto;
    }

    #navigation_states-dropdown-menu:not(.show) {
        display: none;
    }

    #navigation_states-dropdown-menu-box {
        width: 100%;
    }

    #navigation_states-dropdown-menu-box .dropdown-toggle {
        width: 100%;
    }
}

@media (max-width: 575px) {
    #navigation .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .continent-nav-mobile-legend-wrap {
        left: 0.75rem;
        top: calc(100% + 0.35rem);
    }

    .continent-nav-headline {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 0.6rem;
        row-gap: 0;
    }

    .continent-nav-headline-actions {
        width: auto;
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        gap: 0.5rem;
    }

    .continent-nav-brand {
        max-width: 100%;
    }

    #navigation_main-title {
        font-size: 0.8rem;
        line-height: 1.05;
    }

    .continent-nav-brand-title {
        white-space: nowrap;
        font-size: 0.86rem;
    }

    .continent-nav-brand-author {
        display: block;
        white-space: nowrap;
        font-size: 0.66rem;
        opacity: 0.9;
    }

    #map-legend-mobile-external .dropdown-menu {
        width: min(18rem, calc(100vw - 1.5rem));
        min-width: 0;
        max-width: calc(100vw - 1.5rem);
        inset: auto auto 0 0 !important;
        transform: translateY(100%) !important;
    }

    #map-legend {
        width: auto;
    }

    #map-legend .continent-nav-legend-toggle {
        width: auto;
        justify-content: center;
    }

    #map-legend .dropdown-menu {
        width: min(18rem, calc(100vw - 1.5rem));
        min-width: 0;
        max-width: calc(100vw - 1.5rem);
        inset: auto 0 0 auto !important;
        transform: translateY(100%) !important;
    }

    .continent-nav-legend-menu {
        padding: 0.5rem !important;
    }

    .continent-nav-legend-item {
        grid-template-columns: 2.4rem minmax(0, 1fr);
        align-items: center;
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .continent-nav-legend-item span:last-child {
        overflow-wrap: anywhere;
    }

    #navigation_states-dropdown-menu .dropdown-item {
        min-height: 2.75rem;
        padding: 0.72rem 0.8rem;
        font-size: 0.96rem;
        line-height: 1.25;
        border-radius: 0.25rem;
    }

    #navigation_states-dropdown-menu li + li {
        margin-top: 0.28rem;
    }

    #navigation_states-dropdown-menu::-webkit-scrollbar {
        width: 0.45rem;
    }

    #navigation_states-dropdown-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.06);
        border-radius: 999px;
    }

    #navigation_states-dropdown-menu::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.28);
        border-radius: 999px;
    }

    #navigation_states-dropdown-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.38);
    }
}

@media (max-width: 767px) {
    #navigation_main-title {
        font-size: 0.82rem;
        line-height: 1.05;
    }

    .continent-nav-brand-title {
        white-space: nowrap;
        font-size: 0.88rem;
    }

    .continent-nav-brand-author {
        display: block;
        white-space: nowrap;
        font-size: 0.66rem;
        opacity: 0.9;
    }
}

@media (max-width: 420px) {
    .continent-nav-brand {
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.42rem 0.55rem;
    }

    #navigation_main-title {
        font-size: 0.9rem;
        line-height: 1.08;
    }

    .continent-nav-brand-title,
    .continent-nav-brand-author {
        white-space: normal;
    }

    .continent-nav-mobile-legend-wrap {
        left: 0.65rem;
    }

    .continent-nav-brand-title {
        overflow-wrap: anywhere;
    }

    .continent-nav-logo {
        width: 1.9rem;
        height: 1.9rem;
    }
}

#continents-map,
#europe-map,
#south-america-map,
#north-america-map,
#asia-map,
#oceania-map,
#africa-map {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

#continents-map svg,
#europe-map svg,
#south-america-map svg,
#north-america-map svg,
#asia-map svg,
#oceania-map svg,
#africa-map svg {
    display: block;
    height: auto;
}

@media (max-width: 767px) {
    #continents-map svg {
        min-width: 42rem;
    }

    #europe-map svg,
    #south-america-map svg,
    #north-america-map svg,
    #asia-map svg,
    #oceania-map svg,
    #africa-map svg {
        min-width: 52rem;
    }
}

@media (max-width: 360px) {
    #navigation_main-title {
        font-size: 0.9rem !important;
        white-space: normal;
    }

    .navigation-title-label {
        font-size: 0.62rem;
    }
}

@media (max-width: 850px) {
    .about-project-main_lesson-section_img-group {
        flex-direction: column;
    }
}

@media (max-width: 800px) {
    #about-project-main_lesson-section img {
        width: 100% !important;
    }

    .about-project-main_lesson-section_img-box {
        margin: 0 auto 0 auto !important;
        float: none !important;
        width: 100% !important;
    }

    .about-project-main_lesson-section_img-group {
        flex-direction: column;
    }

    #about-project-main_introduction-section_imgs-box {
        flex-direction: column;
    }

    #about-project-main_introduction-section img {
        float: none !important;
        width: 100% !important;
        display: block;
        margin: 0 auto 1rem auto !important;
    }

    #about-project-main_title-section {
        height: 100vh !important;
        height: 100svh !important;
        min-height: 100vh !important;
        min-height: 100svh !important;
    }
}

/* About project content polish */
.about-project-content-shell {
    padding: 1.5rem 1rem 0;
    display: grid;
    gap: 1.25rem;
}

.about-project-content-shell .about-project-main_section,
#about-project-main_tables-section {
    background: transparent !important;
    margin: 0 !important;
}

.about-project-content-shell > .about-project-main_section > .about-project-main_section-box,
#about-project-main_tables-section > .about-project-main_section-box {
    position: relative;
    overflow: hidden;
    padding: clamp(1rem, 1.45vw, 1.35rem);
    border-radius: 0.3rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 252, 0.96)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(6, 42, 53, 0.08);
    box-shadow: 0 0.9rem 1.8rem rgba(12, 48, 58, 0.08);
}

.about-project-content-shell > .about-project-main_section > .about-project-main_section-box::before,
#about-project-main_tables-section > .about-project-main_section-box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 0.22rem;
    background: linear-gradient(90deg, #0f4b5d, #ea5822);
}

.about-project-content-shell .d-flex.justify-content-center.align-items-center.shadow {
    clear: both;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.4rem;
    margin: 1rem 0 0.85rem !important;
    padding: 0.62rem 0.9rem !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 252, 0.98)),
        linear-gradient(180deg, rgba(6, 42, 53, 0.05), rgba(234, 88, 34, 0.05));
    border: 1px solid rgba(6, 42, 53, 0.12);
    border-left: 0.22rem solid rgba(234, 88, 34, 0.72);
    border-radius: 0.25rem;
    box-shadow: 0 0.45rem 1rem rgba(12, 48, 58, 0.07) !important;
}

.about-project-content-shell .about-project-main_section-box > .d-flex.justify-content-center.align-items-center.shadow:first-child {
    margin-top: 0 !important;
}

.about-project-content-shell section {
    display: flow-root;
}

.about-project-content-shell section + section {
    margin-top: 0;
}

.about-project-content-shell img + .d-flex.justify-content-center.align-items-center.shadow,
.about-project-content-shell .about-project-main_lesson-section_img-box + .d-flex.justify-content-center.align-items-center.shadow,
.about-project-content-shell .about-project-main_lesson-section_img-group + .d-flex.justify-content-center.align-items-center.shadow,
.about-project-content-shell #about-project-main_introduction-section_imgs-box + .about-project-main_section .d-flex.justify-content-center.align-items-center.shadow:first-child {
    margin-top: 2rem !important;
}

.about-project-content-shell .d-flex.justify-content-center.align-items-center.shadow .fas.fa-square {
    display: none;
}

.about-project-content-shell :is(h2, h3, h4) {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Montserrat', sans-serif;
    color: #062a35;
    font-weight: 700 !important;
    line-height: 1.12;
    text-align: center !important;
    text-wrap: balance;
}

.about-project-content-shell h2 {
    font-size: clamp(1.72rem, 2.45vw, 2.45rem);
    letter-spacing: -0.01em;
}

.about-project-content-shell h3 {
    font-size: clamp(1.28rem, 1.75vw, 1.76rem);
    letter-spacing: 0;
}

.about-project-content-shell h4 {
    font-size: clamp(1.08rem, 1.25vw, 1.3rem);
    color: #0f4b5d;
}

.about-project-content-shell :is(h2, h3, h4)::after {
    content: "";
    display: block;
    width: 3rem;
    height: 0.18rem;
    margin: 0.48rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #ea5822, rgba(234, 88, 34, 0.28));
}

.about-project-content-shell p,
.about-project-content-shell li,
.about-project-content-shell td,
.about-project-content-shell th {
    color: #21323a;
    line-height: 1.75;
}

.about-project-content-shell p {
    margin-bottom: 1rem;
    font-size: clamp(0.98rem, 0.35vw + 0.9rem, 1.08rem);
}

.about-project-content-shell a:not(.btn):not(.dropdown-item):not(.about-project-nav-link) {
    color: #0f4b5d;
    font-weight: 700;
    text-decoration-color: rgba(234, 88, 34, 0.7);
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.18em;
    transition: color 0.18s ease, text-decoration-color 0.18s ease, background-color 0.18s ease;
}

.about-project-content-shell a:not(.btn):not(.dropdown-item):not(.about-project-nav-link):hover,
.about-project-content-shell a:not(.btn):not(.dropdown-item):not(.about-project-nav-link):focus {
    color: #ea5822;
    text-decoration-color: currentColor;
    background: rgba(234, 88, 34, 0.08);
}

.about-project-content-shell :is(ol, ul) {
    border-color: rgba(6, 42, 53, 0.12) !important;
    border-radius: 0.25rem !important;
}

.about-project-content-shell ol.border {
    padding: clamp(1rem, 1.6vw, 1.5rem) clamp(1.2rem, 2vw, 2rem) clamp(1rem, 1.6vw, 1.5rem) clamp(2.4rem, 3.2vw, 3.2rem) !important;
    background:
        linear-gradient(135deg, rgba(6, 42, 53, 0.035), rgba(234, 88, 34, 0.035)),
        rgba(255, 255, 255, 0.84);
    border-color: rgba(6, 42, 53, 0.14) !important;
    box-shadow: inset 0.16rem 0 0 rgba(234, 88, 34, 0.38), 0 0.75rem 1.4rem rgba(12, 48, 58, 0.06);
}

.about-project-content-shell ol.border > li {
    padding: 0.65rem 0.75rem !important;
    border-radius: 0.25rem;
}

.about-project-content-shell li::marker {
    color: #ea5822;
    font-weight: 800;
}

.about-project-content-shell img {
    max-width: 100%;
    height: auto;
    border-radius: 0.3rem !important;
    box-shadow: 0 0.85rem 1.75rem rgba(12, 48, 58, 0.12);
}

.about-project-content-shell small {
    color: #5f727b;
    line-height: 1.4;
}

.about-project-main_lesson-section_img-box {
    box-sizing: border-box;
    max-width: min(100%, 38rem);
    padding: 0.75rem;
    border-radius: 0.3rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(6, 42, 53, 0.08);
    box-shadow: 0 0.85rem 1.75rem rgba(12, 48, 58, 0.08);
}

.about-project-main_lesson-section_img-box img {
    width: 100% !important;
    box-shadow: none;
}

.about-project-main_lesson-section_img-box::after,
#about-project-main_introduction-section_imgs-box::after {
    content: "";
    display: table;
    clear: both;
}

#about-project-main_introduction-section_imgs-box {
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

#about-project-main_introduction-section_imgs-box img {
    width: calc(50% - 0.5rem) !important;
    margin: 0 !important;
}

#about-project-main_rules-section {
    margin-top: 2.25rem;
    padding-top: 0.25rem;
}

.peak-table-options {
    gap: 0.75rem;
    padding: 0.85rem !important;
    border-radius: 0.25rem !important;
    background: linear-gradient(135deg, rgba(6, 42, 53, 0.05), rgba(234, 88, 34, 0.06)) !important;
    border-color: rgba(6, 42, 53, 0.12) !important;
}

.peak-table-options .form-select,
.show-legend-btn {
    border-radius: 0.25rem !important;
}

.show-legend-btn {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(6, 42, 53, 0.16) !important;
    color: #062a35 !important;
    font-weight: 700;
}

.peak-tables-box .table-responsive {
    border-color: rgba(6, 42, 53, 0.12) !important;
    border-radius: 0.25rem !important;
    box-shadow: 0 0.75rem 1.5rem rgba(12, 48, 58, 0.08);
}

.peak-tables-box table {
    margin-bottom: 0 !important;
}

.peak-tables-box table th {
    background: linear-gradient(135deg, #062a35, #0f4b5d) !important;
    color: #ffffff !important;
    font-weight: 700;
}

#about-project-main_tables-section > .about-project-main_section-box {
    display: grid;
    gap: 1.5rem;
}

#about-project-main_tables-section .peak-tables-box {
    display: grid;
    gap: 0.75rem;
}

#about-project-main_tables-section .peak-table-options {
    position: relative;
    z-index: 3;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.25rem;
    padding: 0.9rem !important;
    border: 1px solid rgba(6, 42, 53, 0.1) !important;
    border-radius: 0.3rem !important;
    background:
        linear-gradient(135deg, rgba(6, 42, 53, 0.055), rgba(234, 88, 34, 0.055)),
        rgba(255, 255, 255, 0.86) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

#about-project-main_tables-section .select-order-box {
    min-width: 0;
}

#about-project-main_tables-section .select-order-box > .fw-bold {
    color: #062a35 !important;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#about-project-main_tables-section .select-order {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#about-project-main_tables-section .peak-sort-dropdown {
    width: min(18rem, 100%);
}

#about-project-main_tables-section .peak-sort-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 18rem;
    min-height: 2.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.25rem !important;
    border: 1px solid rgba(6, 42, 53, 0.16);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 252, 0.92)),
        linear-gradient(135deg, rgba(6, 42, 53, 0.08), rgba(234, 88, 34, 0.08));
    color: #062a35;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

#about-project-main_tables-section .peak-sort-toggle:focus {
    border-color: rgba(234, 88, 34, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(234, 88, 34, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

#about-project-main_tables-section .peak-sort-toggle:hover {
    border-color: rgba(15, 75, 93, 0.34);
    background-color: #ffffff;
}

#about-project-main_tables-section .peak-sort-menu {
    width: 100%;
    min-width: 100%;
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.25rem;
    background: linear-gradient(180deg, rgba(9, 31, 39, 0.98), rgba(6, 22, 29, 0.99));
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.26);
}

#about-project-main_tables-section .peak-sort-menu .dropdown-item {
    min-height: 2.35rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 650;
    white-space: normal;
}

#about-project-main_tables-section .peak-sort-menu .dropdown-item:hover,
#about-project-main_tables-section .peak-sort-menu .dropdown-item:focus,
#about-project-main_tables-section .peak-sort-menu .dropdown-item.active {
    background: rgba(234, 88, 34, 0.18);
    color: #ffffff;
}

#about-project-main_tables-section .legend-box {
    position: relative;
    z-index: 4;
}

#about-project-main_tables-section .show-legend-btn {
    min-height: 2.35rem;
    padding: 0.55rem 0.9rem !important;
    border-radius: 0.25rem !important;
    background: linear-gradient(135deg, rgba(6, 42, 53, 0.96), rgba(12, 58, 73, 0.94)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 0.65rem 1.2rem rgba(12, 48, 58, 0.12);
}

#about-project-main_tables-section .show-legend-btn:hover,
#about-project-main_tables-section .show-legend-btn:focus {
    background: linear-gradient(135deg, rgba(10, 52, 65, 0.98), rgba(18, 72, 88, 0.96)) !important;
    border-color: rgba(255, 214, 196, 0.24) !important;
}

#about-project-main_tables-section .legend {
    right: 0;
    z-index: 5;
    min-width: min(20rem, calc(100vw - 2rem));
    margin-top: 0.45rem;
    padding: 0.8rem !important;
    border-radius: 0.25rem !important;
    background: linear-gradient(180deg, rgba(9, 31, 39, 0.98), rgba(6, 22, 29, 0.99)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.26);
}

#about-project-main_tables-section .legend small {
    color: rgba(255, 255, 255, 0.9);
}

#about-project-main_tables-section .peak-tables-box .table-responsive {
    margin-top: 0 !important;
    overflow: auto;
    border: 1px solid rgba(6, 42, 53, 0.1) !important;
    border-radius: 0.3rem !important;
    background: #ffffff;
    box-shadow: 0 0.85rem 1.75rem rgba(12, 48, 58, 0.08);
}

#about-project-main_tables-section .peak-tables-box table {
    margin: 0 !important;
    color: #21323a;
    border-color: rgba(6, 42, 53, 0.08) !important;
}

#about-project-main_tables-section .peak-tables-box table > :not(caption) > * > * {
    padding: 0.78rem 0.9rem;
    border-color: rgba(6, 42, 53, 0.08) !important;
    vertical-align: middle;
    box-shadow: none;
}

#about-project-main_tables-section .peak-tables-box table th {
    background: linear-gradient(135deg, #062a35, #0f4b5d) !important;
    color: #ffffff !important;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

#about-project-main_tables-section .peak-tables-box table tbody tr:nth-child(odd) > * {
    background: rgba(6, 42, 53, 0.024);
}

#about-project-main_tables-section .peak-tables-box table tbody tr:hover > * {
    background: rgba(234, 88, 34, 0.07);
}

#about-project-main_tables-section > .about-project-main_section-box > img,
#about-project-main_tables-section > .about-project-main_section-box > .d-flex.justify-content-between {
    margin-top: 1rem !important;
}

#about-project-main_tables-section > .about-project-main_section-box > img,
#about-project-main_tables-section > .about-project-main_section-box > .d-flex.justify-content-between img {
    border-radius: 0.3rem !important;
    border: 1px solid rgba(6, 42, 53, 0.08);
    box-shadow: 0 0.85rem 1.75rem rgba(12, 48, 58, 0.1);
}

.about-project-altitude-table-shell {
    margin: 1.1rem 0 1rem;
    border: 1px solid rgba(6, 42, 53, 0.1);
    border-radius: 0.3rem;
    background: #ffffff;
    box-shadow: 0 0.85rem 1.75rem rgba(12, 48, 58, 0.09);
}

.about-project-altitude-table {
    margin: 0 !important;
    color: #21323a;
    border-color: rgba(6, 42, 53, 0.08) !important;
}

.about-project-altitude-table > :not(caption) > * > * {
    padding: 0.85rem 1rem;
    border-color: rgba(6, 42, 53, 0.08) !important;
    vertical-align: middle;
    box-shadow: none;
}

.about-project-altitude-table thead th {
    background: linear-gradient(135deg, #062a35, #0f4b5d) !important;
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.about-project-altitude-table tbody tr:nth-child(odd) > * {
    background: rgba(6, 42, 53, 0.025);
}

.about-project-altitude-table tbody tr:hover > * {
    background: rgba(234, 88, 34, 0.075);
}

.about-project-altitude-table td:first-child {
    width: 58%;
    color: #0f3d4b;
    font-weight: 700;
}

.about-project-altitude-table td:not(:first-child),
.about-project-altitude-table th:not(:first-child) {
    text-align: center;
}

.about-project-altitude-table td.fw-bold {
    color: #0f4b5d;
    font-weight: 800 !important;
}

@media (max-width: 575px) {
    .about-project-altitude-table-shell {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .about-project-altitude-table {
        min-width: 28rem;
        font-size: 0.82rem;
    }

    .about-project-altitude-table > :not(caption) > * > * {
        padding: 0.65rem 0.7rem;
    }

    .about-project-altitude-table thead th {
        font-size: 0.68rem;
        letter-spacing: 0.04em;
    }
}

@media (max-width: 767px) {
    #about-project-main_tables-section > .about-project-main_section-box {
        gap: 1rem;
    }

    #about-project-main_tables-section .peak-table-options {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    #about-project-main_tables-section .select-order-box {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    #about-project-main_tables-section .peak-sort-dropdown,
    #about-project-main_tables-section .peak-sort-toggle {
        max-width: none;
        width: 100%;
    }

    #about-project-main_tables-section .legend-box,
    #about-project-main_tables-section .show-legend-btn {
        width: 100%;
    }

    #about-project-main_tables-section .legend {
        left: 0;
        right: auto;
        width: min(100%, calc(100vw - 2.5rem));
        min-width: 0;
    }

    #about-project-main_tables-section .peak-tables-box table {
        min-width: 36rem;
        font-size: 0.74rem;
    }

    #about-project-main_tables-section .peak-tables-box table > :not(caption) > * > * {
        padding: 0.45rem 0.52rem;
        line-height: 1.28;
    }

    #about-project-main_tables-section .peak-tables-box table th {
        font-size: 0.64rem;
        letter-spacing: 0.02em;
    }

    #about-project-main_tables-section .peak-tables-box table td {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    #about-project-main_tables-section > .about-project-main_section-box > .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.75rem;
    }

    #about-project-main_tables-section > .about-project-main_section-box > .d-flex.justify-content-between img {
        width: 100% !important;
        margin: 0 !important;
    }
}

@media (max-width: 575px) {
    #about-project-main_tables-section .peak-tables-box table {
        min-width: 32rem;
        font-size: 0.7rem;
    }

    #about-project-main_tables-section .peak-tables-box table > :not(caption) > * > * {
        padding: 0.38rem 0.42rem;
    }

    #about-project-main_tables-section .peak-tables-box table th {
        font-size: 0.6rem;
    }
}

@media (max-width: 800px) {
    .about-project-content-shell {
        padding: 1rem 0.85rem 0;
        gap: 1rem;
    }

    .about-project-content-shell > .about-project-main_section > .about-project-main_section-box,
    #about-project-main_tables-section > .about-project-main_section-box {
        padding: 1rem;
    }

    .about-project-content-shell p {
        font-size: 0.96rem;
        line-height: 1.65;
    }

    .about-project-content-shell,
    .about-project-content-shell section,
    .about-project-content-shell .about-project-main_section-box {
        max-width: 100%;
        overflow-x: hidden;
    }

    .about-project-content-shell :is(p, li, h2, h3, h4, small, td, th, a) {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    #about-project-main :is(p, li, h1, h2, h3, h4, small, a, span, td, th) {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    #about-project-main_title-section-box {
        padding-bottom: 3rem;
    }

    #about-project-main_introduction-section > .about-project-main_section-box > div > img,
    #about-project-main_lesson-section .about-project-main_lesson-section_img-box {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none !important;
        box-sizing: border-box;
    }

    #about-project-main_lesson-section .about-project-main_lesson-section_img-box {
        margin: 0 auto 1rem auto !important;
        padding: 0.45rem;
    }

    #about-project-main_lesson-section .about-project-main_lesson-section_img-box img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    #about-project-main_introduction-section img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
    }

    #about-project-main_introduction-section_imgs-box img {
        width: 100% !important;
    }
}

@media (max-width: 575px) {
    #about-project-main_introduction-section > .about-project-main_section-box > div > img,
    #about-project-main_lesson-section .about-project-main_lesson-section_img-box,
    #about-project-main_introduction-section img {
        width: 100% !important;
    }

    #about-project-main_introduction-section_imgs-box img {
        width: 100% !important;
    }
}
/* Other sizes */
