/* Cosmic Distance & Light-Travel Calculator: tool-specific styles only.
   Shared layout, buttons, inputs, badges and notices come from /assets/ui.css.
   Colours use ui.css variables only, except brand navy #0f2a44,
   blue #2a5a8a and orange #e67e22. */

.cosmic-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-bottom: var(--s4);
}
.cosmic-form .field { margin-bottom: 0; }
.cosmic-form select.input { width: 100%; }

.cosmic-note {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin: 0;
}
.cosmic-note[hidden] { display: none; }

.cosmic-results { margin-bottom: var(--s4); }
.cosmic-results:last-child { margin-bottom: 0; }

.cosmic-result-block {
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-card);
  background: var(--surface-2);
  padding: var(--s4);
  margin-bottom: var(--s4);
}
.cosmic-result-block:last-child { margin-bottom: 0; }
.cosmic-result-block--light { border-left-color: #e67e22; }

.cosmic-result-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s2);
}
.cosmic-big {
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 var(--s2);
  overflow-wrap: anywhere;
}
.cosmic-sub {
  font-size: var(--fs-lg);
  color: var(--ink-2);
  margin: 0;
  overflow-wrap: anywhere;
}
.cosmic-working {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: var(--s2) var(--s3);
  margin: var(--s3) 0 0;
  overflow-wrap: anywhere;
}
.cosmic-universe {
  margin: var(--s3) 0 0;
  font-weight: 650;
  color: var(--warn);
}
.cosmic-universe[hidden] { display: none; }

.cosmic-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.cosmic-table th,
.cosmic-table td {
  text-align: left;
  vertical-align: top;
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--line);
}
.cosmic-table tr:last-child th,
.cosmic-table tr:last-child td { border-bottom: 0; }
.cosmic-table th { font-weight: 650; }
.cosmic-table td { overflow-wrap: anywhere; }

.cosmic-list { margin: 0; padding-left: var(--s5); }
.cosmic-list li { margin-bottom: var(--s2); }
.cosmic-list li:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  .cosmic-form { grid-template-columns: 1fr; }
  .cosmic-big { font-size: var(--fs-2xl); }
  .cosmic-table th,
  .cosmic-table td { padding: var(--s2); }
}
