/*
Theme Name: Savannah Screenprint
Theme URI: https://www.savannahtourism.org/
Description: Block theme for savannahtourism.org. Flat travel-poster illustration, ticket-stub tiles and a guide layout with a contents sidebar that follows the reader. Guides stay exactly as stored: the contents list, FAQ cards, sources box and related tickets are derived when a page is rendered.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: savannah-screenprint
*/

/* ==========================================================================
   1. Tokens and base
   ========================================================================== */

:root {
	--sp-navy: #17324D;
	--sp-red: #C93A22;
	--sp-sun: #E8472B;
	--sp-marigold: #F6B93B;
	--sp-marigold-light: #FFE2A0;
	--sp-teal: #1C7C7A;
	--sp-teal-bright: #2AA5A1;
	--sp-paper: #FFF1D6;
	--sp-paper-light: #FFF8EA;
	--sp-white: #FFFFFF;
	--sp-muted: #4A5E73;
	--sp-muted-navy: #D8D2C0;
	--sp-rule: #C9C2AE;
	--sp-navy-rule: #46607A;

	--sp-display: var(--wp--preset--font-family--display, Anton, Impact, sans-serif);
	--sp-script: var(--wp--preset--font-family--script, Yellowtail, cursive);
	--sp-body: var(--wp--preset--font-family--body, Outfit, system-ui, sans-serif);

	--sp-gutter: clamp(20px, 4vw, 56px);
	--sp-radius: 14px;
	--sp-radius-btn: 10px;
	--sp-radius-chip: 8px;
	--sp-header-h: 64px;
	--sp-admin: var(--wp-admin--admin-bar--height, 0px);
	--sp-focus: var(--sp-navy);
}

@media (max-width: 781px) {
	:root {
		--sp-radius: 12px;
	}
}

/* Fallback faces sized to the web fonts, so text barely moves when they arrive. */
@font-face {
	font-family: "Anton Fallback";
	src: local("Impact"), local("Haettenschweiler"), local("Arial Narrow Bold"), local("Arial Narrow");
	size-adjust: 91%;
	ascent-override: 129%;
	descent-override: 36%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Outfit Fallback";
	src: local("Segoe UI"), local("Helvetica Neue"), local("Arial");
	size-adjust: 100%;
	ascent-override: 100%;
	descent-override: 26%;
	line-gap-override: 0%;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

img,
svg {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	text-underline-offset: 0.16em;
	text-decoration-thickness: 0.08em;
}

h1,
h2,
h3 {
	margin: 0;
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

[hidden] {
	display: none !important;
}

/* The theme lays out its own regions: no automatic gap between header, main and footer.
   The footer sits at the bottom of the window on short pages. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--sp-admin));
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}

.sp-main,
.sp-main > *,
.sp-header > *,
.sp-menu > *,
.sp-titleband > *,
.sp-titleband__aside > *,
.sp-section > *,
.sp-cards > *,
.sp-trust > *,
.sp-trust__item > *,
.sp-guide > *,
.sp-article > *,
.sp-footer > *,
.sp-footer__top > *,
.sp-listhead > *,
.sp-results > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Focus: 3px, navy on light grounds, marigold on navy. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--sp-focus);
	outline-offset: 2px;
}

.sp-titleband,
.sp-guidehead,
.sp-listhead,
.sp-footer {
	--sp-focus: var(--sp-marigold);
}

.sp-skip {
	position: absolute;
	left: 8px;
	top: -120px;
	z-index: 1000;
	padding: 12px 18px;
	border-radius: var(--sp-radius-btn);
	background: var(--sp-navy);
	color: var(--sp-paper);
	font-weight: 700;
	text-decoration: none;
}

.sp-skip:focus {
	top: calc(8px + var(--sp-admin));
	color: var(--sp-paper);
	outline-color: var(--sp-marigold);
	outline-offset: -6px;
}

.sp-editor-note {
	padding: 14px 18px;
	border: 2px dashed var(--sp-navy);
	border-radius: var(--sp-radius);
	background: var(--sp-white);
	color: var(--sp-navy);
	font: 600 15px/1.4 var(--sp-body);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Buttons */
.wp-block-button__link,
.wp-block-search__button,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	text-decoration: none;
	cursor: pointer;
}

.wp-block-button__link:hover,
.wp-block-search__button:hover {
	background: var(--sp-navy);
	color: var(--sp-paper);
}

.wp-block-button__link.has-marigold-background-color:hover {
	background: var(--sp-paper) !important;
	color: var(--sp-navy) !important;
}

/* ==========================================================================
   2. Header
   ========================================================================== */

.wp-site-blocks > header.wp-block-template-part {
	background: var(--sp-paper);
}

.sp-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding: 18px var(--sp-gutter);
	background: var(--sp-paper);
}

.sp-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--sp-navy);
	text-decoration: none;
}

.sp-brand:hover {
	color: var(--sp-navy);
}

.sp-badge {
	flex: none;
	display: block;
	width: 54px;
	height: 54px;
	border-radius: 50%;
}

.sp-badge--logo {
	object-fit: contain;
	border-radius: 0;
}

.sp-brand__words {
	display: flex;
	align-items: baseline;
	gap: 8px;
	white-space: nowrap;
}

.sp-brand__word {
	font-family: var(--sp-display);
	font-size: 32px;
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.sp-brand__script {
	font-family: var(--sp-script);
	font-size: 30px;
	line-height: 1;
	color: var(--sp-red);
}

.sp-header__tools {
	display: none;
}

.sp-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 6px 26px;
}

.sp-menu .sp-menu__search,
.sp-menu .sp-topics--menu {
	display: none;
}

.sp-nav.wp-block-navigation {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sp-nav .wp-block-navigation__container {
	gap: 6px 26px;
}

.sp-nav .wp-block-navigation-item__content {
	display: block;
	padding: 12px 0;
	border-bottom: 3px solid transparent;
	color: var(--sp-navy);
	text-decoration: none;
}

.sp-nav .wp-block-navigation-item__content:hover {
	color: var(--sp-red);
}

.sp-nav .is-current-section > .wp-block-navigation-item__content,
.sp-nav .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: var(--sp-red);
}

.sp-header__cta .wp-block-button__link {
	padding: 0 22px;
}

.sp-iconbtn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--sp-radius-btn);
	color: var(--sp-navy);
}

.sp-iconbtn--menu {
	background: var(--sp-navy);
	color: var(--sp-paper);
}

.sp-iconbtn--menu:hover {
	color: var(--sp-marigold);
}

.sp-iconbtn .sp-icon--close,
.sp-iconbtn--nojs-close {
	display: none;
}

@media (max-width: 781px) {
	.wp-site-blocks > header.wp-block-template-part {
		position: sticky;
		top: var(--sp-admin);
		z-index: 100;
	}

	.sp-header {
		flex-wrap: nowrap;
		gap: 8px;
		height: var(--sp-header-h);
		padding: 0 12px 0 16px;
		border-bottom: 2px solid transparent;
	}

	.sp-header.is-condensed {
		border-bottom-color: var(--sp-navy);
	}

	.sp-brand {
		gap: 8px;
		min-width: 0;
	}

	.sp-badge {
		width: 40px;
		height: 40px;
	}

	.sp-brand__words {
		gap: 6px;
	}

	.sp-brand__word {
		font-size: 24px;
	}

	.sp-brand__script {
		font-size: 22px;
	}

	.sp-header.is-condensed .sp-badge {
		width: 34px;
		height: 34px;
	}

	.sp-header.is-condensed .sp-badge__spray {
		display: none;
	}

	.sp-header.is-condensed .sp-brand__word {
		font-size: 21px;
	}

	.sp-header.is-condensed .sp-brand__script,
	.sp-header.is-condensed .sp-iconbtn--search {
		display: none;
	}

	.sp-header__tools {
		display: flex;
		flex: none;
		gap: 2px;
	}

	/* The menu panel: full screen under the header, navy, with every topic. */
	.sp-menu {
		--sp-focus: var(--sp-marigold);
		position: fixed;
		inset: calc(var(--sp-admin) + var(--sp-header-h)) 0 0 0;
		z-index: 99;
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-start;
		gap: 20px;
		padding: 20px 20px 48px;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--sp-navy);
		color: var(--sp-paper);
		visibility: hidden;
	}

	.sp-menu-open .sp-menu,
	.no-js .sp-menu:target {
		visibility: visible;
	}

	.sp-menu-open .sp-iconbtn[data-sp-menu="toggle"] .sp-icon--menu {
		display: none;
	}

	.sp-menu-open .sp-iconbtn[data-sp-menu="toggle"] .sp-icon--close {
		display: block;
	}

	.no-js .sp-header:has(.sp-menu:target) .sp-iconbtn[data-sp-menu="toggle"] {
		display: none;
	}

	.no-js .sp-header:has(.sp-menu:target) .sp-iconbtn--nojs-close {
		display: flex;
	}

	.no-js .sp-header:has(.sp-menu:target) .sp-iconbtn--nojs-close .sp-icon--close {
		display: block;
	}

	html.sp-menu-open {
		overflow: hidden;
	}

	.sp-menu .sp-menu__search,
	.sp-menu .sp-topics--menu {
		display: block;
	}

	.sp-menu .wp-block-search__inside-wrapper {
		gap: 8px;
	}

	.sp-menu .wp-block-search__input {
		border-color: var(--sp-paper);
	}

	.sp-menu .wp-block-search__button {
		background: var(--sp-marigold);
		color: var(--sp-navy);
	}

	.sp-nav.wp-block-navigation {
		font-size: 17px;
	}

	.sp-nav .wp-block-navigation__container {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.sp-nav .wp-block-navigation-item {
		border-bottom: 2px dashed var(--sp-navy-rule);
	}

	.sp-nav .wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		min-height: 52px;
		padding: 0;
		border-bottom: 0;
		color: var(--sp-paper);
	}

	.sp-nav .wp-block-navigation-item__content:hover {
		color: var(--sp-marigold);
	}

	.sp-nav .is-current-section > .wp-block-navigation-item__content,
	.sp-nav .current-menu-item > .wp-block-navigation-item__content {
		color: var(--sp-marigold);
	}

	.sp-header__cta .wp-block-button,
	.sp-header__cta .wp-block-button__link {
		width: 100%;
	}

	.sp-header__cta .wp-block-button__link {
		min-height: 56px;
		background: var(--sp-marigold);
		color: var(--sp-navy);
	}
}

/* Search field (menu panel, search page, 404) */
.wp-block-search__label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.wp-block-search__inside-wrapper {
	display: flex;
	gap: 10px;
}

.wp-block-search__input {
	flex: 1;
	min-width: 0;
	min-height: 52px;
	padding: 0 16px;
	border: 2px solid var(--sp-navy);
	border-radius: var(--sp-radius-btn);
	background: var(--sp-white);
	color: var(--sp-navy);
	font: 400 17px/1.2 var(--sp-body);
	appearance: none;
}

.wp-block-search__button {
	min-height: 52px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: var(--sp-radius-btn);
	background: var(--sp-red);
	color: var(--sp-white);
	font: 700 15px/1.2 var(--sp-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ==========================================================================
   3. Tickets (topics, related guides, child guides)
   ========================================================================== */

.sp-topics,
.sp-topics__list,
.sp-tickets {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sp-topics {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.sp-tickets {
	grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
	line-height: 1.2;
}

.sp-ticket {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
	min-height: 150px;
	padding: 14px 16px;
	border-radius: var(--sp-radius);
	background: var(--sp-navy);
	color: var(--sp-paper);
	text-decoration: none;
}

a.sp-ticket:hover,
.sp-ticket a:hover {
	color: inherit;
}

.sp-ticket__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-bottom: 8px;
	border-bottom: 2px dashed currentColor;
}

.sp-ticket__num {
	font-family: var(--sp-display);
	font-size: 38px;
	line-height: 1;
}

.sp-ticket__label {
	margin-left: auto;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	white-space: nowrap;
}

.sp-ticket__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	color: inherit;
	text-decoration: none;
}

/* List tickets hold a real link on the title; the whole ticket is its target. */
li.sp-ticket .sp-ticket__title::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

li.sp-ticket .sp-ticket__title:focus-visible {
	outline: none;
}

li.sp-ticket:has(.sp-ticket__title:focus-visible) {
	outline: 3px solid var(--sp-focus);
	outline-offset: 2px;
}

.sp-ticket__desc {
	display: block;
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.4;
}

.sp-ticket__desc::first-letter {
	text-transform: uppercase;
}

.sp-tickets .sp-ticket {
	justify-content: flex-start;
	gap: 12px;
}

.sp-tickets .sp-ticket__num {
	font-size: 30px;
}

/* Colour cycle. Text is paper on navy, white on red and teal, navy on marigold.
   Six columns: 01 navy, 02 red, 03 marigold, 04 teal, 05 marigold, 06 teal, then in
   pairs so neighbours along a row always differ. */
.sp-ticket:nth-child(8n + 2),
.sp-ticket:nth-child(8n) {
	background: var(--sp-red);
	color: var(--sp-white);
}

.sp-ticket:nth-child(8n + 3),
.sp-ticket:nth-child(8n + 5) {
	background: var(--sp-marigold);
	color: var(--sp-navy);
}

.sp-ticket:nth-child(8n + 4),
.sp-ticket:nth-child(8n + 6) {
	background: var(--sp-teal);
	color: var(--sp-white);
}

/* Short lists (related, child guides): navy, red, teal, marigold in turn. */
.sp-tickets .sp-ticket:nth-child(n) {
	background: var(--sp-navy);
	color: var(--sp-paper);
}

.sp-tickets .sp-ticket:nth-child(4n + 2) {
	background: var(--sp-red);
	color: var(--sp-white);
}

.sp-tickets .sp-ticket:nth-child(4n + 3) {
	background: var(--sp-teal);
	color: var(--sp-white);
}

.sp-tickets .sp-ticket:nth-child(4n) {
	background: var(--sp-marigold);
	color: var(--sp-navy);
}

@media (prefers-reduced-motion: no-preference) {
	.sp-ticket,
	.sp-next {
		transition: transform 120ms;
	}

	.sp-ticket:hover,
	.sp-next:hover {
		transform: translateY(-4px);
	}
}

@media (max-width: 1099px) {
	.sp-topics {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Three columns: navy, red, marigold / teal, navy, red ... */
	.sp-topics .sp-ticket:nth-child(n) {
		background: var(--sp-navy);
		color: var(--sp-paper);
	}

	.sp-topics .sp-ticket:nth-child(4n + 2) {
		background: var(--sp-red);
		color: var(--sp-white);
	}

	.sp-topics .sp-ticket:nth-child(4n + 3) {
		background: var(--sp-marigold);
		color: var(--sp-navy);
	}

	.sp-topics .sp-ticket:nth-child(4n) {
		background: var(--sp-teal);
		color: var(--sp-white);
	}
}

@media (max-width: 781px) {
	.sp-topics,
	.sp-topics__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.sp-topics .sp-ticket {
		min-height: 102px;
		padding: 10px 12px 12px;
		gap: 8px;
	}

	.sp-topics .sp-ticket__num {
		font-size: 28px;
	}

	.sp-topics .sp-ticket__label {
		display: none;
	}

	.sp-topics .sp-ticket__title {
		font-size: 16px;
	}

	/* Two columns: navy red / teal navy / marigold teal / red marigold. */
	.sp-topics .sp-ticket:nth-child(8n + 1),
	.sp-topics .sp-ticket:nth-child(8n + 4) {
		background: var(--sp-navy);
		color: var(--sp-paper);
	}

	.sp-topics .sp-ticket:nth-child(8n + 2),
	.sp-topics .sp-ticket:nth-child(8n + 7) {
		background: var(--sp-red);
		color: var(--sp-white);
	}

	.sp-topics .sp-ticket:nth-child(8n + 3),
	.sp-topics .sp-ticket:nth-child(8n + 6) {
		background: var(--sp-teal);
		color: var(--sp-white);
	}

	.sp-topics .sp-ticket:nth-child(8n + 5),
	.sp-topics .sp-ticket:nth-child(8n) {
		background: var(--sp-marigold);
		color: var(--sp-navy);
	}

	/* Related and child guides become rows: number, dashed rule, title. */
	.sp-tickets {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.sp-tickets .sp-ticket {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		gap: 2px 14px;
		min-height: 68px;
		padding: 10px 14px;
	}

	.sp-tickets .sp-ticket__top {
		grid-row: 1 / span 2;
		align-self: stretch;
		min-width: 42px;
		padding: 0 12px 0 0;
		border-bottom: 0;
		border-right: 2px dashed currentColor;
	}

	.sp-tickets .sp-ticket__num {
		font-size: 28px;
	}

	.sp-tickets .sp-ticket__top:has(.sp-ticket__num) .sp-ticket__label {
		display: none;
	}

	.sp-tickets .sp-ticket__top:not(:has(.sp-ticket__num)) {
		min-width: 0;
		font-size: 0;
	}

	.sp-tickets .sp-ticket__label {
		writing-mode: vertical-rl;
		transform: rotate(180deg);
		margin: 0;
		font-size: 10px;
	}

	.sp-tickets .sp-ticket__title {
		grid-column: 2;
		font-size: 16.5px;
	}

	.sp-tickets .sp-ticket__desc {
		grid-column: 2;
		font-size: 14px;
	}
}

/* Topics inside the mobile menu panel */
.sp-topics--menu {
	display: block;
}

.sp-topics__heading {
	margin: 12px 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--sp-muted-navy);
}

.sp-topics--menu .sp-ticket {
	min-height: 0;
	padding: 10px 12px 12px;
	gap: 8px;
	border: 2px solid transparent;
}

.sp-topics--menu .sp-ticket:nth-child(8n + 1),
.sp-topics--menu .sp-ticket:nth-child(8n + 4) {
	border-color: var(--sp-navy-rule);
}

.sp-topics--menu .sp-ticket__num {
	font-size: 24px;
}

.sp-topics--menu .sp-ticket__title {
	font-size: 15.5px;
}

/* ==========================================================================
   4. Homepage
   ========================================================================== */

.sp-hero {
	display: block;
	width: 100%;
	height: clamp(290px, 41.667vw, 600px);
}

.sp-titleband {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px 64px;
	padding: 8px var(--sp-gutter) 64px;
	background: var(--sp-navy);
	color: var(--sp-paper);
}

h1.sp-poster {
	display: flex;
	flex-direction: column;
	margin: 0;
	font-family: var(--sp-body);
	font-size: clamp(16px, 1.7vw, 24px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.42em;
	text-transform: uppercase;
}

.sp-poster em {
	font-family: var(--sp-script);
	font-size: clamp(40px, 5vw, 72px);
	font-style: normal;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	color: var(--sp-marigold);
}

.sp-poster strong {
	margin-bottom: 14px;
	font-family: var(--sp-display);
	font-size: clamp(84px, 11.5vw, 176px);
	font-weight: 400;
	line-height: 0.92;
	letter-spacing: 0.01em;
}

.sp-titleband__aside {
	display: flex;
	flex: 1 1 340px;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
	max-width: 460px;
	padding-bottom: 6px;
}

.sp-titleband__aside p {
	margin: 0;
	font-size: 19px;
	line-height: 1.6;
}

.sp-titleband .wp-block-button__link {
	min-height: 56px;
	padding: 0 28px;
	font-size: 16px;
	letter-spacing: 0.1em;
}

.sp-section {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 76px var(--sp-gutter);
}

.sp-section + .sp-section {
	padding-top: 0;
	padding-bottom: 80px;
}

h2.sp-display,
.sp-section > h2 {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 16px;
	font-size: clamp(38px, 4.6vw, 64px);
	line-height: 1;
}

.sp-display em {
	font-family: var(--sp-script);
	font-size: clamp(28px, 3vw, 42px);
	font-style: normal;
	text-transform: none;
	color: var(--sp-red);
}

.sp-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 28px;
}

.sp-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: var(--sp-navy);
	text-decoration: none;
}

.sp-card__media {
	display: block;
	height: 300px;
	overflow: hidden;
	border-radius: var(--sp-radius);
	background: var(--sp-sun);
}

.sp-card--teal .sp-card__media {
	background: var(--sp-teal-bright);
}

.sp-card--marigold .sp-card__media {
	background: var(--sp-marigold);
}

/* The photo is printed in one ink: grey, high contrast, multiplied over the ground. */
.sp-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.2);
	mix-blend-mode: multiply;
}

.sp-card__label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sp-red);
}

.sp-card__title {
	font-family: var(--sp-display);
	font-size: 32px;
	line-height: 1.08;
	text-transform: uppercase;
}

.sp-trust {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 20px 48px;
	padding: 52px var(--sp-gutter);
	background: var(--sp-marigold);
	color: var(--sp-navy);
}

.sp-trust__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sp-trust__item p {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.5;
}

.sp-trust__item p.sp-trust__title {
	font-family: var(--sp-display);
	font-size: 34px;
	line-height: 1.05;
	text-transform: uppercase;
}

@media (max-width: 781px) {
	.sp-titleband {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		padding: 0 var(--sp-gutter) 36px;
	}

	h1.sp-poster {
		font-size: 13px;
		letter-spacing: 0.34em;
	}

	.sp-poster em {
		font-size: 40px;
	}

	.sp-poster strong {
		margin-bottom: 10px;
		font-size: clamp(56px, 21.5vw, 84px);
		line-height: 0.94;
	}

	.sp-titleband__aside {
		flex: none;
		align-items: stretch;
		gap: 20px;
		max-width: none;
		padding-bottom: 0;
	}

	.sp-titleband__aside p {
		font-size: 17px;
		line-height: 1.55;
	}

	.sp-titleband .wp-block-button,
	.sp-titleband .wp-block-button__link {
		width: 100%;
	}

	.sp-titleband .wp-block-button__link {
		font-size: 15px;
	}

	.sp-section {
		gap: 22px;
		padding: 44px var(--sp-gutter);
	}

	.sp-section + .sp-section {
		padding-bottom: 44px;
	}

	.sp-display em {
		flex-basis: 100%;
	}

	.sp-cards {
		gap: 24px;
	}

	.sp-card {
		gap: 10px;
	}

	.sp-card__media {
		height: auto;
		aspect-ratio: 350 / 190;
	}

	.sp-card__label {
		font-size: 12.5px;
	}

	.sp-card__title {
		font-size: 28px;
	}

	.sp-trust {
		gap: 18px;
		padding: 36px var(--sp-gutter);
	}

	.sp-trust__item p.sp-trust__title {
		font-size: 30px;
	}
}

/* ==========================================================================
   5. Guide pages
   ========================================================================== */

.sp-guide-page {
	background: var(--sp-paper-light);
}

/* Breadcrumb bar */
.sp-crumbs {
	padding: 12px var(--sp-gutter);
	border-top: 2px solid var(--sp-navy);
	border-bottom: 2px solid var(--sp-navy);
	background: var(--sp-paper);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.4;
}

.sp-crumbs__trail {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0;
}

.sp-crumbs__trail a {
	padding: 6px 0;
}

.sp-crumbs__trail .last {
	font-weight: 400;
}

.sp-crumbs__back {
	display: none;
}

@media (max-width: 781px) {
	.sp-crumbs {
		padding: 0 16px;
		font-size: 14px;
	}

	.sp-crumbs__trail {
		display: none;
	}

	.sp-crumbs__back {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 44px;
	}
}

/* Navy header band */
.sp-guidehead {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px 56px;
	align-items: center;
	padding: 56px var(--sp-gutter);
	background: var(--sp-navy);
	color: var(--sp-paper);
}

@media (min-width: 1024px) {
	.sp-guidehead.has-image {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.sp-guidehead__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
	min-width: 0;
}

.sp-chip {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border-radius: var(--sp-radius-chip);
	background: var(--sp-marigold);
	color: var(--sp-navy);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
}

a.sp-chip:hover {
	background: var(--sp-paper);
	color: var(--sp-navy);
}

.sp-guidehead__title {
	font-size: clamp(44px, 5.4vw, 80px);
	line-height: 1;
}

.sp-guidehead__intro {
	max-width: 30em;
	margin: 0;
	font-size: 20px;
	line-height: 1.55;
}

.sp-guidehead__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
}

.sp-guidehead__meta a {
	color: var(--sp-paper);
}

.sp-guidehead__meta a:hover {
	color: var(--sp-marigold);
}

.sp-guidehead__figure {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	margin: 0;
}

.sp-guidehead__img {
	display: block;
	width: 100%;
	height: 400px;
	object-fit: cover;
	border-radius: var(--sp-radius);
	background: var(--sp-navy-rule);
}

.sp-guidehead__figure figcaption {
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--sp-muted-navy);
}

.sp-guidehead__figure figcaption a {
	color: inherit;
}

@media (max-width: 781px) {
	.sp-guidehead {
		gap: 20px;
		padding: 28px var(--sp-gutter);
	}

	.sp-guidehead__text {
		gap: 16px;
	}

	.sp-chip {
		min-height: 32px;
		padding: 0 12px;
		font-size: 12px;
	}

	.sp-guidehead__title {
		line-height: 1.02;
	}

	.sp-guidehead__intro {
		font-size: 17px;
	}

	.sp-guidehead__meta {
		gap: 4px 10px;
		font-size: 14.5px;
	}

	.sp-guidehead__meta span + span::before {
		content: "·";
		margin-right: 10px;
	}

	.sp-guidehead__img {
		height: 230px;
	}

	.sp-guidehead__figure {
		gap: 8px;
	}

	.sp-guidehead__figure figcaption {
		font-size: 12.5px;
	}
}

/* Two columns: article and the sticky sidebar */
.sp-guide {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px 72px;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 56px var(--sp-gutter);
}

.sp-article {
	min-width: 0;
}

@media (min-width: 1024px) {
	/* The sidebar's width is reserved here, before any script runs. */
	.sp-has-side .sp-guide {
		grid-template-columns: minmax(0, 1fr) 340px;
	}

	.sp-guide-page:not(.sp-has-side) .sp-article {
		max-width: 860px;
		margin-inline: auto;
	}
}

@media (max-width: 781px) {
	.sp-guide {
		padding: 24px var(--sp-gutter) 44px;
	}
}

/* Article typography */
.sp-article .wp-block-post-content {
	font-size: 19px;
	line-height: 1.7;
}

.sp-article .wp-block-post-content > * {
	margin-block: 24px 0;
}

.sp-article .wp-block-post-content > :first-child,
.sp-article .wp-block-post-content > .sp-toc-inline + * {
	margin-block-start: 0;
}

/* Reading column: text is capped at 720px; pictures, tables and boxes use the full column. */
.sp-article .wp-block-post-content > :where(p, ul, ol, h2, h3, h4, blockquote),
.sp-article :where(.sp-faq__item, .sp-sources, .sp-credits) > :where(p, ul, ol) {
	max-width: 720px;
}

.sp-article :where(h2) {
	scroll-margin-top: calc(24px + var(--sp-admin));
}

.sp-article .wp-block-post-content > h2,
.sp-article .wp-block-post-content > section,
.sp-children {
	margin-block-start: 52px;
}

.sp-article .wp-block-post-content > h3 {
	margin-block-start: 32px;
}

.sp-article :where(ul, ol) {
	padding-left: 1.3em;
}

.sp-article :where(li) + li {
	margin-top: 8px;
}

.sp-article :where(li)::marker {
	color: var(--sp-red);
	font-weight: 700;
}

.sp-article a:not([class]) {
	color: var(--sp-navy);
}

.sp-article a:not([class]):hover {
	color: var(--sp-red);
}

/* Figures: full colour inside guides */
.sp-article .wp-block-image {
	margin-inline: 0;
}

.sp-article .wp-block-image img {
	display: block;
	width: 100%;
	max-height: 640px;
	object-fit: cover;
	border-radius: var(--sp-radius);
	background: var(--sp-paper);
}

.sp-article :where(.wp-block-image, .wp-block-table) figcaption {
	margin: 10px 0 0;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--sp-muted);
	text-align: left;
}

/* Tables */
.sp-table {
	margin-inline: 0;
}

.sp-table__scroll {
	overflow-x: auto;
	border: 2px solid var(--sp-navy);
	border-radius: var(--sp-radius);
	background: var(--sp-white);
}

.sp-table table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 17px;
	line-height: 1.45;
	text-align: left;
}

.sp-table.wp-block-table thead {
	border-bottom: 0;
}

.sp-table.wp-block-table th,
.sp-table.wp-block-table td {
	padding: 14px 18px;
	border: 0;
	border-top: 1px solid var(--sp-rule);
	text-align: left;
	vertical-align: top;
}

.sp-table.wp-block-table thead th,
.sp-table.wp-block-table thead td {
	border-top: 0;
	border-bottom: 0;
	background: var(--sp-navy);
	color: var(--sp-paper);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	vertical-align: bottom;
}

.sp-table.wp-block-table tbody tr:first-child th,
.sp-table.wp-block-table tbody tr:first-child td {
	border-top: 0;
}

.sp-table tbody th {
	font-weight: 700;
}

.sp-table__hint {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 6px;
	margin: 6px 0 0;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sp-muted);
}

.sp-table__hint::after {
	content: "";
	width: 14px;
	height: 10px;
	background: currentColor;
	clip-path: polygon(0 40%, 62% 40%, 62% 0, 100% 50%, 62% 100%, 62% 60%, 0 60%);
}

/* FAQ cards: every answer stays open */
.sp-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sp-faq__item {
	padding: 18px 22px 20px;
	border: 2px solid var(--sp-navy);
	border-radius: var(--sp-radius);
	background: var(--sp-white);
}

.sp-faq__item > * {
	margin: 12px 0 0;
}

.sp-faq__item > :first-child {
	margin-top: 0;
}

.sp-faq__item :where(p, li) {
	font-size: 18px;
	line-height: 1.65;
}

/* Sources box */
.sp-sources {
	padding: 26px 28px;
	border: 2px dashed var(--sp-navy);
	border-radius: var(--sp-radius);
	font-size: 17px;
	line-height: 1.6;
}

.sp-sources > * {
	margin: 12px 0 0;
}

.sp-sources > h2 {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 26px;
	line-height: 1.1;
}

.sp-sources > h2::before {
	content: "";
	flex: none;
	width: 26px;
	height: 26px;
	margin-top: 1px;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C7C7A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M7.5 12.5 L10.5 15.5 L16.5 9'/%3E%3C/svg%3E");
}

.sp-sources a {
	overflow-wrap: anywhere;
}

/* Photo credits: fine print */
.sp-credits {
	padding-top: 24px;
	border-top: 2px solid var(--sp-navy);
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--sp-muted);
}

.sp-credits > * {
	margin: 10px 0 0;
}

.sp-credits > h2 {
	margin: 0;
	font-family: var(--sp-body);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.16em;
	color: var(--sp-navy);
}

.sp-credits a {
	color: inherit;
}

.sp-credits li + li {
	margin-top: 4px;
}

/* Related guides and child guides */
.sp-tickets--related,
.sp-article .sp-tickets {
	padding-left: 0;
}

.sp-article .sp-tickets li + li {
	margin-top: 0;
}

.sp-children h2 {
	margin-bottom: 18px;
}

/* Quick answer ticket and callout (patterns, for new guides) */
.wp-block-group.is-style-quick-answer {
	padding: 24px 28px;
	border-radius: var(--sp-radius);
	background: var(--sp-marigold);
	color: var(--sp-navy);
	line-height: 1.45;
}

.is-style-quick-answer > * {
	margin: 14px 0 0;
}

.is-style-quick-answer > :first-child {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding-bottom: 12px;
	border-bottom: 2px dashed var(--sp-navy);
}

.is-style-quick-answer > :first-child > * {
	margin: 0;
}

.is-style-quick-answer .sp-quick__title {
	font-family: var(--sp-display);
	font-size: 26px;
	line-height: 1;
	text-transform: uppercase;
}

.is-style-quick-answer .sp-quick__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.is-style-quick-answer ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 8px 28px;
	max-width: none;
	padding: 0;
	list-style: none;
	font-size: 17.5px;
}

.is-style-quick-answer li + li {
	margin-top: 0;
}

.wp-block-group.is-style-callout {
	padding: 22px 26px;
	border-radius: var(--sp-radius);
	background: var(--sp-teal);
	color: var(--sp-white);
	font-size: 17.5px;
	line-height: 1.55;
}

.is-style-callout > * {
	max-width: none;
	margin: 8px 0 0;
}

.is-style-callout > :first-child {
	margin-top: 0;
}

.is-style-callout a {
	color: var(--sp-white);
}

.sp-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* "On this page" at the top of the article: phones and tablets only */
.sp-toc-inline {
	display: none;
	border: 2px solid var(--sp-navy);
	border-radius: var(--sp-radius);
	background: var(--sp-white);
}

.sp-toc-inline__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding: 0 16px;
	border-radius: 10px;
	list-style: none;
	cursor: pointer;
}

.sp-toc-inline__summary::-webkit-details-marker {
	display: none;
}

.sp-toc-inline__title,
.sp-toc__title {
	font-family: var(--sp-display);
	font-size: 20px;
	line-height: 1;
	text-transform: uppercase;
}

.sp-toc-inline__count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sp-toc-inline__count::after {
	content: "+";
	font-family: var(--sp-display);
	font-size: 20px;
	line-height: 1;
	color: var(--sp-red);
}

.sp-toc-inline[open] .sp-toc-inline__count::after {
	content: "\2212";
}

.sp-toc-inline__nav {
	padding: 0 8px 10px;
}

/* Contents list (sidebar card, bottom sheet and the inline list share it) */
.sp-toc__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	line-height: 1.25;
}

.sp-toc__list li {
	margin: 0;
}

.sp-toc__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 44px;
	padding: 8px 12px;
	border-radius: var(--sp-radius-chip);
	color: var(--sp-navy);
	text-decoration: none;
}

.sp-toc__list a:hover {
	background: var(--sp-marigold-light);
	color: var(--sp-navy);
}

.sp-toc__list a[aria-current] {
	background: var(--sp-navy);
	color: var(--sp-paper);
	font-weight: 700;
}

.sp-toc__list a[aria-current]::after {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

/* Sidebar */
.sp-side {
	min-width: 0;
}

.sp-side__inner {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.sp-toc {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 0;
	padding: 20px;
	border: 2px solid var(--sp-navy);
	border-radius: var(--sp-radius);
	background: var(--sp-white);
}

.sp-toc__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.sp-toc__title {
	font-size: 22px;
}

.sp-toc__pct {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.sp-toc__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -10px -8px -10px 0;
	padding: 0;
	border: 0;
	border-radius: var(--sp-radius-btn);
	background: transparent;
	color: var(--sp-navy);
	cursor: pointer;
}

.sp-progress {
	flex: none;
	display: block;
	height: 8px;
	overflow: hidden;
	border-radius: 99px;
	background: var(--sp-marigold-light);
}

.sp-progress > span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--sp-red);
}

.sp-progress--flat {
	height: 6px;
	border-radius: 0;
}

.sp-next {
	display: flex;
	flex: none;
	flex-direction: column;
	gap: 12px;
	padding: 16px 18px;
	border-radius: var(--sp-radius);
	background: var(--sp-red);
	color: var(--sp-white);
	text-decoration: none;
}

.sp-next:hover {
	color: var(--sp-white);
}

.sp-next__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 8px;
	border-bottom: 2px dashed currentColor;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.sp-next__top .sp-icon {
	flex: none;
}

.sp-next__title {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
}

.sp-readbar {
	display: none;
}

@media (min-width: 1024px) {
	/* The aside fills the grid row; the inner stack is what sticks, and it never
	   grows taller than the window: the list scrolls inside the card instead. */
	.sp-side__inner {
		position: sticky;
		top: calc(24px + var(--sp-admin));
		max-height: calc(100vh - 48px - var(--sp-admin));
	}

	.sp-toc {
		flex: 0 1 auto;
	}

	.sp-toc__list {
		flex: 0 1 auto;
		min-height: 88px;
		max-height: calc(100vh - 220px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: var(--sp-rule) transparent;
	}

	.sp-toc__close {
		display: none !important;
	}
}

@media (max-width: 1023px) {
	.sp-toc-inline {
		display: block;
	}

	/* Without JavaScript there is no sheet: the inline list above does the job. */
	.no-js .sp-side .sp-toc {
		display: none;
	}

	.js .sp-side:not(.sp-side--no-toc) {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 120;
		max-height: min(82vh, 640px);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 8px 12px calc(16px + env(safe-area-inset-bottom));
		border-top: 2px solid var(--sp-navy);
		border-radius: 16px 16px 0 0;
		background: var(--sp-white);
		visibility: hidden;
		transform: translateY(100%);
	}

	.js .sp-side.is-open {
		visibility: visible;
		transform: none;
	}

	.js .sp-side:not(.sp-side--no-toc) .sp-toc {
		padding: 12px 8px 4px;
		border: 0;
	}

	/* The heading and the close button stay put; the list scrolls under them. */
	.js .sp-side:not(.sp-side--no-toc) .sp-toc__head {
		align-items: center;
	}

	.js .sp-side:not(.sp-side--no-toc) .sp-toc__list {
		min-height: 132px;
		max-height: calc(min(82vh, 640px) - 250px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.js .sp-side:not(.sp-side--no-toc) .sp-toc__pct {
		display: none !important;
	}

	.sp-sheet-backdrop {
		position: fixed;
		inset: 0;
		z-index: 119;
		background: rgba(23, 50, 77, 0.6);
	}

	html.sp-sheet-open {
		overflow: hidden;
	}

	/* Fixed bottom bar */
	.js .sp-readbar {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 110;
		display: block;
		border-top: 2px solid var(--sp-navy);
		background: var(--sp-white);
		padding-bottom: env(safe-area-inset-bottom);
	}

	.sp-readbar__row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 12px 12px 16px;
	}

	.sp-readbar__text {
		display: flex;
		flex-direction: column;
		gap: 2px;
		min-width: 0;
		margin: 0;
	}

	.sp-readbar__kicker {
		font-size: 11px;
		font-weight: 700;
		line-height: 1.3;
		letter-spacing: 0.18em;
		text-transform: uppercase;
		color: var(--sp-red);
	}

	.sp-readbar__title {
		overflow: hidden;
		font-size: 16px;
		font-weight: 700;
		line-height: 1.25;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.sp-readbar__btn {
		flex: none;
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 46px;
		padding: 0 16px;
		border: 0;
		border-radius: var(--sp-radius-btn);
		background: var(--sp-navy);
		color: var(--sp-paper);
		font: 700 14px/1 var(--sp-body);
		letter-spacing: 0.08em;
		text-transform: uppercase;
		cursor: pointer;
	}

	/* Room for the bar, so it never covers the footer links. */
	.js.sp-has-toc .sp-footer {
		padding-bottom: calc(28px + 78px + env(safe-area-inset-bottom));
	}

	.sp-article :where(h2) {
		scroll-margin-top: calc(16px + var(--sp-admin));
	}
}

@media (prefers-reduced-motion: no-preference) and (max-width: 1023px) {
	/* Visible at once when it opens (so focus can move in), hidden after it has slid away. */
	.js .sp-side:not(.sp-side--no-toc) {
		transition: transform 180ms ease-out, visibility 0s linear 180ms;
	}

	.js .sp-side.is-open:not(.sp-side--no-toc) {
		transition: transform 180ms ease-out, visibility 0s;
	}
}

@media (max-width: 781px) {
	.sp-article .wp-block-post-content {
		font-size: 18px;
		line-height: 1.65;
	}

	.sp-article .wp-block-post-content > * {
		margin-block-start: 20px;
	}

	.sp-article .wp-block-post-content > h2,
	.sp-article .wp-block-post-content > section,
	.sp-children {
		margin-block-start: 36px;
	}

	.sp-article :where(h2) {
		scroll-margin-top: calc(var(--sp-header-h) + 16px + var(--sp-admin));
	}

	.sp-article :where(.wp-block-image, .wp-block-table) figcaption {
		margin-top: 8px;
		font-size: 13px;
	}

	.sp-table table {
		min-width: 520px;
		font-size: 15.5px;
		line-height: 1.4;
	}

	.sp-table.wp-block-table th,
	.sp-table.wp-block-table td {
		padding: 12px 14px;
	}

	.sp-table.wp-block-table thead th,
	.sp-table.wp-block-table thead td {
		font-size: 12px;
		letter-spacing: 0.12em;
	}

	.sp-faq {
		gap: 10px;
	}

	.sp-faq__item {
		padding: 16px;
	}

	.sp-faq__item :where(p, li) {
		font-size: 16.5px;
		line-height: 1.6;
	}

	.sp-sources {
		padding: 18px;
		font-size: 15.5px;
		line-height: 1.55;
	}

	.sp-sources > * {
		margin-top: 10px;
	}

	.sp-sources > h2 {
		gap: 8px;
		font-size: 21px;
	}

	.sp-sources > h2::before {
		width: 22px;
		height: 22px;
	}

	.wp-block-group.is-style-quick-answer {
		padding: 18px 18px 20px;
		line-height: 1.4;
	}

	.is-style-quick-answer > * {
		margin-top: 12px;
	}

	.is-style-quick-answer > :first-child {
		padding-bottom: 10px;
	}

	.is-style-quick-answer .sp-quick__title {
		font-size: 24px;
	}

	.is-style-quick-answer .sp-quick__label {
		display: none;
	}

	.is-style-quick-answer ul {
		display: flex;
		flex-direction: column;
		gap: 7px;
		font-size: 16.5px;
	}

	.wp-block-group.is-style-callout {
		padding: 18px;
		font-size: 16.5px;
		line-height: 1.5;
	}

	.is-style-callout > * {
		margin-top: 6px;
	}

	.sp-label {
		font-size: 11.5px;
	}
}

/* ==========================================================================
   6. Search, index and 404
   ========================================================================== */

.sp-listhead {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 56px var(--sp-gutter);
	border-top: 2px solid var(--sp-navy);
	background: var(--sp-navy);
	color: var(--sp-paper);
}

.sp-listhead > * {
	width: 100%;
	max-width: 760px;
}

.sp-listhead h1 {
	font-size: clamp(44px, 5.4vw, 80px);
	line-height: 1;
}

.sp-listhead p {
	margin: 0;
	font-size: 20px;
	line-height: 1.55;
}

.sp-listhead .wp-block-search__input {
	border-color: var(--sp-paper);
}

.sp-listhead .wp-block-search__button {
	background: var(--sp-marigold);
	color: var(--sp-navy);
}

.sp-results {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 56px var(--sp-gutter) 76px;
}

.sp-results .wp-block-post-template {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: sp-result;
}

/* Each result is a ticket: number, dashed rule, title and a line of text. */
.sp-results .wp-block-post {
	position: relative;
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	column-gap: 20px;
	align-content: center;
	min-height: 96px;
	margin: 0;
	padding: 16px 20px 16px 0;
	border: 2px solid var(--sp-navy);
	border-radius: var(--sp-radius);
	background: var(--sp-white);
	counter-increment: sp-result;
}

.sp-results .wp-block-post::before {
	content: counter(sp-result, decimal-leading-zero);
	grid-row: 1 / span 2;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	border-right: 2px dashed var(--sp-navy);
	font-family: var(--sp-display);
	font-size: 30px;
	line-height: 1;
	color: var(--sp-red);
}

.sp-results .wp-block-post > * {
	grid-column: 2;
	margin: 0;
}

.sp-results .wp-block-post-title {
	font-family: var(--sp-body);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
}

.sp-results .wp-block-post-title a {
	display: inline-block;
	padding-block: 2px;
	text-decoration: none;
}

.sp-results .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.sp-results .wp-block-post-excerpt {
	margin-top: 4px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--sp-muted);
}

.sp-results .wp-block-post-excerpt p {
	margin: 0;
}

.sp-results .wp-block-query-pagination {
	margin-top: 32px;
	gap: 8px 18px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sp-results .wp-block-query-pagination a,
.sp-results .wp-block-query-pagination .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 6px;
}

.sp-results .wp-block-query-no-results p {
	margin: 0;
	font-size: 20px;
}

@media (max-width: 781px) {
	.sp-listhead {
		gap: 16px;
		padding: 28px var(--sp-gutter);
	}

	.sp-listhead p {
		font-size: 17px;
	}

	.sp-results {
		padding: 28px var(--sp-gutter) 44px;
	}

	.sp-results .wp-block-post {
		grid-template-columns: 56px minmax(0, 1fr);
		column-gap: 14px;
		padding: 14px 14px 14px 0;
	}

	.sp-results .wp-block-post::before {
		font-size: 26px;
	}

	.sp-results .wp-block-post-title {
		font-size: 18px;
	}

	.sp-results .wp-block-post-excerpt {
		font-size: 15px;
	}
}

/* ==========================================================================
   7. Footer
   ========================================================================== */

.sp-footer {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 52px var(--sp-gutter) 40px;
	background: var(--sp-navy);
	color: var(--sp-paper);
}

.sp-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
}

.sp-brand--footer,
.sp-brand--footer:hover {
	color: var(--sp-paper);
}

.sp-brand--footer .sp-brand__words {
	gap: 10px;
}

.sp-brand--footer .sp-brand__word {
	font-size: 40px;
	letter-spacing: 0;
}

.sp-brand--footer .sp-brand__script {
	font-size: 36px;
	color: var(--sp-marigold);
}

.sp-footnav.wp-block-navigation {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sp-footnav .wp-block-navigation__container {
	gap: 6px 30px;
}

.sp-footnav .wp-block-navigation-item__content {
	display: block;
	padding: 12px 0;
	color: var(--sp-paper);
	text-decoration: underline;
}

.sp-footnav .wp-block-navigation-item__content:hover {
	color: var(--sp-marigold);
}

.sp-footer__note {
	margin: 0;
	padding-top: 20px;
	border-top: 2px solid var(--sp-navy-rule);
	font-size: 13px;
	line-height: 1.6;
	color: var(--sp-muted-navy);
}

@media (max-width: 781px) {
	.sp-footer {
		gap: 18px;
		padding: 36px var(--sp-gutter) 28px;
	}

	.sp-footer__top {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
	}

	.sp-brand--footer .sp-brand__word {
		font-size: 34px;
	}

	.sp-brand--footer .sp-brand__script {
		font-size: 30px;
	}

	.sp-footnav.wp-block-navigation {
		font-size: 14px;
	}

	.sp-footnav .wp-block-navigation__container {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 16px;
		width: 100%;
	}

	.sp-footnav .wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 0;
	}

	.sp-footer__note {
		padding-top: 16px;
		font-size: 12.5px;
	}
}

/* ==========================================================================
   8. Print
   ========================================================================== */

@media print {
	.sp-header__tools,
	.sp-menu,
	.sp-side,
	.sp-readbar,
	.sp-toc-inline,
	.sp-skip {
		display: none !important;
	}
}
