/* US IPO calendar (/Ipo/US) and the Home dashboard's US IPO card.
   Contract us-ipo-calendar-v2 §8.1.

   Colours here are literals on purpose. This application defines no Bootstrap custom properties:
   --bs-primary, --bs-body-bg and friends do not exist, and an unresolved var() drops the whole
   declaration in silence, which is how a "styled" element ends up with no style at all. */

/* The US table carries eight columns of published terms. Dropping one on a phone would hide a
   published figure, so the dense layout is kept and the table scrolls inside its own card rather
   than the page scrolling sideways. */
#usIpoCalendar table { min-width: 56rem; }
#usIpoCalendar table th,
#usIpoCalendar table td { white-space: nowrap; }
#usIpoCalendar table td:first-child,
#usIpoCalendar table th:first-child { white-space: normal; min-width: 14rem; }
#usIpoCalendar .ipo-us-provenance { display: block; }

@media (max-width: 575.98px) {
    #usIpoCalendar table { font-size: .875rem; min-width: 48rem; }
    #usIpoCalendar table td:first-child,
    #usIpoCalendar table th:first-child { min-width: 11rem; }
}

/* Withdrawn is not a completed offering, and must not be skimmed as one: the card is bordered
   and every row carries a warning accent. */
.ipo-us-withdrawn > .card-header { border-bottom-width: 2px; }
.ipo-us-withdrawn tbody tr > td:first-child { border-left: 3px solid var(--warning); }

/* Bootstrap's .text-secondary is rgb(108, 117, 125): 3.77:1 on the dark card and 4.07:1 on the
   dark page background, both under the 4.5:1 AA floor — and the provenance line is text the
   contract requires us to show. The site's --text-muted token clears 4.5:1 on the painted ancestor
   in both themes. */
.ipo-us-note,
.dashboard-ipo-note,
#usIpoCalendar .ipo-us-provenance { color: var(--text-muted); }

/* Every US row opens its detail page (contract us-ipo-detail-v1 §6) on a click or double-click
   anywhere on it. */
#usIpoCalendar tr.ipo-us-row-link { cursor: pointer; }
