/* ========================================
   HYDROGEN CITY GLOBE
   ======================================== */

.hcg {
    --hcg-ink: #173e31;
    --hcg-green: #277c59;
    --hcg-mint: #b6edce;
    --hcg-line: #d8e3d8;
}

.hcg,
.hcg *,
.hcg *::before,
.hcg *::after {
    box-sizing: border-box;
}

.hcg .hcg__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
    gap: 24px;
    margin-top: 28px;
    align-items: start;
}

/* Globe frame */

.hcg .hcg__map {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #31564c;
    border-radius: 24px;
    background: #101f27;
    box-shadow: 0 20px 50px rgb(23 62 49 / 12%);
}

.hcg .hcg__canvas {
    width: 100%;
    height: 560px;
}

.hcg .hcg__canvas .cesium-viewer,
.hcg .hcg__canvas .cesium-viewer-cesiumWidgetContainer,
.hcg .hcg__canvas .cesium-widget,
.hcg .hcg__canvas canvas {
    width: 100%;
    height: 100%;
}

/* Do not hide Cesium or imagery credits. */

.hcg .hcg__toolbar {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    pointer-events: none;
}

.hcg .hcg__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgb(182 237 206 / 20%);
    border-radius: 999px;
    background: rgb(15 36 33 / 88%);
    color: #dff5e9;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.hcg .hcg__badge > span {
    color: #a5e9bf;
}

.hcg .hcg__overview {
    appearance: none;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 999px;
    background: #f4f8ed;
    color: var(--hcg-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    pointer-events: auto;
}

.hcg .hcg__overview:disabled {
    opacity: 0.5;
    cursor: wait;
}

.hcg .hcg__instructions {
    margin: 0;
    padding: 12px 18px;
    border-top: 1px solid rgb(255 255 255 / 10%);
    background: #142c29;
    color: #c3d9cc;
    font-size: 11px;
    line-height: 1.7;
}

.hcg .hcg__status {
    position: absolute;
    top: 45%;
    left: 50%;
    z-index: 3;
    width: min(85%, 320px);
    margin: 0;
    padding: 15px 18px;
    border: 1px solid #567668;
    border-radius: 14px;
    background: #17382e;
    color: white;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    transform: translate(-50%, -50%);
}

/* Sidebar */

.hcg .hcg__sidebar {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.hcg .hcg__cities {
    display: grid;
    gap: 9px;
}

.hcg .hcg__city {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    min-height: 76px;
    margin: 0;
    padding: 15px 18px;
    border: 1px solid var(--hcg-line);
    border-radius: 15px;
    background: #f8faf4;
    color: var(--hcg-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        background 160ms ease,
        border-color 160ms ease;
}

.hcg .hcg__city:hover {
    background: #eaf4e9;
    border-color: #8ab69a;
}

.hcg .hcg__city[aria-pressed="true"] {
    border-color: var(--hcg-green);
    background: #e0f0e4;
    box-shadow: inset 4px 0 0 var(--hcg-green);
}

.hcg .hcg__number {
    color: #708875;
    font-size: 12px;
    font-weight: 700;
}

.hcg .hcg__city strong,
.hcg .hcg__city small {
    display: block;
}

.hcg .hcg__city strong {
    font-size: 17px;
}

.hcg .hcg__city small {
    margin-top: 4px;
    color: #66806b;
    font-size: 11px;
}

.hcg .hcg__arrow {
    margin-left: auto;
    color: var(--hcg-green);
    font-size: 21px;
}

/* Selected city */

.hcg .hcg__detail {
    padding: 23px;
    border: 1px solid var(--hcg-line);
    border-radius: 18px;
    background: #eef4e9;
}

.hcg .hcg__eyebrow {
    margin: 0 0 12px;
    color: var(--hcg-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.hcg .hcg__detail h3 {
    margin: 0;
    color: var(--hcg-ink);
    font-size: 27px;
}

.hcg .hcg__country {
    margin: 5px 0 15px;
    color: #66806b;
    font-size: 12px;
}

.hcg .hcg__description {
    margin: 0;
    color: #405d49;
    font-size: 14px;
    line-height: 1.7;
}

.hcg .hcg__link {
    display: inline-block;
    margin-top: 20px;
    padding: 11px 16px;
    border-radius: 999px;
    background: var(--hcg-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.hcg .hcg__link:hover {
    background: var(--hcg-green);
}

.hcg .hcg__direct {
    color: #526d58;
    font-size: 12px;
    line-height: 1.8;
}

.hcg .hcg__direct summary {
    cursor: pointer;
}

.hcg .hcg__direct a {
    color: var(--hcg-green);
}

.hcg .hcg__note {
    margin: 16px 0 0;
    color: #708275;
    font-size: 11px;
    line-height: 1.6;
}

.hcg button:focus-visible,
.hcg a:focus-visible,
.hcg summary:focus-visible {
    outline: 3px solid #c99b43;
    outline-offset: 4px;
}

.hcg [hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .hcg .hcg__layout {
        grid-template-columns: 1fr;
    }

    .hcg .hcg__canvas {
        height: 460px;
    }

    .hcg .hcg__cities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .hcg .hcg__canvas {
        height: 390px;
    }

    .hcg .hcg__toolbar {
        top: 12px;
        left: 12px;
        right: 12px;
    }

    .hcg .hcg__badge {
        font-size: 8px;
    }

    .hcg .hcg__city {
        gap: 9px;
        padding: 12px;
    }

    .hcg .hcg__city strong {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hcg .hcg__city {
        transition: none;
    }
}