/* v39 - Change statement: Preserves compact card/tile layout while supporting unified infeasible-state display and fueled-HLS-to-LLO mission text. */
/* v34 - Change statement: Adds a banner header and refreshed intro tile using the updated logo. */
:root {
  --bg: #ffffff;
  --card: #ffffff;
  --line: #a6a6a6; /* 65% luma gray */
  --soft-line: #d6d6d6;
  --text: #141414;
  --muted: #5d646b;
  --accent: #0f5ea8;
  --warn-bg: #fff8e8;
  --warn-line: #caa94b;
  --danger-bg: #fff1f1;
  --danger-line: #c94343;
  --danger-text: #8f1f1f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.grid,
.top-grid,
.single-row,
.sidebar-layout,
.sidebar-stack,
.main-stack { display: contents; }
.card {
  position: relative;
  min-width: 0;
  background: var(--card);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) {
  .card::after {
    content: "";
    position: absolute;
    top: 4%;
    right: 0;
    height: 92%;
    width: 0;
    border-right: 1px solid var(--line);
    pointer-events: none;
  }
}
.full-card { grid-column: 1 / -1; }
.full-card::after, .banner::after { display: none; }
.wide-card { grid-column: span 2; }
.mission-profile-card { grid-column: auto; }
.burn-table-card { grid-column: 1 / -1; }

.notes-panel { grid-column: 1 / -1; }
.muted { color: var(--muted); line-height: 1.38; }
.banner {
  padding: 0;
  overflow: hidden;
  position: relative;
  background: #05080d;
}
.banner-image {
  display: block;
  width: 100%;
  height: auto;
}
.banner-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: calc(100% - 180px);
  color: #ffffff;
  text-align: center;
  font-size: clamp(1.4rem, 4.35vw, 4.25rem);
  line-height: 1;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.65);
}
.banner-actions {
  position: absolute;
  right: 14px;
  top: 10px;
  z-index: 2;
}
.banner-actions .secondary {
  background: rgba(255,255,255,0.92);
}
.intro-card p { margin: 0 0 8px; color: var(--muted); }
.intro-copy { line-height: 1.42; }
.intro-logo {
  float: right;
  width: min(220px, 34vw);
  max-width: 42%;
  height: auto;
  margin: 0 0 10px 16px;
  display: block;
}

h2 { margin: 0 0 10px; font-size: 1rem; line-height: 1.2; }
button {
  border: 1px solid var(--soft-line);
  background: var(--accent);
  color: #fff;
  border-radius: 0;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.9rem;
}
button.secondary { background: #fff; color: var(--text); }
label { display: grid; gap: 4px; font-size: 0.86rem; font-weight: 600; }
input, select {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--soft-line);
  border-radius: 0;
  font-size: 0.9rem;
  background: #fff;
}
input[readonly] { background: #f5f5f5; color: var(--muted); }
input[type=range] { padding: 0; border: 0; }
.value-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--soft-line);
  border-radius: 0;
  color: var(--accent);
  font-weight: 700;
}
.form-grid, .notes, .summary-list, .slider-stack { display: grid; gap: 10px; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.metric { border: 1px solid var(--soft-line); border-radius: 0; padding: 9px; }
.metric.danger { border-color: var(--danger-line); background: var(--danger-bg); }
.metric-label { color: var(--muted); font-size: 0.78rem; margin-bottom: 5px; }
.metric-value { font-size: 1.15rem; font-weight: 700; }
.metric-note { margin-top: 5px; color: var(--muted); font-size: 0.75rem; line-height: 1.3; }
.metric.danger .metric-note, .metric.danger .metric-value { color: var(--danger-text); }
.notes div, .summary-list div { color: var(--muted); line-height: 1.35; }
.notes-panel ol { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.38; }
.notes-panel li { margin: 7px 0; }
sup a { color: var(--accent); text-decoration: none; }
sup a:hover { text-decoration: underline; }
.small { font-size: 0.78rem; }
.warning-box { border: 1px solid var(--warn-line); background: var(--warn-bg); border-radius: 0; padding: 9px 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 0.82rem; }
th, td { text-align: left; border-bottom: 1px solid var(--soft-line); padding: 6px 6px; vertical-align: top; }
th { color: var(--muted); font-weight: 700; }
.badge { display: inline-block; padding: 2px 6px; border: 1px solid var(--soft-line); border-radius: 0; font-size: 0.74rem; white-space: nowrap; }
.checkbox-field { align-items: start; }
.checkbox-stack { display: grid; gap: 7px; }
.checkline { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.checkline input { width: auto; }
.single-row { margin: 0; }
.fineprint-window {
  border: 1px solid var(--soft-line);
  border-radius: 0;
  background: #f7f7f7;
  padding: 8px;
  max-height: 108px;
  overflow: auto;
  color: var(--muted);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 10px;
  line-height: 1.3;
}
.section-head { display: flex; align-items: center; justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
.compact-selector { margin-bottom: 8px; }
.inline-control { max-width: 240px; }
.hidden { display: none !important; }
.collapsed-card summary {
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  list-style-position: outside;
}
.collapsed-card .collapsible-content { margin-top: 10px; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; }
.solver-buttons button { min-width: 118px; }
.payload-fuel-grid > label { margin-bottom: -6px; }
.input-action-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.input-action-row button { white-space: nowrap; }
.units-row th { font-size: 0.68rem; font-weight: 600; color: var(--muted); background: #f7f7f7; }
@media (min-width: 900px) {
  .mission-profile-card { grid-column: span 2; }
}
@media (min-width: 1920px) {
  .page { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mission-profile-card { grid-column: span 3; }
}
@media (max-width: 899px) {
  .page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide-card { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  body { font-size: 13px; }
  .page { grid-template-columns: 1fr; }
  .card { padding: 10px 10px; }
  .banner-title { width: calc(100% - 24px); font-size: clamp(1.05rem, 6vw, 1.8rem); }
  .banner-actions { right: 8px; top: 8px; }
  .intro-logo { float: none; width: min(100%, 220px); max-width: 100%; margin: 0 0 10px 0; }
  .field-pair, .summary-grid, .input-action-row { grid-template-columns: 1fr; }
  .wide-card, .full-card, .notes-panel, .mission-profile-card { grid-column: 1 / -1; }
}
/*  &#xA9; 2026 Christian S. Rode  All rights reserved.  */
