/**
 * ARTEMIS TRACKER - CUSTOM STYLES
 * Clean, simple, functional design
 */
/**
/**
/**
 * GLOBAL PAGE STYLES - FORCE PANEL STYLING
 */

/* Dark background */

/**
 * FORCE VISIBLE PANEL ON ABOUT PAGES
 */

/* ===================================
   HIDE FOOTER GLOBALLY
   =================================== */

.site-footer,
#colophon,
.ast-small-footer,
footer {
    display: none !important;
}

/* Force emoji rendering for tabs */
.tab-btn {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji", sans-serif !important;
}

/* Create a wrapper container for all non-tracker pages */
body:not(.page-template-template-artemis-tracker) .ast-container {
    max-width: 1100px !important;
    margin: 60px auto !important;
    padding: 0 20px !important;
}

body:not(.page-template-template-artemis-tracker) .ast-article-single,
body:not(.page-template-template-artemis-tracker) article.page,
body:not(.page-template-template-artemis-tracker) .entry-content,
body:not(.page-template-template-artemis-tracker) main > article {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 50px 60px !important;
    margin: 0 !important;
    display: block !important;
}

/* Force visibility */
body:not(.page-template-template-artemis-tracker) article,
body:not(.page-template-template-artemis-tracker) .page {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Typography stays the same */
body:not(.page-template-template-artemis-tracker) h1 {
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #e9efff !important;
    margin: 0 0 24px 0 !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}

body:not(.page-template-template-artemis-tracker) h2 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #e9efff !important;
    margin: 40px 0 20px 0 !important;
}

body:not(.page-template-template-artemis-tracker) p {
    color: #8895a7 !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
}

body:not(.page-template-template-artemis-tracker) strong {
    color: #e9efff !important;
}

body:not(.page-template-template-artemis-tracker) li {
    color: #8895a7 !important;
    font-size: 14px !important;
}

body:not(.page-template-template-artemis-tracker) a {
    color: #00d4ff !important;
}

@media (max-width: 768px) {
    body:not(.page-template-template-artemis-tracker) .ast-article-single,
    body:not(.page-template-template-artemis-tracker) article.page {
        padding: 40px 30px !important;
    }
}


body:not(.page-template-template-artemis-tracker) {
    background: #05080f !important;
}

body:not(.page-template-template-artemis-tracker) .site-content {
    background: #05080f !important;
    padding: 60px 20px 80px !important;
}

/* Target ALL possible content containers */
body:not(.page-template-template-artemis-tracker) .entry-content,
body:not(.page-template-template-artemis-tracker) .ast-article-single,
body:not(.page-template-template-artemis-tracker) article,
body:not(.page-template-template-artemis-tracker) .page {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 40px 50px !important;
    color: #e9efff !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

/* Rest of the styles... */
body:not(.page-template-template-artemis-tracker) .entry-content > p:first-child a,
body:not(.page-template-template-artemis-tracker) .ast-article-single > p:first-child a {
    color: #00d4ff !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

body:not(.page-template-template-artemis-tracker) h1 {
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #e9efff !important;
    margin: 0 0 24px 0 !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}

body:not(.page-template-template-artemis-tracker) h2 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #e9efff !important;
    margin: 40px 0 20px 0 !important;
}

body:not(.page-template-template-artemis-tracker) p {
    color: #8895a7 !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    margin-bottom: 16px !important;
}

body:not(.page-template-template-artemis-tracker) strong {
    color: #e9efff !important;
    font-weight: 600 !important;
}

body:not(.page-template-template-artemis-tracker) ul {
    margin: 20px 0 !important;
    padding-left: 20px !important;
}

body:not(.page-template-template-artemis-tracker) li {
    color: #8895a7 !important;
    font-size: 14px !important;
    margin-bottom: 12px !important;
}

body:not(.page-template-template-artemis-tracker) a {
    color: #00d4ff !important;
    text-decoration: none !important;
}

body:not(.page-template-template-artemis-tracker) a:hover {
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    body:not(.page-template-template-artemis-tracker) .entry-content,
    body:not(.page-template-template-artemis-tracker) .ast-article-single {
        padding: 30px 25px !important;
    }
}


/* ===================================
   CRITICAL: Enable Scrolling
   =================================== */

html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
}

body {
    position: relative !important;
}

/* ===================================
   CSS CUSTOM PROPERTIES (Variables)
   =================================== */

:root {
    /* Colors */
    --color-bg-dark: #0a0e1a;
    --color-bg-darker: #05080f;
    --color-panel: rgba(15, 23, 42, 0.9);
    --color-accent: #00d4ff;
    --color-accent-dim: rgba(0, 212, 255, 0.3);
    --color-text: #e9efff;
    --color-text-dim: #8895a7;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #e23a4b;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 48px;
    
    /* Typography */
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ===================================
   LAYOUT WIDTH FIXES
   =================================== */

#artemis-mission-control {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: visible;
}

.site-content {
    max-width: 100% !important;
    padding: 0 !important;
}

.ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

.entry-content {
    max-width: 100% !important;
}

#primary,
#content,
article {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

/* ===================================
   HERO SCENE (3D Visualization)
   =================================== */

.hero-scene {
    position: relative;
    width: 100%;
    height: 70vh;
    max-height: 700px;
    min-height: 600px;
    background: var(--color-bg-darker);
    overflow: hidden;
}

#earth-container {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#earth-container canvas {
    display: block;
    pointer-events: auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-lg);
}

.hero-overlay > * {
    pointer-events: auto;
}

/* Mission Identity */
.mission-identity {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mission-branding {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.mission-patch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.artemis-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-accent);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
}

.status-pill,
.status-pill *,
.countdown-display,
.countdown-display *,
#hero-countdown,
#hero-countdown *,
.camera-controls,
.camera-controls *,
.simple-depiction,
.simple-depiction * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-warning);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-callout {
    text-align: center;
    color: var(--color-text);
}

.hero-question {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 var(--space-md) 0;
    color: var(--color-text-dim);
    letter-spacing: 1px;
}

.location-primary {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.location-secondary {
    font-size: 16px;
    color: var(--color-text-dim);
    margin-bottom: var(--space-lg);
}

.countdown-display {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--color-panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: inline-block;
}

.countdown-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: var(--space-sm);
}

.countdown-time {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 2px;
}

.camera-controls {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.camera-btn {
    padding: 10px 20px;
    background: var(--color-panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.camera-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.camera-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-dark);
}

/* ===================================
   SIMPLE TRAJECTORY DIAGRAM
   =================================== */

.simple-depiction {
    width: 100%;
    max-width: 100%;
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-bg-dark);
    box-sizing: border-box;
}

.depiction-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.trajectory-container {
    position: relative;
    width: 100%;
    padding: var(--space-lg);
    background: var(--color-panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: var(--space-lg);
}

.trajectory-svg {
    width: 100%;
    height: auto;
    display: block;
}

.label-simple {
    fill: var(--color-text-dim);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: var(--font-system);
    text-transform: uppercase;
}

/* Vector quality settings */
.trajectory-svg path,
.trajectory-svg ellipse {
    vector-effect: non-scaling-stroke;
    shape-rendering: geometricPrecision;
}

/* Waypoints - Clickable but not hoverable on Earth/Moon */
.waypoint {
    cursor: pointer;
    transition: all 0.3s ease;
}

.waypoint:hover {
    r: 10;
    filter: drop-shadow(0 0 8px currentColor);
}

/* ===================================
   Placeholder image trajectory overlay
   =============================== */
.trajectory-stage {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #0b1020;
}

.trajectory-image {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.trajectory-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#mission-waypoints .waypoint {
    pointer-events: all;
    cursor: pointer;
}

#mission-waypoints .waypoint:hover .waypoint-ring {
    opacity: 0;
}

/* NUCLEAR TOOLTIP HIDING - Mobile Safe Version */
#waypoint-tooltip {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Remove hover effects on waypoints but keep them visible */
.trajectory-overlay .waypoint:hover .waypoint-ring {
    opacity: 0 !important;
}

.orion-label {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 24px;
    fill: #b71c1c;  /* Deep red */
    paint-order: stroke;
    stroke: rgba(0,0,0,0.55);
    stroke-width: 4px;
}

.orion-pulse {
    filter: drop-shadow(0 0 10px rgba(255,59,48,0.55));
    transform-box: fill-box;
    transform-origin: center;
    animation: orionPulse 1.8s ease-in-out infinite;
}

@keyframes orionPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.18); opacity: 0.75; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===================================
   TIMELINE SCRUBBER
   =================================== */

.timeline-scrubber {
    margin-top: -10px;
    padding: 25px 30px;
    background: rgba(10, 15, 25, 0.85);
    backdrop-filter: blur(5px);
    border: 1px solid var(--color-border);
    border-radius: 12px 12px 0 0;
    position: relative;
    z-index: 10;
}

.timeline-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.timeline-track {
    position: relative;
    margin-bottom: var(--space-md);
}

/* Current Position Marker (Fixed) */
.current-position-marker {
    position: absolute;
    top: -3px;
    width: 3px;
    height: 12px;
    background: #ff0000;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    z-index: 10;
    pointer-events: none;
    transition: left 0.3s ease;
}

.current-position-marker::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #ff0000;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #00d4ff 0%, #ffa726 50%, #00d4ff 100%);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #00d4ff;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #00d4ff;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.timeline-markers {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-sm);
}

.marker {
    font-size: 10px;
    color: var(--color-text-dim);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.timeline-readout {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-accent);
    text-align: center;
    letter-spacing: 1px;
}

/* ===================================
   WAYPOINT DETAIL PANEL
   =================================== */

.detail-panel {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 300px;
    background: var(--color-bg-darker);
    border: 2px solid var(--color-accent);
    border-radius: 12px;
    padding: var(--space-lg);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4);
    z-index: 100;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.detail-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 30px;
    height: 30px;
    background: transparent;
    border: 2px solid var(--color-text);
    border-radius: 50%;
    color: var(--color-text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-close:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-dark);
    transform: rotate(90deg);
}

.detail-panel h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-sm) 0;
}

.detail-time {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    letter-spacing: 1px;
}

.detail-panel p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

/* ===================================
   TELEMETRY STRIP
   =================================== */

.telemetry-strip {
    display: flex;
    gap: var(--space-md);
    justify-content: space-around;
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--color-panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.telem-item {
    text-align: center;
}

.telem-value {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.telem-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-dim);
}

/* ===================================
   DOCKED PANELS
   =================================== */

.docked-panels {
    width: 100%;
    max-width: 100%;
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-bg-darker);
    box-sizing: border-box;
}

.panels-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.panel-card {
    background: var(--color-panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-lg);
}

.panel-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 var(--space-lg) 0;
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-border);
}

/* Crew Grid */
.crew-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.crew-member {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: var(--space-sm);
    border-radius: 8px;
}

.crew-member:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(4px);
}

.crew-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent-dim);
}

.crew-info {
    flex: 1;
}

.crew-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.crew-role {
    font-size: 11px;
    color: var(--color-text-dim);
    margin-bottom: 4px;
}

.crew-status {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-success);
}

/* ===================================
   SHIP STATS & SPACECRAFT SECTION
   =================================== */

/* Ship Stats Container - Make sure it's above everything */
.ship-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: relative;
    z-index: 100;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 101;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-text-dim);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.stat-thumbnail {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-left: 8px;
    padding: 0;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--color-accent-dim);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: middle;
    overflow: hidden;
    position: relative;
    z-index: 102;
}

.stat-thumbnail:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--color-accent);
    transform: scale(1.1);
}

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

/* Rotate LAS thumbnail 90 degrees */
.las-thumbnail img {
    transform: rotate(90deg);
}

/* When LAS pops up, show it vertical (no rotation) */
#lightbox-image[src*="u0121083108_image_FuP2tPxu"] {
    transform: rotate(0deg);
}

/* ===================================
   ROCKET STACK DISPLAY (MISSION OVERVIEW THUMB)
   =================================== */

.rocket-stack-display{
    margin-top: 40px;
    padding: 0;
    background: rgba(0,0,0,0.18);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    position: relative;
    z-index: 1;
    height: 160px;           /* desktop target height */
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.rocket-stack-button{
    width: 100%;
    height: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.rocket-stack-button:hover{ opacity: 0.95; }

.rocket-stack-image{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;       /* fill the space */
    object-position: center; /* keep it centred */
    transform: none !important;
}

/* Slight cinematic lift on hover */
.rocket-stack-button:hover .rocket-stack-image{
    transform: scale(1.03) !important;
    transition: transform 0.25s ease;
}

/* Mobile: give it a bit more height */
@media (max-width: 768px){
    .rocket-stack-display{ height: 220px; border-radius: 14px; }
}

/* Lightbox: ensure the new mission overview image stays unrotated and large */
.lightbox-image-container img[src*="ChatGPT-Image-Feb-25-2026"]{
    transform: none !important;
    max-width: 100% !important;
    max-height: 85vh !important;
    image-orientation: none !important;
}


/* ===================================
   VIDEO EMBED
   =================================== */

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===================================
   LIGHTBOX & MODALS
   =================================== */

.lightbox,
.bio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.lightbox-backdrop,
.bio-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

/* Lightbox Content Layout - Image + Text Together */
.lightbox-content {
    position: relative;
    background: rgba(10, 15, 25, 0.98);
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.3);
    z-index: 10001;
}

/* Close button */
.lightbox-close,
.bio-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
    background: rgba(0, 212, 255, 0.2);
    border: none;
    color: #00d4ff;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover,
.bio-close:hover {
    background: rgba(0, 212, 255, 0.4);
    transform: rotate(90deg);
}

/* Main content wrapper - side by side on large screens */
.lightbox-inner-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
    max-height: 90vh;
}

/* Image container */
.lightbox-image-container {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
}

/* Caption/Text container */
.lightbox-caption {
    flex: 1;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
}

.lightbox-caption h2 {
    color: var(--color-accent);
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
    margin-top: 0;
}

.lightbox-detailed {
    text-align: left;
}

.lightbox-detailed h3 {
    color: var(--color-accent);
    font-size: 18px;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    padding-bottom: 5px;
}

.lightbox-detailed p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #e0e0e0;
    font-size: 14px;
}

.lightbox-detailed ul,
.lightbox-detailed ol {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.lightbox-detailed li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: #e0e0e0;
    font-size: 13px;
    line-height: 1.6;
}

.lightbox-detailed li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.lightbox-detailed strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* Scrollbar for detailed content */
.lightbox-caption::-webkit-scrollbar {
    width: 8px;
}

.lightbox-caption::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.lightbox-caption::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
}

.lightbox-caption::-webkit-scrollbar-thumb:hover {
    background: #00b4dd;
}

/* Bio Modal Specific */
.bio-content {
    position: relative;
    z-index: 10001;
    max-width: 700px;
    max-height: 85vh;
    width: 100%;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-xl);
    overflow-y: auto;
}

.bio-close {
    top: var(--space-md);
    right: var(--space-md);
}

.bio-header {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--color-border);
}

.bio-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent);
}

.bio-header-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-sm) 0;
}

.bio-role {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-accent);
}

.bio-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
}

.bio-body p {
    margin-bottom: var(--space-md);
}

.bio-body strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* ===================================
   FIX WORDPRESS ROCKET IMAGE IN LIGHTBOX
   =================================== */

/* Force ignore EXIF rotation - display image in its raw pixel orientation */
.lightbox-image-container img[src*="c34a7f6e-ec81-447f-8196-1458e74d2f14"] {
    image-orientation: none !important;
    transform: none !important;
    max-width: 50%;
    max-height: 85vh;
}

.lightbox-image-container img[src*="c34a7f6e-ec81-447f-8196-1458e74d2f14"].zoomed {
    transform: scale(2) !important;
    max-width: none;
}

/* Mobile fix for WordPress rocket */
@media (max-width: 1024px) {
    .lightbox-image-container img[src*="c34a7f6e-ec81-447f-8196-1458e74d2f14"] {
        max-width: 100% !important;
        max-height: 35vh;
        transform: none !important;
    }
}

/* ===================================
   FIX SLS IMAGE IN LIGHTBOX
   =================================== */

/* Desktop - already vertical, just constrain size */
.lightbox-image-container img[src*="openart-image_f-M9TtsZ"] {
    max-width: 40%;
    max-height: 85vh;
}

/* Mobile - adaptive padding based on image height */
@media (max-width: 1024px) {
    .lightbox-image-container {
        position: relative;
    }
    
    /* Get the actual rendered height of the image and add that to caption padding */
    .lightbox-image-container img {
        max-height: 35vh;
        width: auto;
    }
    
    /* Use a CSS variable to dynamically set padding based on image */
    .lightbox-caption {
        padding-top: clamp(20px, 35vh + 10px, 100px);
    }
    
    /* SLS-specific constraints */
    .lightbox-image-container img[src*="openart-image_f-M9TtsZ"] {
        max-height: 30vh;
        max-width: 80%;
        display: block;
        margin: 0 auto;
    }
    
    .lightbox-image-container:has(img[src*="openart-image_f-M9TtsZ"]) {
        flex: 0 0 auto;
        max-height: 32vh;
        overflow: hidden;
        padding: 10px;
    }
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Desktop only - side by side layout for rocket image */
@media (min-width: 1025px) {
    .lightbox-image-container img[src*="u0121084046_image_QT0Hczms"] {
        max-width: 50%;
        max-height: 85vh;
    }
}

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .lightbox-inner-wrapper {
        flex-direction: column;
    }
    
    .lightbox-image-container {
        flex: 0 0 auto;
        max-height: 40vh;
    }
    
    #lightbox-image {
        max-height: 35vh;
    }
    
    /* CRITICAL FIX: Force rocket image to full width on mobile */
    .lightbox-image-container img[src*="u0121084046_image_QT0Hczms"] {
        max-width: 100% !important;
        width: auto !important;
        max-height: 35vh !important;
    }
    
    .lightbox-caption {
        max-height: 40vh;
    }
    
    /* Hide timeline marker labels on mobile for cleaner look */
    .timeline-markers .marker {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .countdown-display,
    #adc-distance-widget {
        display: block;
        width: min(100%, 680px);
        max-width: calc(100vw - 24px);
        margin: 16px auto 0 !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .hero-scene {
        height: 60vh;
        min-height: 500px;
    }
    
    .mission-patch {
        width: 48px;
        height: 48px;
    }
    
    .artemis-logo {
        font-size: 20px;
    }
    
    .location-primary {
        font-size: 28px;
    }
    
    .countdown-time {
        font-size: 24px;
    }
    
    .camera-controls {
        flex-wrap: wrap;
    }
    
    .camera-btn {
        flex: 1 1 40%;
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .simple-depiction,
    .docked-panels {
        padding: var(--space-md);
    }
    
    .detail-panel {
        width: 250px;
        right: var(--space-sm);
        top: var(--space-sm);
    }
    
    .telemetry-strip {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .panels-container {
        grid-template-columns: 1fr;
    }
    
    
    .bio-content {
        padding: var(--space-lg);
    }
    
    .bio-header {
        flex-direction: column;
        text-align: center;
    }
    
    .bio-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Hide timeline marker labels on mobile */
    .timeline-markers .marker {
        display: none !important;
    }
}

/* ===================================
   ZOOMABLE LIGHTBOX IMAGE
   =================================== */

#lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    cursor: zoom-in;
    transition: all 0.3s ease;
}

#lightbox-image.zoomed {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    cursor: zoom-out;
    transform: scale(1.5);
}

/* Allow scrolling when zoomed */
.lightbox-image-container.zoomed {
    overflow: auto;
    cursor: move;
}

/* When full rocket pops up, show it vertical */
.lightbox-image-container img[src*="u0121084046_image_QT0Hczms"] {
    max-width: 50%;
    max-height: 85vh;
    transform: rotate(90deg);
}

.lightbox-image-container img[src*="u0121084046_image_QT0Hczms"].zoomed {
    transform: rotate(90deg) scale(2);
    max-width: none;
}

/* Fix rocket image on mobile */
@media (max-width: 1024px) {
    .lightbox-image-container img[src*="u0121084046_image_QT0Hczms"] {
        max-width: 100% !important;
        max-height: 35vh;
    }
}

/* ===================================
   BOTTOM CONTROLS - 3 BUTTONS (CYAN STYLE)
   =================================== */

.bottom-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    align-items: stretch;
    padding: 40px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--color-bg-darker);
}

.control-btn {
    width: 100%;
    padding: 14px 24px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: var(--font-system);
}

.control-btn:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.control-btn:active {
    transform: translateY(0);
}

.btn-text {
    font-size: 13px;
    letter-spacing: 1.5px;
    margin: 0 auto;
}

/* Desktop: 3 columns side by side */
@media (min-width: 769px) {
    .bottom-controls {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 1200px;
        padding: 60px 40px 80px;
    }
    
    .control-btn {
        justify-content: center;
    }
}

/* Tablet: 3 columns */
@media (min-width: 481px) and (max-width: 768px) {
    .bottom-controls {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 40px 20px 60px;
    }
    
    .control-btn {
        padding: 12px 20px;
        font-size: 12px;
    }
    
    .btn-text {
        font-size: 12px;
        letter-spacing: 1.2px;
    }
}

/* Small mobile: Stack vertically */
@media (max-width: 480px) {
    .bottom-controls {
        gap: 12px;
        padding: 30px 15px 50px;
    }
    
    .control-btn {
        padding: 14px 20px;
        font-size: 13px;
        justify-content: center;
    }
}

/* ===================================
   ABOUT TRACKER PAGE CUSTOM TEMPLATE
   =================================== */

#about-tracker-page {
    min-height: 100vh;
    background: var(--color-bg-darker, #05080f);
    padding: 60px 20px 80px;
}

/* Header section */
.about-header {
    max-width: 1000px;
    margin: 0 auto 40px;
}

.header-content {
    text-align: center;
}

.back-to-tracker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 8px;
    color: #00d4ff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.back-to-tracker:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: #00d4ff;
    transform: translateX(-4px);
}

.about-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text, #e9efff);
    margin: 30px 0 10px 0;
}

.about-subtitle {
    font-size: 13px;
    color: var(--color-text-dim, #8895a7);
    margin: 0;
}

/* Main content panel */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.content-wrapper {
    background: var(--color-panel, rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 50px 60px;
}

/* Content sections */
.content-section {
    margin-bottom: 40px;
}

.content-section:last-of-type {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text, #e9efff);
    margin: 0 0 15px 0;
}

.content-section p {
    color: var(--color-text-dim, #8895a7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section strong {
    color: var(--color-text, #e9efff);
    font-weight: 600;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.content-section li {
    color: var(--color-text-dim, #8895a7);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.content-section li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00d4ff;
}

.content-section a {
    color: #00d4ff;
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

/* Credits section */
.content-section.credits {
    padding-top: 30px;
    border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
}

.content-section.credits p {
    font-size: 12px;
    color: #6b7280;
}

/* CTA button */
.cta-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 8px;
    color: #00d4ff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* Mobile */
@media (max-width: 768px) {
    #about-tracker-page {
        padding: 40px 15px 60px;
    }
    
    .content-wrapper {
        padding: 40px 30px;
    }
    
    .about-title {
        font-size: 13px;
    }
}

/* ===================================
   YOUTUBE LIVE STREAM MODAL
   =================================== */

.youtube-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.youtube-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.youtube-content {
    position: relative;
    z-index: 100000;
    width: 100%;
    max-width: 1200px;
    background: rgba(10, 15, 25, 0.98);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.3);
    animation: youtubeSlideIn 0.3s ease;
}

@keyframes youtubeSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.youtube-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100001;
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #00d4ff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.youtube-close:hover {
    background: rgba(0, 212, 255, 0.4);
    transform: rotate(90deg);
}

.youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===================================
   PLAY OVERLAY (MOBILE)
   =================================== */

.youtube-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 25, 0.95);
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-play-btn {
    padding: 20px 40px;
    background: rgba(0, 212, 255, 0.95);
    border: 2px solid #00d4ff;
    border-radius: 50px;
    color: #0a0e27;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.5);
    animation: playPulse 2s ease-in-out infinite;
}

.youtube-play-btn:active {
    background: #00d4ff;
    transform: scale(0.95);
}

@keyframes playPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 212, 255, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 30px rgba(0, 212, 255, 0.8);
        transform: scale(1.05);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .youtube-content {
        max-width: 100%;
        margin: 0 10px;
        border-radius: 8px;
    }
    
    .youtube-close {
        width: 35px;
        height: 35px;
        font-size: 28px;
        top: 10px;
        right: 10px;
    }
    
    .youtube-play-btn {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .hero-callout {
        padding-bottom: 0;
    }

    .countdown-display {
        padding: 16px 20px;
        background: rgba(10, 15, 25, 0.95);
        border-top: 1px solid rgba(0, 212, 255, 0.2);
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    }
}

/* ===================================
   LIVE INDICATOR
   =================================== */

.status-pill.pre-launch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ff4444;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .live-indicator {
        font-size: 10px;
        gap: 4px;
    }
}

/* ===================================
   HIDE WORDPRESS HEADER GLOBALLY
   =================================== */

#masthead,
.site-header,
header.site-header,
.ast-header-break-point .site-header,
.ast-desktop .site-header,
.ast-mobile-header-wrap,
.ast-main-header-wrap,
header#masthead,
.site-header-focus-item,
.ast-header-sticked {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Remove header spacing from body */
body,
body.ast-header-break-point,
body.ast-desktop {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Ensure content starts at top */
#content,
.site-content,
#primary,
.ast-container,
main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any header-related spacing */
.ast-separate-container #primary,
.ast-separate-container #secondary,
.ast-plain-container #primary,
.ast-plain-container #secondary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ===================================
   LANDER GAME - NO ZOOM ON MOBILE
   =================================== */

body.page-template-template-artemis-lander,
#artemis-lander-root,
#artemis-lander-root * {
    touch-action: pan-x pan-y !important;
    -ms-content-zooming: none !important;
    -ms-touch-action: pan-x pan-y !important;
}

/* Prevent double-tap zoom */
#artemis-lander-root canvas,
#artemis-lander-root button {
    touch-action: manipulation !important;
}

.mission-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mission-branding:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.artemis-share-row{
  display:flex;
  justify-content:center;
  gap:18px;
  margin: 22px auto 8px;
}

.artemis-share-row .share-ico{
  width: 46px;
  height: 46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;

  border: 1px solid rgba(0,212,255,0.28);
  background: rgba(0,212,255,0.08);
  color: #00d4ff;
  text-decoration:none;

  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

.artemis-share-row .share-ico:active{
  transform: translateY(1px);
}

.artemis-share-row .ico{
  font-size: 18px;
  line-height: 1;
}

/* Hide share row everywhere by default */
.artemis-share-row { display: none; }

/* Show only on iOS devices */
@supports (-webkit-touch-callout: none) {
  .artemis-share-row { 
    display: flex; 
    justify-content: center;
    gap: 18px;
    margin: 22px auto 8px;
  }
}

.artemis-share-row svg {
  width: 22px;
  height: 22px;
  fill: currentColor !important;
}

.artemis-share-row .share-ico {
  color: #00d4ff;
}

.infohub-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 48px auto 24px;
  flex-wrap: wrap;
}

.hub-btn {
  appearance: none;
  border: 1px solid rgba(0, 212, 255, 0.6);
  background: rgba(0, 212, 255, 0.08);
  color: #00d4ff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
}

.hub-btn:hover {
  background: rgba(0, 212, 255, 0.18);
}

.hub-btn.install {
  border-width: 2px;
}

/* ===================================
   BOTTOM CONTROLS (INFO / PLAY / FUEL) + INSTALL (FULL-WIDTH)
   =================================== */

.bottom-controls{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  padding: 40px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--color-bg-darker);
}

/* All buttons (anchors + the install button) match */
.bottom-controls .control-btn,
.bottom-controls #installAppBtn{
  width: 100%;
  padding: 14px 24px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  text-decoration: none;
  font-family: var(--font-system);
}

/* Hover */
.bottom-controls .control-btn:hover,
.bottom-controls #installAppBtn:hover{
  background: rgba(0, 212, 255, 0.25);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* Active */
.bottom-controls .control-btn:active,
.bottom-controls #installAppBtn:active{
  transform: translateY(0);
}

/* INSTALL gets its own row and spans all 3 columns */
.bottom-controls #installAppBtn{
  grid-column: 1 / -1;
}

/* Mobile: stack everything */
@media (max-width: 480px){
  .bottom-controls{
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 30px 15px 50px;
  }

  .bottom-controls #installAppBtn{
    grid-column: auto;
  }
}

/* ===================================
   iOS INSTALL HINT (ONLY shows on iOS)
   =================================== */

.ios-install-hint{
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: none;
}

.ios-install-card{
  background: rgba(5, 10, 18, 0.95);
  border: 1px solid rgba(47, 240, 255, 0.3);
  border-radius: 12px;
  padding: 16px 18px;
  max-width: 320px;
  color: rgba(230, 245, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  font-size: 0.9em;
}

.ios-install-card strong{
  display: block;
  margin-bottom: 8px;
  color: rgba(47, 240, 255, 1);
}

.ios-install-card ol{
  padding-left: 18px;
  margin: 0 0 12px 0;
}

.ios-install-card li{
  margin-bottom: 4px;
}

#iosInstallClose{
  background: transparent;
  border: 1px solid rgba(47, 240, 255, 0.4);
  color: rgba(47, 240, 255, 1);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

/* Show iOS hint only on iOS browsers */
@supports (-webkit-touch-callout: none){
  .ios-install-hint{ display: block; }
}

/* ===================================
   COUNTDOWN DISPLAY FIX
   =================================== */

.countdown-display {
    min-width: 320px;
    width: auto;
    max-width: 90vw;
    text-align: center;
}

.countdown-label {
    white-space: nowrap;
    text-align: center;
}

#adc-distance-widget {
    position: relative;
    transition: none !important;
}

#adc-distance-widget:hover {
    box-shadow: 0 0 20px rgba(47, 240, 255, 0.4);
}

#adc-distance-widget:active {
    cursor: grabbing !important;
}

#hero-countdown.distance-widget-active {
    letter-spacing: normal;
}

#hero-countdown .adc-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#hero-countdown .adc-main-distance {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
    color: var(--color-accent);
}

#hero-countdown .adc-main-distance.is-phase {
    font-size: 22px;
    letter-spacing: 1.2px;
}

#hero-countdown .adc-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

#hero-countdown .adc-rate,
#hero-countdown .adc-source {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(148, 163, 184, 0.9);
}

#hero-countdown .adc-source {
    padding: 2px 7px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 999px;
    text-transform: uppercase;
}

#hero-countdown .adc-unit-toggle {
    display: inline-flex;
    gap: 6px;
}

#hero-countdown .adc-unit-btn {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: transparent;
    color: var(--color-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#hero-countdown .adc-unit-btn.is-active {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.75);
    color: #ffffff;
}

#hero-countdown .adc-record {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.35;
    text-transform: uppercase;
    color: #ff7b72;
}

#hero-countdown .adc-record.is-record {
    color: #30d158;
}

@media (max-width: 768px) {
    #hero-countdown .adc-main-distance {
        font-size: 26px;
    }

    #hero-countdown .adc-main-distance.is-phase {
        font-size: 18px;
        letter-spacing: 1px;
    }

    #hero-countdown .adc-meta-row {
        gap: 8px;
    }

    #hero-countdown.distance-widget-active {
        width: 100%;
    }
}

/* ===================================
   FIX SLS IMAGE IN LIGHTBOX
   =================================== */
/* Mobile fix for SLS rocket in lightbox */
@media (max-width: 1024px) {
    .lightbox-image-container img[src*="openart-image_f-M9TtsZ"] {
        max-height: 30vh;
        max-width: 80%;
        display: block;
        margin: 0 auto;
    }
    
    .lightbox-image-container:has(img[src*="openart-image_f-M9TtsZ"]) {
        flex: 0 0 auto;
        max-height: 32vh;
        overflow: hidden;
        padding: 10px;
    }
}

/* ===================================
   EMAIL CAPTURE
   =================================== */
.email-capture-section {
    padding: 0 24px 28px;
}

.email-capture-card {
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px 28px;
    border-radius: 24px;
    border: 1px solid rgba(114, 196, 255, 0.18);
    background: linear-gradient(180deg, rgba(12, 18, 34, 0.96) 0%, rgba(8, 13, 26, 0.96) 100%);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.95fr);
    gap: 24px;
    align-items: center;
}

.email-capture-eyebrow {
    margin-bottom: 8px;
    color: rgba(122, 211, 255, 0.82);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.email-capture-title {
    margin: 0 0 10px;
    color: #e9f4ff;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.08;
}

.email-capture-description {
    margin: 0;
    max-width: 56ch;
    color: rgba(214, 231, 255, 0.82);
    font-size: 15px;
    line-height: 1.7;
}

.artemis-email-capture-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.email-capture-fields {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.email-capture-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 54px;
    padding: 0 18px;
    border: 1px solid rgba(114, 196, 255, 0.2);
    border-radius: 16px;
    background: rgba(4, 10, 22, 0.74);
    color: #f3f8ff;
    font-size: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.email-capture-input::placeholder {
    color: rgba(188, 210, 232, 0.52);
}

.email-capture-input:focus {
    outline: none;
    border-color: rgba(114, 196, 255, 0.68);
    box-shadow: 0 0 0 3px rgba(83, 192, 255, 0.14);
}

.email-capture-submit {
    flex: 0 0 auto;
    min-width: 152px;
    height: 54px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #6ed1ff 0%, #95e7ff 100%);
    color: #061120;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 12px 26px rgba(34, 192, 255, 0.22);
}

.email-capture-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(34, 192, 255, 0.28);
}

.email-capture-submit:disabled {
    opacity: 0.72;
    cursor: wait;
}

.email-capture-note,
.email-capture-message {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.email-capture-note {
    color: rgba(188, 210, 232, 0.6);
}

.email-capture-message {
    min-height: 1.5em;
    color: rgba(188, 210, 232, 0.72);
}

.email-capture-message[data-state="success"] {
    color: #79e58f;
}

.email-capture-message[data-state="error"] {
    color: #ff8c86;
}

.email-capture-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 900px) {
    .email-capture-card {
        grid-template-columns: 1fr;
        padding: 22px 20px;
    }

    .email-capture-fields {
        flex-direction: column;
    }

    .email-capture-submit {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .email-capture-section {
        padding: 0 14px 24px;
    }

    .email-capture-card {
        border-radius: 20px;
    }

    .email-capture-title {
        font-size: 24px;
    }
}
