/* GES Static Pages - body of the four migrated pages (ges-static-pages.php).
   Tokens and shapes follow the Next.js rebuild (globals.css: band, ink, brand,
   brand-strong, pill, 760px prose column, rounded-2xl cards). Every rule is
   `.ges-sp .ges-sp__...` (specificity 0,2,0 or more) so it outranks Twenty
   Twenty-One's element rules and margin resets, and the Elementor kit's h2/h3
   colour+size rules, without !important - except on images, where an image
   plugin writes inline width/height styles. The font is inherited from the
   site (Open Sans through the Elementor kit). Text colours are all >= 4.5:1 on
   the surfaces they sit on; --ges-brand (3.9:1 on white) is used for strokes
   and bullets only, never for text. */

.ges-sp {
	--ges-band:   #edf3f9;
	--ges-ink:    #0a2a52;
	--ges-brand:  #0087d8;
	--ges-strong: #0072b8;
	--ges-pill:   #e8f5ff;
	--ges-border: #e8eff6;
	--ges-text:   #1f2937;
	--ges-muted:  #54708a;
	--ges-bg:     #ffffff;
	--ges-radius: 16px;
	--ges-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
	--ges-prose:  760px;

	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: 0 16px;
	overflow-x: hidden;
	font-family: inherit;
	font-size: 17px;
	line-height: 1.75;
	color: var(--ges-text);
	overflow-wrap: break-word;
	-webkit-text-size-adjust: 100%;
}
/* Under the post template (#49, Troubleshooting) the content container already
   carries its own gutters (30px on a phone); ours would double them. */
.elementor-49 .ges-sp {
	padding-left: 0;
	padding-right: 0;
}
.ges-sp .ges-sp__band,
.ges-sp .ges-sp__body {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--ges-prose);
	margin: 0 auto;
}
.ges-sp *,
.ges-sp *::before,
.ges-sp *::after {
	box-sizing: border-box;
}

/* --- Band: the breadcrumb strip (the theme prints the h1 above it) -------- */

.ges-sp .ges-sp__band {
	padding: 14px 20px;
	border-radius: var(--ges-radius);
	background: var(--ges-band);
}
.ges-sp .ges-sp__crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ges-muted);
}
.ges-sp .ges-sp__crumbs li {
	margin: 0;
	padding: 0;
}
.ges-sp .ges-sp__crumbs a {
	color: var(--ges-muted);
	text-decoration: none;
	border-bottom: 0;
	box-shadow: none;
}
.ges-sp .ges-sp__crumbs a:hover,
.ges-sp .ges-sp__crumbs a:focus-visible {
	color: var(--ges-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ges-sp .ges-sp__crumb-here {
	font-weight: 500;
	color: var(--ges-ink);
}

/* --- Prose column ----------------------------------------------------------- */

.ges-sp .ges-sp__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	padding: 32px 0 40px;
}
.ges-sp .ges-sp__body > * {
	margin: 0;
	min-width: 0;
}

.ges-sp .ges-sp__body p,
.ges-sp .ges-sp__intro p {
	margin: 0;
	font-size: 17px;
	line-height: 1.75;
	color: var(--ges-text);
}
.ges-sp .ges-sp__intro p + p,
.ges-sp .ges-sp__faq-a p + p {
	margin-top: 12px;
}
.ges-sp .ges-sp__intro {
	font-size: 18px;
	color: var(--ges-muted);
}
.ges-sp .ges-sp__intro p {
	font-size: inherit;
	color: inherit;
}

.ges-sp .ges-sp__body a {
	color: var(--ges-strong);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: rgba(0, 135, 216, 0.4);
	text-underline-offset: 3px;
	border-bottom: 0;
	box-shadow: none;
	transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
.ges-sp .ges-sp__body a:hover {
	color: var(--ges-strong);
	text-decoration-color: var(--ges-strong);
}
.ges-sp .ges-sp__body a:focus-visible,
.ges-sp .ges-sp__crumbs a:focus-visible,
.ges-sp .ges-sp__toc summary:focus-visible,
.ges-sp .ges-sp__sources-btn:focus-visible {
	outline: 2px solid var(--ges-brand);
	outline-offset: 2px;
	border-radius: 4px;
}
.ges-sp .ges-sp__body strong,
.ges-sp .ges-sp__body b {
	font-weight: 700;
	color: var(--ges-ink);
}

/* Headings. h2 opens a section with a rule the width of the column and a short
   brand stroke under the title; h3 is the brand-strong sub-heading.
   scroll-margin keeps an anchor target clear of the sticky site header. */
.ges-sp .ges-sp__h2,
.ges-sp .ges-sp__h3,
.ges-sp .ges-sp__card-title,
.ges-sp .ges-sp__faq-q {
	font-family: inherit;
	font-weight: 700;
	color: var(--ges-ink);
	letter-spacing: 0;
	text-transform: none;
	scroll-margin-top: 96px;
}
.ges-sp .ges-sp__h2 {
	position: relative;
	margin: 32px 0 0;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--ges-border);
	font-size: 24px;
	line-height: 1.3;
	text-wrap: balance;
}
.ges-sp .ges-sp__h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 56px;
	height: 3px;
	border-radius: 999px;
	background: var(--ges-brand);
}
.ges-sp .ges-sp__body > .ges-sp__h2:first-child,
.ges-sp .ges-sp__toc + .ges-sp__h2,
.ges-sp .ges-sp__intro + .ges-sp__h2 {
	margin-top: 0;
}
.ges-sp .ges-sp__h3 {
	margin: 12px 0 0;
	font-size: 20px;
	line-height: 1.35;
	color: var(--ges-strong);
}

/* Lists inside html blocks: the marker is drawn in brand colours. */
.ges-sp .ges-sp__body ul,
.ges-sp .ges-sp__body ol {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0 0 0 36px;
	list-style: none;
	font-size: 17px;
	line-height: 1.75;
	color: var(--ges-text);
}
.ges-sp .ges-sp__body ol {
	counter-reset: ges-sp-ol;
}
.ges-sp .ges-sp__body li {
	position: relative;
	margin: 0;
	padding: 0;
	min-width: 0;
}
.ges-sp .ges-sp__body ul > li::before {
	content: "";
	position: absolute;
	left: -24px;
	top: 11px;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--ges-brand);
}
.ges-sp .ges-sp__body ol > li {
	counter-increment: ges-sp-ol;
}
.ges-sp .ges-sp__body ol > li::before {
	content: counter(ges-sp-ol);
	position: absolute;
	left: -36px;
	top: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: var(--ges-pill);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	color: var(--ges-strong);
}
.ges-sp .ges-sp__body li > ul,
.ges-sp .ges-sp__body li > ol {
	margin-top: 12px;
}

/* Images pasted in html blocks: never wider than the column, box height kept
   by the file's own ratio. !important because an image plugin writes inline
   width/height styles that would otherwise win over any selector. */
.ges-sp .ges-sp__body img {
	display: block;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 auto;
	border-radius: var(--ges-radius);
}

/* --- Contents list (native <details>, open on arrival) -------------------- */

.ges-sp .ges-sp__toc {
	border: 1px solid var(--ges-border);
	border-radius: var(--ges-radius);
	background: var(--ges-band);
}
.ges-sp .ges-sp__toc details {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}
.ges-sp .ges-sp__toc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	margin: 0;
	padding: 12px 20px;
	border-radius: var(--ges-radius);
	list-style: none;
	cursor: pointer;
	color: var(--ges-ink);
}
.ges-sp .ges-sp__toc summary::-webkit-details-marker {
	display: none;
}
.ges-sp .ges-sp__toc summary::marker {
	content: "";
}
.ges-sp .ges-sp__toc-title {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ges-ink);
}
.ges-sp .ges-sp__toc-chevron {
	flex: none;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--ges-ink);
	border-bottom: 2px solid var(--ges-ink);
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s ease;
}
.ges-sp .ges-sp__toc details[open] > summary .ges-sp__toc-chevron {
	transform: translateY(2px) rotate(225deg);
}
.ges-sp .ges-sp__toc ol {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0 20px 20px 40px;
	list-style: decimal;
	counter-reset: none;
	font-size: 15px;
	line-height: 1.4;
}
.ges-sp .ges-sp__toc li {
	position: static;
	padding: 0;
}
/* (0,2,3): outranks the drawn counters of `.ges-sp__body ol > li::before`. */
.ges-sp .ges-sp__toc ol > li::before {
	content: none;
}
.ges-sp .ges-sp__toc li::marker {
	color: var(--ges-muted);
}
.ges-sp .ges-sp__toc a {
	font-weight: 400;
	color: var(--ges-strong);
	text-decoration: none;
	text-underline-offset: 4px;
}
.ges-sp .ges-sp__toc a:hover {
	text-decoration: underline;
}

/* --- FAQ: visible question + answer pairs ----------------------------------- */

.ges-sp .ges-sp__faq {
	display: grid;
	gap: 12px;
}
.ges-sp .ges-sp__faq-item {
	padding: 16px 20px 18px;
	border: 1px solid var(--ges-border);
	border-radius: var(--ges-radius);
	background: var(--ges-bg);
}
.ges-sp .ges-sp__faq-q {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.4;
	color: var(--ges-ink);
}
.ges-sp .ges-sp__faq-a,
.ges-sp .ges-sp__faq-a p,
.ges-sp .ges-sp__faq-a ul,
.ges-sp .ges-sp__faq-a ol {
	font-size: 15px;
	line-height: 1.7;
}
.ges-sp .ges-sp__faq-a > * + * {
	margin-top: 12px;
}

/* --- Cards ------------------------------------------------------------------
   Card rules that meet a generic `.ges-sp__body ul/li/a/p/img` rule carry
   `.ges-sp__body` too (0,3,0), so the grid is not the prose list and the card
   link is not the prose link. */

.ges-sp .ges-sp__body .ges-sp__cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	margin: 8px 0;
	padding: 0;
	list-style: none;
}
.ges-sp .ges-sp__body .ges-sp__cards--tiles {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.ges-sp .ges-sp__body .ges-sp__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 20px;
	border: 1px solid var(--ges-border);
	border-radius: var(--ges-radius);
	background: var(--ges-bg);
	box-shadow: var(--ges-shadow);
	transition: border-color 0.15s ease;
}
.ges-sp .ges-sp__cards > .ges-sp__card::before {
	content: none;
}
.ges-sp .ges-sp__cards--tiles .ges-sp__card {
	align-items: center;
	text-align: center;
}
.ges-sp .ges-sp__card--linked:hover,
.ges-sp .ges-sp__card--linked:focus-within {
	border-color: var(--ges-brand);
}
.ges-sp .ges-sp__body .ges-sp__card-img {
	display: block;
	width: auto !important;
	height: 56px !important;
	max-width: 100% !important;
	margin: 0;
	border-radius: 0;
	object-fit: contain;
}
.ges-sp .ges-sp__body .ges-sp__cards--tiles .ges-sp__card-img {
	height: 96px !important;
}
.ges-sp .ges-sp__card-title {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
	color: var(--ges-ink);
}
/* The whole card is the link, by a box stretched over it; the name stays the text. */
.ges-sp .ges-sp__body .ges-sp__card-link {
	font-weight: 700;
	color: var(--ges-ink);
	text-decoration: none;
}
.ges-sp .ges-sp__body .ges-sp__card-link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--ges-radius);
}
.ges-sp .ges-sp__body .ges-sp__card-link:hover {
	color: var(--ges-strong);
	text-decoration: none;
}
.ges-sp .ges-sp__body .ges-sp__card-link:focus-visible {
	outline: none;
}
.ges-sp .ges-sp__card:has(.ges-sp__card-link:focus-visible) {
	outline: 2px solid var(--ges-brand);
	outline-offset: 2px;
}
.ges-sp .ges-sp__body .ges-sp__card-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ges-text);
}

/* --- Google "preferred sources" button -------------------------------------- */

.ges-sp .ges-sp__sources {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 16px 0 0;
	text-align: center;
}
.ges-sp .ges-sp__body .ges-sp__sources-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border: 1px solid var(--ges-border);
	border-radius: 999px;
	background: var(--ges-bg);
	box-shadow: var(--ges-shadow);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ges-ink);
	text-decoration: none;
	transition: background-color 0.15s ease;
}
.ges-sp .ges-sp__body .ges-sp__sources-btn:hover {
	background: var(--ges-band);
	color: var(--ges-ink);
	text-decoration: none;
}
.ges-sp .ges-sp__sources-btn svg {
	flex: none;
}
.ges-sp .ges-sp__body .ges-sp__sources-hint {
	margin: 0;
	font-size: 14px;
	color: var(--ges-muted);
}

/* --- Wider screens ------------------------------------------------------------ */

@media (min-width: 640px) {
	.ges-sp .ges-sp__band {
		padding: 16px 24px;
	}
	.ges-sp .ges-sp__body {
		padding: 40px 0 48px;
	}
	.ges-sp .ges-sp__h2 {
		font-size: 28px;
	}
	.ges-sp .ges-sp__body .ges-sp__cards,
	.ges-sp .ges-sp__body .ges-sp__cards--tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}
@media (min-width: 1024px) {
	.ges-sp .ges-sp__body .ges-sp__cards,
	.ges-sp .ges-sp__body .ges-sp__cards--tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.ges-sp .ges-sp__toc-chevron,
	.ges-sp .ges-sp__card,
	.ges-sp .ges-sp__body a,
	.ges-sp .ges-sp__sources-btn {
		transition: none;
	}
}
