/* Mission Control B — same console palette, plus real Apollo-era photography (NASA, public domain). */

/* Home: Earthrise hero */
.moon-skin-photo .moon-hero {
  position: relative;
  min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: clamp(9rem, 26vh, 15rem) 1.25rem 2rem;
  width: 100vw !important; max-width: none !important; left: 50%; margin-left: -50vw !important; margin-right: 0 !important; margin-top: -1rem; margin-bottom: 1.5rem;   /* full-bleed */
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(14,18,16,0) 0%, rgba(14,18,16,0) 58%, rgba(14,18,16,.85) 86%, #0E1210 100%),
    var(--ph-hero) center 64% / cover no-repeat,
    #000;
  border-bottom: 1px solid var(--mc-line);
}
.moon-skin-photo .moon-hero-kicker { color: var(--mc-green); font-family: var(--mc-mono); opacity: 1; }
.moon-skin-photo .moon-hero-title {
  font-family: var(--mc-mono); color: #fff; letter-spacing: .08em; text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,.6);
}
.moon-skin-photo .moon-hero .moon-btn { background: rgba(14,18,16,.55); backdrop-filter: blur(2px); }
.moon-skin-photo .moon-hero .moon-btn:hover { background: var(--mc-amber); }
.moon-skin-photo .moon-hero-credit {
  position: absolute; right: .75rem; bottom: .5rem; margin: 0;
  font: 400 .62rem/1 var(--mc-mono); letter-spacing: .08em; color: rgba(216,224,218,.55); text-transform: uppercase;
}

/* Inner pages: lunar-surface title banner */
.moon-skin-photo:not(.home) .entry-header {
  position: relative;
  width: 100vw !important; max-width: none !important; left: 50%; margin-left: -50vw !important; margin-right: 0 !important; margin-top: -1rem; margin-bottom: 1.75rem;
  box-sizing: border-box;
  padding: 4.5rem 1.25rem 1.5rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(14,18,16,.25) 0%, rgba(14,18,16,.55) 60%, #0E1210 100%),
    var(--banner, var(--ph-surface)) center 60% / cover no-repeat,
    #000;
  border-bottom: 1px solid var(--mc-line);
}
.moon-skin-photo:not(.home) .entry-header .entry-title {
  color: #fff !important; text-shadow: 0 2px 14px rgba(0,0,0,.7); font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0;
}
.moon-skin-photo.moon-page-donate { --banner: var(--ph-earth); }
.moon-skin-photo.moon-page-donate .entry-header { background-position: center 40%; }

/* Full moon photo in the player and as Astronaut placeholders */
.moon-skin-photo .moon-art-empty { background: var(--ph-moon) center / 115% no-repeat, #000; }
.moon-skin-photo .moon-astro-ph {
  background:
    linear-gradient(180deg, rgba(14,18,16,0) 55%, rgba(14,18,16,.75) 100%),
    var(--ph-moon) center / 78% no-repeat,
    #050605;
  filter: grayscale(1) contrast(1.05);
}

/* Faint moon over the station panels */
.moon-skin-photo .moon-onair {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px),
    var(--mc-panel);
  position: relative; padding-right: 5.5rem;
}

/* Schedule: bootprints-on-regolith feel behind the log */
.moon-skin-photo .moon-schedule-start { color: var(--mc-green); font-family: var(--mc-mono); font-style: normal; }

/* Footer: lunar horizon strip */
.moon-skin-photo .site-footer {
  background:
    linear-gradient(180deg, #0E1210 0%, rgba(14,18,16,.6) 60%, rgba(14,18,16,.85) 100%),
    var(--ph-surface) center 70% / cover no-repeat !important;
}

/* Daisy keeps her own black-and-white page: no banner, no photos */
.moon-skin-photo.moon-page-daisy .entry-header { display: none !important; }

@media (max-width: 600px) {
  .moon-skin-photo .moon-hero { min-height: 0; padding-top: 5.5rem; background-position: 0 0, center bottom 22px, 0 0; }
  .moon-skin-photo:not(.home) .entry-header { padding-top: 3.25rem; }
}

html:has(body.moon-skin-photo), body.moon-skin-photo { overflow-x: hidden; overflow-x: clip; }

/* ---- Home photo text options (choose one in Settings, preview with ?hero=N) ---- */
/* 1: move the green line down onto the dark lunar horizon, under the title */
.moon-hero-v1 .moon-hero .moon-hero-kicker { order: 2; margin: 0 0 1.25rem; }
.moon-hero-v1 .moon-hero .moon-hero-title { order: 1; margin-bottom: .6rem; }
.moon-hero-v1 .moon-hero .moon-btn { order: 3; }
.moon-hero-v1 .moon-hero .moon-hero-credit { order: 4; }
/* 2: console tag: dark backing box with a thin green outline */
.moon-hero-v2 .moon-hero .moon-hero-kicker {
  background: rgba(10,13,11,.82); border: 1px solid rgba(124,252,154,.55); border-radius: 3px;
  padding: .45em .9em; margin-bottom: 1rem;
}
/* 3: brighter text: white line with a strong shadow, slightly larger */
.moon-hero-v3 .moon-hero .moon-hero-kicker {
  color: #fff; font-size: .85rem; text-shadow: 0 0 6px #000, 0 1px 14px #000, 0 0 2px #000;
}
/* 4: reframe the photo so Earth sits up and to the right, clear of the text */
.moon-hero-v4 .moon-hero {
  background:
    linear-gradient(180deg, rgba(14,18,16,0) 0%, rgba(14,18,16,0) 58%, rgba(14,18,16,.85) 86%, #0E1210 100%),
    var(--ph-hero) 15% 55% / 160% auto no-repeat,
    #000;
}
@media (max-width: 600px) {
  .moon-hero-v4 .moon-hero { background-size: auto, 260% auto, auto; background-position: 0 0, 10% 45%, 0 0; }
}

/* Astronauts pages: vector lunar-lander scene (original art, assets/lander.svg) */
.moon-skin-photo.moon-page-astronauts .entry-header,
.moon-skin-photo.single-moon_astronaut .entry-header {
  background: #05070A url("lander.svg?v=6") center bottom / auto 100% no-repeat !important;
  min-height: 340px; display: flex; flex-direction: column; justify-content: center; padding-top: 4.5rem;
}
.moon-skin-photo.moon-page-astronauts .entry-header .entry-title,
.moon-skin-photo.single-moon_astronaut .entry-header .entry-title { text-shadow: 0 0 18px rgba(5,7,10,.9); }
@media (max-width: 760px) {
  .moon-skin-photo.moon-page-astronauts .entry-header,
  .moon-skin-photo.single-moon_astronaut .entry-header { min-height: 280px; padding-top: 8.5rem; justify-content: flex-start; background-image: url("lander-m.svg?v=2") !important; }
}

/* The whole full moon, round, at the right of the On Air panel */
.moon-skin-photo .moon-onair::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--ph-moon) center / 122% no-repeat; opacity: .9;
  box-shadow: 0 0 18px rgba(216,224,218,.12);
}

/* Home: no gap between the header and the hero */
.home.moon-skin-photo #primary { margin-top: 0 !important; }
.home.moon-skin-photo .moon-hero { margin-top: 0 !important; }

/* Home hero on wider screens: more room above the title so Earth clears both the header and the title (Nov 29) */
@media (min-width: 1300px) {
  .moon-skin-photo .moon-hero { padding-top: 15rem; background-position: 0 0, center 61%, 0 0; }
}
@media (min-width: 1700px) {
  .moon-skin-photo .moon-hero { padding-top: 20rem; background-position: 0 0, center 58%, 0 0; }
}
