.ccal-section {
    margin-top: 24px;
    color: #0f172a;
}

.ccal-heading,
.ccal-today,
.ccal-calendar-card,
.ccal-detail,
.ccal-notes {
    border: 1px solid #dbe3e8;
    background: #fff;
}

.ccal-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
}

.ccal-heading > div {
    min-width: 0;
}

.ccal-eyebrow {
    color: #047857;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.ccal-heading h2 {
    margin-top: 6px;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    line-height: 1.35;
}

.ccal-heading p:not(.ccal-eyebrow) {
    max-width: 760px;
    margin-top: 8px;
    color: #475569;
    font-size: .92rem;
    line-height: 1.75;
}

.ccal-heading > a {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    border: 1px solid #047857;
    padding: 10px 16px;
    color: #047857;
    font-size: .84rem;
    font-weight: 900;
}

.ccal-heading > a:focus-visible,
.ccal-section button:focus-visible,
.ccal-detail a:focus-visible,
.ccal-notes a:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 3px;
}

.ccal-today {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
    padding: 20px 24px;
    border-left: 6px solid var(--ccal-status-color, #047857);
}

.ccal-today__symbol {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--ccal-status-color, #047857);
    font-size: 2.7rem;
    font-weight: 900;
    line-height: 1;
}

.ccal-today__date {
    color: #475569;
    font-size: .86rem;
    font-weight: 800;
}

.ccal-today__message {
    margin-top: 2px;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-weight: 900;
    line-height: 1.35;
}

.ccal-today__hours {
    color: #334155;
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.7;
    text-align: right;
}

.ccal-calendar-card {
    margin-top: 12px;
}

.ccal-toolbar {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 150px;
    align-items: center;
    border-bottom: 1px solid #dbe3e8;
}

.ccal-toolbar h3 {
    padding: 18px 10px;
    font-size: 1.35rem;
    font-weight: 900;
    text-align: center;
}

.ccal-nav-button,
.ccal-today-button {
    min-height: 48px;
    border: 0;
    background: #fff;
    color: #0f5132;
    font-size: .88rem;
    font-weight: 900;
    cursor: pointer;
}

.ccal-nav-button {
    height: 100%;
}

.ccal-nav-button:first-child {
    border-right: 1px solid #dbe3e8;
}

.ccal-nav-button:last-child {
    border-left: 1px solid #dbe3e8;
}

.ccal-nav-button:hover,
.ccal-today-button:hover {
    background: #ecfdf5;
}

.ccal-sub-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    border-bottom: 1px solid #dbe3e8;
    background: #f8fafc;
}

.ccal-today-button {
    border: 1px solid #047857;
    padding: 8px 14px;
    background: #fff;
}

.ccal-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 16px;
    color: #475569;
    font-size: .78rem;
    font-weight: 800;
}

.ccal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ccal-legend b {
    font-size: 1.15rem;
}

.ccal-legend .is-open { color: #047857; }
.ccal-legend .is-closed { color: #b42318; }
.ccal-legend .is-pending { color: #a16207; }

.ccal-weekdays,
.ccal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ccal-weekdays span {
    padding: 10px 4px;
    border-right: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: .78rem;
    font-weight: 900;
    text-align: center;
}

.ccal-weekdays span:first-child { color: #b42318; }
.ccal-weekdays span:last-child { color: #1d4ed8; border-right: 0; }

.ccal-day {
    position: relative;
    min-width: 0;
    min-height: 94px;
    border: 0;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    background: #fff;
    padding: 8px;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
}

.ccal-day:nth-child(7n) {
    border-right: 0;
}

.ccal-day:hover {
    background: #f8fafc;
}

.ccal-day.is-other-month {
    background: #f8fafc;
    color: #94a3b8;
}

.ccal-day.is-today {
    z-index: 1;
    box-shadow: inset 0 0 0 3px #0f766e;
    background: #f0fdfa;
}

.ccal-day.is-selected {
    box-shadow: inset 0 0 0 3px #f59e0b;
}

.ccal-day__top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 3px;
}

.ccal-day__number {
    font-size: .85rem;
    font-weight: 900;
}

.ccal-day__today {
    background: #0f766e;
    padding: 2px 4px;
    color: #fff;
    font-size: .58rem;
    font-weight: 900;
}

.ccal-day__status {
    display: block;
    margin-top: 8px;
    color: var(--ccal-day-color);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.ccal-day__label {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: .66rem;
    font-weight: 800;
    text-align: center;
}

.ccal-detail {
    margin-top: 12px;
    padding: 20px 24px;
    border-left: 6px solid var(--ccal-detail-color, #047857);
}

.ccal-detail__date {
    color: #475569;
    font-size: .84rem;
    font-weight: 800;
}

.ccal-detail__status {
    margin-top: 5px;
    color: var(--ccal-detail-color, #047857);
    font-size: 1.25rem;
    font-weight: 900;
}

.ccal-detail__reason,
.ccal-detail__hours {
    margin-top: 8px;
    color: #334155;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.7;
}

.ccal-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.ccal-notes > div {
    min-width: 0;
    padding: 18px 20px;
}

.ccal-notes > div + div {
    border-left: 1px solid #dbe3e8;
}

.ccal-notes h3 {
    font-size: .95rem;
    font-weight: 900;
}

.ccal-notes p {
    margin-top: 7px;
    color: #475569;
    font-size: .82rem;
    line-height: 1.7;
}

.ccal-notes a {
    color: #047857;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 759px) {
    .ccal-section {
        margin-top: 16px;
    }

    .ccal-heading {
        display: grid;
        gap: 14px;
        padding: 16px;
    }

    .ccal-heading h2 {
        font-size: 1.35rem;
    }

    .ccal-heading > a {
        width: 100%;
        justify-content: center;
    }

    .ccal-today {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
        padding: 14px;
    }

    .ccal-today__symbol {
        width: 46px;
        height: 46px;
        font-size: 2.2rem;
    }

    .ccal-today__message {
        font-size: 1.08rem;
    }

    .ccal-today__hours {
        grid-column: 1 / -1;
        padding-top: 10px;
        border-top: 1px solid #dbe3e8;
        text-align: left;
    }

    .ccal-toolbar {
        grid-template-columns: 54px minmax(0, 1fr) 54px;
    }

    .ccal-toolbar h3 {
        padding: 14px 4px;
        font-size: 1.05rem;
    }

    .ccal-nav-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .ccal-sub-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
    }

    .ccal-legend {
        justify-content: flex-start;
    }

    .ccal-weekdays span {
        padding: 7px 2px;
        font-size: .68rem;
    }

    .ccal-day {
        min-height: 65px;
        padding: 4px 3px;
    }

    .ccal-day__number {
        font-size: .68rem;
    }

    .ccal-day__today {
        font-size: .48rem;
    }

    .ccal-day__status {
        margin-top: 5px;
        font-size: 1.45rem;
    }

    .ccal-day__label {
        display: none;
    }

    .ccal-detail {
        padding: 15px 14px;
    }

    .ccal-notes {
        grid-template-columns: 1fr;
    }

    .ccal-notes > div + div {
        border-top: 1px solid #dbe3e8;
        border-left: 0;
    }
}
