/* 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;
}


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

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

.content-heading-gap {
    margin-bottom: 2rem;
}

.content-img-compact {
    display: block;
    width: 100%;
    height: 12rem;
    min-height: 12rem;
    flex-shrink: 0;
    object-fit: cover;
}
@media (min-width: 768px) {
    .content-img-compact {
        height: 14rem;
        min-height: 14rem;
    }
}

.outline-orb-top {
    top: 0;
    right: 0;
    width: 18rem;
    height: 18rem;
    filter: blur(3rem);
}

.outline-orb-bottom {
    bottom: 0;
    left: 0;
    width: 18rem;
    height: 18rem;
    filter: blur(3rem);
}

.outline-media-group:hover .outline-image-hover {
    transform: scale(1.1);
}

.outline-image-hover {
    transition: transform 0.7s ease;
}

.outline-overlay-hover {
    transition: opacity 0.5s ease;
}

.outline-media-group:hover .outline-overlay-hover {
    opacity: 1;
}

.outline-float-star {
    top: -1rem;
    right: -1rem;
}

.outline-float-check {
    bottom: -1rem;
    left: -1rem;
}

@keyframes bounce-kf {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25%); }
}

@keyframes pulse-kf {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.35; }
}

.outline-bounce {
    animation: bounce-kf 1s infinite;
}

.outline-pulse {
    animation: pulse-kf 3s ease-in-out infinite;
}

.outline-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.outline-card-group:hover .outline-card-hover {
    transform: scale(1.05);
    box-shadow: var(--bs-box-shadow-lg);
}

.outline-icon-rotate-hover {
    transition: transform 0.3s ease;
}

.outline-card-group:hover .outline-icon-rotate-hover {
    transform: rotate(12deg);
}

.outline-title-hover {
    transition: color 0.3s ease;
}

.outline-card-group:hover .outline-title-hover {
    color: var(--bs-primary);
}

.outline-sq-6  { width: 1.5rem;  height: 1.5rem;  flex-shrink: 0; }
.outline-sq-8  { width: 2rem;    height: 2rem;    flex-shrink: 0; }
.outline-sq-14 { width: 3.5rem;  height: 3.5rem;  flex-shrink: 0; }

.content-prose__diamond {
    transform: rotate(45deg);
}

/* Decor geometry (layout only; colors stay in Blade / @sem) */
.leaflet-document__decor-1 {
    position: absolute;
    width: 8rem;
    height: 8rem;
    top: 0;
    left: 0;
    transform: translate(-4rem, -4rem);
    z-index: 0;
    pointer-events: none;
}

.leaflet-document__decor-2 {
    position: absolute;
    width: 12rem;
    height: 12rem;
    bottom: 0;
    right: 0;
    transform: translate(6rem, 6rem);
    z-index: 0;
    pointer-events: none;
}

.leaflet-document__decor-3 {
    position: absolute;
    width: 6rem;
    height: 6rem;
    top: 50%;
    right: 0;
    transform: translate(3rem, -50%);
    z-index: 0;
    pointer-events: none;
}

.leaflet-document__decor-4 {
    position: absolute;
    width: 4rem;
    height: 4rem;
    left: 25%;
    bottom: 25%;
    transform: translate(-50%, 50%);
    z-index: 0;
    pointer-events: none;
}

.leaflet-document__divider-bar {
    height: 0.25rem;
}

.leaflet-document__title-trail { margin-bottom: 2rem; }

.leaflet-document__rule-trail { margin-bottom: 3rem; }

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

.content-prose-measure {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.content-heading-gap {
    margin-bottom: 2rem;
}

.gallery-flush-cards__card {
    transition: transform 0.3s ease;
}
.gallery-flush-cards__card:hover {
    transform: scale(1.05);
}
.gallery-flush-cards__img {
    height: 16rem;
}

.content-img-ratio {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    object-fit: cover;
    flex-shrink: 0;
}

.document-folio__photo--shift:hover { transform: scale(1.05); transition: transform .2s ease; }

.document-folio__appeal--shift:hover { transform: scale(1.05); transition: transform .2s ease; }

.content-heading-gap {
    margin-bottom: 2rem;
}

.content-flex-min {
    min-width: 0;
}

.content-memo-outline__grid {
    width: 6rem;
    height: 6rem;
    pointer-events: none;
}

