.abtr-calendar,
.abtr-training,
.abtr-calendar *,
.abtr-training * {
    box-sizing: border-box;
}

.abtr-calendar,
.abtr-training {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    color: #20282d;
}

.abtr-calendar__header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.abtr-calendar__header h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0;
}

.abtr-icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 4px;
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
}

.abtr-icon-button:hover,
.abtr-icon-button:focus {
    color: #fff;
    background: #135e96;
}

.abtr-calendar__back {
    margin: 0 0 14px;
}

.abtr-calendar__back a {
    font-weight: 700;
}

.abtr-calendar-search {
    margin: 0 0 24px;
    padding: 14px;
    background: #f1f4f4;
    border: 1px solid #c9d0d3;
    border-radius: 8px;
}

.abtr-calendar-search > label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.abtr-calendar-search__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: stretch;
}

.abtr-calendar-search input[type="search"] {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 11px;
    color: #20282d;
    background: #fff;
    border: 1px solid #77858b;
    border-radius: 4px;
    font: inherit;
}

.abtr-calendar-search input[type="search"]:focus {
    border-color: #2271b1;
    outline: 2px solid rgba(34, 113, 177, 0.25);
    outline-offset: 1px;
}

.abtr-calendar-search__clear {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    font-weight: 700;
}

.abtr-year__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.abtr-year__month {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 220px;
    padding: 14px;
    color: #20282d;
    background: #fff;
    border: 1px solid #c9d0d3;
    border-top: 4px solid #2271b1;
    border-radius: 8px;
    text-decoration: none;
}

.abtr-year__month:hover,
.abtr-year__month:focus {
    color: #135e96;
    background: #f0f6fc;
    border-color: #2271b1;
}

.abtr-year__month-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #d7dcde;
}

.abtr-year__month-heading strong {
    font-size: 1.12rem;
    line-height: 1.25;
}

.abtr-year__count {
    color: #546269;
    font-size: 0.78rem;
    font-weight: 700;
}

.abtr-year__previews {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.abtr-year__previews li {
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px solid #e6e9ea;
    line-height: 1.3;
}

.abtr-year__previews time,
.abtr-year__previews span {
    display: block;
}

.abtr-year__previews time {
    color: #2271b1;
    font-size: 0.75rem;
    font-weight: 700;
}

.abtr-year__previews span {
    margin-top: 2px;
    overflow-wrap: break-word;
}

.abtr-year__more,
.abtr-year__empty {
    display: block;
    margin-top: auto;
    padding-top: 10px;
    color: #5d696f;
    font-size: 0.82rem;
    font-weight: 700;
}

.abtr-search-results {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #c9d0d3;
}

.abtr-search-results h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    line-height: 1.3;
    letter-spacing: 0;
}

.abtr-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 1px solid #c9d0d3;
    border-left: 1px solid #c9d0d3;
}

.abtr-calendar__weekday {
    padding: 9px 6px;
    background: #f1f4f4;
    border-right: 1px solid #c9d0d3;
    border-bottom: 1px solid #c9d0d3;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.abtr-calendar__day {
    position: relative;
    min-width: 0;
    min-height: 130px;
    padding: 30px 6px 7px;
    background: #fff;
    border-right: 1px solid #c9d0d3;
    border-bottom: 1px solid #c9d0d3;
}

.abtr-calendar__day.is-outside {
    background: #f7f8f8;
    color: #7b8388;
}

.abtr-calendar__day.is-today {
    box-shadow: inset 0 0 0 2px #2271b1;
}

.abtr-calendar__number {
    position: absolute;
    top: 5px;
    right: 7px;
    font-size: 0.82rem;
    font-weight: 700;
}

.abtr-calendar__event {
    display: block;
    min-width: 0;
    margin: 0 0 5px;
    padding: 6px;
    color: #135e96;
    background: #f0f6fc;
    border-left: 3px solid #2271b1;
    border-radius: 3px;
    font-size: 0.75rem;
    line-height: 1.25;
    text-decoration: none;
    overflow-wrap: break-word;
}

.abtr-calendar__event span,
.abtr-calendar__event strong {
    display: block;
}

.abtr-calendar__event:hover,
.abtr-calendar__event:focus {
    color: #0a4b78;
    background: #dcebf7;
}

.abtr-calendar__list {
    display: none;
}

.abtr-event-card {
    padding: 15px 0;
    border-bottom: 1px solid #d7dcde;
}

.abtr-event-card h3 {
    margin: 4px 0;
    font-size: 1.08rem;
    line-height: 1.35;
    letter-spacing: 0;
}

.abtr-event-card time {
    color: #2271b1;
    font-weight: 700;
}

.abtr-event-card p {
    margin: 4px 0 0;
}

.abtr-training__media {
    width: 100%;
    max-height: 340px;
    margin: 0 0 28px;
    overflow: hidden;
}

.abtr-training__image {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.abtr-training__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    gap: 40px;
    align-items: start;
}

.abtr-training__summary {
    margin-top: 0;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.55;
}

.abtr-training__description > :first-child {
    margin-top: 0;
}

.abtr-training__facts {
    padding-left: 22px;
    border-left: 4px solid #2271b1;
}

.abtr-training__facts dl {
    margin: 0;
}

.abtr-training__facts dt {
    margin-top: 16px;
    color: #46545a;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.abtr-training__facts dt:first-child {
    margin-top: 0;
}

.abtr-training__facts dd {
    margin: 3px 0 0;
    overflow-wrap: break-word;
}

.abtr-registration {
    margin-top: 48px;
    padding-top: 30px;
    border-top: 1px solid #c9d0d3;
}

.abtr-registration h2 {
    margin-top: 0;
    font-size: 1.55rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.abtr-form {
    max-width: 820px;
}

.abtr-form fieldset {
    min-width: 0;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
}

.abtr-form legend {
    width: 100%;
    margin-bottom: 14px;
    padding-bottom: 7px;
    border-bottom: 1px solid #d7dcde;
    font-size: 1.08rem;
    font-weight: 700;
}

.abtr-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.abtr-form label,
.abtr-form__choices > span {
    display: block;
    font-weight: 600;
}

.abtr-form input[type="text"],
.abtr-form input[type="email"],
.abtr-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    padding: 10px 11px;
    color: #20282d;
    background: #fff;
    border: 1px solid #77858b;
    border-radius: 4px;
    font: inherit;
}

.abtr-form input:focus,
.abtr-form textarea:focus {
    border-color: #2271b1;
    outline: 2px solid rgba(34, 113, 177, 0.25);
    outline-offset: 1px;
}

.abtr-form__full {
    grid-column: 1 / -1;
}

.abtr-form__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    margin-top: 16px;
}

.abtr-form__choices > span {
    flex-basis: 100%;
}

.abtr-form__choices label {
    display: flex;
    gap: 7px;
    align-items: center;
    font-weight: 400;
}

.abtr-form__choices .abtr-form__other {
    display: block;
    flex: 1 1 260px;
    font-weight: 600;
}

.abtr-form__consent {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    margin: 0 0 20px;
}

.abtr-button {
    min-height: 44px;
    padding: 10px 18px;
    color: #fff;
    background: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 4px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.abtr-button:hover,
.abtr-button:focus {
    background: #135e96;
}

.abtr-button--secondary {
    color: #2271b1;
    background: #fff;
}

.abtr-button--secondary:hover,
.abtr-button--secondary:focus {
    color: #fff;
}

.abtr-participant {
    margin: 0 0 16px;
    padding: 14px 16px;
    background: #f7fafa;
    border: 1px solid #cdd9db;
    border-radius: 8px;
}

.abtr-participant__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
}

.abtr-participant__title {
    margin: 0;
    font-size: 1.05em;
}

.abtr-participant__remove {
    padding: 4px 10px;
    color: #b32d2e;
    background: none;
    border: 1px solid #b32d2e;
    border-radius: 4px;
    font: inherit;
    cursor: pointer;
}

.abtr-participant__remove:hover,
.abtr-participant__remove:focus {
    color: #fff;
    background: #b32d2e;
}

.abtr-participants__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.abtr-button--danger {
    background: #b32d2e;
    border-color: #b32d2e;
}

.abtr-button--danger:hover,
.abtr-button--danger:focus {
    background: #8f2223;
}

.abtr-cancel-box {
    margin: 0 0 22px;
    padding: 16px;
    color: #7a4b00;
    background: #fff7e6;
    border: 1px solid #2271b1;
    border-radius: 8px;
}

.abtr-cancel-box h2 {
    margin-top: 0;
}

.abtr-cancel-box form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.abtr-cancel-box .abtr-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.abtr-training__ics {
    margin: 14px 0 0;
}

.abtr-training__ics .abtr-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.abtr-notice,
.abtr-confirmation-text {
    margin: 0 0 22px;
    padding: 12px 14px;
    background: #f1f4f4;
    border-left: 4px solid #68777d;
}

.abtr-notice--success,
.abtr-confirmation-text {
    color: #0a6b22;
    background: #edfaef;
    border-left-color: #0a6b22;
}

.abtr-notice--waitlist {
    color: #7a4b00;
    background: #fff7e6;
    border-left-color: #7a4b00;
}

.abtr-notice--error {
    color: #b32d2e;
    background: #fcf0f1;
    border-left-color: #b32d2e;
}

.abtr-confirmation-text > :first-child {
    margin-top: 0;
}

.abtr-confirmation-text > :last-child {
    margin-bottom: 0;
}

.abtr-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 760px) {
    .abtr-year__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .abtr-calendar__grid {
        display: none;
    }

    .abtr-calendar__list {
        display: block;
    }

    .abtr-training__layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .abtr-training__facts {
        padding: 18px 0 0;
        border-top: 4px solid #2271b1;
        border-left: 0;
    }

    .abtr-training__media,
    .abtr-training__image {
        height: auto;
        max-height: none;
    }
}

@media (max-width: 520px) {
    .abtr-calendar__header h2 {
        font-size: 1.35rem;
    }

    .abtr-calendar-search__controls {
        grid-template-columns: 1fr;
    }

    .abtr-calendar-search__clear {
        justify-content: center;
    }

    .abtr-year__grid {
        grid-template-columns: 1fr;
    }

    .abtr-year__month {
        min-height: 0;
    }

    .abtr-form__grid {
        grid-template-columns: 1fr;
    }

    .abtr-form__full {
        grid-column: auto;
    }
}
