/* Projects & Programs: the listing (categories.programs) and the page every
   programme shares (articles.programme). Built on inner.css (.tp-inner tokens,
   head, cards, the closing band); only what is particular to programmes is
   here. Direction: DESIGN.md. */

/* ---------- a programme's head ---------- */
.pr-title { margin: 0; }
.pr-title .tp-title { display: block; }
/* The programme's line, under its name: the reading face, large. */
.pr-line { display: block; max-width: 34ch; margin: 28px 0 0; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.35; font-weight: 400;
	color: var(--tp-on-band); text-wrap: balance; }
.pr-line::before { content: ""; display: block; width: 72px; height: 3px; background: var(--tp-sage); margin-bottom: 24px; }
.pr-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 32px 0 0; padding: 0; }
.pr-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 16px; border-radius: 999px;
	border: 1.5px solid rgba(147, 189, 182, .55); color: #fff; font-size: 15px; font-weight: 600; }
.pr-chip--status { background: var(--tp-sage); border-color: var(--tp-sage); color: var(--tp-band-deep); }
@media (prefers-reduced-motion: no-preference) {
	.pr-line, .pr-chips { animation: tp-rise .7s var(--tp-ease-out) both; }
	.pr-line { animation-delay: .2s; }
	.pr-chips { animation-delay: .3s; }
}

/* ---------- the story and the facts beside it ---------- */
.pr-story { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 88px; align-items: start; }
.pr-story--solo { grid-template-columns: minmax(0, 1fr); }
.pr-story #all_body.tp-article { max-width: 760px; margin-inline: 0; }
.pr-story--solo #all_body.tp-article { margin-inline: auto; }
/* The facts card steps up over the photo's edge, as the film card does on
   Who We Are, and stays in view beside the story. */
.pr-glance { position: sticky; top: 32px; background: #fff; border-radius: var(--tp-radius); padding: 36px 32px 32px;
	box-shadow: 0 2px 4px rgba(31, 47, 48, .06), 0 30px 60px -28px rgba(31, 47, 48, .42); }
.pr-glance::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--tp-accent); border-radius: var(--tp-radius) var(--tp-radius) 0 0; }
@media (min-width: 992px) {
	.tp-head--photo ~ .pr-main .pr-glance { margin-top: -180px; z-index: 2; }
}
.pr-glance-title { font-family: var(--tp-display); text-transform: uppercase; font-weight: 600; font-size: 30px; line-height: 1; color: var(--tp-ink); margin: 0 0 22px; }
.pr-facts { margin: 0; display: grid; gap: 0; }
.pr-facts > div { padding: 16px 0; border-top: 1px solid var(--tp-line); }
.pr-facts > div:first-child { border-top: 0; padding-top: 0; }
.pr-facts dt { font-size: 13px; font-weight: 700; color: var(--tp-muted); margin: 0 0 4px; }
.pr-facts dd { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--tp-ink); display: flex; align-items: center; gap: 10px; }
.pr-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--tp-accent); box-shadow: 0 0 0 4px rgba(44, 110, 107, .16); }
.pr-tags { margin-top: 24px; }
@media (max-width: 991px) {
	.pr-story { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.pr-glance { position: static; order: -1; padding: 28px 24px 24px; }
	.pr-story #all_body.tp-article { max-width: none; }
}

/* ---------- photos ---------- */
.pr-gallery { margin-top: 112px; padding: 96px 0 104px; background: var(--tp-tint); }
@media (max-width: 767px) { .pr-gallery { margin-top: 72px; padding: 64px 0 72px; } }

/* ---------- the next programme ---------- */
.pr-next-label { display: block; margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--tp-sage); }

/* =========================================================
   The listing (categories.programs)
   ========================================================= */
.pr-index { padding-bottom: 120px; }
.pr-list { list-style: none; margin: -64px 0 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.pr-list > li { grid-column: span 2; display: flex; min-width: 0; }
/* The newest programme is the feature; the next two share a row as a pair;
   the rest run three across. */
.pr-list > li:nth-child(2), .pr-list > li:nth-child(3) { grid-column: span 3; }
.pr-list > li.pr-feature-item { grid-column: 1 / -1; }
@media (max-width: 1099px) {
	.pr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
	.pr-list > li, .pr-list > li:nth-child(2), .pr-list > li:nth-child(3) { grid-column: auto; }
}
@media (max-width: 639px) {
	.pr-list { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: -44px; }
}

.pr-card { position: relative; display: flex; flex-direction: column; width: 100%; background: #fff; border-radius: var(--tp-radius); overflow: hidden;
	transition: transform .35s var(--tp-ease-out), box-shadow .35s var(--tp-ease-out); }
.pr-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; z-index: 2; background: var(--tp-accent);
	transform: scaleX(0); transform-origin: left center; transition: transform .45s var(--tp-ease-out); }
.pr-card:focus-within { box-shadow: 0 0 0 3px rgba(44, 110, 107, .35); }
.pr-card:focus-within::before { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
	.pr-card:hover { box-shadow: var(--tp-shadow); }
	.pr-card:hover::before { transform: scaleX(1); }
	.pr-card:hover .pr-go::after { transform: translateX(4px); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
	.pr-card:hover { transform: translateY(-4px); }
	.pr-card:hover .pr-shot img { transform: scale(1.04); }
}
.pr-shot { position: relative; aspect-ratio: 3 / 2; background: #dfe7e4; overflow: hidden; }
.pr-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--tp-ease-out); }
.pr-year { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; padding: 4px 10px; border-radius: var(--tp-radius-sm);
	background: rgba(31, 47, 48, .86); color: #fff; font-family: var(--tp-display); font-weight: 600; font-size: 17px; letter-spacing: .02em; }
.pr-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px 26px 26px; }
.pr-name { margin: 0; font-family: var(--tp-display); text-transform: uppercase; font-weight: 600; font-size: clamp(28px, 2.4vw, 36px);
	line-height: .96; color: var(--tp-ink); text-wrap: balance; overflow-wrap: anywhere; }
.pr-name a { color: inherit; }
.pr-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pr-name a:focus-visible { outline: none; }
.pr-card-line { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--tp-body);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pr-when { margin: 0; font-size: 14px; font-weight: 600; color: var(--tp-muted); }
.pr-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pr-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--tp-accent-ink); }
.pr-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tp-sage); }
.pr-go { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--tp-accent); }
.pr-go::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: transform .3s var(--tp-ease-out); }

/* The feature: the photograph on one side, the name at poster size on the
   other, stepping over it. */
@media (min-width: 900px) {
	.pr-feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); background: transparent; overflow: visible; align-items: center; }
	.pr-feature::before { display: none; }
	.pr-feature .pr-shot { grid-column: 1 / span 8; grid-row: 1; aspect-ratio: 16 / 10; border-radius: var(--tp-radius); }
	.pr-feature .pr-card-body { grid-column: 8 / span 5; grid-row: 1; position: relative; z-index: 1; background: #fff; border-radius: var(--tp-radius);
		padding: 48px 44px 40px; box-shadow: 0 2px 4px rgba(31, 47, 48, .06), 0 30px 60px -30px rgba(31, 47, 48, .4); }
	.pr-feature .pr-card-body::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--tp-accent);
		transform: scaleX(0); transform-origin: left center; transition: transform .45s var(--tp-ease-out); }
	.pr-feature:hover .pr-card-body::before, .pr-feature:focus-within .pr-card-body::before { transform: scaleX(1); }
	.pr-feature:hover { box-shadow: none; transform: none; }
	.pr-feature .pr-name { font-size: clamp(44px, 4.6vw, 72px); }
	.pr-feature .pr-card-line { font-size: 19px; -webkit-line-clamp: 4; }
}
.pr-flag { margin: 0; font-size: 14px; font-weight: 700; color: var(--tp-accent); }

.pr-empty { margin: -64px 0 0; position: relative; background: #fff; border-radius: var(--tp-radius); padding: 56px 32px; color: var(--tp-muted); font-size: 18px; }
