
/* ============================================================
   P117 Accessibility v11
   Уникальный файл, чтобы полностью исключить старый CSS из кэша.
   ============================================================ */

.p117-build-badge {
    display: inline-flex;
    align-items: center;
    align-self: center;
    min-height: 28px;
    padding: 2px 8px;
    border: 1px dashed currentColor;
    border-radius: 6px;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1;
    opacity: .72;
}

/* Базовые размеры — дополнительно задаются JS inline с !important. */
body.fontsize-small #maincontent { font-size: 22px !important; }
body.fontsize-normal #maincontent { font-size: 28px !important; }
body.fontsize-big #maincontent { font-size: 36px !important; }

#maincontent .gp117-schedule-shell {
    font-size: 1em !important;
    line-height: 1.55 !important;
}

/* На среднем и крупном размере не сжимаем текст в две колонки. */
body.fontsize-normal #maincontent .gp117-schedule-grid,
body.fontsize-big #maincontent .gp117-schedule-grid {
    grid-template-columns: minmax(0, 1fr) !important;
}

/* Жёсткий CSS-резерв для чёрной схемы. */
body.color2 #maincontent .gp117-schedule-card,
body.color2 #maincontent .gp117-schedule-holiday,
body.color2 #maincontent .gp117-schedule-person,
body.color2 #maincontent .gp117-schedule-hero,
body.color2 #maincontent .gp117-schedule-article,
body.color2 #maincontent .gp117-table-scroll {
    background: #000 !important;
    background-color: #000 !important;
    background-image: none !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.color2 #maincontent .gp117-schedule-card *,
body.color2 #maincontent .gp117-schedule-holiday *,
body.color2 #maincontent .gp117-schedule-person *,
body.color2 #maincontent .gp117-schedule-hero *,
body.color2 #maincontent .gp117-schedule-article * {
    color: #fff !important;
}

body.color2 #maincontent .gp117-schedule-card,
body.color2 #maincontent .gp117-schedule-person {
    border-left-color: #c5df40 !important;
}

/* Синяя схема — никаких белых карточек. */
body.color3 #maincontent .gp117-schedule-card,
body.color3 #maincontent .gp117-schedule-holiday,
body.color3 #maincontent .gp117-schedule-person,
body.color3 #maincontent .gp117-schedule-hero,
body.color3 #maincontent .gp117-schedule-article,
body.color3 #maincontent .gp117-table-scroll {
    background: #b8ddff !important;
    background-color: #b8ddff !important;
    background-image: none !important;
    color: #063462 !important;
    border-color: #063462 !important;
}

body.color3 #maincontent .gp117-schedule-card *,
body.color3 #maincontent .gp117-schedule-holiday *,
body.color3 #maincontent .gp117-schedule-person *,
body.color3 #maincontent .gp117-schedule-hero *,
body.color3 #maincontent .gp117-schedule-article * {
    color: #063462 !important;
}

/* Полное описание подразделения. */
#maincontent .p117-v11-dept-extra {
    display: block !important;
    margin-top: 7px !important;
    font-size: .88em !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
}

#maincontent .p117-v11-dept-extra strong {
    display: block !important;
    margin-bottom: 2px !important;
    font-size: 1em !important;
}

/* Телефон / средний и крупный шрифт — одна карточка в строку. */
@media (max-width: 900px) {
    #maincontent .gp117-schedule-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
