/* Satellite streak warnings (/satellites/streaks, ADR 0123): light theme on the
   site's variables, laid out like the night planner (ADR 0122). streaks-dark.css
   overrides the field chart for the dark theme; night vision is the site-wide
   theme (ADR 0086). */

.sk { display: grid; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 0 12px 24px; }
.sk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.sk h1 { margin: 0 0 6px; font-size: 1.6rem; }
.sk h2 { margin: 0 0 6px; font-size: 1.15rem; }
.sk-intro p { margin: 0; max-width: 72ch; }

/* ---- Form ---- */
.sk-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.4fr); gap: 12px; }
.sk-field { display: grid; gap: 4px; font-size: 0.92rem; }
.sk-field > span { font-weight: 600; }
.sk-field select, .sk-field input {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; width: 100%;
}
.sk-target input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92rem; }
.sk-custom { margin-top: 10px; }
.sk-custom > summary { cursor: pointer; color: var(--accent-moon); font-weight: 600; }
.sk-custom .sk-field { max-width: 28rem; margin-top: 8px; }
.sk-shape { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; }
.sk-shape legend { font-weight: 600; font-size: 0.92rem; padding: 0; margin-bottom: 4px; }
.sk-radio { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 9px; font-size: 0.92rem; }
.sk-small { width: 6.5rem; }
.sk-when { margin-top: 12px; grid-template-columns: minmax(200px, 16rem) minmax(120px, 10rem); }
.sk-go { margin-top: 4px; font: inherit; font-weight: 650; color: #fff; background: var(--accent-moon); border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer; }
.sk-go:hover { filter: brightness(1.1); }
.sk-error { color: var(--warn-text); font-weight: 600; margin: 8px 0 0; }

/* ---- Result ---- */
.sk-facts { list-style: none; padding: 0; margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.sk-layout { display: grid; grid-template-columns: 1fr minmax(260px, 400px); gap: 18px; align-items: start; margin-bottom: 12px; }
.sk-summary .sk-facts { flex-direction: column; }
.sk-chart { margin: 0; }
.sk-chart svg { display: block; width: 100%; height: auto; font-family: inherit; }
.sk-sky { fill: #1c2747; }
.sk-outline { fill: rgb(255 255 255 / 0.05); stroke: #e8ecff; stroke-width: 1.5; }
.sk-compass line { stroke: #9aa6cc; stroke-width: 1; }
.sk-compass text { fill: #9aa6cc; font-size: 11px; }
.sk-track line { stroke: #ffd166; stroke-width: 2; stroke-linecap: round; }
.sk-track circle { fill: #ffd166; }
.sk-track text { fill: #ffd166; font-size: 11px; font-weight: 700; }
.sk-dark line { stroke: #8fa0c9; stroke-dasharray: 5 4; }
.sk-dark circle, .sk-dark text { fill: #8fa0c9; }
.sk-near { fill: none; stroke: #ff8fa3; stroke-width: 1.5; stroke-dasharray: 2 2; }

.sk-table-wrap { min-width: 0; overflow-x: auto; }
.sk-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.sk-table th, .sk-table td { text-align: left; padding: 7px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.sk-table thead th { border-top: 0; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.sk-table tbody th { font-weight: 650; }
.sk-table tbody th a { white-space: nowrap; }
.sk-near-list { margin-top: 12px; }
.sk-near-list > summary { cursor: pointer; color: var(--accent-moon); font-weight: 600; }
.sk-sub { display: block; font-weight: 400; font-size: 0.75rem; color: var(--muted); }
.sk-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sk-maybe { color: var(--muted); }
.sk-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; }
.sk-btn { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }
.sk-api code { word-break: break-all; }

/* ---- Phones: the chart stays on top; the table becomes cards ---- */
@media (max-width: 820px) {
  .sk-layout { grid-template-columns: 1fr; }
  .sk-chart { max-width: 420px; margin: 0 auto; width: 100%; }
}
@media (max-width: 720px) {
  .sk { padding: 0 8px 16px; }
  .sk-card { padding: 14px 12px; }
  .sk-row, .sk-when { grid-template-columns: 1fr; }
  .sk-table thead { display: none; }
  .sk-table, .sk-table tbody, .sk-table tr, .sk-table td, .sk-table th { display: block; width: auto; }
  .sk-table-main tr { border-top: 1px solid var(--line); padding: 8px 0; display: flex; flex-wrap: wrap; gap: 3px 14px; }
  .sk-table td, .sk-table th { border: 0; padding: 0; }
  .sk-table-main td:first-child { flex: 0 0 1.4rem; font-weight: 700; }
  .sk-table-main tbody th { flex: 1 1 calc(100% - 3rem); }
  .sk-table-main td:nth-child(n+3) { display: inline-block; margin-left: 1.4rem; white-space: nowrap; }
  .sk-table-main td:nth-child(n+4) { margin-left: 0; }
  .sk-table-main td:nth-child(6) { margin-left: 1.4rem; }
  .sk-table-near tr { border-top: 1px solid var(--line); padding: 8px 0; display: flex; flex-wrap: wrap; gap: 2px 12px; }
  .sk-table-near tbody th { flex: 1 1 100%; }
  .sk-table-main td:nth-child(3)::before { content: "In "; color: var(--muted); }
  .sk-table-main td:nth-child(4)::before { content: "Out "; color: var(--muted); }
  .sk-table-main td:nth-child(5)::before { content: "In field "; color: var(--muted); }
  .sk-table-main td:nth-child(6)::before { content: "Speed "; color: var(--muted); }
  .sk-table-main td:nth-child(7)::before { content: "Light "; color: var(--muted); }
  .sk-table-main td:nth-child(8)::before { content: "Mag "; color: var(--muted); }
  .sk-table-main td:nth-child(9)::before { content: "± "; color: var(--muted); }
}

/* ---- Exposure lists ---- */
.sk-exposures { margin-top: 14px; }
.sk-exposures > summary { cursor: pointer; color: var(--accent-moon); font-weight: 600; }
.sk-exposures .sk-field { margin-top: 8px; }
.sk-exposures textarea {
  font: 0.88rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 100%; min-height: 8rem; resize: vertical;
}
.sk-verdict { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 0.8rem; font-weight: 650; }
.sk-v-clear .sk-verdict { background: rgb(46 160 90 / 0.16); color: var(--text); }
.sk-v-streaked .sk-verdict { background: rgb(214 92 60 / 0.2); color: var(--warn-text); }
.sk-v-maybe .sk-verdict { background: rgb(220 170 40 / 0.2); color: var(--text); }
.sk-exp-sat { display: block; font-size: 0.82rem; }
.sk-btn[type="submit"] { font-family: inherit; font-size: inherit; color: inherit; background: none; cursor: pointer; }
@media (max-width: 640px) {
  .sk-table-exp thead { display: none; }
  .sk-table-exp tr { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
  .sk-table-exp td { border: 0; padding: 0; }
  .sk-table-exp td:nth-child(1), .sk-table-exp td:nth-child(3), .sk-table-exp td:nth-child(4) { display: none; }
  .sk-table-exp td:nth-child(6) { grid-column: 1 / -1; }
}
