/*
 * ioann-karpovka CalendarToday card + ServiceList rows (task 9).
 * Markup: components/calendar-today.blade.php, components/service-list.blade.php.
 * Both share one layout at every width, so no media query is needed. If one is added:
 * mobile = `not all and (min-width: 768px)`; never a max-width query (task 36).
 */

/* ---------- CalendarToday ---------- */
.ik-cal-today {
    background: var(--iskm-navy);
    color: var(--iskm-cream);
    border-radius: var(--radius-panel);
    overflow: hidden;
}
.ik-cal-today__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), auto));
    gap: 40px;
    padding: clamp(18px, 2.4vw, 28px) clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px);
}
.ik-cal-today__date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}
.ik-cal-today__num {
    margin-top: -12px;
    font: 600 var(--fs-numeral)/1 var(--font-title);
    color: var(--iskm-ochre);
}
.ik-cal-today__month { font: 500 15px/1.3 var(--font-body); }
.ik-cal-today__old { font: 400 13px/1.4 var(--font-body); color: var(--iskm-navy-200); }
.ik-cal-today__icon {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 150px;
    max-width: 100%;
    margin: 16px 0 0;
}
.ik-cal-today__arch.ik-arch {
    width: 150px;
    max-width: 100%;
    --arch-inset: 6px;
    border-radius: 50% 50% 14px 14px / 27% 27% 14px 14px;
}
.ik-cal-today__arch .ik-arch__inner { border-radius: 50% 50% 9px 9px / 26% 26% 9px 9px; }
.ik-cal-today__arch .ik-arch__img { object-position: center top; }
.ik-cal-today__caption { font: italic 400 15px/1.3 var(--font-title); color: var(--iskm-ochre-200); }
.ik-cal-today__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.ik-cal-today__week { margin: 0; font: 600 30px/1.1 var(--font-title); color: var(--iskm-cream); }
.ik-cal-today__tone { margin: 0; font: italic 400 20px/1.3 var(--font-title); color: var(--iskm-ochre-200); }
.ik-cal-today__saints {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}
.ik-cal-today__saint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font: 400 15px/1.5 var(--font-body);
    overflow-wrap: anywhere;
}
.ik-cal-today__bullet { width: 14px; height: 14px; margin-top: 4px; flex-shrink: 0; }
.ik-cal-today__link { margin-top: 8px; }

/* Compact (schedule sidebar): one column, day + month + old style on one baseline row. */
.ik-cal-today--compact .ik-cal-today__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 32px; }
.ik-cal-today--compact .ik-cal-today__date { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.ik-cal-today--compact .ik-cal-today__num { margin-top: 0; font-size: 64px; line-height: .9; }
.ik-cal-today--compact .ik-cal-today__old { margin-top: 0; }
.ik-cal-today--compact .ik-cal-today__week { font-size: 24px; }

/* ---------- ServiceList ---------- */
.ik-services__title { margin: 0 0 8px; font: 600 26px/1.1 var(--font-title); color: var(--iskm-navy); }
.ik-services__list { margin: 0; padding: 0; list-style: none; }
.ik-services__row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 20px;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.ik-services__time { font: 600 30px/1 var(--font-title); color: var(--iskm-navy); }
.ik-services__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.ik-services__name { font: 500 17px/1.4 var(--font-body); color: var(--iskm-navy); overflow-wrap: anywhere; }
.ik-services__note { font: 400 var(--fs-small)/1.4 var(--font-body); color: var(--iskm-navy-400); overflow-wrap: anywhere; }
/* Rich description (schedule page, ServiceNote): the editor's lines, one per paragraph / <br>; «Подробнее» opens the
   rest in place (<x-ik-read-more class="ik-more--end">), the rows below move down. */
.ik-services__note--rich { display: flex; flex-direction: column; }
.ik-services__note--rich p,
.ik-services__note--rich ul,
.ik-services__note--rich ol { margin: 0; }
.ik-services__note--rich ul,
.ik-services__note--rich ol { padding-left: 1.2em; }
.ik-services__note--rich strong,
.ik-services__note--rich b { font-weight: 600; color: var(--iskm-navy); }
.ik-services__more { font-size: var(--fs-small); }
.ik-services__more > .ik-more__close { margin-top: 6px; }
.ik-services--inverse .ik-services__note--rich strong,
.ik-services--inverse .ik-services__note--rich b { color: var(--iskm-cream); }
/* Empty row: the «—» keeps the normal time colour (DS ServiceList, task 57). */

.ik-services--inverse .ik-services__title,
.ik-services--inverse .ik-services__name { color: var(--iskm-cream); }
.ik-services--inverse .ik-services__time { color: var(--iskm-ochre); }
.ik-services--inverse .ik-services__note { color: var(--iskm-navy-200); }
.ik-services--inverse .ik-services__row { border-bottom-color: var(--line-on-inverse); }
