/*
	Feature and Solution detail pages

	One stylesheet for all eleven - they share php/includes/detail-page.php, so they share this.
	Only the pieces that layout does not already cover: the breadcrumb trail, the plan-availability
	strip, and the width of the how-it-works column.
*/

/* ---------------------------------------------------------------- Breadcrumb */

/* Sits on the dark hero, above the title */
.dp-crumbs {
	margin-bottom: 20px;
}

.dp-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.dp-crumbs li {
	display: flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.5);
}

/* The separator is drawn rather than typed, so it is never read out as content */
.dp-crumbs li + li:before {
	content: "/";
	color: rgba(255, 255, 255, 0.28);
}

.dp-crumbs a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
}

.dp-crumbs a:hover,
.dp-crumbs a:focus {
	color: #ffffff;
	text-decoration: underline;
}


/* ---------------------------------------------------------------- How it works */

/* The steps read as a single column of prose - full width they turn into one line of text per
   step with the number stranded at the far left */
.dp-detail-steps {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}


/* ---------------------------------------------------------------- Plan strip */

.dp-plan-strip {
	padding: 32px 0;
	background: #ffffff;
	border-top: 1px solid var(--dp-line);
	border-bottom: 1px solid var(--dp-line);
}

.dp-plan-strip-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
	align-items: center;
	justify-content: space-between;
}

.dp-plan-strip-label {
	margin: 0 0 10px 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--dp-ink-soft);
}

.dp-plan-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dp-plan-chips > li {
	padding: 6px 14px;
	border: 1px solid rgba(33, 150, 243, 0.35);
	border-radius: 20px;
	background: rgba(33, 150, 243, 0.07);
	font-size: 13px;
	font-weight: 600;
	color: var(--dp-blue);
}

.dp-plan-strip-note {
	margin: 12px 0 0 0;
	font-size: 13px;
	color: var(--dp-ink-soft);
}


/* ---------------------------------------------------------------- Media */

.dp-media {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
}

.dp-media img {
	display: block;
	width: 100%;
	height: auto;
}

/* Placeholder styling is deliberately visible - nobody should be able to ship a page with the
   filler still in it without noticing */
.dp-media.is-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	border: 2px dashed rgba(33, 150, 243, 0.4);
	background-color: rgba(33, 150, 243, 0.05);
	background-image: repeating-linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0 1px, rgba(33, 150, 243, 0) 1px 9px);
}

.dp-media-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	max-width: 420px;
	padding: 24px;
	text-align: center;
}

.dp-media-placeholder i {
	font-size: 30px;
	color: var(--dp-blue);
}

.dp-media-flag {
	padding: 4px 10px;
	border-radius: 20px;
	background: rgba(33, 150, 243, 0.12);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dp-blue);
}

.dp-media-label {
	font-size: 15px;
	line-height: 1.5;
	color: var(--dp-ink);
}

.dp-media-size {
	font-size: 12px;
	color: var(--dp-ink-soft);
}

/* On the dark hero the placeholder reads light on dark */
.dp-hero .dp-media.is-placeholder {
	border-color: rgba(255, 255, 255, 0.28);
	background-color: rgba(255, 255, 255, 0.04);
}

.dp-hero .dp-media-label {
	color: #ffffff;
}

.dp-hero .dp-media-size {
	color: rgba(255, 255, 255, 0.6);
}


/* ---------------------------------------------------------------- Hero media */

.dp-detail-hero-media {
	position: relative;
	z-index: 1;
	max-width: 1000px;
	margin-top: 52px;
}

.dp-detail-hero-media .dp-media.is-placeholder {
	box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.55);
}

/* A real hero image sits straight on the hero - no shadow, rounding or backing */
.dp-detail-hero-media .dp-media:not(.is-placeholder) {
	border-radius: 0;
	overflow: visible;
	background: none;
	box-shadow: none;
}


/* ---------------------------------------------------------------- Showcase */

.dp-showcase {
	display: flex;
	flex-direction: column;
	gap: 88px;
}

.dp-showcase-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

/* Every second row puts the image on the left, so the page zig-zags instead of stacking */
.dp-showcase-row:nth-child(even) .dp-showcase-copy {
	order: 2;
}

.dp-showcase-copy,
.dp-showcase-media {
	min-width: 0;
}

.dp-showcase-title {
	margin: 0 0 16px 0;
	font-size: clamp(24px, 2.8vw, 32px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--dp-ink);
}

.dp-showcase-text {
	margin: 0 0 18px 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--dp-ink-soft);
}


@media (max-width: 991px) {

	.dp-showcase-row {
		gap: 36px;
	}
}


@media (max-width: 767px) {

	.dp-detail-hero-media {
		margin-top: 36px;
	}

	.dp-showcase {
		gap: 56px;
	}

	/* Stacked, the text always leads and the image follows it */
	.dp-showcase-row {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.dp-showcase-row:nth-child(even) .dp-showcase-copy {
		order: 0;
	}
}


@media (max-width: 767px) {

	.dp-crumbs ol {
		justify-content: flex-start;
	}

	.dp-plan-strip-inner {
		justify-content: flex-start;
	}
}
