/* ============================================================
   TheBigBoard — Archive / Timeline Page
   D+B Hybrid: Stats Command Center + War Room Log
   ============================================================ */

/* ── Accessibility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Root variables ── */
:root {
  --arc-bg: #060608;
  --arc-card: #0c0c12;
  --arc-border: #1a1a2e;
  --arc-text: #e4e4e7;
  --arc-dim: #71717a;
  --arc-accent: #f59e0b;
  --arc-radius: 8px;
  --col-us: #00d4ff;
  --col-idf: #ffffff;
  --col-iran: #ff2222;
  --col-houthi: #e8c000;
  --col-pmf: #a855f7;
  --col-unknown: #52525b;
}

/* ── State blocks ── */
.arc-state-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  padding: 40px 20px;
  text-align: center;
}
/* Ensure hidden attribute always wins over display:flex */
.arc-state-block[hidden] {
  display: none !important;
}

.arc-state-icon {
  font-size: 32px;
  opacity: 0.6;
}

.arc-state-msg {
  font-size: 14px;
  color: var(--arc-dim);
}

.arc-error .arc-state-icon {
  color: #dc2626;
}

.arc-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--arc-border);
  border-top-color: var(--arc-accent);
  border-radius: 50%;
  animation: arc-spin 0.8s linear infinite;
}

@keyframes arc-spin {
  to { transform: rotate(360deg); }
}

.arc-retry-btn {
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--arc-border);
  border-radius: 6px;
  color: var(--arc-text);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.arc-retry-btn:hover {
  border-color: var(--arc-accent);
  color: var(--arc-accent);
}

/* ═══════════════════════════════════════════
   TOP HALF — COMMAND CENTER
═══════════════════════════════════════════ */

.arc-command-center {
  padding: 10px 12px 0;
  border-bottom: 1px solid var(--arc-border);
  margin-bottom: 0;
}

/* ── Page header ── */
.arc-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.arc-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.arc-header-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--arc-accent);
  text-transform: uppercase;
}

.arc-page-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--arc-text);
  line-height: 1.1;
}

.arc-last-updated {
  font-size: 10px;
  color: var(--arc-dim);
  white-space: nowrap;
  padding-top: 4px;
}

/* ── Stat cards ── */
.arc-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

@media (max-width: 700px) {
  .arc-stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.arc-stat-card {
  background: var(--arc-card);
  border: 1px solid var(--arc-border);
  border-radius: var(--arc-radius);
  padding: 8px 10px;
  border-left: 3px solid var(--arc-dim);
}

.arc-stat-card--green { border-left-color: #22c55e; }
.arc-stat-card--blue  { border-left-color: var(--arc-accent); }
.arc-stat-card--amber { border-left-color: #ca8a04; }

.arc-stat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--arc-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.arc-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--arc-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ── Charts row ── */
.arc-charts-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: start;
}

@media (max-width: 900px) {
  .arc-charts-row {
    grid-template-columns: 1fr;
  }
}

.arc-card {
  background: var(--arc-card);
  border: 1px solid var(--arc-border);
  border-radius: var(--arc-radius);
  padding: 8px 10px;
}

.arc-card-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.arc-card-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--arc-accent);
  text-transform: uppercase;
}

.arc-card-sub {
  font-size: 10px;
  color: var(--arc-dim);
}

/* ── Calendar Heatmap ── */
.arc-heatmap-card {
  position: relative;
}

.arc-calendar-wrap {
  overflow-x: auto;
  padding-bottom: 6px;
}

.arc-calendar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 4px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Each month block */
.arc-cal-month {
  flex: 0 0 auto;
  width: calc(7 * 54px + 6 * 2px); /* 7 cols × 54px + 6 gaps */
}

.arc-cal-month-header {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--arc-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.arc-cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}

.arc-cal-dow {
  font-size: 9px;
  color: var(--arc-dim);
  text-align: center;
  padding: 2px 0;
}

.arc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

/* Day box */
.arc-cal-day {
  background: var(--arc-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 3px;
  min-width: 52px;
  min-height: 52px;
  padding: 3px 4px 2px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: default;
  transition: border-color 0.15s, outline 0.1s;
  box-sizing: border-box;
}

.arc-cal-day:not(.arc-cal-day--inactive):not(.arc-cal-day--empty):hover {
  outline: 1px solid rgba(255,255,255,0.35);
  z-index: 2;
}

.arc-cal-day--inactive {
  background: rgba(255,255,255,0.015);
  border-color: transparent;
  cursor: default;
}

.arc-cal-day--empty {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

.arc-cal-day--today {
  outline: 2px solid rgba(255,255,255,0.7) !important;
  z-index: 3;
}

.arc-cal-day--war-start {
  outline: 2px solid #ff2222 !important;
  z-index: 4;
}

.arc-cal-day-num {
  font-size: 10px;
  color: #71717a;
  line-height: 1;
  flex-shrink: 0;
}

.arc-cal-day--inactive .arc-cal-day-num {
  opacity: 0.3;
}

.arc-cal-day-count {
  font-size: 14px;
  font-weight: 700;
  color: rgba(228,228,231,0.9);
  line-height: 1;
  margin-top: auto;
  text-align: center;
  width: 100%;
}

.arc-heatmap-legend {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
}

.arc-legend-label {
  font-size: 9px;
  color: var(--arc-dim);
}

.arc-legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}

.arc-heatmap-tooltip {
  position: fixed;
  z-index: 999;
  background: #1a1a22;
  border: 1px solid var(--arc-border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--arc-text);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

/* ── Right charts ── */
.arc-charts-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Actor bars ── */
.arc-actor-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arc-actor-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arc-actor-bar-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--arc-text);
  width: 52px;
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.arc-actor-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}

.arc-actor-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.arc-actor-bar-count {
  font-size: 10px;
  color: var(--arc-dim);
  width: 28px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ── Type pills ── */
.arc-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.arc-type-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--arc-border);
  border-radius: 20px;
  font-size: 11px;
  color: var(--arc-text);
  white-space: nowrap;
}

.arc-type-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.arc-type-pill-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--arc-dim);
}

/* ═══════════════════════════════════════════
   BOTTOM HALF — WAR ROOM LOG
═══════════════════════════════════════════ */

.arc-warroom {
  display: flex;
  flex-direction: column;
}

/* Two-column layout below controls */
.arc-warroom-cols {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 0;
  align-items: stretch;
}

/* Left column — controls pinned at top, list scrolls below */
.arc-warroom-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Controls pinned at top of left column — not sticky to page */
.arc-warroom-left .arc-controls {
  position: relative;
  top: auto;
  flex-shrink: 0;
  z-index: 10;
}

/* Right column — new timeline */
.arc-warroom-right {
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* Timeline header */
.arc-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.arc-timeline-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--arc-accent);
  text-transform: uppercase;
}

.arc-timeline-count {
  font-size: 10px;
  color: var(--arc-dim);
  font-variant-numeric: tabular-nums;
}

/* Vertical timeline scroll container */
.arc-vtimeline {
  flex: 1;
  min-height: 200px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 80px;
  position: relative;
}

/* Vertical line running down center-left */
.arc-vtimeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
}

/* Date separator */
.arc-vt-day {
  position: relative;
  z-index: 2;
  margin: 10px 0 4px;
  padding: 4px 10px 4px 36px;
  background: rgba(0,0,0,0.4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--arc-dim);
  text-transform: uppercase;
}

/* Event row */
.arc-vt-event {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 10px 4px 10px;
  cursor: pointer;
  position: relative;
  transition: background 0.1s;
}

.arc-vt-event:hover {
  background: rgba(255,255,255,0.025);
}

.arc-vt-event.arc-vt-expanded {
  background: rgba(255,255,255,0.035);
}

/* Dot on the vertical line */
.arc-vt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  position: relative;
  z-index: 2;
  margin-left: 15px; /* align to the vertical line at left:18px */
}

/* Event card */
.arc-vt-card {
  flex: 1;
  min-width: 0;
  border-left: 2px solid;
  padding-left: 8px;
}

.arc-vt-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.arc-vt-actor {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.arc-vt-tier {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.arc-vt-headline {
  font-size: 13px;
  font-weight: 600;
  color: var(--arc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* Expanded detail inside timeline event */
.arc-vt-expand {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.arc-vt-expand p {
  font-size: 11px;
  color: var(--arc-text);
  line-height: 1.5;
  margin: 0 0 4px;
}

.arc-vt-expand p.arc-vt-confirm {
  color: var(--arc-dim);
  font-style: italic;
}

/* Mobile: stack vertically */
@media (max-width: 900px) {
  .arc-warroom-cols {
    grid-template-columns: 1fr;
  }
  .arc-warroom-left {
    max-height: 70vh;
    min-height: 200px;
  }
  .arc-warroom-right {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    max-height: 360px;
    overflow: hidden;
  }
  .arc-vtimeline {
    max-height: 320px;
  }
}

/* ── Sticky controls ── */
.arc-controls {
  position: sticky;
  top: 50px; /* below shell header */
  z-index: 40;
  background: var(--arc-bg);
  border-bottom: 1px solid var(--arc-border);
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* Scoped to left column — right column is unaffected */
  width: 100%;
}

.arc-controls-top {
  display: flex;
  gap: 8px;
  align-items: center;
}

.arc-controls-bottom {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Search */
.arc-search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.arc-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--arc-dim);
  font-size: 14px;
  pointer-events: none;
  user-select: none;
}

.arc-search {
  width: 100%;
  background: var(--arc-card);
  border: 1px solid var(--arc-border);
  border-radius: 6px;
  padding: 7px 10px 7px 30px;
  color: var(--arc-text);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.arc-search::placeholder { color: var(--arc-dim); }
.arc-search:focus { border-color: var(--arc-accent); }

/* Sort select */
.arc-sort {
  background: var(--arc-card);
  border: 1px solid var(--arc-border);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--arc-text);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  white-space: nowrap;
}
.arc-sort:focus { border-color: var(--arc-accent); }

/* Filter pills */
.arc-filter-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.arc-filter-pill {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--arc-border);
  background: transparent;
  color: var(--arc-dim);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.arc-filter-pill:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--arc-text);
}
.arc-filter-pill.active {
  background: var(--arc-accent);
  border-color: var(--arc-accent);
  color: #000;
}

/* Actor quick-filter pills */
.arc-actor-pills {
  display: flex;
  gap: 4px;
}

.arc-actor-pill {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--actor-color, var(--arc-border));
  background: transparent;
  color: var(--actor-color, var(--arc-text));
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.arc-actor-pill:hover,
.arc-actor-pill.active {
  background: var(--actor-color, rgba(255,255,255,0.1));
  color: #000;
}
.arc-actor-pill[data-actor="IDF"]:hover,
.arc-actor-pill[data-actor="IDF"].active {
  color: #000;
}

/* Result count */
.arc-result-count {
  font-size: 10px;
  color: var(--arc-dim);
  margin-left: auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ── Event list ── */
.arc-list {
  padding: 0 0 80px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Event rows ── */
.arc-event-row {
  display: grid;
  grid-template-columns: 3px 1fr;
  border-bottom: 1px solid var(--arc-border);
  cursor: pointer;
  transition: background 0.1s;
  position: relative;
}

.arc-event-row:hover {
  background: rgba(255,255,255,0.025);
}

.arc-event-row.expanded {
  background: rgba(255,255,255,0.035);
}

.arc-event-accent {
  background: var(--row-color, var(--arc-dim));
  border-radius: 0;
  flex-shrink: 0;
  align-self: stretch;
}

.arc-event-body {
  padding: 5px 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.arc-event-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.arc-event-time {
  font-size: 10px;
  font-weight: 600;
  color: var(--arc-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.arc-tier-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.arc-tier-badge--confirmed   { background: rgba(34,197,94,0.18); color: #22c55e; }
.arc-tier-badge--probable    { background: rgba(202,138,4,0.2);  color: #ca8a04; }
.arc-tier-badge--possible    { background: rgba(168,85,247,0.18);color: #a855f7; }
.arc-tier-badge--unconfirmed { background: rgba(82,82,91,0.25);  color: #71717a; }

.arc-actor-chip {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--chip-color, var(--arc-border));
  color: var(--chip-color, var(--arc-text));
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}

.arc-event-headline {
  font-size: 12px;
  font-weight: 700;
  color: var(--arc-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arc-event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arc-event-location {
  font-size: 10px;
  color: var(--arc-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arc-event-expand-icon {
  margin-left: auto;
  font-size: 10px;
  color: var(--arc-dim);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.arc-event-row.expanded .arc-event-expand-icon {
  transform: rotate(180deg);
}

/* ── Expanded detail panel ── */
.arc-event-detail {
  display: none;
  grid-column: 1 / -1;
  padding: 10px 14px 14px 18px;
  border-top: 1px solid var(--arc-border);
  background: rgba(0,0,0,0.2);
}
.arc-event-detail.open {
  display: block;
}

.arc-detail-section {
  margin-bottom: 10px;
}

.arc-detail-section:last-child {
  margin-bottom: 0;
}

.arc-detail-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--arc-accent);
  margin-bottom: 3px;
}

.arc-detail-text {
  font-size: 11px;
  color: var(--arc-text);
  line-height: 1.5;
}

.arc-detail-sources {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.arc-detail-sources a {
  font-size: 10px;
  color: var(--arc-accent);
  text-decoration: underline;
  word-break: break-all;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.arc-detail-sources a:hover {
  opacity: 1;
}

/* ── Empty state ── */
.arc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  text-align: center;
}
.arc-empty[hidden] { display: none !important; }

.arc-empty-icon {
  font-size: 36px;
  color: var(--arc-dim);
  opacity: 0.4;
}

.arc-empty-msg {
  font-size: 14px;
  color: var(--arc-dim);
}

.arc-clear-btn {
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--arc-border);
  border-radius: 6px;
  color: var(--arc-accent);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.arc-clear-btn:hover {
  border-color: var(--arc-accent);
  background: rgba(245,158,11,0.06);
}

/* ── Scroll sentinel ── */
.arc-sentinel {
  height: 1px;
}

/* ── Live badge ── */
.arc-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 20px;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ── Calendar: responsive ── */
@media (max-width: 900px) {
  /* Tablet: 2 months per row */
  .arc-cal-month {
    flex: 0 0 calc(50% - 8px);
  }
}

@media (max-width: 600px) {
  /* Mobile: 1 month per row, smaller boxes */
  .arc-cal-month {
    flex: 0 0 100%;
    width: 100%;
  }
  .arc-cal-grid {
    /* Let grid be fluid on mobile */
    grid-template-columns: repeat(7, 1fr);
  }
  .arc-cal-day {
    min-width: 40px;
    min-height: 40px;
    padding: 2px 3px;
  }
  /* Hide text lines on mobile, keep number + color */
  .arc-cal-day-line1,
  .arc-cal-day-line2 {
    display: none;
  }
}

/* ── Responsive tweaks ── */
@media (max-width: 600px) {
  .arc-command-center,
  .arc-controls {
    padding-left: 8px;
    padding-right: 8px;
  }
  .arc-event-headline {
    white-space: normal;
  }
  .arc-controls-bottom {
    gap: 4px;
  }
  .arc-result-count {
    margin-left: 0;
    width: 100%;
  }
  .arc-page-title {
    font-size: 14px;
  }
  .arc-stat-value {
    font-size: 18px;
  }
  .arc-actor-pills {
    flex-wrap: wrap;
  }
  .arc-filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

/* ── Mobile: calendar hotdays toggle ── */
@media (max-width: 768px) {
  .arc-calendar {
    display: none;
  }
  .arc-hotdays {
    display: block;
  }
}
@media (min-width: 769px) {
  .arc-hotdays {
    display: none;
  }
}

/* ── Hotdays list ── */
.arc-hotdays {
  padding: 8px 0;
}
.arc-hotday-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.1s;
}
.arc-hotday-row:hover, .arc-hotday-row:active {
  background: rgba(255,255,255,0.04);
}
.arc-hotday-date {
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
  width: 60px;
  flex-shrink: 0;
  font-family: monospace;
}
.arc-hotday-bar {
  height: 4px;
  border-radius: 2px;
  flex-shrink: 0;
  transition: width 0.3s;
}
.arc-hotday-count {
  font-size: 11px;
  font-weight: 600;
  color: #e4e4e7;
  flex-shrink: 0;
  width: 24px;
}

/* ── Mobile: iOS zoom prevention (16px min font) ── */
@media (max-width: 768px) {
  .arc-search,
  .arc-sort {
    font-size: 16px;
  }
}

/* ── Mobile: tap targets (44px min) ── */
@media (max-width: 768px) {
  .arc-filter-pill,
  .arc-actor-pill {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 14px;
    font-size: 12px;
  }
  .arc-filter-pills,
  .arc-actor-pills {
    flex-wrap: wrap;
    gap: 6px;
  }
  .arc-controls-bottom {
    gap: 8px;
  }
}

/* ── Actor bar chart: remove dead min-height ── */
.arc-charts-section,
.arc-actor-bars {
  min-height: unset;
}

/* ── Page header right group ── */
.arc-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Heatmap Legend Swatches ── */
.arc-legend-swatch--0  { background: #1a1a1e; }
.arc-legend-swatch--1  { background: #14532d; }
.arc-legend-swatch--2  { background: #166534; }
.arc-legend-swatch--3  { background: #ca8a04; }
.arc-legend-swatch--4  { background: #dc2626; }
.arc-legend-swatch--5  { background: #ff0000; }

/* ── Actor Pill Colors ── */
.arc-actor-pill--us    { --actor-color: #00d4ff; }
.arc-actor-pill--idf   { --actor-color: #ffffff; }
.arc-actor-pill--iran  { --actor-color: #ff2222; }
.arc-actor-pill--houthi { --actor-color: #e8c000; }

