/* -----------------------------------------------------------------------------
 * Product Lines Block
 * -------------------------------------------------------------------------- */
/* The theme has no global border-box, so anything here that mixes a width with
   padding has to opt in — a full-width CTA on mobile overflowed the viewport
   by its own padding without it. */
.productlines-block,
.productlines-block *,
.productlines-block *::before,
.productlines-block *::after {
    box-sizing: border-box;
}

.productlines-block {
    /* Offsets for the sticky header + jump bar. Overridden per breakpoint. */
    --pl-header-h: 121px;
    --pl-nav-h: 60px;
    --pl-line: #e2e5e8;
    --pl-ink: #24272b;
    --pl-muted: #62676c;
    --pl-band: #f3f5f6;
}

/* -----------------------------------------------------------------------------
 * Intro
 * -------------------------------------------------------------------------- */
.productlines-intro {
    padding: 72px 0 60px;
}

.productlines-intro__heading {
    font-size: 2.5rem;
    line-height: 1.16;
    margin: 0 0 20px;
    color: #101214;
}

.productlines-intro__copy p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #3d4247;
    margin: 0 0 18px;
}

.productlines-intro__copy p:last-child {
    margin-bottom: 0;
}

/* -----------------------------------------------------------------------------
 * Jump bar
 * -------------------------------------------------------------------------- */
.productlines-nav {
    position: sticky;
    top: var(--pl-header-h);
    z-index: 9;
    background: #17191c;
    border-bottom: 3px solid var(--tertiary, #ffef00);
}

.productlines-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.productlines-nav__item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.productlines-nav__link {
    display: block;
    padding: 18px 0;
    font-family: var(--font2);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #d7dade;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: var(--transition-default);
}

.productlines-nav__link:hover,
.productlines-nav__link:focus-visible {
    color: #fff;
    border-bottom-color: var(--tertiary, #ffef00);
}

/* -----------------------------------------------------------------------------
 * Row
 * -------------------------------------------------------------------------- */
.productlines-row {
    padding: 76px 0;
    scroll-margin-top: calc(var(--pl-header-h) + var(--pl-nav-h));
    border-bottom: 1px solid var(--pl-line);
}

.productlines-row:last-child {
    border-bottom: 0;
}

.productlines-row--alt {
    background: var(--pl-band);
}

.productlines-row__inner {
    display: grid;
    grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
    gap: 60px;
    align-items: start;
}

/* Flip the image to the right on every other row — the copy column keeps the
   wider track, so the two layouts stay visually balanced. */
.productlines-row--alt .productlines-row__inner {
    grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
}

.productlines-row--alt .productlines-row__media {
    order: 2;
}

/* -----------------------------------------------------------------------------
 * Image plate
 * -------------------------------------------------------------------------- */
/* The row is start-aligned so the copy sits at the top; the media column is
   stretched back to full height on purpose, because that is the track the
   sticky plate travels inside. Sticky on the grid item itself does nothing —
   a start-aligned item is only as tall as its content, so it has nowhere to go. */
.productlines-row__media {
    align-self: stretch;
}

.productlines-plate {
    position: sticky;
    top: calc(var(--pl-header-h) + var(--pl-nav-h) + 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--pl-line);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(16, 18, 20, 0.04);
}

.productlines-plate__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* -----------------------------------------------------------------------------
 * Copy
 * -------------------------------------------------------------------------- */
.productlines-row__body {
    /* The site container runs to 1500px; left unchecked the headings and spec
       columns run right out to it and stop being readable. */
    max-width: 820px;
}

.productlines-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-family: var(--font2);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pl-muted);
}

.productlines-eyebrow::before {
    content: "";
    flex: 0 0 auto;
    width: 26px;
    height: 3px;
    background: var(--tertiary, #ffef00);
}

.productlines-heading {
    font-size: 2.25rem;
    line-height: 1.18;
    margin: 0 0 22px;
    color: #101214;
}

.productlines-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.productlines-chip {
    margin: 0;
    padding: 7px 14px;
    font-family: var(--font2);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pl-ink);
    background: #fff;
    border: 1px solid #d3d8dc;
    border-left: 3px solid var(--tertiary, #ffef00);
    border-radius: 2px;
    list-style: none;
}

.productlines-lead {
    max-width: 66ch;
    color: #3d4247;
}

.productlines-lead p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: inherit;
    margin: 0 0 18px;
}

.productlines-lead p:last-child {
    margin-bottom: 0;
}

/* -----------------------------------------------------------------------------
 * Specifications
 * -------------------------------------------------------------------------- */
.productlines-specs {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--pl-line);
}

.productlines-row--alt .productlines-specs {
    border-top-color: #dfe3e6;
}

.productlines-specs__title {
    margin: 0 0 14px;
    font-family: var(--font2);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pl-muted);
}

.productlines-specs__title + .productlines-specs__list {
    margin-bottom: 24px;
}

.productlines-specs__list {
    columns: 2;
    column-gap: 44px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.productlines-specs__list:last-child {
    margin-bottom: 0;
}

.productlines-specs__item {
    break-inside: avoid;
    position: relative;
    margin: 0 0 10px;
    padding-left: 18px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #45494d;
    list-style: none;
}

.productlines-specs__item::before {
    content: "";
    position: absolute;
    top: 0.6em;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--tertiary, #ffef00);
    border: 1px solid #c9bd00;
}

/* -----------------------------------------------------------------------------
 * Footnote + CTA
 * -------------------------------------------------------------------------- */
.productlines-foot {
    max-width: 66ch;
    margin-top: 22px;
}

.productlines-foot p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #5c6166;
    margin: 0 0 12px;
}

.productlines-foot p:last-child {
    margin-bottom: 0;
}

.productlines-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 14px 28px;
    font-family: var(--font2);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #101214;
    text-decoration: none;
    background: transparent;
    border: 2px solid #101214;
    border-radius: 4px;
    transition: var(--transition-default);
}

.productlines-cta:hover,
.productlines-cta:focus-visible {
    background: var(--tertiary, #ffef00);
    border-color: var(--tertiary, #ffef00);
    color: #101214;
}

.productlines-cta__arrow {
    transition: var(--transition-default);
}

.productlines-cta:hover .productlines-cta__arrow {
    transform: translateX(4px);
}

/* -----------------------------------------------------------------------------
 * Tablet
 * -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .productlines-block {
        --pl-header-h: 91px;
        --pl-nav-h: 54px;
    }

    .productlines-intro {
        padding: 52px 0 44px;
    }

    .productlines-intro__heading {
        font-size: 2.125rem;
    }

    .productlines-row {
        padding: 56px 0;
    }

    .productlines-row__inner,
    .productlines-row--alt .productlines-row__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    /* Image back on top once the row stacks, whichever side it sat on. */
    .productlines-row--alt .productlines-row__media {
        order: 0;
    }

    .productlines-row__media {
        align-self: start;
        max-width: 480px;
    }

    .productlines-plate {
        position: static;
    }

    .productlines-heading {
        font-size: 2rem;
    }

    .productlines-nav__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0 24px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .productlines-nav__list::-webkit-scrollbar {
        display: none;
    }

    .productlines-nav__item {
        flex: 0 0 auto;
    }

    .productlines-nav__link {
        padding: 15px 0;
        white-space: nowrap;
    }
}

/* -----------------------------------------------------------------------------
 * Mobile
 * -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .productlines-block {
        --pl-header-h: 75px;
        --pl-nav-h: 51px;
    }

    .productlines-intro {
        padding: 40px 0 34px;
    }

    .productlines-intro__heading {
        font-size: 1.75rem;
    }

    .productlines-intro__copy p {
        font-size: 1.0625rem;
    }

    .productlines-row {
        padding: 44px 0;
    }

    .productlines-row__media {
        max-width: none;
    }

    .productlines-plate {
        padding: 20px;
    }

    .productlines-heading {
        font-size: 1.625rem;
        margin-bottom: 18px;
    }

    .productlines-lead p {
        font-size: 1rem;
    }

    .productlines-specs__list {
        columns: 1;
    }

    .productlines-cta {
        width: 100%;
        justify-content: center;
    }

    .productlines-nav__link {
        font-size: 0.8125rem;
        padding: 14px 0;
    }

    /* The link strip scrolls sideways on a phone with the scrollbar hidden, so
       fade the right edge to show there is more of it. */
    .productlines-nav .container {
        position: relative;
    }

    .productlines-nav .container::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 44px;
        height: 100%;
        background: linear-gradient(to right, rgba(23, 25, 28, 0), #17191c 70%);
        pointer-events: none;
    }
}
