/* The Orders tab: the season tiles, the rules, pinned notes, runs as numbered
   steps. Same tokens as style.css; plain word chips, no icons. */
.orders-section { margin-bottom: 0.9rem; }
.orders-head { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 0.6rem; }
.orders-head h3 {
  margin: 0;
  font-family: 'EuroCaps', 'Michroma', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--hud);
  text-transform: uppercase;
}
.orders-head .orders-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

.orders-pins { display: grid; gap: 0.6rem; }
.orders-pin { background: rgba(255, 113, 0, 0.05); border-left: 3px solid var(--hud); padding: 0.7rem 1rem; }
.orders-pin h3 { margin: 0 0 0.25rem; font-family: 'Share Tech Mono', monospace; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--hud); font-weight: 400; }
.orders-pin p { margin: 0; font-size: 0.92rem; line-height: 1.45; white-space: pre-line; }
.orders-pin-foot { margin-top: 0.4rem; font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: var(--ink-dim); }

.orders-runs { display: grid; gap: 0.8rem; }
.orders-run { background: rgba(0, 0, 0, 0.18); border: 1px solid var(--panel-edge); border-left: 4px solid var(--ink-dim); padding: 0.8rem 1rem 0.7rem; }
.orders-run.combat { border-left-color: var(--hostile); }
.orders-run.missions { border-left-color: var(--warn); }
.orders-run.haul, .orders-run.hunt { border-left-color: var(--hud); }
.orders-run.data { border-left-color: var(--friendly); }
.orders-run.wing { border-left-color: var(--alliance); }
.orders-run.call { border-left-color: var(--ink-dim); }
.orders-run-head { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: baseline; justify-content: space-between; }
.orders-run-head h3 { margin: 0; font-family: 'Share Tech Mono', monospace; font-size: 1rem; letter-spacing: 0.04em; color: var(--ink); font-weight: 400; }
.orders-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.orders-tags .chip { cursor: default; padding: 0.15rem 0.55rem; font-size: 0.68rem; letter-spacing: 0.08em; }
.orders-tags button.chip { cursor: pointer; color: var(--hud); }
.orders-status { font-family: 'Share Tech Mono', monospace; font-size: 0.74rem; color: var(--ink-dim); margin: 0.35rem 0 0.6rem; line-height: 1.4; }
.orders-status b { font-weight: 400; letter-spacing: 0.06em; }
.orders-run.combat .orders-status b { color: var(--hostile); }
.orders-run.missions .orders-status b { color: var(--warn); }
.orders-run.haul .orders-status b, .orders-run.hunt .orders-status b { color: var(--hud); }
.orders-run.data .orders-status b { color: var(--friendly); }
.orders-run.wing .orders-status b { color: #57e389; }
.orders-run.call .orders-status b { color: var(--ink-dim); }
.orders-stale { color: var(--warn); font-style: italic; }
.orders-intro { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--ink-dim); }
.orders-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0.45rem; }
.orders-steps li { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); gap: 0.4rem; counter-increment: step; font-size: 0.92rem; line-height: 1.45; }
.orders-steps li::before { content: counter(step, decimal-leading-zero); font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; color: var(--hud-dim); padding-top: 0.15rem; }
.orders-steps li.avoid::before { content: "!!"; color: var(--hostile); }
.orders-verb { font-family: 'Share Tech Mono', monospace; letter-spacing: 0.08em; font-size: 0.74rem; font-weight: 400; color: var(--hud); margin-right: 0.4rem; white-space: nowrap; }
.orders-steps li.avoid .orders-verb { color: var(--hostile); }
.orders-where { font-weight: 700; color: var(--ink); }
.orders-fine { display: block; color: var(--ink-dim); font-size: 0.82rem; }
/* two filter rows over the runs: what you do, and the board it scores on (2026-10-21) */
.orders-filters { display: grid; gap: 0.35rem; justify-items: end; }
.orders-filter-label { font-family: 'Share Tech Mono', monospace; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); align-self: center; min-width: 4.2rem; text-align: right; margin-right: 0.15rem; }
/* the other spots for the same job, under the steps */
.orders-also { margin: 0.55rem 0 0; color: var(--ink-dim); font-size: 0.82rem; line-height: 1.45; }
.orders-also b { color: var(--hud-dim); font-family: 'Share Tech Mono', monospace; font-weight: 400; letter-spacing: 0.08em; font-size: 0.68rem; margin-right: 0.35rem; }
.orders-why { margin: 0.6rem 0 0; padding-top: 0.45rem; border-top: 1px dashed var(--panel-edge); color: var(--ink-dim); font-size: 0.82rem; line-height: 1.45; }
.orders-why b { color: var(--hud-dim); font-family: 'Share Tech Mono', monospace; font-weight: 400; letter-spacing: 0.08em; font-size: 0.68rem; margin-right: 0.35rem; }
.orders-collapsed { color: var(--ink-dim); font-family: 'Share Tech Mono', monospace; font-size: 0.76rem; padding: 0.55rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }

.orders-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.9rem; }
.orders-rules h4 { margin: 0 0 0.3rem; font-family: 'Share Tech Mono', monospace; font-size: 0.9rem; letter-spacing: 0.06em; font-weight: 400; }
.orders-rules .do h4 { color: #57e389; }
.orders-rules .dont h4 { color: var(--hostile); }
.orders-rules ul { margin: 0; padding-left: 1.2rem; font-size: 0.9rem; line-height: 1.45; }
.orders-rules li { margin: 0.25rem 0; }
/* the rules roll up and down (2026-10-21), under the week's orders and above the missions since 2026-11-05: rolled up, the panel is one line */
.orders-rules-wrap .orders-head { margin-bottom: 0; }
.orders-rules-head { justify-content: flex-start; align-items: center; cursor: pointer; }
.orders-rules-head #orders-rules-toggle { margin-left: auto; }
.orders-rules-wrap .orders-rules { margin-top: 0.8rem; }

.orders-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 0.6rem; margin-bottom: 0.6rem; }
.orders-tile { background: rgba(0, 0, 0, 0.18); border: 1px solid var(--panel-edge); padding: 0.6rem 0.8rem; }
.orders-tile span { display: block; font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; letter-spacing: 0.14em; color: var(--hud-dim); }
.orders-tile b { font-family: 'Share Tech Mono', monospace; font-size: 1.35rem; font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.orders-tile b.zero { color: var(--ink-dim); }
.orders-tile small { display: block; color: var(--ink-dim); font-size: 0.74rem; margin-top: 0.1rem; line-height: 1.3; }

.hud-modal .board-form textarea {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 4.5rem;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--panel-edge); color: var(--ink);
  font: inherit; font-size: 0.9rem; padding: 0.4rem 0.5rem;
}
.hud-modal .board-form textarea:focus { outline: none; border-color: var(--hud); }

@media (max-width: 720px) {
  .orders-run { padding: 0.7rem 0.7rem 0.6rem; }
}
