/* Copyright (C) Rein Ytterberg */

/* ============================================================================
   SPACE LOGISTICS PAGE
   ============================================================================
   Styles specific to the space logistics page (space.html).

   Shared pattern classes (used here):
   - .tab-button: Tab/button styling for condition-tabs, event-steps
   - .section-gutter-sm: Padding for .conditions, .robotics-space, .space-pilot
   - .footer-link: Footer link styling

   See style.css for the shared pattern definitions.
   ============================================================================ */

/* Space Hero & Background */
.space-hero {
  background: #08152e;
  color: white;
}

/* Space Opening Section */
.space-opening {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  padding-top: 38px;
  padding-bottom: 28px;
}

.space-opening h1 {
  font-size: clamp(3rem, 5.2vw, 5.1rem);
}

.space-opening em {
  color: #91b5ff;
}

.space-opening p {
  font-size: 1.1rem;
  max-width: 440px;
}

.space-opening strong {
  display: block;
  font-weight: 400;
  margin-top: 13px;
  color: #b9d0ff;
}

/* Lunar Hero Image */
.lunar-hero {
  max-width: 1440px;
  margin: auto;
  position: relative;
}

.lunar-hero img {
  width: 100%;
  height: clamp(320px, 39vw, 520px);
  object-fit: contain;
  object-position: center;
}

.lunar-hero figcaption {
  position: absolute;
  bottom: 14px;
  left: 25px;
  background: #08152edb;
  padding: 4px 9px;
  color: white;
  font-size: 0.8125rem;
}

/* Space Route Overview */
.space-route {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  padding-top: 27px;
  padding-bottom: 18px;
}

.space-route > div {
  border-top: 2px solid #7399e8;
  padding-top: 14px;
}

.space-route h2 {
  font-size: 1.8rem;
  color: #b7ceff;
}

.space-route p {
  font-size: 1rem;
  margin-top: 8px;
}

.route-statement {
  max-width: 1280px;
  font-size: 1rem;
  padding-bottom: 30px;
}

/* Conditions Section
   Note: Padding handled by .section-gutter-sm class in style.css
*/
.conditions-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: end;
}

.conditions h2,
.robotics-space h2,
.space-foundations h2,
.space-pilot h2 {
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
}

.conditions em,
.robotics-space em,
.space-pilot em {
  color: var(--blue);
}

.conditions-intro > p {
  font-size: 1rem;
}

.condition-workspace {
  margin-top: 30px;
}

/* Condition Tabs
   Note: Button styling handled by .tab-button class in style.css
*/
.condition-tabs {
  display: flex;
  gap: 15px 30px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}

/* Condition Panel (interactive content) */
#condition-panel {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 55px;
  align-items: center;
  padding-top: 28px;
  min-height: 230px;
}

.condition-visual {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  color: var(--blue);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: bold;
  letter-spacing: -0.04em;
}

.condition-visual span {
  white-space: nowrap;
}

.condition-visual.word-mode {
  font-size: 2rem;
  gap: 10px 20px;
}

#condition-panel h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

#condition-panel p {
  font-size: 1rem;
  max-width: 590px;
}

.condition-link {
  color: var(--blue);
  margin-top: 12px;
}

/* Space Exception Section */
.space-exception {
  background: #ffd984;
  padding: 50px 0;
}

.exception-opening {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 30px;
}

.exception-opening h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.exception-opening em {
  color: #9d300b;
}

.exception-opening p {
  font-size: 1rem;
  max-width: 390px;
}

/* Space Event Layout */
.space-event-layout {
  display: grid;
  grid-template-columns: 1.13fr 1fr;
  gap: 55px;
  align-items: center;
}

.space-event-layout figure {
  position: relative;
}

.space-event-layout img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.space-event-layout figcaption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: #ffffffe0;
  color: var(--ink);
  padding: 4px 7px;
  font-size: 0.75rem;
}

/* Event Steps Tabs
   Note: Button styling handled by .tab-button class in style.css
*/
.event-steps {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #af8335;
  margin-bottom: 22px;
}

.event-status {
  font-size: 0.875rem;
  font-weight: bold;
  color: #963000;
  margin-bottom: 12px;
}

.event-copy h3 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}

.event-copy #event-body {
  font-size: 1rem;
  min-height: 96px;
}

.event-record {
  border-top: 1px solid #b58a43;
  margin-top: 15px;
  padding-top: 15px;
}

.event-record span {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 5px;
}

.event-record b {
  font-size: 1rem;
}

#event-panel {
  min-height: 300px;
}

/* Robotics Space Section
   Note: Padding handled by .section-gutter-sm class in style.css
*/
.robotics-space > div > p {
  margin: 22px 0;
  font-size: 1rem;
  max-width: 500px;
}

.robotics-space a,
.space-pilot aside a {
  text-underline-offset: 5px;
  color: var(--blue);
  font-size: 1rem;
}

.division-of-work article + article {
  border-top: 1px solid var(--rule);
  margin-top: 25px;
  padding-top: 25px;
}

.division-of-work h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.division-of-work p {
  font-size: 1rem;
}

/* Space Foundations Section */
.space-foundations {
  background: #08152e;
  color: white;
  padding: 50px 0;
}

.foundation-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
}

.space-foundations em {
  color: #9eb9ff;
}

.space-foundations p {
  font-size: 1rem;
  margin-top: 22px;
}

.space-foundations dl {
  margin: 0;
}

.space-foundations dl > div + div {
  border-top: 1px solid #435474;
  padding-top: 19px;
  margin-top: 19px;
}

.space-foundations dt {
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: bold;
  color: #b7ceff;
}

.space-foundations dd {
  margin: 9px 0 0;
  font-size: 1rem;
}

/* Space Pilot Call-to-Action Section
   Note: Padding handled by .section-gutter-sm class in style.css
*/
.space-pilot > div > p {
  font-size: 1rem;
  margin-top: 22px;
}

.space-pilot > div > p + p {
  margin-top: 12px;
}

.space-pilot .cta {
  margin-top: 25px;
  font-size: 1rem;
}

.pilot-email {
  display: block;
  font-size: 1rem;
  margin-top: 12px;
}

.space-pilot aside h3 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.space-pilot aside p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.space-pilot p.maturity-note {
  font-size: 0.875rem;
  margin-top: 28px;
  margin-bottom: 0;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
} /* Footer links
   Note: Link styling handled by .footer-link class in style.css
*/

/* ============================================================================
   NETWORK ROADMAP SECTION
   ============================================================================
   Shows future technology roadmap for space operations.
*/

.network-roadmap {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid #435474;
}

.network-roadmap h3 {
  font-size: 1.8rem;
  color: #b7ceff;
}

.network-roadmap > p {
  margin-top: 10px;
  max-width: none;
}

.network-roadmap > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.network-roadmap strong {
  display: block;
  margin-bottom: 7px;
}

.network-roadmap a {
  font-size: 0.875rem;
  text-underline-offset: 4px;
  white-space: nowrap;
}

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

@media (max-width: 950px) {
  .space-opening,
  .conditions-intro,
  .space-event-layout,
  .robotics-space,
  .foundation-layout,
  .space-pilot {
    gap: 30px;
  }

  .condition-tabs {
    gap: 10px 20px;
  }

  #condition-panel {
    gap: 25px;
  }

  .exception-opening {
    gap: 30px;
  }

  .event-copy h3 {
    font-size: 2.1rem;
  }
}

@media (max-width: 720px) {
  .space-opening {
    display: block;
    padding-top: 27px;
    padding-bottom: 23px;
  }

  .space-opening h1 {
    font-size: 3rem;
  }

  .space-opening p {
    font-size: 1rem;
    margin-top: 21px;
  }

  .lunar-hero img {
    height: auto;
    object-position: center;
  }

  .lunar-hero figcaption {
    left: 12px;
    right: 12px;
    bottom: 10px;
    font-size: 0.75rem;
  }

  .space-route {
    gap: 15px;
    padding-top: 22px;
  }

  .space-route h2 {
    font-size: 1.5rem;
  }

  .space-route p {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .route-statement {
    font-size: 0.9375rem;
    padding-bottom: 24px;
  }

  .conditions-intro {
    display: block;
  }

  .conditions h2,
  .robotics-space h2,
  .space-foundations h2,
  .space-pilot h2 {
    font-size: 2.35rem;
  }

  .conditions-intro > p {
    margin-top: 20px;
  }

  .condition-workspace {
    margin-top: 22px;
  }

  .condition-tabs {
    gap: 5px 18px;
  }

  #condition-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 23px;
    min-height: 330px;
  }

  .condition-visual {
    justify-content: start;
    font-size: 3rem;
  }

  .condition-visual.word-mode {
    font-size: 1.7rem;
  }

  #condition-panel h3 {
    font-size: 1.75rem;
  }

  #condition-panel h3 br {
    display: none;
  }

  .space-exception {
    padding: 35px 0;
  }

  .exception-opening {
    display: block;
    margin-bottom: 23px;
  }

  .exception-opening h2 {
    font-size: 2.4rem;
  }

  .exception-opening p {
    margin-top: 19px;
  }

  .space-event-layout {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .space-event-layout img {
    max-height: 310px;
  }

  .event-copy h3 {
    font-size: 2.2rem;
  }

  .event-copy #event-body {
    min-height: 0;
  }

  #event-panel {
    min-height: 280px;
  }

  .event-steps {
    margin-bottom: 18px;
  }

  .robotics-space,
  .foundation-layout,
  .space-pilot {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .space-foundations {
    padding: 35px 0;
  }

  .network-roadmap > div {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .network-roadmap h3 {
    font-size: 1.6rem;
  }
}
