/* TASK_065 Half 2 — /radar/ tech-radar page styles.
 *
 * Built ON Paradise tokens (css/tokens.css first) and kept visually kin to
 * /board/ (same warm honey/米黄 palette, same eyebrow/status/h1 shapes) so the
 * two watchtower siblings feel like one family. Single light theme (Paradise has
 * no dark mode). All content is injected client-side by radar.js (escaped).
 */

:root {
  --bg: var(--color-bg);
  --surface: var(--color-surface);
  --ink: var(--color-text);
  --ink-2: #55524c;
  --ink-3: #8a857c;
  --line: var(--color-border);
  --line-2: #efe9df;
  --primary: var(--color-primary);
  --done: var(--color-success);
  --alarm: var(--color-error);
  --honey: #a1782c;
  --honey-bg: #f6efdd;
  --yu: #c08a8a;
}

.radar-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* followup #6: open the layout up — 1080 squeezed the domain grid into a narrow
   middle column on wide screens. 1280 (a touch wider than /board/'s 1180 sibling)
   lets the grid breathe into 2–3 comfortable columns, capped so lines don't run
   too long. The shared header stays at --container-max (1100); a modest content
   overhang matches /board/. */
.radar-wrap { max-width: 1280px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 40px) 64px; }

.radar-status { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-bottom: 20px; }
.radar-status.err { color: var(--alarm); }

/* header */
.radar-header { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yu); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yu) 25%, transparent); }
.radar-h1 { font-family: var(--font-display); font-size: clamp(26px, 4.4vw, 40px); line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.radar-h1__sub { font-family: var(--font-mono); font-size: .34em; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-left: .3em; }
.radar-meta { font-size: 13px; color: var(--ink-2); }
.radar-meta .run-date { font-weight: 600; color: var(--ink); }
.radar-meta .run-abort { color: var(--alarm); font-weight: 600; }
.radar-runs { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.radar-runs select { font: inherit; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 6px; }

/* section head — shared shape with board */
.sec-head, .cluster-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.sec-head h2, .cluster-head h2 { font-family: var(--font-display); font-size: 19px; margin: 0; font-weight: 700; }
.rule { flex: 1; height: 1px; background: var(--line); }

/* headlines ⭐ — span the full content width so they align with the clusters
   below (headlines are short flex rows, not long prose, so no readability cap
   needed; the earlier 1040 cap made this block narrower than the domain grid). */
.headlines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.headline { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--honey-bg); border: 1px solid color-mix(in srgb, var(--honey) 22%, transparent); border-radius: var(--radius-md); }
.headline .hl-text { font-weight: 600; }
.radar-sec { margin-bottom: 30px; }

/* clusters → domains */
.cluster { margin-bottom: 32px; }
/* #6: wider cards (400 vs 320). min(400px,100%) keeps the min from overflowing a
   narrow phone — auto-fill still collapses to 1 column on mobile, no @media needed. */
.domains { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); gap: 16px; }
.domain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; }
.domain-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.domain-head h3 { font-size: 16px; margin: 0; font-weight: 700; }
.depth { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; color: var(--ink-3); border: 1px solid var(--line); }
.depth-deep { color: var(--honey); border-color: color-mix(in srgb, var(--honey) 35%, transparent); }

.domain-aborted { background: #f7f5f1; border-style: dashed; }
.abort-flag { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); font-style: italic; }

/* items — fact vs implication */
.items { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 10px; align-items: flex-start; }
.item .kind { flex: 0 0 auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; padding: 2px 6px; border-radius: var(--radius-sm); margin-top: 2px; }
.item-fact .kind { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.item-implication .kind { background: color-mix(in srgb, var(--honey) 15%, transparent); color: var(--honey); }
.item-body { flex: 1; min-width: 0; }
.item-body p { margin: 0 0 4px; font-size: 14px; }
.item-implication .item-body p { color: var(--ink-2); font-style: italic; }
.item-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }

.tier { font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: var(--radius-sm); }
.tier-1 { background: var(--done); color: #fff; }
.tier-2 { background: color-mix(in srgb, var(--honey) 70%, #fff); color: #4a380f; }
.tier-3 { background: var(--line-2); color: var(--ink-3); }
.star { font-size: 12px; }
.pending { font-family: var(--font-mono); font-size: 11px; color: var(--alarm); }
.src { color: var(--primary); text-decoration: none; font-family: var(--font-mono); font-size: 11px; }
.src:hover { text-decoration: underline; }

.tags { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.tag { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); background: #f4f1ea; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }

.radar-empty { text-align: center; color: var(--ink-3); padding: 60px 20px; font-size: 14px; }
.radar-footer { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }
.radar-footer .prov { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
