
/* Only the daily schedule component; overrides theme article.page rules. */

article.page .timka-day,
.timka-day {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: left;
    font-family: "AvenirNextCyr-Regular", sans-serif;
}

article.page .timka-day h2 {
    text-align: center;
    margin: 0 0 14px;
    line-height: 1.3;
}

article.page .timka-day .timka-day__intro {
    text-align: center;
    margin: 0 0 24px;
    font-size: 18px;
    line-height: 1.55;
}

.timka-day__list {
    display: grid;
    gap: 10px;
}

.timka-day__item {
    border: 1px solid #dce7d6;
    border-left: 4px solid #6a9953;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

article.page .timka-day__item > summary,
.timka-day__item > summary {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 16px;
    padding: 17px 19px;
    min-height: 68px;
    box-sizing: border-box;
    cursor: pointer;
    list-style: none;
    text-align: left !important;
    line-height: 1.4 !important;
}

.timka-day__item > summary::-webkit-details-marker {
    display: none;
}

.timka-day__item > summary::marker {
    content: "";
}

.timka-day__item .timka-day__time,
.timka-day__item .timka-day__name {
    display: block !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
    align-self: center !important;
    text-align: left !important;
    transform: none !important;
}

.timka-day__time {
    flex: 0 0 130px;
    white-space: nowrap;
    color: #bc714f;
    font-weight: 600;
}

.timka-day__name {
    flex: 1 1 auto;
    min-width: 0;
    color: #456b3c;
    font-weight: 600;
}

/* TIMKA — pastel green circle with CSS arrow */

article.page .timka-day__item > summary .timka-day__arrow,
.timka-day__item > summary .timka-day__arrow {
    display: block !important;
    position: relative !important;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #DCEBCF !important;
    box-sizing: border-box;
    transform: rotate(0deg);
    transition: transform 0.25s ease;
}

article.page .timka-day__arrow::before,
.timka-day__arrow::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    width: 9px;
    height: 9px;
    top: 8px;
    left: 10px;
    border: 0;
    border-right: 2px solid #456B3C;
    border-bottom: 2px solid #456B3C;
    background: transparent !important;
    border-radius: 0;
    transform: rotate(45deg);
    box-sizing: border-box;
}

article.page .timka-day__arrow::after,
.timka-day__arrow::after {
    content: none !important;
    display: none !important;
}

article.page .timka-day__item[open] > summary .timka-day__arrow,
.timka-day__item[open] > summary .timka-day__arrow {
    transform: rotate(180deg);
}

/* Open item */

.timka-day__item[open] {
    background: #f7faf4;
}

/* Content */

.timka-day__content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 4px 20px 20px;
    text-align: left;
}

.timka-day__content img {
    width: 160px;
    height: auto;
    max-width: 40%;
    flex-shrink: 0;
    object-fit: contain;
}

article.page .timka-day__content p,
.timka-day__content p {
    flex: 1;
    margin: 0 !important;
    font-size: 18px;
    line-height: 1.6;
    text-align: left !important;
}

/* Mobile */

@media (max-width: 600px) {

    article.page .timka-day__item > summary,
    .timka-day__item > summary {
        gap: 10px;
        padding: 15px 12px;
        min-height: 66px;
    }

    .timka-day__item .timka-day__time,
    .timka-day__item .timka-day__name {
        font-size: 17px !important;
    }

    .timka-day__time {
        flex-basis: 104px;
    }

    article.page .timka-day__item > summary .timka-day__arrow,
    .timka-day__item > summary .timka-day__arrow {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }

    article.page .timka-day__arrow::before,
    .timka-day__arrow::before {
        top: 7px;
        left: 9px;
    }

    .timka-day__content {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 14px 18px;
        gap: 10px;
    }

    .timka-day__content img {
        max-width: 100%;
        width: 170px;
        align-self: center;
    }

    article.page .timka-day__content p,
    .timka-day__content p,
    article.page .timka-day .timka-day__intro {
        font-size: 17px;
    }
}
