/*
 * Re-themes the flight-times renderer (kjvr-endpoints mu-plugin prints its own hard-coded CSS in the page body).
 * The .entry-content prefix outranks the plugin's selectors, which come later in the document, so no !important.
 * Board look: haze header, hairline rows, tabular times.
 */
.entry-content :is(table.flight-times[id],.kjvr-flight-ui,.kjvr-flight-footer,.kjvr-flight-empty,.kjvr-flight-provenance,.kjvr-flight-section,.kjvr-flight-section-empty){font-family:var(--font);color:var(--ink)}
.entry-content table.flight-times[id]{display:table;border:1px solid var(--line);border-radius:var(--radius);color:var(--ink);font-size:.9375rem;font-variant-numeric:tabular-nums;overflow:visible;border-collapse:separate}
.entry-content table.flight-times[id] caption.flight-times-caption{color:var(--deep);font:800 1.25rem/1.2 var(--display);padding:0 0 12px}
.entry-content table.flight-times[id] thead th{position:sticky;top:var(--header-h);z-index:1;background:var(--air);color:var(--deep);font-size:.875rem;font-weight:700;border-bottom:2px solid var(--deep);padding:12px}
.entry-content table.flight-times[id] thead th:first-child{border-top-left-radius:var(--radius)}
.entry-content table.flight-times[id] thead th:last-child{border-top-right-radius:var(--radius)}
.entry-content table.flight-times[id] tbody tr,.entry-content table.flight-times[id] tbody tr.row1,.entry-content table.flight-times[id] tbody tr.row2{background:#fff;color:var(--ink)}
.entry-content table.flight-times[id] tbody td{border-bottom:1px solid var(--line);padding:11px 12px}
.entry-content table.flight-times[id] tbody tr:hover{background:var(--air)}
.entry-content table.flight-times[id] td:first-child{font-weight:700;color:var(--deep)}
.entry-content table.flight-times[id] td:nth-child(2){font-weight:700}
.entry-content table.flight-times[id] tbody tr.expired{color:var(--muted)}
.entry-content table.flight-times[id] tbody tr.expired td:first-child{color:var(--muted)}
/* Status stays plain bold text. */
.entry-content table.flight-times[id] td[data-title=Status]{font-weight:700}

.entry-content .kjvr-flight-provenance{font-size:.9375rem;color:var(--muted)}
.entry-content .kjvr-flight-provenance a{color:var(--blue)}
.entry-content .kjvr-flight-provenance :is([data-state=stale],[data-state=retained],[data-state=unavailable]){color:#8A4B00}
.entry-content .kjvr-flight-coverage{background:var(--air);border-left:4px solid var(--blue)}
.entry-content .kjvr-flight-ui{background:var(--air);border:1px solid var(--line);border-radius:var(--radius)}
.entry-content .kjvr-flight-ui label{color:var(--deep)}
.entry-content .kjvr-flight-ui :is(input[type=search],select){border:1px solid #9AA9BC;border-radius:8px;color:var(--ink)}
.entry-content .kjvr-flight-summary p{color:var(--muted)}
.entry-content .kjvr-flight-ui button.kjvr-refresh,.entry-content .kjvr-flight-footer button,.entry-content .kjvr-flight-empty button{border:1px solid var(--blue);border-radius:999px;background:var(--blue);color:#fff}
.entry-content .kjvr-flight-ui button.kjvr-refresh:hover,.entry-content .kjvr-flight-footer button:hover{background:var(--blue-d)}
.entry-content .kjvr-flight-ui button,.entry-content .kjvr-flight-footer button.kjvr-secondary,.entry-content .kjvr-flight-empty button{background:#fff;color:var(--blue)}
.entry-content .kjvr-flight-ui button:hover,.entry-content .kjvr-flight-footer button.kjvr-secondary:hover,.entry-content .kjvr-flight-empty button:hover{background:var(--air)}
.entry-content .kjvr-flight-empty{border:1px solid var(--line);border-radius:var(--radius)}
.entry-content .kjvr-flight-jumps a{border:1px solid var(--line);border-radius:999px;color:var(--blue)}
.entry-content .kjvr-flight-section,.entry-content .kjvr-flight-section-empty{color:var(--deep)}
.entry-content .kjvr-flight-section a,.entry-content .kjvr-flight-section-empty a{color:var(--blue)}
.entry-content :is(.kjvr-flight-ui,.kjvr-flight-footer,.kjvr-flight-empty) :focus-visible,.entry-content .kjvr-flight-section a:focus-visible{outline:3px solid var(--blue)}

/* Phone: each row is a two-line card, time + flight on top, place + status below. */
@media (max-width:760px){
  .entry-content table.flight-times[id]{display:block;border:0}
  .entry-content table.flight-times[id] tbody tr{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;align-items:baseline;padding:12px 14px;margin:0 0 10px;border:1px solid var(--line);border-radius:var(--radius)}
  .entry-content table.flight-times[id] tbody td{display:block;min-height:0;padding:0;border:0;white-space:normal}
  .entry-content table.flight-times[id] tbody td::before{display:none!important}
  .entry-content table.flight-times[id] td:first-child{grid-column:1;font-size:1.125rem}
  .entry-content table.flight-times[id] td:nth-child(3){grid-column:2;text-align:right;color:var(--muted)}
  .entry-content table.flight-times[id] td:nth-child(2){grid-column:1/-1;grid-row:2;padding-top:2px;font-size:1.0625rem}
  .entry-content table.flight-times[id] td:nth-child(4){grid-column:1/-1;grid-row:3;color:var(--muted);font-size:.875rem}
  .entry-content table.flight-times[id] td[data-title=Status]{grid-column:1/-1;grid-row:4;margin-top:4px}
  .entry-content table.flight-times[id] td.flight-times-empty{grid-column:1/-1}
}
.entry-content .kjvr-flight-summary{margin-bottom:8px}
