/* Storms: the 72 hour feed on the left, county scores on the right, the county card under them. */
.storms-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.storms-feed, .storms-right { min-width: 0; }
.storms-feed .section-label, .storms-counties .section-label { margin-top: 0; }
.section-label .count { color: var(--muted); letter-spacing: 0; text-transform: none; }
.page-head .actions .storms-select { min-height: 32px; padding: 4px 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); border-radius: var(--radius); font-size: var(--t-sm); font-family: inherit; }
.page-head .actions .storms-select:focus { border-color: var(--accent); outline: none; }
.storms-sources-wrap { margin-top: 6px; }
.storms-sources { font-size: var(--t-xs); font-family: var(--font-mono); color: var(--muted-2); }
.storms-sources .src-status.ok { color: var(--muted); }
.storms-sources .src-status.bad { color: var(--red); }

/* source badges: one amber accent, so sources are told apart by letters, not colour */
.src-badge { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--text-2); background: var(--surface-2); }
.src-badge.src-nws { color: var(--muted); border-style: dashed; }
.src-badge.src-demo { color: var(--muted-2); }
.feed-kind { font-size: var(--t-xs); text-transform: none; }
.feed-remark { color: var(--text-2); font-size: var(--t-xs); line-height: 1.4; display: block; min-width: 150px; max-width: 360px; white-space: normal; }
.feed-note { margin: var(--s3) 0 0; line-height: 1.5; }
.roof-damage { color: var(--accent); }
table.stats td { vertical-align: top; }
table.stats tr.selected td { background: var(--accent-soft); }
.storms-layout table.stats th { white-space: nowrap; }
.storms-feed table.stats { min-width: 560px; }
.storms-feed table.stats td, .storms-feed table.stats th { padding-left: 8px; padding-right: 8px; }
.storms-feed td:nth-child(2), .storms-feed td:nth-child(3) { white-space: nowrap; }
.storms-counties table.stats { min-width: 440px; }

/* county list */
.county-rule, .county-legend { margin: 0 0 var(--s3); line-height: 1.5; }
.county-legend { margin-top: var(--s3); }
.score-cell { font-size: var(--t-md); font-weight: 600; }
.score-cell.open { color: var(--accent); }
.county-cell { min-width: 120px; }
.county-name { font-weight: 600; white-space: nowrap; }
.county-mode { display: flex; gap: 6px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.county-mode .off-season { font-size: var(--t-xs); white-space: nowrap; }
.age.fresh { color: var(--green); }
.age.week { color: var(--accent); }
.age.old, .age.muted { color: var(--muted-2); }
.p-ok { color: var(--green); }
.p-wait { color: var(--accent); }
.p-none { color: var(--muted-2); }
.county-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.county-cell .county-actions { margin-top: 6px; }
.county-actions .btn.ghost { color: var(--muted); }

/* the storm chain run line: under the county row and on the county card */
.run-line { margin-top: 6px; font-size: var(--t-xs); line-height: 1.45; max-width: 360px; white-space: normal; }
.run-line.running .run-step { color: var(--accent); }
.run-line.running .run-step::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; animation: run-pulse 1.2s ease-in-out infinite; }
@keyframes run-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.run-line .run-summary { color: var(--text); }
.run-line.done .run-summary { color: var(--text); }
.run-line .run-failed { color: var(--red); }
.run-line .run-note { color: var(--muted); }
.run-line .run-links { margin-top: 2px; }
.run-line .run-links a { color: var(--accent); }
.run-line .run-elapsed { font-size: var(--t-xs); }
.run-card { margin-top: var(--s3); }
.run-card .run-line { font-size: var(--t-sm); max-width: none; }
.county-cell .run-line { max-width: 260px; }
.county-actions .btn[disabled] { opacity: .5; cursor: default; }

/* county card */
.storms-detail { margin-top: var(--s4); }
.county-card { margin-bottom: 0; }
.county-head { display: flex; gap: var(--s4); align-items: flex-start; flex-wrap: wrap; margin-bottom: var(--s4); }
.county-head h2 { margin: 0 0 2px; }
.county-stats { display: flex; gap: var(--s2); flex-wrap: wrap; margin-left: auto; }
.county-stats .stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; min-width: 96px; }
.county-stats .stat .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.county-stats .stat .v { font-family: var(--font-mono); font-size: var(--t-md); font-variant-numeric: tabular-nums; margin-top: 2px; min-height: 22px; display: flex; align-items: center; }
.county-lines { border-top: 1px solid var(--line); padding-top: var(--s3); margin-bottom: var(--s3); }
.county-lines .line { margin: 0 0 var(--s2); font-size: var(--t-sm); line-height: 1.55; }
.county-lines .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-right: 4px; }
.detail-actions { align-items: center; margin-bottom: var(--s2); }
.county-card .section-label { margin-top: var(--s5); }
.prospect-list { display: flex; flex-direction: column; gap: var(--s2); }
.prospect { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--bg); }
.prospect-co { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.prospect-co .co-name { color: var(--text); font-weight: 600; text-decoration: none; }
.prospect-co .co-name:hover { color: var(--accent); }
.prospect-people { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: 6px; font-size: var(--t-sm); }
.prospect-people .person { display: inline-flex; gap: 6px; align-items: center; min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.prospect-people .person.confirmed { border-color: rgba(55,214,122,.3); }
.neighbors { margin: var(--s4) 0 0; line-height: 1.5; }
.county-rows { border: 1px solid var(--line); border-radius: var(--radius); }
.county-row { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.county-row:last-child { border-bottom: 0; }
.county-row.ground { border-left: 2px solid var(--accent); }
.county-row .row-line { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; font-size: var(--t-sm); }
.county-row .row-line .size { font-weight: 600; }
.county-row .row-line .pts { margin-left: auto; font-size: var(--t-xs); }
.county-row .row-remark { color: var(--text-2); font-size: var(--t-xs); line-height: 1.45; margin-top: 4px; }

@media (max-width: 900px) {
  .storms-layout { grid-template-columns: 1fr; }
  .county-stats { margin-left: 0; }
  .feed-remark { max-width: 220px; }
  table.stats { font-size: var(--t-xs); }
  table.stats td { padding: 8px 6px; }
  .storms-feed table.stats { min-width: 0; }
  .storms-counties table.stats { min-width: 0; }
}
@media (max-width: 720px) {
  /* On a phone the remark lives on the county card; the feed row stays one line tall. */
  .storms-feed td:nth-child(6), .storms-feed th:nth-child(6) { display: none; }
  .storms-feed .feed-kind { display: none; }
}
