/* intro v30 — sticky sidebar + single wide photo with overlay */

.intro-lane__fluid {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.intro-lane__main { min-width: 0; }

.intro-lane__banner {
    min-height: 16rem;
}

.intro-lane__banner-img {
    object-fit: cover;
}

@media (min-width: 992px) {
    .intro-lane__banner { min-height: 22rem; }
}

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

.briefing-chapter__column-inset {
    padding: 4rem;
}

/* Bootstrap: blur-орби (TW — у @sem); без номера варіанту в іменах */
.stats__decor-blur-tl {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 16rem;
  height: 16rem;
  filter: blur(64px);
}

.stats__decor-blur-br {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 20rem;
  height: 20rem;
  filter: blur(64px);
}

.stats__rank-badge {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
}

/* Висота смуги; TW — градієнт у @sem, BS — bg у @sem */
.stats__bottom-line-bar {
  height: 0.25rem;
}

/* Hover та градієнти — розміри/позиції в @sem */
.stats-card-hover {
  transition:
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    transform 0.5s ease;
}

.stats-card-hover:hover {
  box-shadow:
    0 25px 50px -12px rgb(0 0 0 / 0.25);
  transform: scale(1.05);
}

.stats-gradient-overlay-hover {
  transition: opacity 0.5s ease;
  opacity: 0;
}

.stats-card-hover:hover .stats-gradient-overlay-hover {
  opacity: 1;
}

.stats-media-hover {
  transition: transform 0.3s ease;
}

.stats-card-hover:hover .stats-media-hover {
  transform: scale(1.1);
}

.stats-bottom-bar-hover {
  transition: opacity 0.5s ease;
  opacity: 0;
}

.stats-card-hover:hover .stats-bottom-bar-hover {
  opacity: 1;
}

/* quote v16 — grid bookshelf (quote-grid-shelf__* — isolated from quote v12 quote-shelf__*) */

.quote-grid-shelf__art--mesh {
    background-image:
        radial-gradient(circle at 20% 30%, currentColor 0, transparent 42%),
        radial-gradient(circle at 78% 18%, currentColor 0, transparent 38%),
        radial-gradient(circle at 62% 82%, currentColor 0, transparent 45%),
        radial-gradient(circle at 12% 72%, currentColor 0, transparent 36%);
    opacity: 0.18;
}

.quote-grid-shelf__art--hatch {
    background-image: repeating-linear-gradient(
        -38deg,
        transparent,
        transparent 6px,
        currentColor 6px,
        currentColor 7px
    );
    opacity: 0.12;
    mix-blend-mode: overlay;
}

.quote-grid-shelf__art--grain {
    background-image:
        repeating-conic-gradient(from 0deg at 50% 50%, currentColor 0deg 2deg, transparent 2deg 7deg),
        repeating-linear-gradient(90deg, transparent 0 3px, currentColor 3px 4px);
    opacity: 0.08;
}

.quote-grid-shelf__ripple-pool {
    width: 28rem;
    height: 28rem;
    left: var(--ripple-x, 50%);
    top: var(--ripple-y, 50%);
    transform: translate(-50%, -50%) scale(0.35);
    opacity: 0;
    transition: transform 450ms ease, opacity 600ms ease;
    will-change: transform, opacity;
}

.quote-grid-shelf__ripple-pool.is-pulsing {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .quote-grid-shelf__ripple-pool {
        display: none;
    }
}

.quote-grid-shelf__bracket {
    width: 0.5rem;
}

.quote-grid-shelf__bracket--left {
    left: 1rem;
}

.quote-grid-shelf__bracket--right {
    right: 1rem;
}

.quote-grid-shelf__scroll {
    max-height: 36rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.quote-grid-shelf__parent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(8.25rem, auto));
    gap: 1rem;
}

@media (min-width: 768px) {
    .quote-grid-shelf__parent-grid {
        gap: 1.5rem;
    }
}

.quote-grid-shelf__child-grid {
    display: grid;
    grid-row: span 1;
    min-height: 100%;
    grid-template-rows: subgrid;
}

@supports not (grid-template-rows: subgrid) {
    .quote-grid-shelf__child-grid {
        grid-template-rows: auto 1fr auto;
        height: 100%;
    }
}

.quote-grid-shelf__ledge:nth-child(1) {
    top: 25%;
}

.quote-grid-shelf__ledge:nth-child(2) {
    top: 50%;
}

.quote-grid-shelf__ledge:nth-child(3) {
    top: 75%;
}

.quote-grid-shelf__ledge {
    height: 0.25rem;
}

.quote-grid-shelf__book--linocut {
    clip-path: polygon(
        0% 1.5%, 3% 0%, 8% 1%, 15% 0%, 24% 1.2%, 35% 0%, 48% 0.8%, 62% 0%, 75% 1%, 88% 0%, 96% 1.5%, 100% 0.5%,
        100% 98%, 97% 100%, 90% 98.5%, 80% 100%, 68% 98%, 55% 100%, 42% 98.5%, 28% 100%, 14% 98%, 5% 100%, 0% 97%
    );
}

.quote-grid-shelf__opening {
    font-variant: common-ligatures;
    letter-spacing: -0.04em;
}

.quote-grid-shelf__reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 550ms ease, transform 550ms ease;
    transition-delay: calc(var(--shelf-stagger, 0) * 90ms);
}

.quote-grid-shelf__reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .quote-grid-shelf__reveal {
        opacity: 1;
        transform: none;
        transition: none;
        transition-delay: 0ms;
    }
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-grid-shelf-root [role="listitem"]:hover,
    .quote-grid-shelf-root article:hover,
    .quote-grid-shelf-root [class*="quote-grid-shelf__card"]:hover,
    .quote-grid-shelf-root .quote-grid-shelf__book:hover,
    .quote-grid-shelf-root .quote-grid-shelf__step:hover,
    .quote-grid-shelf-root .quote-grid-shelf__index-card:hover,
    .quote-grid-shelf-root .quote-grid-shelf__pill:hover,
    .quote-grid-shelf-root .quote-grid-shelf__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-grid-shelf-root [role="listitem"],
.quote-grid-shelf-root article,
.quote-grid-shelf-root [class*="quote-grid-shelf__card"],
.quote-grid-shelf-root .quote-grid-shelf__book,
.quote-grid-shelf-root .quote-grid-shelf__step,
.quote-grid-shelf-root .quote-grid-shelf__index-card,
.quote-grid-shelf-root .quote-grid-shelf__pill {
    transition: transform 200ms ease;
}

.quote-grid-shelf-root a:focus-visible,
.quote-grid-shelf-root button:focus-visible,
.quote-grid-shelf-root [tabindex="0"]:focus-visible,
.quote-grid-shelf-root input:focus-visible,
.quote-grid-shelf-root summary:focus-visible,
.quote-grid-shelf-root [role="slider"]:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

@media (hover: hover) {
    .quote-grid-shelf-root button:hover,
    .quote-grid-shelf-root a:hover,
    .quote-grid-shelf-root summary:hover {
        opacity: 0.92;
    }
}

