/*
 * TEACHER-02 — the owner's review of the live profile pages, 2026-09-27.
 *
 * Its own file for the reason given at the top of teachers-usability.css: LiteSpeed serves each
 * stylesheet at an address derived from the source, not its contents, so an edit to an existing
 * file never reaches visitors. Loaded after teachers-usability.css, so these rules win by order.
 *
 * r2 (same day): this file was teachers-profile-review.css. It was renamed rather than edited when
 * the introduction became justified, so the change gets a new address; the next change to these
 * rules renames it again (r3) instead of adding another file.
 */

/* ---- Portrait: square, the whole picture, on white ---------------------------------------- */

/*
 * The Admin card shows the uploaded image whole. The public page showed it cropped into a 4:5 frame
 * on a tinted ground, which cut logos and turned a transparent PNG blue. Square and uncropped now,
 * on white, so the page draws what the operator saw when uploading.
 */
.gec-teacher-profile__portrait {
    width: 200px;
    height: auto;
    aspect-ratio: 1;
    background: var(--color-white);
}

.gec-teacher-profile__portrait img {
    object-fit: contain;
}

/* The directory card keeps its 4:3 frame; the picture inside it is no longer cropped either. */
.gec-teacher-card__media {
    background: var(--color-white);
}

.gec-teacher-card__media img {
    object-fit: contain;
}

@media (max-width: 640px) {
    .gec-teacher-profile__portrait {
        width: 160px;
        height: auto;
    }
}

/* ---- The facts panel button carries a teacher's name ---------------------------------------- */

/*
 * The shared button is one line tall and as wide as its text (min-width: max-content). "Đăng ký học
 * thử với Go With Spanish" is wider than the panel, so it ran out of it. Here it takes the panel's
 * width and wraps instead.
 */
.gec-teacher-profile__facts-actions .gec-btn {
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: var(--button-height-md);
    padding-block: var(--space-3);
    line-height: 1.35;
    white-space: normal;
}

/* ---- The introduction uses the whole column ----------------------------------------------- */

/*
 * Paragraphs were held to 70ch while the education list and the class cards beside them ran the
 * full column, so the introduction sat as a narrow block against the left edge.
 */
.gec-teacher-profile__section > p {
    max-width: none;
    /* The owner asked for both edges flush (27-09). The last line of each paragraph stays left. */
    text-align: justify;
    text-align-last: start;
}
