/* ==================================================
   Seasonal skins: shared full-layout transformation.

   Loaded only while a skin with `layout => true` is active, after the theme CSS.
   Everything is scoped to html[data-skin], which is rendered server-side, so the
   Default design never sees any of it.

   Colours come from the skin's --sk-* tokens (printed in <head> from the skin
   registry); each skin stylesheet (event-<id>.css) sets the shapes, art and any
   extra flourishes through the --sk-* "knobs" below.
   ================================================== */

html[data-skin] {
	/* Re-map the theme's own design tokens: every theme rule that uses them follows the skin. */
	--primary-color2: var(--sk-accent);
	--primary-color-rgb: var(--sk-accent-rgb);
	--primary-color3: var(--sk-bg-alt);
	--bg-light-2: var(--sk-bg);
	--bg-dark-1: var(--sk-dark);
	--bg-dark-2: var(--sk-heading);
	--title-font: var(--sk-font-display);
	--swiper-theme-color: var(--sk-accent);

	/* Knobs each skin can override. */
	--sk-radius: 18px;
	--sk-btn-radius: 30px;
	--sk-card-border: 2px solid var(--sk-border);
	--sk-shadow: 0 14px 34px -18px rgba(0, 0, 0, .35);
	--sk-btn-shadow: 4px 4px 0 var(--sk-accent-3);
	--sk-btn-shadow-hover: 6px 6px 0 var(--sk-accent-2);
	--sk-pattern-size: 120px;
	--sk-band-h: 18px;
	--sk-band-size: auto 100%;
	--sk-heading-tracking: 0;
	--sk-hero-art: none;
	--sk-hero-art-size: min(24vw, 330px);
	--sk-footer-art: none;
	--sk-footer-art-h: 0px;

	background: var(--sk-bg);
	accent-color: var(--sk-accent);
}

/* ---------- Page ---------- */

html[data-skin] body {
	background-color: var(--sk-bg);
	background-image: var(--sk-pattern, none);
	background-size: var(--sk-pattern-size);
	color: var(--sk-text);
}

html[data-skin] ::selection {
	background: var(--sk-accent);
	color: var(--sk-on-accent);
}

/* The theme's animated purple dots would clash with every palette. */
html[data-skin] .fixbg {
	display: none;
}

/* Visible keyboard focus everywhere (WCAG 2.4.7). */
html[data-skin] a:focus-visible,
html[data-skin] button:focus-visible,
html[data-skin] input:focus-visible,
html[data-skin] select:focus-visible,
html[data-skin] textarea:focus-visible,
html[data-skin] [tabindex]:focus-visible {
	outline: 3px solid var(--sk-accent-2);
	outline-offset: 2px;
}

/* ---------- Typography ---------- */

html[data-skin] #wrapper h1,
html[data-skin] #wrapper h2,
html[data-skin] #wrapper h3,
html[data-skin] #wrapper h4,
html[data-skin] footer h3 {
	font-family: var(--sk-font-display);
	font-weight: 700;
	letter-spacing: var(--sk-heading-tracking);
}

html[data-skin] #content h1,
html[data-skin] #content h2,
html[data-skin] #content h3,
html[data-skin] #content h4 {
	color: var(--sk-heading);
}

html[data-skin] #content h1 span,
html[data-skin] #content h2 span {
	color: var(--sk-accent);
}

html[data-skin] #content p,
html[data-skin] #content li {
	color: var(--sk-text);
}

html[data-skin] #content a:not(.btn-main):not([class*="swiper"]):hover {
	color: var(--sk-accent);
}

/* ---------- Header and navigation ---------- */

html[data-skin] header.header-v2 {
	background: transparent;
}

html[data-skin] header.header-v2.smaller,
html[data-skin] header.header-v2.header-mobile {
	background: var(--sk-bg);
	box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .35);
}

html[data-skin] .navBar > ul > li > a {
	color: var(--sk-heading);
	font-weight: 600;
}

html[data-skin] .navBar .sub-menu {
	border-top: 3px solid var(--sk-accent);
	background: var(--sk-surface);
	box-shadow: var(--sk-shadow);
}

html[data-skin] .navBar .sub-menu a {
	color: var(--sk-text);
}

/* Decorative band under the header (art set by the skin via --sk-band). */
html[data-skin] body.event-has-garland header.header-v2::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: var(--sk-band-h);
	background: var(--sk-band, none) 0 0 / var(--sk-band-size) repeat-x;
	pointer-events: none;
}

html[data-skin] body.event-has-garland header.header-v2.smaller::after,
html[data-skin] body.event-has-garland header.header-v2.header-mobile::after {
	height: calc(var(--sk-band-h) * .6);
}

/* ---------- Buttons ---------- */

html[data-skin] .btn-main,
html[data-skin] a.btn-main,
html[data-skin] input.btn-main,
html[data-skin] .wpcf7-submit {
	border: 2px solid var(--sk-accent);
	border-radius: var(--sk-btn-radius);
	background: var(--sk-accent);
	color: var(--sk-on-accent);
	box-shadow: var(--sk-btn-shadow);
	font-weight: 700;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

html[data-skin] .btn-main:hover,
html[data-skin] a.btn-main:hover,
html[data-skin] .btn-main:focus-visible,
html[data-skin] .wpcf7-submit:hover {
	background: var(--sk-accent);
	color: var(--sk-on-accent);
	box-shadow: var(--sk-btn-shadow-hover);
	transform: translate(-2px, -2px);
}

html[data-skin] .btn-main:active {
	box-shadow: none;
	transform: translate(2px, 2px);
}

/* ---------- Cards and panels ---------- */

html[data-skin] .blogBox,
html[data-skin] .de-skill-item,
html[data-skin] .accordion-item,
html[data-skin] .testimonybox {
	border: var(--sk-card-border);
	border-radius: var(--sk-radius);
	box-shadow: var(--sk-shadow);
}

html[data-skin] .blogBox,
html[data-skin] .accordion-item {
	background: var(--sk-surface);
	transition: transform .25s ease, box-shadow .25s ease;
}

html[data-skin] .blogBox:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -18px rgba(var(--sk-accent-rgb), .45);
}

/* Partner-logo tiles: the logos are white, so the tiles stay dark. */
html[data-skin] .de-skill-item {
	background: var(--sk-dark);
}

html[data-skin] .testimonybox {
	padding: 24px;
	background: var(--sk-dark);
	color: var(--sk-on-dark);
}

html[data-skin] #content .testimonybox p,
html[data-skin] #content .testimonybox h3,
html[data-skin] #content .testimonybox h4,
html[data-skin] #content .testimonybox .d-quote-by {
	color: var(--sk-on-dark);
}

html[data-skin] .card-image-1,
html[data-skin] .radiuspic {
	border-radius: var(--sk-radius);
}

html[data-skin] .accordion-button,
html[data-skin] .accordion-body {
	background: transparent;
	color: var(--sk-text);
}

/* Alternate (tan) sections follow the skin's alternate background. */
html[data-skin] .whiteBlug,
html[data-skin] .footer-blog {
	background-color: var(--sk-bg-alt);
}

/* ---------- Forms ---------- */

html[data-skin] .form-control,
html[data-skin] .wpcf7-form-control:not(.wpcf7-submit) {
	border-color: var(--sk-border);
	color: var(--sk-text);
}

/* The theme draws a 1px underline with !important; make it clearly visible (WCAG 1.4.11). */
html[data-skin] #content .form-control {
	border-bottom: 2px solid var(--sk-heading) !important;
}

html[data-skin] #content .form-control:focus {
	border-bottom-color: var(--sk-accent) !important;
}

html[data-skin] .form-control::placeholder {
	color: var(--sk-text);
	opacity: .6;
}

html[data-skin] .form-control:focus {
	border-color: var(--sk-accent);
	box-shadow: 0 3px 0 0 rgba(var(--sk-accent-rgb), .35);
}

html[data-skin] .form-label,
html[data-skin] label {
	color: var(--sk-text);
}

/* ---------- First banner (hero) ---------- */

html[data-skin] #content > section:first-of-type {
	position: relative;
	isolation: isolate;
}

/* Skin art beside the first headline. */
html[data-skin] #content > section:first-of-type::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: 4%;
	top: 50%;
	width: var(--sk-hero-art-size);
	aspect-ratio: 1;
	background: var(--sk-hero-art) center / contain no-repeat;
	transform: translateY(-50%);
	pointer-events: none;
}

/* Band along the bottom edge of the first banner. */
html[data-skin] body.event-has-garland #content > section:first-of-type::after {
	content: "";
	position: absolute;
	z-index: 1;
	left: 0;
	right: 0;
	bottom: calc(var(--sk-band-h) * -.5);
	height: var(--sk-band-h);
	background: var(--sk-band, none) 0 0 / var(--sk-band-size) repeat-x;
	pointer-events: none;
}

/* ---------- Footer ---------- */

html[data-skin] footer {
	position: relative;
	margin-top: var(--sk-footer-art-h); /* room for the optional scene on top of the footer */
	border-top: 0;
	background-color: var(--sk-dark);
	background-image: radial-gradient(circle at 15% 0, rgba(var(--sk-accent-rgb), .22), transparent 45%);
	color: var(--sk-on-dark);
}

html[data-skin] footer p,
html[data-skin] footer li,
html[data-skin] footer a,
html[data-skin] footer .copyrights__list_link {
	color: var(--sk-on-dark);
}

html[data-skin] footer a:hover,
html[data-skin] footer a:focus-visible {
	color: var(--sk-highlight);
}

html[data-skin] footer h3 {
	color: var(--sk-highlight) !important; /* the theme sets footer h3 with !important */
}

html[data-skin] footer i {
	color: var(--sk-highlight);
}

/* Band along the top of the footer. */
html[data-skin] body.event-has-garland footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: var(--sk-band-h);
	background: var(--sk-band, none) 0 0 / var(--sk-band-size) repeat-x;
	pointer-events: none;
}

/* Optional scene sitting on top of the footer (horizon, holly, ...). */
html[data-skin] footer::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% - 1px); /* overlap 1px so no hairline shows between scene and footer */
	height: var(--sk-footer-art-h);
	background: var(--sk-footer-art) center bottom / auto 100% repeat-x;
	pointer-events: none;
}

/* ---------- Loader, scroll helpers ---------- */

html[data-skin] #loader {
	background: var(--sk-dark);
}

html[data-skin] .scrollbar-v,
html[data-skin] .float-text a {
	color: var(--sk-heading);
}

/* ---------- Decorations shared by several skins ---------- */

/* Particle canvas (skin-effects.js): decorative and never blocks clicks. */
.skin-fx {
	position: fixed;
	inset: 0;
	z-index: 999;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

html.event-motion-paused .skin-fx {
	display: none;
}

/* ---------- Corner illustrations (wide screens, >= 1200px) ----------
   Purely decorative and click-through.
   - bottom-left: the skin's own illustration (.skin-corner: kinara, calavera, harvest), or
     its corner-bl.svg (.skin-corner-art--bl);
   - bottom-right: corner-br.svg, sitting on top of the "Have A Question?" button;
   - top-right: corner-tr.svg, moved into the header and kept behind the menu. */
/* Bottom corners fit the margin beside the ~1180px content column, so they never cover text. */
html[data-skin] {
	--sk-corner-w: clamp(84px, calc(50vw - 612px), 150px); /* shared with the pause button */
}

.skin-corner,
.skin-corner-art {
	display: none;
	pointer-events: none;
}

.skin-corner-art[hidden] {
	display: none !important;
}

.skin-corner {
	position: fixed;
	left: 6px;
	bottom: 0;
	z-index: 1001;
	width: var(--sk-corner-w);
	aspect-ratio: 1;
	background: var(--sk-corner-art, none) center bottom / contain no-repeat;
}

.skin-corner-art--tr {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 0;
	width: clamp(84px, calc(50vw - 612px), 150px);
	aspect-ratio: 1;
	background: var(--sk-art-corner-tr) right top / contain no-repeat;
}

header.smaller .skin-corner-art--tr {
	width: clamp(70px, calc(50vw - 610px), 110px);
}

/* Keep the menu above the top-right illustration. */
html[data-skin] header.header-v2 > .container-fluid {
	position: relative;
	z-index: 1;
}

.skin-corner-art--br {
	position: fixed;
	right: 18px;
	bottom: 74px; /* on top of the "Have A Question?" button */
	z-index: 1000;
	width: clamp(84px, calc(50vw - 612px), 136px);
	aspect-ratio: 150 / 170;
	background: var(--sk-art-corner-br) right bottom / contain no-repeat;
}

.skin-corner-art--bl {
	position: fixed;
	left: 0;
	bottom: 0;
	z-index: 1000;
	width: var(--sk-corner-w);
	aspect-ratio: 1;
	background: var(--sk-art-corner-bl) left bottom / contain no-repeat;
}

@media (min-width: 1200px) {
	.skin-corner,
	.skin-corner-art {
		display: block;
	}

	.skin-corner ~ .event-motion-toggle,
	.skin-corner-art--bl ~ .event-motion-toggle {
		bottom: calc(var(--sk-corner-w) + 14px);
	}
}

/* The pause button inherits the skin palette. */
html[data-skin] {
	--ev-toggle-border: var(--sk-accent);
	--ev-toggle-bg: var(--sk-dark);
	--ev-toggle-text: var(--sk-on-dark);
	--ev-toggle-hover: var(--sk-highlight);
	--ev-flag-bg: var(--sk-accent-2);
	--ev-flag-text: #fff;
	--ev-strip-bg: var(--sk-accent);
	--ev-strip-text: var(--sk-on-accent);
	--ev-strip-strong: var(--sk-on-accent);
	--ev-link-bg: var(--sk-dark);
	--ev-link-text: var(--sk-on-dark);
	--ev-link-hover-bg: var(--sk-accent-2);
	--ev-count-label: var(--sk-on-accent);
	--ev-count-border: transparent;
	--ev-count-bg: var(--sk-dark);
	--ev-count-text: var(--sk-highlight);
	--ev-count-sub: var(--sk-on-dark);
	--ev-ticker-bg: var(--sk-dark);
	--ev-ticker-border: var(--sk-accent);
	--ev-ticker-text: var(--sk-on-dark);
	--ev-ticker-highlight: var(--sk-highlight);
	--ev-ticker-sep: var(--sk-highlight);
	--ev-badge-border: var(--sk-accent);
	--ev-badge-bg: var(--sk-accent);
	--ev-badge-text: var(--sk-on-accent);
}

/* ---------- Dark-tone skins (data-skin-tone="dark") ---------- */
/* The theme was designed light; these keep every text block readable on a dark page. */

html[data-skin-tone="dark"] body,
html[data-skin-tone="dark"] #content,
html[data-skin-tone="dark"] #content p,
html[data-skin-tone="dark"] #content li,
html[data-skin-tone="dark"] #content span:not([class*="swiper"]),
html[data-skin-tone="dark"] #content label,
html[data-skin-tone="dark"] #content .text-dark,
html[data-skin-tone="dark"] #content .accordion-button {
	color: var(--sk-text) !important;
}

html[data-skin-tone="dark"] #content h1,
html[data-skin-tone="dark"] #content h2,
html[data-skin-tone="dark"] #content h3,
html[data-skin-tone="dark"] #content h4,
html[data-skin-tone="dark"] #content h5,
html[data-skin-tone="dark"] #content h2.text-dark {
	color: var(--sk-heading) !important;
}

html[data-skin-tone="dark"] #content h1 span,
html[data-skin-tone="dark"] #content h2 span {
	color: var(--sk-accent) !important;
}

html[data-skin-tone="dark"] .navBar > ul > li > a {
	color: var(--sk-heading);
}

html[data-skin-tone="dark"] .navBar .sub-menu a {
	color: var(--sk-text) !important;
}

html[data-skin-tone="dark"] #content .badge.text-dark,
html[data-skin-tone="dark"] #content .badge.text-dark * {
	color: #212529 !important; /* yellow badges stay dark-on-yellow */
}

html[data-skin-tone="dark"] .form-control {
	background-color: transparent;
}

/* The header logo is drawn for a light page, so it sits on a light tile (the footer logo is already light). */
html[data-skin-tone="dark"] #logo img {
	padding: 6px 10px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .92);
}

/* ---------- Small screens ---------- */

@media (max-width: 991px) {
	html[data-skin] #content > section:first-of-type::before {
		right: -6%;
		width: 40vw;
		opacity: .3;
	}
}

@media (max-width: 575px) {
	html[data-skin] {
		--sk-band-h: 12px;
		--sk-pattern-size: 90px;
	}

	html[data-skin] #content > section:first-of-type::before {
		display: none;
	}

	html[data-skin] .btn-main,
	html[data-skin] a.btn-main {
		box-shadow: 3px 3px 0 var(--sk-accent-3);
	}
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.skin-fx {
		display: none;
	}

	html[data-skin] .btn-main,
	html[data-skin] .blogBox {
		transition: none;
	}

	html[data-skin] .btn-main:hover,
	html[data-skin] .blogBox:hover {
		transform: none;
	}
}
