/*
 * Page Header block — two layouts.
 *
 * .pagehead is ported from HTML/about.html, .catban from
 * HTML/productlisting.html, both unchanged. The design's crumb trail was a
 * <div>; it is a <nav> here for the landmark, so the selectors name the class
 * only.
 */

/* ======================================================================
 * Standard — the flat navy band
 * ====================================================================== */

.pagehead { background: #0C3474; color: #FFFFFF; padding: 34px 0 34px; }
.pagehead .crumb { font-size: 12.5px; color: #9CC4F5; margin-bottom: 10px; }
.pagehead .crumb a,
.pagehead .crumb a:visited { color: #9CC4F5; }
.pagehead .crumb a:hover,
.pagehead .crumb a:focus { color: #FFFFFF; }
.pagehead h1 { font-size: 36px; font-weight: 800; font-style: italic; margin: 0 0 8px; }
.pagehead p { font-size: 15px; color: #C9DCF8; margin: 0; max-width: 60ch; }

/* ======================================================================
 * Banner — photo, kicker and figures
 * ====================================================================== */

.catban { position: relative; background: #0C3474; overflow: hidden; }

/*
 * The photo occupies the right 62% and is masked to nothing by the time it
 * reaches the copy, so any picture works behind any length of title. Luminosity
 * drops its own colour and lets the navy through, which is what keeps a banner
 * on brand whatever was shot.
 */
.catban-img {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 62%;
	mix-blend-mode: luminosity;
	opacity: 0.62;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 32%, #000 66%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 32%, #000 66%);
}
.catban-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Navy over the photo's left edge, so the copy has a solid ground to sit on
   even where the picture is bright. */
.catban-grad {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #0C3474 0%, rgba(12,52,116,0.9) 26%, rgba(12,52,116,0.4) 58%, rgba(12,52,116,0) 100%);
	pointer-events: none;
}

.catban-in { position: relative; padding-top: 44px; padding-bottom: 48px; color: #FFFFFF; }
.catban .crumb { font-size: 12.5px; color: #9CC4F5; margin-bottom: 16px; }
.catban .crumb a,
.catban .crumb a:visited { color: #9CC4F5; }
.catban .crumb a:hover,
.catban .crumb a:focus { color: #FFFFFF; }
.catban-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #9CC4F5; margin: 0 0 12px; }
.catban-h { font-size: 42px; line-height: 1.12; font-weight: 800; font-style: italic; letter-spacing: -0.01em; margin: 0 0 14px; }
.catban-p { font-size: 15.5px; line-height: 1.65; color: #C9DCF8; margin: 0 0 26px; max-width: 46ch; text-wrap: pretty; }
/* No figures beneath, so the intro is the last thing in the banner and its
   closing gap would be doubled by the section's own padding. */
.catban-p:last-child { margin-bottom: 0; }

.catban-specs { display: flex; gap: 0; flex-wrap: wrap; }
.catspec { display: flex; flex-direction: column; gap: 3px; padding: 0 26px; border-right: 1px solid rgba(156,196,245,0.35); }
.catspec:first-child { padding-left: 0; }
.catspec:last-child { border-right: none; }
.catspec b { font-size: 19px; font-weight: 800; color: #FFFFFF; }
.catspec span { font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: #9CC4F5; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
	/* Too narrow for the copy and the picture to sit side by side, so the
	   photo goes full width behind everything and the fade turns vertical. */
	.catban-h { font-size: 30px; }
	.catban-img { width: 100%; opacity: 0.32; -webkit-mask-image: none; mask-image: none; }
	.catban-grad { background: linear-gradient(180deg, rgba(12,52,116,0.5) 0%, rgba(12,52,116,0.9) 76%, #0C3474 100%); }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
	.pagehead h1 { font-size: 27px; }
	.catban-in { padding-top: 28px; padding-bottom: 30px; }
	.catban-h { font-size: 26px; }
	.catban-p { font-size: 14px; margin-bottom: 20px; }
	/* The row wraps at this width, so the figures need a gap of their own —
	   a wrapped line would otherwise sit flush against the one above it. */
	.catban-specs { gap: 16px 0; }
	.catspec { padding: 0 16px; }
	.catspec b { font-size: 16px; }
}
