/* רודפים · היסטוריה וסטטיסטיקה של נחל (history-view.js). צבעי הפלטה מ-simple.css / style.css עם ברירות מחדל */
.hv { --hv-acc: var(--accent, #2C4150); --hv-water: var(--water, #0F7E87); --hv-line: var(--line, #D5D8DC);
  display: flex; flex-direction: column; gap: 16px; color: #1C252B; font-family: "Heebo", system-ui, sans-serif; }
.hv-loading, .hv-msg { color: #5C6A6E; padding: 14px 0; font-size: 15px; line-height: 1.6; }
.hv-srcs { display: flex; flex-wrap: wrap; gap: 6px; }
.hv-stag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #3A474B; background: #fff; border: 1px solid var(--hv-line); border-radius: 999px; padding: 4px 11px; }
.hv-stag i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.hv-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hv-tile { background: #fff; border: 1px solid var(--hv-line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.hv-tile span { font-size: 13px; color: #5C6A6E; }
.hv-tile b { font-size: 24px; font-weight: 800; line-height: 1.15; }
.hv-tile small { font-size: 13px; color: #3A474B; }
.hv-card { background: #fff; border: 1px solid var(--hv-line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hv-card h2 { margin: 0; font-size: 19px; font-weight: 800; }
.hv-src { margin: 0; font-size: 12px; color: #5C6A6E; }
.hv-lead { margin: 0; font-size: 16px; line-height: 1.55; }
.hv-lead2 { margin: 0; font-size: 15px; line-height: 1.55; color: #3A474B; }
.hv-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 13px; color: #3A474B; }
.hv-legend span { display: inline-flex; align-items: center; gap: 3px; }
.hv-legend i { width: 18px; height: 12px; border-radius: 3px; display: inline-block; }
.hv-legend i.dot { width: 11px; height: 11px; border-radius: 50%; margin-inline-end: 3px; }
.hv-scroll { overflow-x: auto; }
.hv-scroll svg { display: block; margin-inline-start: 0; }
.hv-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.hv-live { background: var(--hv-acc); color: #fff; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.hv-live h2 { margin: 0; font-size: 19px; font-weight: 800; }
.hv-live-h { display: flex; align-items: center; justify-content: space-between; }
.hv-pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--hv-acc); }
.hv-live-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hv-live-g div { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.hv-live-g span, .hv-live-g small { font-size: 12px; opacity: .85; }
.hv-live-g b { font-size: 19px; line-height: 1.25; }
.hv-live p { margin: 0; font-size: 14px; line-height: 1.55; }
.hv-verdict { background: #FFF1E8; border-radius: 12px; padding: 10px 14px; font-size: 15px; line-height: 1.5; }
.hv-rt { width: 100%; border-collapse: collapse; font-size: 14px; }
.hv-rt th { text-align: start; color: #5C6A6E; font-weight: 500; padding: 4px 0; }
.hv-rt td { padding: 4px 2px; text-align: center; }
.hv-ev { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid #ECEEF0; align-items: center; }
.hv-ev img, .hv-ph { width: 120px; height: 80px; border-radius: 10px; object-fit: cover; flex: none; background: linear-gradient(135deg, #B9A58A, #8C7A63); }
.hv-ph.rain { background: linear-gradient(135deg, #CFE6E8, #6BB5BA); }
.hv-ev > div { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.hv-ev-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hv-ev-h b { font-size: 17px; }
.hv-ev p { margin: 0; font-size: 14px; color: #3A474B; }
.hv-ev small { font-size: 13px; color: #5C6A6E; }
.hv-tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #fff; white-space: nowrap; }
@media (min-width: 900px) {
  .hv-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hv-row.a { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .hv-row.b { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .hv-ev img, .hv-ph { width: 88px; height: 64px; }
}

/* ---------------- ארכיון אירועים (archive-view.js) */
.av-seasons { display: flex; gap: 8px; flex-wrap: wrap; }
.av-seasons a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; background: #fff; color: #1C252B; border: 1px solid var(--hv-line); }
.av-seasons a[aria-current="page"] { background: var(--hv-acc); color: #fff; border-color: var(--hv-acc); }
.av-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.av-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.av-map { height: 420px; border-radius: 12px; overflow: hidden; background: #F6F7F8; }
.av-rank { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #1C252B; text-decoration: none; padding: 3px 0; }
.av-rank:hover b { text-decoration: underline; }
.av-rank .i { width: 18px; color: #5C6A6E; font-size: 13px; }
.av-rank b { width: 110px; }
.av-rank .bar { flex: 1; height: 12px; background: #EEF1F2; border-radius: 6px; overflow: hidden; display: flex; }
.av-rank .bar span { background: var(--hv-water); border-radius: 6px; }
.av-rank .n { width: 60px; color: #3A474B; font-size: 14px; }
.av-ev { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid #ECEEF0; }
.av-d { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.av-d b { font-size: 16px; line-height: 1.2; }
.av-d small { color: #5C6A6E; font-size: 13px; }
.av-d i { width: 14px; height: 14px; border-radius: 50%; }
.av-b { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.av-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.av-h b { font-size: 17px; }
.av-sts { display: flex; gap: 6px; flex-wrap: wrap; }
.av-st { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #E3F1F2; color: #0B5157; text-decoration: none; }
.av-ph { display: flex; gap: 8px; flex-wrap: wrap; }
.av-ph img { width: 88px; height: 60px; border-radius: 8px; object-fit: cover; }
.av-more { width: 88px; height: 60px; border-radius: 8px; background: #EEF1F2; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #3A474B; }
.av-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; font-size: 14px; color: #3A474B; }
.av-v { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.av-v.ok { background: #E3F4E8; color: #1F6B36; }
.av-v.miss { background: #FBE4E4; color: #8E1F1F; }
@media (min-width: 900px) {
  .av-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .av-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
}
