/*
 * LOW HOUSE — публичная программа форума
 * Полная таблица стилей для HTML, формируемого pgm-lowhouse.php.
 * Содержимое и структура HTML остаются в PHP; оформление — здесь.
 */

/* 1. Основа страницы */
article.lh-program-page {
    --lh-green-900: #17452f;
    --lh-green-800: #205b3c;
    --lh-green-700: #2e754b;
    --lh-green-200: #cfe3d5;
    --lh-green-100: #edf6ef;
    --lh-ink: #26332c;
    --lh-muted: #64736a;
    --lh-line: #e0e8e2;
    --lh-surface: #ffffff;
    --lh-soft: #f6f9f6;

    width: calc(100% - 40px);
    max-width: 1500px;
    box-sizing: border-box;
    margin: 0 auto 40px;
    padding: 28px 30px;
    color: var(--lh-ink);
    background: var(--lh-surface);
    border: 1px solid #e3e9e4;
    border-radius: 16px;
    box-shadow: 0 5px 24px rgba(29, 57, 39, .06);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

article.lh-program-page *,
article.lh-program-page *::before,
article.lh-program-page *::after {
    box-sizing: border-box;
}

article.lh-program-page img {
    max-width: 100%;
}

article.lh-program-page p {
    margin-top: 0;
    margin-bottom: 12px;
}

article.lh-program-page a {
    color: var(--lh-green-800);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

article.lh-program-page a:hover {
    color: var(--lh-green-900);
}

article.lh-program-page h1,
article.lh-program-page h2,
article.lh-program-page h3,
article.lh-program-page h4,
article.lh-program-page h5,
article.lh-program-page h6 {
    color: var(--lh-ink);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* 2. Главный заголовок и служебные элементы */
article.lh-program-page > h4 {
    margin: 0 0 18px !important;
    color: var(--lh-green-900);
    font-size: clamp(27px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
}

article.lh-program-page .program-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

article.lh-program-page .program-action {
    padding: 7px 12px;
    color: #425248;
    background: #f8faf8;
    border: 1px solid #d5dfd7;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

article.lh-program-page .program-action:hover {
    background: #edf5ef;
    border-color: #aac9b3;
}

/* Скрываем управляющие кнопки и техническую нумерацию в публичном представлении. */
article.lh-program-page .program-actions,
article.lh-program-page #convertToHTML,
article.lh-program-page #convertToWord,
article.lh-program-page .event-talk-number,
article.lh-program-page .circle-number,
article.lh-program-page .circle-session {
    display: none !important;
}

/* 3. Информационная шапка: поддержка, дата и место */
article.lh-program-page .container-head {
    margin: 0 0 24px;
    padding: 22px;
    color: var(--lh-ink);
    background: linear-gradient(145deg, #fbfdfb, #f4f8f4);
    border: 1px solid #dfe8e1;
    border-radius: 14px;
}

article.lh-program-page .container-head > p:first-child {
    margin: 0 0 16px;
    padding: 11px 14px;
    color: #4d6655;
    background: #edf5ef;
    border-left: 3px solid #8db99a;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

article.lh-program-page .item-head {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 16px !important;
}

article.lh-program-page .item-head .aist-event-date,
article.lh-program-page .item-head .aist-event-place {
    display: flex;
    align-items: center;
    flex: 1 1 260px;
    min-width: 0;
    gap: 12px;
    padding: 14px 16px;
    color: var(--lh-green-900);
    background: #eaf4ed;
    border: 1px solid #d1e3d6;
    border-radius: 11px;
}

article.lh-program-page .item-head .aist-meta-icon {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--lh-green-700);
    background: #d7eadc;
    border-radius: 9px;
    font-size: 19px;
}

article.lh-program-page .item-head .aist-meta-copy {
    display: block;
    min-width: 0;
    line-height: 1.45;
}

article.lh-program-page .item-head .aist-meta-label {
    display: block;
    margin-bottom: 3px;
    color: #617969;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

article.lh-program-page .item-head .aist-meta-value {
    display: block;
    color: var(--lh-green-900);
    font-size: 15px;
    font-weight: 750;
}

article.lh-program-page .container-head [itemprop="address"] {
    display: block;
    margin-top: 3px;
    color: #5e7064;
    font-size: 13px;
}

article.lh-program-page .container-head hr {
    display: none;
}

article.lh-program-page .container-head h4 {
    margin: 18px 0 12px !important;
    padding-top: 16px;
    color: #365342;
    border-top: 1px solid var(--lh-line);
    font-size: 17px !important;
    font-weight: 800;
}

/* Перечни тем и дополнительной информации в шапке */
article.lh-program-page .container-head ul:not(.wrap) {
    margin: 8px 0 18px;
    padding-left: 22px;
}

article.lh-program-page .container-head ul:not(.wrap) li {
    margin: 5px 0;
    color: #35443a;
    line-height: 1.5;
}

article.lh-program-page .container-head ul.wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

article.lh-program-page .container-head ul.wrap > li {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 11px 13px 11px 32px;
    color: #34443a;
    background: #fff;
    border: 1px solid #e0e9e2;
    border-radius: 9px;
    line-height: 1.5;
}

article.lh-program-page .container-head ul.wrap > li::before {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 10px;
    color: #43865a;
    font-weight: 800;
}

/* 4. Заголовки разделов и сессий */
article.lh-program-page > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0 14px !important;
    padding: 12px 15px;
    color: #315740;
    background: #f0f6f1;
    border: 1px solid #e0ebe2;
    border-radius: 11px;
    font-size: 18px !important;
    font-weight: 800;
    letter-spacing: .025em;
}

article.lh-program-page > h2::before {
    content: "▦";
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #2d7548;
    background: #dceee1;
    border-radius: 8px;
    font-size: 17px;
}

article.lh-program-page > h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 18px !important;
    padding: 14px 16px !important;
    color: #205b3c !important;
    background: #edf6ef !important;
    border: 1px solid #d0e4d5 !important;
    border-left: 4px solid #4b9565 !important;
    border-radius: 11px !important;
    font-size: clamp(18px, 2vw, 22px) !important;
    font-weight: 800 !important;
}

article.lh-program-page > h3::before {
    content: "▦";
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #2d7548;
    background: #d7ecdd;
    border-radius: 8px;
}

article.lh-program-page .aist-sessions-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 18px 0 10px !important;
    padding: 10px 13px;
    color: #3e5d47 !important;
    background: #f6faf6;
    border: 1px solid #e0e9e2;
    border-radius: 10px;
    font-size: 15px !important;
    font-weight: 800 !important;
}

article.lh-program-page .aist-sessions-label::before {
    content: "▤";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #32754a;
    background: #e3f0e6;
    border-radius: 8px;
}

/* Совместимость с альтернативными заголовками сессий */
article.lh-program-page h5.event-session-detail-title,
article.lh-program-page .event-session-detail-title {
    display: block;
    clear: both;
    margin: 28px 0 14px !important;
    padding: 15px 19px !important;
    color: #fff !important;
    background: #175b3b !important;
    border: 0 !important;
    border-radius: 9px !important;
    box-shadow: 0 3px 8px rgba(20, 65, 42, .10);
    font-size: 19px !important;
    font-weight: 750 !important;
    line-height: 1.4 !important;
}

article.lh-program-page .event-session-detail-title * {
    color: #fff !important;
}

article.lh-program-page .event-session-detail-card {
    margin: 16px 0 18px;
    padding: 16px;
    background: #fbfdfb;
    border: 1px solid #e1e9e3;
    border-radius: 12px;
}

article.lh-program-page .event-session-detail-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 7px;
    color: #fff;
    background: rgba(255,255,255,.14);
    border-radius: 7px;
}

article.lh-program-page .event-session-abstract {
    margin: 0 0 12px;
    color: var(--lh-muted);
    font-size: 14px;
}

article.lh-program-page .event-session-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 9px 0;
}

article.lh-program-page .event-session-meta-row + .event-session-meta-row {
    border-top: 1px solid #edf1ed;
}

article.lh-program-page .event-session-meta-icon {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #426b53;
    background: #edf4ef;
    border-radius: 8px;
}

article.lh-program-page .event-session-meta-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

article.lh-program-page .event-session-meta-content {
    flex: 1;
    min-width: 0;
    color: #35453b;
    line-height: 1.5;
}

article.lh-program-page .event-session-meta-label {
    display: block;
    color: #68796e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* 5. Блоки сессий */
article.lh-program-page .session-container {
    margin: 12px 0 22px;
    padding: 17px 18px;
    background: #fbfdfb;
    border: 1px solid #dfe8e1;
    border-radius: 13px;
}

article.lh-program-page .session-container .event-talks-heading {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #e8eee9;
}

article.lh-program-page .event-talks-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 18px 0 12px;
    color: #2c4535;
    font-size: 17px;
    font-weight: 800;
}

article.lh-program-page .event-talks-heading > span {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #32734a;
    background: #e8f3eb;
    border-radius: 8px;
}

/* 6. Доклады: поддержка двух видов HTML-разметки */
article.lh-program-page ul.wrap.session_bg {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    background: #f6f9f6;
    border-radius: 12px;
    list-style: none;
}

article.lh-program-page ul.wrap.session_bg > li {
    min-width: 0;
    margin: 0;
    padding: 15px 16px;
    color: #344238;
    background: #fff;
    border: 1px solid #e1e9e3;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
    list-style: none;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title time" "speaker speaker";
    align-items: start;
    column-gap: 12px;
    row-gap: 6px;
    padding: 15px 16px;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk:hover {
    background: #fbfdfb;
    border-color: #c8ddce;
    box-shadow: 0 4px 12px rgba(32, 82, 49, .05);
}

article.lh-program-page ul.wrap.session_bg > li.program-talk > .speech-title {
    grid-area: title;
    display: block;
    min-width: 0;
    margin: 0;
    color: #263d2e;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk > .time {
    grid-area: time;
    justify-self: end;
    align-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    max-width: 100%;
    margin: 0;
    padding: 5px 9px;
    color: #24633d;
    background: #edf7f0;
    border: 1px solid #cfe3d4;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk > .time .glyphicon-time,
article.lh-program-page ul.wrap.session_bg > li.program-talk > .time .time-icon {
    position: static !important;
    top: auto !important;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 1em;
    margin: 0;
    padding: 0;
    color: #32764b;
    line-height: 1 !important;
    vertical-align: middle !important;
    transform: none !important;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk > .speaker-details {
    grid-area: speaker;
    display: block;
    min-width: 0;
    margin: 0;
    color: #65746a;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk > .speaker-details > .speaker,
article.lh-program-page .speaker {
    color: #344b3b;
    font-weight: 700;
    font-style: normal;
}

article.lh-program-page .event-talk-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 10px 0;
    padding: 14px 16px;
    background: #f7faf7;
    border: 1px solid #e1eae3;
    border-radius: 11px;
    box-shadow: 0 1px 2px rgba(35, 58, 43, .035);
    transition: border-color .18s ease, background .18s ease;
}

article.lh-program-page .event-talk-card + .event-talk-card {
    margin-top: 10px;
}

article.lh-program-page .event-talk-card:hover {
    background: #f2f8f3;
    border-color: #cbded0;
}

article.lh-program-page .event-talk-number {
    display: flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #315b40;
    background: #edf4ee;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

article.lh-program-page .event-talk-main {
    flex: 1;
    min-width: 0;
}

article.lh-program-page .event-talk-speaker-line {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

article.lh-program-page .event-talk-time {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    color: #286b42 !important;
    background: #edf7f0 !important;
    border: 1px solid #d0e5d6;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

article.lh-program-page .event-talk-speaker-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: #64736a;
    font-size: 13px;
    line-height: 1.4;
}

article.lh-program-page .event-talk-speaker-details strong {
    color: #344b3b;
    font-size: 14px;
}

article.lh-program-page .event-talk-title {
    margin-top: 7px;
    color: #263d2e;
    font-weight: 700;
    line-height: 1.45;
}

/* 7. Модераторы и небольшие портреты внутри сессий */
article.lh-program-page .event-moderator-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 6px;
}

article.lh-program-page .event-moderator-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

article.lh-program-page .event-moderator-photo,
article.lh-program-page .event-talk-photo,
article.lh-program-page .event-person-placeholder {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid #d8e2da;
    border-radius: 50%;
    background: #eef3ef;
    object-fit: cover;
}

article.lh-program-page .event-person-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64736a;
    font-size: 18px;
}

/* 8. Галерея выступающих */
article.lh-program-page .container-2.session_bg.speakers {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
    background: transparent;
    column-count: initial;
    column-width: auto;
}

article.lh-program-page .speakers .together {
    min-width: 0;
    margin: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e9e3;
    border-radius: 11px;
    box-shadow: 0 2px 8px rgba(31, 61, 41, .035);
    break-inside: avoid;
}

article.lh-program-page .speakers .together > .row {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0 !important;
}

article.lh-program-page .speakers .speaker-block {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 !important;
}

article.lh-program-page .speaker-avatar {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: contain;
    object-position: center;
    background: #f4f7f4;
    border: 1px solid #edf0ed;
    border-radius: 8px;
}

article.lh-program-page .speakers h3 {
    margin: 10px 0 5px;
    color: #2d4535;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

article.lh-program-page .speakers p {
    margin: 0;
    color: #65746a;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

article.lh-program-page .speakers .together > hr {
    display: none;
}

/* 9. Остальные текстовые элементы, ссылки и выделения */
article.lh-program-page .text-secondary,
article.lh-program-page .div-scroll,
article.lh-program-page .title-container {
    color: #35443a !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
}

article.lh-program-page .presentation {
    color: #26372c !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

article.lh-program-page mark.small {
    padding: 3px 6px;
    color: #3f453b !important;
    background: #fff2b7;
    border-radius: 4px;
}

article.lh-program-page a.action {
    color: #205b3c !important;
    font-weight: 700 !important;
}

article.lh-program-page > hr {
    display: none;
}

/* 10. Планшеты и телефоны */
@media (min-width: 1500px) {
    article.lh-program-page .container-2.session_bg.speakers {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    article.lh-program-page .container-2.session_bg.speakers {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    article.lh-program-page {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    article.lh-program-page {
        width: calc(100% - 20px);
        margin: 0 auto 28px;
        padding: 20px 16px;
        border-radius: 12px;
    }

    article.lh-program-page > h4 {
        font-size: 25px;
    }

    article.lh-program-page .container-head {
        padding: 16px;
    }

    article.lh-program-page .item-head .aist-event-date,
    article.lh-program-page .item-head .aist-event-place {
        flex-basis: 100%;
    }

    article.lh-program-page .container-head ul.wrap,
    article.lh-program-page ul.wrap.session_bg {
        grid-template-columns: minmax(0, 1fr);
    }

    article.lh-program-page .container-2.session_bg.speakers {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    article.lh-program-page .speaker-avatar {
        height: 150px;
    }

    article.lh-program-page .session-container {
        padding: 13px;
    }
}

@media (max-width: 480px) {
    article.lh-program-page {
        width: calc(100% - 12px);
        padding: 16px 12px;
    }

    article.lh-program-page > h4 {
        font-size: 22px;
    }

    article.lh-program-page .container-head {
        padding: 12px;
    }

    article.lh-program-page .container-head > p:first-child {
        padding: 9px 10px;
        font-size: 13px;
    }

    article.lh-program-page ul.wrap.session_bg > li.program-talk {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "title" "time" "speaker";
        row-gap: 7px;
        padding: 12px;
    }

    article.lh-program-page ul.wrap.session_bg > li.program-talk > .time {
        justify-self: start;
    }

    article.lh-program-page .container-2.session_bg.speakers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    article.lh-program-page .speakers .together {
        padding: 8px;
    }

    article.lh-program-page .speaker-avatar {
        height: 130px;
    }

    article.lh-program-page .event-talk-card {
        gap: 9px;
        margin: 8px 0;
        padding: 11px 10px;
    }

    article.lh-program-page .program-actions {
        justify-content: flex-start;
    }
}


/* 11. Локальная проверка: фактическая разметка pgm-lowhouse.php
   В этой версии .speaker — отдельный span, а должность/организация
   идут обычным текстом сразу после него. Поэтому не используем grid
   для карточки: анонимный текстовый элемент не может получить grid-area. */
article.lh-program-page ul.wrap.session_bg > li.program-talk {
    display: block !important;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk > .time {
    float: right;
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    margin: 0 0 8px 12px;
    white-space: nowrap;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk > .speech-title {
    display: block;
    clear: both;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 7px;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    white-space: normal;
    hyphens: manual;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk > .speaker {
    color: #344b3b;
    font-weight: 700;
    font-style: normal;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk,
article.lh-program-page ul.wrap.session_bg > li.program-talk > .speaker {
    overflow-wrap: break-word;
    word-break: normal;
}

@media (max-width: 480px) {
    article.lh-program-page ul.wrap.session_bg > li.program-talk {
        padding: 12px;
    }

    article.lh-program-page ul.wrap.session_bg > li.program-talk > .time {
        float: none;
        margin: 0 0 8px;
    }

    article.lh-program-page ul.wrap.session_bg > li.program-talk > .speech-title {
        clear: both;
    }
}
/* Заголовок рядом со временем */
article.lh-program-page ul.wrap.session_bg > li.program-talk > .time {
    float: right;
    margin: 0 0 6px 12px;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk > .speech-title {
    clear: none !important;
    width: auto !important;
    max-width: 100%;
    margin: 0 0 7px;
}

/* =========================================================
   LOW HOUSE — Этап 1: единый стиль публичной программы
   Основа: фактическая разметка pgm-lowhouse.php
   ========================================================= */

article.lh-program-page {
    --lh-deep-green: #17452f;
    --lh-deep-green-hover: #205b3c;
    --lh-accent-green: #2e754b;
    --lh-white: #ffffff;
    --lh-soft-green: #edf4ef;
}

/* 1. Заголовок «Деловая программа» и названия сессий */
article.lh-program-page .bg-col {
    color: var(--lh-white) !important;
    background: var(--lh-deep-green) !important;
    border: 1px solid var(--lh-deep-green) !important;
    border-left: 5px solid #6fa985 !important;
    border-radius: 8px !important;
    padding: 13px 18px !important;
    margin: 0 0 12px !important;
    text-align: left;
    box-shadow: none !important;
}

article.lh-program-page .bg-col h1,
article.lh-program-page .bg-col h2,
article.lh-program-page .bg-col h3,
article.lh-program-page .bg-col h4 {
    color: var(--lh-white) !important;
    background: transparent !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

article.lh-program-page .bg-col h1 {
    font-size: clamp(22px, 2.4vw, 30px) !important;
}

/* Пояснение под названием сессии */
article.lh-program-page .bg-col small,
article.lh-program-page .bg-col small em {
    color: #e8f3eb !important;
    font-size: 13px !important;
    line-height: 1.45;
}

/* 2. Заголовок раздела «ПРОГРАММА» */
article.lh-program-page > h2 {
    color: var(--lh-white) !important;
    background: var(--lh-deep-green) !important;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: .045em;
}

article.lh-program-page > h2::before {
    color: var(--lh-deep-green) !important;
    background: var(--lh-white) !important;
}

/* Дата проведения */
article.lh-program-page > h3 {
    color: var(--lh-deep-green) !important;
    background: var(--lh-soft-green) !important;
    border: 1px solid #d5e4d9 !important;
    border-left: 4px solid var(--lh-accent-green) !important;
    border-radius: 7px !important;
    padding: 10px 14px !important;
    margin: 12px 0 15px !important;
    font-size: 19px !important;
    font-weight: 800 !important;
}

article.lh-program-page > h3::before {
    color: var(--lh-accent-green) !important;
    background: #dcebe0 !important;
}

/* 3. Организаторы: единый тёмный фон, белый текст,
      компактные строки вместо отдельных карточек */
article.lh-program-page .container-head h4:last-of-type {
    color: var(--lh-white) !important;
    background: var(--lh-deep-green) !important;
    border: 0 !important;
    border-radius: 6px !important;
    padding: 7px 11px !important;
    margin: 12px 0 0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

article.lh-program-page .container-head ul.wrap {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 !important;
    margin: 0 0 14px !important;
    padding: 7px 12px !important;
    list-style: none !important;
    background: var(--lh-deep-green) !important;
    border-radius: 0 0 8px 8px !important;
}

article.lh-program-page .container-head ul.wrap > li {
    min-width: 0;
    margin: 0 !important;
    padding: 4px 8px 4px 22px !important;
    color: var(--lh-white) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
}

article.lh-program-page .container-head ul.wrap > li::before {
    content: "✓";
    top: 4px;
    left: 5px;
    color: #a9d9b7 !important;
    font-size: 12px;
    font-weight: 800;
}

/* 4. Модераторы: имя выделено, должность читается,
      блок не выглядит старой плашкой */
article.lh-program-page .event-header {
    margin: 8px 0 12px !important;
    padding: 10px 13px !important;
    background: #f1f6f3 !important;
    border-left: 3px solid #4b8e68 !important;
    border-radius: 0 7px 7px 0 !important;
    color: #34483b !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

article.lh-program-page .event-header strong,
article.lh-program-page .moderators-list > strong {
    color: var(--lh-deep-green) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

article.lh-program-page .moderator-line {
    margin: 3px 0 0 !important;
    color: #276b79 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

/* 5. Дата, время и ссылка на трансляцию */
article.lh-program-page .event-header .time {
    margin: 0 6px 5px 0;
}

article.lh-program-page .alert.alert-warning {
    margin: 7px 0 12px !important;
    padding: 7px 12px !important;
    color: var(--lh-deep-green) !important;
    background: #edf5ef !important;
    border: 1px solid #d4e4d8 !important;
    border-radius: 7px !important;
}

article.lh-program-page .alert.alert-warning a,
article.lh-program-page .alert.alert-warning a span {
    color: var(--lh-deep-green) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-decoration: none;
}

article.lh-program-page .alert.alert-warning a:hover {
    text-decoration: underline;
}

/* 6. Карточки выступлений: три колонки на широком экране.
      Карточка остаётся совместимой с реальным HTML:
      должность идёт обычным текстом после .speaker. */
article.lh-program-page ul.wrap.session_bg {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    background: transparent !important;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk {
    display: block !important;
    min-width: 0;
    max-width: 100%;
    padding: 11px 13px !important;
    background: #ffffff !important;
    border: 1px solid #dfe8e2 !important;
    border-top: 3px solid #c5dccb !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    overflow-wrap: normal;
    word-break: normal;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk:hover {
    background: #f8fbf8 !important;
    border-color: #bfd6c5 !important;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk > .time {
    float: right;
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    margin: 0 0 5px 9px !important;
    padding: 4px 7px !important;
    font-size: 12px !important;
    white-space: nowrap;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk > .speech-title {
    display: block;
    clear: none !important;
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 6px !important;
    color: var(--lh-deep-green) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    white-space: normal;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk > .speaker {
    color: #344b3b !important;
    font-weight: 800 !important;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk {
    overflow-wrap: break-word;
}

article.lh-program-page ul.wrap.session_bg > li.program-talk::after {
    content: "";
    display: block;
    clear: both;
}

/* Средние экраны — две колонки */
@media (min-width: 800px) and (max-width: 1349px) {
    article.lh-program-page ul.wrap.session_bg {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    article.lh-program-page .container-head ul.wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Широкие экраны — три колонки */
@media (min-width: 1350px) {
    article.lh-program-page ul.wrap.session_bg {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Телефоны и узкие окна */
@media (max-width: 799px) {
    article.lh-program-page ul.wrap.session_bg {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    article.lh-program-page .container-head ul.wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    article.lh-program-page .container-head ul.wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    article.lh-program-page ul.wrap.session_bg > li.program-talk {
        padding: 10px 11px !important;
    }
}


/* ==========================================================
   LOW HOUSE — архитектурный номер раздела программы
   Изолированные стили нового маркера
   ========================================================== */

.lh-arch-marker {
    position: relative;
    display: block;
    width: 100%;
    max-width: 112px;
    aspect-ratio: 0.76;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #e5e8e2;
    border-radius: 22px;
    background: #fff;
    opacity: 0;
    transform: translateX(-14px);
    animation: lh-arch-marker-arrive 850ms
        cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.lh-arch-marker::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #2d483d;
    clip-path: ellipse(100% 73% at 0 0);
}

.lh-arch-marker__number {
    position: absolute;
    z-index: 1;
    top: 15%;
    left: 13%;
    color: #f5f2e9;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 56px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.055em;
}

.lh-arch-marker__period {
    position: absolute;
    z-index: 1;
    top: 52%;
    left: 15%;
    color: #f5f2e9;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
}

@keyframes lh-arch-marker-arrive {
    from {
        opacity: 0;
        transform: translateX(-14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lh-arch-marker {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
/* LOW HOUSE — маркер слева, заголовок справа */

.lh-arch-heading {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
}

.lh-arch-heading h4 {
    flex: 1 1 auto;
    min-width: 0;
}

.lh-arch-marker {
    order: -1;
    flex: 0 0 76px;
    width: 76px;
    max-width: 76px;
}

@media (max-width: 480px) {
    .lh-arch-heading {
        gap: 12px;
    }

    .lh-arch-marker {
        flex-basis: 60px;
        width: 60px;
        max-width: 60px;
    }
}