.bike-decision-tier {
    display: inline-flex;
    margin: 0.25rem 0 1rem;
    padding: 0.38rem 0.72rem;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 999px;
    /* WHY: the shared detail surface is light. The prior pale gold had only
       1.43:1 contrast and made every bike's decision tier unreadable. */
    background: #fff8df;
    color: #6b4d00;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.bike-decision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1rem 0 1.5rem;
}

.bike-decision-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.bike-decision-block {
    min-width: 0;
    padding: 1rem;
    border: 1px solid #b69b61;
    border-radius: 12px;
    background: #fffdf7;
    color: #171816;
}

.bike-decision-block h2,
.bike-decision-block h3,
.catalog-related-bikes > h2,
.catalog-related-bikes > h3,
.catalog-related-toolbar h2,
.catalog-related-toolbar h3 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    line-height: 1.15;
}

.bike-decision-block p {
    margin: 0;
    line-height: 1.55;
}

.catalog-related-bikes {
    margin: 1.5rem 0;
}

.catalog-related-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.catalog-related-toolbar h2,
.catalog-related-toolbar h3 {
    margin-bottom: 0;
}

.catalog-related-duration-control select {
    min-height: 2.5rem;
    padding: 0.45rem 1.9rem 0.45rem 0.65rem;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    /* WHY: this control appears on the light detail page and inside the
       landing modal. Inheriting dark page text over a dark select made the
       selected duration effectively invisible in the real browser. */
    background: #fffdf7;
    color: #1a1a1a;
    font: inherit;
}

.catalog-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.catalog-related-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #b69b61;
    border-radius: 12px;
    background: #fffdf7;
    color: #171816;
    text-decoration: none;
    box-shadow: 0 3px 0 rgba(23, 24, 22, 0.12);
    transition: border-color 150ms ease, transform 150ms ease;
}

.catalog-related-card:hover,
.catalog-related-card:focus-visible {
    transform: translateY(-2px);
    border-color: #6b4d00;
}

.catalog-related-media {
    align-self: center;
    width: 96px;
    /* WHY: this is the landing-card image rendered smaller, not a second
       crop. Keep the same 4:3 frame so Hub-owned position/scale/rotation/flip
       produce the same composition in both places. */
    aspect-ratio: 4 / 3;
    margin: 0.5rem 0 0.5rem 0.5rem;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.catalog-related-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: var(--related-image-position, center center);
    transform-origin: var(--related-image-origin, var(--related-image-position, center center));
    transform:
        scale(var(--related-image-scale, 1))
        rotate(var(--related-image-rotation, 0deg))
        scaleX(var(--related-image-flip, 1));
}

.catalog-related-copy {
    display: grid;
    align-content: center;
    gap: 0.42rem;
    min-width: 0;
    padding: 0.85rem;
}

.catalog-related-copy strong,
.catalog-related-copy span,
.catalog-related-copy b {
    overflow-wrap: anywhere;
}

.catalog-related-copy strong {
    color: #171816;
    font-size: 1.05rem;
    line-height: 1.15;
}

.catalog-related-copy span {
    color: #444640;
    font-size: 0.92rem;
    line-height: 1.45;
}

.catalog-related-copy b {
    /* WHY: related-bike cards render on the same light cream surface as the
       decision tier. Pale gold made the live duration price unreadable. */
    color: #6b4d00;
    font-size: 0.9rem;
}

@media (min-width: 1024px) {
    .bike-decision-block p {
        font-size: 1.0625rem;
    }

    .catalog-related-copy strong {
        font-size: 1.125rem;
    }

    .catalog-related-copy span,
    .catalog-related-copy b {
        font-size: 1rem;
    }
}

@media (max-width: 700px) {
    .bike-decision-grid,
    .catalog-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .catalog-related-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-related-duration-control select {
        width: 100%;
    }

    .catalog-related-card {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .catalog-related-media {
        width: 78px;
        margin: 0.4rem 0 0.4rem 0.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-related-card {
        transition: none;
    }
}
