/* The house look: the parts that every page of the portal is built from, so that the portal and a course page in
   its reader read as one product. Each part is copied from the built course site's own CSS (fde-aws web/theme; the
   pages carry it inline), not drawn by eye, and each is defined here once, with no page-specific variants. The colours
   are the custom properties in ../styles.css, which hold the course site's values in light and dark.

   1. The frame: one width and one left edge, the breadcrumb row, the rail and the main column.
   2. The title band: the navy panel with the rings.
   3. The section heading: the small number and rule, then the light serif.
   4. The day row: a day's title with its materials under it as pills.
   5. The pill: outlined for a link or a small action, filled for the current one.
   6. The card: the course's day card. A card in a grid is li.house-card (10); a region of a page drawn as a card is
      ../styles.css's .card with .house-region (15). The two draw the same box.
   7. Links: red in a sentence, ink in a row or a title.
   8. Type: the course site's sizes for text, labels, tables and fields.

   The three kinds of page (look §2), each built from the parts above and those below:
   9. The landing frame: the landing band across the frame, no rail, the landing label, the landing text.
   10. The card grids and the landing card: explicit grids of three or four, the course's door and day card.
   11. The session frame: the day's tab row, then the band across the frame, then the rail and the main column.
   12. The activity frame: the short band (2) across the frame, the rail of parts, the first paragraph, the primary
       action.
   13. The day strip: a picture of a day's periods, drawn by strip.js.
   14. The tile: a day in an overview of several weeks, with its states for a learner and for staff.

   The owner accepted the look on 22 November 2026 (LOOK-VERDICT.md): the band runs the full width of the frame on
   every page, and on a session page and an activity page it stands above the rail and the main column, never beside
   the rail (1). The short landing band is the home page's (9). The parts the accepted pages share:
   15. A region of a page as a card; the card grids by the column, a pair of cards and cards whose rows line up; an
       activity's card; a person's card; labelled rows; the row of facts; the foot of a form; a list of names with
       states and actions; a day's periods; the pager; milestones; strips side by side and the strip's key; Week 6's
       halves; an item's state; the staff's states; a row's small controls.

   docs/look/specimen.html shows every part in every state, with its markup and the section of the look's design
   (design-pages-and-look.md) that it comes from. A page builds with these parts and does not restyle them. */

/* ---- 1. The frame ---------------------------------------------------------------------------------------------- */

/* The course site's reading page is 1,280 px wide with 28 px gutters and a 270 px contents column. The portal's frame
   is the reader's: 1,240 px with 24 px gutters, a 240 px rail and 44 px between the rail and the main column. The
   portal's page and each of the capstone's (.house-frame) take it. */
.view-portal > .wrap, .wrap.house-frame { max-width: 1240px; padding: 28px 24px 96px; }

/* The row above the frame: where you are on the left, the page's actions on the right. It is as tall as a pill, so
   that the band starts at the same height whether the row holds a breadcrumb or the staff's pills. */
.house-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  min-height: 35px; margin: 0 0 22px; }
.house-bar:empty { display: none; }
.house-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; }
/* The same quiet action beside a heading or in a row (.link-btn.house-quiet: "View as learner", "Change the cohort's
   details"), a little lighter. */
.house-actions .link-btn, .link-btn.house-quiet { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.house-actions .link-btn:hover, .link-btn.house-quiet:hover { color: var(--ink); }
.link-btn.house-quiet { font-weight: 500; }
.link-btn.house-quiet:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.course-breadcrumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0;
  color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.course-breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.course-breadcrumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.course-breadcrumbs > * + *::before { content: "/"; content: "/" / ""; margin-right: 10px; color: var(--ink-3); }
.course-breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }
/* A tool's bar (the capstone's reader, a conversation, a call) keeps to one line, so that the tool below it can fill the
   window: the last crumb is shortened if it must be. */
.house-bar.is-tool { flex-wrap: nowrap; }
.house-bar.is-tool .course-breadcrumbs { flex-wrap: nowrap; min-width: 0; white-space: nowrap; }
.house-bar.is-tool .course-breadcrumbs > :last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* The way back to the page that a page belongs to ("Back to all weeks", "Back to Quizzes"): a quiet link, as the
   breadcrumb's links are. */
.house-back { margin: 0 0 16px; }
.house-bar > .house-back { margin: 0; }
.house-back .link-btn { margin: 0; padding: 0; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.house-back .link-btn:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.house-back .link-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* The rail and the main column. The rail's column is kept on every page, so the band and the text start at the same
   place on every page; a page with nothing for the rail leaves it empty. */
.house-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 44px; align-items: start; }
.house-layout > .house-rail { grid-column: 1; }
.house-layout > .house-main { grid-column: 2; }
.house-layout.no-rail { grid-template-columns: minmax(0, 1fr); }
.house-layout.no-rail > .house-main { grid-column: 1; }
/* "Expand this page" (look §6.4): the rail is hidden and the main column takes the frame, until the reader turns it
   off. Below 901 px the rail is already a closed box above the page, so a page hides the action there. */
.house-layout.is-expanded { grid-template-columns: minmax(0, 1fr); }
.house-layout.is-expanded > .house-rail { display: none; }
.house-layout.is-expanded > .house-main { grid-column: 1; }
/* The main column is a container, so the band and the section headings size themselves by its width, as a course
   page in the reader sizes them by the frame's. */
.house-main { min-width: 0; container: house / inline-size; counter-reset: house-section; }

/* The band across the frame (the owner's verdict, ruling 1). On a session page and an activity page the frame holds
   the bar row, the day's tab row when there is one, the band, then the layout: the band stands above the rail and the
   main column and spans the frame. Whatever element holds the band and the layout is a size container named house,
   as the main column is, so the band takes its three forms (2) by the frame's width: the wide form above 960 px
   (a window above 1,008 px), the reader's form from 560 px, the phone's form below. The rail and the main column start
   28 px under the band. Markup: .wrap.house-frame > .house-bar, nav.house-tabs, header.house-band, .house-layout. */
:has(> .house-band ~ .house-layout) { container: house / inline-size; }
.house-band:has(~ .house-layout) { margin-bottom: 28px; }

/* The rail: the course's contents list ("On this page"), in view while the page scrolls. */
.house-rail { position: sticky; top: calc(var(--topbar-h) + 26px); max-height: calc(100vh - var(--topbar-h) - 46px);
  overflow-y: auto; padding: 6px 0 24px; font-size: 14px; line-height: 1.4; }
.house-rail[hidden], .house-rail:not(:has(li)) { display: none; }
.house-rail summary { margin-bottom: 14px; font-size: 12px; font-weight: 750; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); list-style: none; cursor: default; }
.house-rail summary::-webkit-details-marker { display: none; }
.house-rail ol { list-style: none; margin: 0; padding: 0; }
.house-rail a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); color: var(--ink-2);
  text-decoration: none; }
.house-rail a:hover { color: var(--ink); }
.house-rail a.is-here, .house-rail a[aria-current] { border-left-color: var(--brand-b); color: var(--ink); font-weight: 650; }
.house-rail a:focus-visible, .house-rail summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Below 900 px the rail becomes a closed box above the page. */
@media (max-width: 900px) {
  .house-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .house-layout > .house-rail, .house-layout > .house-main { grid-column: 1; }
  .house-rail { position: static; max-height: none; overflow: visible; padding: 0; margin: 0 0 20px; }
  .house-rail summary { margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface); cursor: pointer; }
  .house-rail details[open] summary { margin-bottom: 12px; }
}
@media (max-width: 640px) {
  .view-portal > .wrap, .wrap.house-frame { padding: 20px 16px 72px; }
  .house-bar { margin-bottom: 16px; }
}
@media print {
  .house-rail { display: none; }
  .house-layout { display: block; }
  /* A page of the portal prints (look §9.5; PL-07). ../styles.css hides every view but the reader's in print; the
     portal's own pages stand in #view-page, which prints too, at the paper's width. The bar row's actions ("Expand
     this page", "Print this page") do not print; the trail does. */
  .view.view-page:not([hidden]) { display: block !important; }
  .view-page .wrap.house-frame { max-width: none; padding-right: 0; padding-left: 0; }
  .house-actions { display: none; }
}

/* ---- 2. The title band ----------------------------------------------------------------------------------------- */

/* The course's hero: the navy panel, an eyebrow in small capitals, the title in the light serif and one line under
   it. The rings are the course's own mark (six circles in the brand's gradient), drawn behind the words. Its three
   forms follow the width of its container, as a course page's hero follows the width of the reader's frame: the wide
   form above 960 px, the reader's form (rings kept in view) from 560 px, and the phone's form below. The container is
   the main column, or the frame when the band stands above the layout (1). */
.house-band, .login-card > h1 { position: relative; overflow: hidden; isolation: isolate; margin: 0 0 12px;
  padding: 54px 56px 50px; border-radius: 24px; border: 1px solid var(--panel-line); background: var(--panel);
  color: var(--ground-ink); }
.house-band::before, .login-card > h1::before { content: ""; position: absolute; z-index: -1; right: -150px; top: 50%;
  width: 460px; height: 460px; transform: translateY(-50%); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='10' y1='10' x2='118' y2='118'%3E%3Cstop offset='0' stop-color='%23ffd266'/%3E%3Cstop offset='1' stop-color='%23fe5d41'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)'%3E%3Ccircle cx='64' cy='64' r='57' stroke-width='10'/%3E%3Ccircle cx='64' cy='64' r='45' stroke-width='6.6'/%3E%3Ccircle cx='64' cy='64' r='35' stroke-width='4.6'/%3E%3Ccircle cx='64' cy='64' r='26.5' stroke-width='3.3'/%3E%3Ccircle cx='64' cy='64' r='19' stroke-width='2.4'/%3E%3Ccircle cx='64' cy='64' r='12' stroke-width='1.8'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.house-band > * { position: relative; max-width: calc(100% - 300px); }
.house-eyebrow { margin: 0; font-size: 12.5px; font-weight: 750; letter-spacing: .16em; line-height: 1.5;
  text-transform: uppercase; color: var(--ground-ink-3); }
.house-band h1 { max-width: min(15.5em, calc(100% - 300px)); margin: 16px 0 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.6cqi, 54px); line-height: 1.06; letter-spacing: -.026em; text-wrap: balance;
  overflow-wrap: break-word; }
.house-band > h1:first-child { margin-top: 0; }
.house-band-line { margin: 22px 0 0; font-size: 17.5px; line-height: 1.55; color: var(--ground-ink-2); }
.house-band-meta { margin: 22px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ground-ink-3); }
.house-band a { color: var(--ground-ink); }
/* The sign-in card (and the holding page) opens with the band: its title, the portal's name, in the light serif. */
.login-card > h1 { margin: 0 -32px 28px; padding: 40px 120px 36px 32px; border: 0; border-bottom: 1px solid var(--panel-line);
  border-radius: 0;
  font: 400 clamp(32px, 9vw, 40px)/1.06 var(--serif); letter-spacing: -.026em; text-align: left; }
.login-card > h1::before { width: 260px; height: 260px; right: -140px; }
/* A tool's page (a quiz, a register, a form) has a shorter band: the same panel, less height. */
.house-band.is-tool { padding: 34px 40px 32px; }
.house-band.is-tool::before { width: 340px; height: 340px; right: -130px; }
.house-band.is-tool h1 { margin-top: 12px; font-size: clamp(28px, 3.4cqi, 38px); line-height: 1.12; letter-spacing: -.022em; }
.house-band.is-tool > h1:first-child { margin-top: 0; }
.house-band.is-tool .house-band-line { margin-top: 14px; font-size: 16px; }
@container house (max-width: 960px) {
  .house-band { padding: 36px 26px 34px; border-radius: 18px; }
  .house-band::before { width: 380px; height: 380px; right: -150px; }
  .house-band > *, .house-band h1 { max-width: calc(100% - 230px); }
  .house-band.is-tool { padding: 26px 26px 24px; }
  .house-band.is-tool::before { width: 300px; height: 300px; right: -140px; }
  .house-band.is-tool > *, .house-band.is-tool h1 { max-width: calc(100% - 170px); }
}
@container house (max-width: 559px) {
  .house-band::before, .house-band.is-tool::before { width: 240px; height: 240px; right: -160px; opacity: .55; }
  .house-band > *, .house-band h1, .house-band.is-tool > *, .house-band.is-tool h1 { max-width: calc(100% - 70px); }
}
/* The paragraph that opens a page stands under the band, as a day plan's opening paragraph does. */
.house-lede { max-width: 44rem; margin: 22px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.house-lede + .house-lede { margin-top: 12px; }
@media print {
  .house-band { padding: 24px 28px; border-radius: 14px; }
}

/* The not-found page's way home (the shell's and the administration's), in the house's red: it stands outside a main
   column, where the sentence's link rule does not reach (the look check's small finding 5). */
.house-home a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.house-home a:hover { color: var(--accent-hover); }

/* ---- 3. The section heading ------------------------------------------------------------------------------------ */

/* The course's numbered section: 01 and a short rule in the monospace, then the heading in the light serif. The
   number counts the sections shown on the page; it is drawn, so a screen reader reads the heading alone. The section
   counts itself rather than its heading: the main column is a size container, whose style containment would give each
   heading a counter of its own, while sections side by side share one. A section whose text is a document (the
   capstone's Start here) takes the document's own first heading. */
.house-section { padding-top: 54px; counter-increment: house-section; }
/* The heading grows with its column up to 31 px, its size beside the rail (a 908 px column), so that in a column the
   width of the frame it stays smaller than the band's title (38 px), as on the accepted pages (K4). */
.house-section > h2, .house-section > .md > h2:first-child { margin: 0 0 20px; font-family: var(--serif);
  font-weight: 400; font-size: clamp(26px, 3.4cqi, 31px); line-height: 1.12; letter-spacing: -.022em; text-wrap: balance; }
.house-section > h2::before, .house-section > .md > h2:first-child::before {
  content: counter(house-section, decimal-leading-zero); content: counter(house-section, decimal-leading-zero) / "";
  display: block; width: fit-content; margin-bottom: 10px; padding-right: 56px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; line-height: 1.4; letter-spacing: .08em; color: var(--ink-3);
  background: linear-gradient(var(--line-strong), var(--line-strong)) right center / 44px 1px no-repeat; }
/* A section's paragraphs keep the course's measure and spacing (its reading text: 44rem, 16 px under each), and so
   does a document's text in the main column. */
.house-section > p { max-width: 44rem; margin: 0 0 16px; }
.house-section > p:empty { display: none; }
.house-main .md > :is(p, ul, ol, blockquote) { max-width: 44rem; }
/* The heading of a page within a page, such as a conversation's sheet: the section heading's serif, without a number. */
.house-heading { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3cqi, 34px);
  line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
/* A heading inside a section: the course's h3 in its reading text. */
.house-section > h3 { margin: 28px 0 10px; font-size: 21px; line-height: 1.25; letter-spacing: -.012em; }

/* ---- 4. The day row -------------------------------------------------------------------------------------------- */

/* A day plan's list of the day: ruled rows, the title at 18 px, and under it the day's materials as pills. The same
   row stands inside a week's card on the home page, without the pills. */
.house-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.house-row { display: grid; gap: 10px; margin: 0; padding: 16px 2px 17px; border-bottom: 1px solid var(--line); }
.house-row-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.008em; color: var(--ink); }
.house-row-title a { color: var(--ink); text-decoration: none; }
.house-row-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.house-row-note { margin: 0; font-size: 14.5px; color: var(--ink-3); }
.house-row.is-closed .house-row-title { color: var(--ink-3); font-weight: 600; }
.house-row > .house-row-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }

/* ---- 5. The pill ----------------------------------------------------------------------------------------------- */

/* The course's day links: an outlined pill that fills with the band on hover, and the current one filled. The
   capstone's own rows of tabs (.tabs) and its choice of project (.switch), in its Admin area, are the same pills, and
   so is a file to read or download (.file-link), filled when it is the download of them all (.all). */
.house-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.house-pill, .house-pills a, .house-pills > button, .tabs > button, .switch > button, .file-link { display: inline-flex;
  align-items: center; gap: 4px; margin: 0; padding: 5px 13px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--ink); font: 600 13.5px/1.68 var(--sans); text-decoration: none;
  white-space: nowrap; cursor: pointer; }
:is(.house-pill, .house-pills a, .house-pills > button, .tabs > button, .switch > button, .file-link):hover {
  background: var(--band); border-color: var(--band); color: var(--band-ink); }
:is(.house-pill, .house-pills a, .house-pills > button, .tabs > button, .switch > button, .file-link):is([aria-current],
  [aria-selected="true"], .all) { background: var(--band); border-color: var(--band); color: var(--band-ink); }
:is(.house-pill, .house-pills a, .house-pills > button, .tabs > button, .switch > button, .file-link):focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px; }
.house-pill svg { width: 14px; height: 14px; flex: none; }
.house-pills .course-download { color: inherit; font-weight: 500; opacity: .75; }
/* On a phone a pill is at least 40 px tall, so that a finger finds it (look §9.5; PL-07). A label longer than the
   column (a page's title as a pill, as the catch-up material's pages to reread are) wraps inside the pill rather than
   pushing the page wider than the window (PL-07's walk; FX-05). A label that fits keeps to one line, as before. */
@media (max-width: 640px) {
  :is(.house-pill, .house-pills a, .house-pills > button) { min-height: 40px; max-width: 100%; white-space: normal; }
}

/* ---- 7. Links -------------------------------------------------------------------------------------------------- */

/* A link inside a sentence is the course's red, underlined. A link that is a row or a title is ink. The sentence's
   rule has the least weight (:where), so that every part's own link (a pill, a button, a rail's entry) keeps its own. */
:where(.house-main) a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:where(.house-main) a:hover { color: var(--accent-hover); }
:is(.house-row-title, .house-card-title, .house-list) a { color: var(--ink); text-decoration: none; }
:is(.house-row-title, .house-card-title, .house-list) a:hover { color: var(--ink); text-decoration: underline;
  text-underline-offset: 3px; }

/* A list of links that are rows: an item's name in ink, with its state beside it. */
.house-list { list-style: none; margin: 0; padding: 0; }
.house-list > li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 2px;
  border-bottom: 1px solid var(--line); }
.house-list > li:first-child { border-top: 1px solid var(--line-strong); }

/* ---- 8. Type --------------------------------------------------------------------------------------------------- */

/* The course site's front pages: text at 16.5 px on a 1.6 line, small labels in tracked capitals, notes at 14.5 px. */
.house-main { font-size: 16.5px; line-height: 1.6; }
.house-main p { text-wrap: pretty; }
.house-main .md { font-size: inherit; line-height: inherit; }
.house-label, .house-labelled dt, .house-facts dt { font-size: 11.5px; font-weight: 750; letter-spacing: .13em;
  line-height: 1.4; text-transform: uppercase; color: var(--ink-3); }
.house-main .field-note, .house-main .empty-note { font-size: 14.5px; color: var(--ink-3); }
.house-main code { font-family: var(--mono); font-size: .86em; padding: .1em .38em; border-radius: 6px;
  background: var(--surface-2); }

/* ---- 6. The card, as the house look places it ------------------------------------------------------------------- */

/* The card's box is the course's white card: .card in ../styles.css for a region of a page (with .house-region, 15),
   li.house-card for a card in a grid (10); the two draw the same box (radius 18, a line, the soft shadow, padding
   22 / 24 / 24). Its heading is the course's door heading: the light serif. */
.house-card-kicker { font-size: 11.5px; font-weight: 750; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase;
  color: var(--ink-3); }
.house-card-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.17;
  letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }

/* ---- 9. The landing frame (look §2.1, §3) ------------------------------------------------------------------------ */

/* A landing page (the home page, a part, a week, a stop between weeks) orients, then lists. It has no rail: its main
   column takes the frame's full width, so the band runs from the frame's left edge (x 124 at 1,440 px) across 1,192
   px, and lines up with the bar row above it. Markup: .house-layout.is-landing > .house-main, the band first. */
.house-layout.is-landing { grid-template-columns: minmax(0, 1fr); }
.house-layout.is-landing > .house-rail { display: none; }
.house-layout.is-landing > .house-main { grid-column: 1; }

/* The landing band: the course site's .home-hero, rule for rule, across the frame. Its eyebrow, title, lede
   (.house-band-line) and meta line are the band's own parts (2); this form sets their measure, so that no word runs
   over the rings at any width. The rings are 520 px above a 960 px window, 300 px from 641 to 960 px, and 240 px
   below, at .55 opacity, so that a phone's text keeps 229 px. */
.house-band.is-landing { margin: 0; padding: 64px 60px 58px; border-radius: 26px; }
.house-band.is-landing::before { width: 520px; height: 520px; right: -250px; opacity: 1; }
.house-band.is-landing > * { max-width: calc(100% - 210px); }
.house-band.is-landing h1 { max-width: min(13em, calc(100% - 210px)); margin-top: 16px; font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.05; letter-spacing: -.02em; }
.house-band.is-landing > h1:first-child { margin-top: 0; }
.house-band.is-landing .house-band-line { max-width: 24em; }
@media (max-width: 960px) {
  .house-band.is-landing::before { width: 300px; height: 300px; right: -200px; opacity: .55; }
}
@media (max-width: 640px) {
  .house-band.is-landing { padding: 40px 24px 36px; border-radius: 20px; }
  .house-band.is-landing::before { width: 240px; height: 240px; right: -160px; opacity: .55; }
  .house-band.is-landing > *, .house-band.is-landing h1, .house-band.is-landing .house-band-line { max-width: calc(100% - 64px); }
  .house-band.is-landing h1 { font-size: clamp(30px, 8vw, 36px); }
}
/* What comes under the band: a card 32 px below it, a section label 56 px below it. */
.house-band.is-landing + * { margin-top: 32px; }
.house-band.is-landing + .house-landing-label { margin-top: 56px; }

/* The short landing band: the home page's band (the owner's verdict, ruling 3; BUILD-PLAN.md 18:28). It is the short
   band (.house-band.is-tool, 2) on a landing page, with the short band's height and type. Its words start where the
   landing band's start (60 px in, 24 px on a phone), so that they do not move sideways between the home page and a
   part's or a week's page; its title runs to the rings, so that the programme's name keeps to one line where it fits;
   and what follows starts 32 px under it. Markup: .house-layout.is-landing > .house-main > header.house-band.is-tool. */
.house-layout.is-landing .house-band.is-tool { margin: 0 0 32px; padding-right: 60px; padding-left: 60px; }
.house-layout.is-landing .house-band.is-tool h1 { max-width: calc(100% - 300px); }
@container house (max-width: 960px) {
  .house-layout.is-landing .house-band.is-tool h1 { max-width: calc(100% - 170px); }
}
@container house (max-width: 559px) {
  .house-layout.is-landing .house-band.is-tool h1 { max-width: calc(100% - 70px); }
}
@media (max-width: 640px) {
  .house-layout.is-landing .house-band.is-tool { padding-right: 24px; padding-left: 24px; }
}

/* The landing label: a landing page's section heading, in small capitals (the course's .home h2). A landing page does
   not use the numbered serif heading (3), which belongs to reading pages, so the two kinds of page read apart. */
.house-landing-label { margin: 56px 0 18px; font-size: 12.5px; font-weight: 750; letter-spacing: .15em; line-height: 1.68;
  text-transform: uppercase; color: var(--ink-3); }
/* A landing page's text: the course's .home-text, at 44rem. */
.house-landing-text { max-width: 44rem; font-size: 16.5px; line-height: 1.6; }
.house-landing-text p { margin: 0 0 14px; text-wrap: pretty; }
.house-landing-text :is(ol, ul) { margin: 0 0 16px; padding-left: 24px; }
.house-landing-text li { margin: 6px 0; padding-left: 4px; }
.house-landing-text > :last-child { margin-bottom: 0; }
.house-landing-text + .house-cards, .house-cards + .house-landing-text { margin-top: 18px; }
@media print {
  .house-band.is-landing { padding: 24px 28px; border-radius: 14px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- 10. The card grids and the landing card (look §3.2, §5.2) --------------------------------------------------- */

/* An explicit grid, so that the last row is never uneven: three across (a week's days, 386 px at 1,440) or four across
   (the programme's parts, 286 px), two across from 641 to 959 px, and one across below. */
.house-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0;
  list-style: none; }
.house-cards.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.house-cards > li { margin: 0; }
@media (max-width: 959px) {
  .house-cards, .house-cards.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .house-cards, .house-cards.is-4 { grid-template-columns: minmax(0, 1fr); }
}

/* The landing card: the course's door and day card (.door, .day). Its kicker and title are the card's heading parts
   (6); a second kicker (such as "Outcome") stands 18 px under the sentence before it, and in a grid of cards that
   line up their rows (.house-cards.is-aligned, 15) it stands at one height across the row, as the course's programme
   cards do. A card that is itself a link lifts on hover. */
.house-card { display: flex; flex-direction: column; min-width: 0; height: 100%; margin: 0; padding: 22px 24px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  color: var(--ink-2); text-decoration: none; }
.house-card > .house-card-title { margin-top: 10px; }
.house-card > .house-card-title:first-child { margin-top: 0; }
.house-card-text { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; }
.house-card > .house-card-kicker:not(:first-child) { padding-top: 18px; }
.house-card-kicker + .house-card-text { margin-top: 6px; }
/* The card's foot: its pills (a day's materials), or the sentence that says why it has none. */
.house-card-pills { margin-top: auto; padding-top: 20px; }
.house-card-pills > .is-apart { margin-left: 4px; }
.house-card-state { margin: auto 0 0; padding-top: 20px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
a.house-card { transition: transform .15s, border-color .15s; }
@media (hover: hover) {
  a.house-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
}
a.house-card:focus-visible, .house-card-title a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* The lead card: the part the cohort is in now, in the band's navy. */
.house-card.is-lead { background: var(--panel); border-color: var(--panel-line); color: var(--ground-ink-2); }
.house-card.is-lead .house-card-title, .house-card.is-lead .house-card-title a { color: var(--ground-ink); }
.house-card.is-lead .house-card-kicker { color: var(--ground-ink-3); }
/* Today's day card: a 2 px coral border, the content kept where it was. */
.house-card.is-today { padding: 21px 23px 23px; border: 2px solid var(--brand-b); }
/* A card that is not open yet: dashed, no fill, its title kept and dimmed (the course's .day.is-empty). */
.house-card.is-closed { background: none; box-shadow: none; border-style: dashed; }
.house-card.is-closed .house-card-title { color: var(--ink-3); }
/* A pill filled because what it opens is open now (a day's check-in): the current pill's fill. */
:is(.house-pill, .house-pills a).is-open { background: var(--band); border-color: var(--band); color: var(--band-ink); }
/* A pill in a card never runs past the card's edge: at any width, a label longer than the card (a handbook section's
   title, as the catch-up material's topics to work on are) wraps inside the pill onto a second line (FX-12). A label
   that fits keeps to one line. */
.house-card :is(.house-pill, .house-pills a, .house-pills > button) { max-width: 100%; white-space: normal; }
@media (max-width: 640px) {
  .house-card .house-pills a { padding: 8px 14px; }
}
@media print {
  .house-card.is-lead { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- 11. The session frame: the tab row (look §6.1, §6.2) -------------------------------------------------------- */

/* A session page is one day. Its tab row stands under the bar row (12 px below it) across the frame, and names the
   day's materials, then after a divider the day's activities with their states, then for staff the teaching
   materials behind a toggle that opens a second row. The band starts 22 px under the tab row, across the frame above
   the rail and the main column (1), and is the same on every tab, so changing tab moves nothing above the text.
   Markup: the frame holds .house-bar, nav.house-tabs, header.house-band, then .house-layout. The tab row is a nav
   whose current tab carries aria-current, not a tab list: each tab is a page with an address. A tab that is not open
   yet is its name (.house-tabs-off), not a link. On a phone the tabs are 40 px tall and the row wraps: the tabs, then
   the activities. */
.house-bar:has(+ .house-tabs) { margin-bottom: 12px; }
.house-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 35px; margin: 0 0 22px; }
.house-tabs-label { margin-right: 10px; font-size: 12px; font-weight: 750; letter-spacing: .16em; line-height: 1.68;
  text-transform: uppercase; white-space: nowrap; color: var(--ink-3); }
.house-tabs-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.house-tabs-group > li { margin: 0; }
.house-tabs-group + .house-tabs-group { margin-left: 6px; padding-left: 11px;
  background: linear-gradient(var(--line-strong), var(--line-strong)) left center / 1px 20px no-repeat; }
.house-tabs a, .house-tabs-off, .house-tabs-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0;
  padding: 6px 12px; border: 0; border-radius: 999px; background: none; color: var(--ink-2);
  font: 560 14px/1.68 var(--sans); text-decoration: none; white-space: nowrap; }
.house-tabs a:hover, .house-tabs-toggle:hover { background: var(--surface-2); color: var(--ink); }
.house-tabs a[aria-current] { background: var(--band); color: var(--band-ink); }
.house-tabs-off { color: var(--ink-3); cursor: default; }
/* An activity's state beside its name ("Quiz · 7 of 10"); the dot is drawn, so a screen reader reads the words. */
.house-tabs-state { font-weight: 500; color: var(--ink-3); }
.house-tabs-state::before { content: "·"; content: "·" / ""; margin-right: 6px; }
.house-tabs a[aria-current] .house-tabs-state { color: inherit; opacity: .78; }
.house-tabs-toggle { margin-left: auto; cursor: pointer; }
.house-tabs-toggle::after { content: ""; width: 6px; height: 6px; margin: -4px 2px 0 2px; border: solid currentColor;
  border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.house-tabs-toggle[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(225deg); }
.house-tabs-more { flex: 1 0 100%; justify-content: flex-end; }
.house-tabs-group.house-tabs-more { margin-left: 0; padding-left: 0; background: none; }
.house-tabs :is(a, .house-tabs-toggle):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 640px) {
  .house-tabs, .house-tabs-group { gap: 4px; }
  .house-tabs-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
  .house-tabs-group + .house-tabs-group { margin-left: 0; padding-left: 0; background: none; }
  .house-tabs a, .house-tabs-off, .house-tabs-toggle { min-height: 40px; padding: 8px 12px; }
  .house-tabs-toggle { margin-left: 0; }
  .house-tabs-more { justify-content: flex-start; }
}
@media print {
  .house-tabs { display: none; }
}

/* ---- 12. The activity frame (look §7.1, §7.2) -------------------------------------------------------------------- */

/* An activity page does one thing. It is the session frame (with a tab row when the activity belongs to a day), with
   the short band (.house-band.is-tool, 2) across the frame above the rail and the main column (1), the first
   paragraph (.house-lede, 2) first in the main column, and the rail listing the activity's parts. A part that is done
   carries a dot in the rail; the page says so in words too. */
.house-rail a.is-done::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px;
  border-radius: 50%; background: var(--ink-2); vertical-align: .12em; }
/* While a practice conversation runs, the band and the first paragraph fold away, so that the conversation has the
   screen; the bar row stays as one line (.house-bar.is-tool, 1). .is-folded goes on the main column. When the band
   stands above the layout, the frame's tab row and band fold with it. */
.house-main.is-folded > :is(.house-band, .house-lede) { display: none; }
:has(> .house-layout > .house-main.is-folded) > :is(.house-tabs, .house-band) { display: none; }
/* The primary action at the foot of a form, left-aligned: the course's button (.fetch-btn). One to a screen. */
.house-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 11px 20px;
  border: 0; border-radius: 999px; background: var(--band); color: var(--band-ink); font: 650 15px/1.6 var(--sans);
  text-decoration: none; white-space: nowrap; cursor: pointer; }
.house-action:hover { background: var(--primary-hover); color: var(--band-ink); }
.house-action:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.house-action:disabled { opacity: .55; cursor: default; }

/* ---- 13. The day strip (look §6.5) ------------------------------------------------------------------------------- */

/* A picture of a day's shape: a 12 px track, fully rounded, with a segment for each period in proportion to its
   minutes. Under the track, the periods' names, centred under any segment 60 px or wider; under them, the day's start
   and end times. "Now", on the day itself, is a 2 px line with its word above. strip.js draws it from data; this is
   only its look. The parts of the track outside the day (before it starts, after it ends on a shared time scale) are
   left empty, with a fine rule. */
:root { --r-neutral: #57544e; --r-neutral-soft: #ece8e0; --r-code: #1f6470; --r-outcome: #276a43;
  --r-outcome-soft: #e4f1e8; }
@media (prefers-color-scheme: dark) {
  :root { --r-neutral: #c1bbaf; --r-neutral-soft: #374556; --r-code: #6fc3cf; --r-outcome: #6cc392;
    --r-outcome-soft: #284651; }
}
.house-strip { position: relative; min-width: 0; margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink-3);
  font-variant-numeric: tabular-nums; }
.house-strip:empty { min-height: 53px; }
.house-strip.has-now { padding-top: 20px; }
.house-strip-track, .house-strip-names, .house-strip-times { display: flex; margin: 0; padding: 0; list-style: none; }
.house-strip-track > *, .house-strip-names > *, .house-strip-times > * { flex: var(--m, 1) 1 0px; min-width: 0; margin: 0; }
.house-strip-track { height: 12px; border-radius: 999px;
  background: repeating-linear-gradient(90deg, transparent 0 6px, var(--line-strong) 6px 7px); }
.house-strip-seg.is-taught { background: var(--band); }
.house-strip-seg.is-break { background: var(--surface-3); }
.house-strip-seg.is-quiz { background: var(--brand-b); }
.house-strip-seg.is-setup { background: var(--r-code); }
.house-strip-seg.is-capstone { background: var(--r-outcome); }
.house-strip-seg.is-first { border-top-left-radius: 999px; border-bottom-left-radius: 999px; }
.house-strip-seg.is-last { border-top-right-radius: 999px; border-bottom-right-radius: 999px; }
.house-strip-names { margin-top: 6px; }
.house-strip-names > li { container-type: inline-size; text-align: center; }
.house-strip-names > li > span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  visibility: hidden; }
@container (min-width: 60px) {
  .house-strip-names > li > span { visibility: visible; }
}
.house-strip-times { margin-top: 2px; }
.house-strip-day { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
.house-strip-now { position: absolute; top: 0; left: var(--at); width: 0; height: 36px; pointer-events: none; }
.house-strip-now::before { content: ""; position: absolute; top: 16px; left: -1px; width: 2px; height: 20px;
  border-radius: 1px; background: var(--accent); box-shadow: 0 0 0 1px var(--surface); }
.house-strip-now > span { position: absolute; top: 0; left: 0; transform: translateX(calc(-1 * var(--at)));
  font-weight: 650; line-height: 1.2; white-space: nowrap; color: var(--accent); }
@media print {
  .house-strip-seg, .house-strip-now::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- 14. The tile (look §5.3) ------------------------------------------------------------------------------------ */

/* A day in an overview of more than one week: the course diagram's .dg-day-card, five across with 10 px gaps. It shows
   the day's label (the chip), its title, one line (the exercise) and, when there is one, the version tag; a state
   line under them when the state has words. The diagram (diagram.css) places the tiles in its week rows; this is the
   tile and its states. In a column narrower than 641 px the tiles become rows, as the course's diagram does.

   A learner's states: open (as the course draws it); done (the chip turns green); today (a 2 px coral border and a
   second chip, "Today"); not open yet (dashed, no fill, the title kept and dimmed). Staff's states: in preparation
   (dashed, with its state line) and not released to the cohort (open, with a lock and its state line). */
.house-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0;
  list-style: none; }
.house-tile { --rc: var(--r-neutral); --rs: var(--r-neutral-soft); position: relative; display: flex; flex-direction: column;
  gap: .4em; min-width: 0; margin: 0; padding: .8em .85em .9em; border: 1.5px solid color-mix(in srgb, var(--rc) 38%, var(--line));
  border-radius: .85em; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-size: 14px;
  line-height: 1.35; overflow-wrap: break-word; }
.house-tile-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.house-tile-chip { display: inline-block; max-width: 100%; padding: .32em .78em; border-radius: 999px; background: var(--rs);
  color: var(--rc); font-size: 10.5px; font-weight: 780; letter-spacing: .11em; line-height: 1.35; text-transform: uppercase;
  white-space: nowrap; }
.house-tile-title { display: block; margin: .1em 0 0; font-size: 1em; font-weight: 650; line-height: 1.3; letter-spacing: -.005em;
  color: var(--ink); }
.house-tile-title a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 3px; }
.house-tile-title a:hover { color: var(--accent); text-decoration-color: currentColor; }
.house-tile-title a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.house-tile-line { margin: auto 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.house-tile-tag { align-self: flex-start; display: inline-block; margin-top: .15em; padding: .2em .6em; border-radius: 6px;
  background: var(--r-outcome-soft); color: var(--r-outcome); font-size: 12.5px; font-weight: 650; line-height: 1.35; }
.house-tile-line + .house-tile-tag { margin-top: .1em; }
.house-tile-state { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.house-tile.is-done .house-tile-chip { background: var(--ok-soft); color: var(--ok); }
.house-tile.is-today { padding: calc(.8em - .5px) calc(.85em - .5px) calc(.9em - .5px); border: 2px solid var(--brand-b); }
.house-tile-chip.is-today { background: var(--brand-b); color: var(--ground); }
.house-tile.is-closed, .house-tile.is-preparing { background: none; box-shadow: none; border-style: dashed; }
.house-tile.is-closed .house-tile-title, .house-tile.is-closed .house-tile-title a { color: var(--ink-3); text-decoration: none; }
/* Staff see every tile open; one not yet released to the cohort carries a 12 px lock at its top right. */
.house-tile.is-locked > .house-tile-chips { padding-right: 18px; }
.house-tile.is-locked::after { content: ""; position: absolute; top: calc(.8em + 4px); right: .85em; width: 12px; height: 12px;
  background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.6 5.4V3.9a2.4 2.4 0 0 1 4.8 0v1.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Crect x='2' y='5.2' width='8' height='6.3' rx='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.6 5.4V3.9a2.4 2.4 0 0 1 4.8 0v1.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Crect x='2' y='5.2' width='8' height='6.3' rx='1.4'/%3E%3C/svg%3E") center / contain no-repeat; }
@container (max-width: 640px) {
  .house-tiles { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .house-tile { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); column-gap: .6em; row-gap: .2em;
    align-items: baseline; padding: .65em .8em .7em; box-shadow: none; }
  .house-tile.is-today { padding: calc(.65em - .5px) calc(.8em - .5px) calc(.7em - .5px); }
  .house-tile > .house-tile-chips { grid-row: 1 / span 2; align-self: start; justify-self: start; }
  .house-tile > :not(.house-tile-chips) { grid-column: 2; margin: 0; }
  .house-tile > .house-tile-tag { justify-self: start; margin-top: .2em; }
  .house-tile.is-locked > .house-tile-chips { padding-right: 0; }
  .house-tile.is-locked > .house-tile-title { padding-right: 18px; }
  .house-tile.is-locked::after { top: calc(.65em + 4px); right: .8em; }
}
@media print {
  .house-tile, .house-tile-chip, .house-tile-tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- 15. The parts the accepted pages share (LOOK-VERDICT.md) ---------------------------------------------------- */

/* The parts that two or more of the accepted preview's stylesheets repeated, or that more than one page task needs,
   each defined once. What only one page uses stays in that page's own stylesheet; the programme diagram is
   diagram.css's (PL-03); the staff panel and the release tree are their own tasks', built from the states, rows and
   controls below. */

/* A region of a page drawn as a card ("The day at a glance", the start of a conversation, an administration card):
   the card of ../styles.css, whose box is the house card's (6), with its parts spaced by their own margins and still
   on load (look §9.5). Markup: section.card.house-region. */
.card.house-region { gap: 0; animation: none; }

/* Two cards across, counted by the column the grid stands in rather than by the window: beside the rail the main
   column is 908 px at 1,440 and 692 px at 1,024, where three cards would stand 220 px wide. One across in a column of
   640 px or less. An uneven pair gives the second card three fifths. A grid of three or four counted by its column
   is .is-by-column: two across in a column of 959 px or less. Markup: ul.house-cards.is-2 (.is-uneven),
   ul.house-cards.is-by-column (.is-4). */
.house-cards.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.house-cards.is-2.is-uneven { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
@container house (max-width: 959px) {
  .house-cards.is-by-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container house (max-width: 640px) {
  .house-cards.is-2, .house-cards.is-2.is-uneven, .house-cards.is-by-column { grid-template-columns: minmax(0, 1fr); }
}
/* A pair of cards that carry the page's own content (a practice sheet's task and its good outcome; the capstone's
   materials and hand-in): the first sentence at 15.5 px in --ink, a second at 14.5 px in --ink-2, and a long pill's
   label wraps. Markup: ul.house-cards.is-2.is-pair (.is-uneven). */
.house-cards.is-pair .house-card-text { font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.house-cards.is-pair .house-card-text + .house-card-text { font-size: 14.5px; color: var(--ink-2); }
.house-cards.is-pair .house-pills a { white-space: normal; }
/* Cards that line up their rows across a row of the grid, as the course's programme cards do: each card's parts take
   the grid's rows (a subgrid), so the kickers, the titles and a second kicker such as "Outcome" stand at one height
   across the row, and Week 6's mornings line up and its afternoons line up. --rows is the number of parts in the
   fullest card (5 if it is not set). A card's foot (.house-card-foot) takes the last row. Markup:
   ul.house-cards.is-aligned (style="--rows: 5") > li.house-card. */
.house-cards.is-aligned > .house-card { display: grid; grid-template-rows: subgrid; grid-row: span var(--rows, 5);
  row-gap: 0; align-content: start; }
.house-cards.is-aligned > .house-card > .house-card-foot { grid-row: -2; }

/* An activity's card on a day's page (look §6.1; the verdict, ruling 6): the kicker gives its state in words ("Open
   now", "Opens at 14:30", "Done"), the one activity open now carries the one filled pill (.is-open, 10), and the
   sentence that says when it opens is in --ink-2. A practice conversation's card shows the person first: the portrait
   row of ../styles.css (.card-head) 16 px under the kicker and 16 px above the title. Markup: li.house-card.is-activity
   in ul.house-cards.is-2, with .house-card-kicker, (div.card-head), .house-card-title, .house-card-text, then
   ul.house-pills.house-card-pills or p.house-card-state. */
.house-card.is-activity .house-card-state { color: var(--ink-2); }
.house-card.is-activity > .card-head { gap: 14px; margin-top: 16px; }
.house-card.is-activity > .card-head .role { line-height: 1.4; }
.house-card.is-activity > .card-head + .house-card-title { margin-top: 16px; }

/* A person's card, with a portrait (a practice conversation's sheet): the portrait, 96 px (72 on a phone), beside the
   person's name in the card title's serif, their role, and a link to more about them. The portrait is
   ../styles.css's .avatar. Markup: div.card.house-person > span.avatar + div.house-person-text >
   strong.house-card-title + p.house-person-role + p.house-person-more. */
.card.house-person { flex-direction: row; align-items: center; gap: 22px; padding: 20px 24px; animation: none; }
.house-person > .avatar { width: 96px; height: 96px; }
.house-person-text { display: grid; gap: 4px; min-width: 0; }
.house-person-role { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.house-person-more { margin: 4px 0 0; font-size: 14.5px; }
@media (max-width: 640px) {
  .card.house-person { gap: 16px; padding: 16px; }
  .house-person > .avatar { width: 72px; height: 72px; }
}

/* Labelled rows: a label in small capitals, then its value, one pair to a ruled row (look §6.3, "The day at a glance";
   the administration's cards; the staff panel). The label column is 180 px and the value is reading text, up to 40rem.
   .is-compact is the staff's: a 9.5rem label column, the value at 15 px in --ink-2, and 14 px above the first row. In
   a column of 640 px or less the label stands above its value. The label's type is the house label's (8). Markup:
   dl.house-labelled (.is-compact) > div > dt + dd. */
.house-labelled { margin: 0; padding: 0; }
.house-labelled > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 24px; padding: 12px 0;
  border-top: 1px solid var(--line); }
.house-labelled:not(.is-compact) > div:last-child { padding-bottom: 0; }
.house-labelled dt { padding-top: 5px; }
.house-labelled dd { min-width: 0; max-width: 40rem; margin: 0; }
.house-labelled dd > p { margin: 0; }
.house-labelled dd > p + p { margin-top: 6px; }
.house-labelled.is-compact { margin-top: 14px; }
.house-labelled.is-compact > div { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 20px; }
.house-labelled.is-compact dt { padding-top: 3px; }
.house-labelled.is-compact dd { max-width: none; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.house-labelled.is-compact dd strong { font-weight: 650; color: var(--ink); }
.house-labelled.is-compact dd > :is(p, ul, div) + :is(ul, div, form) { margin-top: 12px; }
.house-labelled.is-compact .field-note { display: block; flex-basis: auto; font-size: 13.5px; }
@container house (max-width: 640px) {
  .house-labelled > div { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .house-labelled.is-compact > div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .house-labelled dt, .house-labelled.is-compact dt { padding-top: 0; }
}

/* The row of facts under an activity's first paragraph (a quiz's questions, time and due date; look §7.3): three across
   on a rule, each a label in small capitals (8), a fact, and a quieter sentence under it. One a row in a column of
   640 px or less. Markup: dl.house-facts > div > dt + dd (with small for the sentence). */
.house-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 28px 0 0;
  padding: 20px 0 0; border-top: 1px solid var(--line-strong); }
.house-facts > div { min-width: 0; }
.house-facts dt { margin: 0 0 6px; }
.house-facts dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.house-facts dd small { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink-3); }
@container house (max-width: 640px) {
  .house-facts { grid-template-columns: minmax(0, 1fr); gap: 16px 0; }
}

/* The foot of an activity's form or sheet (look §7.1, §7.3): the one primary action (.house-action, 12), then on the
   same line a quiet second action, a way back (.house-back) or a note; under it, a sentence on what follows. A second
   action is a .btn as tall as the primary action. Markup: p.house-foot > .house-action + (a.btn | .house-back |
   .field-note); p.house-foot-note. */
.house-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 28px 0 0; }
.house-foot .house-back { margin: 0; }
.house-foot .field-note { flex-basis: auto; }
.house-foot .btn { height: 46px; padding: 0 20px; font-size: 15px; }
.house-foot-note { max-width: 44rem; margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }

/* A list of names with their states (what is due this week): the house list (7) with the name in a column of its own
   and the state beside it. With .has-actions each row may end with a pill at the right, and every row is as tall as a
   pill, so that rows with and without one line up. On a phone the state stands under the name and the pill under
   both. Markup: ul.house-list.is-states (.has-actions) > li > span.house-list-name + span.house-list-state
   (+ a.house-pill). */
.house-list.is-states { max-width: 44rem; }
.house-list.is-states > li { display: grid; grid-template-columns: 13.5em minmax(0, 1fr); gap: 2px 14px;
  align-items: baseline; }
.house-list.is-states.has-actions > li { grid-template-columns: 13.5em minmax(0, 1fr) auto; align-items: center;
  min-height: 54px; padding: 8px 2px; }
.house-list-name { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.house-list-state { font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
/* A pill in a row keeps the pill's own hover, which the list's rule for a row's link (7) would otherwise undo. */
.house-list .house-pill:hover { color: var(--band-ink); text-decoration: none; }
@media (max-width: 640px) {
  .house-list.is-states > li, .house-list.is-states.has-actions > li { grid-template-columns: minmax(0, 1fr); }
  .house-list.is-states.has-actions > li { padding: 12px 2px; }
  .house-list.is-states .house-pill { justify-self: start; margin-top: 6px; }
}

/* A day's periods (a session page's blocks, the course plan's .plan-day): the day row (4) with a time column, the
   block's subject with what to read, and a pill at the right for the block's slides or exercise. How the learner takes
   part ("Watch") stands under the time as a house label (8). A break or lunch is a thin row (.is-gap). The period
   under way carries "Now" in the day strip's --accent. In a column of 760 px or less the pill moves under the text;
   in 560 px or less the time stands above the subject. Markup: ol.house-rows.is-periods > li.house-row (.is-gap,
   .is-now) > span.house-row-when (+ span.house-label, span.house-row-now) + div.house-row-what >
   h3.house-row-title + p, then a.house-pill. */
.house-rows.is-periods { max-width: 60rem; margin: 22px 0 0; }
.house-rows.is-periods > .house-row { grid-template-columns: 118px minmax(0, 1fr) auto; gap: 0 18px;
  align-items: baseline; }
.house-row-when { display: grid; gap: 4px; font-size: 15.5px; line-height: 1.5; font-variant-numeric: tabular-nums;
  white-space: nowrap; color: var(--ink-2); }
.house-row-now { font-size: 12px; font-weight: 650; line-height: 1.2; color: var(--accent); }
.house-row-what > p { max-width: 40rem; margin: 5px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.house-rows.is-periods > .house-row > .house-pill { align-self: center; }
.house-rows.is-periods > .house-row.is-gap { padding: 5px 2px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.house-rows.is-periods > .house-row.is-gap .house-row-when { font-size: 13px; color: var(--ink-3); }
@container house (max-width: 760px) {
  .house-rows.is-periods > .house-row { grid-template-columns: 112px minmax(0, 1fr); }
  .house-rows.is-periods > .house-row > .house-pill { grid-column: 2; justify-self: start; margin-top: 10px; }
}
@container house (max-width: 560px) {
  .house-rows.is-periods > .house-row:not(.is-gap) { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .house-rows.is-periods > .house-row:not(.is-gap) > .house-pill { grid-column: 1; }
  .house-row-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
}

/* The pager at the foot of a reading page (look §6.1, §9.4): the previous and the next day as pills, at either end of
   a rule 64 px under the text. A first day keeps its next day at the right. It does not print (look §9.5). Markup:
   nav.house-pager > a.house-pill.is-previous + a.house-pill.is-next. */
.house-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 16px; max-width: 60rem;
  margin: 64px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.house-pager > .house-pill { padding: 8px 16px; font-size: 14.5px; }
.house-pager > .is-next:only-child { margin-left: auto; }
@media print {
  .house-pager { display: none; }
}

/* Milestones (the capstone's, on Week 6's page and on the project home): the tiles (14) with each line under its title
   rather than at the tile's foot, because a milestone's line says when and may run to two lines. As rows in a column
   of 640 px or less, the first column holds the longest chip ("Week after"). Markup: ol.house-tiles.is-milestones. */
.house-tiles.is-milestones .house-tile-title { margin-bottom: .15em; }
.house-tiles.is-milestones .house-tile-line { margin-top: 0; }
@container (max-width: 640px) {
  .house-tiles.is-milestones .house-tile { grid-template-columns: 7em minmax(0, 1fr); }
}

/* Day strips side by side (the teaching day on "About the programme" and a part's page; Week 6's two kinds of day),
   each under a small-capital kicker with its sentences under it: three across, or two with .is-2; one across in a
   window of 959 px or less. Markup: div.house-strips (.is-2) > div > p.house-card-kicker + div.house-strip + p. */
.house-strips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.house-strips.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 44px; }
.house-strips .house-card-kicker { margin: 0 0 12px; }
.house-strips .house-strip ~ p { margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.house-strips .house-strip ~ p + p { margin-top: 8px; }
@media (max-width: 959px) {
  .house-strips, .house-strips.is-2 { grid-template-columns: minmax(0, 1fr); }
}
/* The key to the strip's colours: a short piece of a kind's track (.is-key on a segment), beside its name in a legend
   under the strips, or beside a heading (Week 6's morning and afternoon). Markup: ul.house-strip-key > li >
   i.house-strip-seg.is-<kind>.is-key (aria-hidden) + the name; or the i alone, inline. */
.house-strip-seg.is-key { flex: none; display: inline-block; width: 22px; height: 12px; border-radius: 999px; }
.house-strip-key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 16px 0 0;
  border-top: 1px solid var(--line); list-style: none; font-size: 13.5px; color: var(--ink-2); }
.house-strip-key > li { display: flex; align-items: center; gap: 8px; margin: 0; }

/* Week 6's day card (the verdict, ruling 7): a morning half and an afternoon half, each a short heading, a sentence,
   then what it holds (the day's practice conversations with their states, or a milestone's tag, 14). A half carries
   the colour its blocks have in the day strip, as a 3 px rule at its left: the band's for a consultancy session, the
   capstone's (.is-capstone) for capstone work. In a grid that lines up its rows (.house-cards.is-aligned) the
   mornings line up and the afternoons line up. Markup: li.house-card > .house-card-kicker, .house-card-title,
   div.house-half (×2) > h3.house-half-title + p (+ p.house-half-items-title + ul.house-half-items > li > a +
   span.house-item-state) (+ span.house-tile-tag), then div.house-card-foot. */
.house-half { align-self: start; margin: 16px 0 0; padding: 0 0 1px 14px; border-left: 3px solid var(--band); }
.house-half.is-capstone { border-left-color: var(--r-outcome); }
.house-half-title { margin: 0; font-size: 14.5px; font-weight: 650; line-height: 1.4; color: var(--ink); }
.house-card.is-closed .house-half-title { color: var(--ink-2); }
.house-half > p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.house-half > .house-half-items-title { margin: 12px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.house-half > .house-tile-tag { margin-top: 9px; }
.house-half-items { margin: 5px 0 0; padding: 0; list-style: none; font-size: 14.5px; line-height: 1.4; }
.house-half-items > li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 1px 12px; margin: 0; padding: 6px 0; border-top: 1px solid var(--line); }
.house-half-items a { color: var(--ink); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.house-half-items a:hover { color: var(--accent); text-decoration-color: currentColor; }
.house-half-items a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
/* A card's foot when it holds more than its pills or its state: a note under them ("The handbook opens when the day
   ends."). Markup: div.house-card-foot > (ul.house-pills | p.house-card-state) + p.house-card-foot-note. */
.house-card-foot { align-self: start; margin: 0; padding-top: 20px; }
.house-card-foot > .house-card-state { padding-top: 0; }
.house-card-foot-note { margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
@media print {
  .house-half { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* An item's state in words beside its name, for a learner (a practice conversation in a half; a week in the
   diagram): 13 px --ink-3; the item under way (.is-now) in --ink at 650; an item done (.is-done) in --ok. Markup:
   span.house-item-state (.is-now, .is-done). */
.house-item-state { font-size: 13px; font-weight: 400; line-height: 1.4; white-space: nowrap; color: var(--ink-3); }
.house-item-state.is-now { font-weight: 650; color: var(--ink); }
.house-item-state.is-done { color: var(--ok); }

/* A state in words for staff, as a small pill (the administration, the release tree, the staff panel): Released and
   Open (.is-released, .is-open) in --ok; Held (.is-held) in --warn; Not released, In preparation, Closed and a time
   ("Opens at 14:30") in the quiet grey, with no modifier. The words say the state, so the colour is never the only
   sign. It draws as ../styles.css's .status-chip does, which the present pages keep until their tasks replace them.
   Markup: span.house-state (.is-released, .is-open, .is-held). */
.house-state { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 650; white-space: nowrap; }
.house-state:is(.is-released, .is-open) { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.house-state.is-held { background: var(--warn-soft); color: var(--warn); }
@media print {
  .house-state { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* A row's small controls, at its right (a timed item's Open now, Hold, Close and Clear; a register's marks; a release's
   actions): ../styles.css's small buttons at 30 px (36 on a phone) and quiet actions (.link-btn.house-quiet, 1),
   wrapping when there is no room. .is-start sets them at the start of their cell, under a sentence. Markup:
   p.house-controls (.is-start) > button.btn.small | button.link-btn. */
.house-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; margin: 0; }
.house-controls .btn.small { height: 30px; padding: 0 12px; font-size: 13px; }
.house-controls .link-btn { margin: 0 4px; white-space: nowrap; }
.house-controls.is-start { justify-content: flex-start; gap: 8px 14px; }
.house-controls.is-start .link-btn { margin-left: 0; font-weight: 500; }
@media (max-width: 640px) {
  .house-controls .btn.small { height: 36px; padding: 0 10px; }
}
