/* event-overview.css — the race at a glance above Plan › Event inputs (event-overview.js). */
.ev-ov {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--s3);
    margin: 0 0 var(--s4);
}
.ev-ov:empty { display: none; }
.ev-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: var(--s3) var(--s4);
    background: var(--panel-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    font-size: var(--fs-body);
    color: var(--text);
}
.ev-race {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: var(--s4);
}
.ev-race-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-k {
    font-size: var(--fs-micro);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-4);
}
.ev-race-txt .ev-k + .ev-main { margin-bottom: 0; }
.ev-race-txt .ev-k:not(:first-child) { margin-top: var(--s2); }
.ev-main { color: var(--text-hi); font-weight: 600; overflow-wrap: anywhere; }
.ev-sub { color: var(--text-3); font-size: var(--fs-small); overflow-wrap: anywhere; }
.ev-card a { color: var(--accent); }
.ev-tag {
    display: inline-block;
    padding: 0 6px;
    margin-left: 4px;
    border: 1px solid var(--line-3);
    border-radius: 4px;
    font-size: var(--fs-micro);
    font-weight: 600;
    color: var(--text-3);
    vertical-align: 1px;
}
.ev-count {
    font-size: var(--fs-title);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-hi);
}
.ev-count.is-live { color: var(--accent); }
.ev-wx-line { font-weight: 500; }

.ev-map { flex: 0 0 auto; width: 128px; height: 128px; }
.ev-map-line { fill: none; stroke: var(--text-3); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ev-map-dir { fill: none; stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }
.ev-map-dir-head { fill: var(--accent); }
.ev-map-sf { stroke: var(--text-hi); stroke-width: 4; vector-effect: non-scaling-stroke; stroke-linecap: round; }

.ev-change { align-self: flex-start; margin-top: var(--s2); }
/* Event › Pit stop details: the pit settings that rarely change. */
#evMore .field-grid { margin: var(--s2) 0 var(--s3); }
#evTrackCar { margin-top: var(--s3); }
.ev-local { color: var(--text-hi); }
#formationHint:empty { display: none; }

@media (max-width: 520px) {
    .ev-ov { grid-template-columns: 1fr; }
    .ev-race { grid-column: auto; }
    .ev-map { width: 88px; height: 88px; }
}

.ev-ask {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: var(--s2);
    font-size: var(--fs-small);
    color: var(--warn-soft);
}
.ev-ask button {
    min-height: 0;
    min-width: 0;
    line-height: 1.5;
    padding: 2px 8px;
    background: transparent;
    border: 1px solid var(--line-3);
    border-radius: 4px;
    color: var(--text-hi);
    font: inherit;
    cursor: pointer;
}
.ev-ask button:first-of-type { border-color: var(--accent-dim); color: var(--accent); }
.ev-ask button:focus-visible { box-shadow: var(--ring); outline: none; }

/* Race start: date + clock time in the viewer's zone (event-config.js). */
.ev-start { display: flex; gap: var(--s2); min-width: 0; }
.ev-start input[type="date"] { flex: 1 1 60%; min-width: 0; }
.ev-start input[type="text"] { flex: 1 1 40%; min-width: 0; }
#expWxField { grid-column: 1 / -1; }
.ev-wx { display: flex; flex-wrap: wrap; gap: var(--s2); min-width: 0; }
.ev-wx select { flex: 1 1 8rem; min-width: 0; max-width: 12rem; }
.ev-start input[aria-invalid="true"] { border-color: var(--crit); }
