/* wealth-dawn — layout, sizes, motion only (colours live in the template) */

.wealth-dawn__glow {
    width: 70rem;
    height: 46rem;
    transform: translate(-50%, -35%);
    filter: blur(90px);
    pointer-events: none;
}

.wealth-dawn__curve {
    opacity: 0.8;
}

.wealth-dawn__title {
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.wealth-dawn__micro {
    font-size: 0.75rem;
    line-height: 1rem;
}

.wealth-dawn__wide {
    letter-spacing: 0.12em;
}

/* --- infinite strip --- */
.wealth-dawn__viewport {
    padding-bottom: 2rem;
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

.wealth-dawn__track {
    width: max-content;
    animation: wealth-dawn-scroll 60s linear infinite !important;
    animation-play-state: running !important;
}

.wealth-dawn__viewport:hover .wealth-dawn__track,
.wealth-dawn__track:hover,
.wealth-dawn__group:hover,
.wealth-dawn__slot:hover {
    animation-play-state: running !important;
}

.wealth-dawn__group {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wealth-dawn__slot {
    display: block;
    box-sizing: content-box;
    padding: 0 !important;
    margin: 0 0.875rem !important;
}

@keyframes wealth-dawn-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* phone mockup */
.wealth-dawn__phone {
    width: 13rem;
    height: 25rem;
    overflow: hidden;
    border-radius: 2.5rem !important;
}

.wealth-dawn__phone > div {
    border-radius: 2rem !important;
    overflow: hidden;
}

.wealth-dawn__tile {
    border-radius: 0.75rem !important;
}

.wealth-dawn__notch {
    width: 4.5rem;
    height: 1.1rem;
}

/* photo cards — varying heights */
.wealth-dawn__photo {
    width: 12rem;
}

.wealth-dawn__img {
    object-fit: cover;
    height: 18rem;
}

.wealth-dawn__img--h1 { height: 18rem; }
.wealth-dawn__img--h2 { height: 22rem; }
.wealth-dawn__img--h3 { height: 20rem; }

/* mini bar-chart card */
.wealth-dawn__chart {
    width: 13rem;
    height: 17rem;
}

.wealth-dawn__bars {
    height: 6.5rem;
}

.wealth-dawn__bar         { height: 50%; }
.wealth-dawn__bar--b1     { height: 55%; }
.wealth-dawn__bar--b2     { height: 40%; }
.wealth-dawn__bar--b3     { height: 70%; }
.wealth-dawn__bar--b4     { height: 100%; }
.wealth-dawn__bar--b5     { height: 35%; }
.wealth-dawn__bar--b6     { height: 60%; }

@media (max-width: 767.98px) {
    .wealth-dawn__slot {
        margin: 0 0.625rem !important;
    }

    .wealth-dawn__phone {
        width: 11rem;
        height: 21rem;
    }

    .wealth-dawn__photo {
        width: 10rem;
    }

    .wealth-dawn__img--h1,
    .wealth-dawn__img--h3 { height: 15rem; }

    .wealth-dawn__img--h2 { height: 18rem; }

    .wealth-dawn__chart {
        width: 11rem;
        height: 15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wealth-dawn__track {
        animation: none;
    }

    .wealth-dawn__viewport {
        overflow-x: auto;
    }
}

/* phone mock content must fit the narrow screen: amounts shrink, labels wrap instead of running past the frame */
.wealth-dawn__phone > div > * { min-width: 0; max-width: 100%; }
.wealth-dawn__phone .wealth-dawn__notch + div { flex-wrap: wrap; row-gap: .25rem; }
.wealth-dawn__phone .wealth-dawn__notch + div > * { min-width: 0; overflow-wrap: anywhere; }
.wealth-dawn__phone .wealth-dawn__notch + div + * { font-size: 1.5rem !important; line-height: 1.15; overflow-wrap: anywhere; }
.wealth-dawn__tile { min-width: 0; overflow-wrap: anywhere; }
.wealth-dawn__tile > * { font-size: .75rem !important; line-height: 1.2; }
@media (max-width: 767.98px) {
    .wealth-dawn__phone .wealth-dawn__notch + div + * { font-size: 1.25rem !important; }
}

/* Layout only — colors stay in Blade utilities */

.borderline-editorial__kicker {
  max-width: 36rem;
}

.borderline-editorial__rule {
  width: 2.5rem;
  height: 2px;
}

.borderline-editorial__body {
  min-width: 0;
}

.borderline-editorial__stamp {
  width: 7rem;
  align-self: stretch;
  min-height: 6rem;
}

@media (min-width: 768px) {
  .borderline-editorial__stamp {
    width: 11rem;
    min-height: 8rem;
  }
}

.borderline-editorial__stamp-pattern {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 5px,
    rgba(var(--bs-primary-rgb), 0.1) 5px,
    rgba(var(--bs-primary-rgb), 0.1) 6px
  );
}

.borderline-editorial__stamp-ring {
  width: 4.5rem;
  height: 4.5rem;
  top: 50%;
  left: 50%;
  margin-top: -2.25rem;
  margin-left: -2.25rem;
  background: conic-gradient(
    from 0deg,
    rgba(var(--bs-primary-rgb), 0.55),
    rgba(var(--bs-primary-rgb), 0.05) 120deg,
    rgba(var(--bs-primary-rgb), 0.45) 240deg,
    rgba(var(--bs-primary-rgb), 0.05)
  );
  animation: borderline-editorial-ring-spin 10s linear infinite;
  mask: radial-gradient(circle, transparent 58%, black 60%);
  -webkit-mask: radial-gradient(circle, transparent 58%, black 60%);
}

.borderline-editorial__stamp--1 .borderline-editorial__stamp-ring {
  animation-duration: 12s;
  animation-direction: reverse;
}

.borderline-editorial__stamp--2 .borderline-editorial__stamp-ring {
  animation-duration: 8s;
}

.borderline-editorial__stamp-date {
  writing-mode: horizontal-tb;
}

.borderline-editorial__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes borderline-editorial-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .borderline-editorial__stamp-ring {
    animation: none;
  }
}

/* glossary gazette — multi-column flow (not CSS grid), brick avoid breaks, footnote icon */
.glossary-gazette__columns {
    column-count: 1;
    column-gap: 1.25rem;
}

@media (min-width: 768px) {
    .glossary-gazette__columns {
        column-count: 2;
        column-gap: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .glossary-gazette__columns {
        column-count: 3;
    }
}

.glossary-gazette__brick {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.glossary-gazette__note-ico {
    width: 3.25rem;
    height: 3.25rem;
}

.glossary-gazette__note-icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* Bootstrap: горизонтальные/вертикальные промежутки (row+row-cols без col даёт слипание) */
.reasons-icon-grid__bs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .reasons-icon-grid__bs-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 992px) {
    .reasons-icon-grid__bs-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.reasons-icon-grid__subtitle-max {
    max-width: 42rem;
}

/* subscribe v25 — overlapping avatar stack: geometry shared by both CSS frameworks, no colors */
.mailing-avatar-stack__section--py-4xl {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.mxw-2xl {
    max-width: 42rem !important;
}

.mxw-md {
    max-width: 28rem !important;
}

.mailing-avatar-stack__item {
    width: 4rem;
    height: 4rem;
    margin-left: -1rem;
    flex-shrink: 0;
}

.mailing-avatar-stack__item:first-child {
    margin-left: 0;
}

.mailing-avatar-stack__title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

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

.mailing-avatar-stack__input,
.mailing-avatar-stack__cta {
    padding: 0.75rem 1rem;
}

.mailing-avatar-stack__cta {
    padding-inline: 1.5rem;
}

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

@media (min-width: 768px) {
    .mailing-avatar-stack__title {
        font-size: 2.25rem;
    }
}

