/* ============================================
   Competitor comparison pages (/clubforce-alternative etc.) and the /compare hub.
   Sits on top of _c-product-page.css, which owns the hero, sections, fees rows, gallery,
   FAQ, final CTA and cross-sell. This file is only the comparison table, the notes under it
   and the hub cards. Tokens only. On a phone the table never scrolls sideways: each row
   stacks into its label over the two answers.
   ============================================ */

.c-compare-page__table {
    width: 100%;
    max-width: 960px;
    border-collapse: collapse;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}

.c-compare-page__table th,
.c-compare-page__table td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid var(--line-soft);
    font-size: var(--font-size-base);
    line-height: 1.5;
}

.c-compare-page__table thead th {
    border-top: none;
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--ink-heading);
}

/* Deliberately not "__label": 08-mobile forces font-weight: normal !important on [class*="__label"] */
.c-compare-page__row-name {
    width: 24%;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink-heading);
}

.c-compare-page__cell {
    width: 38%;
    color: var(--body);
}

/* Our column carries the quiet accent tint so the eye can follow it down the table */
.c-compare-page__col--us,
.c-compare-page__cell--us {
    background: var(--accent-soft);
}

.c-compare-page__cell--us {
    color: var(--ink);
    font-weight: 600;
}

.c-compare-page__notes {
    max-width: 960px;
    margin: 20px 0 0;
}

.c-compare-page__note {
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--body);
    margin: 0 0 10px;
}

.c-compare-page__sources-label {
    font-weight: 600;
    color: var(--ink);
}

.c-compare-page__source {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.c-compare-page__source:hover,
.c-compare-page__source:visited,
.c-compare-page__source:active {
    color: var(--accent-strong);
}

/* ==========================================================================
   Phone: each row becomes its label over two labelled answers. No sideways scroll.
   ========================================================================== */

@media (max-width: 600px) {
    .c-compare-page__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .c-compare-page__table,
    .c-compare-page__table tbody {
        display: block;
    }

    .c-compare-page__row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-top: 1px solid var(--line-soft);
    }

    .c-compare-page__row:first-child {
        border-top: none;
    }

    .c-compare-page__table th,
    .c-compare-page__table td {
        border-top: none;
        padding: 12px 14px;
    }

    .c-compare-page__row-name {
        grid-column: 1 / -1;
        width: auto;
        padding-bottom: 4px;
    }

    .c-compare-page__cell {
        width: auto;
        font-size: var(--font-size-sm);
    }

    /* The tint and the accent column label carry the emphasis at this width; full bold over six lines is heavy */
    .c-compare-page__cell--us {
        font-weight: 500;
    }

    .c-compare-page__cell::before {
        content: attr(data-label);
        display: block;
        margin: 0 0 4px;
        font-size: var(--font-size-2xs);
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--body);
    }

    .c-compare-page__cell--us::before {
        color: var(--accent);
    }
}

/* ==========================================================================
   /compare hub: one card per platform, ours first on the same accent tint as our table column.
   Three across on desktop, stacked on a phone.
   ========================================================================== */

.c-compare-page__hub-hero {
    max-width: 720px;
}

.c-compare-page__hub-section {
    padding-top: 24px;
}

.c-compare-page__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.c-compare-page__card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 24px;
}

.c-compare-page__card--us {
    background: var(--accent-soft);
}

.c-compare-page__card-name {
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--ink-heading);
    letter-spacing: -0.01em;
    margin: 0 0 12px;
}

.c-compare-page__facts {
    margin: 0;
}

.c-compare-page__fact {
    padding: 10px 0;
    border-top: 1px solid var(--line-soft);
}

.c-compare-page__fact dt {
    font-size: var(--font-size-2xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--body);
    margin: 0 0 2px;
}

.c-compare-page__fact dd {
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--ink);
    margin: 0;
}

.c-compare-page__card-link,
.c-compare-page__card-link:hover,
.c-compare-page__card-link:visited,
.c-compare-page__card-link:active {
    margin-top: auto;
    padding-top: 16px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
