/* landing.css: the part, week and stop pages (programme.js; task PL-05). It starts from PL-08's cut-down copy of the
   accepted preview's landing.css (foundation/PL-08/redrawn/css/landing.css) and lays out only what these pages use and
   house.css lacks. The house's parts it uses are in house.css: the landing band and label (9), the cards and today's
   and a closed card (10), the day strip (13), the tile (14), and from 15 the list of names with states, the strips
   side by side and their key, Week 6's day cards that line up their rows with their halves, an item's state, the
   milestones, a region drawn as a card, a day's periods and the row of facts. The programme diagram is PL-03's
   (diagram.css). Every colour, type family, radius and shadow is a custom property of ../styles.css or house.css. */

/* A landing label's own sentence or two, before its cards. An orientation text with no heading of its own that
   follows a card or a list stands 32 px under it, as the first region stands under the band. */
.ld-text { margin-bottom: 18px; }
.landing-page .house-main > :not(.house-landing-label, .house-band) + .house-landing-text { margin-top: 32px; }

/* The names of a day's halves over a strip, in the strip's own proportions (--m is a part's minutes). */
.ld-halves-h { display: flex; margin: 0 0 8px; padding: 0; list-style: none; font-size: 13.5px; font-weight: 650;
  line-height: 1.35; color: var(--ink); }
.ld-halves-h > li { flex: var(--m, 1) 1 0px; min-width: 0; margin: 0; padding-right: 8px; }

/* Week 6's first card has no halves: its sentence takes the two halves' rows. */
.ld-days > .house-card > .house-card-text { grid-row: 3 / span 2; margin-top: 16px; }

/* The strips of Week 6's two kinds of day, in a card with their key under them (PL-08: a region as a card). */
.card.house-region.ld-strips-card { padding: 22px 24px 20px; }
.ld-strips-card > .house-strip-key { margin-top: 20px; }

/* The course diagram on a part's page: 32 px under the text before it, as the accepted Part 1 draws it. */
.ld-diagram { margin: 32px 0 0; }
.house-band.is-landing + .ld-diagram { margin-top: 32px; }

/* A day's tag (the version of the assistant it completes) under its line on its week's card. */
.house-card > .ld-card-tag { margin-top: 10px; }

/* The exercise package's box (the course's .fetch); dashed, as a card is, while it cannot be opened. */
.ld-fetch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 28px; align-items: center;
  padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); }
.ld-fetch > p { grid-column: 1; max-width: 44rem; margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ld-fetch > .house-card-title { grid-column: 1; }
.ld-fetch > .house-action { grid-column: 2; grid-row: 1 / span 2; }
.ld-fetch.is-closed { background: none; box-shadow: none; border-style: dashed; }
.ld-fetch.is-closed > .house-card-title { color: var(--ink-3); }
@media (max-width: 640px) {
  .ld-fetch { grid-template-columns: minmax(0, 1fr); padding: 20px 20px 22px; }
  .ld-fetch > .house-action { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
}

/* A part that stands straight under its label, with no rule or margin of its own above it. These pages only: the
   stylesheet is loaded on every page, so every rule that restyles a house part is scoped to .landing-page. */
.landing-page .house-landing-label + :is(.house-facts, .house-rows.is-periods) { margin-top: 0; }
.landing-page .house-landing-label + .house-rows.is-periods > .house-row:first-child { border-top: 0; }

/* The exam's domains: each domain's name, a bar as long as its share of the scored questions, and the share in
   words, in the house list's rule (the course's exam-at-a-glance bars). */
.ld-domains { max-width: 52rem; margin: 0; padding: 0; list-style: none; }
.ld-domains > li { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 6px 20px; align-items: center;
  margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.ld-domains > li:last-child { border-bottom: 1px solid var(--line); }
.ld-domain-name { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.ld-domain-bar { grid-column: 2; grid-row: 1 / span 2; height: 10px; border-radius: 999px;
  background: linear-gradient(to right, var(--band) calc(var(--share, 0) * 2.5%), var(--surface-2) 0); }
.ld-domain-share { font-size: 14px; line-height: 1.4; color: var(--ink-3); }
@media (max-width: 640px) {
  .ld-domains > li { grid-template-columns: minmax(0, 1fr); }
  .ld-domain-bar { grid-column: 1; grid-row: auto; }
}
@media print {
  .ld-domain-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* A sub-heading inside the course's text on these pages (a part's teaching day names its kinds of day): the house's
   small heading, not the browser's (K1). A sub-heading that names a strip becomes that strip's kicker instead. */
.landing-page .house-landing-text :is(h3, h4) { margin: 22px 0 6px; font-size: 16px; font-weight: 650; line-height: 1.4;
  color: var(--ink); }
.landing-page .house-landing-text > :is(h3, h4):first-child { margin-top: 0; }
