/*
 * Skycon Air content blocks (AC type pages).
 * Loaded only on the page templates that render template-parts/content-blocks.php.
 * Square geometry and the logo diamond are the only ornaments; colours follow the theme palette.
 */

.scb,
.scb-related {
	--scb-ink: #00141d;
	--scb-navy: #00212f;
	--scb-blue: #009fd9;
	--scb-blue-ink: #016e95;
	--scb-body: #434343;
	--scb-muted: #5a6a72;
	--scb-mist: #f4f7f9;
	--scb-ice: #e6f5fb;
	--scb-line: #dce4e8;
	--scb-on-dark: #a9c3cf;
	--scb-gap: clamp(64px, 8vw, 112px);
	--scb-h2: clamp(1.875rem, 1.2rem + 2.2vw, 2.75rem);
	color: var(--scb-body);
	font-family: articulat-cf, sans-serif;
	font-size: 1rem;
	line-height: 1.7;
}

.scb {
	padding-bottom: var(--scb-gap);
}

.scb-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.scb .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.scb-ico {
	width: 24px;
	height: 24px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: square;
	stroke-linejoin: miter;
}

/* Prose and links ------------------------------------------------------ */

.scb-prose > * + *,
.scb-intro > * + *,
.scb-lead__text > * + *,
.scb-cta__text > * + *,
.scb-card__text > * + * {
	margin-top: 0.9em;
}

.scb-prose {
	max-width: 68ch;
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
	line-height: 1.75;
}

.scb a:not(.scb-btn) {
	color: var(--scb-blue-ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.scb a:not(.scb-btn):hover {
	color: var(--scb-navy);
	text-decoration-thickness: 2px;
}

.scb a:focus-visible,
.scb-table-wrap:focus-visible,
.scb-related a:focus-visible {
	outline: 3px solid var(--scb-blue);
	outline-offset: 3px;
}

/* Section frame ---------------------------------------------------------- */

.scb-sec {
	padding-top: var(--scb-gap);
}

.scb-split,
.scb-stack {
	display: grid;
	gap: 32px;
}

.scb-stack > .scb-head {
	max-width: 52rem;
}

.scb-head {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.scb-num {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--scb-blue-ink);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1;
}

.scb-num__mark {
	width: 16px;
	height: 16px;
	color: var(--scb-blue);
}

.scb-h2,
.scb-cta__title {
	margin: 0;
	color: var(--scb-ink);
	font-size: var(--scb-h2);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.scb-h3 {
	margin: 0;
	color: var(--scb-ink);
	font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.375rem);
	font-weight: 700;
	line-height: 1.3;
}

.scb-intro {
	max-width: 60ch;
}

.scb-eyebrow {
	margin: 0;
	color: var(--scb-blue);
	font-family: kaushan-script, cursive;
	font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
	line-height: 1.15;
}

.scb-tile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	flex: none;
	background: var(--scb-ice);
	color: var(--scb-blue-ink);
}

.scb-body {
	min-width: 0;
}

.scb-note {
	margin-top: 24px;
}

/* Intro ------------------------------------------------------------------ */

.scb-lead__body {
	display: grid;
	gap: 24px;
	align-items: center;
}

.scb-lead__text {
	max-width: 62ch;
	color: var(--scb-navy);
	font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
	line-height: 1.6;
}

.scb-lead__media {
	position: relative;
	display: grid;
	place-items: center;
	width: 200px;
	aspect-ratio: 1;
}

.scb-lead__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.scb-lead__frame-outer {
	fill: var(--scb-mist);
	stroke: var(--scb-line);
	stroke-width: 1.5;
}

.scb-lead__frame-inner {
	fill: none;
	stroke: var(--scb-blue);
	stroke-width: 1.5;
}

.scb-lead__img {
	position: relative;
	display: block;
	width: 88%;
}

.scb-lead__img img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 10px 14px rgba(0, 33, 47, 0.16));
}

/* Feature cards ---------------------------------------------------------- */

.scb-cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	border-top: 1px solid var(--scb-line);
	border-left: 1px solid var(--scb-line);
}

.scb-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(24px, 2.4vw, 32px);
	border-right: 1px solid var(--scb-line);
	border-bottom: 1px solid var(--scb-line);
	background: #fff;
	transition: background-color 0.2s ease;
}

.scb-card:hover {
	background: var(--scb-mist);
}

.scb-card__text {
	font-size: 1rem;
	line-height: 1.65;
}

/* Process steps ---------------------------------------------------------- */

.scb-steps {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.scb-step {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 24px;
	border-top: 3px solid var(--scb-navy);
}

.scb-step:first-child {
	border-top-color: var(--scb-blue);
}

.scb-step__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.scb-step__n {
	color: var(--scb-blue);
	font-family: kaushan-script, cursive;
	font-size: 2.75rem;
	line-height: 1;
}

/* Tables ----------------------------------------------------------------- */

.scb-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--scb-line);
	-webkit-overflow-scrolling: touch;
}

.scb-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
	line-height: 1.5;
}

.scb-table th,
.scb-table td {
	padding: 16px 22px;
	text-align: left;
	vertical-align: top;
}

.scb-table thead th {
	background: var(--scb-navy);
	color: #fff;
	font-weight: 700;
}

.scb-table thead th a {
	color: #fff !important;
	text-decoration-color: var(--scb-blue) !important;
}

.scb-table thead th.is-hl {
	background: var(--scb-blue);
	color: var(--scb-ink);
}

.scb-hl-mark {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 8px;
	vertical-align: 0;
}

.scb-table tbody th,
.scb-table tbody td {
	border-top: 1px solid var(--scb-line);
}

.scb-table tbody th {
	color: var(--scb-ink);
	font-weight: 700;
}

.scb-table tbody tr:nth-child(even) th,
.scb-table tbody tr:nth-child(even) td {
	background: var(--scb-mist);
}

.scb-table tbody td.is-hl,
.scb-table tbody tr:nth-child(even) td.is-hl {
	background: var(--scb-ice);
	color: var(--scb-navy);
	font-weight: 600;
}

/* Situation → answer rows ------------------------------------------------ */

.scb-rows__head {
	display: none;
	padding: 0 4px 12px;
	border-bottom: 2px solid var(--scb-navy);
	color: var(--scb-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.scb-rows {
	margin: 0;
	border-top: 2px solid var(--scb-navy);
}

.scb-rows__head + .scb-rows {
	border-top: 0;
}

.scb-row {
	display: grid;
	gap: 8px;
	padding: 18px 4px;
	border-bottom: 1px solid var(--scb-line);
}

.scb-row dt {
	color: var(--scb-ink);
	font-weight: 700;
}

.scb-row dd {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
}

.scb-row__arrow {
	color: var(--scb-blue-ink);
	margin-top: 1px;
}

/* Included / extra -------------------------------------------------------- */

.scb-lists {
	display: grid;
	gap: 24px;
}

.scb-list {
	padding: clamp(24px, 2.4vw, 32px);
	border-top: 4px solid var(--scb-blue);
	background: var(--scb-mist);
}

.scb-list--extra {
	border: 1px solid var(--scb-line);
	border-top: 4px solid var(--scb-navy);
	background: #fff;
}

.scb-list__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
}

.scb-list__count {
	flex: none;
	color: var(--scb-muted);
	font-size: 0.8125rem;
	font-weight: 700;
}

.scb-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.scb-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 0;
	border-top: 1px solid var(--scb-line);
	line-height: 1.5;
}

.scb-list li .scb-ico {
	width: 20px;
	height: 20px;
	margin-top: 1px;
	color: var(--scb-blue-ink);
}

.scb-list--extra li .scb-ico {
	color: var(--scb-navy);
}

/* Panels ------------------------------------------------------------------ */

.scb-panel {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: clamp(24px, 3vw, 36px);
	background: var(--scb-mist);
}

.scb-panel--warning {
	background: var(--scb-navy);
	color: var(--scb-on-dark);
}

.scb-panel--warning .scb-tile {
	background: var(--scb-blue);
	color: var(--scb-ink);
}

.scb-panel--warning a:not(.scb-btn) {
	color: #fff;
	text-decoration-color: var(--scb-blue);
}

/* Closing band ------------------------------------------------------------ */

.scb-cta {
	position: relative;
	display: grid;
	gap: 32px;
	overflow: hidden;
	padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 64px);
	background: var(--scb-navy);
	color: var(--scb-on-dark);
}

.scb-cta__mark {
	position: absolute;
	top: -120px;
	right: -120px;
	width: 420px;
	height: 420px;
	fill: none;
	stroke: var(--scb-blue);
	stroke-width: 1.5;
	opacity: 0.14;
	pointer-events: none;
}

.scb-cta__copy,
.scb-cta__actions {
	position: relative;
	display: flex;
	flex-direction: column;
}

.scb-cta__copy {
	gap: 16px;
}

.scb-cta__title {
	color: #fff;
}

.scb-cta__text {
	font-size: 1.0625rem;
	line-height: 1.75;
}

.scb-cta a:not(.scb-btn) {
	color: #fff;
	text-decoration-color: var(--scb-blue);
}

.scb-cta a:not(.scb-btn):hover {
	color: #fff;
	text-decoration-color: #fff;
}

.scb-cta__actions {
	justify-content: center;
	gap: 14px;
}

.scb-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 60px;
	padding: 12px 24px;
	border: 1px solid var(--scb-blue);
	color: #fff;
	font-family: articulat-cf, sans-serif;
	font-size: 1.1875rem; /* 19px bold counts as large text for the 3:1 contrast on Skycon blue. */
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.scb-btn--solid {
	background: var(--scb-blue);
}

.scb-btn--solid:hover {
	border-color: #016e95;
	background: #016e95;
	color: #fff;
}

.scb-btn--line:hover {
	background: var(--scb-blue);
	color: #fff;
}

.scb-btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

/* Child page list (System Inner Page) -------------------------------------- */

.scb-related {
	padding-bottom: var(--scb-gap);
}

.scb-related__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--scb-line);
	border-left: 1px solid var(--scb-line);
}

.scb-related__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	border-right: 1px solid var(--scb-line);
	border-bottom: 1px solid var(--scb-line);
	transition: background-color 0.2s ease;
}

.scb-related__item:hover {
	background: var(--scb-mist);
}

.scb-related__item a {
	color: var(--scb-ink);
	text-decoration: none;
}

/* The whole card is the link target; the heading link stretches over it. */
.scb-related__item a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.scb-related__item p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.scb-related__go {
	margin-top: auto;
	color: var(--scb-blue-ink);
}

/* Phones: tables become one card per row ----------------------------------- */

@media (max-width: 767px) {
	.scb-table-wrap {
		overflow: visible;
		border: 0;
	}

	.scb-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.scb-table,
	.scb-table tbody,
	.scb-table tr,
	.scb-table th,
	.scb-table td {
		display: block;
		width: 100%;
	}

	.scb-table tbody tr {
		margin-bottom: 12px;
		border: 1px solid var(--scb-line);
		border-top: 3px solid var(--scb-blue);
	}

	.scb-table tbody th,
	.scb-table tbody tr:nth-child(even) th {
		padding: 14px 16px;
		border-top: 0;
		background: var(--scb-mist);
	}

	.scb-table tbody td,
	.scb-table tbody tr:nth-child(even) td {
		display: grid;
		grid-template-columns: 7.5rem minmax(0, 1fr);
		gap: 12px;
		padding: 12px 16px;
		background: #fff;
	}

	.scb-table tbody td::before {
		content: attr(data-label);
		color: var(--scb-muted);
		font-size: 0.75rem;
		font-weight: 700;
		letter-spacing: 0.08em;
		line-height: 1.6;
		text-transform: uppercase;
	}

	.scb-table tbody td.is-hl::before {
		color: var(--scb-blue-ink);
	}

	.scb-tile {
		width: 44px;
		height: 44px;
	}
}

/* Tablets and up ---------------------------------------------------------- */

@media (min-width: 768px) {
	.scb-cards--2,
	.scb-cards--3,
	.scb-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.scb-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.scb-lists {
		grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	}

	.scb-rows__head {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
		gap: 24px;
	}

	.scb-rows__head span + span {
		padding-left: 36px;
	}

	.scb-row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
		gap: 24px;
		align-items: center;
		padding: 20px 4px;
	}

	.scb-panel {
		flex-direction: row;
		gap: 24px;
	}

	.scb-lead.has-media .scb-lead__body {
		grid-template-columns: minmax(0, 1fr) 200px;
		gap: 40px;
	}
}

/* Desktop ------------------------------------------------------------------- */

@media (min-width: 1024px) {
	.scb-split {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		gap: 64px;
		align-items: start;
	}

	.scb-stack {
		gap: 48px;
	}

	.scb-split > .scb-head {
		position: sticky;
		top: 140px;
	}

	.scb-cards--3,
	.scb-related__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.scb-steps--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.scb-steps--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.scb-cta {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		gap: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.scb-card,
	.scb-btn,
	.scb-related__item {
		transition: none;
	}
}

@media (forced-colors: active) {
	.scb-table thead th.is-hl,
	.scb-table tbody td.is-hl {
		border: 2px solid CanvasText;
	}
}
