.home-earth {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    min-height: 440px;
    margin: 4.5rem 0;
    overflow: hidden;
    color: #f4f5f7;
    background:
        radial-gradient(circle at 85% 20%, rgba(226, 109, 70, .15), transparent 34%),
        linear-gradient(125deg, #111a2b 0%, #1d2d4a 52%, #0d1422 100%);
    border: 1px solid rgba(107, 143, 196, .22);
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(5, 28, 41, .2);
}

.home-earth::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(236, 229, 220, .44) 0 1px, transparent 1.5px);
    background-size: 62px 62px;
    opacity: .12;
}

.home-earth__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.25rem, 5vw, 4.6rem);
}

.home-earth__kicker,
.earth-page__kicker,
.earth-panel__eyebrow,
.earth-panel__initial > span {
    color: #e26d46;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.home-earth h2 {
    max-width: 600px;
    margin: .75rem 0 1rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.45rem);
    font-weight: 600;
    line-height: 1.04;
}

.home-earth__content > p {
    max-width: 620px;
    margin: 0;
    color: rgba(228, 232, 240, .76);
    font-size: 1rem;
    line-height: 1.75;
}

.home-earth__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 1.7rem 0 1.8rem;
}

.home-earth__meta span {
    padding: .42rem .75rem;
    color: #e2e6ed;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}

.home-earth__action,
.earth-panel__all {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: .7rem;
    padding: .82rem 1.1rem;
    color: #132033;
    background: #e26d46;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}

.home-earth__action:hover,
.earth-panel__all:hover {
    color: #132033;
    background: #eb7f5c;
    transform: translateY(-2px);
}

.home-earth__action svg,
.earth-panel__all svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.home-earth__visual {
    position: relative;
    z-index: 1;
    display: block;
    min-height: 440px;
    overflow: hidden;
}

.home-earth__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #111a2b 0%, transparent 35%), linear-gradient(0deg, rgba(9, 14, 25, .5), transparent 48%);
}

.home-earth__visual img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
    transition: transform .7s ease;
}

.home-earth__visual:hover img { transform: scale(1.035); }
[data-earth-day-night][aria-pressed="true"]{background:#e26d46!important;color:#fff!important}

.earth-choice {
    backdrop-filter: blur(8px);
}

.earth-choice__popup {
    width: min(430px, calc(100vw - 2rem));
    padding: 1.9rem 1.65rem 1.45rem;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(16, 28, 44, .99), rgba(10, 18, 30, .99));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(2, 8, 18, .52);
}

.earth-choice__popup::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(ellipse at 50% 0%, rgba(91, 152, 194, .14), transparent 46%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.earth-choice__title {
    padding: 0;
    color: #fff;
    font-family: var(--public-font-family);
    font-size: 1.28rem;
    line-height: 1.35;
}

.earth-choice__text {
    margin: .65rem 0 .9rem;
    padding: 0;
    color: rgba(247, 251, 255, .72);
    font-family: var(--public-font-family);
    font-size: .9rem;
    line-height: 1.6;
}

.earth-choice__popup .swal2-checkbox {
    order: 6;
    justify-content: center;
    margin: .95rem 0 0;
    color: rgba(255, 255, 255, .78);
    background: transparent;
    font-family: var(--public-font-family);
    font-size: .78rem;
}

.earth-choice__popup .swal2-checkbox input {
    accent-color: #e26d46;
}

.earth-choice__actions {
    order: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    width: 100%;
    margin: 0;
}

.earth-choice__button {
    min-height: 44px;
    padding: .7rem .85rem;
    border-radius: 12px;
    font-family: var(--public-font-family);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.earth-choice__button:hover {
    transform: translateY(-1px);
}

.earth-choice__button--primary {
    color: #fff;
    background: #22344d;
    border: 1px solid rgba(255, 255, 255, .12);
}

.earth-choice__button--secondary {
    color: #fff;
    background: #22344d;
    border: 1px solid rgba(255, 255, 255, .12);
}

.earth-choice__button--primary:hover,
.earth-choice__button--secondary:hover {
    background: #2b4565;
    border-color: rgba(255, 255, 255, .2);
}

@media (max-width: 520px) {
    .earth-choice__actions {
        grid-template-columns: 1fr;
    }
}

.home-earth__orbit {
    position: absolute;
    inset: 18% -22% 13% 8%;
    z-index: 2;
    pointer-events: none;
    border: 1px solid rgba(226, 109, 70, .3);
    border-radius: 50%;
    transform: rotate(-10deg);
}

.home-earth__orbit::after {
    content: "";
    position: absolute;
    top: 12%;
    left: 14%;
    width: 7px;
    height: 7px;
    background: #e26d46;
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(226, 109, 70, .75);
}

.home-earth__visual-label {
    position: absolute;
    right: 1.5rem;
    bottom: 1.3rem;
    z-index: 2;
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.earth-page {
    --earth-ink: #e8eaed;
    --earth-muted: #9ca3af;
    --earth-accent: #e26d46;
    --earth-secondary: #22344d;
    margin: 1.2rem 0 4rem;
    color: var(--earth-ink);
}

.earth-page__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: end;
    margin-bottom: 1.3rem;
    padding: clamp(1.2rem, 3vw, 2rem) .25rem 0;
}

.earth-page__header h1 {
    max-width: 720px;
    margin: .55rem 0 .7rem;
    color: #18243a;
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: .98;
}

.earth-page__header p {
    max-width: 760px;
    margin: 0;
    color: #607b84;
    line-height: 1.7;
}

.earth-page__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(116px, 1fr));
    gap: .65rem;
    margin: 0;
}

.earth-page__stats div {
    min-width: 120px;
    padding: .75rem .9rem;
    background: #f3f8f8;
    border: 1px solid #e0ebed;
    border-radius: 14px;
}

.earth-page__stats dt {
    color: #718a92;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.earth-page__stats dd {
    margin: .15rem 0 0;
    color: #1b2942;
    font-size: 1.25rem;
    font-weight: 800;
}

.earth-explorer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    min-height: min(720px, 76vh);
    overflow: hidden;
    background: #101827;
    border: 1px solid rgba(107, 143, 196, .24);
    border-radius: 26px;
    box-shadow: 0 35px 90px rgba(6, 34, 49, .2);
}

.earth-stage {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background:
        radial-gradient(circle at 48% 46%, rgba(50, 68, 108, .28), transparent 36%),
        linear-gradient(145deg, #11192a, #03050a);
}

.earth-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 35%, rgba(0, 8, 14, .56) 100%);
}

.earth-stage__canvas {
    position: absolute;
    inset: 0;
}

.earth-stage__globe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.earth-stage__canvas canvas {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.earth-stage__canvas canvas:active { cursor: grabbing; }

.earth-stage__sun {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 18px;
    height: 18px;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 18%, #d9efff 34%, rgba(115, 188, 236, .78) 50%, transparent 72%);
    box-shadow: 0 0 12px rgba(207, 238, 255, .92), 0 0 32px rgba(91, 152, 194, .55), 0 0 78px rgba(91, 152, 194, .26);
    mix-blend-mode: screen;
    will-change: transform, opacity;
    transition: opacity .3s ease;
}

.earth-stage__sun[hidden] { display: none; }

.earth-stage__sun::before {
    content: "";
    position: absolute;
    inset: -52px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(170, 220, 250, .2), rgba(91, 152, 194, .08) 34%, transparent 69%);
}

.earth-stage__sun::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 88px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(188, 225, 248, .22), #fff, rgba(188, 225, 248, .22), transparent);
    transform: translate(-50%, -50%);
}

.earth-stage__sun i {
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px #fff;
}

.earth-stage__loading {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-content: center;
    gap: .8rem;
    justify-items: center;
    color: #a6c8ce;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.earth-stage__loading[hidden] { display: none; }
.earth-stage__loading span {
    width: 38px;
    height: 38px;
    border: 2px solid rgba(226, 109, 70, .24);
    border-top-color: var(--earth-accent);
    border-radius: 50%;
    animation: earth-spin .8s linear infinite;
}

@keyframes earth-spin { to { transform: rotate(360deg); } }

.earth-stage__level {
    position: absolute;
    left: 1.25rem;
    bottom: 1.2rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .2rem;
    padding: .25rem;
    background: rgba(14, 20, 32, .72);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}
.earth-stage__level button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: .46rem .72rem;
    background: transparent;
    color: #aeb8c8;
    font: inherit;
    font-size: .8rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.earth-stage__level button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}
.earth-stage__level button[aria-pressed="true"] {
    color: #17120f;
    color: #fff;
    background: #e26d46;
    box-shadow: 0 4px 16px rgba(226, 109, 70, .22);
}
.earth-stage__level button:active { transform: scale(.97); }
.earth-stage__level button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.earth-stage__zoom {
    position: absolute;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 3;
    display: flex;
    gap: .4rem;
}
.earth-stage__zoom button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #e7eaf0;
    background: rgba(15, 22, 36, .82);
    border: 1px solid rgba(107, 143, 196, .32);
    border-radius: 11px;
    font-size: 1.25rem;
    line-height: 1;
    backdrop-filter: blur(12px);
}
.earth-stage__zoom button:hover { background: rgba(226, 109, 70, .82); }
.earth-stage__zoom button svg {
    width: 22px;
    height: 22px;
    fill: rgba(255, 255, 255, .16);
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.earth-tooltip {
    position: absolute;
    z-index: 7;
    display: grid;
    width: max-content;
    min-width: 220px;
    max-width: min(290px, calc(100vw - 1rem));
    gap: .72rem;
    padding: .85rem .9rem .75rem;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(16, 28, 44, .98), rgba(10, 18, 30, .98));
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 15px;
    box-shadow: 0 18px 44px rgba(2, 8, 18, .46);
    font-family: var(--public-font-family);
    pointer-events: none;
    backdrop-filter: blur(16px);
    transform: translate(12px, calc(-100% - 12px));
}

.earth-tooltip::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(ellipse at 50% 0%, rgba(91, 152, 194, .14), transparent 46%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.earth-tooltip.is-below { transform: translate(12px, 12px); }

.earth-tooltip__identity {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: .72rem;
    align-items: center;
}

.earth-tooltip__visual {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    color: #e26d46;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(2, 8, 18, .28);
}

.earth-tooltip__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.earth-tooltip__copy {
    display: grid;
    min-width: 0;
    gap: .18rem;
}

.earth-tooltip__copy small {
    color: #e26d46;
    font-size: .61rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.earth-tooltip__copy strong {
    overflow: hidden;
    color: #fff;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.earth-tooltip__count {
    padding-top: .62rem;
    color: rgba(247, 251, 255, .7);
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .7rem;
    font-weight: 600;
}

.earth-panel {
    position: relative;
    z-index: 2;
    overflow: auto;
    background: linear-gradient(180deg, #162238 0%, #101827 100%);
    border-left: 1px solid rgba(107, 143, 196, .2);
}

.earth-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    display: none;
    background: rgba(16, 24, 39, .74);
    backdrop-filter: blur(4px);
}
.earth-panel.is-loading::after { display: block; }
.earth-panel__initial,
.earth-panel__content { position: relative; padding: 2rem 1.45rem; }
.earth-panel__initial h2,
.earth-panel__content h2 {
    margin: .42rem 0 .45rem;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 550;
    letter-spacing: -.035em;
    line-height: 1.08;
}
.earth-panel__initial p,
.earth-panel__count,
.earth-panel__empty { color: #a7adba; font-size: .86rem; line-height: 1.65; }
.earth-panel__steps { display: grid; gap: .65rem; margin-top: 2rem; }
.earth-panel__steps span {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #dfe3eb;
    font-size: .82rem;
    font-weight: 700;
}
.earth-panel__steps strong {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #132033;
    background: var(--earth-accent);
    border-radius: 50%;
    font-size: .7rem;
}
.earth-panel__heading {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: .9rem;
    align-items: start;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.earth-panel__location-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #e26d46;
    background: rgba(226, 109, 70, .1);
    border: 1px solid rgba(226, 109, 70, .22);
    border-radius: 16px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 12px 30px rgba(0, 0, 0, .2);
}
.earth-panel__location-icon svg {
    width: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}
.earth-panel__heading .earth-panel__count { margin: 0; }
.earth-panel__fairs { display: grid; gap: .72rem; margin: 1.25rem 0 1.45rem; }
.earth-fair {
    display: grid;
    gap: .34rem;
    padding: 1rem 1.05rem;
    color: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 12px 32px rgba(0, 0, 0, .13);
    text-decoration: none;
    transition: border-color .22s ease, background-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.earth-fair:hover {
    color: inherit;
    background: linear-gradient(135deg, rgba(226, 109, 70, .1), rgba(255, 255, 255, .035));
    border-color: rgba(226, 109, 70, .34);
    box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 16px 38px rgba(0, 0, 0, .2);
    transform: translateY(-2px);
}
.earth-fair__date {
    justify-self: start;
    padding: .28rem .48rem;
    color: #f08a67;
    background: rgba(226, 109, 70, .1);
    border: 1px solid rgba(226, 109, 70, .15);
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.earth-fair strong { color: #f7f8fa; font-size: .88rem; font-weight: 650; line-height: 1.42; }
.earth-fair small { overflow: hidden; color: #9ca5b4; font-size: .71rem; text-overflow: ellipsis; white-space: nowrap; }
.earth-panel__all {
    justify-content: space-between;
    width: 100%;
    margin-top: .4rem;
    padding: .82rem 1rem;
    font-size: .76rem;
    box-shadow: 0 14px 34px rgba(8, 16, 28, .24);
}

.earth-panel__preferences {
    margin: 0 1.8rem 1.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.earth-panel__preferences[hidden] { display: none; }

.earth-panel__preferences button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .72rem .9rem;
    color: rgba(222, 229, 239, .72);
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 13px;
    font-size: .72rem;
    font-weight: 700;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.earth-panel__preferences button[hidden] { display: none; }

.earth-panel__preferences button:hover {
    color: #f08a67;
    background: rgba(226, 109, 70, .07);
    border-color: rgba(226, 109, 70, .24);
}

.earth-panel__preferences svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.earth-panel__preferences-status {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .72rem .9rem;
    color: #f08a67;
    background: rgba(226, 109, 70, .07);
    border: 1px solid rgba(226, 109, 70, .18);
    border-radius: 13px;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.earth-panel__preferences-status[hidden] { display: none; }

.earth-fallback { padding: 2rem; color: #173743; background: #f3f8f8; border-radius: 18px; }
.earth-fallback div { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; }
.earth-fallback a { display: flex; justify-content: space-between; padding: .7rem; color: inherit; background: #fff; border-radius: 10px; text-decoration: none; }

@media (max-width: 1100px) {
    .earth-page__header { grid-template-columns: 1fr; }
    .earth-page__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .earth-explorer { grid-template-columns: minmax(0, 1fr) 310px; }
}

@media (max-width: 840px) {
    .home-earth { grid-template-columns: 1fr; }
    .home-earth__visual { min-height: 320px; order: -1; }
    .home-earth__visual img { min-height: 320px; }
    .home-earth__visual::after { background: linear-gradient(0deg, #111a2b 0%, transparent 42%); }
    .earth-page__stats { grid-template-columns: repeat(2, 1fr); }
    .earth-explorer { grid-template-columns: 1fr; }
    .earth-stage { min-height: 560px; }
    .earth-panel { max-height: 520px; border-top: 1px solid rgba(107, 143, 196, .2); border-left: 0; }
}

@media (max-width: 575px) {
    .home-earth { margin: 3rem 0; border-radius: 22px; }
    .home-earth__visual { min-height: 250px; }
    .home-earth__visual img { min-height: 250px; }
    .home-earth__content { padding: 2rem 1.3rem; }
    .home-earth h2 { font-size: 2rem; }
    .earth-page { margin-top: .4rem; }
    .earth-page__header h1 { font-size: 2.45rem; }
    .earth-page__stats div { min-width: 0; padding: .65rem; }
    .earth-page__stats dt { font-size: .58rem; }
    .earth-explorer { margin-inline: -.55rem; border-radius: 19px; }
    .earth-stage { min-height: 500px; }
    .earth-stage__zoom { right: .8rem; bottom: .8rem; }
    .earth-stage__level { left: .8rem; bottom: .8rem; }
    .earth-stage__level button { padding: .42rem .55rem; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .home-earth__visual img,
    .home-earth__action,
    .earth-panel__all,
    .earth-fair { transition: none; }
    .earth-stage__loading span { animation-duration: 1.6s; }
}

/* Full-viewport earth explorer */
.public-page--full,
.public-main--full {
    width: 100%;
    min-width: 0;
}

.earth-page {
    position: relative;
    min-height: max(680px, calc(100svh - 77px));
    margin: 0;
    overflow: hidden;
    background: #030e17;
}

.earth-page__header {
    position: absolute;
    inset: clamp(1.1rem, 3vw, 2.5rem) clamp(1.1rem, 4vw, 4rem) auto;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(280px, 620px) auto;
    align-items: start;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.earth-tooltip[hidden] {
    display: none !important;
}

.earth-page__header h1 {
    margin: .45rem 0 .55rem;
    color: #f4fcfd;
    font-size: clamp(2rem, 4vw, 3.6rem);
    text-shadow: 0 8px 32px rgba(0, 0, 0, .48);
}

.earth-page__header p {
    max-width: 560px;
    color: rgba(218, 240, 243, .72);
    font-size: .92rem;
    line-height: 1.6;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .62);
}

.earth-page__stats {
    grid-template-columns: repeat(2, minmax(108px, 1fr));
    max-width: 310px;
}

.earth-page__stats div {
    min-width: 0;
    padding: .65rem .8rem;
    background: rgba(18, 27, 44, .68);
    border-color: rgba(107, 143, 196, .2);
    backdrop-filter: blur(15px);
}

.earth-page__stats dt { color: #8fadb4; }
.earth-page__stats dd { color: #f2fbfc; }

.earth-explorer {
    position: relative;
    display: block;
    width: 100%;
    height: max(680px, calc(100svh - 77px));
    min-height: 680px;
    overflow: hidden;
    background: #030e17;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.earth-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.earth-stage__panel-trigger {
    position: absolute;
    right: 1.2rem;
    bottom: 4.45rem;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .64rem .8rem;
    color: #eaf9fa;
    background: rgba(15, 22, 36, .82);
    border: 1px solid rgba(107, 143, 196, .3);
    border-radius: 12px;
    font-size: .8rem;
    font-weight: 750;
    backdrop-filter: blur(12px);
    transition: background-color .2s ease, border-color .2s ease;
}

.earth-stage__panel-trigger:hover,
.earth-stage__panel-trigger[aria-expanded="true"] {
    background: rgba(226, 109, 70, .85);
    border-color: rgba(226, 109, 70, .8);
}

.earth-stage__panel-trigger svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.earth-panel-backdrop {
    position: absolute;
    inset: 0;
    z-index: 18;
    background: rgba(0, 4, 10, .54);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(5px);
    transition: opacity .28s ease;
}

.earth-panel {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 20;
    width: min(440px, 94vw);
    max-height: none;
    overflow: auto;
    background:
        linear-gradient(180deg, rgba(20, 32, 50, .99) 0%, rgba(10, 18, 30, .995) 100%);
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .1);
    box-shadow: -30px 0 76px rgba(0, 0, 0, .42), inset 1px 0 rgba(255, 255, 255, .04);
    outline: 0;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .34s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .34s;
}

.earth-page.is-panel-open .earth-panel {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
}

.earth-page.is-panel-open .earth-panel-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.earth-panel__close {
    position: sticky;
    top: 1rem;
    z-index: 3;
    display: grid;
    width: 42px;
    height: 42px;
    margin: 1rem 1rem -3rem auto;
    place-items: center;
    color: #e9f8f9;
    background: rgba(6, 9, 16, .68);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    font-size: 1.45rem;
    line-height: 1;
    box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 12px 28px rgba(0, 0, 0, .24);
    backdrop-filter: blur(14px);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.earth-panel__close:hover {
    color: #fff;
    background: #e26d46;
    border-color: #e26d46;
    transform: rotate(4deg);
}
.earth-panel__initial,
.earth-panel__content { padding: 4.35rem 1.35rem 1.45rem; }

@media (max-width: 900px) {
    .earth-page,
    .earth-explorer {
        min-height: max(620px, calc(100svh - 72px));
        height: max(620px, calc(100svh - 72px));
    }

    .earth-page__header {
        grid-template-columns: 1fr;
        max-width: min(600px, calc(100% - 2rem));
    }

    .earth-page__stats { display: none; }
    .earth-stage { min-height: 0; }
    .earth-panel { max-height: none; border-top: 0; border-left: 1px solid rgba(107, 143, 196, .26); }
}

@media (max-width: 575px) {
    .earth-page { margin: 0; }
    .earth-page__header { inset: 1rem 1rem auto; }
    .earth-page__header h1 { font-size: 2rem; }
    .earth-page__header p { display: none; }
    .earth-explorer { margin: 0; border-radius: 0; }
    .earth-stage { min-height: 0; }
    .earth-stage__panel-trigger { right: .75rem; bottom: 4.15rem; }
    .earth-stage__panel-trigger span { display: none; }
    .earth-stage__zoom { right: .75rem; bottom: .75rem; }
    .earth-stage__level { left: .75rem; bottom: .75rem; }
    .earth-panel { width: min(360px, 94vw); }
}

@media (prefers-reduced-motion: reduce) {
    .earth-panel,
    .earth-panel-backdrop { transition-duration: .01ms; }
}

/* Standalone Earth application shell */
.earth-app-shell {
    width: 100%;
    height: 100svh;
    margin: 0;
    overflow: hidden;
    color: #e8eaed;
    background: #020307;
    font-family: var(--public-font-family);
}

.earth-app-shell *,
.earth-app-shell *::before,
.earth-app-shell *::after { box-sizing: border-box; }
.earth-app-shell button { font-family: inherit; }

.earth-app-main,
.earth-page,
.earth-explorer {
    width: 100%;
    height: 100svh;
    min-height: 0;
}

.earth-app-logo {
    position: fixed;
    top: clamp(1rem, 2vw, 1.5rem);
    left: clamp(1rem, 2vw, 1.5rem);
    z-index: 12;
    display: block;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .74));
}

.earth-app-logo img {
    display: block;
    width: auto;
    height: clamp(32px, 4vw, 44px);
    max-width: min(190px, 42vw);
    object-fit: contain;
}

.earth-stage {
    background: #020307;
}

.earth-stage::before { display: none; }

.earth-stage__loading {
    z-index: 40;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #e8eaed;
    background:
        radial-gradient(circle at 50% 50%, rgba(24, 52, 83, .24), transparent 30%),
        #020307;
    letter-spacing: normal;
    text-transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity .68s cubic-bezier(.22, 1, .36, 1), visibility .68s ease;
}

.earth-stage__loading.is-ready {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.earth-stage__canvas .earth-stage__loader-stars {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: .95;
    cursor: default;
    pointer-events: none;
    transition: opacity .55s ease;
}

.earth-stage__loader-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-1.2rem);
    transition: opacity .42s ease, transform .68s cubic-bezier(.22, 1, .36, 1);
}

.earth-stage__loader-logo {
    display: block;
    width: clamp(96px, 11vw, 142px);
    max-height: 52px;
    margin-bottom: clamp(1.35rem, 3vh, 2rem);
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .5));
}

.earth-stage__loader-planet {
    position: relative;
    width: clamp(116px, 16vw, 170px);
    aspect-ratio: 1;
    margin-bottom: clamp(1.35rem, 3vh, 2rem);
    overflow: hidden;
    background:
        url('/images/home/cns-earth-discovery.webp') 77% 50% / auto 112% no-repeat,
        #06101d;
    border-radius: 50%;
    box-shadow:
        0 0 2px rgba(183, 222, 255, .9),
        0 0 18px rgba(92, 169, 232, .38),
        0 0 52px rgba(47, 110, 176, .16);
    transform: none;
}

.earth-stage__loader-planet.is-three-ready {
    background: #06101d;
}

.earth-stage__canvas .earth-stage__loader-planet > canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    cursor: default;
    pointer-events: none;
}

.earth-stage__loader-planet::after {
    position: absolute;
    inset: -2px;
    content: '';
    pointer-events: none;
    border: 1px solid rgba(181, 221, 255, .48);
    border-radius: 50%;
}

.earth-stage__loading small {
    min-height: 1.2rem;
    color: rgba(219, 227, 238, .75);
    font-size: .74rem;
    font-weight: 650;
    letter-spacing: .035em;
    transition: opacity .18s ease;
}

.earth-stage__loader-progress {
    position: absolute;
    bottom: clamp(2rem, 7vh, 5rem);
    left: 50%;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(150px, 220px) 2.2rem;
    gap: .75rem;
    align-items: center;
    transform: translateX(-50%);
    transition: opacity .35s ease, transform .55s ease;
}

.earth-stage__loading .earth-stage__loader-bar {
    display: block;
    width: 100%;
    height: 2px;
    margin: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    border: 0;
    border-radius: 1px;
    box-shadow: none;
    animation: none;
}

.earth-stage__loading .earth-stage__loader-bar > span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #536f91, #9bc8ed);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    animation: none;
    box-shadow: 0 0 10px rgba(130, 194, 239, .55);
    transition: width .32s cubic-bezier(.22, 1, .36, 1);
}

.earth-stage__loader-progress output {
    color: rgba(208, 220, 234, .58);
    font-size: .68rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.earth-stage__loading.is-ready .earth-stage__loader-content {
    opacity: 0;
    transform: translateY(-1.2rem) scale(1.13);
}

.earth-stage__loading.is-ready .earth-stage__loader-stars,
.earth-stage__loading.is-ready .earth-stage__loader-progress {
    opacity: 0;
}

.earth-stage__loading.is-ready .earth-stage__loader-progress {
    transform: translate(-50%, .5rem);
}

@media (max-width: 575px) {
    .earth-stage__loader-content { transform: translateY(-.65rem); }
    .earth-stage__loader-progress { grid-template-columns: minmax(148px, 52vw) 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .earth-stage__loader-planet > canvas { animation: none; }
}

.earth-stage__auto-rotate {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 40px;
    padding: .52rem .62rem;
    color: #dce4e8;
    background: rgba(12, 14, 19, .76);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 750;
    backdrop-filter: blur(12px);
}

.earth-stage__auto-rotate svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.earth-stage__auto-rotate i {
    position: relative;
    width: 29px;
    height: 16px;
    background: #373841;
    border-radius: 999px;
    transition: background-color .2s ease;
}

.earth-stage__auto-rotate i::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: #c7c8ce;
    border-radius: 50%;
    transition: transform .2s ease, background-color .2s ease;
}

.earth-stage__auto-rotate[aria-checked="true"] i { background: #22344d; }
.earth-stage__auto-rotate[aria-checked="true"] i::after {
    background: #e26d46;
    transform: translateX(13px);
}

.earth-stage__auto-rotate:hover { border-color: rgba(226, 109, 70, .55); }

/* Public-site visual language for Earth overlays */
.earth-panel-backdrop {
    background: rgba(2, 8, 18, .58);
}

.earth-panel {
    color: #fff;
    background:
        radial-gradient(ellipse 95% 42% at 92% -4%, rgba(92, 138, 196, .24) 0%, rgba(92, 138, 196, .08) 42%, transparent 72%),
        radial-gradient(ellipse 78% 38% at -12% 82%, rgba(226, 109, 70, .075) 0%, transparent 72%),
        linear-gradient(138deg, rgba(255, 255, 255, .035) 0%, transparent 34%),
        linear-gradient(180deg, #101d30 0%, #0a121f 58%, #08101b 100%);
    border-left: 1px solid rgba(137, 174, 222, .18);
    box-shadow:
        -34px 0 86px rgba(2, 8, 18, .5),
        inset 1px 0 rgba(255, 255, 255, .045),
        inset 0 1px rgba(140, 186, 235, .055);
}

.earth-panel::after {
    z-index: 4;
    background:
        radial-gradient(circle at 82% 12%, rgba(91, 137, 193, .13), transparent 34%),
        rgba(8, 15, 26, .78);
}

.earth-panel__loader {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    color: rgba(255, 255, 255, .78);
    font-size: .72rem;
    letter-spacing: .025em;
    pointer-events: none;
}

.earth-panel__loader[hidden] { display: none; }

.earth-panel__loader span {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, .14);
    border-top-color: #e26d46;
    border-radius: 50%;
    animation: earth-spin .72s linear infinite;
}

.earth-panel__loader strong { font-weight: 650; }

.earth-panel__close {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .13);
    box-shadow: 0 12px 30px rgba(2, 8, 18, .24);
}

.earth-panel__close:hover {
    color: #fff;
    background: #e26d46;
    border-color: #e26d46;
}

.earth-panel__eyebrow,
.earth-panel__initial > span {
    color: #f08a67;
}

.earth-panel__initial h2,
.earth-panel__content h2 {
    color: #fff;
}

.earth-panel__initial p,
.earth-panel__count,
.earth-panel__empty {
    color: rgba(247, 251, 255, .7);
}

.earth-panel__steps span {
    color: rgba(255, 255, 255, .88);
}

.earth-panel__steps strong {
    color: #fff;
    background: #e26d46;
}

.earth-panel__heading {
    border-bottom-color: rgba(255, 255, 255, .1);
}

.earth-panel__location-icon {
    color: #f08a67;
    background: rgba(226, 109, 70, .1);
    border-color: rgba(226, 109, 70, .22);
    box-shadow: 0 12px 28px rgba(2, 8, 18, .2);
}

.earth-fair {
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .045));
    border-color: rgba(255, 255, 255, .11);
    box-shadow: 0 14px 32px rgba(2, 8, 18, .16);
    backdrop-filter: blur(10px);
}

.earth-fair:hover {
    color: #fff;
    background: linear-gradient(145deg, rgba(226, 109, 70, .12), rgba(255, 255, 255, .05));
    border-color: rgba(226, 109, 70, .34);
    box-shadow: 0 18px 40px rgba(2, 8, 18, .24);
}

.earth-fair__date {
    color: #f08a67;
    background: rgba(226, 109, 70, .1);
    border-color: rgba(226, 109, 70, .17);
}

.earth-fair strong { color: #fff; }
.earth-fair small { color: rgba(247, 251, 255, .62); }

.earth-panel .earth-panel__all {
    color: #fff;
    background: #e26d46;
    box-shadow: 0 14px 32px rgba(2, 8, 18, .22);
}

.earth-panel__featured {
    margin: .2rem 0 1.15rem;
    padding: .85rem;
    border: 1px solid rgba(73, 112, 158, .18);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(244, 248, 253, .96), rgba(232, 240, 249, .82));
}

.earth-panel__featured-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .65rem;
    margin-bottom: .62rem;
}

.earth-panel__featured-heading > span {
    color: #22344d;
    font-size: .78rem;
    font-weight: 750;
}

.earth-panel__featured-heading small {
    color: #73839a;
    font-size: .64rem;
}

.earth-panel__featured-list {
    display: grid;
    gap: .38rem;
}

.earth-panel__featured-list a,
.earth-panel__featured-list button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    min-width: 0;
    width: 100%;
    padding: .55rem .65rem;
    border: 0;
    border-radius: 11px;
    color: #294766;
    background: rgba(255, 255, 255, .72);
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.earth-panel__featured-list a:hover,
.earth-panel__featured-list button:hover {
    transform: translateY(-1px);
    background: #fff;
    box-shadow: 0 8px 20px rgba(34, 52, 77, .08);
}

.earth-panel__featured-list span {
    overflow: hidden;
    font-size: .76rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.earth-panel__featured-list strong {
    min-width: 1.65rem;
    padding: .16rem .42rem;
    border-radius: 999px;
    color: #fff;
    background: #2b5d8f;
    font-size: .66rem;
    text-align: center;
}

.earth-panel .earth-panel__all:hover {
    color: #fff;
    background: #eb7f5c;
}

/* Earth offcanvas: public-site light surface language */
.earth-panel {
    color: #22344d;
    background:
        radial-gradient(circle at 105% -4%, rgba(72, 118, 171, .17), transparent 34%),
        linear-gradient(155deg, #fff 0%, #f5f8fc 42%, #e8eef6 100%);
    border-left: 1px solid #d9e1eb;
    box-shadow: -30px 0 80px rgba(8, 24, 47, .2), inset 1px 0 rgba(255, 255, 255, .8);
    scrollbar-color: #a9b8cb transparent;
    scrollbar-width: thin;
}

.earth-panel::-webkit-scrollbar { width: 7px; }
.earth-panel::-webkit-scrollbar-track { background: transparent; }
.earth-panel::-webkit-scrollbar-thumb {
    background: #b2bfd0;
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

.earth-panel::after {
    background: rgba(244, 247, 251, .82);
    backdrop-filter: blur(5px);
}

.earth-panel__loader {
    color: #52647d;
}

.earth-panel__loader span {
    border-color: #d6deea;
    border-top-color: #e26d46;
}

.earth-panel__close {
    color: #22344d;
    background: rgba(255, 255, 255, .92);
    border-color: #d7e0eb;
    box-shadow: 0 10px 25px rgba(20, 45, 77, .12);
}

.earth-panel__close:hover {
    color: #fff;
    background: #22344d;
    border-color: #22344d;
}

.earth-panel__eyebrow,
.earth-panel__initial > span {
    color: #e26d46;
}

.earth-panel__initial h2,
.earth-panel__content h2 {
    color: #22344d;
    font-size: clamp(1.3rem, 2.2vw, 1.62rem);
    font-weight: 600;
}

.earth-panel__initial p,
.earth-panel__count,
.earth-panel__empty {
    color: #66778e;
}

.earth-panel__steps {
    gap: .5rem;
    margin-top: 1.25rem;
    padding: .9rem;
    background: rgba(233, 239, 247, .72);
    border: 1px solid #dce4ee;
    border-radius: 18px;
}

.earth-panel__steps span {
    color: #344b69;
}

.earth-panel__steps strong {
    color: #fff;
    background: #22344d;
    box-shadow: 0 6px 15px rgba(34, 52, 77, .17);
}

.earth-panel__heading {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: .72rem;
    padding-bottom: .95rem;
    border-bottom-color: #dce3ed;
}

.earth-panel__location-icon {
    width: 44px;
    height: 44px;
    color: #e26d46;
    background: #fff3ef;
    border-color: #f5cbbd;
    box-shadow: 0 10px 25px rgba(34, 52, 77, .1);
}

.earth-panel__location-icon--flag {
    overflow: hidden;
    background: #fff;
}

.earth-panel__location-icon--flag img {
    width: 32px;
    height: 23px;
    object-fit: cover;
    border: 1px solid #e1e6ed;
    border-radius: 5px;
}

.earth-panel__location-icon--flag > span {
    font-size: 1.5rem;
    line-height: 1;
}

.earth-panel__fairs {
    gap: .55rem;
    margin: .9rem 0 1rem;
}

.earth-fair {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: .7rem;
    align-items: center;
    padding: .65rem .72rem;
    color: #22344d;
    background: rgba(255, 255, 255, .94);
    border-color: #dce3ed;
    border-radius: 15px;
    box-shadow: 0 7px 20px rgba(34, 52, 77, .07);
    backdrop-filter: none;
}

.earth-fair:hover {
    color: #22344d;
    background: #fff;
    border-color: rgba(53, 94, 142, .42);
    box-shadow: 0 14px 32px rgba(34, 52, 77, .13);
}

.earth-fair__date {
    padding: .22rem .42rem;
    color: #c9502a;
    background: #fff1ec;
    border-color: #f5c9ba;
}

.earth-fair__media {
    position: relative;
    display: grid;
    width: 52px;
    height: 52px;
    overflow: hidden;
    place-items: center;
    color: #516b8c;
    background: #edf2f8;
    border: 1px solid #dce4ee;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
}

.earth-fair__media img {
    position: absolute;
    inset: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    object-fit: contain;
    background: #fff;
}

.earth-fair__body {
    display: grid;
    min-width: 0;
    gap: .22rem;
}

.earth-fair strong {
    color: #22344d;
    font-size: .84rem;
    line-height: 1.32;
}

.earth-fair small { color: #718096; }

.earth-panel .earth-panel__all {
    color: #fff;
    background: #22344d;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(34, 52, 77, .2);
}

.earth-panel .earth-panel__all:hover {
    color: #fff;
    background: #304969;
}

.earth-panel__preferences {
    margin: 0 1.35rem 1.35rem;
    border-top-color: #dce3ed;
}

.earth-panel__preferences button {
    color: #52657d;
    background: rgba(255, 255, 255, .72);
    border-color: #d7e0eb;
}

.earth-panel__preferences button:hover {
    color: #22344d;
    background: #fff;
    border-color: rgba(34, 52, 77, .34);
}

.earth-panel__preferences-status {
    color: #b94723;
    background: #fff1ec;
    border-color: #f3c6b7;
}

@media (max-width: 575px) {
    .earth-app-main,
    .earth-page,
    .earth-explorer { height: 100svh; min-height: 0; }
    .earth-app-logo img { height: 32px; }
    .earth-stage__auto-rotate { top: .75rem; right: .75rem; }
    .earth-stage__auto-rotate span { display: none; }
}

/* MapLibre globe renderer */
[data-earth-version^="maplibre"] .earth-explorer,
[data-earth-version^="maplibre"] .earth-stage,
[data-earth-version^="maplibre"] .earth-stage__canvas,
[data-earth-version^="maplibre"] .earth-stage__globe {
    background: #000;
}

[data-earth-version^="maplibre"] .earth-stage::before {
    background: radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, .28) 100%);
}

.earth-stage__globe .maplibregl-map,
.earth-stage__globe .maplibregl-canvas-container,
.earth-stage__globe .maplibregl-canvas {
    width: 100%;
    height: 100%;
}

.earth-stage__globe .maplibregl-canvas { outline: 0; }

.earth-stage__globe .maplibregl-ctrl-attrib {
    color: rgba(255, 255, 255, .66);
    background: rgba(0, 0, 0, .7);
    font-family: var(--public-font-family);
    font-size: 9px;
    backdrop-filter: blur(8px);
}

.earth-stage__globe .maplibregl-ctrl-attrib a { color: #f08a67; }

.maplibre-earth-marker {
    position: absolute;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    filter: drop-shadow(0 8px 14px rgba(2, 8, 18, .5));
    cursor: pointer;
}

.maplibre-earth-marker::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, rgba(226, 109, 70, .82), rgba(226, 109, 70, .08));
    transform: translateX(-50%);
}

.maplibre-earth-marker--country {
    width: 36px;
    height: 60px;
}

.maplibre-earth-marker--country::after { height: 27px; }

.maplibre-earth-marker--country img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(226, 109, 70, .12), 0 10px 24px rgba(2, 8, 18, .38);
    transition: transform .18s ease, box-shadow .18s ease;
}

.maplibre-earth-marker--city {
    width: 32px;
    height: 52px;
}

.maplibre-earth-marker--city::after { height: 30px; }

.maplibre-earth-marker--city span,
.maplibre-earth-marker--venue span {
    display: block;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(226, 109, 70, .12), 0 8px 22px rgba(2, 8, 18, .4);
    transition: transform .18s ease, box-shadow .18s ease;
}

.maplibre-earth-marker--city span {
    width: 19px;
    height: 19px;
    background: #e26d46;
}

.maplibre-earth-marker--venue {
    width: 28px;
    height: 28px;
    align-items: center;
}

.maplibre-earth-marker--venue::after { display: none; }

.maplibre-earth-marker--venue span {
    width: 15px;
    height: 15px;
    background: #6b8fc4;
}

.maplibre-earth-marker:hover img,
.maplibre-earth-marker:hover span,
.maplibre-earth-marker:focus-visible img,
.maplibre-earth-marker:focus-visible span {
    box-shadow: 0 0 0 7px rgba(226, 109, 70, .18), 0 12px 28px rgba(2, 8, 18, .5);
    transform: scale(1.12);
}

.maplibre-earth-marker:focus-visible { outline: 0; }

.maplibre-earth-marker.is-earth-hidden {
    visibility: hidden;
    opacity: 0 !important;
    pointer-events: none;
}

/* Compact location drawer: one identity row and one continuous event surface. */
.earth-panel__content {
    padding: 3.75rem 1rem 1.1rem;
}

.earth-panel__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .25rem 0 1rem;
}

.earth-panel__location {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: .65rem;
}

.earth-panel__location h2 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: clamp(1.12rem, 2vw, 1.4rem);
    line-height: 1.12;
    text-overflow: ellipsis;
}

.earth-panel__location-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
}

.earth-panel__location-icon--flag {
    overflow: visible;
    padding: 5px;
}

.earth-panel__location-icon--flag img {
    width: auto;
    height: auto;
    max-width: 30px;
    max-height: 25px;
    object-fit: contain;
    border-radius: 3px;
}

.earth-panel__summary {
    display: grid;
    justify-items: end;
    gap: .15rem;
    text-align: right;
}

.earth-panel__summary .earth-panel__eyebrow {
    font-size: .63rem;
    line-height: 1.1;
    white-space: nowrap;
}

.earth-panel__summary .earth-panel__count {
    margin: 0;
    font-size: .72rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}

.earth-panel__fairs {
    display: grid;
    gap: 0;
    margin: .8rem 0 .9rem;
    overflow: hidden;
    background: rgba(255, 255, 255, .78);
    border: 1px solid #d9e3ef;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(34, 52, 77, .08);
}

.earth-fair {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: .68rem;
    min-height: 70px;
    padding: .58rem .65rem;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e4eaf2;
    border-radius: 0;
    box-shadow: none;
}

.earth-fair:last-child { border-bottom: 0; }

.earth-fair:hover {
    background: linear-gradient(90deg, rgba(226, 109, 70, .075), rgba(230, 239, 249, .72));
    border-color: #e4eaf2;
    box-shadow: inset 3px 0 #e26d46;
    transform: none;
}

.earth-fair__media {
    width: 48px;
    height: 48px;
    background:
        radial-gradient(circle at 25% 18%, rgba(255, 255, 255, .95), transparent 44%),
        linear-gradient(145deg, #f3f8fe 0%, #dce9f7 54%, #cbdced 100%);
    border-color: #d2deeb;
    border-radius: 11px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .9), 0 5px 14px rgba(35, 67, 105, .1);
}

.earth-fair__media img {
    inset: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    background: transparent;
}

.earth-fair__body { gap: .16rem; }

.earth-fair__date {
    justify-self: start;
    padding: .12rem .34rem;
    font-size: .62rem;
}

.earth-fair strong {
    font-size: .82rem;
    line-height: 1.22;
}

.earth-fair small {
    overflow: hidden;
    font-size: .68rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.earth-panel .earth-panel__all {
    min-height: 43px;
    margin-top: .15rem;
    border-radius: 12px;
    font-size: .78rem;
}

.earth-panel a,
.earth-panel button,
.earth-panel__close,
.earth-stage__panel-trigger,
.earth-stage__auto-rotate,
.earth-stage__zoom button,
.earth-choice__button,
[data-earth-reset-preferences],
[data-earth-panel-close] {
    cursor: pointer;
}

.earth-panel__back {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 1rem 1.35rem 0;
    padding: .48rem .72rem;
    border: 1px solid #cbd8e8;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff, #eef4fb);
    color: #22344d;
    box-shadow: 0 8px 20px rgba(34, 52, 77, .08);
    font-size: .8rem;
}

.earth-panel__back:hover {
    border-color: #9fb5d1;
    transform: translateX(-2px);
}

.earth-marker-notice { position: absolute; z-index: 20; top: 85px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border: 1px solid #65768c; border-radius: 12px; background: #142235; color: #fff; font-size: .875rem; }
.earth-marker-notice[hidden] { display: none; }
.earth-marker-notice a { color: #fff; text-decoration: underline; margin-left: .6rem; }
@media (max-width: 430px) {
    .earth-panel__content { padding: 3.5rem .8rem 1rem; }
    .earth-panel__heading { gap: .5rem; }
    .earth-panel__summary .earth-panel__eyebrow { display: none; }
    .earth-panel__location-icon { flex-basis: 36px; width: 36px; height: 36px; }
    .earth-panel__location h2 { font-size: 1.05rem; }
}
