.svt [hidden],
.svt[hidden],
iframe[data-svt-external-src][hidden],
.svt__embed-notice[hidden],
[data-svt-open][hidden] {
	display: none !important;
}

.svt {
	--svt-blue: #135da4;
	--svt-teal: #0a7891;
	--svt-ink: #172c49;
	--svt-bottom: calc(16px + env(safe-area-inset-bottom));
	line-height: 1.5;
}

.svt__launcher {
	position: fixed;
	z-index: 11;
	bottom: var(--svt-bottom);
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--svt-blue);
	color: #fff;
	box-shadow: 0 2px 7px #1029494a;
	cursor: pointer;
}

.svt__launcher--reading { left: max(14px, env(safe-area-inset-left)); }
.svt__launcher--contact { right: max(14px, env(safe-area-inset-right)); background: var(--svt-teal); }
.svt__launcher:hover { filter: brightness(.88); }

.svt__dialog {
	box-sizing: border-box;
	width: min(440px, calc(100% - 24px));
	max-height: calc(100% - 32px);
	padding: 20px;
	margin: auto;
	border: 1px solid #d5e1ed;
	border-radius: 10px;
	background: #fff;
	color: var(--svt-ink);
	box-shadow: 0 10px 36px #0e183444;
}

.svt__dialog:not([open]) { display: none; }
.svt__dialog::backdrop { background: #0e183455; }
.svt__dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.svt__dialog h2 { margin: 3px 0 12px; color: var(--svt-ink); font-size: 21px; line-height: 1.3; }
.svt__dialog p { margin: 0 0 13px; }
.svt__dialog label { display: block; width: fit-content; padding: 5px 0; cursor: pointer; }
.svt__dialog input { margin-right: 8px; }
.svt__dialog a { color: var(--svt-blue); text-decoration: underline; }
.svt__close {
	height: 40px;
	min-width: 40px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--svt-ink);
	font: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.svt__close:hover { background: #e9f0f8; }

.svt__dialog--privacy {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(400px, 92vw);
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 20px;
	border: 0;
	border-radius: 0;
	background: #f6f8fb;
	color: #1b2532;
	font: 400 16px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.svt__dialog--privacy::backdrop { background: transparent; }

.svt__dialog--privacy header { align-items: center; min-height: 40px; }
.svt__dialog--privacy h2 { margin: 0; color: inherit; font: 700 16px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.svt__dialog--privacy .svt__close { color: inherit; font-size: 20px; }
.svt__privacy-nav { display: flex; align-items: stretch; gap: 8px; margin-bottom: 14px; border-bottom: 1px solid #e1e6ee; }
.svt__privacy-nav > * { padding: 12px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: inherit; font: inherit; font-size: 14px; }
.svt__privacy-nav button:hover { color: var(--svt-blue); }
.svt__privacy-nav [aria-current] { border-bottom-color: var(--svt-blue); }
.svt__dialog--privacy .svt__privacy-summary { padding: 10px 12px; border-radius: 6px; background: #eff4fa; font-size: 14px; }
.svt__privacy-option { margin-bottom: 14px; padding: 12px; border: 1px solid #dce1e8; border-radius: 8px; }
.svt__privacy-option .svt__privacy-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 0; font-size: 14px; }
.svt__privacy-always { color: #455a70; font-size: 12px; }
.svt__privacy-option p { margin: 5px 0 0; color: #434d59; font-size: 14px; }
.svt__privacy-option input[role="switch"] {
	appearance: none;
	display: grid;
	align-items: center;
	flex: 0 0 44px;
	height: 26px;
	margin: 0;
	padding: 2px 3px;
	border: 1px solid #747d88;
	border-radius: 20px;
	background: #fff;
	cursor: pointer;
}
.svt__privacy-option input[role="switch"]::before { width: 18px; height: 18px; border-radius: 50%; background: #747d88; content: ''; }
.svt__privacy-option input[role="switch"]:checked { border-color: var(--svt-blue); background: var(--svt-blue); }
.svt__privacy-option input[role="switch"]:checked::before { background: #fff; transform: translateX(18px); }
.svt__dialog--privacy form > p { font-size: 14px; }
.svt__dialog--privacy .svt__actions { margin-top: 16px; }
.svt__dialog--privacy .svt__actions button { font-size: 14px; }

.svt__banner {
	position: fixed;
	inset: auto 65px var(--svt-bottom) 65px;
	z-index: 11;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 18px;
	padding: 12px 16px;
	border: 1px solid #d5e1ed;
	border-radius: 8px;
	background: #fff;
	color: var(--svt-ink);
	box-shadow: 0 2px 10px #0e183424;
	font-size: 14px;
}

.svt__banner p { margin: 0; }
.svt__actions, .svt__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.svt .svt__links { margin-top: 12px; }
.svt__primary, .svt__secondary, .svt__text-button, .svt__embed-notice button {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	padding: 7px 12px;
	border: 1px solid var(--svt-blue, #135da4);
	border-radius: 5px;
	background: #fff;
	color: var(--svt-blue, #135da4);
	font: inherit;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
}

.svt .svt__primary { background: var(--svt-blue); color: #fff; }
.svt .svt__primary:hover { background: #10477a; }
.svt .svt__secondary:hover, .svt__embed-notice button:hover { background: #e9f0f8; }
.svt .svt__text-button { padding-inline: 4px; border-color: transparent; text-decoration: underline !important; }
.svt [data-svt-current] { margin: 12px 0 0; font-size: 14px; }

.svt__embed-notice {
	box-sizing: border-box;
	display: grid;
	justify-items: center;
	align-content: center;
	gap: 10px;
	min-height: 125px;
	padding: 16px;
	background: #eff4fa;
	color: #172c49;
	border-radius: 6px;
	text-align: center;
}
.svt__embed-notice p { margin: 0; }

.svt-large-text .entry-content :is(p, li, td, th, figcaption),
.svt-large-text .sp-card-text p { font-size: 1.15em !important; }
.svt-link-underline :is(.entry-content, .sp-card-text) a { text-decoration: underline !important; }
.svt-strong-focus :is(a, button, select, input, textarea):focus-visible {
	outline: 3px solid #ffcf36 !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 6px #142643 !important;
}
.svt-less-motion *, .svt-less-motion *::before, .svt-less-motion *::after {
	animation-duration: .01ms !important;
	scroll-behavior: auto !important;
	transition-duration: .01ms !important;
}

@media (max-width: 1024px) {
	.svt { --svt-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

@media (max-width: 650px) {
	.svt__banner { inset: auto 10px calc(var(--svt-bottom) + 55px); padding: 10px 12px; }
	.svt__banner .svt__actions { gap: 5px; }
	.svt__banner button { font-size: 13px; }
}
