/* Sam's Class Manager — 3D road signs (MUTCD shapes) for the service sections */
.sdsc3d {
	--hw-green: #00703c;
	--ink: #15191d;
	--muted: #57616b;
	--paper: #f6f4ee;
	--asphalt: #2d3238;
	--yellow: #ffc20e;
	font-family: "Overpass", "Lato", system-ui, sans-serif;
	color: var(--ink);
	max-width: 1180px;
	margin: 48px auto;
	padding: 0 16px;
	direction: ltr;
	text-align: left;
}
.sdsc3d *, .sdsc3d *::before, .sdsc3d *::after { box-sizing: border-box; }
.sdsc3d h2, .sdsc3d h3, .sdsc3d p, .sdsc3d a, .sdsc3d span, .sdsc3d strong { font-family: inherit; }
.sdsc3d ul { list-style: none; margin: 0; padding: 0; }
.sdsc3d li { margin: 0; padding: 0; }

/* ---- Headings ---- */
.sdsc3d-head { max-width: 760px; margin: 0 0 28px; }
.sdsc3d-kicker { display: inline-block; margin: 0 0 10px !important; padding: 5px 10px 3px; border-radius: 4px; background: var(--hw-green); color: #fff !important; font-size: .78rem !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 0 0 2px var(--hw-green), inset 0 0 0 3px rgba(255,255,255,.8); }
.sdsc3d-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem) !important; font-weight: 900 !important; line-height: 1.08 !important; letter-spacing: -.02em; margin: 0 0 12px !important; color: var(--ink) !important; text-align: left !important; }
.sdsc3d-head p { margin: 0 0 8px; color: var(--muted); font-size: 1.05rem; line-height: 1.55; text-align: left; }
.sdsc3d-sub { margin: 48px 0 8px; max-width: 700px; }
.sdsc3d-sub h3 { font-size: 1.45rem !important; font-weight: 900 !important; margin: 0 0 6px !important; color: var(--ink) !important; }
.sdsc3d-sub p { margin: 0; color: var(--muted); }

/* Attention box with a yellow warning diamond */
.sdsc3d-attn { display: flex; gap: 18px; align-items: flex-start; margin: 0 0 34px; padding: 18px 20px; max-width: 860px; border-radius: 10px; background: #fff8dc; border: 2px solid #f1d37a; }
.sdsc3d-attn-sign { flex: 0 0 56px; width: 56px; filter: drop-shadow(2px 3px 0 #b48a00); }
.sdsc3d-attn strong { display: block; font-size: 1.05rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.sdsc3d-attn p { margin: 0 0 6px; color: #3d3a2f; line-height: 1.5; }

/* ---- Grids ---- */
.sdsc3d-grid { display: grid; gap: 28px 22px; }
.sdsc3d-grid--courses { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.sdsc3d-grid--featured { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); max-width: 820px; }
.sdsc3d-grid--btw { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 30px 12px; margin-top: 22px; }
.sdsc3d-grid--overview { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important; gap: 34px 18px !important; }
.sdsc3d-item { display: flex; flex-direction: column; align-items: stretch; }
.sdsc3d-item--btw { align-items: center; }

/* ---- Caption cards ---- */
.sdsc3d-card { flex: 1; display: flex; flex-direction: column; margin-top: 14px; padding: 18px 20px; border-radius: 12px; background: #fff; border: 1px solid #e3e1da; box-shadow: 0 1px 0 #fff inset, 0 10px 24px -18px rgba(0,0,0,.35); }
.sdsc3d-card h3 { font-size: 1.12rem !important; font-weight: 800 !important; margin: 0 0 6px !important; color: var(--ink) !important; line-height: 1.25 !important; text-align: left !important; }
.sdsc3d-card p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; line-height: 1.5; text-align: left; }
.sdsc3d-when { color: var(--ink) !important; font-weight: 800; font-size: 1rem !important; margin-bottom: 4px !important; }
.sdsc3d-tag { color: var(--hw-green) !important; font-weight: 800; font-size: .82rem !important; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px !important; }
.sdsc3d-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.sdsc3d-price { font-weight: 900; font-size: 1.45rem; color: var(--ink); white-space: nowrap; }

.sdsc3d-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px; background: var(--hw-green); color: #fff !important; font-weight: 800; font-size: .95rem; text-decoration: none !important; white-space: nowrap; box-shadow: inset 0 0 0 2px var(--hw-green), inset 0 0 0 4px rgba(255,255,255,.85), 0 3px 0 #004a28; transition: transform .12s ease, box-shadow .12s ease, filter .12s; }
.sdsc3d-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
.sdsc3d-cta:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--hw-green), inset 0 0 0 4px rgba(255,255,255,.85), 0 1px 0 #004a28; }
.sdsc3d-cta:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.sdsc3d-cta--sm { min-height: 40px; padding: 0 16px; font-size: .88rem; margin-top: 12px; }
.sdsc3d-cta--ghost { background: transparent; color: var(--hw-green) !important; box-shadow: inset 0 0 0 2px var(--hw-green); }
.sdsc3d-cta--ghost:hover { background: var(--hw-green); color: #fff !important; }

/* ================================================================= *
 * The 3D sign
 * ================================================================= */
.s3d { position: relative; display: flex; justify-content: center; padding: 18px 0 10px; perspective: 900px; perspective-origin: 50% 30%; }
.s3d-tilt {
	position: relative; transform-style: preserve-3d;
	transform: rotateX(calc(4deg + var(--rx, 0deg))) rotateY(calc(-16deg + var(--ry, 0deg)));
	transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.s3d.is-hover .s3d-tilt { transition: transform .08s linear; }
.s3d-assembly { position: relative; display: flex; flex-direction: column; align-items: center; transform-style: preserve-3d; padding-bottom: 46px; }

/* Galvanised square post, behind the sign */
.s3d-post { position: absolute; left: 50%; top: 30%; bottom: 0; width: 9px; margin-left: -4.5px; transform: translateZ(-9px); border-radius: 1px;
	background: linear-gradient(90deg, #6f777e 0, #c9ced2 35%, #f1f3f4 48%, #9aa2a8 70%, #697177 100%); }
.s3d-post::before { /* holes punched along the post */
	content: ""; position: absolute; left: 3px; right: 3px; top: 6px; bottom: 6px;
	background: repeating-linear-gradient(to bottom, rgba(40,44,48,.55) 0 3px, transparent 3px 14px); border-radius: 1px; }

.s3d-sign { position: relative; width: var(--w, 150px); aspect-ratio: var(--ar, 1); transform-style: preserve-3d; }
.s3d-sign > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.s3d-back { fill: #b9c0c6; transform: translateZ(-8px); }
.s3d-edge { fill: #8f979e; transform: translateZ(calc(var(--z) * -1.5px)); }
.s3d-edge[style*="--z:1"] { fill: #c7cdd2; }
.s3d-face { transform: translateZ(0); }
.s3d-face text { font-family: "Overpass", "Arial Narrow", Arial, sans-serif; font-weight: 800; }
.s3d-bolt { fill: #d9dde0; stroke: #7b848b; stroke-width: .7; }

/* Retroreflective sheen that slides across the face as the page scrolls */
.s3d-sheen { position: absolute; inset: 0; transform: translateZ(.6px); pointer-events: none;
	background: linear-gradient(112deg, transparent 32%, rgba(255,255,255,.05) 42%, rgba(255,255,255,.3) 49%, rgba(255,255,255,.06) 55%, transparent 66%);
	background-size: 300% 100%; background-position: calc(var(--sheen, .5) * 100%) 0; background-repeat: no-repeat; }
.s3d--stop .s3d-sheen { clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%); }
.s3d--yield .s3d-sheen { clip-path: polygon(0 0, 100% 0, 50% 100%); }
.s3d--school .s3d-sheen { clip-path: polygon(50% 0, 100% 38%, 100% 100%, 0 100%, 0 38%); }
.s3d--warning .s3d-sheen { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.s3d--reg .s3d-sheen, .s3d--guide .s3d-sheen, .s3d--service .s3d-sheen { border-radius: 6%; }

/* Supplemental plaques, bolted to the same post */
.s3d-plaque { position: relative; margin-top: 8px; min-width: calc(var(--w, 150px) * .78); max-width: calc(var(--w, 150px) * 1.15); padding: 7px 12px 5px; border-radius: 6px; text-align: center; line-height: 1.05;
	transform-style: preserve-3d; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--ink); }
.s3d-plaque::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #8f979e; transform: translateZ(-4px); }
.s3d-plaque span { display: block; font-weight: 800; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.s3d-plaque span.is-big { font-size: 1.05rem; font-weight: 900; letter-spacing: .02em; }
.s3d--school .s3d-plaque { background: #c6e01f; box-shadow: inset 0 0 0 2px #c6e01f, inset 0 0 0 4px var(--ink); }
.s3d--warning .s3d-plaque { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--yellow), inset 0 0 0 4px var(--ink); }
.s3d--guide .s3d-plaque { background: var(--hw-green); color: #fff; box-shadow: inset 0 0 0 2px var(--hw-green), inset 0 0 0 4px #fff; }
.s3d--service .s3d-plaque { background: #0b5cab; color: #fff; box-shadow: inset 0 0 0 2px #0b5cab, inset 0 0 0 4px #fff; }

/* Soft shadow on the ground */
.s3d-ground { position: absolute; left: 50%; bottom: 4px; width: calc(var(--w, 150px) * .9); height: 16px; margin-left: calc(var(--w, 150px) * -.45); border-radius: 50%;
	background: radial-gradient(closest-side, rgba(0,0,0,.28), rgba(0,0,0,0)); transform: translateX(10px); pointer-events: none; }

/* Overview: signs rise like dominoes (services.js sets --t on each slot) */
.sdsc3d--overview .sdsc3d-rise { transform-origin: 50% 100%; }
.sdsc3d--overview.is-live .sdsc3d-rise { transform: perspective(900px) rotateX(calc((1 - var(--t, 1)) * 84deg)); will-change: transform; }
.sdsc3d--overview.is-live .sdsc3d-card { opacity: calc(.2 + var(--t, 1) * .8); }
.sdsc3d--overview .sds-sign-card { padding: 18px 20px; }
.sdsc3d--overview .sds-asphalt { margin-top: 40px; }

/* Courses section gets a road-shoulder backdrop behind the signs */
.sdsc3d--courses .s3d, .sdsc3d--packages .sdsc3d-grid--featured .s3d { background: linear-gradient(to top, #d9d6cc 0 10px, transparent 10px); border-radius: 0 0 8px 8px; }

@media (max-width: 640px) {
	.sdsc3d-grid--btw { grid-template-columns: repeat(2, 1fr); }
	.s3d-tilt { transform: rotateX(3deg) rotateY(calc(-10deg + var(--ry, 0deg))); }
	.sdsc3d-attn { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	.s3d-tilt { transition: none; }
	.sdsc3d--overview.is-live .sdsc3d-rise { transform: none; }
	.sdsc3d--overview.is-live .sdsc3d-card { opacity: 1; }
}

/* Equal sign areas so the caption cards line up in each row */
.sdsc3d--overview .s3d { height: 262px; align-items: flex-end; }
.sdsc3d--courses .s3d { height: 250px; align-items: flex-end; }
.sdsc3d-grid--featured .s3d { height: 250px; align-items: flex-end; }
.sdsc3d-head--long h2 { font-size: clamp(1.45rem, 2.6vw, 2rem) !important; }

/* Discounts */
.sdsc3d-price--sale { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.sdsc3d-price--sale s { color: #8a929b; font-weight: 700; font-size: .7em; }
.sdsc3d-off { font-style: normal; display: inline-block; padding: 3px 8px 2px; border-radius: 999px; background: #c8102e; color: #fff; font-size: .55em; font-weight: 900; letter-spacing: .04em; vertical-align: middle; }
.sdsc3d-ends { flex-basis: 100%; font-size: .5em; font-weight: 700; color: #57616b; }
.sdsc3d-mini-sale { margin-top: 8px; font-size: .78rem; font-weight: 800; color: #c8102e; }
.sdsc3d-mini-sale s { color: #8a929b; }

/* ================================================================= *
 * Why Choose Us
 * ================================================================= */
.swu { --g: #0f9a44; --ink: #121a26; --mut: #56606c; font-family: "Overpass", "Lato", system-ui, sans-serif; color: var(--ink); direction: ltr; text-align: left; padding: 72px 16px; background:
	radial-gradient(900px 400px at 85% 0%, rgba(34,197,94,.10), transparent 60%), radial-gradient(700px 380px at 0% 100%, rgba(255,194,14,.10), transparent 60%), #f7f6f1; }
.swu *, .swu *::before, .swu *::after { box-sizing: border-box; }
.swu h2, .swu h3, .swu p, .swu a, .swu span, .swu li { font-family: inherit; }
.swu ul { list-style: none; margin: 0; padding: 0; } .swu li { list-style: none; margin: 0; }
.swu-wrap { max-width: 1180px; margin: 0 auto; }
.swu-head { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.swu-kicker { display: inline-block; margin: 0 0 10px !important; padding: 5px 12px 3px; border-radius: 999px; background: #e7f6ec; color: var(--g) !important; font-weight: 900; font-size: .8rem !important; letter-spacing: .12em; text-transform: uppercase; }
.swu-head h2 { margin: 0 0 12px !important; font-size: clamp(2rem, 4vw, 3rem) !important; font-weight: 900 !important; letter-spacing: -.02em; line-height: 1.05 !important; color: var(--ink) !important; text-align: center !important; }
.swu-intro { margin: 0 !important; color: var(--mut) !important; font-size: 1.08rem !important; line-height: 1.6; text-align: center !important; }
.swu-proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 34px !important; }
.swu-proof li { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid #e6e3d9; box-shadow: 0 12px 24px -20px rgba(0,0,0,.4); }
.swu-big { font-weight: 900; font-size: 1.45rem; letter-spacing: -.01em; color: var(--ink); line-height: 1.1; }
.swu-proof li > span:last-child { color: var(--mut); font-size: .9rem; font-weight: 600; }
.swu-star { color: #f5b400; margin-left: 3px; }
.swu-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start; }
.swu-features { display: grid; gap: 14px; }
.swu-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid #e6e3d9; box-shadow: 0 1px 0 #fff inset, 0 14px 30px -24px rgba(0,0,0,.45); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
.swu-card:hover { transform: translateY(-3px); border-color: #bfe5cb; box-shadow: 0 22px 40px -26px rgba(15,154,68,.55); }
.swu-ic { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85), 0 6px 0 -1px rgba(0,0,0,.15); }
.swu-ic svg { width: 30px; height: 30px; }
.swu-ic--0 { background: #00703c; } .swu-ic--1 { background: #0b5cab; } .swu-ic--2 { background: #c8102e; }
.swu-ic--3 { background: #ffc20e; color: #15191d; box-shadow: inset 0 0 0 2px #15191d, 0 6px 0 -1px rgba(0,0,0,.15); }
.swu-card h3 { margin: 2px 0 4px !important; font-size: 1.08rem !important; font-weight: 800 !important; color: var(--ink) !important; line-height: 1.25 !important; }
.swu-card p { margin: 0 !important; color: var(--mut) !important; font-size: .95rem !important; line-height: 1.55; }
.swu-story { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid #e6e3d9; box-shadow: 0 30px 60px -40px rgba(0,0,0,.5); }
.swu-photos { position: relative; height: 300px; background: #0b1730; }
.swu-ph { position: absolute; object-fit: cover; display: block; }
.swu-ph--a { inset: 0; width: 100%; height: 100%; }
.swu-ph--b { right: 18px; bottom: -34px; width: 42%; aspect-ratio: 4/3; border-radius: 12px; border: 5px solid #fff; box-shadow: 0 18px 30px -12px rgba(0,0,0,.45); transform: rotate(2.5deg); }
.swu-tag { position: absolute; left: 16px; top: 16px; padding: 6px 12px 4px; border-radius: 8px; background: #00703c; color: #fff; font-weight: 800; font-size: .85rem; box-shadow: inset 0 0 0 2px #00703c, inset 0 0 0 3.5px #fff; }
.swu-story-t { padding: 30px 26px 26px; }
.swu-story-t h3 { margin: 0 0 10px !important; font-size: 1.5rem !important; font-weight: 900 !important; color: var(--ink) !important; max-width: 60%; line-height: 1.15 !important; }
.swu-story-t p { margin: 0 0 12px !important; color: var(--mut) !important; line-height: 1.65; font-size: .98rem !important; }
.swu-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 900px) { .swu-grid { grid-template-columns: 1fr; } .swu-story-t h3 { max-width: none; } .swu-ph--b { width: 46%; } }
@media (prefers-reduced-motion: reduce) { .swu-card { transition: none; } }

/* MVA headlines */
.smn { font-family: "Overpass", "Lato", system-ui, sans-serif; max-width: 900px; margin: 40px auto; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid #e3e1da; box-shadow: 0 20px 40px -32px rgba(0,0,0,.45); direction: ltr; text-align: left; }
.smn-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.smn-sign { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: #0b5cab; color: #fff; font: 900 28px/1 Georgia, serif; box-shadow: inset 0 0 0 2px #0b5cab, inset 0 0 0 4px #fff; }
.smn-head h2 { margin: 0 0 4px !important; font-size: 1.4rem !important; font-weight: 900 !important; color: #121a26 !important; }
.smn-head p { margin: 0 !important; color: #57616b !important; font-size: .95rem !important; }
.smn-list { list-style: none; margin: 0 !important; padding: 0 !important; border-top: 1px solid #eceae3; }
.smn-list li { display: flex; gap: 16px; align-items: baseline; padding: 12px 2px; border-bottom: 1px solid #eceae3; list-style: none; margin: 0; }
.smn-list time { flex: none; width: 96px; color: #0f7a3a; font-weight: 800; font-size: .85rem; }
.smn-list a { color: #121a26 !important; font-weight: 700; text-decoration: none !important; line-height: 1.4; }
.smn-list a:hover { color: #0f7a3a !important; text-decoration: underline !important; }
.smn-ext { color: #0f7a3a; }
.smn-note { margin: 12px 0 0 !important; color: #6b7480 !important; font-size: .8rem !important; }
@media (max-width: 560px) { .smn-list li { flex-direction: column; gap: 2px; } }
.sdsc3d a.sdsc3d-cta--ghost, .swu a.sdsc3d-cta--ghost { box-shadow: inset 0 0 0 2px #00703c !important; border: 0 !important; padding: 0 18px !important; }
.sdsc3d a.sdsc3d-cta--ghost:hover, .swu a.sdsc3d-cta--ghost:hover { background: #00703c !important; color: #fff !important; }
.swu a.sdsc3d-cta { color: #fff !important; text-decoration: none !important; } .swu a.sdsc3d-cta--ghost { color: #00703c !important; }

/* v0.6.1: Elementor grid gives every row the height of the tallest one (1fr rows) — that left a
   ~1500px empty band under the courses on phones. Let rows size to their own content. */
.e-grid:has(.sdsc3d), .e-grid:has(.sdsc3d) > .e-con-inner { grid-template-rows: none !important; grid-auto-rows: auto !important; align-content: start; }
/* Why-us main photo: beat `.elementor img { height:auto }` which collapsed it on phones */
.swu .swu-photos .swu-ph--a { height: 100% !important; width: 100% !important; max-width: none; }
.swu .swu-photos .swu-ph--b { height: auto; max-width: none; }
@media (max-width: 600px) { .swu-photos { height: 230px; } .swu-ph--b { bottom: -22px; } }

/* v0.6.4: classes listed from Class Manager */
.sdsc3d-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px !important; }
.sdsc3d-code { display: inline-block; padding: 3px 8px 2px; border-radius: 4px; background: #f1efe8; color: #3c4654; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.sdsc3d-seats { display: inline-block; padding: 3px 8px 2px; border-radius: 4px; font-size: .74rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.sdsc3d-seats.is-low { background: #ffc20e; color: #15191d; box-shadow: inset 0 0 0 1.5px #15191d; }
.sdsc3d-seats.is-full { background: #b5242e; color: #fff; }
.sdsc3d-cta--ghost { background: #fff !important; color: var(--hw-green) !important; box-shadow: inset 0 0 0 2px var(--hw-green) !important; }
.sdsc3d-item--empty .sdsc3d-card { border-style: dashed; }
/* v0.7.0: class listing — night-lit marquee boards (chasing bulbs, neon lettering, seats traffic light) */
.sdmq { --g: #3dff5a; position: relative; padding: 0 10px 40px; margin-bottom: -4px; }
.sdmq-board { position: relative; z-index: 2; border-radius: 16px; padding: 22px 22px 18px; background: radial-gradient(120% 90% at 50% 0%, #17264a 0%, #0b1430 55%, #060b1b 100%); box-shadow: 0 0 0 3px #39445a, 0 0 0 7px #151b28, 0 0 0 8px #3a4458, 0 22px 34px -14px rgba(6,11,27,.7), inset 0 0 40px rgba(61,255,90,.07); overflow: hidden; }
.sdmq-board::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.07) 0 22%, transparent 22% 60%, rgba(255,255,255,.04) 60% 64%, transparent 64%); }
/* bulbs */
.sdmq-b { position: absolute; display: flex; justify-content: space-between; pointer-events: none; }
.sdmq-b--t { top: 7px; left: 16px; right: 16px; } .sdmq-b--b { bottom: 7px; left: 16px; right: 16px; }
.sdmq-b--l { left: 7px; top: 22px; bottom: 22px; flex-direction: column; } .sdmq-b--r { right: 7px; top: 22px; bottom: 22px; flex-direction: column; }
.sdmq-b i { display: block; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 25%, #ffe08a 45%, #ffb72e 100%); box-shadow: 0 0 5px 1px rgba(255,190,60,.85); animation: sdmq-bulb 1.2s steps(1) infinite; }
.sdmq-b i:nth-child(even) { animation-delay: -.6s; }
@keyframes sdmq-bulb { 0% { opacity: 1; } 50% { opacity: .22; box-shadow: none; } }
.sdsc3d-item:hover .sdmq-b i { animation-duration: .5s; } .sdsc3d-item:hover .sdmq-b i:nth-child(even) { animation-delay: -.25s; }
/* face */
.sdmq-face { position: relative; z-index: 1; text-align: center; }
.sdmq-face p { margin: 0 !important; line-height: 1.1; }
.sdmq-top { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.sdmq-neon { font-weight: 900; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: #eaffee; text-shadow: 0 0 2px #fff, 0 0 7px var(--g), 0 0 16px var(--g), 0 0 30px rgba(61,255,90,.55); animation: sdmq-flicker 8s infinite; }
.sdmq-code { font-weight: 900; font-size: 11px; letter-spacing: .12em; color: #ffe6fb; padding: 3px 7px 2px; border: 2px solid #ff5fd2; border-radius: 6px; box-shadow: 0 0 6px #ff5fd2, inset 0 0 6px rgba(255,95,210,.6); text-shadow: 0 0 6px #ff5fd2; }
.sdmq-face .sdmq-dates { margin-top: 10px !important; font-weight: 900; font-size: clamp(22px, 2.1vw, 27px); letter-spacing: .03em; color: #fffaf0; white-space: nowrap; text-shadow: 0 0 2px #fff, 0 0 8px #ffb43a, 0 0 20px rgba(255,160,40,.75), 0 0 36px rgba(255,140,30,.4); }
.sdmq-face .sdmq-time { margin-top: 8px !important; font-weight: 800; font-size: 12.5px; letter-spacing: .1em; color: #e6fbff; text-shadow: 0 0 6px #33d6ff, 0 0 14px rgba(51,214,255,.7); }
.sdmq-row { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.16); display: flex; align-items: center; gap: 10px; }
.sdmq-status { flex: 1; text-align: left; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #d9ffe1; text-shadow: 0 0 8px var(--g); }
.sdmq-price { font-weight: 900; font-size: 22px; color: #fff8d6; text-shadow: 0 0 2px #fff, 0 0 8px #ffd21f, 0 0 18px rgba(255,210,31,.7); }
.sdmq-price s { font-size: 13px; margin-right: 6px; color: #a9b2c6; text-shadow: none; opacity: .8; }
@keyframes sdmq-flicker { 0%, 17%, 21%, 24%, 61%, 64%, 100% { opacity: 1; } 19%, 23%, 62% { opacity: .35; } }
/* seats traffic light */
.sdmq-tl { display: inline-flex; flex-direction: column; gap: 3px; padding: 4px 3px; border-radius: 5px; background: linear-gradient(90deg, #3b4048, #111317); box-shadow: 0 0 0 1.5px #fff; flex: none; }
.sdmq-tl i { display: block; width: 8px; height: 8px; border-radius: 50%; }
.sdmq-tl i:nth-child(1) { background: #4d1311; } .sdmq-tl i:nth-child(2) { background: #4b3e0d; } .sdmq-tl i:nth-child(3) { background: #103a14; }
.sdmq--open .sdmq-tl i:nth-child(3) { background: #3dff5a; box-shadow: 0 0 8px 2px rgba(61,255,90,.9); animation: sdmq-pulse 2s ease-in-out infinite; }
.sdmq--low { --g: #ffd21f; } .sdmq--low .sdmq-tl i:nth-child(2) { background: #ffd21f; box-shadow: 0 0 8px 2px rgba(255,210,31,.9); animation: sdmq-pulse 1.2s ease-in-out infinite; }
.sdmq--full { --g: #ff3b2f; } .sdmq--full .sdmq-tl i:nth-child(1) { background: #ff3b2f; box-shadow: 0 0 8px 2px rgba(255,59,47,.9); animation: sdmq-pulse 1.6s ease-in-out infinite; }
.sdmq--low .sdmq-neon, .sdmq--full .sdmq-neon { color: #eaffee; text-shadow: 0 0 2px #fff, 0 0 7px #3dff5a, 0 0 16px #3dff5a, 0 0 30px rgba(61,255,90,.55); }
.sdmq--full .sdmq-b i { animation: none; opacity: .35; box-shadow: none; }
@keyframes sdmq-pulse { 50% { filter: brightness(1.35); transform: scale(1.12); } }
/* posts + ground */
.sdmq-post { position: absolute; z-index: 1; bottom: 8px; width: 11px; height: 46px; border-radius: 2px; background: linear-gradient(90deg, #6b7380, #d6dbe2 45%, #8a929e 70%, #5a616c); }
.sdmq-post--l { left: 26%; } .sdmq-post--r { right: 26%; }
.sdmq-ground { position: absolute; left: 14%; right: 14%; bottom: 4px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(10,20,40,.28), transparent); }
@media (prefers-reduced-motion: reduce) { .sdmq-b i, .sdmq-neon, .sdmq-tl i { animation: none !important; } }
/* v0.7.1: choosable class sign templates — highway message sign (VMS) and green exit sign */
/* shared mini traffic light for seats */
.sdsl { display: inline-flex; flex-direction: column; gap: 3px; padding: 4px 3px; border-radius: 5px; background: linear-gradient(90deg, #3b4048, #111317); box-shadow: 0 0 0 1.5px #fff; flex: none; }
.sdsl i { display: block; width: 8px; height: 8px; border-radius: 50%; }
.sdsl i:nth-child(1) { background: #4d1311; } .sdsl i:nth-child(2) { background: #4b3e0d; } .sdsl i:nth-child(3) { background: #103a14; }
.sdsl--open i:nth-child(3) { background: #3dff5a; box-shadow: 0 0 8px 2px rgba(61,255,90,.9); animation: sdmq-pulse 2s ease-in-out infinite; }
.sdsl--low i:nth-child(2) { background: #ffd21f; box-shadow: 0 0 8px 2px rgba(255,210,31,.9); animation: sdmq-pulse 1.2s ease-in-out infinite; }
.sdsl--full i:nth-child(1) { background: #ff3b2f; box-shadow: 0 0 8px 2px rgba(255,59,47,.9); animation: sdmq-pulse 1.6s ease-in-out infinite; }

/* ---- Variable message sign ---- */
.sdvms { position: relative; padding: 16px 10px 44px; margin-bottom: -4px; }
.sdvms-box { position: relative; z-index: 2; padding: 12px 12px 12px; border-radius: 6px; background: linear-gradient(180deg, #5c6470, #3a414b 40%, #2a3038); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.4), 0 18px 28px -14px rgba(6,11,27,.6); }
.sdvms-box::before, .sdvms-box::after { content: ""; position: absolute; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: #9aa3ae; box-shadow: 0 calc(100% + 0px) 0 #9aa3ae; }
.sdvms-box::before { left: 5px; } .sdvms-box::after { right: 5px; }
.sdvms-screen { position: relative; height: 128px; border-radius: 3px; background: #050505; box-shadow: inset 0 0 0 2px #15181c, inset 0 6px 14px rgba(0,0,0,.9); overflow: hidden; }
.sdvms-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 0 1.25px, rgba(0,0,0,.38) 1.7px) 0 0 / 3px 3px; }
.sdvms-phase { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0 8px; text-align: center; font-family: "Overpass", system-ui, sans-serif; font-weight: 900; text-transform: uppercase; color: #ffd04a; text-shadow: 0 0 1px #fff3c4, 0 0 5px rgba(255,190,20,1), 0 0 14px rgba(255,150,0,.7); animation: sdvms-a 9s infinite; }
.sdvms-phase p { margin: 0 !important; font-size: 14px; letter-spacing: .09em; line-height: 1.15; white-space: nowrap; }
.sdvms-phase p.is-big { font-size: clamp(19px, 1.9vw, 23px); letter-spacing: .05em; }
.sdvms-phase--b { animation-name: sdvms-b; }
@keyframes sdvms-a { 0%, 46% { opacity: 1; } 50%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sdvms-b { 0%, 46% { opacity: 0; } 50%, 96% { opacity: 1; } 100% { opacity: 0; } }
.sdvms--full .sdvms-status { animation: sdvms-blink 1s steps(1) infinite; }
@keyframes sdvms-blink { 50% { opacity: .15; } }
.sdvms-tl { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); z-index: 3; }
.sdvms-beacon { position: absolute; z-index: 3; top: 2px; width: 18px; height: 16px; border-radius: 9px 9px 3px 3px; background: radial-gradient(circle at 50% 60%, #fff4c2 0 20%, #ffb000 55%, #b36b00); box-shadow: 0 0 0 2px #2a3038; animation: sdvms-beacon 1.2s steps(1) infinite; }
.sdvms-beacon--l { left: 18%; } .sdvms-beacon--r { right: 18%; animation-delay: -.6s; }
@keyframes sdvms-beacon { 0% { filter: none; box-shadow: 0 0 0 2px #2a3038, 0 0 16px 6px rgba(255,176,0,.75); } 50% { filter: brightness(.35) saturate(.6); box-shadow: 0 0 0 2px #2a3038; } }
.sdvms-post { position: absolute; z-index: 1; bottom: 8px; width: 12px; height: 54px; background: linear-gradient(90deg, #6b7380, #d6dbe2 45%, #8a929e 70%, #5a616c); }
.sdvms-post--l { left: 27%; } .sdvms-post--r { right: 27%; }
.sdvms-ground { position: absolute; left: 14%; right: 14%; bottom: 4px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(10,20,40,.28), transparent); }

/* ---- Green highway exit sign ---- */
.sdex { position: relative; padding: 24px 8px 46px; margin-bottom: -4px; font-family: "Overpass", "Lato", system-ui, sans-serif; }
.sdex-sign { position: relative; z-index: 2; }
.sdex-tab { position: absolute; z-index: 3; top: -20px; right: 14px; padding: 4px 12px 2px; border-radius: 8px 8px 0 0; background: #00653a; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; box-shadow: inset 0 0 0 2px #00653a, inset 0 0 0 4px #fff; border-bottom: 0; }
.sdex-panel { position: relative; overflow: hidden; border-radius: 12px; background: linear-gradient(180deg, #087446, #00653a 55%, #005a33); box-shadow: inset 0 0 0 4px #00653a, inset 0 0 0 7px #fff, 0 20px 30px -16px rgba(6,11,27,.6); color: #fff; }
.sdex-in { position: relative; padding: 20px 64px 14px 22px; text-align: left; }
.sdex-in p { margin: 0 !important; line-height: 1.05; }
.sdex-l1 { font-weight: 800; font-size: 17px; letter-spacing: .01em; }
.sdex-l1 small { font-size: 12px; font-weight: 800; padding: 1px 5px; margin-left: 4px; border: 1.5px solid #fff; border-radius: 4px; vertical-align: 2px; }
.sdex-in .sdex-l2 { margin-top: 6px !important; font-weight: 800; font-size: clamp(22px, 2.2vw, 27px); letter-spacing: -.01em; }
.sdex-in .sdex-l3 { margin-top: 6px !important; font-weight: 700; font-size: 13px; letter-spacing: .05em; opacity: .95; }
.sdex-arrow { position: absolute; right: 18px; top: 50%; width: 34px; height: 34px; transform: translateY(-50%); }
.sdex-only { display: flex; align-items: center; gap: 10px; margin: 0 7px 7px; padding: 8px 12px; border-radius: 0 0 6px 6px; background: #ffd200; color: #111; font-weight: 800; }
.sdex-status { flex: 1; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.sdex-price { font-size: 20px; font-weight: 900; }
.sdex-price s { font-size: 12px; margin-right: 5px; opacity: .55; }
.sdex--full .sdex-status { color: #b3120c; }
.sdex-glint { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 45%, transparent 55%) no-repeat; background-size: 250% 100%; background-position: 160% 0; animation: sdex-glint 6s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes sdex-glint { 0%, 55% { background-position: 160% 0; } 85%, 100% { background-position: -60% 0; } }
.sdex-lamp { position: absolute; z-index: 4; bottom: -10px; width: 26px; height: 9px; border-radius: 3px 3px 8px 8px; background: linear-gradient(180deg, #5a616c, #2a3038); }
.sdex-lamp::after { content: ""; position: absolute; left: 50%; bottom: 100%; width: 120px; height: 120px; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 100%, rgba(255,246,200,.42), transparent 65%); pointer-events: none; animation: sdex-lamp 5s ease-in-out infinite; }
.sdex-lamp--l { left: 22%; } .sdex-lamp--r { right: 22%; }
@keyframes sdex-lamp { 0%, 100% { opacity: .9; } 47% { opacity: .9; } 50% { opacity: .55; } 53% { opacity: .9; } }
.sdex-post { position: absolute; z-index: 1; bottom: 8px; width: 13px; height: 58px; background: linear-gradient(90deg, #6b7380, #d6dbe2 45%, #8a929e 70%, #5a616c); box-shadow: inset 3px 0 0 rgba(0,0,0,.12), inset -3px 0 0 rgba(0,0,0,.12); }
.sdex-post--l { left: 24%; } .sdex-post--r { right: 24%; }
.sdex-ground { position: absolute; left: 12%; right: 12%; bottom: 4px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(10,20,40,.28), transparent); }

@media (prefers-reduced-motion: reduce) {
	.sdsl i, .sdvms-beacon, .sdvms-status, .sdex-glint, .sdex-lamp::after { animation: none !important; }
	.sdvms-phase--a { animation: none !important; opacity: 1; } .sdvms-phase--b { animation: none !important; opacity: 0; }
}
/* template picker in the admin */
.sdsc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; max-width: 1300px; margin-top: 12px; }
.sdsc-pick label { display: block; position: relative; cursor: pointer; padding: 14px 14px 12px; border-radius: 12px; background: #fff; border: 2px solid #dcdcde; transition: border-color .15s, box-shadow .15s; }
.sdsc-pick label:hover { border-color: #8c8f94; }
.sdsc-pick input { position: absolute; opacity: 0; }
.sdsc-pick input:checked + .sdsc-pick-in { }
.sdsc-pick label.is-on { border-color: #00653a; box-shadow: 0 0 0 3px rgba(0,101,58,.18); }
.sdsc-pick-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin: 10px 0 2px; }
.sdsc-pick-name em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: #00653a; padding: 2px 7px; border-radius: 9px; display: none; }
.sdsc-pick label.is-on .sdsc-pick-name em { display: inline-block; }
.sdsc-pick-desc { margin: 0; color: #50575e; font-size: 12.5px; }
.sdsc-pick-prev { padding: 8px 0 0; background: linear-gradient(#f6f7f7, #fff); border-radius: 8px; font-family: "Overpass", system-ui, sans-serif; }
.sdsc-pick-prev .s3d { margin: 0 auto; }

/* v0.9.6: every service button jumps to its own section (not the top of the page) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#driver-ed, #practice, #online-course, #road-test-car, #services { scroll-margin-top: 150px; }
#online-course:target .sdsc3d-card, #road-test-car:target .sdsc3d-card { box-shadow: 0 0 0 3px #24c45c, 0 18px 40px -24px rgba(0,0,0,.45); transition: box-shadow .4s; }
.sdsc3d-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sdsc3d-tag { margin: -2px 0 8px !important; color: #00703c !important; font-weight: 700; font-size: .92rem; }

.sdsc3d--more { padding-top: 10px; }


/* jump bar under the header (homepage) */
.sds-jump { position: fixed; left: 0; right: 0; z-index: 999; transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .3s ease, opacity .3s ease; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); box-shadow: 0 1px 0 #e1e6ea, 0 10px 24px -18px rgba(0,0,0,.45); font-family: "Overpass", "Lato", system-ui, sans-serif; }
.sds-jump.is-on { transform: none; opacity: 1; pointer-events: auto; }
.sds-jump-in { display: flex; gap: 8px; max-width: 1180px; margin: 0 auto; padding: 8px 16px; overflow-x: auto; scrollbar-width: none; }
.sds-jump-in::-webkit-scrollbar { display: none; }
.sds-jump a { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: #eef5f1; color: #0b3d24 !important; font-weight: 800; font-size: .9rem; text-decoration: none !important; white-space: nowrap; transition: background .2s, color .2s; }
.sds-jump a:hover, .sds-jump a:focus-visible { background: #d7ecdf; outline: none; }
.sds-jump a.is-here { background: #00703c; color: #fff !important; }
.sds-jump a.sds-jump-call { margin-left: auto; background: #ffc20e; color: #15191d !important; }

/* "All services" link at the end of each service section */
.sdsc3d-back { margin: 26px 0 0 !important; }
.sdsc3d-back a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #f1f5f3; color: #005a30 !important; font-weight: 800; text-decoration: none !important; }
.sdsc3d-back a:hover, .sdsc3d-back a:focus-visible { background: #dcefe4; outline: none; }

/* short glow on the section a visitor jumped to */
@keyframes sdsArrive { 0% { box-shadow: 0 0 0 0 rgba(36,196,92,.55); } 35% { box-shadow: 0 0 0 6px rgba(36,196,92,.35); } 100% { box-shadow: 0 0 0 0 rgba(36,196,92,0); } }
.is-arrived > .sdsc3d-head, li.is-arrived > .sdsc3d-card { animation: sdsArrive 1.6s ease; border-radius: 18px; }
@media (prefers-reduced-motion: reduce) { .is-arrived > .sdsc3d-head, li.is-arrived > .sdsc3d-card { animation: none; outline: 3px solid #24c45c; } }

/* phones: service signs in one row you swipe */
@media (max-width: 640px) {
	.sdsc3d--overview .sdsc3d-grid--overview { display: flex !important; grid-template-columns: none !important; gap: 14px !important; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px !important; margin: 0 -16px !important; scrollbar-width: thin; }
	.sdsc3d--overview .sdsc3d-grid--overview > li { flex: 0 0 78%; scroll-snap-align: center; }
	.sds-jump a { font-size: .84rem; padding: 0 12px; }
}

/* v0.9.7 Our services: a stack of road-sign cards. While you scroll, the front card tips back and flies
   off, and the next one comes forward. Without JavaScript (or with reduced motion) it is a simple list. */
.sdsc3d--stack .sdsc3d-head { margin-bottom: 18px; }
.sds-stack-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sds-stack-card {
	--c1: #00703c; --c2: #04502a; --ink-on: #fff;
	position: relative; display: grid; grid-template-columns: minmax(170px, 34%) 1fr; align-items: stretch;
	min-height: 290px; padding: 9px; border-radius: 22px;
	background: linear-gradient(160deg, var(--c1), var(--c2)); color: var(--ink-on);
	box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
	transform-origin: 50% 100%; backface-visibility: hidden;
}
.sds-stack-card::before { content: ""; position: absolute; inset: 9px; border: 3px solid rgba(255, 255, 255, .92); border-radius: 15px; pointer-events: none; }
.sds-stack-card--warning { --c1: #ffcb2e; --c2: #e2a800; --ink-on: #15191d; }
.sds-stack-card--warning::before, .sds-stack-card--school::before { border-color: rgba(21, 25, 29, .85); }
.sds-stack-card--school { --c1: #d7ef3c; --c2: #a8c21a; --ink-on: #15191d; }
.sds-stack-card--service { --c1: #1d63c4; --c2: #0f3f86; }
.sds-stack-card--stop { --c1: #d0302a; --c2: #8f1712; }
.sds-stack-card--reg { --c1: #2a3138; --c2: #14181c; }
.sds-stack-card .sdsc3d-rise { display: grid; place-items: center; margin: 14px 0 14px 14px; border-radius: 12px; background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.95), rgba(236,242,238,.9)); padding: 14px; }
.sds-stack-card .sdsc3d-rise svg, .sds-stack-card .sdsc3d-rise > * { max-height: 230px; }
.sds-stack-card .sdsc3d-card { background: none !important; box-shadow: none !important; border: 0 !important; padding: clamp(18px, 3vw, 34px) !important; display: flex; flex-direction: column; justify-content: center; gap: 8px; color: inherit; }
.sds-stack-card h3 { margin: 0 !important; font-size: clamp(1.5rem, 3vw, 2.3rem) !important; font-weight: 900 !important; line-height: 1.05 !important; text-transform: uppercase; letter-spacing: .01em; color: inherit !important; font-family: Overpass, system-ui, sans-serif; }
.sds-stack-card .sdsc3d-tag { color: inherit !important; opacity: .85; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem !important; font-weight: 800; margin: 0 !important; }
.sds-stack-card .sdsc3d-card > p:not(.sdsc3d-tag) { margin: 0 !important; color: inherit !important; opacity: .92; font-size: 1.02rem; max-width: 48ch; }
.sds-stack-card .sdsc3d-foot { margin-top: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sds-stack-card .sdsc3d-price { color: inherit !important; font-size: 1.5rem; font-weight: 900; }
.sds-stack-card .sdsc3d-cta { background: #fff !important; color: #15191d !important; box-shadow: none !important; }
.sds-stack-card .sdsc3d-cta--ghost { background: rgba(255, 255, 255, .14) !important; color: inherit !important; box-shadow: inset 0 0 0 2px currentColor !important; }
.sds-stack-card--warning .sdsc3d-cta, .sds-stack-card--school .sdsc3d-cta { background: #15191d !important; color: #fff !important; }
.sds-stack-hint { display: none; }

/* live (scroll-driven) */
.sds-stack.is-live { position: relative; height: calc(var(--pin) + (var(--n) - 1) * var(--seg)); }
.sds-stack.is-live .sds-stack-pin { position: sticky; top: var(--top, 120px); height: var(--pin); perspective: 1100px; overflow: hidden; }
.sds-stack.is-live .sds-stack-cards { display: block; position: relative; height: 100%; }
.sds-stack.is-live .sds-stack-card { position: absolute; left: 0; right: 0; top: calc((var(--pin) - var(--card)) / 2 - 22px); height: var(--card); will-change: transform, opacity; }
.sds-stack.is-live .sds-stack-pin { contain: layout paint; }
.sds-stack.is-live .sds-stack-card { overflow: hidden; }
/* Only the front card shows its words; the cards waiting behind show just their colour edge. */
.sds-stack.is-live .sds-stack-card > * { transition: opacity .25s ease; }
.sds-stack.is-live .sds-stack-card:not(.is-front) > * { opacity: 0; }
.sds-stack.is-live .sds-stack-card:not(.is-front) a { pointer-events: none; }
/* Phones: shrink the whole sign (post and plaques too) so it fits its box instead of being cut at the top. */
.sds-stack.is-live.is-small .sds-stack-card .sdsc3d-rise { place-items: center; overflow: hidden; padding: 8px; }
.sds-stack.is-live.is-small .sds-stack-card .sdsc3d-rise > * { max-height: none !important; zoom: .62; }
.sds-stack.is-live.is-small .sds-stack-card .sdsc3d-rise svg { max-height: none !important; }
.sds-stack.is-live.is-small .sds-stack-card .sdsc3d-card { padding: 12px 18px 16px !important; gap: 6px; }
.sds-stack.is-live.is-small .sds-stack-card h3 { font-size: 1.55rem !important; }
.sds-stack.is-live .sds-stack-hint { display: flex; align-items: center; justify-content: center; gap: 8px; position: absolute; left: 0; right: 0; bottom: 0; margin: 0; color: #5b646d; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: opacity .3s; }
.sds-stack-hint span { width: 18px; height: 28px; border: 2px solid currentColor; border-radius: 10px; position: relative; }
.sds-stack-hint span::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: sdsHint 1.4s ease-in-out infinite; }
@keyframes sdsHint { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(9px); opacity: 0; } }
.sds-stack.is-done .sds-stack-hint { opacity: 0; }

@media (max-width: 700px) {
	.sds-stack-card { grid-template-columns: 1fr; min-height: 0; }
	.sds-stack-card .sdsc3d-rise { margin: 14px 14px 0; padding: 10px; }
	.sds-stack-card .sdsc3d-rise svg, .sds-stack-card .sdsc3d-rise > * { max-height: 150px; }
	.sds-stack-card .sdsc3d-card { padding: 16px 20px 22px !important; }
	.sds-stack-card .sdsc3d-card > p:not(.sdsc3d-tag) { font-size: .95rem; }
}
