/* The stripes' own pages (inc/stripe-pages/; Figma 38-20): the catalogue's look (catalogue-pages/assets/page.css,
   results.css) and what each kind adds -- its head's extras and its cards. Logical properties, brand tokens. */

.cil-spage-head { display: flex; flex-direction: column; align-items: flex-start; }
.cil-spage-head .cil-ctl-intro { max-width: 940px; }

/* A pathway's page: its title's mark in the pathway's own colour (frame 04). */
.cil-spage-head--blue .cil-ctl-title::before  { background: var(--cil-blue-dark-1); }
.cil-spage-head--green .cil-ctl-title::before { background: var(--cil-green-dark-1); }
.cil-spage-head--red .cil-ctl-title::before   { background: var(--cil-red-dark-1); }
/* The informative stripe's own page with no pathway named: the stripe itself, under the page's head. */
.cil-spage-hub { margin-block: 8px 64px; }
/* The page's head already says what the stripe's own head would. */
.cil-spage-hub .cil-l-stripe__head { display: none; }

/* ---- The narrative stripe's partner (frame 02) ---- */
.cil-spage-partner { display: inline-flex; align-items: center; gap: 14px; padding-block-start: 4px; color: var(--cil-black-regular-7); font-size: 14px; line-height: 1.2; text-decoration: none; }
.cil-spage-partner__logo {
    display: flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 8px;
    background: color-mix(in srgb, var(--cil-black-light-2) 50%, var(--cil-white)); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.cil-spage-partner__logo img { display: block; width: auto; min-width: 40px; max-width: 120px; height: 40px; object-fit: contain; }
.cil-spage-partner:is(:hover, :focus-visible) { color: var(--cil-blue-dark-1); text-decoration: none; }
.cil-spage-partner:is(:hover, :focus-visible) .cil-spage-partner__name { text-decoration: underline; text-underline-offset: 3px; }
.cil-spage-partner:is(:hover, :focus-visible) .cil-spage-partner__logo { transform: translateY(-2px); }
.cil-spage-partner:focus-visible { outline: 2px solid var(--cil-blue-dark-1); outline-offset: 4px; border-radius: 4px; }

/* ---- A grid of the kind's own cards (institutions, goals, stories, episodes, videos) ---- */
/* Every card on the page one height, the tallest's (the rows stretch alike). */
.cil-spage-grid { grid-auto-rows: 1fr; margin: 0; padding: 0; list-style: none; }
.cil-spage-grid > li { display: flex; min-width: 0; margin: 0; }
.cil-spage-grid > li > * { flex: 1; min-width: 0; }

/* ---- The goals' cards (frame 05): as tall as the design draws them ---- */
.cil-spage-grid--goals .cil-goal { min-height: 400px; }

/* ---- The tags (frame 06): a group's name and count over a hairline, its chips under it ---- */
.cil-spage-tags { display: flex; flex-direction: column; gap: 40px; }
.cil-spage-tagGroup { display: flex; flex-direction: column; gap: 14px; }
.cil-spage-tagGroup__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block-end: 14px; border-block-end: 1px solid var(--cil-black-light-3); line-height: 1.2; }
.cil-spage .cil-spage-tagGroup__name { margin: 0; color: var(--cil-black); font-size: 18px; font-weight: 700; }
.cil-spage-tagGroup__count { color: var(--cil-black-regular-7); font-size: 14px; white-space: nowrap; }
.cil-spage .cil-spage-tags .cil-spage-tagGroup__chips { justify-content: flex-start; margin: 0; padding: 0; }
.cil-spage-tag__count { flex: none; color: var(--cil-black-regular-7); font-weight: 400; }

/* ---- The stories (frame 07): three to a row, each as tall as its row ---- */
/* Every row as tall as the tallest: a video card and a written one stand the same height (one card height, page-wide). */
.cil-spage .cil-spage-grid--stories { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 24px; }
.cil-spage-grid--stories > li { min-height: 380px; }
@media (max-width: 1023px) { .cil-spage .cil-spage-grid--stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .cil-spage .cil-spage-grid--stories { grid-template-columns: minmax(0, 1fr); gap: 16px; } .cil-spage-grid--stories > li { min-height: 340px; } }

/* ---- The podcast (frame 08): the show's tile for the title's mark, the apps it is heard on, four episodes a row ---- */
.cil-spage-title--tile::before { content: none; }
.cil-spage-tile { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--cil-yellow); color: var(--cil-black); }
.cil-spage-apps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cil-spage-apps__label { color: var(--cil-black-regular-7); font-size: 14px; line-height: 1.2; }
.cil-spage-apps__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cil-spage-apps__list > li { margin: 0; }
.cil-spage-app {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; background: color-mix(in srgb, var(--cil-black-light-2) 50%, var(--cil-white));
    color: var(--cil-black); font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.cil-spage-app img { display: block; width: 18px; height: 18px; }
.cil-spage-app:is(:hover, :focus-visible) { color: var(--cil-black); text-decoration: none; transform: translateY(-2px); }
.cil-spage-app:focus-visible { outline: 2px solid var(--cil-blue-dark-1); outline-offset: 2px; }
.cil-spage .cil-spage-grid--episodes { gap: 24px; }
/* A card as tall as what it holds, as the page draws it; every card in a row the same (the grid stretches them). */
.cil-spage .cil-spage-grid--episodes .cil-l-episode { height: auto; min-height: 330px; }
.cil-spage .cil-spage-grid--episodes .cil-l-episode__cover { flex: none; height: 220px; }
@media (max-width: 767px) {
    .cil-spage-tile { width: 44px; height: 44px; border-radius: 10px; }
    .cil-spage-apps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .cil-spage-apps__list { flex-wrap: nowrap; }
}

/* ---- The videos (frame 09): four videos a row ---- */
.cil-spage .cil-spage-grid--videos { gap: 24px; }

/* ---- The recommendations (frame 10): the interests link under the line; each card in its place ---- */
.cil-spage-link { display: inline-flex; align-items: center; gap: 8px; color: var(--cil-blue-dark-1); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.cil-spage-link svg { flex: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.cil-spage-link:is(:hover, :focus-visible) { color: var(--cil-blue-dark-1); text-decoration: underline; text-underline-offset: 3px; }
.cil-spage-link:is(:hover, :focus-visible) svg { transform: translateY(-2px); }
.cil-spage-recSlot { display: flex; min-width: 0; }
.cil-spage-recSlot > * { flex: 1; min-width: 0; width: auto; margin: 0; }
.cil-spage .cil-rec-sample { max-width: none; margin: 24px 0 0; }

/* ---- Coming soon (frame 11): every opening into a calendar at once, under the line; four courses a row ---- */
.cil-spage-allCal {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border: 1px solid var(--cil-blue-dark-1);
    border-radius: 8px; color: var(--cil-blue-dark-1); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.cil-spage-allCal:is(:hover, :focus-visible) { color: var(--cil-blue-dark-1); text-decoration: none; transform: translateY(-2px); }
.cil-spage-allCal:focus-visible { outline: 2px solid var(--cil-blue-dark-1); outline-offset: 2px; }
.cil-spage .cil-spage-grid--soon { gap: 24px; }
@media (max-width: 767px) { .cil-spage-allCal { align-self: stretch; height: 44px; } }

/* ---- A kind's own last line (the institutions' way on) ---- */
.cil-spage-end { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-block-start: 24px; text-align: center; line-height: 1.2; }
.cil-spage .cil-spage-end__line { margin: 0; color: var(--cil-black-regular-7); font-size: 14px; }
.cil-spage-end__link { display: inline-flex; align-items: center; gap: 6px; color: var(--cil-blue-dark-1); font-size: 16px; font-weight: 600; text-decoration: none; }
.cil-spage-end__link svg { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.cil-spage-end__link:is(:hover, :focus-visible) { color: var(--cil-blue-dark-1); text-decoration: underline; text-underline-offset: 3px; }
.cil-spage-end__link:is(:hover, :focus-visible) svg { transform: translateX(-3px); }

@media (prefers-reduced-motion: reduce) {
    .cil-spage * { transition: none !important; animation: none !important; }
}
