/* ==========================================================================
   Car-Stories companies page
   Builds on pricing.css and features.css (brand variables, utilities,
   carousel, segment switch, steps). Load both before this file.
   ========================================================================== */

/* ----- Tyre storage label: thermal print look, the hero's signature element ----- */
.cs-tyre-label {
    --cs-label-ink: #000;
    --cs-label-paper: #fff;
    max-width: 24rem;
    background: var(--cs-label-paper);
    color: var(--cs-label-ink);
    border-radius: .6rem;
    box-shadow: 0 1.5rem 3rem rgba(5, 10, 35, .35);
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

@media (min-width: 992px) {
    .cs-tyre-label { transform: rotate(-1.5deg); }
}

.cs-label-body { padding: 1.5rem 1.5rem 1.25rem; }

.cs-label-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: .75rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--cs-label-ink);
}

/* Season pictogram, printed inverted */
.cs-label-season {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .3rem;
    background: var(--cs-label-ink);
    color: var(--cs-label-paper);
    font-size: 1.6rem;
}

/* Storage slot: the one thing the warehouse staff reads from a distance */
.cs-label-slot {
    display: block;
    font-size: clamp(2.75rem, 7vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
}

.cs-plate {
    flex: none;
    padding: .15rem .55rem;
    border: 2px solid var(--cs-label-ink);
    border-radius: .3rem;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
}

.cs-label-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem 1rem;
    margin: 0 0 1rem;
    padding: .75rem 0;
    border-top: 1px solid var(--cs-label-ink);
    border-bottom: 1px solid var(--cs-label-ink);
}
.cs-label-facts dt { font-size: .75rem; font-weight: 400; }
.cs-label-facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.cs-label-facts-wide { grid-column: 1 / -1; }

/* Tread depth per wheel position */
.cs-label-tread {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 1rem;
    border: 1px solid var(--cs-label-ink);
}
.cs-label-tread li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .35rem .25rem;
    white-space: nowrap;
}
.cs-label-tread li + li { border-left: 1px solid var(--cs-label-ink); }

.cs-label-barcode { display: block; width: 100%; height: 3rem; fill: var(--cs-label-ink); }
.cs-label-code { display: block; margin-top: .25rem; font-size: .8rem; letter-spacing: .2em; text-align: center; }

/* Tear-off stub below the perforation */
.cs-label-stub {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .9rem 1.5rem 1.1rem;
    border-top: 2px dashed var(--cs-label-ink);
}

/* ----- Role matrix ----- */
.cs-role-matrix {
    --bs-table-bg: transparent;
    min-width: 46rem;
}
.cs-role-matrix > :not(caption) > * > * { padding: .75rem 1rem; }
.cs-role-matrix thead th { vertical-align: bottom; }

/* Module column stays visible while the matrix scrolls sideways on small screens */
.cs-role-matrix th[scope="row"],
.cs-role-matrix thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--bs-body-bg);
}

.cs-access {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 1.05rem;
    line-height: 1;
}
.cs-access-none { color: var(--bs-secondary-color); }

/* ----- Steps: 2 columns between md and lg, no connector at the row end ----- */
@media (min-width: 768px) and (max-width: 991.98px) {
    .cs-companies .cs-step:nth-child(2n)::after { content: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cs-tyre-label { transform: none; }
}
