/* ============================================================
   Comparison Table block
   Cards sit in the theme's .card-grid (same as Page Link Cards).
   ============================================================ */

.block-comparison-table .card-grid {
    align-items: stretch;
}

.block-comparison-table .comparison-table--card {
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box; /* padding comes from the theme's .pa4 (2rem), as Page Link Cards */
    --flow-space: 1.25rem;
}

.block-comparison-table .comparison-table--intro {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Price table: label left, price right, a line between rows */
.block-comparison-table .comparison-table--prices {
    margin-top: var(--flow-space);
    margin-bottom: 0;
    border-top: 1px solid currentColor;
}

.block-comparison-table .comparison-table--row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 12px 0;
    border-bottom: 1px solid currentColor;
}

/* Lines are softer than the text */
.block-comparison-table .comparison-table--prices,
.block-comparison-table .comparison-table--row {
    border-color: color-mix(in srgb, currentColor 25%, transparent);
}

.block-comparison-table .comparison-table--row dt,
.block-comparison-table .comparison-table--row dd {
    margin: 0;
}

.block-comparison-table .comparison-table--row dd {
    text-align: right;
}

/* Button sits at the bottom of every card, so buttons line up across cards.
   Gap above it comes from .mt-1-5 on the button, as Page Link Cards */
.block-comparison-table .comparison-table--button {
    margin-top: auto;
}
