/* SK Accessibility - WCAG 2.1/2.2 AA fixes. Each block says why it exists. */

/* 1. Contrast: brand pink #EC008C is 4.25:1 on white (needs 4.5:1). #D9007F is 4.93:1 and looks the same.
   !important is needed because the theme sets these colours with more specific rules.
   :not(:hover):not(:focus-visible) keeps each element's own hover/focus colours. */

/* White text on a pink background */
html body header#site-header,
html body .tsk-hero-btn--pink:not(:hover):not(:focus-visible),
html body .sl-bg-pink,
html body .sf-btn--primary:not(:hover):not(:focus-visible),
html body .faq-block__question:not(:hover):not(:focus-visible),
html body .shop-card__badge,
html body .single_add_to_cart_button:not(:hover):not(:focus-visible),
html body .btn--primary:not(:hover):not(:focus-visible),
html body .franchising__ready-cta:not(:hover):not(:focus-visible) {
	background-color: #d9007f !important;
}
html body .shop-card.is-soldout .shop-card__badge,
html body .is-soldout .shop-card__badge--right,
html body .is-soldout .shop-card__badge {
	background-color: #6f6f76 !important;
}
/* The footer also holds lime headings (they need a deeper pink) and a pale pink copyright line */
html body footer.tsk-footer {
	background-color: #c2006f !important;
}
html body footer.tsk-footer .tsk-footer-bottom__copy,
html body footer.tsk-footer .tsk-footer-bottom__copy a {
	color: #ffffff !important;
}

/* Pink text on a white or very light background */
html body .tsk-eelg-card__cta,
html body .tsk-exp-spot__name,
html body .tsk-exp-spot__item .tsk-exp-spot__body .tsk-exp-spot__name,
html body .tsk-exp-spot__item h3.tsk-exp-spot__name,
html body .tsk-exp-spot__link,
html body .sl-location__info-label,
html body .tsk-store-info__label,
html body .tsk-eelg-header__eyebrow,
html body .tsk-hero-btn--white:not(:hover):not(:focus-visible),
html body .tsk-story-split__eyebrow,
html body .tsk-recognition-split__eyebrow,
html body .tsk-loc-press__card-meta,
html body .tsk-loc-store-details__eyebrow,
html body .shop-chip--active,
html body .sf-state--active,
html body .btn-white:not(:hover):not(:focus-visible) {
	color: #d9007f !important;
}

/* Grey text that was too light */
html body .tsk-recognition-split__award-desc { color: #6b6b6b !important; }
html body del,
html body del .woocommerce-Price-amount,
html body del .amount,
html body del bdi { color: #757575 !important; opacity: 1 !important; }
html body .shop-card__price del, html body .price del { opacity: 1 !important; }

/* Links inside body text must be recognisable without relying on colour */
html body .posted_in a,
html body .tagged_as a { text-decoration: underline !important; }

/* 1b. Booking widgets use the same pink (and a lighter #EC4899 for the active step title) */
html body #slime-widgets-app .p-button:not(:hover):not(:disabled):not(.p-button-text):not(.p-button-outlined),
html body #rsvp-app .p-button:not(:hover):not(:disabled):not(.p-button-text):not(.p-button-outlined) {
	background-color: #d9007f !important;
	border-color: #d9007f !important;
	color: #ffffff !important;
}
html body .sl-calendar-panel__day { transition: none !important; }
html body #slime-widgets-app .sl-calendar-panel__day.sl-calendar-panel__day--selected,
html body #rsvp-app .sl-calendar-panel__day.sl-calendar-panel__day--selected {
	background-color: #d9007f !important;
	color: #ffffff !important;
}
html body #slime-widgets-app .sl-back-btn,
html body #slime-widgets-app .sl-package-date-step__back {
	color: #d9007f !important;
}
html body #slime-widgets-app .p-step-title[data-p~="active"],
html body #rsvp-app .p-step-title[data-p~="active"] {
	color: #be185d !important;
}

/* 1c. Booking widget grey text (#9CA3AF is 2.5:1) and price pink */
html body #slime-widgets-app .sl-addon-picker__description,
html body #slime-widgets-app .sl-addon-picker__total-label,
html body #slime-widgets-app .sl-addon-card__description,
html body #slime-widgets-app .text-gray-400,
html body #rsvp-app .text-gray-400 {
	color: #6b7280 !important;
}
html body #slime-widgets-app .sl-addon-card__price { color: #d9007f !important; }
html body #slime-widgets-app .sl-cip__head-btn--selected { color: #c2006f !important; }

/* 1d. Elements marked by the script in sk-accessibility.js (brand pink text / backgrounds not named above) */
html body .sk-pink-text:not(:hover):not(:focus-visible) { color: #d9007f !important; }
html body .sk-pink-bg:not(:hover):not(:focus-visible) { background-color: #d9007f !important; }
html body .sk-on-pink-text { color: #ffffff !important; }
/* press & awards page: pale grey dates (#AAA is 2.2:1) */
html body .tsk-press-card__date { color: #666666 !important; }

html body .cart-box-btn { min-width: 24px; min-height: 24px; }

/* 2. Keyboard focus: always visible, on light and on dark/pink backgrounds */
html body a:focus-visible,
html body button:focus-visible,
html body input:focus-visible,
html body select:focus-visible,
html body textarea:focus-visible,
html body summary:focus-visible,
html body [role="button"]:focus-visible,
html body [tabindex]:focus-visible {
	outline: 3px solid #5f00a6 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 5px #ffffff !important;
}

/* 3. Skip link: hidden until it gets keyboard focus */
.sk-skip {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	transform: translateY(-200%);
	background: #5f00a6;
	color: #ffffff;
	padding: 12px 20px;
	border-radius: 8px;
	font: 700 16px/1.2 'Avenir Next', Arial, sans-serif;
	text-decoration: none;
}
.sk-skip:focus { transform: translateY(0); }

/* 4. Pause control for looping videos (shown on keyboard focus) */
.sk-pause-videos {
	position: fixed;
	top: 8px;
	left: 190px;
	z-index: 100000;
	transform: translateY(-200%);
	background: #ffffff;
	color: #1a0030;
	border: 2px solid #5f00a6;
	padding: 10px 18px;
	border-radius: 8px;
	font: 700 16px/1.2 'Avenir Next', Arial, sans-serif;
	cursor: pointer;
}
.sk-pause-videos:focus { transform: translateY(0); }

/* 5. Small touch targets (carousel dots): 24px hit area, the visible dot keeps its size */
html body [aria-label^="Go to slide"] {
	box-sizing: content-box;
	min-width: 8px;
	min-height: 8px;
	padding: 8px;
	background-clip: content-box;
}

/* 5b. Map pins: 24px wide hit area (the pin graphic stays 22px and centred) */
html body .leaflet-marker-icon[role="button"] {
	width: 24px !important;
	margin-left: -12px !important;
	display: flex;
	justify-content: center;
}

/* 6. Respect "reduce motion" */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* 7. Franchising page: text list of the map locations */
.sk-franchise-list {
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 20px 64px;
	color: #1a0030;
	font-family: 'Avenir Next', Arial, sans-serif;
}
.sk-franchise-list h3 {
	margin: 0 0 20px;
	font-size: 1.4rem;
	color: #1a0030;
}
.sk-franchise-list__group { margin-bottom: 20px; }
.sk-franchise-list h4 {
	margin: 0 0 8px;
	font-size: 1.05rem;
	color: #be0070;
}
.sk-franchise-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 3 220px;
	column-gap: 28px;
}
.sk-franchise-list li { padding: 3px 0; break-inside: avoid; }
.sk-franchise-list__more { margin: 8px 0 0; }
.sk-franchise-list__more a { color: #5f00a6; text-decoration: underline; font-weight: 700; }
