/* The website's sample globe (page_sections/_site_globe.html).
   Plain CSS: no Tailwind rebuild. The canvas is drawn by static/js/site-globe.js;
   the cards are sample content that comes up while their place faces the visitor. */

.tp-site-globe {
    position: relative;
    width: 100%;
    max-width: 34rem;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    /* No frame, ground or shadow: the globe stands free on the section's own
       background, not inside a picture (founder 2026-11-12). */
    font-family: Manrope, system-ui, sans-serif;
    container-type: inline-size;
}

.tp-site-globe__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: pan-y;
}

.tp-site-globe.is-dragging .tp-site-globe__canvas { cursor: grabbing; }

.tp-site-globe__card {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    box-sizing: border-box;
    width: 9em;
    padding: .55em .7em;
    border: 1px solid rgba(11, 11, 14, .35);
    border-radius: .9em;
    background: #FFFFFF;
    color: #0B0B0E;
    font-size: clamp(7px, 2.25cqw, 12px);
    line-height: 1.25;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px) scale(.96);
    transition: opacity .7s ease, transform .7s ease;
    box-shadow: 0 2px 10px rgba(11, 11, 14, .06);
}

.tp-site-globe__card.is-on {
    opacity: 1;
    transform: none;
}

.tp-site-globe__card strong { font-weight: 700; font-size: 1.08em; }
.tp-site-globe__card em { font-size: .85em; color: #67676E; }
.tp-site-globe__card span { font-size: .85em; color: #38383E; }

.tp-site-globe__card--job {
    align-items: flex-start;
    text-align: left;
    border: 1.5px solid #7A1E33;
}

.tp-site-globe__card--job small {
    font-size: .72em;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7A1E33;
}

/* A neutral figure, never a face: the cards are samples, not members. */
.tp-site-globe__avatar {
    width: 2.6em;
    height: 2.6em;
    margin-bottom: .3em;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 37%, #FFFFFF 0 18%, transparent 19%),
        radial-gradient(ellipse 36% 27% at 50% 98%, #FFFFFF 0 98%, transparent 100%),
        #493657;
}

@media (prefers-reduced-motion: reduce) {
    .tp-site-globe__card { transition: none; transform: none; }
}

@media print {
    .tp-site-globe__card { opacity: 1; transform: none; }
}
