/* ===== 15. Calendar: animation schedule ===== */
.hm-cal { --_hl: var(--hm-c-accent-2); --_on-hl: var(--hm-c-on-accent); }
.hm-cal__head { max-width: 940px; }
.hm-cal__head .hm-lead { max-width: none; font-size: 13.5px; }

.hm-cal__layout {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
    max-width: 940px;
    margin-inline: auto;
}
.hm-cal__side { min-width: 0; }

/* Month select (native select styled as a pill) */
.hm-cal__month { position: relative; display: inline-flex; }
.hm-cal__month::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -5px;
    border: solid var(--_on-hl);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    pointer-events: none;
}
.hm-cal__select {
    appearance: none;
    -webkit-appearance: none;
    height: 34px;
    padding: 0 38px 0 16px;
    border: 0;
    border-radius: var(--hm-radius-btn);
    background: var(--_hl);
    color: var(--_on-hl);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.hm-cal__select option { color: var(--hm-c-text); background: var(--hm-c-bg); }

/* Selected day */
.hm-cal__card {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 18px;
    margin: 32px 0 14px;
    padding: 12px 20px;
    border-radius: calc(var(--hm-radius-card) / 2);
    background: var(--hm-c-alt);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .1), 0 1px 0 rgba(255, 255, 255, .8);
}
.hm-cal__card-num { font-size: 30px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hm-cal__card-text { display: grid; }
.hm-cal__card-month { font-size: 22px; font-weight: 500; line-height: 1.2; }
.hm-cal__card-week { display: none; }

/* Grid */
.hm-cal__weekdays,
.hm-cal__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}
.hm-cal__weekdays { margin-bottom: 6px; }
.hm-cal__weekdays span { font-size: 10.5px; font-weight: 500; text-align: center; text-transform: uppercase; color: var(--hm-c-muted); }
.hm-cal__day {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: var(--hm-radius-field);
    background: var(--hm-c-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .16);
    font-size: 14px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;      /* never wrap two-digit days */
    letter-spacing: 0;
    cursor: pointer;
    transition: background-color .2s, color .2s, box-shadow .2s;
}
.hm-cal__day:hover { box-shadow: 0 0 0 1px var(--_hl), 0 2px 4px rgba(0, 0, 0, .12); }
.hm-cal__day[aria-pressed="true"] { background: var(--_hl); color: var(--_on-hl); box-shadow: 0 2px 6px rgba(0, 0, 0, .22); }
.hm-cal__day.is-off { color: var(--hm-c-muted); background: transparent; box-shadow: inset 0 0 0 1px var(--hm-c-line); }
.hm-cal__day.is-today { font-weight: 700; }
.hm-cal__day.is-special::after,
.hm-cal__legend-dot {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--_hl);
}
.hm-cal__day.is-special::after { position: absolute; left: 50%; bottom: 4px; margin-left: -2.5px; }
.hm-cal__day.is-special[aria-pressed="true"]::after { background: var(--_on-hl); }
.hm-cal__legend { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 12px; color: var(--hm-c-muted); }

/* Audience tabs */
.hm-cal__main { min-width: 0; }
.hm-cal__tabs { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 36px; }
.hm-cal__tab {
    min-height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--hm-radius-btn);
    background: var(--hm-c-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.hm-cal__tab:hover { color: var(--_hl); }
.hm-cal__tab[aria-selected="true"] { background: var(--_hl); color: var(--_on-hl); }

/* Schedule table */
.hm-cal__table { width: 100%; border-collapse: collapse; }
.hm-cal__table th {
    padding: 0 12px 8px 0;
    color: var(--_hl);
    font-size: 17px;
    font-weight: 700;
    text-align: left;
}
.hm-cal__th-time { width: 100px; }
.hm-cal__table td { padding: 5px 12px 3px 0; border-bottom: 1px solid color-mix(in srgb, var(--hm-c-text) 45%, transparent); vertical-align: top; }
.hm-cal__time { font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm-cal__event { font-size: 12.5px; }
.hm-cal__none { padding-block: 16px !important; font-size: 13.5px; color: var(--hm-c-muted); }

@media (max-width: 767px) {
    .hm-cal__layout { grid-template-columns: 1fr; gap: 40px; }
    .hm-cal__side { width: 100%; max-width: 420px; margin-inline: auto; }
    .hm-cal__month, .hm-cal__select { width: 100%; }
    .hm-cal__tabs { gap: 10px; margin-bottom: 24px; }
    .hm-cal__tab { flex: 1 1 0; padding: 0 10px; }
    .hm-cal__th-time { width: 88px; }
    .hm-cal__time { font-size: 12.5px; }
}
