/* LESSON phone layout (2026-11-13). Loaded on every page by header.php.
   Applies to narrow screens and touch screens; computers are not affected. */
@media (max-width: 760px), (pointer: coarse) {
    /* body grows to the widest table, so the header (logo, title, Home) spans the whole page
       and stays centred when zoomed out, instead of staying on the left */
    body { font-size: 16px; margin: 6px; min-width: max-content; }
    td.logo, td.home { width: auto !important; }
    td.logo img { width: 130px; height: auto; }
    td.title { font-size: 22px; }

    /* Data tables: readable text; a wide table makes the page wider, so pinch-zoom
       out shows the whole table (no inner scroll box, which blocked zooming out) */
    table[border='1'] { margin: 10px auto !important; font-size: 15px; }
    table[border='1'] td, table[border='1'] th { padding: 6px 5px; }
    /* keep row buttons (C V T A S H E, P C) and sort buttons (A D) side by side */
    /* each entry stays on one line (names, guardians, students in a cell); zoom out to see wide tables */
    table[border='1'] td, table[border='1'] th { white-space: nowrap; }
    span.small a.button { padding: 4px 7px; margin: 1px; }
    .small_text, span.small_text table { font-size: 15px; }

    /* Buttons and form fields easier to tap */
    a.button { display: inline-block; margin: 3px 2px; padding: 6px 10px; font-size: 16px; line-height: 1.2; }
    .button a, input[type=submit], input[type=button], button, select {
        font-size: 16px; padding: 6px 10px;
    }
    input[type=text], input[type=password], input[type=date], input[type=number], textarea {
        font-size: 16px; padding: 5px;
    }
}
