/* home.css: the home page (#/) and "About the programme" (#/about), drawn by home.js (task PL-04) to the accepted
   look-accepted/home.html and about.html. It starts from PL-08's cut-down copy of the preview's home.css
   (foundation/PL-08/redrawn/css/home.css): the short landing band (house.css 9), the list of names with their states
   (.house-list.is-states), the cards that line up their rows (.house-cards.is-aligned) and the tiles (house.css 14) are
   house.css's; the programme strip and the diagram are PL-03's (diagram.css). What is here only these two pages use.
   Every colour, type family, radius and shadow is a custom property of ../styles.css or house.css.

   Parts this file adds that house.css lacks (for PL-07): "Activities you can do now" (.home-wait), the staff's list of cohorts
   in Today (.home-cohorts), the gap that keeps a row without an action in line in "Due this week" (.home-due-gap),
   and the two links at the foot (.home-about, .home-records). */

/* ---- Today ------------------------------------------------------------------------------------------------------- */

/* The band's line keeps its place, empty, until today's reply has arrived. */
.house-band-line.is-waiting { visibility: hidden; }

.card.home-today { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 36px;
  padding: 26px 28px 28px; }
/* Until today's reply has arrived the card keeps about the height it will have, so nothing below it jumps. */
.card.home-today[aria-busy="true"] { min-height: 220px; }
.home-today-main { min-width: 0; }
.home-today .house-card-title { margin: 10px 0 0; font-size: 30px; line-height: 1.15; letter-spacing: -.016em; }
.home-today-hours { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2);
  font-variant-numeric: tabular-nums; }
.home-today-text { max-width: 40rem; margin: 14px 0 0; }
.home-today-main > .house-card-kicker + .home-today-text { margin-top: 10px; }
.home-today-open { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 22px 0 0; }
.home-today-waiting { min-width: 0; padding-left: 36px; border-left: 1px solid var(--line); }
.home-today-waiting > .house-card-kicker { margin: 0 0 12px; }
/* "Activities you can do now": each row's name over its state, and its action at the right. */
.home-wait > li { flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; }
.home-wait-text { display: grid; gap: 1px; min-width: 0; }
.home-wait .house-pill { flex: none; }
.home-wait-none, .home-wait-more { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.home-wait + .home-wait-more { margin-top: 10px; }
@media (max-width: 1180px) {
  .card.home-today { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
@media (max-width: 959px) {
  .card.home-today { grid-template-columns: minmax(0, 1fr); gap: 26px 0; }
  .home-today-waiting { padding: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .card.home-today { padding: 22px 20px 22px; }
  .home-today .house-card-title { font-size: 26px; }
  .home-wait > li { flex-wrap: wrap; }
}

/* Staff's Today: one column, a row for each cohort they may see (its name, then today's session with its date and
   hours and whether it is released, or what today is instead), then the staff panel's slot. */
.card.home-today.is-staff { grid-template-columns: minmax(0, 1fr); }
.home-cohorts { margin: 14px 0 0; padding: 0; list-style: none; }
.home-cohort { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.home-cohort:last-child { padding-bottom: 0; }
.home-cohort-name { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.45; }
.home-cohort-name a { color: var(--ink); text-decoration: none; }
.home-cohort-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-cohort-session { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 4px 0 0; }
.home-cohort-title { font-family: var(--serif); font-size: 21px; line-height: 1.25; color: var(--ink);
  text-decoration: none; }
.home-cohort-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-cohort-when { font-size: 14.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.home-cohort-text { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.home-today [data-slot="staff-panel"]:not([hidden]) { margin-top: 22px; }
:is(.home-cohort-name, .home-cohort-session) a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px;
  border-radius: 2px; }

/* ---- The open week, above its tiles -------------------------------------------------------------------------------- */

.home-week-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px;
  margin: 0 0 8px; }
.home-week-note { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.home-week-text { max-width: 44rem; margin: 0 0 20px; color: var(--ink-2); }
.home-week-head + .house-tiles { margin-top: 12px; }
.home-sub { margin: 30px 0 12px; }
.home-due-gap { display: block; }

/* ---- The foot: the link to "About the programme", then the page on what the portal records ------------------------ */

.home-about { margin: 28px 0 0; font-size: 16.5px; }
.home-records { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-3); }

/* The house's 2 px ring on the links that no house part rings: the foot's links, a name in "Due this week", and a link
   inside the orientation's text. */
:is(.home-about, .home-records, .home-due .house-list-name, .about-body .house-landing-text) a:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

/* ---- About the programme ------------------------------------------------------------------------------------------ */

.about-body > .house-landing-text:first-child { margin-top: 0; }
.about-diagram { display: block; }
/* The way on from "About the programme". */
.about-on { margin: 56px 0 0; }

@media print {
  .home-about, .home-records, .about-on { display: none; }
}
