/* AC4, session 2 (owner, 3 Dec 2026): session 2's computer layout styles for its half of the AC4 pages (see AC4-SPLIT.txt). Loaded on computers only (base.html). */

/* Page files (parent.css, homework.css...) load after this one, so rules that change
   their classes name both classes. */

/* On computers a page never scrolls: the title row stays, and only a list scrolls,
   inside the page (card.css makes the page's one block fill the card). */
.ac4s2-fill { display: flex; flex-direction: column; min-height: 0; }
.ac4s2-fill > * { flex-shrink: 0; }
.ac4s2-fill > .ac4s2-scroll,
.ac4s2-fill > .ac4s2-cols > .ac4s2-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cbbcaa transparent; }
.ac4s2-fill > .ac4s2-scroll { margin-bottom: 0; }
/* School news: the same space between the headings and their lists as before. */
.pa-list.ac4s2-fill > .ac4s2-scroll { display: flex; flex-direction: column; gap: 16px; }
.pa-list.ac4s2-fill > .ac4s2-scroll > * { flex-shrink: 0; }

/* Forms and lists use the width (no narrow column with empty space on the right). */
.ac4s2-wide.ac4s2-wide { max-width: none; }
/* The frame's own limit (base.html max-w-4xl), as wide_page does for the other AC pages. */
#main > div:has(> :is(.ac4s2-wide, .msg-page.ac4s2-fill)) { max-width: none; }

/* Setup checklist (setup-checklist-preview.png): each step on one line, the
   step's name, what it is, then its state on the right. */
.page-wide.ac4s2-wide.ac4s2-fill { max-width: 976px; } /* about 1120px on the screen, as in the design */
.ac4s2-steps > li { align-items: center; min-height: 46px; padding-block: 6px; }
.ac4s2-step { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); align-items: center; column-gap: 20px; }
.ac4s2-step > small { display: block; }
.ac4s2-step > .btn { grid-column: 2; justify-self: start; margin-top: 4px; }

/* Contact details: address | email on the first row; phone, office hours |
   description on the second. */
.ac4s2-contact { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr) repeat(2, minmax(0, 1fr)); grid-template-areas: "addr addr mail mail" "phone hours desc desc"; align-items: start; }
.ac4s2-contact > :nth-child(1) { grid-area: addr; }
.ac4s2-contact > :nth-child(2) { grid-area: phone; }
.ac4s2-contact > :nth-child(3) { grid-area: hours; }
.ac4s2-contact > :nth-child(4) { grid-area: mail; }
.ac4s2-contact > :nth-child(5) { grid-area: desc; }
.ac4s2-contact textarea { min-height: 0; }

/* New message, the full page: To and the person on the left; About, the message
   and Send on the right. The search results list scrolls inside itself. */
.sn-form.ac4s2-sn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 28px; row-gap: 12px; align-items: start; }
/* Left: To on row 1, the person (one part shown at a time) across rows 2-5, so it never
   pushes the right column down. Right: About, Message, the box, Cancel and Send. */
.ac4s2-sn > fieldset { grid-column: 1; grid-row: 1; }
.ac4s2-sn > .sn-part { grid-column: 1; grid-row: 2 / span 4; }
.ac4s2-sn > .sn-part.sn-about { grid-column: 2; grid-row: 1 / span 2; }
.ac4s2-sn > .sn-label { grid-column: 2; grid-row: 3; }
.ac4s2-sn > textarea { grid-column: 2; grid-row: 4; min-height: 0; }
/* Cancel and Send are on the title row on computers (staff_new.html); the ones at the
   bottom of the form are for phones. */
.ac4s2-sn > .sn-actions { display: none; }
.ac4s2-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ac4s2-top > :is(a, button) { margin: 0; }

/* Post homework, the full page: class, subject, title and what to do on the left;
   due, the file, "Tell parents" and the buttons on the right. */
.hp-form.ac4s2-hp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
.ac4s2-hp-side { display: flex; flex-direction: column; gap: 14px; }
.ac4s2-hp-side .hp-actions { flex-wrap: nowrap; }
.ac4s2-hp-side .hp-actions > * { padding-inline: 12px; white-space: nowrap; }

/* Announcements (proposed-131-announcements-wide.png): cards about 960px wide. */
.ac4s2-ann.ac4s2-ann { max-width: 960px; }

/* A parent's Messages: the list and the right column fill the page; each scrolls on its own. */
.msg-cols.ac4s2-cols { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
.ac4s2-cols > aside { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cbbcaa transparent; }
