/* ============================================================
   SPACE REQUIREMENTS PAGE
   Only loaded by space-requirements.html.
   ============================================================ */

/* The page leads with an h1 for search; .section-header only
   styles h2, so mirror those rules here. */
.section-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 16px 0;
  color: var(--white);
}


/* ─── 1. Key figures strip ─────────────────────────────────── */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(201,168,76,.35);
  border-bottom: 1px solid rgba(201,168,76,.35);
  max-width: 940px;
  margin: 0 auto clamp(38px, 6vw, 64px);
}

.spec-stat {
  text-align: center;
  padding: 22px 16px;
}

/* Divider between figures rather than a border on each, so the
   outer edges stay clean. */
.spec-stat + .spec-stat {
  border-left: 1px solid rgba(201,168,76,.28);
}

.spec-stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--off-white);
  line-height: 1.2;
}

.spec-stat-label {
  margin-top: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}


/* ─── 2. Diagram cards ─────────────────────────────────────── */
.spec-diagrams {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* min-width:0 is what makes the diagram's overflow-x actually scroll:
   without it a grid item stretches to fit its widest content, so the
   drawing would push the card past the viewport instead. */
.spec-card {
  position: relative;
  min-width: 0;
  background: linear-gradient(180deg, var(--maroon-90), rgba(42,2,16,.98));
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 26px 24px 24px;
}

.spec-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.spec-card-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(201,168,76,.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--off-white);
  font-weight: 600;
}

/* The diagrams carry fine dimension text, so they keep a floor
   width and scroll inside the card rather than shrinking until
   the labels are unreadable on a phone. */
.spec-diagram {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.spec-diagram svg {
  display: block;
  width: 100%;
  min-width: 430px;
  height: auto;
}

/* Shared diagram ink */
.spec-diagram .dim-line {
  stroke: var(--light-muted);
  stroke-width: 1.4;
}

.spec-diagram .ext-line {
  stroke: rgba(196,184,186,.45);
  stroke-width: 1;
}

.spec-diagram .dim-text {
  fill: var(--off-white);
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.spec-diagram .part-text {
  fill: var(--light-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
}

/* Shown only where the diagram cannot fit at a legible size, so the
   clipped edge reads as scrollable rather than broken. */
.spec-diagram-hint {
  display: none;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.spec-caption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--light-muted);
  line-height: 1.65;
}


/* ─── 3. Note strip ────────────────────────────────────────── */
.spec-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 12px;
  background: rgba(86,6,29,.55);
  border: 1px solid rgba(201,168,76,.3);
}

.spec-note-mark {
  color: var(--gold);
  font-size: 17px;
  line-height: 1.4;
}

.spec-note p {
  margin: 0;
  font-size: 14px;
  color: var(--light-muted);
}


/* ─── 4. Power / access blocks ─────────────────────────────── */
.spec-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: clamp(38px, 6vw, 64px);
}

.spec-block {
  background: var(--well);
  border: 1px solid rgba(245,240,232,.12);
  border-radius: 16px;
  padding: 28px 26px;
}

.spec-block h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 6px;
}

.spec-block-lead {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  color: var(--light-muted);
  line-height: 1.6;
}

.spec-list li::before {
  content: '✦';
  flex-shrink: 0;
  color: var(--gold);
  font-size: 12px;
  line-height: 1.75;
}


/* ─── 5. Closing call to action ────────────────────────────── */
.spec-cta {
  margin-top: clamp(38px, 6vw, 64px);
  text-align: center;
}

.spec-cta p {
  color: var(--light-muted);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 22px;
}

.spec-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ─── 6. Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .spec-diagrams,
  .spec-blocks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .spec-strip {
    grid-template-columns: 1fr;
  }
  /* Give the drawings back the width the card padding was taking. */
  .spec-card {
    padding: 22px 14px 20px;
  }
  .spec-diagram-hint {
    display: block;
  }
  .spec-stat + .spec-stat {
    border-left: none;
    border-top: 1px solid rgba(201,168,76,.28);
  }
  .spec-cta-actions .btn-gold,
  .spec-cta-actions .btn-outline {
    width: 100%;
  }
}
