/* AirportHUB metro: US/CA hub additions on top of the site stylesheet (capability hub_audit_fixes_v1); London never
   loads this file. */

/* Next-flight rows and cards whose time has passed in a cached page (hub.js). */
.la-site [data-hub-overdue] [data-hub-due-status] { color: var(--la-color-text-muted); font-style: italic; }
.la-site .flight-search-empty { margin: var(--la-space-2) 0; }
/* Home "Next" tables and airport home "Next flights" lists: spare rows wait hidden, and the "Due, not confirmed yet"
   group sits apart after the upcoming rows. */
.la-site [data-hub-next] [hidden], .la-site [data-hub-no-upcoming][hidden] { display: none; }
.la-site .home-next-flights-due { margin-top: var(--la-space-3); }
.la-site .home-next-flights-due__head { margin: 0 0 var(--la-space-2); padding-top: var(--la-space-2); border-top: var(--la-border-thin) solid var(--la-color-rule); color: var(--la-color-text-muted); font-size: var(--la-fs-200); font-weight: var(--la-fw-semibold); }
.la-site [data-hub-upcoming] > .home-next-flight:has(+ [hidden]) { border-bottom: 0; padding-bottom: 0; }
.la-site .home-next-flights-list[data-hub-upcoming]:not(:has(> :not([hidden]))) { display: none; }
.la-site .home-next-flights-list[data-hub-upcoming]:not(:has(> :not([hidden]))) + .home-next-flights-due { margin-top: 0; }
.la-site .home-next-flights-list[data-hub-upcoming]:not(:has(> :not([hidden]))) + .home-next-flights-due > .home-next-flights-due__head { padding-top: 0; border-top: 0; }
/* 12-hour times ("12:55 PM") need a wider time column than the shared 24-hour one. */
.la-site .home-next-flight { grid-template-columns: 4.75rem minmax(0, 1fr); }
/* The notes under a home "Next" table are not table scroll hints: the site stylesheet hides .la-table-hint on wide
   screens, which hid the "Due, not confirmed yet" explanation and the "Not included" line on desktop. */
.la-site .la-next-flights__direction > .la-table-hint:not([hidden]) { display: block; }
.la-site [data-hub-next] .hub-due-head th { padding-top: var(--la-space-4); border-bottom: var(--la-border-thin) solid var(--la-color-rule); color: var(--la-color-text-muted); font-size: var(--la-fs-200); text-align: left; text-transform: none; }

/* Clock card: .la-site p would add a bottom margin and lift the time 8 px off the sunrise / sunset centre line
   (London has the same rule in its own stylesheet). */
.la-site .la-timecard__now { margin: 0; }

/* Statistics pages: the data block, the "Back to … statistics" link, the current-flight checks and the editorial
   sections below each get one shared vertical gap (the site stylesheet zeroes the editorial layer's first margin). */
.la-site { --hub-block-gap: var(--la-space-6); }
.la-site .la-main .dynamic-page--statistics > .shell > * + .editorial-layer,
.la-site .la-main .dynamic-page--statistics > .shell > * + .statistics-owner-backlink,
.la-site .la-main .dynamic-page--statistics > .shell > .statistics-owner-backlink + * { margin-top: var(--hub-block-gap); }
.la-site .la-main .dynamic-page--statistics .dynamic-component > * + .statistics-current-checks,
.la-site .la-main .dynamic-page--statistics .dynamic-component > * + .statistics-bridge,
.la-site .la-main .dynamic-page--statistics .dynamic-component > * + .statistics-inline-links { margin-top: var(--hub-block-gap); }
.la-site .la-main .dynamic-page--statistics .dynamic-empty > .statistics-inline-links { margin-top: var(--la-space-4); justify-content: center; }

/* /transfers and /compare: the direction / pair picker right under the page heading. */
.la-site .hub-picker { margin: var(--la-space-5) 0 var(--hub-block-gap); padding: var(--la-space-4); border: var(--la-border-thin) solid var(--la-color-rule); border-radius: var(--la-radius-m); background: var(--la-color-surface-sunken); }
.la-site .hub-picker__title { margin: 0 0 var(--la-space-3); padding: 0; border: 0; font-size: var(--la-fs-400); }
.la-site .hub-picker__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--la-space-2); margin: 0; padding: 0; list-style: none; }
.la-site .hub-picker__link { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--la-space-2); min-height: 44px; padding: var(--la-space-2) var(--la-space-3); border: var(--la-border-thin) solid var(--la-color-rule); border-radius: var(--la-radius-s); background: var(--la-color-surface); font-weight: var(--la-fw-semibold); text-decoration: none; }
.la-site .hub-picker__link:hover, .la-site .hub-picker__link:focus-visible { border-color: currentColor; }
.la-site .hub-picker__link small { color: var(--la-color-text-muted); font-weight: normal; }
.la-site [data-component="la-transfer-direction"][id] { scroll-margin-top: var(--la-space-5); }

@media (max-width: 700px) {
  /* /transfers and /compare: the picker closer to the heading; six or more directions in two columns, so all of them
     (44 px targets or taller) fit on a 360 × 800 first screen. */
  .la-site [data-component="la-transport-hub"] > .la-page-header:has(+ .hub-picker) { padding-bottom: var(--la-space-3); margin-bottom: 0; }
  .la-site .hub-picker { margin-top: var(--la-space-3); padding: var(--la-space-3); }
  .la-site .hub-picker__title { margin-bottom: var(--la-space-2); }
  .la-site .hub-picker__list:has(> li:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .la-site .hub-picker__list:has(> li:nth-child(4)) .hub-picker__link { flex-direction: column; align-items: flex-start; justify-content: center; padding: var(--la-space-2); }
  /* Phone: the flight list (search, filters, first rows) comes right after the H1 and the board status; the
     introduction follows the list. */
  .la-site .la-main .dynamic-page--flight-board > .shell { display: flex; flex-direction: column; }
  .la-site .la-main .dynamic-page--flight-board > .shell > * { order: 4; }
  .la-site .la-main .dynamic-page--flight-board > .shell > .dynamic-heading { display: contents; }
  .la-site .la-main .dynamic-page--flight-board > .shell > .dynamic-heading > * { order: 0; }
  .la-site .la-main .dynamic-page--flight-board > .shell > .dynamic-heading > .lead { order: 3; }
  .la-site .la-main .dynamic-page--flight-board > .shell > .flight-status-bar { order: 1; }
  .la-site .la-main .dynamic-page--flight-board > .shell > .flight-board-product { order: 2; }
  /* Today's on-time line is context, not the way to a flight: after the list, with the introduction. */
  .la-site .la-main .dynamic-page--flight-board > .shell > .flight-today-strip { order: 3; }
  /* The date switcher sits directly above the search (inside the flight list, one control group with it), as one
     scrollable row; the next-flight card follows the list (the list opens on "Around now", which shows the same
     flight). */
  .la-site .la-main .dynamic-page--flight-board .flight-day-navigation {
    flex-wrap: nowrap; overflow-x: auto; gap: var(--la-space-1); padding-block: 2px; scrollbar-width: none;
  }
  .la-site .la-main .dynamic-page--flight-board .flight-day-navigation a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; white-space: nowrap; }
  .la-site .la-main [data-component="flight-table"] > .flight-day-navigation { margin: 0 0 var(--la-space-2); }
  .la-site .la-main [data-component="flight-table"] > .flight-day-navigation + .flight-tools { margin-top: 0; }
  /* 360 px phones: the search (with the date row above it) on the first screen. The spacing above it is taken back
     (heading, board status, list heading), never the search's own height. */
  .la-site .la-main .dynamic-page--flight-board > .shell { row-gap: var(--la-space-4); }
  .la-site .la-main .dynamic-page--flight-board > .shell > .dynamic-heading > h1 { margin-bottom: 0; }
  .la-site .la-main .dynamic-page--flight-board .flight-status-bar { gap: var(--la-space-1); }
  .la-site .la-main .dynamic-page--flight-board [data-component="flight-table"] { padding-top: var(--la-space-3); }
  .la-site .la-main [data-component="flight-table"] > .section-heading { margin-bottom: var(--la-space-2); padding-bottom: var(--la-space-1); }
  .la-site .la-main .flight-board-product > .flight-next-card { order: 1; }
  .la-site .la-main [data-component="flight-table"] > .section-heading { gap: 2px; }
  .la-site .la-main [data-component="flight-table"] > .section-heading h2 { font-size: var(--la-fs-300); }
  .la-site .la-main .dynamic-page--flight-board > .shell > .dynamic-heading > h1 { font-size: var(--la-fs-600); }
  /* The board's own date row now sits above the search, so the airport bar's Yesterday / Today / Tomorrow row would
     repeat it on the same screen. */
  .la-site:has(.dynamic-page--flight-board .flight-day-navigation) .la-subnav__list--sub { display: none; }
  .la-site .la-main [data-component="flight-table"] > .section-heading > span { font-size: var(--la-fs-100); }
  /* Status filters: one scrollable row instead of three wrapped ones. */
  .la-site .la-main .flight-tools .filter-chips {
    flex-wrap: nowrap; overflow-x: auto; padding-block: 2px; scrollbar-width: none;
  }
  .la-site .la-main .flight-tools .filter-chips button { flex: 0 0 auto; min-height: 44px; white-space: nowrap; }

  /* A flight card: time on the left; flight number (never broken), status, place, airline below each other on the
     right, so a 12-hour time and a long status no longer squeeze the flight number into "AA2 / 624". */
  .la-site .la-main .flight-table[data-mobile-cards] tr { grid-template-columns: 5.25rem minmax(0, 1fr); }
  .la-site .la-main .flight-table[data-mobile-cards] .flight-time-cell { grid-row: 1 / span 3; }
  .la-site .la-main .table-scroll > .flight-table[data-mobile-cards] tbody tr > .flight-number-cell > strong { white-space: nowrap; overflow-wrap: normal; }
  .la-site .la-main .flight-table[data-mobile-cards] td[data-label="Status"] { grid-column: 2; grid-row: 2; max-width: none; text-align: left; }
  .la-site .la-main .flight-table[data-mobile-cards] .flight-airport-cell { grid-column: 2; grid-row: 3; }
  .la-site .la-main .flight-table[data-mobile-cards] .flight-codeshares { max-width: none; }
  .la-site .la-main .flight-table[data-mobile-cards] .flight-codeshares summary { white-space: nowrap; overflow-wrap: normal; display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; }
}
