/* Hosting-only surface. Kept separate from the shared design-system bundle so
 * unrelated account or ticket releases cannot replace these layout rules. */
.stratix-hosting-page > :not(.stratix-hosting-hero) {
    inline-size: min(calc(100% - 2rem), 109.5rem);
    margin-inline: auto;
}

.stratix-hosting-migration-mark {
    display: grid;
    place-items: center;
    inline-size: 7rem;
    block-size: 5.25rem;
    border-radius: 1rem;
    color: #d9f9b8;
    background: #183547;
}

.stratix-hosting-migration-icon {
    inline-size: 5.5rem;
    block-size: 4.125rem;
    overflow: visible;
}

/* Every viewport uses the same compact, readable plan-card hierarchy. */
.stratix-hosting-plan-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title product"
        "cycle price"
        "action action"
        "features features";
    align-items: center;
    column-gap: .75rem;
    row-gap: .55rem;
}

.stratix-hosting-plan-product { grid-area: product; justify-self: left; margin: 0; }
.stratix-hosting-plan-heading { display: contents; }
.stratix-hosting-plan-heading h3 { grid-area: title; justify-self: right; margin: 0; }
.stratix-hosting-plan-heading .stratix-hosting-plan-cycle-select { grid-area: cycle; justify-self: right; width: 8.25rem; min-width: 0; margin: 0; }
.stratix-hosting-plan-price { grid-area: price; justify-self: left; margin: 0; text-align: left; }
.stratix-hosting-plan-action { grid-area: action; margin: .25rem 0 0; }
.stratix-hosting-plan-features { grid-area: features; }

/* Sticky table headings attach to the viewport without a blank offset. */
.stratix-hosting-comparison thead th,
.stratix-hosting-specification-table thead th,
body.admin-bar .stratix-hosting-comparison thead th,
body.admin-bar .stratix-hosting-specification-table thead th { top: 0; }

/* Only the desktop cards shrink; the section and its columns retain their width. */
@media (min-width: 48rem) {
    .stratix-hosting-plan-card { width: 85%; justify-self: center; box-sizing: border-box; }
}

@media (max-width: 47.99rem) {
    .stratix-hosting-page > :not(.stratix-hosting-hero) {
        inline-size: min(calc(100% - 1.5rem), 109.5rem);
    }

    .stratix-hosting-migration-mark {
        inline-size: 5.25rem;
        block-size: 4.25rem;
    }

    .stratix-hosting-migration-icon {
        inline-size: 4.35rem;
        block-size: 3.3rem;
    }

    .stratix-hosting-plan-card { width: 100%; }
}
