.ribbon-flow__accent--1 { width: 8rem; height: 8rem; filter: blur(2rem); }
.ribbon-flow__accent--2 { width: 10rem; height: 10rem; filter: blur(2rem); }
.ribbon-flow__accent--3 { width: 6rem; height: 6rem; filter: blur(1.5rem); }
.ribbon-flow__accent--4 { width: 7rem; height: 7rem; filter: blur(1.5rem); }
.ribbon-flow__accent--5 { width: 9rem; height: 9rem; filter: blur(2rem); }

.ribbon-flow__line--1 { height: 0.125rem; }
.ribbon-flow__line--2 { height: 0.125rem; top: 25%; }
.ribbon-flow__line--3 { height: 0.125rem; top: 50%; }
.ribbon-flow__line--4 { height: 0.125rem; top: 75%; }
.ribbon-flow__line--5 { height: 0.125rem; }

.ribbon-flow__dot--1, .ribbon-flow__dot--2, .ribbon-flow__dot--3, .ribbon-flow__dot--4,
.ribbon-flow__dot--5, .ribbon-flow__dot--6, .ribbon-flow__dot--7, .ribbon-flow__dot--8 {
    width: 0.5rem; height: 0.5rem;
}

.ribbon-flow__dash--1, .ribbon-flow__dash--2, .ribbon-flow__dash--3, .ribbon-flow__dash--4 {
    width: 8rem; height: 0.125rem;
}
.ribbon-flow__dash--1 { top: 25%; }
.ribbon-flow__dash--2 { top: 50%; }
.ribbon-flow__dash--3 { bottom: 25%; width: 6rem; }
.ribbon-flow__dash--4 { bottom: 50%; width: 6rem; }

.ribbon-flow__shape--1 { width: 4rem; height: 4rem; transform: rotate(45deg); }
.ribbon-flow__shape--2 { width: 3rem; height: 3rem; transform: rotate(45deg); }
.ribbon-flow__shape--3 { width: 2rem; height: 2rem; }
.ribbon-flow__shape--4 { width: 2.5rem; height: 2.5rem; }

.ribbon-flow__title-line--1, .ribbon-flow__title-line--2 {
    width: 4rem; height: 0.125rem; transform: translateY(-50%);
}
.ribbon-flow__title-dot--1 { width: 0.5rem; height: 0.5rem; top: -0.5rem; right: -0.5rem; }
.ribbon-flow__title-dot--2 { width: 0.5rem; height: 0.5rem; bottom: -0.5rem; left: -0.5rem; }

.ribbon-flow__media--xl { height: 20rem; }
.ribbon-flow__media--lg { height: 18rem; }
.ribbon-flow__media--md { height: 16rem; }

.ribbon-flow__glow--br { background: radial-gradient(circle at bottom right, rgba(var(--bs-primary-rgb), 0.2), transparent); }
.ribbon-flow__glow--bl { background: radial-gradient(circle at bottom left, rgba(var(--bs-primary-rgb), 0.2), transparent); }

.ribbon-flow__card--hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}
.ribbon-flow__card--hover:hover {
    transform: scale(1.05);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.2);
}

.ribbon-flow__img--zoom {
    transition: transform 0.5s ease;
}
.ribbon-flow__row:hover .ribbon-flow__img--zoom {
    transform: scale(1.1);
}

.ribbon-flow__overlay--fade {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ribbon-flow__row:hover .ribbon-flow__overlay--fade {
    opacity: 1;
}

.ribbon-flow__overlay--glow {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.ribbon-flow__row:hover .ribbon-flow__overlay--glow {
    opacity: 1;
}

.ribbon-flow__corner--tl, .ribbon-flow__corner--br { width: 5rem; height: 5rem; }

.ribbon-flow__badge--left { left: 1rem; }
.ribbon-flow__badge--right { right: 1rem; }

.ribbon-flow__accent-corner--tr { right: 0; width: 1.5rem; height: 1.5rem; border-right-width: 2px; }
.ribbon-flow__accent-corner--tl { left: 0; width: 1.5rem; height: 1.5rem; border-left-width: 2px; }
.ribbon-flow__accent-corner--bl { left: 0; width: 1.5rem; height: 1.5rem; border-left-width: 2px; }
.ribbon-flow__accent-corner--br { right: 0; width: 1.5rem; height: 1.5rem; border-right-width: 2px; }

.ribbon-flow__panel--slide {
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.ribbon-flow__row:hover .ribbon-flow__panel--slide {
    transform: translateY(0);
}

.ribbon-flow__slot { width: 5rem; height: 0.25rem; }
.ribbon-flow__slot-line { height: 0.125rem; opacity: 0; transition: opacity 0.3s ease; }
.ribbon-flow__slot-dot { width: 0.5rem; height: 0.5rem; opacity: 0; transition: opacity 0.3s ease; }
.ribbon-flow__row:hover .ribbon-flow__slot-line,
.ribbon-flow__row:hover .ribbon-flow__slot-dot {
    opacity: 1;
}

.ribbon-flow__row-accent--left { left: 0; transform: translateY(-50%); width: 2rem; height: 2rem; opacity: 0; transition: opacity 0.3s ease; }
.ribbon-flow__row-accent--right { right: 0; transform: translateY(-50%); width: 2rem; height: 2rem; opacity: 0; transition: opacity 0.3s ease; }
.ribbon-flow__row:hover .ribbon-flow__row-accent--left,
.ribbon-flow__row:hover .ribbon-flow__row-accent--right {
    opacity: 1;
}

/* Bootstrap Fallbacks */
@media (min-width: 768px) {
   
    .ribbon-flow__media--w40 { width: 40%; }
    .ribbon-flow__media--w33 { width: 33.333333%; }
}

.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;
}

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

/* Layout / motion — colors stay in Blade / @sem */
/* Grid + gap here only: @sem output may obfuscate class names, so Tailwind gap/grid on the wrapper is unreliable */

.philosophy-cards-row {
    display: grid;
    width: 100%;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
    .philosophy-cards-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.philosophy-decor {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.philosophy-numbered-badge {
    width: 4rem;
    height: 4rem;
}

.philosophy-card {
    transition: transform 0.5s ease;
}

.philosophy-card:hover {
    transform: scale(1.05);
}

.philosophy-card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.25rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.philosophy-card:hover .philosophy-card-accent {
    opacity: 1;
}

.philosophy-bg__img {
    object-fit: cover;
}

/* content gutter — bracket ticks share width */
.content-gutter__tick {
    width: 1px;
}

/* solo column: span full grid / row when second stack hidden */
.content-gutter__lead--span {
    grid-column: 1 / -1;
}

.content-focus-checklist__button {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
    outline-offset: 0.2rem;
    transition: transform 180ms ease;
}

.content-focus-checklist__button:hover {
    transform: translateY(-0.125rem);
}

.content-focus-checklist__button.is-active {
    transform: translateX(0.25rem);
}

.content-col-grow {
    flex: 1 1 0%;
    min-width: 0;
}

.content-grid-gap {
    gap: 2rem;
}

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

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

.content-img-fullheight {
    display: block;
    width: 100%;
    height: 16rem;
    min-height: 16rem;
    flex-shrink: 0;
    object-fit: cover;
}
@media (min-width: 992px) {
    .content-img-fullheight {
        height: 100%;
        min-height: 16rem;
    }
}

