/* Student Homework only: inherit the school's preset/custom palette, not app.css defaults. */
html body :is(.student-learning, .al-student),
html body .student-learning ~ .learning-pagination {
    --primary: var(--stu-ui-primary, #1a6b3c);
    --primary-dark: var(--stu-ui-accent, #14532d);
    --primary-light: var(--stu-ui-tint, #f0fdf4);
}
html body :is(.student-learning, .al-student) a:not(.btn):not(.al-lesson-link) {
    color: var(--stu-ui-accent, #14532d);
}
html.stu-dark body :is(.student-learning, .al-student) a:not(.btn):not(.al-lesson-link) {
    color: var(--stu-ui-tint, #dcfce7);
}
html body :is(.student-learning, .al-student) .btn,
html body .student-learning ~ .learning-pagination .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 17px;
    border: 1px solid var(--stu-ui-line, #e2e8ef);
    border-radius: 10px;
    background-color: var(--stu-ui-surface, #fff);
    background-image: linear-gradient(180deg, rgba(255,255,255,.14), transparent 35%, transparent 70%, rgba(0,0,0,.07));
    color: var(--stu-ui-text, #203649);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.12), 0 3px 9px var(--stu-ui-shadow, #14263c16);
}
/* Higher specificity also beats the generic school custom-theme !important rules. */
html body :is(.student-learning, .al-student) .btn.btn-primary,
html body .al-student .btn[role="tab"][aria-selected="true"],
html body :is(.student-learning, .al-student) .btn.btn-primary:hover,
html body .al-student .btn[role="tab"][aria-selected="true"]:hover {
    background-color: var(--stu-ui-primary, #1a6b3c) !important;
    border-color: var(--stu-ui-primary, #1a6b3c) !important;
    color: var(--stu-ui-on-primary, #fff) !important;
}
html body :is(.student-learning, .al-student) .btn:not(.btn-primary):not([aria-selected="true"]):hover,
html body .student-learning ~ .learning-pagination .btn:hover {
    background-color: var(--stu-ui-surface, #fff);
    color: var(--stu-ui-text, #203649);
    border-color: var(--stu-ui-primary, #1a6b3c);
}
html body :is(.student-learning, .al-student) .btn:focus-visible,
html body .student-learning ~ .learning-pagination .btn:focus-visible {
    outline: 2px solid var(--stu-ui-primary, #1a6b3c);
    outline-offset: 3px;
}
