/* The course and programme hero side by side on a short tablet-width window (Oren, 2026-11-20, item 675).

   Between 1024 and 1279 wide the hero is one column -- words, picture, actions (course.css, "the tablet"). That column,
   at its floor (course.css, "The tablet's column"), brings the facts card and the anchor menu onto the first screen only
   from a window 994 tall: the tallest of the 95 course and programme pages measured ends its anchor menu at 993 (1180
   wide; 991 at 1024, 964 at 1279). Under 994 the hero stands as on the desktop instead, so there is no height where
   neither holds: the words in one column, the picture filling the other, the row as tall as the window allows
   (100svh less the 344 the rest of the first screen takes, between 300 and the design's 488), so the anchor menu ends
   about 24px above the window's foot -- room for a facts card whose details wrap to a line more -- down to a window
   about 620 tall. The row follows the window alone, so the hero is one size on every page (Oren, 2026-10-03), except where
   its words would overrun it: then it grows by what they lack (item 679). The room
   around the hero, the facts card's row and the anchor bar take their short sizes (the desktop's floors). The summary
   keeps the whole lines its room holds (18px words, a line is 21.6px), and as on the desktop at most three beside the
   entry bar or the tile and button pair, two under a note. 994 tall and taller, this file changes nothing. Loaded
   after course.css and media.css (register.php). */

@media (min-width: 1024px) and (max-width: 1279px) and (max-height: 993.98px) {
    .cil-course { --cd-give-nav: 17px; --cd-give-bar: 13px; --cd-give-facts: 18px; }
    .cil-course-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        /* The words' second row grows only where they need more than the picture's row (course.css, item 679). */
        grid-template-areas: "text media" "text .";
        grid-template-rows: clamp(300px, 100svh - 344px, 488px) auto;
        column-gap: 24px;
        padding-block: 16px 61px;
    }
    .cil-course-hero__text { display: flex; flex-direction: column; align-items: flex-start; grid-area: text; min-height: 0; padding-top: 0; }
    .cil-course-crumbs, .cil-course-hero__typeRow { flex: none; }
    .cil-course-hero__title { flex: none; margin-top: 12px; font-size: 28px; }
    .cil-course-hero__typeRow { margin-top: 10px; }
    .cil-course-hero__summaryBox {
        flex: 1 1 0; align-self: stretch; min-height: 0; overflow: hidden;
        margin-top: 10px;
        container: cd-summary-tablet / size;
    }
    /* The desktop's caps and the room's lines (course.css, --cd-summary-lines). */
    .cil-course-hero__summaryBox > .cil-course-hero__summary { height: auto; margin-top: 0; -webkit-line-clamp: var(--cd-summary-lines); }
    .cil-course-hero__media {
        grid-area: media; align-self: stretch; justify-self: stretch;
        width: auto; max-width: none; height: auto; max-height: 100%; aspect-ratio: auto; margin-top: 0;
    }
    .cil-course-hero__actions { flex: none; row-gap: 12px; margin-top: auto; padding-top: 12px; }
    .cil-course-hero__note, .cil-course-hero__versions { flex: none; }
}
/* Where the facts wrap (1180 and narrower, facts.css), their rows sit closer. */
@media (min-width: 1024px) and (max-width: 1180px) and (max-height: 993.98px) {
    .cil-course .cil-course-facts__row { padding-block: 8px; }
}
/* The room's whole lines (a line is 21.6px here); with less than one, kept for screen readers, drawn as nothing. */
@container cd-summary-tablet (max-height: 86.39px) { .cil-course-hero__summary { --cd-summary-room: 3; } }
@container cd-summary-tablet (max-height: 64.79px) { .cil-course-hero__summary { --cd-summary-room: 2; } }
@container cd-summary-tablet (max-height: 43.19px) { .cil-course-hero__summary { --cd-summary-room: 1; } }
@container cd-summary-tablet (max-height: 21.59px) { .cil-course-hero__summary { opacity: 0; } }
