/* Site-specific CSS, loaded after the built CSS. */

/* ---------- Small laptops (1024-1439px): a shorter home hero so the flight box shows on the first screen. ---------- */
@media (min-width: 1024px) and (max-width: 1439px) {
    main section > .container-site.pt-14:has(> h1.max-w-4xl) { padding-top: 3.5rem; }
    main section > .container-site.pt-14 > h1.max-w-4xl { margin-top: 1rem; font-size: clamp(2.75rem, 4.1vw, 3.5rem); }
    main section > .container-site.pt-14 > h1.max-w-4xl:first-child { margin-top: 0; }
    main section > .container-site.pt-14 > h1.max-w-4xl + p { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.7; }
}

/* ---------- Small laptops: beside long text, a square photo that stays in view while the text scrolls past. ---------- */
@media (min-width: 1024px) and (max-width: 1439px) {
    .home-sections section.grid.items-center:has(> .relative > .-inset-3) { align-items: start; }
    .home-sections section.grid.items-center > .relative:has(> .-inset-3) { position: sticky; top: 6.5rem; }
    .home-sections section.grid.items-center > .relative:has(> .-inset-3) img { aspect-ratio: 1 / 1; max-height: calc(100vh - 10rem); }
    .home-sections section.grid.items-center:has(> .relative > .-inset-3) > div:not(.relative) { align-self: center; }
}

/* ---------- Delayed / cancelled flights table: compact, every column (including "Call for help") fits without sideways scrolling. ---------- */
[data-disruptions] table[data-status] { table-layout: fixed; min-width: 0; font-size: .8125rem; }
[data-disruptions] table[data-status] th,
[data-disruptions] table[data-status] td { padding: .625rem .625rem; }
[data-disruptions] table[data-status] th { font-size: .6875rem; }
[data-disruptions] table[data-status] th:first-child,
[data-disruptions] table[data-status] td:first-child { padding-left: 1rem; }
[data-disruptions] table[data-status] th:last-child,
[data-disruptions] table[data-status] td:last-child { padding-right: 1rem; }
[data-disruptions] table[data-status] th:nth-child(1) { width: 27%; }
[data-disruptions] table[data-status] th:nth-child(3) { width: 6.25rem; }
[data-disruptions] table[data-status] th:nth-child(4) { width: 8.25rem; }
[data-disruptions] table[data-status] td:nth-child(1) .gap-3 { gap: .5rem; }
[data-disruptions] table[data-status] td:nth-child(1) .gap-3 > :first-child { width: 2.125rem; height: 2.125rem; border-radius: .625rem; font-size: .6875rem; }
[data-disruptions] table[data-status] td:nth-child(2) .gap-2 { gap: .375rem; }
[data-disruptions] table[data-status] td:nth-child(2) .font-mono { padding: .125rem .375rem; font-size: .6875rem; }
[data-disruptions] table[data-status] td:nth-child(2) .truncate { display: block; }
[data-disruptions] table[data-status] td:nth-child(4) a { padding: .375rem .625rem; font-size: .75rem; border-radius: .625rem; }

/* ---------- Security wait times: an airport wait board (summary, checkpoint cards, hourly chart). ---------- */
.wt { --wt-low: #0f8a4a; --wt-low-bg: #e6f6ec; --wt-mid: #c2620a; --wt-mid-bg: #fdf1dc; --wt-high: #d6201f; --wt-high-bg: #fde7e6; --wt-line: #e5e9f0; --wt-muted: #64748b;
    overflow: hidden; border: 1px solid var(--wt-line); border-radius: 1.75rem; background: #fff; box-shadow: 0 24px 48px -36px rgb(15 23 42 / .45); }
.wt-top { display: grid; gap: 1.5rem; padding: 1.75rem 1.5rem; }
.wt-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; }
.wt-code { font-family: var(--font-display, inherit); font-size: 2.75rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--brand-secondary); }
.wt-badge { display: inline-flex; align-items: center; gap: .375rem; flex: none; padding: .3rem .75rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.wt-low { background: var(--wt-low-bg); color: var(--wt-low); }
.wt-mid { background: var(--wt-mid-bg); color: var(--wt-mid); }
.wt-high { background: var(--wt-high-bg); color: var(--wt-high); }
.wt-live { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border: 1px solid #b7e4c7; border-radius: 999px; background: #f0fbf4; color: var(--wt-low); font-size: .8125rem; font-weight: 600; }
.wt-live-dot { width: .5rem; height: .5rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgb(34 197 94 / .25); }
.wt-title { margin-top: .875rem; font-family: var(--font-display, inherit); font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: var(--brand-secondary); }
.wt-sub { display: flex; align-items: center; gap: .375rem; margin-top: .375rem; color: var(--wt-muted); font-size: .9375rem; }
.wt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-self: center; border: 1px solid var(--wt-line); border-radius: 1.25rem; background: #f8fafc; }
.wt-stats > div { padding: 1rem 1.125rem; }
.wt-stats > div + div { border-left: 1px solid var(--wt-line); }
.wt-stats dt { display: flex; align-items: center; gap: .375rem; color: var(--wt-muted); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wt-stats dt.wt-pre { color: var(--brand-primary); }
.wt-stats dd { margin-top: .375rem; font-family: var(--font-display, inherit); font-size: 2.25rem; font-weight: 800; line-height: 1; }
.wt-stats dd span { margin-left: .25rem; color: var(--wt-muted); font-family: inherit; font-size: .9375rem; font-weight: 500; }
.wt-stats dd.wt-dd-text { font-size: 1.25rem; line-height: 2.25rem; }
.wt-peak-slot { margin-top: .25rem; color: var(--wt-muted); font-size: .75rem; }
.wt-num-low { color: var(--wt-low); } .wt-num-mid { color: var(--wt-mid); } .wt-num-high { color: var(--wt-high); }
.wt-body { padding: 1.75rem 1.5rem; border-top: 1px solid var(--wt-line); background: #f6f8fb; }
.wt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; }
.wt-head h4 { font-family: var(--font-display, inherit); font-size: 1.25rem; font-weight: 700; color: var(--brand-secondary); }
.wt-head p { margin-top: .125rem; color: var(--wt-muted); font-size: .9375rem; }
.wt-updated { display: inline-flex; align-items: center; gap: .375rem; padding: .4rem .75rem; border: 1px solid var(--wt-line); border-radius: .75rem; background: #fff; color: var(--wt-muted); font-size: .8125rem; }
.wt-updated svg { color: var(--brand-primary); }
.wt-grid { display: grid; gap: 1rem; margin-top: 1.25rem; }
.wt-card { padding: 1.125rem 1.25rem; border: 1px solid var(--wt-line); border-radius: 1.125rem; background: #fff; box-shadow: 0 6px 18px -14px rgb(15 23 42 / .35); }
.wt-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding-bottom: .875rem; border-bottom: 1px solid var(--wt-line); }
.wt-terminal { display: flex; align-items: center; gap: .375rem; color: var(--brand-primary); font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.wt-checkpoint { margin-top: .25rem; font-family: var(--font-display, inherit); font-size: 1.0625rem; font-weight: 700; color: var(--brand-secondary); }
.wt-card-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .875rem; padding: .75rem .875rem; border-radius: .75rem; background: #f3f7fd; font-size: .875rem; }
.wt-card-row span { display: inline-flex; align-items: center; gap: .375rem; color: var(--brand-primary); font-weight: 600; }
.wt-chart { margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--wt-line); border-radius: 1.125rem; background: #fff; }
.wt-legend { display: inline-flex; align-items: center; gap: .375rem; color: var(--wt-muted); font-size: .75rem; }
.wt-legend i { display: inline-block; width: .75rem; height: .75rem; margin-left: .5rem; border-radius: .2rem; }
.wt-key-now, .wt-bar.is-now .wt-bar-fill { background: var(--brand-primary); }
.wt-key-peak, .wt-bar.is-peak .wt-bar-fill { background: var(--wt-high); }
.wt-bars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: end; gap: .25rem; height: 11rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.wt-bar { display: flex; height: 100%; flex-direction: column; align-items: center; gap: .25rem; min-width: 0; }
.wt-bar-val { color: var(--wt-muted); font-size: .625rem; font-weight: 600; line-height: 1; }
.wt-bar-track { display: flex; width: 100%; flex: 1; align-items: flex-end; }
.wt-bar-fill { display: block; width: 100%; border-radius: .3rem .3rem .1rem .1rem; background: color-mix(in srgb, var(--brand-primary) 28%, #fff); }
.wt-bar-label { color: var(--wt-muted); font-size: .625rem; line-height: 1; white-space: nowrap; }
.wt-bar:nth-child(odd) .wt-bar-label { visibility: hidden; }
.wt-bar.is-now .wt-bar-val, .wt-bar.is-peak .wt-bar-val { color: var(--brand-secondary); font-weight: 800; }
.wt-source { margin-top: 1rem; color: var(--wt-muted); font-size: .75rem; }
.wt-empty { color: var(--wt-muted); }
@media (min-width: 640px) { .wt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wt-top, .wt-body { padding: 2rem; } }
@media (min-width: 1024px) {
    .wt-top { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: center; padding: 2.25rem 2.5rem; }
    .wt-body { padding: 2.25rem 2.5rem; }
    .wt-code { font-size: 3.5rem; }
}
@media (max-width: 639px) {
    .wt-stats > div { padding: .875rem .75rem; }
    .wt-stats dd { font-size: 1.75rem; }
    .wt-stats dd.wt-dd-text { font-size: .9375rem; line-height: 1.75rem; }
    .wt-bars { gap: .125rem; height: 9rem; }
    .wt-bar-val { display: none; }
    .wt-bar:not(:nth-child(6n+1)) .wt-bar-label { visibility: hidden; }
    .wt-bar:nth-child(6n+1) .wt-bar-label { visibility: visible; }
}
.wt-note { display: flex; gap: .625rem; margin-top: 1.5rem; padding: .875rem 1rem; border-left: 4px solid var(--brand-primary); border-radius: .75rem; background: #fff; color: #334155; font-size: .9375rem; line-height: 1.6; }
.wt-note svg { flex: none; margin-top: .125rem; color: var(--brand-primary); }
.wt-note strong { color: var(--brand-secondary); }

/* ---------- Tip / Note / Important paragraphs in page content: a soft box with a coloured edge. ---------- */
.content-callout { --cc: var(--brand-primary, #2563eb); --cc-ink: color-mix(in srgb, var(--cc) 80%, #000);
    margin: 1.5rem 0 !important; padding: .875rem 1.125rem; border-left: 4px solid var(--cc); border-radius: .625rem;
    background: color-mix(in srgb, var(--cc) 8%, #fff); line-height: 1.7; }
.content-callout-tip { --cc: #16a34a; --cc-ink: #166534; }
.content-callout-important { --cc: #d97706; --cc-ink: #92400e; }
.content-callout > strong:first-child, .content-callout > b:first-child { color: var(--cc-ink); }
