/*
 * Content placeholder
 * -----------------------------------------------------------------
 * Stand-in for a section whose content has been retired and is
 * awaiting a rebuild in a later prompt (e.g. the-facility.php
 * #facility-layout, the-academy.php #delivery-model, after the
 * baseline/accelerated two-track pattern was removed site-wide).
 * Reuse this class rather than inventing a new placeholder pattern.
 *
 * Markup shape:
 *   <div class="content-placeholder"><p>Section content being
 *   rebuilt - see later prompt.</p></div>
 */
.content-placeholder {
	border: 1px dashed var(--bs-border-color, #dee2e6);
	border-radius: var(--border-radius);
	padding: 2rem;
	color: var(--grey-500, #999);
	text-align: center;
}

/*
 * Initials avatar / avatar photo
 * -----------------------------------------------------------------
 * The People cards (where-we-fit.php #people) show a real photo once
 * one exists at img/avatar/{firstname}.jpg (people_avatar() in that
 * page's PHP), falling back to this filled brand-blue circle with a
 * "Photo coming soon" label otherwise. Both render at the same 110px
 * diameter so a card doesn't shift size when a photo lands.
 */
.initials-avatar {
	background-color: var(--primary);
	border-radius: 50%;
	color: #fff;
}

.avatar-pending-text {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2px;
	line-height: 1.3;
	text-align: center;
	padding: 0 14px;
}

.people-avatar-photo {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--bs-border-color, #dee2e6);
}

/*
 * Timeline rail
 * -----------------------------------------------------------------
 * Reusable right-hand-rail timeline, used on Introduction, The
 * Opportunity and Growth Pathway (see includes/timeline-rail.php).
 * Deliberately not built on theme.css's own .timeline/.timeline-box
 * classes - those are tuned for a half-page-width, alternating-column
 * layout (centered connector line, boxes floated to 45.7% width) via
 * viewport-width media queries rather than container width, so they'd
 * misrender at an actual narrow rail's width on a wide desktop screen.
 * This is a fresh, minimal, single-column implementation instead: a
 * connector line + small circular markers, sized to hold up regardless
 * of viewport width.
 *
 * Markup shape: see includes/timeline-rail.php.
 */
.timeline-rail-badge {
	display: inline-block;
	background-color: var(--primary);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: var(--border-radius);
	margin-bottom: 20px;
}

.timeline-rail-list {
	position: relative;
	margin: 0;
	padding-left: 20px;
}

.timeline-rail-list:before {
	content: "";
	position: absolute;
	top: 6px;
	bottom: 6px;
	left: 4px;
	width: 1px;
	background-color: var(--grey-400);
}

.timeline-rail-item {
	position: relative;
	padding-bottom: 24px;
}

.timeline-rail-item:last-child {
	padding-bottom: 0;
}

.timeline-rail-item:before {
	content: "";
	position: absolute;
	top: 6px;
	left: -20px;
	width: 9px;
	height: 9px;
	border-radius: 100%;
	background-color: var(--primary);
}

.timeline-rail-time {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
}

.timeline-rail-title {
	display: block;
	font-size: 15px;
	color: var(--dark);
}

.timeline-rail-body {
	font-size: 13px;
	color: var(--default);
	margin: 4px 0 0;
}

/* Growth Pathway's mixed dated/undated mode: accelerated milestones
   marked distinctly (per 07-growth-pathway.md) via a small tag plus a
   secondary-colour marker dot, rather than a whole separate layout. */
.timeline-rail-tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--secondary);
	border: 1px solid var(--secondary);
	border-radius: var(--border-radius);
	padding: 1px 6px;
	margin-bottom: 4px;
}

.timeline-rail-item-accelerated:before {
	background-color: var(--secondary);
}

/*
 * Porto theme timeline (.timeline.custom-timeline)
 * -----------------------------------------------------------------
 * theme-elements.css only styles the base .timeline/.timeline-date/
 * .timeline-box (the wide, alternating-column skeleton). The narrow
 * single-column look used in the Event demo - circular date badge,
 * .timeline-box-time label, .timeline-box-content card - is defined
 * by the ".custom-timeline" override class, which lives in
 * css/demos/demo-event-library.css. That file is demo-only and also
 * resets h2/h3 globally, so it's never linked into the shared header;
 * only the .custom-timeline-scoped rules are ported here so the real
 * component renders correctly wherever it's used outside the demo
 * (e.g. Introduction, Roadmap).
 */
section.custom-timeline {
	margin-left: 0;
}

@media (min-width: 768px) {
	section.custom-timeline {
		padding-left: 90px;
	}
}

section.custom-timeline:before {
	left: 145px;
}

@media (max-width: 767px) {
	section.custom-timeline:before {
		left: 55px;
		top: 0;
	}
}

section.custom-timeline .timeline-date {
	margin: 0 0 30px 0;
	width: 115px;
	height: 115px;
	text-align: center;
	line-height: 115px;
	border-radius: 100%;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin-left: -3px;
}

section.custom-timeline .timeline-date h3 {
	display: block;
	font-size: 22px;
	line-height: 22px;
	position: absolute;
	top: 50%;
	width: 100%;
	text-align: center;
	transform: translateY(-50%);
	text-shadow: none;
}

section.custom-timeline .timeline-date h3 span {
	font-size: 12px;
	display: block;
	opacity: 0.7;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0;
}

/*
 * Two-line era marker label (Introduction, "NEAR FUTURE")
 * -----------------------------------------------------------------
 * The default .timeline-date h3 is sized for a single short word/
 * number. A two-word label needs a smaller, equal-weight two-line
 * layout to stay centred inside the 115px marker circle.
 */
section.custom-timeline .timeline-date h3.timeline-date-2line {
	font-size: 15px;
	line-height: 15px;
	letter-spacing: 0.5px;
}

section.custom-timeline .timeline-date h3.timeline-date-2line span {
	font-size: 15px;
	line-height: 15px;
	opacity: 1;
	font-weight: 700;
	margin-top: 2px;
}

section.custom-timeline .timeline-box {
	min-height: 90px;
	background: #f4f4f4;
	border: 0;
	box-shadow: none;
}

section.custom-timeline .timeline-box.right {
	margin-top: 0;
	width: 80%;
	max-width: 100%;
}

@media (max-width: 1199px) {
	section.custom-timeline .timeline-box.right {
		width: 88%;
	}
}

@media (max-width: 991px) {
	section.custom-timeline .timeline-box.right {
		width: 70%;
	}
}

@media (max-width: 767px) {
	section.custom-timeline .timeline-box.right {
		width: 100%;
	}
}

section.custom-timeline .timeline-box.right:before {
	left: 55px;
}

section.custom-timeline .timeline-box.right .timeline-box-arrow {
	background: #f4f4f4;
	border: 0;
	box-shadow: none;
}

@media (max-width: 767px) {
	section.custom-timeline .timeline-box.right .timeline-box-arrow {
		display: none;
	}
}

@media (max-width: 767px) {
	section.custom-timeline .timeline-box-time {
		font-size: 14px;
		padding-left: 10px;
	}
}

@media (min-width: 768px) {
	section.custom-timeline .timeline-box-time {
		position: absolute;
		left: -20px;
		margin-top: 22px;
		font-size: 14px;
	}
}

section.custom-timeline .timeline-box-content {
	padding: 10px;
}

section.custom-timeline .timeline-box-content p {
	line-height: 20px;
}

section.custom-timeline .timeline-box-content-img {
	float: left;
	overflow: hidden;
	width: 70px;
	height: 70px;
	overflow: hidden;
	border-radius: 100%;
	margin-right: 15px;
}

section.custom-timeline .timeline-box-content-img img {
	width: 115px;
	max-width: initial;
	position: relative;
	left: -25%;
}

/*
 * Compact timeline card
 * -----------------------------------------------------------------
 * Modifier for section.custom-timeline .timeline-box: a title-only,
 * reduced-height variant used for press-mention entries on the
 * Introduction timeline (link text only, no description slot).
 */
section.custom-timeline .timeline-box.timeline-item--compact {
	min-height: 0;
}

section.custom-timeline .timeline-box.timeline-item--compact .timeline-box-content {
	padding: 8px 10px;
}

.timeline-item--compact .timeline-box-content a {
	text-decoration: none;
}

.timeline-item--compact .timeline-box-content a:hover {
	text-decoration: underline;
}

/*
 * Hero eyebrow highlight
 * -----------------------------------------------------------------
 * White "highlighter" background behind the hero eyebrow text on
 * index.php, tight to the text rather than block-width. Nested
 * inside the existing d-block wrapper so the block keeps controlling
 * layout/animation while this span controls the highlight itself.
 */
.hero-eyebrow-highlight {
	background-color: #fff;
	padding: 0.15em 0.5em;
	display: inline;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/*
 * Hero text wrapping guard
 * -----------------------------------------------------------------
 * The mid-word hero wrapping bug at tablet widths was actually caused
 * by the animated-letters plugin (per-letter inline-block spans), now
 * removed from the strapline markup. These overrides stay as a guard
 * so no theme rule can reintroduce mid-word breaks on the hero text.
 */
#welcome h1,
#welcome p,
#welcome strong {
	word-break: normal;
	overflow-wrap: break-word;
	hyphens: none;
}

/*
 * Feature press card (Vice News)
 * -----------------------------------------------------------------
 * Timeline card variant with an image at the top, full card width,
 * and a title line below. Sits between the standard and compact
 * variants in visual weight - image + title only, no description.
 */
section.custom-timeline .timeline-box.timeline-item--feature .timeline-box-content {
	padding: 0;
}

.timeline-item--feature .timeline-feature-img {
	display: block;
	width: 100%;
	border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.timeline-item--feature .timeline-feature-title {
	display: block;
	padding: 12px 14px;
}

.timeline-item--feature .timeline-feature-title a {
	text-decoration: none;
}

.timeline-item--feature .timeline-feature-title a:hover {
	text-decoration: underline;
}

/*
 * Era rows (Introduction)
 * -----------------------------------------------------------------
 * The Introduction body is three two-column rows - era copy left,
 * that era's timeline segment right - so each era's text top-aligns
 * with its era marker. The timeline is split into three segments
 * (.era-timeline), one per row; these overrides strip the theme's
 * section.timeline outer margins/padding and fade-capped rail so the
 * stacked segments read as one continuous, unbroken line.
 */
section.custom-timeline.era-timeline {
	float: none;
	height: 100%;
	margin: 0;
	padding-bottom: 0;
}

section.custom-timeline.era-timeline:before {
	background: #505050;
	top: 0;
	height: 100%;
}

/*
 * Era rows - timeline shift (prompt 13, desktop only)
 * -----------------------------------------------------------------
 * Pulls the whole three-segment rail up ~100px so the 2015 marker
 * sits higher against the page opening. Applied identically to all
 * three .era-timeline segments so the rail stays unbroken at the row
 * seams. Each row's own upward shift carries into where the next row
 * starts, which is what re-levels era 2 and 3's dots with the row
 * above without any change on their side - but within a row, pulling
 * only the timeline up re-opens a text/dot gap versus the era-copy
 * column next to it, so Foundation and The Build's era-copy get the
 * same -100px to close it back up. Device Decade's era-copy is left
 * alone on purpose: it's the first row, so there's no preceding row
 * to inherit the shift from, and the opening sentence of the brief
 * ("the first era marker sits higher against the page opening") is
 * the point - the 2015 dot floats up near the heading, deliberately
 * ahead of its own text block. Desktop (lg) only - mobile stacks
 * text-then-timeline and must not move.
 */
@media (min-width: 992px) {
	.era-timeline {
		margin-top: -100px;
	}

	#foundation .era-copy,
	#the-build .era-copy {
		margin-top: -100px;
	}
}

/*
 * Era image beside a timeline marker
 * -----------------------------------------------------------------
 * Fills the empty card-column space to the right of a big era marker
 * circle (Introduction, "2016"). The negative top margin pulls the
 * image level with the 115px marker; widths track .timeline-box.right
 * across the same breakpoints. Desktop only - hidden below the
 * tablet breakpoint.
 */
.timeline-era-image {
	display: block;
	width: 80%;
	height: auto;
	margin: -135px 10px 20px auto;
	border-radius: var(--border-radius);
}

@media (max-width: 1199px) {
	.timeline-era-image {
		width: 88%;
	}
}

@media (max-width: 991px) {
	.timeline-era-image {
		width: 70%;
	}
}

@media (max-width: 767px) {
	.timeline-era-image {
		display: none;
	}
}

/*
 * Stat cards (The Opportunity #market)
 * -----------------------------------------------------------------
 * Static stat/fact cards replacing the timeline-rail in the right
 * column - same shadow/radius/padding language as the site's other
 * cards (catalogue-card, accreditation-badge). The figure is sized
 * for similar visual weight to the animated .counters strong (50px)
 * without the count-up behaviour.
 */
.stat-card {
	background: #fff;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: var(--border-radius);
	box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.04);
	padding: 20px;
}

.stat-card-figure {
	display: block;
	color: var(--primary);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 8px;
}

/* Hyphenated ranges ("300-500", "8-12") are wider than a single number - size down so they don't strain the card */
.stat-card-figure-sm {
	font-size: 28px;
}

.stat-card-support {
	font-size: 14px;
	line-height: 1.5;
	color: var(--default);
}

/*
 * Citation card (The Opportunity #region)
 * -----------------------------------------------------------------
 * A sourced pull-quote, styled distinctly from .stat-card (light
 * brand-blue tint, left accent border) so it reads as evidence being
 * cited rather than another stat. The opening quote mark is a CSS
 * glyph on .citation-card-quote::before, not markup.
 */
.citation-card {
	background: rgba(28, 117, 188, 0.05);
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-left: 4px solid var(--primary);
	border-radius: var(--border-radius);
	box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.04);
	padding: 20px;
}

.citation-card-quote {
	font-size: 17px;
	font-weight: 600;
	font-style: italic;
	color: var(--dark);
	line-height: 1.5;
	margin: 0 0 12px;
}

.citation-card-quote::before {
	content: '\201C';
	display: block;
	font-style: normal;
	font-weight: 700;
	font-size: 56px;
	line-height: 0.6;
	color: var(--primary);
	margin-bottom: 10px;
}

.citation-card-attribution {
	font-size: 12px;
	color: var(--grey-500, #999);
	line-height: 1.5;
}

.citation-card-attribution a {
	color: var(--primary);
	font-weight: 600;
}

.citation-sources {
	font-size: 12px;
	color: var(--grey-500, #999);
	margin-top: 1rem;
}

/*
 * Brand strip (Marketing & Reach #brand)
 * -----------------------------------------------------------------
 * A compact, understated brand-book page: logo on light/dark tiles,
 * colour swatches and a type specimen, in one bordered card matching
 * the site's stat-card/citation-card visual family. Hex values and
 * font-family/weight are pulled directly from skin-corporate-12.css
 * and theme.css (body font-family) - see marketing-reach.php for
 * the exact values used.
 */
.brand-strip {
	background: #fff;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: var(--border-radius);
	box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.04);
	padding: 24px;
}

.brand-strip-group {
	padding: 16px 0;
	border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.brand-strip-group:first-child {
	padding-top: 0;
	border-top: none;
}

.brand-strip-group:last-child {
	padding-bottom: 0;
}

.brand-strip-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--grey-500, #999);
	margin-bottom: 12px;
}

.brand-strip-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 140px;
	height: 80px;
	border-radius: var(--border-radius);
	padding: 12px;
}

.brand-strip-tile img {
	max-width: 100%;
	max-height: 100%;
}

.brand-strip-tile-light {
	background: #fff;
	border: 1px solid var(--bs-border-color, #dee2e6);
}

.brand-strip-tile-dark {
	background: var(--primary);
}

.brand-strip-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.brand-strip-swatch-color {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	border: 1px solid var(--bs-border-color, #dee2e6);
}

.brand-strip-swatch-hex {
	font-family: monospace;
	font-size: 11px;
	color: var(--grey-500, #999);
}

.brand-strip-type-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
}

.brand-strip-type-row:last-child {
	margin-bottom: 0;
}

.brand-strip-type-heading {
	font-size: 28px;
	font-weight: 700;
}

.brand-strip-type-body {
	font-size: 14px;
	font-weight: 400;
}

.brand-strip-type-name {
	font-size: 11px;
	color: var(--grey-500, #999);
}

/*
 * Funding stack (Funding #fits)
 * -----------------------------------------------------------------
 * Three full-width bands standing in for a "pyramid of funding"
 * diagram - pure CSS, no image asset. Markup order is band 1, 2, 3
 * (matching the reading order of the surrounding copy), but the
 * container is column-reverse so band 1 (founder capital) renders at
 * the visual base and band 3 (external funding) at the top. Each
 * band gets its own corner-rounding rather than the container, so
 * the three still read as one rounded silhouette despite the small
 * gaps between them - band 1 rounds the bottom corners, band 3 the
 * top, band 2 stays square. Height comes from each band's own
 * padding (tallest at the base, shortest at the top), not a fixed
 * height, so it stays responsive.
 */
.funding-stack {
	display: flex;
	flex-direction: column-reverse;
	gap: 4px;
	margin-top: 1.5rem;
}

.funding-band {
	padding: 16px 24px;
	text-align: center;
}

.funding-band-title {
	display: block;
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 4px;
}

.funding-band-line {
	font-size: 13px;
	line-height: 1.5;
}

.funding-band-1 {
	background: var(--primary);
	color: #fff;
	padding-top: 32px;
	padding-bottom: 32px;
	border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.funding-band-1 .funding-band-line {
	color: rgba(255, 255, 255, 0.85);
}

.funding-band-2 {
	background: rgba(28, 117, 188, 0.12);
	color: var(--dark);
	padding-top: 22px;
	padding-bottom: 22px;
}

.funding-band-2 .funding-band-line {
	color: var(--default);
}

.funding-band-3 {
	background: rgba(28, 117, 188, 0.04);
	color: var(--dark);
	border: 2px dashed var(--primary);
	padding-top: 14px;
	padding-bottom: 14px;
	border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.funding-band-3 .funding-band-line {
	color: var(--default);
}

/*
 * Division cards (The Opportunity #divisions)
 * -----------------------------------------------------------------
 * Same card language as .stat-card (white bg, border, shadow,
 * padding). The Academy card carries a raised "featured" treatment -
 * it's the biggest of the three fronts and sits visually central.
 * Card images use opportunity_division_image()'s file_exists
 * placeholder pattern, matching the-facility.php's media slots.
 */
.division-card {
	background: #fff;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: var(--border-radius);
	box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.04);
	padding: 20px;
}

.division-card-featured {
	border-color: var(--primary);
	box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.08);
	transform: translateY(-16px);
}

@media (max-width: 767px) {
	.division-card-featured {
		transform: none;
	}
}

/*
 * Provider strip standout (Where We Fit #landscape)
 * -----------------------------------------------------------------
 * The Scaretech card in the provider comparison strip needs to read
 * as distinct, not "selected" - a raised/offset card reads as the
 * latter, so this is a 2px brand-blue border instead, sitting flush
 * with its neighbours and keeping .division-card's default shadow.
 * Deliberately a separate class from .division-card-featured (the
 * raised Academy treatment in the divisions block) so that one is
 * untouched.
 */
.provider-card-featured {
	border: 2px solid var(--primary);
}

.proof-tag {
	display: inline-block;
	background: var(--primary);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 20px;
	padding: 4px 12px;
}

/*
 * Press badges as links (Marketing & Reach #press)
 * -----------------------------------------------------------------
 * The outlet badges link out to the original coverage (opens new
 * tab, per the site's press-rail convention). Plain Bootstrap
 * utilities style the badge itself; this just adds hover feedback
 * since the whole card is now a link.
 */
a.accreditation-badge {
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

a.accreditation-badge:hover,
a.accreditation-badge:focus-visible {
	box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

/*
 * Course catalogue - Miller's columns (The Academy #catalogue)
 * -----------------------------------------------------------------
 * Styles for the drillable course browser rendered by
 * js/course-catalogue.js from data/courses.json. Card shadows/
 * typeface follow the Porto components already in use.
 *
 * Desktop: fixed-width columns (.catalogue-column) sit in a track
 * (.catalogue-columns) that slides via `transform: translateX` inside
 * a clipping viewport (.catalogue-viewport) - columns never resize as
 * deeper levels open, the track just slides to bring the newest one
 * fully into view. A pointer-drag on the viewport pans the track
 * manually as a fallback (no visible scrollbar).
 *
 * Column height: column 1 (root cards - no max-height, align-self:
 * flex-start so flexbox stretch never inflates it to match a taller
 * sibling) sizes to its own natural content and drives the container's
 * height. js/course-catalogue.js's updateColumnHeights() measures it
 * and applies that as max-height on every other column, which scrolls
 * internally (overflow-y: auto below) past that point.
 *
 * Below 992px the columns become a one-level drill-down with a back
 * button (unchanged from before) - no sliding, no drag, no height cap
 * (updateColumnHeights() clears max-height on mobile).
 *
 * The detail overlay (.catalogue-detail-overlay) is a dimmed, blurred
 * backdrop filling the container - columns stay visible beneath it -
 * with a centred, content-sized .catalogue-detail-panel on top (caps at
 * 90% of the container height, scrolls internally past that). Opened
 * only deliberately (dblclick / "More Information" on non-root cards),
 * not on plain selection; closes via its own button, Escape, or a click
 * on the backdrop.
 */
.course-catalogue {
	position: relative;
}

.catalogue-viewport {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
}

.catalogue-viewport::-webkit-scrollbar {
	display: none;
}

.catalogue-viewport:active {
	cursor: grabbing;
}

.catalogue-columns {
	display: flex;
	gap: 1rem;
	width: max-content;
	transition: transform 0.3s ease;
	padding-bottom: 0.5rem;
}

.catalogue-columns.is-dragging {
	transition: none;
}

.catalogue-column {
	flex: 0 0 300px;
	width: 300px;
	overflow-y: auto;
	padding-right: 2px;
}

/* Root column (column 1) sizes to its own content - see updateColumnHeights() */
.catalogue-column:first-child {
	align-self: flex-start;
}

.catalogue-card {
	background: #fff;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: var(--border-radius);
	box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.04);
	cursor: pointer;
	margin-bottom: 0.75rem;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.catalogue-card:hover,
.catalogue-card:focus-visible {
	border-color: var(--primary);
	box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.08);
	outline: none;
}

.catalogue-card.is-selected {
	border-color: var(--primary);
	box-shadow: inset 3px 0 0 var(--primary), 0 1px 5px 0 rgba(0, 0, 0, 0.04);
}

.catalogue-card-img {
	display: block;
	width: 100%;
}

.catalogue-card-body {
	padding: 14px 16px;
}

.catalogue-card-title {
	display: block;
	color: var(--dark);
	font-size: 15px;
	line-height: 1.3;
}

.catalogue-card-subtitle {
	display: block;
	color: var(--grey-500, #999);
	font-size: 12px;
	margin-top: 2px;
}

.catalogue-card-blurb {
	color: var(--default);
	font-size: 13px;
	line-height: 1.5;
	margin: 8px 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Root cards (column 1) carry no meta and no overlay - full blurb, no clamp */
.catalogue-card-root .catalogue-card-blurb {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

/* "More Information" affordance - discoverable alternative to dblclick, every non-root card, every breakpoint */
.catalogue-details-btn {
	background: none;
	border: none;
	color: var(--primary);
	font-size: 12px;
	font-weight: 600;
	padding: 0;
	margin-top: 8px;
	cursor: pointer;
}

.catalogue-details-btn:hover {
	text-decoration: underline;
}

.catalogue-status {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 20px;
	padding: 2px 10px;
}

.catalogue-status-accrediting {
	color: var(--primary);
	background-color: rgba(28, 117, 188, 0.1);
}

.catalogue-status-planned {
	color: var(--grey-500, #777);
	background-color: var(--grey-100, #f4f4f4);
}

.catalogue-status-delivering {
	color: #1d7a3d;
	background-color: rgba(29, 122, 61, 0.1);
}

.catalogue-detail-overlay {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.catalogue-detail-overlay.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.2s ease, visibility 0s linear 0s;
}

.catalogue-detail-panel {
	position: relative;
	background: #fff;
	border-radius: var(--border-radius);
	box-shadow: 0 3px 20px 0 rgba(0, 0, 0, 0.12);
	padding: 30px;
	width: 90%;
	max-width: 620px;
	max-height: 90%;
	overflow-y: auto;
	transform: scale(0.96);
	transition: transform 0.2s ease;
}

.catalogue-detail-overlay.is-open .catalogue-detail-panel {
	transform: scale(1);
}

@media (max-width: 991px) {
	.catalogue-detail-panel {
		width: 92%;
	}
}

.catalogue-detail-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	font-size: 18px;
	line-height: 1;
	color: var(--grey-500, #777);
	padding: 8px;
	cursor: pointer;
}

.catalogue-detail-close:hover {
	color: var(--dark);
}

.catalogue-detail-content {
	padding-right: 32px;
}

.catalogue-detail-title {
	margin: 8px 0 0;
}

.catalogue-detail-blurb {
	font-size: 13px;
	line-height: 1.6;
	margin: 10px 0 0;
}

.catalogue-detail-meta {
	margin: 14px 0 0;
}

.catalogue-detail-meta dt {
	color: var(--dark);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 10px;
}

.catalogue-detail-meta dd {
	font-size: 13px;
	margin: 2px 0 0;
}

@media (max-width: 991px) {
	.catalogue-viewport {
		overflow: visible;
		cursor: auto;
	}

	.catalogue-columns {
		display: block;
		width: auto;
		transform: none !important;
	}

	.catalogue-column {
		flex: none;
		width: auto;
		max-height: none;
	}
}

/*
 * Facility media slots (the-facility.php)
 * -----------------------------------------------------------------
 * Rendered by the page's facility_media_slot() helper: real stills
 * fill their ratio box edge to edge; the optional corner tag ("Future
 * scope" on Unit A3) reuses the catalogue's Planned pill styling on
 * top of the media block.
 */
.facility-media-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--border-radius);
}

.facility-media video {
	border-radius: var(--border-radius);
}

.facility-media-tag {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background-color: #fff;
}

/*
 * Narrative inline links
 * -----------------------------------------------------------------
 * Inline press links inside the Introduction's era copy: brand blue,
 * no underline until hover, clearly visible against body text.
 */
#device-decade p a,
#foundation p a,
#the-build p a {
	color: var(--primary);
	font-weight: 600;
	text-decoration: none;
}

#device-decade p a:hover,
#foundation p a:hover,
#the-build p a:hover {
	text-decoration: underline;
}
