/* Cookie consent (Gradespace Core). Colours come from the theme through the --gsc-* tokens (see ARCHITECTURE.md). */
.gsc-consent {
	position: fixed;
	left: clamp(0.75rem, 2vw, 1.5rem);
	bottom: clamp(0.75rem, 2vw, 1.5rem);
	z-index: 100000;
	max-width: min(420px, calc(100vw - 1.5rem));
	font-family: var(--gsc-font, system-ui, sans-serif);
}
.gsc-consent[hidden],
.gsc-consent-fab[hidden] {
	display: none !important;
}
.gsc-consent__card {
	padding: 1.4rem 1.4rem 1.2rem;
	border: 1px solid var(--gsc-line, #E1E7F2);
	border-radius: 24px;
	background: var(--gsc-surface, #fff);
	color: var(--gsc-ink, #0B1B33);
	box-shadow: 0 24px 60px rgba(11, 27, 51, 0.22);
	animation: gsc-consent-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes gsc-consent-in {
	from { opacity: 0; transform: translateY(16px); }
}
@media (prefers-reduced-motion: reduce) {
	.gsc-consent__card { animation: none; }
}
.gsc-consent__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 0.75rem;
	border-radius: 14px;
	background: var(--gsc-tint, #E8F4FD);
	color: var(--gsc-brand, #1A73C0);
}
.gsc-consent__title {
	margin: 0 0 0.4rem;
	font-family: var(--gsc-font-display, var(--gsc-font), system-ui);
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.gsc-consent__text {
	margin: 0 0 1rem;
	color: var(--gsc-muted, #3A4660);
	font-size: 0.9375rem;
	line-height: 1.5;
}
.gsc-consent__text a {
	color: var(--gsc-brand, #1A73C0);
	font-weight: 700;
}
.gsc-consent__actions,
.gsc-consent-panel__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}
.gsc-consent__btn {
	min-height: 44px;
	padding: 0 1.2rem;
	border: 1.5px solid var(--gsc-line, #E1E7F2);
	border-radius: 999px;
	background: var(--gsc-surface, #fff);
	color: var(--gsc-ink, #0B1B33);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
}
.gsc-consent__btn:hover {
	border-color: var(--gsc-ink, #0B1B33);
}
.gsc-consent__btn.is-primary {
	border-color: var(--gsc-ink, #0B1B33);
	background: var(--gsc-band-bg, var(--gsc-ink));
	color: var(--gsc-band-text, #fff);
}
.gsc-consent__btn.is-primary:hover {
	border-color: var(--gsc-brand, #1A73C0);
	background: var(--gsc-brand, #1A73C0);
}
.gsc-consent__link {
	min-height: 44px;
	padding: 0 0.6rem;
	border: 0;
	background: none;
	color: var(--gsc-brand, #1A73C0);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
}
.gsc-consent__btn:focus-visible,
.gsc-consent__link:focus-visible,
.gsc-consent-fab:focus-visible,
.gsc-consent-panel__close:focus-visible {
	outline: 2px solid var(--gsc-brand, #1A73C0);
	outline-offset: 2px;
}

/* Floating cookie button */
.gsc-consent-fab {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 99998;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--gsc-line, #E1E7F2);
	border-radius: 50%;
	background: var(--gsc-surface, #fff);
	color: var(--gsc-ink, #0B1B33);
	box-shadow: 0 8px 24px rgba(11, 27, 51, 0.16);
	cursor: pointer;
	transition: transform 0.2s;
}
.gsc-consent-fab:hover {
	transform: rotate(-12deg) scale(1.06);
}

/* Preferences panel */
.gsc-consent-panel {
	width: min(560px, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	padding: 0;
	border: 0;
	border-radius: 28px;
	background: var(--gsc-surface, #fff);
	color: var(--gsc-ink, #0B1B33);
	box-shadow: 0 30px 90px rgba(11, 27, 51, 0.35);
	font-family: var(--gsc-font, system-ui, sans-serif);
}
.gsc-consent-panel::backdrop {
	background: rgba(11, 27, 51, 0.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.gsc-consent-panel__inner {
	padding: 1.6rem;
}
.gsc-consent-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.gsc-consent-panel__head h2 {
	margin: 0;
	font-family: var(--gsc-font-display, var(--gsc-font), system-ui);
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.gsc-consent-panel__close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--gsc-soft, #EEF1F6);
	color: inherit;
	cursor: pointer;
}
.gsc-consent-panel__intro {
	margin: 0.5rem 0 1.25rem;
	color: var(--gsc-muted, #3A4660);
	font-size: 0.9375rem;
}
.gsc-consent-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 1rem 0;
	border-top: 1px solid var(--gsc-line, #E1E7F2);
}
.gsc-consent-row h3 {
	margin: 0 0 0.2rem;
	font-size: 1rem;
	font-weight: 800;
}
.gsc-consent-row p {
	margin: 0;
	color: var(--gsc-muted, #3A4660);
	font-size: 0.875rem;
	line-height: 1.45;
}
.gsc-consent-row__always {
	flex: none;
	color: var(--gsc-brand, #1A73C0);
	font-size: 0.8125rem;
	font-weight: 800;
	white-space: nowrap;
}
.gsc-consent-panel__foot {
	justify-content: flex-end;
	padding-top: 1rem;
	border-top: 1px solid var(--gsc-line, #E1E7F2);
}

/* Switch */
.gsc-switch {
	position: relative;
	flex: none;
	width: 52px;
	height: 30px;
}
.gsc-switch input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.gsc-switch__track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #C5CDDB;
	transition: background 0.2s;
}
.gsc-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--gsc-surface, #fff);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s;
}
.gsc-switch input:checked + .gsc-switch__track {
	background: var(--gsc-brand, #1A73C0);
}
.gsc-switch input:checked + .gsc-switch__track::after {
	transform: translateX(22px);
}
.gsc-switch input:focus-visible + .gsc-switch__track {
	outline: 2px solid var(--gsc-brand, #1A73C0);
	outline-offset: 2px;
}

/* Video waiting for consent */
.gsc-video__consent {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	padding: 1.5rem;
	background: rgba(11, 27, 51, 0.86);
	color: #FFFFFF;
	text-align: center;
}
.gsc-video__consent p {
	max-width: 30rem;
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
}
.gsc-video__consent .gsc-consent__actions {
	justify-content: center;
}
.gsc-video__consent .gsc-consent__btn:not(.is-primary) {
	border-color: rgba(255, 255, 255, 0.35);
	background: transparent;
	color: #FFFFFF;
}
.gsc-video__consent .gsc-consent__btn.is-primary {
	border-color: #FFFFFF;
	background: var(--gsc-surface, #fff);
	color: var(--gsc-ink, #0B1B33);
}

/* ==========================================================================
   Contact pop-up (Call us / Email us)
   ========================================================================== */
.gsc-sheet {
	width: min(420px, calc(100vw - 2rem));
	padding: 0;
	border: 0;
	border-radius: 28px;
	background: var(--gsc-surface, #fff);
	color: var(--gsc-ink, #0B1B33);
	box-shadow: 0 30px 90px rgba(11, 27, 51, 0.35);
	font-family: var(--gsc-font, system-ui, sans-serif);
}
.gsc-sheet::backdrop {
	background: rgba(11, 27, 51, 0.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.gsc-sheet[open] {
	animation: gsc-consent-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.gsc-sheet__inner {
	position: relative;
	padding: 2rem 1.6rem 1.6rem;
	text-align: center;
}
.gsc-sheet__close {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--gsc-soft, #EEF1F6);
	color: inherit;
	cursor: pointer;
}
.gsc-sheet__icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin: 0 auto 0.9rem;
	border-radius: 18px;
	background: var(--gsc-branch-tint, #E8F4FD);
	color: var(--gsc-branch-deep, #1A73C0);
}
.gsc-sheet__title {
	margin: 0;
	font-family: var(--gsc-font-display, var(--gsc-font), system-ui);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.gsc-sheet__value {
	margin: 0.5rem 0 1.4rem;
	font-size: 1.35rem;
	font-weight: 700;
	overflow-wrap: anywhere;
	user-select: all;
}
.gsc-sheet__actions {
	display: grid;
	gap: 0.5rem;
}
.gsc-sheet__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 1.2rem;
	border: 1.5px solid var(--gsc-line, #E1E7F2);
	border-radius: 999px;
	background: var(--gsc-surface, #fff);
	color: var(--gsc-ink, #0B1B33) !important;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
}
.gsc-sheet__btn:hover {
	border-color: var(--gsc-ink, #0B1B33);
}
.gsc-sheet__btn.is-primary {
	border-color: var(--gsc-branch-deep, #1A73C0);
	background: var(--gsc-branch-deep, #1A73C0);
	color: var(--gsc-surface, #fff) !important;
}
.gsc-sheet__btn.is-primary:hover {
	background: var(--gsc-band-bg, var(--gsc-ink));
	border-color: var(--gsc-ink, #0B1B33);
}
.gsc-sheet__note {
	min-height: 1.2em;
	margin: 0.75rem 0 0;
	color: var(--gsc-muted, #3A4660);
	font-size: 0.875rem;
}
.gsc-sheet__btn:focus-visible,
.gsc-sheet__close:focus-visible {
	outline: 2px solid var(--gsc-branch-deep, #1A73C0);
	outline-offset: 2px;
}

/* Gated content placeholder. */
.gsc-consent-gate { display: grid; gap: 0.75rem; justify-items: start; padding: 1.25rem; border: 1px dashed var(--gsc-line, #dde3ec); border-radius: 16px; background: var(--gsc-tint, #eef2fb); color: var(--gsc-ink, #14213d); }
.gsc-consent-gate p { margin: 0; }
