/* min-width: 0 — довгий текст/флекс у колонці не роздуває рядок */
.content-col-grow {
    min-width: 0;
}

.content-stack-col--text {
    overflow-wrap: anywhere;
}

.content-stack-col--text > :first-child {
    width: 100%;
    max-width: 65ch;
    margin-inline: auto;
}

/* gap лише для Tailwind (grid). У Bootstrap — відступи через g-* у component (row-cols + g-3), без CSS gap на .row */
.content-grid-gap:not(.row) {
    gap: 1rem;
}

.content-full-frame {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.content-section-pad {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Третина рядка: стабільна висота прев’ю, без height:100% від сусіднього тексту */
.content-img-fullheight {
    display: block;
    width: 100%;
    max-width: min(100%, 28rem);
    margin-inline: auto;
    min-width: 0;
    aspect-ratio: 3 / 4;
    max-height: 28rem;
    height: auto;
    flex-shrink: 1;
    object-fit: cover;
    object-position: center;
}

.tips-financial__card {
    max-width: 24rem;
}

.tips-financial__thumb {
    width: 2.5rem;
    height: 2.5rem;
}

.faq-sorter__pill { appearance: none; -webkit-appearance: none; font: inherit; cursor: pointer; transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, transform 200ms ease; }
.faq-sorter__pill:active { transform: scale(.97); }
.faq-sorter__count { min-width: 1.25rem; text-align: center; }

.faq-sorter__toggle { appearance: none; -webkit-appearance: none; font: inherit; cursor: pointer; }
.faq-sorter__item { transition: border-color 250ms ease, box-shadow 250ms ease; }
.faq-sorter__chev { width: 2.5rem; height: 2.5rem; transition: transform 350ms cubic-bezier(.2, .8, .2, 1); }
.faq-sorter__item.is-open .faq-sorter__chev { transform: rotate(180deg); }

.faq-sorter__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 400ms cubic-bezier(.2, .8, .2, 1); }
.faq-sorter__item.is-open .faq-sorter__panel { grid-template-rows: 1fr; }
.faq-sorter__inner { overflow: hidden; min-height: 0; }
.faq-sorter__inner > * { opacity: 0; transform: translateY(-.5rem); transition: opacity 300ms ease, transform 300ms ease; }
.faq-sorter__item.is-open .faq-sorter__inner > * { opacity: 1; transform: none; transition-delay: 120ms; }

.faq-sorter__badge { width: 3.5rem; height: 3.5rem; }

@keyframes faq-sorter-in { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }
.faq-sorter__item.is-entering { animation: faq-sorter-in 450ms cubic-bezier(.2, .8, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
    .faq-sorter__pill, .faq-sorter__item, .faq-sorter__chev, .faq-sorter__panel, .faq-sorter__inner > * { transition: none; }
    .faq-sorter__item.is-entering { animation: none; }
}

/* wpg-hidden: utility classes are renamed in production builds, so hidden states must not rely on .hidden / .d-none alone */
.faq-sorter[hidden], .faq-sorter [hidden], .faq-sorter .hidden.d-none { display: none !important; }

/* Production builds compile the sem classes after the utility layer, so the toggled colour utilities cannot override them; mark the active filter with weight and an inset ring instead. */
.faq-sorter__pill[aria-selected="true"] { font-weight: 700; box-shadow: inset 0 0 0 2px; }


.drive-signup__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.drive-signup__grid {
    min-height: 350px;
}

@keyframes drive-signup-spark-beat-seq {
    0%, 100% { opacity: 1; }
    50%       { opacity: .5; }
}
.drive-signup__spark--beat {
    animation: drive-signup-spark-beat-seq 2s cubic-bezier(.4,0,.6,1) infinite;
}

.drive-signup__prompt--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

/* subscribe v24 — postcard: geometry shared by both CSS frameworks, no colors */
.mailing-postcard__section--py-4xl {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.mxw-3xl {
    max-width: 48rem !important;
}

/* perforated seam between the stamp stub and the message body */
.mailing-postcard__stub {
    border-bottom-width: 2px;
    border-bottom-style: dashed;
}

.mailing-postcard__perf {
    width: 0;
    border-inline-start-width: 2px;
    border-inline-start-style: dashed;
}

.mailing-postcard__label {
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

.mailing-postcard__body {
    padding: 2rem;
}

.mailing-postcard__stamp {
    top: 1rem;
    inset-inline-end: 1rem;
    width: 3.5rem;
    height: 3.5rem;
    transform: rotate(4deg);
}

.mailing-postcard__title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    padding-inline-end: 4rem;
}

.mailing-postcard__text {
    margin-bottom: 1.5rem;
    padding-inline-end: 4rem;
}

.mailing-postcard__row {
    flex-direction: column;
    gap: 0.75rem;
}

.mailing-postcard__input,
.mailing-postcard__cta {
    padding: 0.75rem 1rem;
}

.mailing-postcard__cta {
    padding-inline: 1.5rem;
}

@media (min-width: 640px) {
    .mailing-postcard__row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .mailing-postcard__stub {
        width: 25%;
        border-bottom-width: 0;
    }

    .mailing-postcard__body {
        width: 75%;
    }

    .mailing-postcard__title {
        font-size: 1.875rem;
    }
}

