

/* ==========================================================
   TYPOGRAPHY LIGHT / DARK

   Общая структура:
       .typography

   Выбор темы:
       .typography.light
       .typography.dark

   Контент:
       .typography_render       — со Swiper
       .typography_render_light — без Swiper

   Самостоятельные контентные блоки тоже поддерживают
   отдельный класс .light или .dark.

   Подключать после Bootstrap и typography-swiper.css.
   ========================================================== */


/* ==========================================================
   1. ОБЩИЕ ПАРАМЕТРЫ

   Здесь нет выбора цвета темы.
   Внутренние контентные блоки наследуют её от обёртки.
   ========================================================== */

:where(
    .typography,
    .typography_render,
    .typography_render_light
) {
    --ty-reading-width: 760px;
    --ty-wide-width: 1160px;

    font-family: "Lato", sans-serif;
    font-size: clamp(16px, 0.3vw + 15px, 18px);
    font-weight: 400;
    line-height: 1.85;

    text-align: left;
    overflow-wrap: break-word;

    -webkit-font-smoothing: antialiased;
}


/* ==========================================================
   2. СВЕТЛАЯ ТЕМА — ТОЛЬКО ПЕРЕМЕННЫЕ
   ========================================================== */

:is(
    .typography,
    .typography_render,
    .typography_render_light
).light {
    --ty-background: #faf8f5;
    --ty-surface: #f1ebe3;
    --ty-surface-raised: #e9e0d5;

    --ty-heading: var(--black, #1d1c21);
    --ty-body: #514b45;
    --ty-muted: #756b60;

    --ty-gold: var(--beige, #b8905f);
    --ty-quote: var(--black, #1d1c21);

    --ty-rule: var(--lightbeige, #e5d4c0);
    --ty-rule-subtle: rgba(104, 75, 39, 0.12);

    --ty-link: var(--darkorange, #684b27);
    --ty-link-hover: var(--black, #1d1c21);
    --ty-link-underline-hover: var(--accent, #ff9944);

    --ty-control-hover: rgba(184, 144, 95, 0.10);
    --ty-card-outline: transparent;

    --ty-mark-background: #e5d4c0;

    --ty-selection-background: #e5d4c0;
    --ty-selection-color: #1d1c21;

    color-scheme: light;
}


/* ==========================================================
   3. ТЁМНАЯ ТЕМА — ТОЛЬКО ПЕРЕМЕННЫЕ
   ========================================================== */

:is(
    .typography,
    .typography_render,
    .typography_render_light
).dark {
    --ty-background: var(--black, #1d1c21);
    --ty-surface: var(--inpback, #232227);
    --ty-surface-raised: #2b292e;

    --ty-heading: #f3eade;
    --ty-body: #c8c2bb;
    --ty-muted: #a69b8d;

    --ty-gold: var(--beige, #b8905f);
    --ty-quote: var(--lightbeige, #e5d4c0);

    --ty-rule: rgba(184, 144, 95, 0.28);
    --ty-rule-subtle: rgba(229, 212, 192, 0.10);

    --ty-link: #ddbb91;
    --ty-link-hover: #f3eade;
    --ty-link-underline-hover: var(--beige, #b8905f);

    --ty-control-hover: rgba(184, 144, 95, 0.10);
    --ty-card-outline: rgba(229, 212, 192, 0.10);

    --ty-mark-background: rgba(184, 144, 95, 0.20);

    --ty-selection-background: #684b27;
    --ty-selection-color: #f3eade;

    color-scheme: dark;
}


/* ==========================================================
   4. ПРИМЕНЕНИЕ ПАЛИТРЫ

   Без класса темы переменные не определены,
   поэтому цвет и фон не навязываются.
   ========================================================== */

:where(
    .typography,
    .typography_render,
    .typography_render_light
) {
    color: var(--ty-body);
    background-color: var(--ty-background);
}


/* ==========================================================
   5. ОСНОВНАЯ ОБЁРТКА И ВВОДНАЯ СТРОКА
   ========================================================== */

.typography {
    padding-block: clamp(36px, 5vw, 88px);
    padding-inline: clamp(20px, 3vw, 56px);
}

.typography > .row {
    --bs-gutter-x: clamp(28px, 4vw, 64px);
    --bs-gutter-y: 28px;

    align-items: center;
}


/* ==========================================================
   6. ВВОДНАЯ ИЛЛЮСТРАЦИЯ / ЛОГОТИП
   ========================================================== */

.typography .illu {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 240px;
    padding: clamp(24px, 3vw, 44px);

    box-sizing: border-box;

    background: var(--ty-surface);
    box-shadow: inset 0 0 0 1px var(--ty-card-outline);
}

.typography .illu img {
    display: block;

    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 300px;

    object-fit: contain;
}


/* ==========================================================
   7. INTRO — SALSA
   ========================================================== */

.typography .salsa {
    max-width: 820px;

    color: var(--ty-heading);

    font-size: clamp(18px, 0.65vw + 16px, 23px);
    font-weight: 300;
    line-height: 1.7;
}

.typography .salsa p {
    margin: 0 0 1em;
}

.typography .salsa p:last-child {
    margin-bottom: 0;
}

.typography .salsa em {
    font-style: normal;
}

.typography .salsa strong {
    color: var(--ty-heading);
    font-weight: 700;
}


/* ==========================================================
   8. ДАТА ПУБЛИКАЦИИ — RUMBA
   ========================================================== */

.typography .rumba {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 25px 0 0;

    color: var(--ty-muted);

    font-family: "Lato", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.typography .rumba::before {
    content: "";

    flex: 0 0 42px;
    height: 1px;

    background: var(--ty-gold);
}


/* ==========================================================
   9. КОНТЕНТ И ШИРИНА ЧТЕНИЯ
   ========================================================== */

:is(
    .typography_render,
    .typography_render_light
) {
    margin-top: clamp(44px, 6vw, 88px);
}

:is(
    .typography_render,
    .typography_render_light
) > * {
    max-width: var(--ty-reading-width);
    margin-inline: auto;
}


/* ==========================================================
   10. ЗАГОЛОВКИ

   :where снижает специфичность общих правил.
   Компонентам и utility-классам проще их переопределить.
   ========================================================== */

:where(
    .typography,
    .typography_render,
    .typography_render_light
) :where(h1, h2, h3, h4, h5, h6) {
    color: var(--ty-heading);

    font-family: "Playfair", Georgia, serif;
    font-weight: 500;
    font-style: normal;

    line-height: 1.2;
    letter-spacing: -0.025em;

    text-wrap: balance;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) h1 {
    margin-top: 1.8em;
    margin-bottom: 0.7em;

    font-size: clamp(38px, 4.5vw, 68px);
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) h2 {
    margin-top: 1.8em;
    margin-bottom: 0.8em;

    font-size: clamp(30px, 3.1vw, 48px);
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) h3 {
    margin-top: 1.8em;
    margin-bottom: 0.75em;

    font-size: clamp(24px, 2vw, 34px);
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) h4 {
    margin-top: 1.7em;
    margin-bottom: 0.7em;

    font-size: clamp(21px, 1.5vw, 27px);
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) :is(h5, h6) {
    margin-top: 1.6em;
    margin-bottom: 0.7em;

    font-size: 20px;
}

:is(
    .typography_render,
    .typography_render_light
) > :is(h1, h2, h3, h4, h5, h6):first-child {
    margin-top: 0;
}


/* ==========================================================
   11. АБЗАЦЫ И ВЫДЕЛЕНИЯ
   ========================================================== */

:where(
    .typography,
    .typography_render,
    .typography_render_light
) p {
    margin-top: 0;
    margin-bottom: 1.4em;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) strong {
    color: var(--ty-heading);
    font-weight: 700;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) em {
    font-style: italic;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) :is(s, del) {
    text-decoration-color: var(--ty-muted);
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) mark {
    padding: 0.1em 0.25em;

    color: var(--ty-heading);
    background: var(--ty-mark-background);
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) small {
    color: var(--ty-muted);
    font-size: 0.82em;
}


/* ==========================================================
   12. ТЕКСТОВЫЕ ССЫЛКИ

   Кнопки Bootstrap исключены из оформления текстовых ссылок.
   Fancybox оформляется отдельно.
   ========================================================== */

/* Explicitly styled text links only */

:where(
    .typography,
    .typography_render,
    .typography_render_light
) a:where(.typography_link) {
    color: var(--ty-link);

    text-decoration-line: underline;
    text-decoration-color: var(--ty-rule);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.24em;

    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) a:where(.typography_link):hover {
    color: var(--ty-link-hover);
    text-decoration-color: var(--ty-link-underline-hover);
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) a:focus-visible {
    outline: 2px solid var(--ty-gold);
    outline-offset: 5px;
}


/* ==========================================================
   13. ОБЫЧНЫЕ СПИСКИ
   ========================================================== */

:where(
    .typography,
    .typography_render,
    .typography_render_light
) :is(ul, ol) {
    margin-top: 1.5em;
    margin-bottom: 1.9em;

    padding-left: 1.5em;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) li {
    margin-bottom: 0.9em;
    padding-left: 0.35em;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) li::marker {
    color: var(--ty-gold);
    font-weight: 700;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) li:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   14. ЦИТАТЫ
   ========================================================== */

:where(
    .typography,
    .typography_render,
    .typography_render_light
) blockquote {
    position: relative;

    margin-top: clamp(32px, 4.5vw, 64px);
    margin-bottom: clamp(32px, 4.5vw, 64px);

    padding: 12px 0 12px 28px;

    border: 0;
    border-left: 2px solid var(--ty-gold);

    color: var(--ty-quote);
    background: transparent;

    font-family: "Playfair", Georgia, serif;
    font-size: clamp(24px, 2vw, 34px);
    font-weight: 400;
    font-style: normal;
    line-height: 1.55;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) blockquote strong {
    color: inherit;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) blockquote p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   15. ИЗОБРАЖЕНИЯ И ПОДПИСИ
   ========================================================== */

:where(
    .typography,
    .typography_render,
    .typography_render_light
) a.innerfancy {
    display: block;
    width: 100%;

    margin: 32px 0;

    color: inherit;
    text-decoration: none;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) a.innerfancy img {
    display: block;

   /* width: 100%;*/
    max-width: 100%;
    height: auto;

    border: 0;
}

/*
 * Изображения могут быть шире текстовой колонки.
 */
:is(
    .typography_render,
    .typography_render_light
) > :is(p, figure, div):has(> a.innerfancy),
:is(
    .typography_render,
    .typography_render_light
) > a.innerfancy {
    max-width: var(--ty-wide-width);
    margin-inline: auto;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) .mas_lbs {
    display: block;

    max-width: var(--ty-reading-width);
    margin: 0 auto;
    padding: 13px 6px 0;

    color: var(--ty-muted);

    font-family: "Lato", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.7;

    letter-spacing: 0.025em;
    text-align: center;
}


/* ==========================================================
   16. ДЕКОРАТИВНЫЙ РАЗДЕЛИТЕЛЬ

   Линия имеет разрыв под иконкой.
   Фоновая подложка для иконки не требуется.
   ========================================================== */

:where(
    .typography,
    .typography_render,
    .typography_render_light
) hr.vignette {
    position: relative;
    display: block;

    width: min(100%, 320px);
    height: 64px;

    margin: clamp(40px, 6vw, 80px) auto;
    padding: 0;

    border: 0;
    overflow: visible;

    color: var(--ty-gold);
    background: transparent;

    opacity: 1;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) hr.vignette::before {
    content: "";

    position: absolute;
    top: 50%;
    right: 0;
    left: 0;

    height: 1px;

    background: linear-gradient(
        to right,
        transparent 0%,
        var(--ty-rule) 20%,
        var(--ty-rule) 37%,
        transparent 37%,
        transparent 63%,
        var(--ty-rule) 63%,
        var(--ty-rule) 80%,
        transparent 100%
    );
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) hr.vignette::after {
    content: "\f065";

    position: absolute;
    top: 50%;
    left: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 76px;
    height: 64px;

    transform: translate(-50%, -50%);

    color: var(--ty-gold);
    background: transparent;

    font-family: "FontAwesome";
    font-size: 34px;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
}


/* ==========================================================
   17. ТАБЛИЦЫ
   ========================================================== */

:where(
    .typography,
    .typography_render,
    .typography_render_light
) table {
    width: 100%;
    margin-block: 32px;

    border-collapse: collapse;
    border-spacing: 0;

    color: var(--ty-body);
    font-size: 0.9em;
    line-height: 1.65;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) :is(th, td) {
    padding: 16px 18px;

    border: 0;
    border-bottom: 1px solid var(--ty-rule-subtle);

    vertical-align: top;
    text-align: left;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) th {
    color: var(--ty-heading);
    background: var(--ty-surface);

    font-weight: 700;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) caption {
    padding: 12px 0;

    color: var(--ty-muted);
    font-size: 12px;
    line-height: 1.6;

    caption-side: bottom;
}


/* ==========================================================
   18. КОД
   ========================================================== */

:where(
    .typography,
    .typography_render,
    .typography_render_light
) code {
    padding: 0.15em 0.35em;

    color: var(--ty-heading);
    background: var(--ty-surface-raised);

    font-size: 0.85em;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) pre {
    margin-block: 28px;
    padding: 24px;

    overflow-x: auto;

    border: 1px solid var(--ty-rule-subtle);

    color: var(--ty-body);
    background: var(--ty-surface);

    font-size: 14px;
    line-height: 1.75;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) pre code {
    padding: 0;

    color: inherit;
    background: transparent;

    font-size: inherit;
}


/* ==========================================================
   19. SWIPER — ОБЩЕЕ ОФОРМЛЕНИЕ

   Геометрия остаётся в typography-swiper.css.
   Не меняем:
       width слайдов;
       margin-left;
       transform;
       стартовый пустой полуслайд.
   ========================================================== */

:where(
    .typography,
    .typography_render,
    .typography_render_light
) .typography_swiper_block {
    max-width: var(--ty-wide-width);
    margin: clamp(32px, 5vw, 72px) auto;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) .typography_swiper_slide {
    background: var(--ty-surface);
    box-shadow: inset 0 0 0 1px var(--ty-card-outline);
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) .typography_swiper_content {
    padding: clamp(28px, 4vw, 64px);

    color: var(--ty-body);

    font-family: "Lato", sans-serif;
    font-size: clamp(16px, 0.3vw + 15px, 18px);
    line-height: 1.85;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) .typography_swiper_intro {
    border: 0;
    background: transparent;
    box-shadow: none;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) .typography_swiper_content :is(h2, h3, h4):first-child {
    margin-top: 0;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) .typography_swiper_content > :last-child {
    margin-bottom: 0;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) .typography_swiper_controls {
    gap: 10px;
    margin-top: 20px;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) :is(
    .typography_swiper_prev,
    .typography_swiper_next
) {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    padding: 0;

    border: 1px solid var(--ty-rule);

    color: var(--ty-link);
    background: transparent;

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        opacity 0.2s ease;
}

/*
 * Свой радиус назначаем только при отсутствии rounded-pill.
 */
:where(
    .typography,
    .typography_render,
    .typography_render_light
) :is(
    .typography_swiper_prev,
    .typography_swiper_next
):not(.rounded-pill) {
    border-radius: 50%;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) :is(
    .typography_swiper_prev,
    .typography_swiper_next
):hover {
    border-color: var(--ty-gold);

    color: var(--ty-link-hover);
    background: var(--ty-control-hover);
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) :is(
    .typography_swiper_prev,
    .typography_swiper_next
):focus-visible {
    outline: 2px solid var(--ty-gold);
    outline-offset: 4px;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) :is(
    .typography_swiper_prev,
    .typography_swiper_next
).swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) :is(
    .typography_swiper_prev,
    .typography_swiper_next
).swiper-button-disabled:hover {
    border-color: var(--ty-rule);

    color: var(--ty-link);
    background: transparent;
}


/* ==========================================================
   20. ВЫРАВНИВАНИЕ QUILL
   ========================================================== */

:where(
    .typography,
    .typography_render,
    .typography_render_light
) .ql-align-center {
    text-align: center;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) .ql-align-right {
    text-align: right;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) .ql-align-justify {
    text-align: justify;
}

:where(
    .typography,
    .typography_render,
    .typography_render_light
) .ql-direction-rtl {
    direction: rtl;
}


/* ==========================================================
   21. ВЫДЕЛЕНИЕ ТЕКСТА
   ========================================================== */

:where(
    .typography,
    .typography_render,
    .typography_render_light
)::selection,
:where(
    .typography,
    .typography_render,
    .typography_render_light
) *::selection {
    color: var(--ty-selection-color);
    background: var(--ty-selection-background);
}


/* ==========================================================
   22. ИСКЛЮЧЕНИЯ И UTILITY-КЛАССЫ

   rounded-pill:
   Этот файл не переопределяет радиус у элементов
   с .rounded-pill. Сам класс обслуживает Bootstrap.

   Для будущих исключений:
   1. Не используйте общий сброс border-radius у всех потомков.
   2. Добавляйте :not(.имя-класса) в конкретное правило,
      которое не должно затрагивать этот класс.
   3. Если класс находится в контенте Quill, разрешите
      его также в JS-очистке — иначе CSS его уже не увидит.

   Исключение из одного свойства не означает отключение
   всей типографики для элемента: текст, размеры и цвета
   продолжают работать по обычному каскаду.
   ========================================================== */


/* ==========================================================
   23. АДАПТИВ: ПЛАНШЕТЫ
   ========================================================== */

@media (max-width: 991.98px) {
    .typography .illu {
        min-height: 180px;
    }

    .typography .illu img {
        max-height: 220px;
    }
}


/* ==========================================================
   24. АДАПТИВ: УЗКИЕ ПЛАНШЕТЫ И ТЕЛЕФОНЫ
   ========================================================== */

@media (max-width: 767.98px) {
    .typography {
        padding-block: 36px;
        padding-inline: 20px;
    }

    .typography > .row {
        --bs-gutter-x: 24px;
        --bs-gutter-y: 24px;
    }

    .typography .salsa {
        font-size: 19px;
        line-height: 1.7;
    }

    .typography .rumba {
        margin-top: 20px;

        font-size: 10px;
        letter-spacing: 0.13em;
    }

    :where(
        .typography,
        .typography_render,
        .typography_render_light
    ) blockquote {
        padding-left: 20px;
        font-size: 25px;
    }

    :where(
        .typography,
        .typography_render,
        .typography_render_light
    ) .mas_lbs {
        padding-top: 11px;
        font-size: 11px;
    }

    :where(
        .typography,
        .typography_render,
        .typography_render_light
    ) :is(th, td) {
        padding: 12px;
    }
}


/* ==========================================================
   25. АДАПТИВ: МОБИЛЬНЫЕ
   ========================================================== */

@media (max-width: 575.98px) {
    .typography {
        padding-block: 28px;
        padding-inline: 16px;
    }

    .typography .illu {
        min-height: 150px;
        padding: 24px;
    }

    .typography .illu img {
        max-height: 160px;
    }

    .typography .salsa {
        font-size: 18px;
    }

    :where(
        .typography,
        .typography_render,
        .typography_render_light
    ) {
        font-size: 16px;
        line-height: 1.85;
    }

    :where(
        .typography,
        .typography_render,
        .typography_render_light
    ) blockquote {
        padding-left: 18px;

        font-size: 23px;
        line-height: 1.55;
    }

    :where(
        .typography,
        .typography_render,
        .typography_render_light
    ) a.innerfancy {
        margin-block: 26px;
    }

    :where(
        .typography,
        .typography_render,
        .typography_render_light
    ) hr.vignette {
        width: 220px;
        height: 54px;

        margin-block: 42px;
    }

    :where(
        .typography,
        .typography_render,
        .typography_render_light
    ) hr.vignette::after {
        width: 64px;
        height: 54px;

        font-size: 28px;
    }

    :where(
        .typography,
        .typography_render,
        .typography_render_light
    ) .typography_swiper_content {
        padding: 24px 20px;
        font-size: 16px;
    }

    :where(
        .typography,
        .typography_render,
        .typography_render_light
    ) :is(
        .typography_swiper_prev,
        .typography_swiper_next
    ) {
        width: 40px;
        height: 40px;
    }

    :where(
        .typography,
        .typography_render,
        .typography_render_light
    ) table {
        font-size: 13px;
    }

    :where(
        .typography,
        .typography_render,
        .typography_render_light
    ) :is(th, td) {
        padding: 10px 8px;
    }

    :where(
        .typography,
        .typography_render,
        .typography_render_light
    ) pre {
        padding: 18px;
        font-size: 12px;
    }
}


/* ==========================================================
   26. УМЕНЬШЕНИЕ АНИМАЦИИ
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    :where(
        .typography,
        .typography_render,
        .typography_render_light
    ) a,
    :where(
        .typography,
        .typography_render,
        .typography_render_light
    ) :is(
        .typography_swiper_prev,
        .typography_swiper_next
    ) {
        transition: none;
    }
}

/* ==========================================================
   EDITORIAL STATS
   Theme colors are inherited from typography_ld.css.
   Each .perc element represents one independent row.
   ========================================================== */

.promo_3_3 {
    --stats-value-width: clamp(160px, 22vw, 280px);
    --stats-column-gap: clamp(24px, 5vw, 80px);
    --stats-row-padding: clamp(28px, 3.8vw, 48px);

    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: var(--ty-wide-width, 1160px);
    min-width: 0;

    margin: clamp(36px, 5vw, 72px) auto;

    color: var(--ty-body, inherit);
}

/* Keep all rows aligned, regardless of their number. */

.promo_3_3 > .perc {
    display: grid;
    grid-template-columns:
        var(--stats-value-width)
        minmax(0, 1fr);

    align-items: center;
    column-gap: var(--stats-column-gap);

    min-width: 0;
    margin: 0;
    padding: var(--stats-row-padding) 0;

    border: 0;
    border-bottom: 1px solid var(
        --ty-rule,
        rgba(184, 144, 95, 0.28)
    );

    background: transparent;
    box-shadow: none;
}

.promo_3_3 > .perc:first-child {
    border-top: 1px solid var(
        --ty-rule,
        rgba(184, 144, 95, 0.28)
    );
}

/* Reset paragraph spacing inherited from typography. */

.promo_3_3 > .perc > p {
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Primary value */

.promo_3_3 > .perc > p:first-child {
    color: var(--ty-heading, inherit);

    font-family: "Playfair", Georgia, serif;
    font-size: clamp(44px, 5.2vw, 76px);
    font-weight: 500;
    font-style: normal;
    font-variant-numeric: lining-nums tabular-nums;

    line-height: 1.08;
    letter-spacing: -0.045em;

    white-space: nowrap;
}

/* Supporting label */

.promo_3_3 > .perc > p:nth-child(2) {
    max-width: 38ch;

    color: var(--ty-body, inherit);

    font-family: "Lato", sans-serif;
    font-size: clamp(17px, 0.65vw + 15px, 23px);
    font-weight: 400;
    font-style: normal;

    line-height: 1.55;
    letter-spacing: 0.005em;

    overflow-wrap: anywhere;
    text-wrap: pretty;
}

/* Tablet */

@media (max-width: 991.98px) {
    .promo_3_3 {
        --stats-value-width: 190px;
        --stats-column-gap: 36px;
        --stats-row-padding: 32px;
    }

    .promo_3_3 > .perc > p:first-child {
        font-size: 56px;
    }

    .promo_3_3 > .perc > p:nth-child(2) {
        font-size: 20px;
    }
}

/* Mobile: preserve the value / label composition. */

@media (max-width: 575.98px) {
    .promo_3_3 {
        --stats-value-width: 124px;
        --stats-column-gap: 20px;
        --stats-row-padding: 26px;

        margin-block: 36px;
    }

    .promo_3_3 > .perc > p:first-child {
        font-size: 40px;
        letter-spacing: -0.04em;
    }

    .promo_3_3 > .perc > p:nth-child(2) {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* Compact screens */

@media (max-width: 379.98px) {
    .promo_3_3 {
        --stats-value-width: 104px;
        --stats-column-gap: 14px;
        --stats-row-padding: 24px;
    }

    .promo_3_3 > .perc > p:first-child {
        font-size: 34px;
    }

    .promo_3_3 > .perc > p:nth-child(2) {
        font-size: 15px;
    }
}

/* ==========================================================
   PROPERTY DETAILS CARD
   Colors are inherited from typography_ld.css.
   Sticky positioning is managed separately.
   ========================================================== */

#plot_descr #greenBlock {
    --gb-padding: clamp(22px, 2.4vw, 38px);
    --gb-section-gap: 28px;
    --gb-column-gap: clamp(18px, 2vw, 30px);

    box-sizing: border-box;
    min-width: 0;

    padding: var(--gb-padding);

    border: 1px solid var(
        --ty-rule-subtle,
        rgba(184, 144, 95, 0.14)
    );

    border-radius: 12px;

    color: var(--ty-body, inherit);
    background: var(--ty-surface, transparent);

    box-shadow: none;

    font-family: "Lato", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}


/* ==========================================================
   HEADING AND STATUS
   ========================================================== */

#plot_descr #greenBlock .greenblock_heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;

    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Support a heading placed inside the first Bootstrap row. */

#plot_descr #greenBlock .greenblock_focus_row
    > .greenblock_heading {
    grid-column: 1 / -1;

    width: auto;
    max-width: none;
    margin: 0;
}

#plot_descr #greenBlock h2.greener {
    flex: 1 1 0;

    min-width: 0;
    max-width: none;

    margin: 0;
    padding: 0;

    color: var(--ty-heading, inherit);

    font-family: "Playfair", Georgia, serif;
    font-size: clamp(28px, 2.5vw, 38px);
    font-weight: 500;
    font-style: normal;

    line-height: 1.18;
    letter-spacing: -0.025em;

    overflow-wrap: anywhere;
    text-wrap: balance;
}

/*
 * Preserve existing status colors.
 * Reset only placement and sizing.
 */

#plot_descr #greenBlock .greenblock_heading
    > .plot_perk_pill {
    position: static;
    float: none;

    flex: 0 0 auto;
    align-self: flex-start;

    width: auto;
    max-width: 100%;

    margin: 5px 0 0;

    white-space: nowrap;
}


/* ==========================================================
   FOCAL PARAMETERS
   A single parameter fills the available row.
   ========================================================== */

#plot_descr #greenBlock .greenblock_focus_row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px var(--gb-column-gap);

    width: auto;
    margin: var(--gb-section-gap) 0 0;
    padding: 0;
}

#plot_descr #greenBlock .greenblock_focus_row
    > [class*="col-"] {
    width: auto;
    max-width: none;
    min-width: 0;

    margin: 0;
    padding: 0;

    text-align: left;
}

/* Expand the only focal parameter across both columns. */

#plot_descr #greenBlock .greenblock_focus_row
    > [class*="col-"]:only-of-type {
    grid-column: 1 / -1;
}

/*
 * Also support a heading sharing the focal row.
 * The last column spans the row when it has no column sibling.
 */

#plot_descr #greenBlock .greenblock_focus_row
    > [class*="col-"]:not(:has(~ [class*="col-"]))
    :is(.prow_lab, .green_prow_focal) {
    max-width: 100%;
}

#plot_descr #greenBlock .greenblock_focus_row .prow_lab {
    display: block;

    margin: 0 0 8px;
    padding: 0;

    color: var(--ty-muted, inherit);

    font-family: "Lato", sans-serif;
    font-size: 11px;
    font-weight: 700;

    line-height: 1.5;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-align: left;
}

#plot_descr #greenBlock .green_prow_focal {
    display: block;

    min-width: 0;
    margin: 0;
    padding: 0;

    color: var(--ty-link, var(--beige, #b8905f));

    font-family: "Lato", sans-serif;
    font-size: clamp(20px, 1.65vw, 25px);
    font-weight: 700;

    line-height: 1.4;
    letter-spacing: -0.02em;
    text-align: left;

    overflow-wrap: anywhere;
}

#plot_descr #greenBlock
    .green_prow_focal + .green_prow_focal {
    margin-top: 6px;
}

#plot_descr #greenBlock .green_prow_focal b {
    color: inherit;
    font-weight: inherit;
}


/* ==========================================================
   ACTION LAYOUT
   Button appearance is intentionally left untouched.
   ========================================================== */

#plot_descr #greenBlock .greenblock_actions_row {
    display: flex;
    flex-direction: column;
    gap: 14px;

    width: auto;
    margin: var(--gb-section-gap) 0 0;
    padding: 0;
}

#plot_descr #greenBlock .greenblock_actions_row
    > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    text-align: left;
}

/* Remove the reserved column when its button is absent. */

#plot_descr #greenBlock .greenblock_actions_row
    > [class*="col-"]:not(:has(.ff_bt)) {
    display: none;
}

#plot_descr #greenBlock .greenblock_actions_row .righty {
    margin: 0;
    text-align: left;
}


/* ==========================================================
   SPECIFICATION GRID
   Keep two columns even when the final row has one item.
   ========================================================== */

#plot_descr #greenBlock .greenblock_specs_row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gb-column-gap);
    row-gap: 0;

    width: auto;
    margin: var(--gb-section-gap) 0 0;
    padding: 0;
}

#plot_descr #greenBlock .greenblock_specs_row
    > [class*="col-"] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;

    width: auto;
    max-width: none;
    min-width: 0;

    margin: 0;
    padding: 18px 0;

    border-bottom: 1px solid var(
        --ty-rule-subtle,
        rgba(184, 144, 95, 0.14)
    );

    text-align: left;
}

#plot_descr #greenBlock .greenblock_specs_row
    .altselect_label {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
    min-height: 20px;

    margin: 0;
    padding: 0;

    color: var(--ty-muted, inherit);

    font-family: "Lato", sans-serif;
    font-size: 10px;
    font-weight: 700;

    line-height: 1.5;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-align: left;
}

/*
 * Icons keep their original colors.
 * Visibility of .nomobile is managed elsewhere.
 */

#plot_descr #greenBlock .greenblock_specs_row
    .altselect_label img {
    display: block;
    flex: 0 0 20px;

    width: 20px;
    height: 20px;
    max-width: none;

    margin: 0;

    object-fit: contain;
}

#plot_descr #greenBlock .greenprop_item_val {
    min-width: 0;

    margin: 0;
    padding: 0;

    color: var(--ty-heading, inherit);

    font-family: "Lato", sans-serif;
    font-size: 18px;
    font-weight: 400;

    line-height: 1.45;
    letter-spacing: -0.01em;
    text-align: left;

    overflow-wrap: anywhere;
}


/* ==========================================================
   OPTIONAL SECTIONS
   Ignore whitespace-only wrappers without useful children.
   ========================================================== */

#plot_descr #greenBlock .greenblock_focus_row:not(
    :has(.prow_lab, .green_prow_focal, .greenblock_heading)
) {
    display: none;
}

#plot_descr #greenBlock .greenblock_actions_row:not(
    :has(.ff_bt)
) {
    display: none;
}

#plot_descr #greenBlock .greenblock_specs_row:not(
    :has(.greenprop_item_val)
) {
    display: none;
}


/* ==========================================================
   ADDRESS AND MAP
   ========================================================== */

#plot_descr #greenBlock .addrBlock_container {
    min-width: 0;

    margin: 32px 0 0;
    padding: 26px 0 0;

    border-top: 1px solid var(
        --ty-rule-subtle,
        rgba(184, 144, 95, 0.14)
    );
}

#plot_descr #greenBlock .addrBlock_container h3 {
    margin: 0 0 18px;
    padding: 0;

    color: var(--ty-heading, inherit);

    font-family: "Playfair", Georgia, serif;
    font-size: 25px;
    font-weight: 500;

    line-height: 1.25;
    letter-spacing: -0.02em;
}

#plot_descr #greenBlock .addrBlock_row {
    min-width: 0;
    margin-bottom: 14px;

    color: var(--ty-body, inherit);

    font-family: "Lato", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

#plot_descr #greenBlock .addrBlock_map {
    min-width: 0;
    margin-top: 20px;

    border-radius: 6px;
    overflow: hidden;

    background: var(--ty-background, transparent);
}

#plot_descr #greenBlock .addrBlock_map iframe {
    display: block;

    width: 100%;
    height: 450px;

    margin: 0;
    padding: 0;

    border: 0;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767.98px) {
    #plot_descr #greenBlock {
        --gb-padding: 24px;
        --gb-section-gap: 24px;
        --gb-column-gap: 20px;

        border-radius: 10px;
    }

    #plot_descr #greenBlock .greenblock_heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    #plot_descr #greenBlock h2.greener {
        flex: none;
        width: 100%;

        font-size: clamp(28px, 5vw, 34px);
    }

    #plot_descr #greenBlock .greenblock_heading
        > .plot_perk_pill {
        margin-top: 0;
    }

    #plot_descr #greenBlock .greenblock_focus_row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 20px;
    }

    #plot_descr #greenBlock .green_prow_focal {
        font-size: 23px;
    }

    #plot_descr #greenBlock .greenblock_specs_row
        > [class*="col-"] {
        padding-block: 16px;
    }

    #plot_descr #greenBlock .greenprop_item_val {
        font-size: 17px;
    }

    #plot_descr #greenBlock .addrBlock_container {
        margin-top: 28px;
        padding-top: 24px;
    }
}

@media (max-width: 379.98px) {
    #plot_descr #greenBlock {
        --gb-padding: 18px;
        --gb-column-gap: 16px;
    }

    #plot_descr #greenBlock h2.greener {
        font-size: 27px;
    }

    #plot_descr #greenBlock .green_prow_focal {
        font-size: 21px;
    }

    #plot_descr #greenBlock .greenprop_item_val {
        font-size: 16px;
    }
}

/* ==========================================================
   PARTNERSHIP SECTION
   Background image is decorative.
   Existing .ff_bt styling remains unchanged.
   ========================================================== */

#offer.offer_partner {
    --offer-ink: #f7f1e9;
    --offer-body: #ded6cc;
    --offer-muted: #beb2a3;
    --offer-accent: var(--beige, #b8905f);
    --offer-rule: rgba(229, 212, 192, 0.24);

    position: relative;
    isolation: isolate;

    margin: 0;
    padding: clamp(64px, 8vw, 128px) 0;

    overflow: hidden;

    color: var(--offer-body);
    background: var(--black, #1d1c21);
}

/* Architectural background */

#offer.offer_partner::before {
    content: "";

    position: absolute;
    z-index: -2;
    inset: 0;

    background-image: url("/uploads/design/partner-residence.webp");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;

    pointer-events: none;
}

/* Contrast layers keep text readable over the image. */

#offer.offer_partner::after {
    content: "";

    position: absolute;
    z-index: -1;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(20, 19, 23, 0.98) 0%,
            rgba(20, 19, 23, 0.92) 34%,
            rgba(20, 19, 23, 0.66) 65%,
            rgba(20, 19, 23, 0.40) 100%
        ),
        linear-gradient(
            0deg,
            rgba(20, 19, 23, 0.60),
            transparent 55%
        );

    pointer-events: none;
}

#offer.offer_partner .offer_partner_container {
    position: relative;
}

#offer.offer_partner .offer_partner_layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(0, 0.85fr);

    align-items: center;
    gap: clamp(40px, 6vw, 96px);
}

#offer.offer_partner .offer_partner_content {
    min-width: 0;
}

/* Small editorial heading */

#offer.offer_partner .offer_partner_eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 0 0 26px;

    color: var(--offer-muted);

    font-family: "Lato", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}

#offer.offer_partner .offer_partner_eyebrow::before {
    content: "";

    flex: 0 0 36px;
    height: 1px;

    background: var(--offer-accent);
}

/* Main heading */

#offer.offer_partner h2.offer_partner_title {
    max-width: 16ch;

    margin: 0 0 28px;
    padding: 0;

    color: var(--offer-ink);

    font-family: "Playfair", Georgia, serif;
    font-size: clamp(38px, 4.6vw, 68px);
    font-weight: 500;

    line-height: 1.1;
    letter-spacing: -0.035em;

    text-wrap: balance;
}

#offer.offer_partner .offer_partner_title em {
    color: var(--lightbeige, #e5d4c0);
    font-weight: inherit;
    font-style: italic;
}

/* Introductory copy */

#offer.offer_partner .offer_partner_lead {
    max-width: 40ch;
    margin: 0 0 20px;

    color: var(--offer-ink);

    font-family: "Lato", sans-serif;
    font-size: clamp(19px, 1.5vw, 23px);
    font-weight: 400;

    line-height: 1.6;
}

#offer.offer_partner .offer_partner_description {
    max-width: 54ch;
    margin: 0;

    color: var(--offer-body);

    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 400;

    line-height: 1.85;
}

/* Action layout only; do not restyle the button. */

#offer.offer_partner .offer_partner_action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;

    margin-top: 34px;
}

#offer.offer_partner .offer_partner_action_note {
    max-width: 42ch;
    margin: 0;

    color: var(--offer-muted);

    font-family: "Lato", sans-serif;
    font-size: 12px;
    line-height: 1.65;
}

/* Partner categories */

#offer.offer_partner .offer_partner_panel {
    min-width: 0;

    padding: clamp(24px, 3vw, 40px);

    border: 1px solid var(--offer-rule);
    border-radius: 8px;

    background: rgba(29, 28, 33, 0.76);
}

#offer.offer_partner .offer_partner_panel_heading {
    margin: 0 0 8px;

    color: var(--offer-muted);

    font-family: "Lato", sans-serif;
    font-size: 10px;
    font-weight: 700;

    line-height: 1.6;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#offer.offer_partner .offer_partner_item {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);

    align-items: start;
    gap: 15px;

    padding: 25px 0;
}

#offer.offer_partner .offer_partner_item
    + .offer_partner_item {
    border-top: 1px solid var(--offer-rule);
}

#offer.offer_partner .offer_partner_item:last-child {
    padding-bottom: 0;
}

#offer.offer_partner .offer_partner_number {
    padding-top: 5px;

    color: var(--offer-accent);

    font-family: "Lato", sans-serif;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;

    line-height: 1.5;
    letter-spacing: 0.05em;
}

#offer.offer_partner .offer_partner_item h3 {
    margin: 0 0 9px;
    padding: 0;

    color: var(--offer-ink);

    font-family: "Playfair", Georgia, serif;
    font-size: clamp(23px, 2vw, 28px);
    font-weight: 400;

    line-height: 1.25;
    letter-spacing: -0.015em;
}

#offer.offer_partner .offer_partner_item p {
    margin: 0;

    color: var(--offer-body);

    font-family: "Lato", sans-serif;
    font-size: 14px;
    line-height: 1.75;
}

/* Tablet: stack the content and the partner panel. */

@media (max-width: 991.98px) {
    #offer.offer_partner .offer_partner_layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    #offer.offer_partner .offer_partner_content {
        max-width: 720px;
    }

    #offer.offer_partner h2.offer_partner_title {
        font-size: clamp(42px, 6.5vw, 60px);
    }

    #offer.offer_partner .offer_partner_panel {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 20px;
        padding: 28px;
    }

    #offer.offer_partner .offer_partner_panel_heading {
        grid-column: 1 / -1;
        margin: 0;
    }

    #offer.offer_partner .offer_partner_item {
        display: block;
        padding: 0;
    }

    #offer.offer_partner .offer_partner_item
        + .offer_partner_item {
        border-top: 0;
        border-left: 1px solid var(--offer-rule);
        padding-left: 20px;
    }

    #offer.offer_partner .offer_partner_number {
        display: block;
        margin-bottom: 12px;
        padding: 0;
    }
}

/* Mobile: return partner categories to readable rows. */

@media (max-width: 767.98px) {
    #offer.offer_partner {
        padding-block: 56px;
    }

    #offer.offer_partner::before {
        background-position: 68% center;
    }

    #offer.offer_partner::after {
        background: linear-gradient(
            180deg,
            rgba(20, 19, 23, 0.78) 0%,
            rgba(20, 19, 23, 0.90) 40%,
            rgba(20, 19, 23, 0.97) 100%
        );
    }

    #offer.offer_partner .offer_partner_eyebrow {
        gap: 10px;
        margin-bottom: 22px;

        font-size: 10px;
        letter-spacing: 0.13em;
    }

    #offer.offer_partner h2.offer_partner_title {
        margin-bottom: 24px;
        font-size: clamp(35px, 7.5vw, 48px);
        line-height: 1.14;
    }

    #offer.offer_partner .offer_partner_lead {
        font-size: 19px;
    }

    #offer.offer_partner .offer_partner_description {
        font-size: 15px;
        line-height: 1.8;
    }

    #offer.offer_partner .offer_partner_action {
        margin-top: 28px;
    }

    #offer.offer_partner .offer_partner_panel {
        display: block;
        padding: 24px;
    }

    #offer.offer_partner .offer_partner_panel_heading {
        margin-bottom: 2px;
    }

    #offer.offer_partner .offer_partner_item {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);

        gap: 14px;
        padding: 22px 0;
    }

    #offer.offer_partner .offer_partner_item
        + .offer_partner_item {
        padding-left: 0;

        border-left: 0;
        border-top: 1px solid var(--offer-rule);
    }

    #offer.offer_partner .offer_partner_number {
        margin: 0;
        padding-top: 5px;
    }

    #offer.offer_partner .offer_partner_item h3 {
        font-size: 25px;
    }
}

@media (max-width: 379.98px) {
    #offer.offer_partner .offer_partner_panel {
        padding: 20px;
    }

    #offer.offer_partner .offer_partner_eyebrow {
        letter-spacing: 0.08em;
    }

    #offer.offer_partner h2.offer_partner_title {
        font-size: 33px;
    }
}
/* ==========================================================
   NEWS CARDS
   Theme colors are inherited from typography_ld.css.
   ========================================================== */

.typography :is(
    .news_wrapper,
    .news_wrapper *
) {
    box-sizing: border-box;
}

.typography .news_wrapper {
    height: 100%;
    min-width: 0;
    padding-block: 12px;
}

.typography .news_wrapper .block-btn {
    display: flex;
    flex-direction: column;

    height: 100%;
    min-width: 0;

    overflow: hidden;

    border: 1px solid var(
        --ty-rule-subtle,
        rgba(184, 144, 95, 0.14)
    );
    border-radius: 10px;

    color: var(--ty-body, inherit);
    background: var(--ty-surface, transparent);

    text-decoration: none;

    box-shadow: none;

    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}

.typography .news_wrapper .block-btn:visited {
    color: var(--ty-body, inherit);
}

.typography .news_wrapper .block-btn:hover {
    color: var(--ty-body, inherit);
    border-color: var(
        --ty-gold,
        var(--beige, #b8905f)
    );
    background: var(--ty-surface-raised, var(--ty-surface));
    text-decoration: none;
    transform: translateY(-3px);
}

.typography .news_wrapper .block-btn:focus-visible {
    outline: 2px solid var(
        --ty-gold,
        var(--beige, #b8905f)
    );
    outline-offset: 5px;
}


/* ==========================================================
   IMAGE AREA
   ========================================================== */

.typography .news_wrapper_pic {
    position: relative;

    aspect-ratio: 16 / 10;
    min-height: 190px;

    overflow: hidden;

    background: var(
        --ty-surface-raised,
        var(--ty-surface, #f1ebe3)
    );
}

.typography .news_wrapper_pic::after {
    content: "";

    position: absolute;
    z-index: 1;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.02) 35%,
        rgba(0, 0, 0, 0.36) 100%
    );

    pointer-events: none;
}

.typography .news_wrapper_pic_inner {
    position: absolute;
    inset: 0;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    transform: scale(1);

    transition:
        transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
        filter 0.8s ease;
    will-change: transform;
}

.typography .news_wrapper .block-btn:hover
.news_wrapper_pic_inner {
    transform: scale(1.08);
}

.typography .news_wrapper .block-btn:hover
.news_wrapper_pic_inner {
    filter: saturate(1.04);
}


/* ==========================================================
   TEXT AREA
   ========================================================== */

.typography .news_descr {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;

    min-width: 0;
    padding: 22px 22px 24px;
}

.typography .news_title {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    min-width: 0;
    margin: 0;

    color: var(--ty-heading, inherit);

    font-family: "Playfair", Georgia, serif;
    font-size: clamp(22px, 1.8vw, 29px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;

    overflow-wrap: anywhere;
}

.typography .news_intro {
    margin-top: 13px;

    color: var(--ty-body, inherit);

    font-family: "Lato", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;

    overflow-wrap: anywhere;
}


/* ==========================================================
   DECORATIVE ARROW
   ========================================================== */

.typography .news_title .arly {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;
    margin-top: 2px;

    border: 1px solid var(
        --ty-rule,
        rgba(184, 144, 95, 0.28)
    );
    border-radius: 50%;

    color: var(
        --ty-gold,
        var(--beige, #b8905f)
    );

    font-family: "FontAwesome";
    font-size: 11px;
    font-weight: normal;
    line-height: 1;

    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.45s ease;
}

.typography .news_title .arly::before {
    content: "\f178";
}

.typography .news_wrapper .block-btn:hover
.news_title .arly {
    border-color: var(
        --ty-gold,
        var(--beige, #b8905f)
    );

    color: var(
        --ty-background,
        var(--black, #1d1c21)
    );

    background: var(
        --ty-gold,
        var(--beige, #b8905f)
    );

    transform: translateX(3px);
}


/* ==========================================================
   LIGHT THEME REFINEMENT
   ========================================================== */

.typography.light .news_wrapper .block-btn {
    background: var(--ty-surface, #f1ebe3);
}

.typography.light .news_wrapper_pic::after {
    background: linear-gradient(
        180deg,
        rgba(29, 28, 33, 0.02) 35%,
        rgba(29, 28, 33, 0.32) 100%
    );
}


/* ==========================================================
   DARK THEME REFINEMENT
   ========================================================== */

.typography.dark .news_wrapper .block-btn {
    background: var(--ty-surface, #232227);
}

.typography.dark .news_wrapper_pic::after {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.04) 35%,
        rgba(0, 0, 0, 0.48) 100%
    );
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 767.98px) {
    .typography .news_wrapper {
        padding-block: 9px;
    }

    .typography .news_wrapper_pic {
        aspect-ratio: 16 / 10;
        min-height: 180px;
    }

    .typography .news_descr {
        padding: 19px 19px 21px;
    }

    .typography .news_title {
        font-size: 24px;
    }

    .typography .news_intro {
        font-size: 14px;
        line-height: 1.7;
    }
}

@media (max-width: 575.98px) {
    .typography .news_wrapper {
        padding-block: 8px;
    }

    .typography .news_wrapper_pic {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .typography .news_descr {
        padding: 18px 18px 20px;
    }

    .typography .news_title {
        font-size: 23px;
    }

    .typography .news_title .arly {
        width: 25px;
        height: 25px;
    }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    .typography .news_wrapper .block-btn,
    .typography .news_wrapper_pic_inner,
    .typography .news_title .arly {
        transition: none;
    }

    .typography .news_wrapper .block-btn:hover {
        transform: none;
    }

    .typography .news_wrapper .block-btn:hover
    .news_wrapper_pic_inner {
        transform: none;
    }
}

/* ==========================================================
   TYPOGRAPHY SCROLLBARS — LIGHT / DARK
   Apply to theme roots and every scrollable descendant.
   Portal panels receive these variables from their trigger.
   ========================================================== */
.typography.light {
    --ty-scroll-track: #f1ebe3;
    --ty-scroll-thumb: #b69a78;
    --ty-scroll-hover: #8c6c45;
    color-scheme: light;
}
.typography.dark {
    --ty-scroll-track: #232227;
    --ty-scroll-thumb: #74624e;
    --ty-scroll-hover: #b8905f;
    color-scheme: dark;
}

/* Keep native high-contrast scrollbars in forced-colors mode. */
@media (forced-colors: none) {
    :where(
        .typography.light,
        .typography.dark,
        .typography.light *,
        .typography.dark *,
        .property_updates_popover,
        .property_updates_popover *
    ) {
        scrollbar-width: thin;
        scrollbar-color:
            var(--ty-scroll-thumb, #b69a78)
            var(--ty-scroll-track, #f1ebe3);
    }

    /* Chromium and Safari: use rounded custom scrollbar parts.
       Reset standard properties here so they do not override
       the WebKit pseudo-elements in modern Chromium. */
    @supports selector(::-webkit-scrollbar) {
        :where(
            .typography.light,
            .typography.dark,
            .typography.light *,
            .typography.dark *,
            .property_updates_popover,
            .property_updates_popover *
        ) {
            scrollbar-width: auto;
            scrollbar-color: auto;
        }

        :where(.typography.light, .typography.dark,
            .typography.light *, .typography.dark *,
            .property_updates_popover, .property_updates_popover *)::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        :where(.typography.light, .typography.dark,
            .typography.light *, .typography.dark *,
            .property_updates_popover, .property_updates_popover *)::-webkit-scrollbar-track {
            background: var(--ty-scroll-track, #f1ebe3);
            border-radius: 999px;
        }
        :where(.typography.light, .typography.dark,
            .typography.light *, .typography.dark *,
            .property_updates_popover, .property_updates_popover *)::-webkit-scrollbar-thumb {
            min-height: 36px;
            border: 0px solid var(--ty-scroll-track, #f1ebe3);
            border-radius: 999px;
            background: var(--ty-scroll-thumb, #b69a78);
        }
        :where(.typography.light, .typography.dark,
            .typography.light *, .typography.dark *,
            .property_updates_popover, .property_updates_popover *)::-webkit-scrollbar-thumb:hover {
            background: var(--ty-scroll-hover, #8c6c45);
        }
        :where(.typography.light, .typography.dark,
            .typography.light *, .typography.dark *,
            .property_updates_popover, .property_updates_popover *)::-webkit-scrollbar-button {
            display: none;
            width: 0;
            height: 0;
        }
        :where(.typography.light, .typography.dark,
            .typography.light *, .typography.dark *,
            .property_updates_popover, .property_updates_popover *)::-webkit-scrollbar-corner {
            background: var(--ty-scroll-track, #f1ebe3);
        }
    }
}
/* END TYPOGRAPHY SCROLLBARS */

/* ==========================================================
   RELATED PROPERTIES: LIST AND DETAIL CONTENT
   Inherits typography theme variables. No image previews.
   ========================================================== */
.related_properties {
    margin-block: clamp(32px, 4vw, 56px);
    color: var(--ty-body, #514b45);
    font-family: "Lato", Arial, sans-serif;
}
.related_properties .related_properties_heading {
    margin: 0 0 22px;
    color: var(--ty-heading, #1d1c21);
    font-family: "Playfair", Georgia, serif;
    font-size: clamp(25px, 2.4vw, 34px);
    font-weight: 400;
    line-height: 1.2;
}
.related_properties .related_properties_list {
    max-width: none;
    margin: 0;
    padding: 0;
    list-style: none;
}
.related_properties .related_properties_item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 23px 0;
    border-top: 1px solid var(--ty-rule, #e5d4c0);
    list-style: none;
}
.related_properties .related_properties_item:last-child {
    border-bottom: 1px solid var(--ty-rule, #e5d4c0);
}
.related_properties .related_properties_main { min-width: 0; }
.related_properties a.related_properties_link,
.related_properties a.related_properties_link:visited {
    display: inline;
    color: var(--ty-heading, #1d1c21);
    font-family: "Playfair", Georgia, serif;
    font-size: clamp(22px, 2vw, 29px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.015em;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.related_properties a.related_properties_link:hover {
    color: var(--ty-link, #684b27);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}
.related_properties .related_properties_location {
    margin: 7px 0 0;
    color: var(--ty-muted, #756b60);
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0.025em;
    overflow-wrap: anywhere;
}
.related_properties .related_properties_location:empty { display: none; }
.related_properties .related_properties_info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--ty-rule, #e5d4c0);
    border-radius: 7px;
    background: transparent;
    color: var(--ty-link, #684b27);
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}
.related_properties .related_properties_info[hidden] { display: none; }
.related_properties .related_properties_info svg {
    display: block;
    width: 22px;
    height: 22px;
}
.related_properties .related_properties_info:hover,
.related_properties .related_properties_info[aria-expanded="true"] {
    border-color: var(--ty-gold, #b8905f);
    background: var(--ty-surface, #f1ebe3);
}
.related_properties :is(.related_properties_info, .related_properties_link):focus-visible {
    outline: 2px solid var(--ty-gold, #b8905f);
    outline-offset: 4px;
}

/* ==========================================================
   SHARED PORTAL PANEL
   Also supports the existing related-news chunks and classes.
   Replace the old JS, but keep its existing list CSS.
   ========================================================== */
.property_updates_popover.editorial_popover {
    position: fixed;
    z-index: 1065;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 420px;
    max-width: calc(100vw - 24px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--ty-rule, #e5d4c0);
    border-radius: 10px;
    background: var(--ty-background, #faf8f5);
    color: var(--ty-body, #514b45);
    box-shadow: 0 14px 48px rgba(0, 0, 0, .18);
    font-family: "Lato", Arial, sans-serif;
    line-height: 1.6;
    text-align: left;
}
.property_updates_popover.editorial_popover[hidden] { display: none; }
.editorial_popover .editorial_popover_header {
    flex: 0 0 auto;
    position: relative;
    padding: 23px 62px 18px 26px;
    border-bottom: 1px solid var(--ty-rule, #e5d4c0);
}
.editorial_popover .property_updates_popover_label {
    margin: 0 0 8px;
    color: var(--ty-muted, #756b60);
    font: 700 10px/1.5 "Lato", Arial, sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.editorial_popover .property_updates_popover_title {
    margin: 0;
    padding: 0;
    color: var(--ty-heading, #1d1c21);
    font: 400 clamp(22px, 2vw, 28px)/1.25 "Playfair", Georgia, serif;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
}
.editorial_popover .property_updates_popover_close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--ty-rule, #e5d4c0);
    border-radius: 50%;
    background: transparent;
    color: var(--ty-link, #684b27);
    font: 400 25px/1 Arial, sans-serif;
    cursor: pointer;
}
.editorial_popover .property_updates_popover_close:hover {
    background: var(--ty-surface, #f1ebe3);
}
.editorial_popover .property_updates_popover_close:focus-visible,
.editorial_popover .editorial_popover_body:focus-visible {
    outline: 2px solid var(--ty-gold, #b8905f);
    outline-offset: -3px;
}
.editorial_popover .editorial_popover_body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 22px 26px 26px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--ty-scroll-thumb, #b69a78) var(--ty-scroll-track, #f1ebe3);
}
.editorial_popover .editorial_news_summary {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* Property details are local to the popup, not #greenBlock. */
.related_properties_perks { font: 400 14px/1.6 "Lato", Arial, sans-serif; }
.related_properties_status {
    display: inline-block;
    margin-bottom: 20px;
    padding: 4px 10px;
    border: 1px solid var(--ty-rule, #e5d4c0);
    border-radius: 4px;
    color: var(--ty-link, #684b27);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.related_properties_focus {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px 28px;
    margin-bottom: 22px;
}
.related_properties_focus > :only-child { grid-column: 1 / -1; }
.related_properties_label {
    display: block;
    margin: 0 0 5px;
    color: var(--ty-muted, #756b60);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .075em;
    text-transform: uppercase;
}
.related_properties_focal {
    margin: 0;
    color: var(--ty-link, #684b27);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.related_properties_focal + .related_properties_focal { margin-top: 5px; }
.related_properties_completion { margin-top: 0px; }
.related_properties_specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 0;
    padding: 0;
}
.related_properties_spec {
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--ty-rule-subtle, var(--ty-rule, #e5d4c0));
}
.related_properties_spec dt {
    margin: 0 0 5px;
    color: var(--ty-muted, #756b60);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .05em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.related_properties_spec dd {
    margin: 0;
    color: var(--ty-heading, #1d1c21);
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.related_properties_address {
    margin-top: 22px;
    color: var(--ty-body, #514b45);
    font-style: normal;
    font-size: 13px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.related_properties_address p { margin: 0 0 8px; }
.related_properties_address p:last-child { margin-bottom: 0; }
@media (max-width: 767.98px) {
    .related_properties .related_properties_item { gap: 16px; padding-block: 20px; }
    .related_properties a.related_properties_link { font-size: 23px; }
    .editorial_popover .editorial_popover_header { padding: 20px 58px 16px 20px; }
    .editorial_popover .editorial_popover_body { padding: 18px 20px 22px; }
}
@media (max-width: 479.98px) {
    .related_properties_focus, .related_properties_specs { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .related_properties .related_properties_info { transition: none; }
}

/* ==========================================================
   RELATED PROPERTIES PAGINATION
   ========================================================== */

.related_properties .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    margin: 26px 0 0;
    padding: 20px 0 0;

    border-top: 1px solid var(
        --ty-rule-subtle,
        rgba(184, 144, 95, 0.2)
    );
}

.related_properties .pagination > .pag_item {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 8px 13px;

    appearance: none;

    border: 1px solid var(--ty-rule, #b8905f);
    border-radius: 6px;

    color: var(--ty-heading, #1d1c21);
    background: transparent;

    font-family: "Lato", sans-serif;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;

    text-decoration: none;
    box-shadow: none;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.related_properties .pagination > .pag_item:hover {
    border-color: var(--beige, #b8905f);

    color: var(--black, #1d1c21);
    background: var(--lightbeige, #e5d4c0);
}

.related_properties .pagination > .pag_item.active {
    border-color: var(--beige, #b8905f);

    color: var(--black, #1d1c21);
    background: var(--beige, #b8905f);
}

.related_properties .pagination > .pag_item:focus-visible {
    outline: 2px solid var(--beige, #b8905f);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .related_properties .pagination > .pag_item {
        transition: none;
    }
}