/* Map of Light — namespaced so it cannot restyle the rest of the site. */

.page-map-of-light .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-map-of-light {
    --mol-charcoal: var(--color-primary-dark);
    --mol-cream: var(--color-warm-light);
    --mol-gold: var(--color-accent);
    --mol-gold-text: var(--color-accent-on-light);
    --mol-glow: var(--color-illuminate-on-dark);
    --mol-panel: #f7f3e8;
    --mol-ink: var(--color-text-on-light);
    --mol-muted: var(--color-text-muted-on-light);
    --mol-header: var(--header-height);
    overflow-x: clip;
}

.page-map-of-light.mol-lock-scroll,
.page-map-of-light.mol-lock-scroll body {
    overflow: hidden;
}

.mol-stage {
    position: relative;
    isolation: isolate;
    height: calc(100vh - var(--mol-header));
    height: calc(100dvh - var(--mol-header));
    background: #1d1c1a;
    color: var(--mol-cream);
}

.mol-map {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #1b1a18;
}

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

.mol-map .maplibregl-canvas {
    outline: none;
}

.mol-map .maplibregl-ctrl-bottom-right {
    right: 0.35rem;
    bottom: 0.35rem;
}

.mol-map .maplibregl-ctrl-attrib {
    max-width: min(56vw, 18rem);
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
    background: rgba(247, 243, 232, 0.9);
    color: #2c2c2c;
    font-size: 0.65rem;
    line-height: 1.35;
}

.mol-map .maplibregl-ctrl-attrib a {
    color: #3f3b36;
}

.mol-map-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(88% 78% at 50% 46%, transparent 58%, rgba(44, 44, 44, 0.18) 100%),
        linear-gradient(180deg, rgba(44, 44, 44, 0.08), transparent 16%, transparent 82%, rgba(44, 44, 44, 0.16));
}

.mol-light {
    --mol-light-size: 2.75rem;
    --mol-core: #f0e877;
    --mol-gold: #bdad7b;
    --mol-charcoal: #2c2c2c;
    --mol-label: #f4f0e3;
    position: relative;
    display: grid;
    place-items: center;
    width: var(--mol-light-size);
    height: var(--mol-light-size);
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--mol-charcoal);
    opacity: 1;
    transition: opacity 0.28s ease;
}

.mol-light--sm { --mol-light-size: 2.75rem; }
.mol-light--md { --mol-light-size: 3.15rem; }
.mol-light--lg { --mol-light-size: 3.85rem; }

.mol-light__beacon,
.mol-light__glow,
.mol-light__halo,
.mol-light__ring,
.mol-light__core {
    grid-area: 1 / 1;
    place-self: center;
    border-radius: 50%;
    pointer-events: none;
}

.mol-light__beacon {
    position: relative;
    display: grid;
    place-items: center;
    width: var(--mol-light-size);
    height: var(--mol-light-size);
    transition: transform 0.28s ease;
}

.mol-light__glow {
    width: 175%;
    height: 175%;
    background: radial-gradient(circle, rgba(240, 232, 119, 0.55) 0%, rgba(189, 173, 123, 0.28) 40%, transparent 72%);
}

.mol-light__halo {
    width: 82%;
    height: 82%;
    background: radial-gradient(circle, rgba(240, 232, 119, 1) 0 22%, rgba(189, 173, 123, 0.95) 48%, rgba(189, 173, 123, 0.28) 72%, transparent 80%);
    box-shadow: 0 0 20px rgba(189, 173, 123, 0.55);
}

.mol-light__ring {
    width: 48%;
    height: 48%;
    border: 2px solid #2c2c2c;
    box-shadow:
        0 0 0 1px rgba(244, 240, 227, 0.55),
        0 0 16px rgba(240, 232, 119, 0.7);
}

.mol-light__core {
    width: 0.78rem;
    height: 0.78rem;
    background: var(--mol-core);
    box-shadow: 0 0 14px rgba(240, 232, 119, 1), 0 0 4px #f0e877;
}

.mol-light--md .mol-light__core {
    width: 0.82rem;
    height: 0.82rem;
}

.mol-light--lg .mol-light__core {
    width: 1rem;
    height: 1rem;
}

/* Anchor offsets live in --mol-cap-* so script can add a --mol-nudge-*
   correction without having to know which side the label is on. */
.mol-light__caption {
    --mol-cap-x: 0;
    --mol-cap-y: 0;
    --mol-nudge-x: 0px;
    --mol-nudge-y: 0px;
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    width: max-content;
    max-width: 10.75rem;
    height: auto;
    padding: 0.26rem 0.46rem;
    border: 1px solid rgba(189, 173, 123, 0.42);
    border-radius: 0.16rem;
    background: var(--mol-label);
    color: var(--mol-charcoal);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    white-space: normal;
    overflow-wrap: anywhere;
    pointer-events: none;
    box-shadow: 0 8px 18px -12px rgba(44, 44, 44, 0.55);
    transform: translate(var(--mol-cap-x), var(--mol-cap-y)) translate(var(--mol-nudge-x), var(--mol-nudge-y));
}

.mol-light__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.28em;
    max-width: 100%;
}

.mol-light__place--short {
    display: none;
}

.mol-light__dot {
    color: #75633a;
    font-weight: 500;
}

.mol-light__count {
    font-variant-numeric: tabular-nums;
    color: var(--mol-charcoal);
}

.mol-light--label-s .mol-light__caption {
    top: calc(100% + 0.28rem);
    left: 50%;
    --mol-cap-x: -50%;
}

.mol-light--label-n .mol-light__caption {
    bottom: calc(100% + 0.28rem);
    left: 50%;
    --mol-cap-x: -50%;
}

/* Keep Nova's caption outside the constellation and individual-light field. */
[data-mol-light="nova"].mol-light--label-n .mol-light__caption {
    bottom: calc(100% + 0.85rem);
}

.is-zoom-cluster [data-mol-light="nova"].mol-light--label-n .mol-light__caption,
.is-zoom-individual [data-mol-light="nova"].mol-light--label-n .mol-light__caption,
.is-zoom-cluster [data-mol-light="nova"].mol-light.is-edge-n .mol-light__caption,
.is-zoom-individual [data-mol-light="nova"].mol-light.is-edge-n .mol-light__caption {
    bottom: calc(100% + 8.5rem);
}

.is-zoom-cluster [data-mol-light="nova"].mol-light.is-edge-e .mol-light__caption,
.is-zoom-individual [data-mol-light="nova"].mol-light.is-edge-e .mol-light__caption,
[data-mol-light="nova"].mol-light.is-edge-e .mol-light__caption {
    left: calc(100% + 0.85rem);
    top: 0;
    bottom: auto;
    right: auto;
    --mol-cap-x: 0;
    --mol-cap-y: 0;
}

.is-zoom-cluster [data-mol-light="nova"].mol-light.is-edge-e .mol-light__caption,
.is-zoom-individual [data-mol-light="nova"].mol-light.is-edge-e .mol-light__caption {
    left: calc(100% + 2.75rem);
}

.mol-light--label-e .mol-light__caption {
    left: calc(100% + 0.32rem);
    top: 50%;
    --mol-cap-y: -50%;
}

.mol-light--label-ne .mol-light__caption {
    left: calc(100% + 0.28rem);
    bottom: calc(58% + 0.15rem);
}

.mol-light--label-w .mol-light__caption {
    right: calc(100% + 0.32rem);
    top: 50%;
    --mol-cap-y: -50%;
}

/* Edge-safe re-anchoring. Script adds one of these when the label would
   otherwise leave the map, so it flips to the inward-facing side. */
.mol-light.is-edge-w .mol-light__caption {
    top: 50%;
    bottom: auto;
    left: auto;
    right: calc(100% + 0.32rem);
    --mol-cap-x: 0;
    --mol-cap-y: -50%;
}

.mol-light.is-edge-e .mol-light__caption {
    top: 50%;
    bottom: auto;
    right: auto;
    left: calc(100% + 0.32rem);
    --mol-cap-x: 0;
    --mol-cap-y: -50%;
}

.mol-light.is-edge-n .mol-light__caption {
    top: auto;
    bottom: calc(100% + 0.28rem);
    right: auto;
    left: 50%;
    --mol-cap-x: -50%;
    --mol-cap-y: 0;
}

.mol-light.is-edge-s .mol-light__caption {
    bottom: auto;
    top: calc(100% + 0.28rem);
    right: auto;
    left: 50%;
    --mol-cap-x: -50%;
    --mol-cap-y: 0;
}

.mol-light--story {
    width: 2.1rem;
    min-width: 2.1rem;
    height: 2.1rem;
    min-height: 2.1rem;
    --mol-light-size: 1.45rem;
}

.mol-light--story .mol-light__beacon {
    width: 1.55rem;
    height: 1.55rem;
}

.mol-light--story .mol-light__glow,
.mol-light--story .mol-light__halo,
.mol-light--story .mol-light__core {
    border-radius: 2px;
    transform: rotate(45deg);
}

.mol-light--story .mol-light__glow {
    width: 145%;
    height: 145%;
    background: radial-gradient(circle, rgba(244, 228, 176, 0.42) 0%, rgba(201, 162, 39, 0.16) 46%, transparent 74%);
}

.mol-light--story .mol-light__halo {
    width: 62%;
    height: 62%;
    background: linear-gradient(180deg, #fff6d8 0%, #c9a227 100%);
    box-shadow: 0 0 12px rgba(201, 162, 39, 0.38);
}

.mol-light--story .mol-light__ring {
    display: none;
}

.mol-light--story .mol-light__core {
    width: 0.38rem;
    height: 0.38rem;
    background: #fff8e4;
    box-shadow: 0 0 8px rgba(240, 232, 119, 0.85);
}

.mol-light--story .mol-light__caption {
    max-width: 10.5rem;
    padding: 0.16rem 0.36rem;
    border-color: rgba(189, 173, 123, 0.34);
    background: rgba(247, 243, 232, 0.94);
    font-weight: 500;
    box-shadow: none;
    /* Beacon stays; full caption only for Stories / hover / focus / selected. */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.is-filter-stories .mol-light--story .mol-light__caption,
.mol-light--story:hover .mol-light__caption,
.mol-light--story:focus .mol-light__caption,
.mol-light--story:focus-visible .mol-light__caption,
.mol-light--story.is-selected .mol-light__caption {
    opacity: 1;
    visibility: visible;
}

.mol-light--story.is-selected .mol-light__halo {
    width: 68%;
    height: 68%;
}

.mol-light--story.is-selected .mol-light__caption {
    border-color: #bdad7b;
    box-shadow: none;
}

/* Supporting line under the story name. Always its own row, never a long
   uppercase phrase beside the name. */
.mol-light__approx {
    color: #6f6a60;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

/* Location anchor: a constellation of the lights assigned to one place, not a
   count bubble. The dots are an impression; the label carries the real number. */
.mol-anchor {
    --mol-anchor-size: 2.75rem;
    width: var(--mol-anchor-size);
    height: var(--mol-anchor-size);
    min-width: 2.75rem;
    min-height: 2.75rem;
}

.mol-anchor--sm { --mol-anchor-size: 2.75rem; }
.mol-anchor--md { --mol-anchor-size: 3.5rem; }
.mol-anchor--lg { --mol-anchor-size: 4.75rem; }

.mol-anchor__field {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--mol-anchor-size);
    height: var(--mol-anchor-size);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mol-anchor__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 128%;
    height: 128%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(240, 232, 119, 0.4) 0%,
        rgba(189, 173, 123, 0.24) 42%,
        rgba(189, 173, 123, 0.07) 68%,
        transparent 78%);
}

.mol-anchor__field--empty .mol-anchor__glow {
    background: radial-gradient(circle, rgba(189, 173, 123, 0.16) 0%, transparent 70%);
}

.mol-anchor__dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #f0e877;
    box-shadow:
        0 0 0 0.5px rgba(44, 44, 44, 0.42),
        0 0 3px rgba(240, 232, 119, 0.95);
}

.mol-anchor__field--sparse .mol-anchor__dot {
    width: 3.2px;
    height: 3.2px;
    box-shadow:
        0 0 0 0.6px rgba(44, 44, 44, 0.45),
        0 0 5px rgba(240, 232, 119, 0.95);
}

.mol-anchor.is-quiet .mol-anchor__field {
    opacity: 0.5;
}

.mol-anchor.is-emphasized .mol-anchor__glow,
.mol-anchor.is-selected .mol-anchor__glow {
    background: radial-gradient(circle,
        rgba(240, 232, 119, 0.54) 0%,
        rgba(189, 173, 123, 0.3) 44%,
        rgba(189, 173, 123, 0.1) 70%,
        transparent 80%);
}

.mol-anchor.is-selected .mol-anchor__label {
    border-color: #bdad7b;
    border-left: 2px solid var(--mol-gold-text, #8a7430);
}

.mol-anchor:focus-visible .mol-anchor__field {
    outline: 2px solid #bdad7b;
    outline-offset: 4px;
    border-radius: 50%;
}

/* Once the real individual lights fade in on the canvas the impression dots are
   redundant, so they hand over and leave the label and a soft shared glow behind. */
.mol-anchor__dot,
.mol-anchor__glow {
    transition: opacity 0.5s ease;
}

/* Keep a faint constellation while individual lights finish fading in,
   then clear dots once the individual-light stage owns the reading. */
.is-zoom-cluster .mol-anchor__dot {
    opacity: 0.42;
}

.is-zoom-individual .mol-anchor__dot {
    opacity: 0;
}

.is-zoom-cluster .mol-anchor__glow {
    opacity: 0.45;
}

.is-zoom-individual .mol-anchor__glow {
    opacity: 0;
}

.mol-light.is-quiet {
    opacity: 0.82;
}

.mol-light.is-muted {
    opacity: 0.84;
}

.mol-light.is-emphasized,
.mol-light.is-selected {
    opacity: 1;
}

.mol-light.is-quiet .mol-light__caption,
.mol-light.is-muted .mol-light__caption {
    opacity: 1;
}

.mol-light--story.is-quiet .mol-light__caption,
.mol-light--story.is-muted .mol-light__caption {
    opacity: 0;
    visibility: hidden;
}

.is-filter-stories .mol-light--story.is-quiet .mol-light__caption,
.is-filter-stories .mol-light--story.is-muted .mol-light__caption,
.mol-light--story.is-quiet:hover .mol-light__caption,
.mol-light--story.is-muted:hover .mol-light__caption,
.mol-light--story.is-quiet:focus-visible .mol-light__caption,
.mol-light--story.is-muted:focus-visible .mol-light__caption,
.mol-light--story.is-selected .mol-light__caption {
    opacity: 1;
    visibility: visible;
}

.mol-light.is-selected .mol-light__beacon {
    transform: scale(1.1);
}

.mol-light.is-selected .mol-light__glow {
    animation: none;
    background: radial-gradient(circle, rgba(240, 232, 119, 0.58) 0%, rgba(189, 173, 123, 0.28) 46%, transparent 74%);
}

.mol-light.is-selected .mol-light__halo {
    animation: none;
    transform: none;
    width: 86%;
    height: 86%;
}

.mol-light.is-selected .mol-light__ring {
    width: 48%;
    height: 48%;
    border-width: 2px;
    border-color: #2c2c2c;
}

.mol-light.is-selected .mol-light__core {
    background: #f6ef9a;
    box-shadow: 0 0 16px rgba(240, 232, 119, 1), 0 0 4px #f0e877;
}

.mol-light.is-selected .mol-light__caption {
    border-color: #bdad7b;
    box-shadow: 0 8px 20px -12px rgba(44, 44, 44, 0.6), inset 0 -1px 0 rgba(189, 173, 123, 0.35);
}

.mol-light:hover,
.mol-light:focus,
.mol-light:focus-visible {
    opacity: 1;
}

.mol-light:hover .mol-light__beacon,
.mol-light:focus-visible .mol-light__beacon {
    transform: scale(1.08);
}

.mol-light.is-selected:hover .mol-light__beacon,
.mol-light.is-selected:focus-visible .mol-light__beacon {
    transform: scale(1.12);
}

.mol-light:focus,
.mol-light:focus-visible {
    outline: none;
}

.mol-light:focus-visible .mol-light__beacon {
    outline: 2px solid #bdad7b;
    outline-offset: 4px;
}

.maplibregl-marker:has(.mol-light.is-selected) {
    z-index: 3;
}

.maplibregl-marker:has(.mol-light:hover),
.maplibregl-marker:has(.mol-light:focus-visible) {
    z-index: 4;
}

.is-page-hidden .mol-light__glow {
    animation-play-state: paused;
}

@media (max-width: 480px) {
    .mol-light--lg { --mol-light-size: 3.45rem; }
    .mol-light--md { --mol-light-size: 2.9rem; }

    .mol-light__place--full,
    .mol-light__dot {
        display: none;
    }

    .mol-light__place--short {
        display: inline;
    }

    .mol-light__caption {
        gap: 0.05rem;
        max-width: 10rem;
        padding: 0.2rem 0.36rem;
        font-size: 0.62rem;
    }

    .mol-light__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .mol-light.is-selected .mol-light__caption {
        display: flex;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .mol-light__glow {
        animation: mol-breathe 8s ease-in-out infinite;
    }
}

@keyframes mol-breathe {
    0%, 100% { opacity: 0.88; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.03); }
}

.mol-chrome,
.mol-tools,
.mol-panel,
.mol-search-panel,
.mol-farewell,
.mol-note {
    position: absolute;
    z-index: 3;
}

.mol-chrome {
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.38rem;
    max-width: 28rem;
    padding: 0.7rem 0.85rem 0.62rem;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, rgba(48, 47, 45, 0.94), rgba(38, 37, 35, 0.92));
    border: 1px solid rgba(244, 240, 227, 0.16);
    box-shadow:
        0 1px 0 rgba(244, 240, 227, 0.07),
        0 10px 24px -16px rgba(0, 0, 0, 0.42),
        0 4px 12px -10px rgba(0, 0, 0, 0.28);
}

.mol-eyebrow {
    margin: 0;
    color: var(--mol-gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.mol-title {
    margin: 0.12rem 0 0;
    color: var(--mol-cream);
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.mol-title em {
    display: inline-block;
    margin-inline-start: 0.18em;
    padding-inline-start: 0.04em;
    font-family: var(--font-tahu);
    font-style: normal;
    font-weight: 400;
    color: var(--mol-glow);
    line-height: 1;
    vertical-align: baseline;
}

.mol-lede,
.mol-promise,
.mol-caption {
    margin: 0.08rem 0 0;
}

.mol-lede {
    color: rgba(244, 240, 227, 0.86);
    font-size: 0.95rem;
}

.mol-promise {
    color: rgba(244, 240, 227, 0.62);
    font-size: 0.86rem;
}

.mol-caption {
    color: rgba(244, 240, 227, 0.58);
    font-size: 0.78rem;
    line-height: 1.45;
}

.mol-privacy {
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mol-privacy a {
    color: rgba(244, 240, 227, 0.78);
    text-underline-offset: 0.18em;
}

.mol-privacy a:hover,
.mol-privacy a:focus-visible {
    color: var(--mol-glow, #e2c45c);
}

.mol-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.7rem;
    margin-top: 0.38rem;
}

.mol-search__field {
    position: relative;
    min-width: 0;
}

.mol-search__icon {
    position: absolute;
    left: 0.78rem;
    top: 50%;
    width: 0.95rem;
    height: 0.95rem;
    color: rgba(244, 240, 227, 0.46);
    pointer-events: none;
    transform: translateY(-50%);
}

.mol-search__input,
.mol-btn,
.mol-icon-btn {
    min-height: 2.75rem;
    font-family: inherit;
}

.mol-search__input {
    width: 100%;
    padding: 0.48rem 0.85rem 0.48rem 2.25rem;
    border: 1px solid rgba(214, 206, 184, 0.22);
    border-radius: 0.7rem;
    background: rgba(18, 17, 16, 0.58);
    color: var(--mol-cream);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.mol-search__input::placeholder {
    color: rgba(244, 240, 227, 0.48);
}

.mol-search__input:hover {
    border-color: rgba(214, 206, 184, 0.38);
}

.mol-search__input:focus {
    border-color: rgba(189, 173, 123, 0.72);
    outline: 1px solid rgba(189, 173, 123, 0.5);
    outline-offset: 1px;
    box-shadow: 0 0 0 3px rgba(189, 173, 123, 0.16);
}

.mol-btn:focus-visible,
.mol-icon-btn:focus-visible,
.mol-mini:focus-visible,
.mol-mini__tribute:focus-visible,
.mol-panel-search__input:focus-visible,
.mol-result:focus-visible,
.mol-panel__close:focus-visible,
.mol-panel__expand:focus-visible,
.mol-filter-sheet__close:focus-visible {
    outline: 2px solid var(--mol-gold);
    outline-offset: 2px;
}

.mol-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    width: auto;
    padding: 0.45rem 0.95rem;
    border-radius: 0.7rem;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mol-btn__mark {
    width: 0.72rem;
    height: 0.72rem;
    flex: 0 0 auto;
}

.mol-btn__mark--star {
    width: 0.82rem;
    height: 0.82rem;
}

.mol-btn--primary {
    background: #bdad7b;
    color: var(--mol-charcoal);
    border-color: rgba(189, 173, 123, 0.95);
}

.mol-btn--primary:hover {
    background: #c9bb86;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px -12px rgba(189, 173, 123, 0.7);
}

.mol-btn--meet {
    flex: 0 0 auto;
    white-space: nowrap;
    padding-inline: 0.9rem;
}

.mol-btn--ghost {
    background: transparent;
    color: var(--mol-cream);
    border-color: rgba(244, 240, 227, 0.42);
}

.mol-btn--ghost:hover {
    border-color: rgba(244, 240, 227, 0.62);
    transform: translateY(-1px);
}

.mol-filters-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(214, 206, 184, 0.22);
    border-radius: 0.7rem;
    background: rgba(20, 20, 19, 0.28);
    color: var(--mol-cream);
    font: inherit;
    cursor: pointer;
}

.mol-filters-toggle__current {
    color: var(--mol-gold);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mol-filters-wrap {
    position: relative;
    min-width: 0;
}

.mol-filter-sheet {
    min-width: 0;
    --mol-close-bg: var(--mol-panel);
}

.mol-filter-sheet__head {
    display: none;
}

.mol-filter-sheet__title {
    margin: 0;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mol-filter-sheet__close {
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--mol-charcoal);
    font-family: inherit;
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.mol-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    column-gap: 1.2rem;
    row-gap: 0.05rem;
    overflow: visible;
    padding: 0.08rem 0 0.42rem;
    margin: 0.08rem 0 0;
    border-bottom: 1px solid rgba(244, 240, 227, 0.18);
}

.mol-filter {
    position: relative;
    flex: 0 0 auto;
    min-height: 2.25rem;
    padding: 0.4rem 0 0.45rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(244, 240, 227, 0.56);
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.22s ease;
}

.mol-filter::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 1.25rem;
    height: 1.5px;
    background: var(--mol-gold);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.mol-filter:hover {
    color: rgba(244, 240, 227, 0.9);
}

.mol-filter:focus-visible {
    outline: 1px solid var(--mol-gold);
    outline-offset: 4px;
    color: var(--mol-cream);
}

.mol-filter.is-active,
.mol-filter[aria-selected="true"] {
    color: rgba(226, 196, 92, 0.96);
}

.mol-filter.is-active::after,
.mol-filter[aria-selected="true"]::after {
    transform: translateX(-50%) scaleX(1);
}

.mol-count {
    margin: -0.12rem 0 0;
    color: rgba(244, 240, 227, 0.7);
    font-size: 0.88rem;
}

.mol-tools {
    left: 1rem;
    bottom: 1.15rem;
    display: grid;
    gap: 0.45rem;
}

.mol-icon-btn {
    width: 2.75rem;
    padding: 0;
    border: 1px solid rgba(244, 240, 227, 0.2);
    border-radius: 0.45rem;
    background: rgba(44, 44, 44, 0.88);
    color: var(--mol-cream);
    cursor: pointer;
}

/* Individual light preview. Positioned in stage space by script. */
.mol-preview {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 6;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    width: 15.5rem;
    padding: 0.5rem 0.65rem 0.5rem 0.5rem;
    border: 1px solid rgba(189, 173, 123, 0.5);
    border-radius: 0.2rem;
    background: var(--mol-panel);
    color: var(--mol-charcoal);
    box-shadow: 0 14px 30px -20px rgba(44, 44, 44, 0.7);
    pointer-events: none;
}

.mol-preview[hidden] {
    display: none;
}

.mol-preview__media {
    flex: 0 0 auto;
    display: block;
    width: 3.1rem;
    height: 3.1rem;
    overflow: hidden;
    border-radius: 0.14rem;
    background: rgba(189, 173, 123, 0.2);
}

.mol-preview__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.mol-preview__text {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.mol-preview__name {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--mol-charcoal);
}

.mol-preview__meta {
    font-size: 0.7rem;
    line-height: 1.3;
    color: var(--mol-gold-text);
}

.mol-legend {
    position: absolute;
    right: 1rem;
    bottom: 1.15rem;
    z-index: 5;
    display: grid;
    justify-items: end;
    gap: 0.4rem;
    max-width: 19rem;
}

.mol-legend__toggle {
    padding: 0.38rem 0.62rem;
    border: 1px solid rgba(244, 240, 227, 0.2);
    border-radius: 0.2rem;
    background: rgba(44, 44, 44, 0.88);
    color: var(--mol-cream);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
}

.mol-legend__body {
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(189, 173, 123, 0.45);
    border-radius: 0.2rem;
    background: rgba(247, 243, 232, 0.97);
    color: var(--mol-charcoal);
}

.mol-legend__body[hidden] {
    display: none;
}

.mol-legend__list {
    display: grid;
    gap: 0.42rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mol-legend__item {
    display: grid;
    grid-template-columns: 1.1rem 1fr;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.72rem;
    line-height: 1.35;
}

.mol-legend__mark {
    position: relative;
    display: block;
    width: 1.1rem;
    height: 1.1rem;
}

.mol-legend__mark::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mol-legend__mark--light::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f0e877;
    box-shadow:
        0 0 0 1px rgba(44, 44, 44, 0.45),
        0 0 7px 2px rgba(189, 173, 123, 0.85);
}

.mol-legend__mark--cluster::before {
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 42%, #f0e877 0 1px, transparent 1.6px),
        radial-gradient(circle at 62% 38%, #f0e877 0 1px, transparent 1.6px),
        radial-gradient(circle at 46% 64%, #f0e877 0 1px, transparent 1.6px),
        radial-gradient(circle at 66% 62%, #f0e877 0 1px, transparent 1.6px),
        radial-gradient(circle, rgba(240, 232, 119, 0.35) 0%, rgba(189, 173, 123, 0.16) 55%, transparent 76%);
}

.mol-legend__mark--story::before {
    width: 7px;
    height: 7px;
    border-radius: 1px;
    background: linear-gradient(180deg, #fff6d8 0%, #c9a227 100%);
    transform: translate(-50%, -50%) rotate(45deg);
}

.mol-legend__mark--approx::before {
    width: 0.95rem;
    height: 0.95rem;
    border: 1px dashed rgba(117, 99, 58, 0.75);
    border-radius: 50%;
}

.mol-legend__mark--selected::before {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    background: #faf3b0;
    box-shadow:
        0 0 0 1.5px #bdad7b,
        0 0 0 3px rgba(44, 44, 44, 0.28);
}

.mol-legend__mark--pending::before {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    border: 1px solid rgba(111, 106, 96, 0.7);
    background: transparent;
}

.mol-legend__note {
    margin: 0.6rem 0 0;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(189, 173, 123, 0.35);
    font-size: 0.66rem;
    line-height: 1.45;
    color: var(--mol-gold-text);
}

.mol-pending {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(189, 173, 123, 0.4);
}

.mol-pending[hidden] {
    display: none;
}

.mol-pending__note {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--mol-muted);
}

.mol-search-panel {
    top: calc(var(--mol-header) + 0.75rem);
    left: 1rem;
    right: 1rem;
    max-width: 28rem;
    max-height: min(28rem, calc(100dvh - var(--mol-header) - 8.5rem));
    overflow: auto;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(247, 243, 232, 0.97);
    color: var(--mol-ink);
    --mol-close-bg: rgba(247, 243, 232, 0.97);
    box-shadow: 0 28px 56px -12px rgba(0, 0, 0, 0.42);
}

.mol-search-panel[hidden],
.mol-panel[hidden],
.mol-farewell[hidden],
.mol-note[hidden],
.mol-fatal[hidden],
.mol-search-hint[hidden],
.mol-empty[hidden],
.mol-archive-fallback[hidden],
.mol-panel__expand[hidden] {
    display: none !important;
}

.mol-search-status {
    margin: 0 0 0.55rem;
    color: var(--mol-gold-text);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mol-results {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.mol-result {
    width: 100%;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.45rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.mol-result:hover {
    background: rgba(44, 44, 44, 0.06);
}

.mol-result__media,
.mol-mini__media,
.mol-portrait {
    display: block;
    overflow: hidden;
    background: #e8e0cc;
}

.mol-result__media {
    position: relative;
    width: 3rem;
    height: 3.6rem;
    border-radius: 0.3rem;
}

.mol-portrait__picture,
.mol-result__media .mol-portrait__picture,
.mol-mini__media .mol-portrait__picture {
    display: block;
    width: 100%;
    height: 100%;
}

.mol-portrait__image,
.mol-result__media img,
.mol-mini__media img,
.mol-portrait-fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.mol-portrait-fallback {
    background-color: #e8e0cc;
    background-image: url('placeholder.svg');
    background-size: cover;
    background-position: center 20%;
}

.mol-result__name,
.mol-mini__name,
.mol-panel__name {
    display: block;
    font-weight: 600;
    color: var(--mol-charcoal);
}

.mol-people .mol-mini__name,
.mol-archive-grid .mol-mini__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.3em * 2);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    overflow-wrap: break-word;
}

.mol-result__meta,
.mol-panel__meta,
.mol-empty,
.mol-panel__precision {
    display: block;
    color: var(--mol-muted);
    font-size: 0.88rem;
}

.mol-result__type {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mol-gold-text);
}

.mol-empty,
.mol-search-hint {
    margin: 0;
}

.mol-search-hint {
    color: var(--mol-muted);
    font-size: 0.92rem;
}

.mol-panel,
.mol-search-panel,
.mol-farewell {
    color: var(--mol-ink);
}

.mol-panel h1,
.mol-panel h2,
.mol-panel h3,
.mol-search-panel h2 {
    color: var(--mol-charcoal) !important;
}

.mol-panel p,
.mol-panel button,
.mol-panel a,
.mol-search-panel p,
.mol-search-panel button,
.mol-farewell p {
    color: inherit;
}

.mol-panel .mol-btn--primary,
.mol-search-panel .mol-btn--primary {
    background: #bdad7b;
    color: var(--mol-charcoal) !important;
}

.mol-panel .mol-btn--ghost,
.mol-search-panel .mol-btn--ghost {
    background: transparent;
    color: var(--mol-charcoal) !important;
    border-color: rgba(44, 44, 44, 0.18);
}

.mol-panel .mol-btn--ghost:hover,
.mol-search-panel .mol-btn--ghost:hover {
    background: rgba(189, 173, 123, 0.12);
    border-color: rgba(189, 173, 123, 0.55);
}

.mol-panel {
    display: flex;
    flex-direction: column;
    background: var(--mol-panel);
    color: var(--mol-ink);
    box-shadow: 0 28px 56px -16px rgba(0, 0, 0, 0.45);
    --mol-close-bg: var(--mol-panel);
}

.mol-panel--side,
.mol-panel--list {
    top: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: min(24rem, calc(100vw - 2rem));
    border-radius: 0.85rem;
    overflow: hidden;
}

.mol-panel--person {
    top: 1rem;
    right: 1rem;
    bottom: auto;
    width: min(21rem, calc(100vw - 2rem));
    height: auto;
    max-height: min(38rem, calc(100dvh - var(--mol-header) - 2rem));
    border-radius: 0.85rem;
    overflow: hidden;
}

/* Programmatic focus lands on the person panel itself. Suppress the default
   outline for that container focus only; interactive controls keep :focus-visible. */
.mol-panel--person:focus,
.mol-panel--person:focus-visible {
    outline: none !important;
    outline-width: 0 !important;
    box-shadow: none;
}

/* Same programmatic-focus treatment for location/story panels so the plain ×
   is never ringed when the panel opens. */
.mol-panel--side:focus,
.mol-panel--side:focus-visible,
.mol-panel--list:focus,
.mol-panel--list:focus-visible {
    outline: none !important;
    outline-width: 0 !important;
    box-shadow: none;
}

.mol-panel--person.is-compact {
    width: min(20rem, calc(100vw - 2rem));
}

.mol-panel--person.is-compact .mol-panel__head,
.mol-panel--person .mol-panel__head {
    min-height: 0;
}

.mol-panel--person .mol-panel__head {
    padding: 0.45rem 0.55rem 0;
}

.mol-panel--person.is-compact .mol-panel__body {
    padding-top: 0.35rem;
}

.mol-panel__head,
.mol-panel__body {
    padding: 1rem 1.15rem;
}

.mol-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(44, 44, 44, 0.08);
}

.mol-panel--side .mol-panel__head,
.mol-panel--list .mol-panel__head {
    gap: 0.7rem 0.85rem;
    padding: 0.85rem 1.05rem 0.7rem;
}

.mol-panel__identity {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
    flex: 1 1 12rem;
}

.mol-panel__controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}

.mol-panel__close,
.mol-filter-sheet__close {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: -0.35rem -0.2rem 0 0;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    color: var(--mol-charcoal);
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: color 160ms ease;
}

/* Story and community location panels share this close control — keep it
   visually plain (no square chrome) matching the approved person-panel ×. */
.mol-panel--side .mol-panel__close,
.mol-panel--list .mol-panel__close,
.mol-panel.is-story .mol-panel__close {
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.mol-panel__close:hover,
.mol-panel__close:focus,
.mol-filter-sheet__close:hover,
.mol-filter-sheet__close:focus {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    border: 0 !important;
    color: #1a1916;
    transform: none;
}

.mol-panel__close:focus-visible,
.mol-filter-sheet__close:focus-visible {
    outline: 2px solid var(--mol-gold, #bdad7b) !important;
    outline-offset: 2px;
}

.mol-panel--side .mol-panel__close:focus-visible,
.mol-panel--list .mol-panel__close:focus-visible,
.mol-panel.is-story .mol-panel__close:focus-visible {
    outline: 2px solid var(--mol-gold, #bdad7b) !important;
    outline-offset: 2px;
}

.mol-panel__expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(44, 44, 44, 0.12);
    border-radius: 0.7rem;
    background: rgba(44, 44, 44, 0.04);
    color: var(--mol-charcoal);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.mol-panel__expand:hover {
    background: rgba(189, 173, 123, 0.12);
    border-color: rgba(189, 173, 123, 0.42);
    transform: translateY(-1px);
}

.mol-panel__body {
    overflow: auto;
    min-height: 0;
}

.mol-panel--side .mol-panel__body,
.mol-panel--list .mol-panel__body {
    overflow-x: hidden;
    padding: 0.7rem 1.05rem 1.45rem;
    scrollbar-gutter: stable;
}

.mol-panel__title,
.mol-panel__name {
    margin: 0;
    color: var(--mol-charcoal) !important;
    letter-spacing: -0.02em;
}

h2.mol-panel__title {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.mol-panel__name {
    font-size: 1.35rem;
    line-height: 1.2;
}

/* Never draw a focus rectangle on the person heading; panel focus is the announced target. */
.mol-panel__name:focus,
.mol-panel__name:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.mol-panel__count {
    margin: 0;
    color: var(--mol-gold-text);
    font-size: 1rem;
    line-height: 1.3;
}

.mol-panel__mapping {
    margin: 0.15rem 0 0;
    color: rgba(44, 44, 44, 0.68);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
}

.mol-panel__mapping[hidden] {
    display: none;
}

.mol-panel--side .mol-panel__precision,
.mol-panel--list .mol-panel__head .mol-empty {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
}

.mol-panel__intro {
    margin: 0 0 0.7rem;
    max-width: 36em;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.55;
}

.mol-story-slot {
    margin: 0 0 0.85rem;
    width: 100%;
    max-width: 100%;
}

.mol-story-media {
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 0.45rem;
    background: #e8e0cc;
    aspect-ratio: 16 / 10;
}

.mol-story-media picture,
.mol-story-media__image {
    display: block;
    width: 100%;
    height: 100%;
}

.mol-story-media__image {
    object-fit: cover;
    object-position: center;
}

.mol-panel.is-story .mol-people,
.mol-panel.is-story .mol-panel-search,
.mol-panel.is-story [data-mol-location-empty] {
    display: none;
}

.mol-panel.is-story .mol-story-people .mol-people,
.mol-panel.is-story .mol-people--story {
    display: grid;
}

.mol-story-people {
    margin: 0.85rem 0 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
}

.mol-story-people .mol-panel__subhead {
    margin: 0 0 0.35rem;
    color: var(--mol-charcoal);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.mol-story-people__note {
    margin: 0 0 0.7rem;
    color: rgba(44, 44, 44, 0.68);
    font-size: 0.84rem;
    line-height: 1.45;
}

.mol-mini__age {
    display: block;
    margin-top: -0.1rem;
    color: rgba(44, 44, 44, 0.62);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.3;
}

.mol-panel.is-story .mol-panel__actions {
    margin-top: 0.15rem;
    margin-bottom: 0.2rem;
}

.mol-panel-search {
    margin: 0 0 0.85rem;
    width: 100%;
    max-width: 100%;
}

.mol-panel-search__input {
    width: 100%;
    max-width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid rgba(44, 44, 44, 0.16);
    border-radius: 0;
    background: var(--mol-panel);
    color: var(--mol-ink);
    font-family: inherit;
    font-size: 1rem;
}

.mol-panel-search__input::placeholder {
    color: var(--mol-muted);
}

.mol-panel-search__input:hover {
    border-color: rgba(44, 44, 44, 0.28);
}

.mol-panel-search__input:focus,
.mol-panel-search__input:focus-visible {
    border-color: var(--mol-gold-text);
    outline: 2px solid var(--mol-gold);
    outline-offset: 2px;
    box-shadow: none;
}

.mol-panel__who p,
.mol-panel__carry p {
    margin: 0.75rem 0 0;
    line-height: 1.7;
}

.mol-panel__subhead {
    margin: 1.25rem 0 0.55rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mol-gold-text);
}

.mol-family {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.4rem, 1fr));
    gap: 0.7rem;
    margin-top: 0.85rem;
}

.mol-people,
.mol-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0.55rem;
    row-gap: 0.85rem;
    align-items: start;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.mol-people[data-mol-cols="2"],
.mol-archive-grid[data-mol-cols="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mol-mini {
    display: grid;
    gap: 0.4rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.mol-people .mol-mini,
.mol-people .mol-mini-card,
.mol-archive-grid .mol-mini {
    min-width: 0;
    gap: 0.38rem;
    align-items: stretch;
}

.mol-mini-card {
    display: grid;
    gap: 0.32rem;
    min-width: 0;
    align-items: stretch;
    content-visibility: auto;
    contain-intrinsic-size: 0 12rem;
}

.mol-mini__tribute {
    display: none !important;
}

.mol-mini__media {
    position: relative;
    aspect-ratio: 4 / 5;
    width: 100%;
    border-radius: 0.4rem;
}

.mol-people .mol-mini__media,
.mol-archive-grid .mol-mini__media {
    width: 100%;
    border-radius: 0.4rem;
}

.mol-mini__media .mol-portrait__picture,
.mol-mini__media .mol-portrait-fallback,
.mol-mini__media img,
.mol-result__media .mol-portrait__picture,
.mol-result__media .mol-portrait-fallback,
.mol-result__media img,
.mol-portrait .mol-portrait__picture,
.mol-portrait .mol-portrait-fallback,
.mol-portrait img {
    position: absolute;
    inset: 0;
}

.mol-portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    width: min(100%, 13.5rem);
    margin: 0;
    border-radius: 0.55rem;
    background: #e8e0cc;
}

.mol-panel--person.is-compact .mol-portrait {
    width: min(100%, 12rem);
}

.mol-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.mol-panel__actions .mol-btn {
    width: auto;
    flex: 0 1 auto;
    padding: 0.48rem 0.9rem;
}

.mol-panel__mapped {
    margin: 0.4rem 0 0;
    color: var(--mol-gold-text);
}

.mol-panel__meta,
.mol-panel__precision,
.mol-empty {
    color: rgba(44, 44, 44, 0.72) !important;
}

.mol-farewell {
    left: 50%;
    bottom: 1.4rem;
    transform: translateX(-50%);
    padding: 0.85rem 1.1rem;
    border-radius: 0.6rem;
    background: rgba(247, 243, 232, 0.96);
    color: var(--mol-ink);
    text-align: center;
    box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.5);
}

.mol-farewell p {
    margin: 0;
}

.mol-farewell p + p {
    margin-top: 0.25rem;
    color: var(--mol-gold-text);
}

.mol-note,
.mol-fatal {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(26rem, calc(100vw - 2rem));
    padding: 1rem 1.15rem;
    border-radius: 0.6rem;
    background: rgba(247, 243, 232, 0.96);
    color: var(--mol-ink);
    text-align: center;
}

.mol-noscript {
    padding: 1.5rem var(--container-px, 1.25rem) 2rem;
    background: var(--mol-cream);
    color: var(--mol-ink);
}

.mol-noscript a {
    color: var(--mol-gold-text);
}

.mol-archive-fallback {
    display: none;
}

.mol-archive-fallback__note {
    margin: 0 0 1rem;
    color: var(--mol-gold-text);
    font-size: 1rem;
}

.mol-archive-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

.is-map-unavailable .mol-map,
.is-map-unavailable .mol-map-vignette,
.is-map-unavailable .mol-tools {
    display: none;
}

.is-map-unavailable .mol-stage {
    height: auto;
    min-height: calc(100dvh - var(--mol-header));
    background: var(--mol-cream);
    color: var(--mol-ink);
}

.is-map-unavailable .mol-chrome {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    max-width: none;
    margin: 1rem 1rem 0.75rem;
    padding: 0.7rem 0.9rem 0.65rem;
    background: #2c2c2c;
    color: var(--mol-cream);
}

.is-map-unavailable .mol-lede,
.is-map-unavailable .mol-promise,
.is-map-unavailable .mol-caption {
    display: none;
}

.is-map-unavailable .mol-archive-fallback {
    display: block;
    position: relative;
    z-index: 2;
    padding: 0 1rem 2rem;
    color: var(--mol-ink);
}

.is-map-unavailable .mol-search-panel,
.is-map-unavailable .mol-panel {
    position: fixed;
}

@media (min-width: 481px) and (max-width: 768px) {
    .mol-filters {
        column-gap: 1.7rem;
    }
}

@media (min-width: 769px) {
    .mol-people,
    .mol-archive-grid {
        column-gap: 0.65rem;
        row-gap: 0.95rem;
    }

    .mol-panel__expand {
        display: none;
    }

    .mol-person-preview {
        display: grid;
        gap: 0.7rem;
    }

    .mol-panel--person .mol-panel__head {
        justify-content: flex-end;
        border-bottom: 0;
        padding-bottom: 0.15rem;
    }
}

@media (max-width: 1024px) {
    .mol-panel--side,
    .mol-panel--list {
        width: min(24rem, calc(100vw - 2rem));
    }
}

@media (max-width: 480px) {
    .mol-chrome {
        padding: 0.45rem 0.55rem 0.5rem;
        gap: 0.28rem;
    }

    .mol-eyebrow {
        font-size: 0.64rem;
        letter-spacing: 0.16em;
    }

    .mol-title {
        font-size: 1.38rem;
    }

    .mol-count {
        font-size: 0.78rem;
    }

    .mol-filters-toggle {
        display: flex;
    }

    .mol-filter-sheet {
        display: none;
        position: absolute;
        top: calc(100% + 0.4rem);
        left: 0;
        right: 0;
        z-index: 4;
        padding: 0.2rem 0.95rem 0.35rem;
        background: var(--mol-panel);
        color: var(--mol-charcoal);
        box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.48);
    }

    .is-filters-open .mol-filter-sheet {
        display: block;
    }

    .mol-filter-sheet__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        border-bottom: 1px solid rgba(44, 44, 44, 0.1);
    }

    .mol-filter-sheet__title {
        color: rgba(44, 44, 44, 0.55);
    }

    .mol-filter-sheet__close {
        margin: 0;
        color: var(--mol-charcoal);
        background: transparent !important;
    }

    .mol-filters {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        column-gap: 0;
        row-gap: 0;
        padding: 0;
        margin: 0;
        border-bottom: 0;
    }

    .mol-filter {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-height: 2.75rem;
        padding: 0.7rem 0;
        border-bottom: 1px solid rgba(44, 44, 44, 0.1);
        color: rgba(44, 44, 44, 0.72);
        letter-spacing: 0.1em;
        text-align: left;
        white-space: normal;
    }

    .mol-filter:last-child {
        border-bottom: 0;
    }

    .mol-filter::after {
        display: none;
    }

    .mol-filter:hover {
        color: var(--mol-charcoal);
    }

    .mol-filter:focus-visible {
        outline-offset: 2px;
        color: var(--mol-charcoal);
    }

    .mol-filter.is-active,
    .mol-filter[aria-selected="true"] {
        color: var(--mol-charcoal);
        font-weight: 600;
    }

    .mol-filter.is-active::before,
    .mol-filter[aria-selected="true"]::before {
        content: "";
        width: 0.85rem;
        height: 1px;
        margin-right: 0.7rem;
        background: var(--mol-gold);
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .mol-chrome {
        top: 0.4rem;
        left: 0.4rem;
        right: 0.4rem;
        gap: 0.35rem;
        padding: 0.55rem 0.65rem 0.55rem;
        max-width: none;
    }

    .mol-title {
        margin-top: 0;
        font-size: 1.5rem;
    }

    .mol-lede,
    .mol-promise,
    .mol-caption {
        display: none;
    }

    .is-chrome-compact .mol-eyebrow {
        display: none;
    }

    .is-chrome-compact .mol-title {
        font-size: 1.12rem;
        margin-top: 0;
        line-height: 1.1;
    }

    .is-chrome-compact .mol-lede,
    .is-chrome-compact .mol-promise,
    .is-chrome-compact .mol-caption {
        display: none;
    }

    /* Engaged mobile chrome: Search + Meet a Light share one row so the
       light field stays visible under Nova / individual / panel states. */
    .is-chrome-compact {
        padding: 0.32rem 0.5rem 0.34rem;
        gap: 0.2rem;
    }

    .is-chrome-compact .mol-search {
        margin-top: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        gap: 0.5rem;
    }

    .is-chrome-compact .mol-search__input {
        min-height: 44px;
        font-size: 0.84rem;
    }

    .is-chrome-compact .mol-btn--meet {
        width: auto;
        min-width: 7.4rem;
        max-width: 8.25rem;
        min-height: 44px;
        padding: 0.3rem 0.55rem;
        font-size: 0.72rem;
        letter-spacing: 0.01em;
        gap: 0.28rem;
    }

    .is-chrome-compact .mol-btn--meet .mol-btn__mark {
        width: 0.82rem;
        height: 0.82rem;
        flex: 0 0 auto;
    }

    .is-chrome-compact .mol-btn--meet span {
        white-space: nowrap;
    }

    .is-chrome-compact .mol-filters-toggle {
        min-height: 2.35rem;
        padding: 0.28rem 0.6rem;
    }

    .is-chrome-compact .mol-count {
        margin-top: 0.02rem;
        font-size: 0.78rem;
    }

    .mol-farewell {
        left: 50%;
        right: auto;
        bottom: calc(0.7rem + env(safe-area-inset-bottom));
        width: min(16.5rem, calc(100vw - 5.5rem));
        padding: 0.55rem 0.7rem;
        font-size: 0.84rem;
        line-height: 1.35;
        pointer-events: none;
        z-index: 2;
    }

    .is-location-open .mol-farewell,
    .is-person-open .mol-farewell,
    .is-list-open .mol-farewell,
    .is-search-open .mol-farewell,
    .is-filters-open .mol-farewell {
        display: none !important;
    }

    .mol-search {
        margin-top: 0.22rem;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .mol-btn--meet {
        width: 100%;
        padding-block: 0.48rem;
    }

    .mol-panel--side,
    .mol-panel--list,
    .mol-panel--person {
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
        width: auto;
        max-height: min(58dvh, 30rem);
        border-radius: 1rem 1rem 0 0;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mol-panel--side .mol-panel__head,
    .mol-panel--list .mol-panel__head {
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 0.45rem 0.35rem;
        padding: 0.55rem 0.55rem 0.55rem 0.95rem;
    }

    .mol-panel__identity {
        flex: 1 1 auto;
        min-width: 0;
        padding-top: 0.2rem;
    }

    .mol-panel__controls {
        width: auto;
        margin-inline-start: auto;
        justify-content: flex-end;
        align-self: flex-start;
    }

    h2.mol-panel__title {
        font-size: 1.4375rem;
        font-weight: 500;
        line-height: 1.2;
    }

    .mol-panel__count {
        font-size: 0.9375rem;
    }

    .mol-panel--side .mol-panel__precision,
    .mol-panel--list .mol-panel__head .mol-empty {
        font-size: 0.8125rem;
        line-height: 1.4;
    }

    .mol-panel__intro {
        margin: 0 0 0.6rem;
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .mol-panel--side .mol-panel__body,
    .mol-panel--list .mol-panel__body {
        padding: 0.55rem 0.95rem calc(1.25rem + env(safe-area-inset-bottom));
    }

    .mol-people,
    .mol-archive-grid {
        column-gap: 0.5rem;
        row-gap: 0.75rem;
    }

    .mol-people .mol-mini__name,
    .mol-archive-grid .mol-mini__name {
        min-height: calc(1.3em * 2);
        font-size: 0.875rem;
        font-weight: 500;
        line-height: 1.3;
    }

    .mol-panel--person {
        max-height: min(52dvh, 26rem);
    }

    .mol-panel--person.is-compact {
        max-height: min(46dvh, 22rem);
    }

    .mol-panel--person.is-expanded {
        max-height: calc(100dvh - var(--mol-header) - 0.5rem);
    }

    .mol-panel--person .mol-panel__head {
        justify-content: flex-end;
        border-bottom: 0;
        padding: 0.4rem 0.55rem 0;
    }

    .mol-panel--person .mol-panel__close {
        min-width: 44px;
        min-height: 44px;
        font-size: 1.7rem;
        line-height: 1;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        color: var(--mol-charcoal);
    }

    .mol-panel--person .mol-panel__body {
        padding: 0.15rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
    }

    .mol-panel--person .mol-panel__name {
        padding-inline-end: 0.25rem;
    }

    .mol-panel--person .mol-panel__actions {
        margin-top: 0.8rem;
    }

    .mol-panel__actions .mol-btn {
        width: 100%;
        padding-block: 0.5rem;
    }

    .mol-portrait,
    .mol-panel--person.is-compact .mol-portrait {
        width: min(36vw, 9.5rem);
        margin: 0;
    }

    .mol-person-preview {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.75rem;
        align-items: start;
    }

    .mol-tools {
        left: 0.5rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }

    .mol-search-panel {
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        bottom: auto;
        max-width: none;
        max-height: min(58dvh, 24rem);
        border-radius: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .is-search-open .mol-chrome,
    .is-location-open .mol-chrome,
    .is-person-open .mol-chrome,
    .is-list-open .mol-chrome {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-0.4rem);
    }
}

@media (max-width: 1024px) {
    .mol-legend {
        max-width: 17rem;
    }
}

@media (max-width: 768px) {
    /* No hover on touch: the first tap selects the light and opens the panel. */
    .mol-preview {
        display: none !important;
    }

    .mol-legend {
        right: 0.85rem;
        bottom: 0.9rem;
        max-width: calc(100vw - 5.4rem);
    }

    .is-location-open .mol-legend,
    .is-person-open .mol-legend,
    .is-list-open .mol-legend,
    .is-search-open .mol-legend,
    .is-filters-open .mol-legend {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 480px) {
    .mol-anchor--lg { --mol-anchor-size: 4rem; }
    .mol-anchor--md { --mol-anchor-size: 3.1rem; }

    .mol-legend__body {
        max-height: 40vh;
        overflow-y: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mol-light,
    .mol-anchor__field,
    .mol-light__beacon,
    .mol-light__glow,
    .mol-light__halo,
    .mol-panel,
    .mol-search-panel,
    .mol-farewell,
    .mol-filter,
    .mol-btn,
    .mol-search__input,
    .mol-panel__close,
    .mol-panel__expand {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .mol-filter::after {
        transition: none !important;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .mol-panel,
    .mol-search-panel,
    .mol-farewell {
        transition: opacity 180ms ease, transform 220ms ease;
    }
}
