.teacher-support {
    margin: 14px 0 20px;
    color: #405865;
    font-size: .9375rem;
    line-height: 1.65;
}

.teacher-support[hidden] {
    display: none !important;
}

.teacher-support__details {
    border: 1px solid #c8dfe5;
    border-left: 4px solid #3c7b8b;
    border-radius: 12px;
    background: #eef7fa;
}

.teacher-support__summary {
    padding: 14px 18px;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.teacher-support__summary::marker {
    color: #66828e;
}

.teacher-support__summary strong {
    color: #214f5d;
    font-size: 1rem;
    font-weight: 700;
}

.teacher-support__icon {
    margin-right: 5px;
}

.teacher-support__body {
    padding: 0 18px 16px;
}

.teacher-support__body p {
    margin: 0 0 10px;
    font-size: inherit;
    line-height: inherit;
}

.teacher-support__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.teacher-support__actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid #bbd3dc;
    border-radius: 8px;
    padding: 7px 12px;
    background: #fff;
    color: #285d6c;
    font-weight: 600;
    text-decoration: none;
}

.teacher-support__actions a:hover {
    background: #e2f0f5;
    border-color: #3c7b8b;
}

.teacher-support__dismiss {
    margin-left: auto;
    border: 0;
    padding: 4px 0;
    background: transparent;
    color: #526b77;
    font: inherit;
    cursor: pointer;
}

.teacher-support__dismiss:hover {
    text-decoration: underline;
}

.teacher-support :is(summary, a, button):focus-visible {
    outline: 2px solid #285d6c;
    outline-offset: 4px;
    border-radius: 3px;
}

.teacher-support-dialog {
    box-sizing: border-box;
    width: min(460px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    border: 1px solid #c8dfe5;
    border-top: 5px solid #3c7b8b;
    border-radius: 20px;
    padding: 30px;
    background: #fff;
    color: #405865;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.65;
    box-shadow: 0 24px 80px #12334040;
    overflow-y: auto;
}

.teacher-support-dialog::backdrop {
    background: #102c3b80;
}

.teacher-support-dialog__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #526b77;
    font-size: 1.75rem;
    cursor: pointer;
}

.teacher-support-dialog__icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #eef7fa;
    font-size: 1.6rem;
}

.teacher-support-dialog__eyebrow {
    margin: 16px 0 4px;
    color: #3c7b8b;
    font-size: .875rem;
    font-weight: 600;
}

.teacher-support-dialog h2 {
    margin: 0 0 14px;
    color: #214f5d;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.teacher-support-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.teacher-support-dialog__actions a {
    display: flex;
    flex: 1 1 150px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    border: 1px solid #3c7b8b;
    border-radius: 10px;
    padding: 10px 14px;
    background: #fff;
    color: #285d6c;
    font-weight: 600;
    text-decoration: none;
}

.teacher-support-dialog__actions a.teacher-support-dialog__primary {
    background: #285d6c;
    color: #fff;
}

.teacher-support-dialog__actions a:hover {
    filter: brightness(.95);
}

.teacher-support-dialog__later {
    display: block;
    margin: 16px auto 8px;
    min-height: 42px;
    border: 0;
    padding: 6px 18px;
    background: transparent;
    color: #526b77;
    font: inherit;
    cursor: pointer;
}

.teacher-support-dialog__note {
    margin: 0;
    text-align: center;
    color: #526b77;
    font-size: .8125rem;
}

.teacher-support-dialog :is(a, button):focus-visible {
    outline: 2px solid #285d6c;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .teacher-support__hint {
        display: block;
        margin-top: 3px;
    }

    .teacher-support__dismiss {
        margin-left: 0;
    }

    .teacher-support-dialog {
        padding: 24px;
    }
}
