.atc-calendar {
    color: #20242a;
    font-size: 14px;
    line-height: 1.5;
}

.atc-section {
    margin: 0 0 32px;
}

.atc-calendar-nav {
    align-items: center;
    border-bottom: 2px solid #1f6f78;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 0 0 16px;
    padding-bottom: 8px;
}

.atc-calendar-nav__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.atc-section__header {
    align-items: center;
    border-bottom: 2px solid #1f6f78;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.atc-section__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.atc-section__month {
    color: #52606d;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.atc-section__nav {
    align-items: center;
    display: flex;
    gap: 10px;
}

.atc-section__nav-link {
    background: #f4f7f8;
    border: 1px solid #cfd8dc;
    color: #175a63;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 10px;
    text-decoration: none;
    white-space: nowrap;
}

.atc-section__nav-placeholder {
    display: inline-block;
    width: 48px;
}

.atc-section__nav-link:hover,
.atc-section__nav-link:focus {
    background: #e8f1f2;
    text-decoration: underline;
}

.atc-table-wrap {
    overflow-x: auto;
    padding-bottom: 4px;
}

.atc-grid {
    --atc-title-width: 220px;
    --atc-day-width: 36px;
    border-left: 1px solid #d8dee4;
    border-top: 1px solid #d8dee4;
    display: grid;
    grid-template-columns: var(--atc-title-width) repeat(var(--atc-days), var(--atc-day-width));
    min-width: calc(var(--atc-title-width) + (var(--atc-days) * var(--atc-day-width)));
}

.atc-cell {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #d8dee4;
    border-right: 1px solid #d8dee4;
    display: flex;
    min-height: 42px;
    padding: 6px;
}

.atc-cell--corner,
.atc-day {
    background: #f4f7f8;
    font-weight: 700;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 2;
}

.atc-cell--corner,
.atc-post-title {
    left: 0;
    position: sticky;
    z-index: 3;
}

.atc-post-title {
    background: #fff;
    font-weight: 700;
}

.atc-post-title a {
    color: #175a63;
    text-decoration: none;
}

.atc-post-title a:hover,
.atc-post-title a:focus {
    text-decoration: underline;
}

.atc-day {
    flex-direction: column;
    gap: 1px;
    min-height: 48px;
    padding: 4px;
}

.atc-day__num {
    font-size: 14px;
}

.atc-day__week {
    color: #6b7280;
    font-size: 11px;
}

.atc-day.is-sunday .atc-day__num,
.atc-day.is-sunday .atc-day__week {
    color: #c24135;
}

.atc-day.is-saturday .atc-day__num,
.atc-day.is-saturday .atc-day__week {
    color: #2764b7;
}

.atc-slot {
    justify-content: center;
    padding: 0;
}

.atc-slot__link {
    align-items: center;
    background: #1f6f78;
    border-radius: 0;
    display: inline-flex;
    height: 16px;
    justify-content: center;
    transition: background-color 140ms ease, transform 140ms ease;
    width: 100%;
}

.atc-slot__link:hover,
.atc-slot__link:focus {
    background: #d15d32;
    transform: scaleY(1.18);
}

.atc-slot__link.is-low-attendee {
    background: #7c2432;
}

.atc-slot__mark {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 0;
    display: block;
    height: 3px;
    width: 70%;
}

.atc-slot__gap {
    background: #d8dde2;
    display: block;
    height: 12px;
    width: 100%;
}

.atc-empty,
.atc-error,
.atc-empty-row {
    background: #fff8e5;
    color: #6f4d00;
    padding: 12px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

@media (max-width: 640px) {
    .atc-calendar-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .atc-section__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .atc-section__nav {
        flex-wrap: wrap;
    }

    .atc-grid {
        --atc-title-width: 156px;
        --atc-day-width: 34px;
    }

    .atc-section__title {
        font-size: 18px;
    }
}
