/**
 * Instructor dashboard (/teach/) — phone-first, WCAG 2.2 AA.
 *
 * Owned by the teach lane; admin lanes enqueue this same handle. Rules the
 * UI Contract binds:
 *   - cards, never a table, as the core interaction;
 *   - 44x44px minimum interactive targets;
 *   - visible focus indicators;
 *   - body text at >= 4.5:1 contrast (ink #1a2330 on #ffffff / #f5f7fa);
 *   - status chips always carry text — color is never the only signal;
 *   - no horizontal scroll at any width.
 */

.sst-teach {
    max-width: 44rem;
    margin: 0 auto;
    padding: 1rem;
    color: #1a2330;
    font-size: 1rem;
    line-height: 1.5;
}

.sst-teach a {
    color: #14548c; /* 6.5:1 on white */
}

.sst-teach a:focus-visible,
.sst-teach button:focus-visible,
.sst-teach input:focus-visible,
.sst-teach textarea:focus-visible {
    outline: 3px solid #14548c;
    outline-offset: 2px;
}

.sst-teach-title {
    font-size: 1.5rem;
    margin: 0.5rem 0 1rem;
}

.sst-teach-back {
    margin: 0 0 0.25rem;
}

.sst-teach-group {
    margin-bottom: 1.5rem;
}

.sst-teach-group__title {
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
    border-bottom: 2px solid #d7dee8;
    padding-bottom: 0.25rem;
}

/* ── Cards ─────────────────────────────────────────────── */

.sst-teach-card {
    background: #ffffff;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.sst-teach-card--today {
    border: 2px solid #14548c;
    box-shadow: 0 2px 8px rgba(20, 84, 140, 0.15);
}

.sst-teach-card__title {
    font-size: 1.125rem;
    margin: 0 0 0.25rem;
}

.sst-teach-card__when {
    margin: 0 0 0.25rem;
    font-weight: 600;
}

.sst-teach-card__meta {
    margin: 0 0 0.5rem;
    color: #45536a; /* 7.2:1 on white */
}

.sst-teach-card__actions {
    margin: 0.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── Buttons: 44px minimum target ──────────────────────── */

.sst-teach-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 1rem;
    border: 1px solid #14548c;
    border-radius: 8px;
    background: #ffffff;
    color: #14548c;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.sst-teach-btn--primary {
    background: #14548c;
    color: #ffffff; /* 6.5:1 */
}

.sst-teach-btn--zoom {
    border-color: #0b6e4f;
    color: #0b6e4f; /* 5.9:1 */
}

.sst-teach-btn[disabled],
.sst-teach-btn[aria-disabled="true"] {
    border-color: #8a93a3;
    color: #5b6675;
    background: #eef1f5;
    cursor: not-allowed;
}

/* ── Chips: text always, color never alone ─────────────── */

.sst-teach-chip {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #8a93a3;
    background: #eef1f5;
    color: #2c3648; /* 9:1 */
    font-size: 0.875rem;
    white-space: nowrap;
}

.sst-teach-chip--done {
    border-color: #0b6e4f;
    background: #e7f5ef;
    color: #08503a;
}

.sst-teach-chip--missing {
    border-color: #a1373c;
    background: #fbeeee;
    color: #7c2226;
}

.sst-teach-chip--review {
    border-color: #7a5a10;
    background: #fdf5e0;
    color: #5c440c;
}

/* ── Notices ───────────────────────────────────────────── */

.sst-teach-notice {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #8a93a3;
    background: #eef1f5;
    margin: 0 0 1rem;
}

.sst-teach-notice--success {
    border-color: #0b6e4f;
    background: #e7f5ef;
    color: #08503a;
}

.sst-teach-notice--error {
    border-color: #a1373c;
    background: #fbeeee;
    color: #7c2226;
}

.sst-teach-notice--info {
    border-color: #14548c;
    background: #eaf2fa;
    color: #123f66;
}

.sst-teach-muted {
    color: #5b6675;
}

/* ── Tabs + meeting switcher ───────────────────────────── */

.sst-teach-tabs ul,
.sst-teach-meetings ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0 0 1rem;
    padding: 0;
}

.sst-teach-tabs a,
.sst-teach-meetings a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0.875rem;
    border-radius: 8px 8px 0 0;
    border: 1px solid #d7dee8;
    border-bottom: none;
    text-decoration: none;
}

.sst-teach-tabs a.is-current,
.sst-teach-meetings a.is-current {
    background: #14548c;
    color: #ffffff;
    border-color: #14548c;
}

/* ── Attendance form ───────────────────────────────────── */

.sst-teach-meeting-date {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.sst-teach-banner {
    font-weight: 600;
    margin: 0 0 1rem;
}

.sst-teach-learner {
    border: 1px solid #d7dee8;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin: 0 0 0.75rem;
}

.sst-teach-learner legend {
    font-weight: 700;
    padding: 0 0.25rem;
}

.sst-teach-learner__totals {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
}

.sst-teach-learner__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sst-teach-choice {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 44px;
    padding: 0.25rem 0.75rem;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    cursor: pointer;
}

.sst-teach-choice input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
}

.sst-teach-field {
    margin: 0.5rem 0;
}

.sst-teach-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.sst-teach-field input,
.sst-teach-field textarea {
    width: 100%;
    max-width: 24rem;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #8a93a3;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* JS enhancement hides the minutes row unless Late is selected; without JS
   the labelled field simply stays visible. */
.sst-teach-minutes.is-hidden {
    display: none;
}

/* ── Roster ────────────────────────────────────────────── */

.sst-teach-student__facts {
    margin: 0.5rem 0;
}

.sst-teach-fact {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.sst-teach-fact dt {
    font-weight: 600;
    min-width: 7rem;
}

.sst-teach-fact dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.sst-teach-student__chips {
    margin: 0.25rem 0 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.sst-teach-readonly__row {
    margin: 0 0 0.5rem;
}

/* ── Wider screens: cards can breathe, never scroll sideways ── */

@media (min-width: 48rem) {
    .sst-teach {
        padding: 1.5rem;
    }
}
