/*
 * Site shell, loaded on every page after tokens.css:
 * legacy token aliases, base elements (type, links, forms, tables,
 * accordions, pagination, notices), the sticky header with its mega menus
 * and mobile sheet, the footer, breadcrumbs and the page hero band.
 * Colours come from the --sg-* tokens; never hard-code brand hex here.
 */

/* ---------- Legacy aliases (block CSS still reads these names) ---------- */
:root {
	--pdir-accent-dark: var(--sg-teal-700);
	--pdir-tint: var(--sg-soft);
	--pdir-tint-border: var(--sg-line-strong);
	--pdir-input-border: var(--sg-input-border);
	--pdir-body-text: var(--sg-text);
	--pdir-star: var(--sg-gold);
	--pdir-trust: var(--sg-green);
	--pdir-gold: var(--sg-gold-ink);
	--pdir-regulator: var(--sg-green);
	--pdir-tint-trust: var(--sg-green-bg);
	--pdir-tint-trust-border: #c8e8d3;
	--pdir-tint-gold: var(--sg-gold-bg);
	--pdir-tint-gold-border: #f3dfa2;
	--pdir-tint-regulator: var(--sg-green-bg);
	--pdir-radius-card: var(--sg-radius-card);
	--pdir-radius-button: var(--sg-radius-pill);
	--pdir-shadow-card: var(--sg-shadow-card);
	--pdir-shadow-card-hover: var(--sg-shadow-raised);
	--pdir-utility-h: 0px;
}

/* ---------- Base elements ---------- */
body {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
}

::selection {
	background: var(--sg-teal-50);
	color: var(--sg-ink);
}

h1 {
	font-size: var(--sg-fs-page-h1);
	font-weight: 700;
}

h2 {
	font-size: var(--sg-fs-h2);
	font-weight: 700;
}

h3 {
	font-size: var(--sg-fs-h3);
	font-weight: 600;
}

h4 {
	font-size: 1.0625rem;
	font-weight: 600;
}

a {
	color: var(--sg-ink);
	text-decoration: none;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

a:hover {
	color: var(--sg-ink);
}

/* Links inside running text are blue and underlined, so they never rely on
   colour alone. Component links (buttons, chips, cards) carry classes and
   keep their own styling. */
.site-main p > a:not([class]),
.site-main li > a:not([class]):where(.sg-prose *, .wp-block-post-content *) {
	color: var(--sg-blue);
	text-decoration: underline;
}

.site-main p > a:not([class]):hover {
	color: var(--sg-ink);
}

hr {
	border: 0;
	border-top: 1px solid var(--sg-line);
	margin: 2rem 0;
}

strong,
b {
	font-weight: 600;
	color: var(--sg-ink);
}

/* Focus: one visible ring everywhere (WCAG 2.4.7). */
:focus-visible {
	outline: 2px solid var(--sg-blue);
	outline-offset: 2px;
}

/* Skip link (core prints it for block themes). */
.skip-link.screen-reader-text:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	padding: 12px 18px;
	border-radius: var(--sg-radius-input);
	background: var(--sg-ink);
	color: #fff;
	font-family: var(--sg-font-head);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	box-shadow: var(--sg-shadow-raised);
}

/* ---------- Forms ---------- */
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], input[type="date"], select, textarea) {
	box-sizing: border-box;
	max-width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--sg-input-border);
	border-radius: var(--sg-radius-input);
	background-color: #fff;
	color: var(--sg-ink);
	font-family: var(--sg-font-body);
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color 0.15s var(--sg-ease), box-shadow 0.15s var(--sg-ease);
}

:where(textarea) {
	min-height: 120px;
	resize: vertical;
}

:where(select) {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6476' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
}

:where(input, select, textarea):hover {
	border-color: var(--sg-muted);
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):focus {
	border-color: var(--sg-blue);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
	outline: none;
}

:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible {
	outline: 2px solid var(--sg-blue);
	outline-offset: 1px;
}

:where(input, textarea)::placeholder {
	color: #6b7486;
	opacity: 1;
}

:where(input[type="checkbox"], input[type="radio"]) {
	width: 18px;
	height: 18px;
	accent-color: var(--sg-teal-700);
	vertical-align: middle;
}

:where(fieldset) {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

:where(button) {
	font-family: inherit;
}

/* Generic form layout helpers for theme forms. */
.sg-field {
	display: grid;
	gap: 6px;
	margin: 0 0 18px;
}

.sg-field > label,
.sg-label {
	font-family: var(--sg-font-head);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--sg-ink);
}

.sg-field__hint {
	font-size: 0.8125rem;
	color: var(--sg-muted);
	margin: 0;
}

/* ---------- Buttons (legacy .pdir-btn mapped onto the .sg-btn look) ---------- */
.pdir-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: var(--sg-radius-pill);
	font-family: var(--sg-font-head);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.18s var(--sg-ease), border-color 0.18s var(--sg-ease), color 0.18s var(--sg-ease), transform 0.18s var(--sg-ease);
}

.pdir-btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
}

.pdir-btn:active {
	transform: none;
}

.pdir-btn--primary {
	background: var(--sg-teal-700);
	color: #fff;
}

.pdir-btn--primary:hover {
	background: var(--sg-teal-600);
	color: #fff;
}

.pdir-btn--outline {
	background: #fff;
	border-color: var(--sg-line-strong);
	color: var(--sg-ink);
}

.pdir-btn--outline:hover {
	border-color: var(--sg-ink);
	background: #fff;
	color: var(--sg-ink);
}

.pdir-btn--small {
	min-height: 36px;
	padding: 6px 14px;
	font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
	.pdir-btn,
	.pdir-btn:hover {
		transition: none;
		transform: none;
	}
}

/* ---------- Accordions (details/summary) ---------- */
.sg-accordion {
	border-top: 1px solid var(--sg-line);
}

.sg-accordion > details,
.sg-accordion__item {
	border-bottom: 1px solid var(--sg-line);
}

.sg-accordion summary,
details.wp-block-details > summary {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
	list-style: none;
	cursor: pointer;
	font-family: var(--sg-font-head);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--sg-ink);
}

.sg-accordion summary::-webkit-details-marker,
details.wp-block-details > summary::-webkit-details-marker {
	display: none;
}

/* Plus/minus marker drawn in CSS (no icon font, no request). */
.sg-accordion summary::after,
details.wp-block-details > summary::after {
	content: "";
	flex: none;
	width: 28px;
	height: 28px;
	margin-top: -2px;
	border-radius: 50%;
	background:
		linear-gradient(var(--sg-ink), var(--sg-ink)) center / 12px 2px no-repeat,
		linear-gradient(var(--sg-ink), var(--sg-ink)) center / 2px 12px no-repeat,
		var(--sg-soft);
	transition: transform 0.2s var(--sg-ease), background-color 0.2s var(--sg-ease);
}

.sg-accordion details[open] > summary::after,
details.wp-block-details[open] > summary::after {
	background:
		linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
		var(--sg-teal-700);
}

.sg-accordion summary:hover {
	color: var(--sg-teal-700);
}

.sg-accordion__body {
	padding: 0 44px 20px 0;
	color: var(--sg-text);
	line-height: 1.7;
}

.sg-accordion__body > :first-child {
	margin-top: 0;
}

.sg-accordion__body > :last-child {
	margin-bottom: 0;
}

.sg-accordion__body a {
	color: var(--sg-blue);
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.sg-accordion summary::after {
		transition: none;
	}
}

/* Accordions open and close smoothly where the browser can animate to
   height:auto (::details-content + interpolate-size); elsewhere they open
   at once, as before. Only accordion-style disclosures are animated, never
   dropdown menus built on <details>. Other blocks can opt in with the
   class "sg-details" on their <details>. */
@media (prefers-reduced-motion: no-preference) {
	@supports (interpolate-size: allow-keywords) {
		.sg-accordion details,
		details.sg-accordion__item,
		details.pdir-faq__item,
		details.wp-block-details,
		details.sg-details,
		details.sg-sheet__group {
			interpolate-size: allow-keywords;
		}

		.sg-accordion details::details-content,
		details.sg-accordion__item::details-content,
		details.pdir-faq__item::details-content,
		details.wp-block-details::details-content,
		details.sg-details::details-content,
		details.sg-sheet__group::details-content {
			block-size: 0;
			overflow-y: clip;
			transition:
				block-size var(--sg-dur-open) var(--sg-ease),
				content-visibility var(--sg-dur-open) allow-discrete;
		}

		.sg-accordion details[open]::details-content,
		details.sg-accordion__item[open]::details-content,
		details.pdir-faq__item[open]::details-content,
		details.wp-block-details[open]::details-content,
		details.sg-details[open]::details-content,
		details.sg-sheet__group[open]::details-content {
			block-size: auto;
		}
	}
}

/* Print: every answer and disclosure prints in full, open or not. */
@media print {
	details::details-content {
		content-visibility: visible;
		block-size: auto;
	}
}

/* ---------- Tables ---------- */
.wp-block-table {
	overflow-x: auto;
	margin: 1.5em 0;
}

.sg-table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.sg-table th,
.sg-table td,
.wp-block-table th,
.wp-block-table td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--sg-line);
	text-align: left;
	vertical-align: top;
}

.sg-table th,
.wp-block-table th {
	font-family: var(--sg-font-head);
	font-weight: 600;
	color: var(--sg-ink);
	background: var(--sg-soft);
}

/* ---------- Pagination ---------- */
.sg-pagination,
.wp-block-query-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 48px 0 0;
}

.sg-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.sg-pagination .page-numbers,
.wp-block-query-pagination-numbers .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--sg-line);
	border-radius: var(--sg-radius-pill);
	background: #fff;
	color: var(--sg-ink);
	font-family: var(--sg-font-head);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.sg-pagination a.page-numbers:hover,
.wp-block-query-pagination a:hover {
	border-color: var(--sg-ink);
	color: var(--sg-ink);
}

.sg-pagination .page-numbers.current,
.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--sg-ink);
	border-color: var(--sg-ink);
	color: #fff;
}

.sg-pagination .page-numbers.dots,
.wp-block-query-pagination-numbers .page-numbers.dots {
	border-color: transparent;
	min-width: 24px;
	padding: 0;
}

.sg-pagination svg {
	width: 16px;
	height: 16px;
}

/* ---------- Notices ---------- */
.sg-notice {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	border: 1px solid var(--sg-line);
	border-radius: var(--sg-radius-input);
	background: var(--sg-soft);
	color: var(--sg-text);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.sg-notice > svg {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 1px;
}

.sg-notice p {
	margin: 0;
}

.sg-notice--info {
	background: var(--sg-tint);
	border-color: #d6e0fb;
	color: #1e3a8a;
}

.sg-notice--success {
	background: var(--sg-green-bg);
	border-color: #c8e8d3;
	color: #14532d;
}

.sg-notice--warning {
	background: var(--sg-gold-bg);
	border-color: #f3dfa2;
	color: var(--sg-gold-ink);
}

.sg-notice--error {
	background: #fef3f2;
	border-color: #fecdca;
	color: var(--sg-red);
}

/* ---------- Layout ---------- */
.site-main {
	padding-top: 24px;
	padding-bottom: 64px;
	min-height: 50vh;
}

/* Templates that open with a full-width band manage their own spacing. */
.site-main.sg-main {
	padding: 0;
}

/* ---------- Sticky header ---------- */

/* The header template part is the first child of .wp-site-blocks on every
   template with a header. Its wrapper is the sticky element, and
   assets/js/firm-profile.js measures the same node, so keep this selector. */
.wp-site-blocks > .wp-block-template-part:first-child {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: var(--sg-z-header);
}

/* While the mobile sheet is open the header stacks above everything,
   including the compare tray. */
.sg-sheet-open .wp-site-blocks > .wp-block-template-part:first-child {
	z-index: 1000;
}

html.sg-sheet-open,
html.sg-sheet-open body {
	overflow: hidden;
}

.sg-header {
	position: relative;
	background: #fff;
	border-bottom: 1px solid var(--sg-line);
	transition: box-shadow 0.2s var(--sg-ease), background-color 0.2s var(--sg-ease);
}

.sg-header.is-scrolled {
	box-shadow: 0 8px 24px -16px rgba(16, 24, 40, 0.22);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.sg-header.is-scrolled {
		background: rgba(255, 255, 255, 0.86);
		-webkit-backdrop-filter: saturate(180%) blur(14px);
		backdrop-filter: saturate(180%) blur(14px);
	}
}

.sg-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--sg-header-h);
}

/* ---------- Wordmark ---------- */
.sg-header__logo,
.sg-footer__logo {
	display: inline-flex;
	flex: none;
	color: var(--sg-ink);
	text-decoration: none;
	border-radius: 6px;
}

.sg-header__logo:hover {
	color: var(--sg-ink);
	text-decoration: none;
}

.sg-wordmark {
	display: inline-flex;
	align-items: baseline;
	padding-top: 0.42em;
	font-family: var(--sg-font-head);
	font-size: 1.3125rem;
	line-height: 1;
	letter-spacing: -0.025em;
	white-space: nowrap;
	color: inherit;
}

.sg-wordmark__a {
	font-weight: 500;
}

.sg-wordmark__b {
	position: relative;
	font-weight: 700;
}

.sg-wordmark__stars {
	position: absolute;
	left: 5%;
	bottom: 100%;
	display: block;
	width: 90%;
	height: auto;
	margin-bottom: 0.1em;
	color: var(--sg-gold);
}

.sg-wordmark__tld {
	margin-left: 0.14em;
	font-size: 0.42em;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--sg-muted);
}

/* ---------- Desktop navigation ---------- */
.sg-nav {
	margin-left: 8px;
}

.sg-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sg-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 40px;
	padding: 0 12px;
	border: 0;
	border-radius: var(--sg-radius-pill);
	background: none;
	color: var(--sg-text);
	font-family: var(--sg-font-body);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s var(--sg-ease), color 0.15s var(--sg-ease);
}

.sg-nav__link:hover,
.sg-nav__item.is-open > .sg-nav__toggle {
	background: var(--sg-soft);
	color: var(--sg-ink);
	text-decoration: none;
}

.sg-nav__link[aria-current="page"] {
	background: var(--sg-teal-50);
	color: var(--sg-teal-700);
	font-weight: 600;
}

.sg-nav__chev {
	flex: none;
	opacity: 0.7;
	transition: transform 0.2s var(--sg-ease);
}

.sg-nav__item.is-open > .sg-nav__toggle .sg-nav__chev {
	transform: rotate(180deg);
}

/* Mega menus: a container-width card under the header. */
.sg-mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: none;
	padding: 8px var(--sg-gutter) 0;
	z-index: var(--sg-z-dropdown);
}

.sg-nav__item.is-open > .sg-mega,
html:not(.sg-js) .sg-nav__item:hover > .sg-mega,
html:not(.sg-js) .sg-nav__item:focus-within > .sg-mega {
	display: block;
}

.sg-mega__inner {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 40px;
	max-width: var(--sg-container);
	margin: 0 auto;
	padding: 32px;
	border: 1px solid var(--sg-line);
	border-radius: var(--sg-radius-card);
	background: #fff;
	box-shadow: var(--sg-shadow-search);
	animation: sg-drop 0.18s var(--sg-ease);
}

@keyframes sg-drop {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

.sg-mega__intro {
	padding-right: 32px;
	border-right: 1px solid var(--sg-line);
}

.sg-mega__title {
	margin: 0 0 8px;
	font-family: var(--sg-font-head);
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--sg-ink);
}

.sg-mega__text {
	margin: 0 0 20px;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--sg-muted);
}

.sg-mega__all,
.sg-sheet__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--sg-teal-700);
	font-family: var(--sg-font-head);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.sg-mega__all:hover,
.sg-sheet__all:hover {
	color: var(--sg-teal-600);
	text-decoration: underline;
}

.sg-mega__grid {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 3;
	column-gap: 32px;
}

.sg-mega__group {
	break-inside: avoid;
	padding-bottom: 20px;
}

.sg-mega__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--sg-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

a.sg-mega__head:hover {
	color: var(--sg-teal-700);
	text-decoration: underline;
}

.sg-mega__head--label {
	color: var(--sg-muted);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.sg-mega__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(180deg, var(--sg-tint), var(--sg-tint-2));
	border: 1px solid #dfe7fb;
	color: var(--sg-teal-700);
}

.sg-mega__sub {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.sg-mega__grid--areas .sg-mega__sub {
	padding-left: 42px;
}

.sg-mega__sub a {
	display: inline-block;
	padding: 3px 0;
	color: var(--sg-muted);
	font-size: 0.875rem;
	line-height: 1.45;
	text-decoration: none;
}

.sg-mega__sub a:hover {
	color: var(--sg-ink);
	text-decoration: underline;
}

/* ---------- Header actions ---------- */
.sg-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.sg-header__login {
	padding: 8px 6px;
	color: var(--sg-text);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.sg-header__login:hover {
	color: var(--sg-ink);
	text-decoration: underline;
}

.sg-header__login[aria-current="page"] {
	color: var(--sg-teal-700);
	font-weight: 600;
}

.sg-header__burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--sg-line);
	border-radius: 12px;
	background: #fff;
	color: var(--sg-ink);
}

.sg-header__burger:hover {
	border-color: var(--sg-line-strong);
	background: var(--sg-soft);
	color: var(--sg-ink);
}

@media (max-width: 1279px) {
	.sg-nav__link {
		padding: 0 10px;
	}

	.sg-header__inner {
		gap: 16px;
	}
}

@media (max-width: 1139px) {
	.sg-nav,
	.sg-header__list,
	.sg-header__login,
	.sg-header__account {
		display: none;
	}

	.sg-header__burger {
		display: inline-flex;
	}
}

@media (max-width: 639px) {
	.sg-header__cta {
		display: none;
	}

	.sg-wordmark {
		font-size: 1.1875rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sg-header,
	.sg-nav__link,
	.sg-nav__chev {
		transition: none;
	}

	.sg-mega__inner {
		animation: none;
	}
}

/* ---------- Mobile menu sheet ---------- */
.sg-sheet {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1001;
	display: flex;
	flex-direction: column;
	background: #fff;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.2s var(--sg-ease), transform 0.2s var(--sg-ease);
}

.sg-sheet[hidden] {
	display: none;
}

.sg-sheet.is-open {
	opacity: 1;
	transform: none;
}

@media (min-width: 1140px) {
	.sg-sheet {
		display: none !important;
	}
}

.sg-sheet__head {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	height: var(--sg-header-h);
	padding: 0 var(--sg-gutter);
	border-bottom: 1px solid var(--sg-line);
}

.sg-sheet__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--sg-line);
	border-radius: 12px;
	background: #fff;
	color: var(--sg-ink);
	cursor: pointer;
}

.sg-sheet__close:hover {
	background: var(--sg-soft);
}

.sg-sheet__body {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 4px var(--sg-gutter) 24px;
}

.sg-sheet__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sg-sheet__list > li {
	border-bottom: 1px solid var(--sg-line);
}

.sg-sheet__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 58px;
	color: var(--sg-ink);
	font-family: var(--sg-font-head);
	font-size: 1.125rem;
	font-weight: 600;
	text-decoration: none;
	list-style: none;
	cursor: pointer;
}

.sg-sheet__link::-webkit-details-marker {
	display: none;
}

.sg-sheet__link:hover {
	color: var(--sg-teal-700);
}

.sg-sheet__group[open] > .sg-sheet__link .sg-nav__chev {
	transform: rotate(180deg);
}

.sg-sheet__sub {
	margin: 0;
	padding: 0 0 16px;
	list-style: none;
}

.sg-sheet__area {
	display: block;
	padding: 10px 0 6px;
	color: var(--sg-ink);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}

.sg-sheet__area--label {
	color: var(--sg-muted);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

a.sg-sheet__area:hover {
	color: var(--sg-teal-700);
}

.sg-sheet__leaf {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 2px 0 8px;
	list-style: none;
}

.sg-sheet__leaf a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--sg-line);
	border-radius: var(--sg-radius-pill);
	background: var(--sg-soft);
	color: var(--sg-text);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
}

.sg-sheet__leaf a:hover {
	border-color: var(--sg-line-strong);
	background: #fff;
	color: var(--sg-ink);
}

.sg-sheet__all {
	padding: 12px 0 4px;
}

.sg-sheet__foot {
	display: grid;
	flex: none;
	gap: 10px;
	padding: 16px var(--sg-gutter) calc(16px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--sg-line);
	background: #fff;
}

.sg-sheet__foot .sg-btn {
	width: 100%;
}

.sg-sheet__account {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 16px;
	margin: 4px 0 0;
	color: var(--sg-muted);
	font-size: 0.875rem;
	text-align: center;
}

.sg-sheet__account a {
	color: var(--sg-teal-700);
	font-weight: 600;
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.sg-sheet {
		transition: none;
		transform: none;
	}
}

/* ---------- Footer ---------- */
.sg-footer {
	background: var(--sg-dark);
	color: rgba(255, 255, 255, 0.72);
	padding: 64px 0 32px;
	font-size: 0.875rem;
	line-height: 1.55;
}

.sg-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 48px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sg-footer__logo {
	color: #fff;
}

.sg-footer__logo:hover {
	color: #fff;
}

.sg-footer__logo .sg-wordmark {
	font-size: 1.5rem;
}

.sg-footer__logo .sg-wordmark__tld {
	color: rgba(255, 255, 255, 0.62);
}

.sg-footer__about {
	max-width: 460px;
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9375rem;
}

.sg-footer__grid {
	display: grid;
	grid-template-columns: 1fr 1.35fr 1.35fr 1fr 0.8fr;
	gap: 32px;
	padding: 40px 0;
}

/* With the "Tools and help" column (shown once those pages exist). */
.sg-footer__grid--help {
	grid-template-columns: 1fr 1.3fr 1.3fr 0.9fr 1fr 0.8fr;
	gap: 28px;
}

.sg-footer__title {
	margin: 0 0 16px;
	color: #fff;
	font-family: var(--sg-font-head);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.sg-footer__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sg-footer__link {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
}

.sg-footer__link:hover {
	color: #fff;
	text-decoration: underline;
}

.sg-footer__list--split {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 16px;
}

.sg-footer__list--empty {
	display: none;
}

.sg-footer__link--all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	color: #fff;
	font-weight: 600;
}

.sg-footer__list--empty + .sg-footer__link--all {
	margin-top: 0;
}

.sg-footer a:focus-visible,
.home-cta :focus-visible {
	outline-color: #fff;
}

.sg-footer__bottom {
	display: grid;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sg-footer__disclosure {
	max-width: 920px;
	margin: 0;
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.8125rem;
	line-height: 1.6;
}

.sg-footer__disclosure a {
	color: #fff;
	text-decoration: underline;
}

.sg-footer__base {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	font-size: 0.8125rem;
}

.sg-footer__copy {
	margin: 0;
	color: rgba(255, 255, 255, 0.62);
}

.sg-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.sg-footer__legal a:hover {
	color: #fff;
	text-decoration: underline;
}

/* Six columns get cramped below desktop widths: three a row instead. */
@media (max-width: 1199px) {
	.sg-footer__grid--help {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 32px;
	}
}

@media (max-width: 1023px) {
	.sg-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	.sg-footer {
		padding-top: 48px;
	}

	.sg-footer__top {
		padding-bottom: 32px;
	}

	.sg-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 20px;
		padding: 32px 0;
	}

	.sg-footer__col--areas,
	.sg-footer__col--guides,
	.sg-footer__col--places {
		grid-column: 1 / -1;
	}

	.sg-footer__col--areas .sg-footer__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 16px;
	}

	.sg-footer__list--split {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sg-footer__base {
		flex-direction: column;
		align-items: flex-start;
	}

	/* 44px touch targets on phones: padding, not bigger text. */
	.sg-footer__list {
		gap: 0;
	}

	.sg-footer__link,
	.sg-footer__legal a {
		display: flex;
		align-items: center;
		width: fit-content;
		max-width: 100%;
		min-height: 44px;
		padding-block: 4px;
	}

	.sg-footer__link--all {
		display: inline-flex;
		margin-top: 4px;
	}

	.sg-footer__legal {
		gap: 0 20px;
	}

	.sg-footer__logo {
		align-items: center;
		min-height: 44px;
	}
}

/* ---------- Breadcrumbs (block markup from blocks/breadcrumbs) ---------- */
.pdir-breadcrumbs {
	margin: 0 0 20px;
	color: var(--sg-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.pdir-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pdir-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.pdir-breadcrumbs li + li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.55;
}

.pdir-breadcrumbs a {
	color: var(--sg-muted);
	text-decoration: none;
}

.pdir-breadcrumbs a:hover {
	color: var(--sg-ink);
	text-decoration: underline;
}

.pdir-breadcrumbs [aria-current="page"] {
	color: var(--sg-ink);
	font-weight: 500;
}

/* Small screens: the current page (repeated by the H1 just below) keeps to
   one line instead of wrapping a long guide title over two or three. */
@media (max-width: 639px) {
	.pdir-breadcrumbs li:last-child {
		max-width: 100%;
	}

	.pdir-breadcrumbs [aria-current="page"] {
		min-width: 0;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
}

/* ---------- Page hero band (pages, guides, search, 404, login) ---------- */
.sg-pagehead {
	position: relative;
	padding: 40px 0 44px;
	background:
		radial-gradient(640px 320px at 85% -10%, rgba(220, 231, 255, 0.55), rgba(220, 231, 255, 0) 70%),
		radial-gradient(520px 300px at 0% 110%, rgba(221, 240, 238, 0.45), rgba(221, 240, 238, 0) 70%),
		linear-gradient(180deg, #f3f6fc 0%, #ffffff 100%);
	border-bottom: 1px solid var(--sg-line);
}

.sg-pagehead__inner > :last-child {
	margin-bottom: 0;
}

.sg-pagehead .sg-eyebrow {
	margin-bottom: 10px;
}

.sg-pagehead__title,
.sg-pagehead h1 {
	max-width: 900px;
	margin: 0 0 14px;
	font-size: var(--sg-fs-page-h1);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.025em;
	color: var(--sg-ink);
}

.sg-pagehead__lead,
.sg-pagehead .wp-block-post-excerpt__excerpt {
	max-width: 720px;
	margin: 0;
	color: var(--sg-muted);
	font-size: var(--sg-fs-lead);
	line-height: 1.6;
}

.sg-pagehead .wp-block-post-excerpt {
	margin: 0;
}

.sg-pagehead .wp-block-post-excerpt__more-text {
	display: none;
}

/* Narrow column variant for text pages: band and body share one column. */
.sg-col {
	width: 100%;
	max-width: calc(760px + var(--sg-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--sg-gutter);
}

.sg-page__body {
	padding-top: 48px;
	padding-bottom: 96px;
}

@media (max-width: 781px) {
	.sg-pagehead {
		padding: 28px 0 32px;
	}

	.sg-page__body {
		padding-top: 32px;
		padding-bottom: 64px;
	}
}

/* Long-form body: core post-content inside .sg-prose. */
.sg-prose.wp-block-post-content > *,
.sg-prose .wp-block-post-content > * {
	max-width: none;
}

.sg-prose > :first-child,
.sg-prose .wp-block-post-content > :first-child {
	margin-top: 0;
}

.sg-prose h2 {
	scroll-margin-top: 96px;
}

.sg-prose img {
	border-radius: 12px;
}

.sg-prose figure {
	margin: 1.75em 0;
}

.sg-prose figcaption {
	margin-top: 8px;
	color: var(--sg-muted);
	font-size: 0.875rem;
}

.sg-prose hr {
	margin: 2.5em 0;
}

/* Empty state used by the guides index and search. */
.sg-empty {
	max-width: 560px;
	margin: 0 auto;
	padding: 48px 24px;
	text-align: center;
	border: 1px dashed var(--sg-line-strong);
	border-radius: var(--sg-radius-card);
	background: var(--sg-soft);
}

.sg-empty h2 {
	margin: 0 0 8px;
	font-size: 1.25rem;
}

.sg-empty p {
	margin: 0 0 16px;
	color: var(--sg-muted);
}

/* Search form (search.html, 404.html). */
.sg-searchform {
	display: flex;
	gap: 8px;
	max-width: 560px;
	margin-top: 24px;
	padding: 6px;
	border: 1px solid var(--sg-line);
	border-radius: var(--sg-radius-pill);
	background: #fff;
	box-shadow: var(--sg-shadow-card);
}

.sg-searchform:focus-within {
	border-color: var(--sg-blue);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.sg-searchform input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--sg-radius-pill);
	background: transparent;
	box-shadow: none;
}

.sg-searchform input[type="search"]:focus,
.sg-searchform input[type="search"]:focus-visible {
	outline: none;
	box-shadow: none;
}

.sg-searchform .sg-btn {
	flex: none;
}

/* Phones: an icon-only button leaves the input room for its placeholder.
   The label stays available to screen readers. */
@media (max-width: 479px) {
	.sg-searchform .sg-btn {
		position: relative;
		width: 44px;
		padding: 0;
	}

	.sg-searchform__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* Page lead block (page.html): lead paragraph + last-updated line. */
.sg-pagelead > :last-child {
	margin-bottom: 0;
}

.sg-pagehead__meta {
	margin: 16px 0 0;
	color: var(--sg-muted);
	font-size: 0.875rem;
}
