/* ============================================================================
   Carrier pages — /airlines, /airlines/{slug}, /ferries, /ferries/{slug}
   ----------------------------------------------------------------------------
   Mobile-first, and built on the Destinito tokens the rest of the umbrella app
   uses (--navy, --orange, --ink, --muted, --line, --surface). No new palette:
   a fifth hue on one page type reads as a different site.

   The one structure specific to these pages is the operating-day matrix. It has
   to be legible at 360px without turning into a scroll, which rules out a table
   per route — hence seven fixed cells, which fit because a weekday abbreviates
   to two characters.
   ========================================================================== */

/* Each stylesheet on this site declares its own copy rather than relying on a
   global utility layer that does not exist. Used for table captions and for the
   sentence that replaces the day matrix for a screen reader. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.carrier-hero {
    background: var(--navy, #0f2742);
    color: #fff;
    padding-block: 2rem 1.75rem;
}

.carrier-hero-eyebrow {
    margin: 0 0 .35rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--orange, #f08a24);
}

.carrier-hero-title {
    margin: 0 0 .5rem;
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    line-height: 1.15;
}

.carrier-hero-summary {
    margin: 0;
    max-width: 60ch;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .88);
}

.carrier-hero-codes {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .85rem 0 0;
    padding: 0;
    list-style: none;
}

.carrier-code {
    padding: .2rem .5rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: .3rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.carrier-logo {
    max-height: 48px;
    max-width: 160px;
    margin-bottom: .75rem;
}

/* ---------------------------------------------------------------- badges */

.carrier-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}

.carrier-badge--verified {
    background: #15803d;
    color: #fff;
}

.carrier-badge--unpublished {
    background: #b45309;
    color: #fff;
}

/* The verification stamp. Deliberately quiet but always present: a schedule
   with no date beside it is a claim with no date on it. */
.carrier-stamp {
    margin: .5rem 0 0;
    font-size: .8rem;
    color: var(--muted, #5b6b7c);
}

.carrier-stamp--live {
    color: #15803d;
    font-weight: 600;
}

/* ---------------------------------------------------------------- sections */

.carrier-section {
    padding-block: 1.5rem;
    border-top: 1px solid var(--line, #e3e8ee);
}

.carrier-section > h2 {
    margin: 0 0 .25rem;
    font-size: 1.15rem;
}

.carrier-section-note {
    margin: 0 0 1rem;
    font-size: .85rem;
    color: var(--muted, #5b6b7c);
}

.carrier-empty {
    margin: 0;
    padding: .9rem 1rem;
    border: 1px dashed var(--line, #e3e8ee);
    border-radius: .5rem;
    font-size: .9rem;
    color: var(--muted, #5b6b7c);
}

/* ---------------------------------------------------------------- route table */

/* Tables are the one thing allowed to be wider than the viewport, each in its
   own scroller — the page body itself must never scroll sideways. */
.carrier-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.carrier-table {
    width: 100%;
    min-width: 32rem;
    border-collapse: collapse;
    font-size: .9rem;
}

.carrier-table th,
.carrier-table td {
    padding: .55rem .6rem;
    text-align: left;
    border-bottom: 1px solid var(--line, #e3e8ee);
    vertical-align: top;
}

.carrier-table th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted, #5b6b7c);
    white-space: nowrap;
}

.carrier-table td.carrier-num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.carrier-route-pair {
    font-weight: 600;
}

.carrier-route-sub {
    display: block;
    font-size: .78rem;
    font-weight: 400;
    color: var(--muted, #5b6b7c);
}

/* ---------------------------------------------------------------- day matrix */

.carrier-days {
    display: flex;
    gap: 2px;
}

.carrier-day {
    min-width: 1.6rem;
    padding: .15rem 0;
    border-radius: .2rem;
    font-size: .68rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    background: var(--surface, #f4f6f9);
    color: var(--muted, #5b6b7c);
}

.carrier-day--on {
    background: var(--navy, #0f2742);
    color: #fff;
}

/* ---------------------------------------------------------------- seasons */

.carrier-seasons {
    margin: .4rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .78rem;
    color: var(--muted, #5b6b7c);
}

.carrier-seasons li + li {
    margin-top: .15rem;
}

.carrier-season-label {
    font-weight: 700;
    color: var(--ink, #16212e);
}

/* ---------------------------------------------------------------- quality note */

.carrier-note {
    display: block;
    margin-top: .3rem;
    font-size: .78rem;
    color: #b45309;
}

/* ---------------------------------------------------------------- list rows */

.carrier-list {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 40rem) {
    .carrier-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .carrier-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.carrier-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .9rem 1rem;
    border: 1px solid var(--line, #e3e8ee);
    border-radius: .6rem;
    background: #fff;
}

.carrier-card-name {
    margin: 0;
    font-size: 1rem;
}

.carrier-card-name a {
    color: var(--ink, #16212e);
    text-decoration: none;
}

.carrier-card-name a:hover,
.carrier-card-name a:focus-visible {
    text-decoration: underline;
}

.carrier-card-meta {
    margin: 0;
    font-size: .8rem;
    color: var(--muted, #5b6b7c);
}

.carrier-card-logo {
    max-height: 28px;
    max-width: 110px;
    align-self: flex-start;
}

/* ---------------------------------------------------------------- group headings */

.carrier-group-heading {
    margin: 1.5rem 0 .6rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted, #5b6b7c);
}

/* ---------------------------------------------------------------- fares */

.carrier-fare-tax {
    font-size: .78rem;
    color: var(--muted, #5b6b7c);
}

/* ---------------------------------------------------------------- actions */

.carrier-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.carrier-btn {
    display: inline-block;
    padding: .55rem 1rem;
    border-radius: .4rem;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

.carrier-btn--primary {
    background: var(--orange, #f08a24);
    color: #1a1205;
}

.carrier-btn--secondary {
    border: 1px solid var(--line, #e3e8ee);
    color: var(--ink, #16212e);
}

/* ---------------------------------------------------------------- admin banner */

.carrier-admin-banner {
    margin: 1rem 0 0;
    padding: .85rem 1rem;
    border-left: 4px solid #b45309;
    border-radius: .35rem;
    background: #fff7ed;
    font-size: .88rem;
    color: #7c2d12;
}

.carrier-admin-banner ul {
    margin: .4rem 0 0;
    padding-left: 1.2rem;
}

.carrier-lead {
    margin-bottom: .6rem;
    font-size: 1.1rem;
}

.carrier-about p {
    max-width: 70ch;
    line-height: 1.6;
}
