/* Sheetaky 1.6 upgrade: featured slider, richer sidebar, counters, back-to-top, polish.
   Additive only: nothing here is required for the pages to work. */

/* ------------------------------------------------------------------ featured slider */
.sk-feat {
	padding-block: 8px 28px;
}

.sk-feat__stage {
	display: grid;
	position: relative;
}

.sk-feat__slide {
	--t1: #17603a;
	--t2: #0d3b24;
	--tg: #e8a317;
	grid-area: 1 / 1;
	display: grid;
	gap: 20px;
	align-items: center;
	padding: 22px;
	border-radius: 24px;
	color: #fff;
	background:
		radial-gradient(120% 120% at 100% 0%, color-mix(in oklch, var(--tg) 32%, transparent) 0, transparent 52%),
		linear-gradient(135deg, var(--t1), var(--t2));
	box-shadow: var(--sk-shadow-3);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateX(calc(var(--dir) * -26px)) scale(0.985);
	transition: opacity 0.55s var(--sk-ease), transform 0.65s var(--sk-ease), visibility 0s linear 0.65s;
}

.sk-feat__slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.sk-feat__slide.is-leaving {
	transform: translateX(calc(var(--dir) * 26px)) scale(0.985);
}

.sk-tone-0 { --t1: #17603a; --t2: #0b3320; --tg: #e8a317; }
.sk-tone-1 { --t1: #1d4f91; --t2: #0f2b52; --tg: #6fb6ff; }
.sk-tone-2 { --t1: #7a2e4d; --t2: #3f1427; --tg: #ff9db8; }
.sk-tone-3 { --t1: #8a5a0a; --t2: #3f2803; --tg: #ffd36b; }
.sk-tone-4 { --t1: #2b3a55; --t2: #131b2b; --tg: #8fd0c0; }

.sk-feat__copy {
	display: grid;
	justify-items: start;
	gap: 10px;
	position: relative;
	z-index: 1;
}

.sk-feat__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	background: color-mix(in oklch, var(--tg) 90%, #fff);
	color: #231600;
	font-size: 0.8rem;
	font-weight: 700;
}

.sk-feat__badge .sk-icon {
	width: 14px;
	height: 14px;
}

.sk-feat__eyebrow {
	margin: 0;
	color: color-mix(in oklch, #fff 78%, transparent);
	font-size: 0.88rem;
	font-weight: 600;
}

.sk-feat__title {
	margin: 0;
	font-size: clamp(1.35rem, 3.6vw, 2.1rem);
	line-height: 1.3;
}

.sk-feat__title a {
	color: #fff;
	text-decoration: none;
}

.sk-feat__title a:hover {
	text-decoration: underline;
	text-underline-offset: 6px;
}

.sk-feat__excerpt {
	margin: 0;
	max-width: 52ch;
	color: color-mix(in oklch, #fff 84%, transparent);
	line-height: 1.8;
}

.sk-feat__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 6px;
	padding: 0;
	list-style: none;
}

.sk-feat__chips li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px;
	border: 1px solid color-mix(in oklch, #fff 28%, transparent);
	border-radius: 999px;
	background: color-mix(in oklch, #fff 10%, transparent);
	font-size: 0.82rem;
}

.sk-feat__chips .sk-icon {
	width: 14px;
	height: 14px;
}

.sk-feat__media {
	display: block;
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 24px 50px -24px rgb(0 0 0 / 60%), 0 0 0 1px rgb(255 255 255 / 18%);
	aspect-ratio: 16 / 10;
	background: #0003;
	transition: transform 0.6s var(--sk-ease);
}

.sk-feat__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--sk-ease);
}

.sk-feat__slide.is-active .sk-feat__media img {
	animation: sk-feat-zoom 9s ease-out both;
}

.sk-feat__media:hover img {
	transform: scale(1.04);
}

@keyframes sk-feat-zoom {
	from { transform: scale(1.08); }
	to { transform: scale(1); }
}

/* staggered entrance of the copy */
.sk-feat__slide.is-active .sk-feat__copy > * {
	animation: sk-feat-rise 0.7s var(--sk-ease) both;
}

.sk-feat__slide.is-active .sk-feat__copy > :nth-child(2) { animation-delay: 0.06s; }
.sk-feat__slide.is-active .sk-feat__copy > :nth-child(3) { animation-delay: 0.12s; }
.sk-feat__slide.is-active .sk-feat__copy > :nth-child(4) { animation-delay: 0.18s; }
.sk-feat__slide.is-active .sk-feat__copy > :nth-child(5) { animation-delay: 0.24s; }
.sk-feat__slide.is-active .sk-feat__copy > :nth-child(6) { animation-delay: 0.3s; }

@keyframes sk-feat-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

@media (min-width: 860px) {
	.sk-feat__slide {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
		gap: 40px;
		padding: 40px 44px;
	}
}

@media (max-width: 859px) {
	.sk-feat__media {
		order: -1;
	}
}

/* controls */
.sk-feat__ctrl {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 16px;
}

.sk-feat__ctrl[hidden] {
	display: none;
}

.sk-feat__arrow,
.sk-feat__pause {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--sk-line);
	border-radius: 50%;
	background: var(--sk-surface);
	color: var(--sk-primary-ink);
	cursor: pointer;
	transition: background 0.2s, transform 0.2s var(--sk-ease), border-color 0.2s;
}

.sk-feat__arrow:hover,
.sk-feat__pause:hover {
	background: var(--sk-primary-tint);
	border-color: color-mix(in oklch, var(--sk-primary) 40%, var(--sk-line));
}

.sk-feat__arrow:active {
	transform: scale(0.92);
}

.sk-feat__arrow .sk-icon {
	width: 20px;
	height: 20px;
}

.sk-feat__pause span {
	width: 12px;
	height: 14px;
	border-inline: 4px solid currentcolor;
}

.sk-feat__pause[aria-pressed="true"] span {
	width: 0;
	height: 0;
	border-inline: 0;
	border-block: 7px solid transparent;
	border-inline-start: 11px solid currentcolor;
}

[dir="rtl"] .sk-feat__pause[aria-pressed="true"] span {
	border-inline-start: 0;
	border-inline-end: 11px solid currentcolor;
}

.sk-feat__dots {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sk-feat__dots button {
	display: grid;
	place-items: center;
	width: 34px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.sk-feat__dots i {
	display: block;
	position: relative;
	width: 34px;
	height: 6px;
	border-radius: 6px;
	background: color-mix(in oklch, var(--sk-text) 16%, var(--sk-bg));
	overflow: hidden;
}

.sk-feat__dots i::after {
	content: "";
	position: absolute;
	inset: 0;
	transform: scaleX(0);
	transform-origin: var(--origin, left);
	background: var(--sk-primary);
}

[dir="rtl"] .sk-feat__dots i::after {
	--origin: right;
}

.sk-feat__dots button[aria-current="true"] i::after {
	transform: scaleX(1);
}

.sk-feat.is-playing .sk-feat__dots button[aria-current="true"] i::after {
	transform: scaleX(0);
	animation: sk-feat-bar var(--feat-ms, 6500ms) linear forwards;
}

.sk-feat.is-held .sk-feat__dots button[aria-current="true"] i::after {
	animation-play-state: paused;
}

@keyframes sk-feat-bar {
	to { transform: scaleX(1); }
}

/* ------------------------------------------------------------------ sidebar */
@media (min-width: 1024px) {
	.sk-aside__sticky {
		max-height: calc(100vh - var(--sk-header-h) - 32px);
		max-height: calc(100dvh - var(--sk-header-h) - 32px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		padding-inline-end: 4px;
	}
}

.sk-box {
	transition: border-color 0.25s, box-shadow 0.25s;
}

.sk-box:hover {
	border-color: color-mix(in oklch, var(--sk-primary) 28%, var(--sk-line));
	box-shadow: var(--sk-shadow-2);
}

.sk-box__title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sk-box__title .sk-icon {
	width: 18px;
	height: 18px;
	color: var(--sk-primary);
}

.sk-toc[hidden] {
	display: none;
}

.sk-toc__list {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	position: relative;
}

.sk-toc__list::before {
	content: "";
	position: absolute;
	inset-block: 4px;
	inset-inline-start: 0;
	width: 2px;
	border-radius: 2px;
	background: var(--sk-line);
}

.sk-toc__list a {
	display: block;
	position: relative;
	padding: 7px 14px;
	color: var(--sk-muted);
	font-size: 0.92rem;
	line-height: 1.5;
	text-decoration: none;
	transition: color 0.2s, background 0.2s;
	border-radius: 0 8px 8px 0;
}

[dir="rtl"] .sk-toc__list a {
	border-radius: 8px 0 0 8px;
}

.sk-toc__list a::before {
	content: "";
	position: absolute;
	inset-block: 6px;
	inset-inline-start: 0;
	width: 2px;
	border-radius: 2px;
	background: var(--sk-primary);
	transform: scaleY(0);
	transition: transform 0.3s var(--sk-ease);
}

.sk-toc__list a:hover {
	color: var(--sk-text);
}

.sk-toc__list a[aria-current="true"] {
	background: var(--sk-primary-tint);
	color: var(--sk-primary-ink);
	font-weight: 600;
}

.sk-toc__list a[aria-current="true"]::before {
	transform: scaleY(1);
}

.sk-minilist ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sk-minilist a {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	color: var(--sk-text);
	text-decoration: none;
}

.sk-minilist__thumb {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	border-radius: 10px;
	background: var(--sk-primary-tint);
	color: var(--sk-primary);
	overflow: hidden;
}

.sk-minilist__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--sk-ease);
}

.sk-minilist a:hover .sk-minilist__thumb img {
	transform: scale(1.08);
}

.sk-minilist__t {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.5;
}

.sk-minilist a:hover .sk-minilist__t {
	color: var(--sk-primary-ink);
}

.sk-askbox {
	position: relative;
	overflow: hidden;
	background: linear-gradient(145deg, var(--sk-primary-tint), var(--sk-accent-tint));
}

.sk-askbox__icon {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin-bottom: 10px;
	border-radius: 12px;
	background: var(--sk-surface);
	color: var(--sk-accent);
	box-shadow: var(--sk-shadow-1);
}

.sk-askbox__text {
	margin: 0 0 14px;
	color: var(--sk-muted);
	font-size: 0.92rem;
	line-height: 1.7;
}

/* mobile: contents become a compact, collapsible block above the article text */
.sk-toc-inline {
	margin: 0 0 22px;
	border: 1px solid var(--sk-line);
	border-radius: var(--sk-r);
	background: var(--sk-surface);
}

.sk-toc-inline summary {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 8px 16px;
	font-weight: 700;
	cursor: pointer;
}

.sk-toc-inline ol {
	margin: 0;
	padding: 0 16px 12px;
	list-style: none;
}

.sk-toc-inline a {
	display: block;
	padding: 8px 0;
	border-top: 1px dashed var(--sk-line);
	color: var(--sk-text);
	text-decoration: none;
}

@media (min-width: 1024px) {
	.sk-toc-inline {
		display: none;
	}
}

.sk-prose h2,
.sk-prose h3 {
	scroll-margin-top: calc(var(--sk-header-h) + 18px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* ------------------------------------------------------------------ polish */
.sk-card__media img {
	transition: transform 0.7s var(--sk-ease);
}

.sk-card:hover .sk-card__media img {
	transform: scale(1.05);
}

.sk-btn--accent,
.sk-btn--primary {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.sk-btn--accent::after,
.sk-btn--primary::after {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: -60%;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgb(255 255 255 / 38%), transparent);
	transform: skewX(-18deg);
	transition: inset-inline-start 0.7s var(--sk-ease);
	z-index: -1;
	pointer-events: none;
}

.sk-btn--accent:hover::after,
.sk-btn--primary:hover::after {
	inset-inline-start: 130%;
}

.sk-section__title {
	position: relative;
}

.sk-section__title::after {
	content: "";
	display: block;
	width: 44px;
	height: 4px;
	margin-top: 10px;
	border-radius: 4px;
	background: var(--sk-accent);
	transform-origin: var(--origin, left);
	animation: sk-grow 0.9s var(--sk-ease) both;
	animation-timeline: view();
	animation-range: entry 10% cover 28%;
}

[dir="rtl"] .sk-section__title {
	--origin: right;
}

@keyframes sk-grow {
	from { transform: scaleX(0.15); opacity: 0.4; }
	to { transform: none; opacity: 1; }
}

@supports not (animation-timeline: view()) {
	.sk-section__title::after {
		animation: none;
	}
}

/* back to top, with a progress ring */
.sk-top {
	position: fixed;
	inset-inline-end: 18px;
	bottom: calc(18px + env(safe-area-inset-bottom));
	z-index: 55;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background:
		radial-gradient(closest-side, var(--sk-surface) 78%, transparent 80%),
		conic-gradient(var(--sk-primary) calc(var(--sp, 0) * 360deg), var(--sk-line) 0);
	color: var(--sk-primary-ink);
	box-shadow: var(--sk-shadow-2);
	cursor: pointer;
	opacity: 0;
	transform: translateY(14px) scale(0.9);
	pointer-events: none;
	transition: opacity 0.3s, transform 0.4s var(--sk-ease);
}

.sk-top.is-shown {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.sk-top .sk-icon {
	width: 20px;
	height: 20px;
}

body:has(.sk-dlbar.is-shown) .sk-top {
	bottom: calc(92px + env(safe-area-inset-bottom));
}

@media (prefers-reduced-motion: reduce) {
	.sk-feat__slide,
	.sk-feat__slide.is-leaving {
		transform: none;
	}

	.sk-feat__slide.is-active .sk-feat__media img,
	.sk-feat__slide.is-active .sk-feat__copy > * {
		animation: none;
	}

	.sk-feat.is-playing .sk-feat__dots button[aria-current="true"] i::after {
		animation: none;
		transform: scaleX(1);
	}
}

/* ==========================================================
   Motion layer 2 — icons, touch feedback, gradient borders
   Children-only transforms (never the .sk-tilt root).
   ========================================================== */
@property --sk-ang {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

/* Icon micro-motion */
.sk-iconbtn .sk-icon,
.sk-quick a .sk-icon,
.sk-group__icon .sk-icon,
.sk-cat__icon .sk-icon,
.sk-feature__icon .sk-icon,
.sk-brand__mark .sk-icon,
.sk-more .sk-icon {
	transition: transform 0.45s var(--sk-ease, ease), color 0.25s;
}

.sk-iconbtn:hover .sk-icon,
.sk-iconbtn:focus-visible .sk-icon {
	transform: scale(1.15) rotate(-8deg);
}

.sk-brand:hover .sk-brand__mark {
	animation: sk-wiggle 0.6s var(--sk-ease, ease);
}

.sk-quick a:hover .sk-icon,
.sk-quick a:focus-visible .sk-icon,
.sk-group:hover .sk-group__icon .sk-icon,
.sk-cat:hover .sk-cat__icon .sk-icon,
.sk-feature:hover .sk-feature__icon .sk-icon {
	transform: translateY(-3px) scale(1.12) rotate(-6deg);
}

.sk-more:hover .sk-icon {
	transform: translateX(calc(4px * var(--dir, 1)));
}

.sk-step:hover .sk-step__n {
	transform: scale(1.1) rotate(-6deg);
}

.sk-step__n {
	transition: transform 0.4s var(--sk-ease, ease);
}

@keyframes sk-wiggle {
	0%, 100% { transform: rotate(0); }
	25% { transform: rotate(-10deg) scale(1.06); }
	60% { transform: rotate(8deg) scale(1.06); }
}

/* Nav underline sweep */
.sk-desknav .sk-nav > li > a {
	position: relative;
}

.sk-desknav .sk-nav > li > a::after {
	content: "";
	position: absolute;
	inset-inline: 12px;
	bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: var(--sk-accent);
	transform: scaleX(0);
	transform-origin: var(--sk-origin, right);
	transition: transform 0.35s var(--sk-ease, ease);
	pointer-events: none;
}

[dir="ltr"] .sk-desknav .sk-nav > li > a { --sk-origin: left; }

.sk-desknav .sk-nav > li > a:hover::after,
.sk-desknav .sk-nav > li > a:focus-visible::after,
.sk-desknav .sk-nav > li.current-menu-item > a::after {
	transform: scaleX(1);
}

/* Animated gradient border on hover (cards, categories, steps, features) */
@supports (background: conic-gradient(from var(--sk-ang), red, blue)) {
	.sk-card::after,
	.sk-cat::after,
	.sk-askbox::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 3;
		border-radius: inherit;
		padding: 1.5px;
		background: conic-gradient(from var(--sk-ang), transparent 0 55%, var(--sk-accent) 75%, var(--sk-primary) 90%, transparent);
		-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
		-webkit-mask-composite: xor;
		mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.35s;
	}

	.sk-card:hover::after,
	.sk-cat:hover::after,
	.sk-askbox:hover::after,
	.sk-card:focus-within::after {
		opacity: 1;
		animation: sk-spin 3.2s linear infinite;
	}
}

@keyframes sk-spin {
	to { --sk-ang: 360deg; }
}

/* Touch feedback: no hover on phones, so press = hover */
.sk-card,
.sk-cat,
.sk-step,
.sk-feature,
.sk-quick a,
.sk-btn,
.sk-box a {
	-webkit-tap-highlight-color: transparent;
}

@media (hover: none) {
	.sk-card:active,
	.sk-cat:active,
	.sk-step:active,
	.sk-feature:active {
		box-shadow: var(--sk-shadow-2);
		border-color: color-mix(in oklch, var(--sk-primary) 40%, var(--sk-line));
	}

	.sk-card:active .sk-card__media img {
		transform: scale(1.05);
	}

	.sk-cat:active .sk-cat__icon .sk-icon,
	.sk-quick a:active .sk-icon,
	.sk-feature:active .sk-feature__icon .sk-icon {
		transform: translateY(-3px) scale(1.15) rotate(-6deg);
	}

	.sk-btn:active,
	.sk-quick a:active,
	.sk-iconbtn:active {
		transform: scale(0.95);
	}
}

.sk-btn:active,
.sk-iconbtn:active {
	transition-duration: 0.08s;
}

/* Scroll-linked reveals for grids (progressive enhancement) */
@supports (animation-timeline: view()) {
	.sk-grid > .sk-card,
	.sk-cats > .sk-cat,
	.sk-steps > .sk-step {
		animation: sk-rise linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 35%;
	}
}

@keyframes sk-rise {
	from { translate: 0 22px; scale: 0.97; }
	to { translate: 0 0; scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.sk-iconbtn .sk-icon,
	.sk-quick a .sk-icon,
	.sk-group__icon .sk-icon,
	.sk-cat__icon .sk-icon,
	.sk-feature__icon .sk-icon,
	.sk-more .sk-icon,
	.sk-step__n,
	.sk-brand:hover .sk-brand__mark,
	.sk-card::after,
	.sk-cat::after,
	.sk-askbox::after,
	.sk-section__title::after,
	.sk-grid > .sk-card,
	.sk-cats > .sk-cat,
	.sk-steps > .sk-step {
		animation: none !important;
		transform: none !important;
		translate: none !important;
		scale: none !important;
	}
}

/* ==========================================================
   Round 2 — audit fixes (contrast, dark mock, container queries)
   ========================================================== */

/* The hero spreadsheet is an Excel window: keep it light in dark mode
   (it was unreadable: light text on white cells). Scoped token reset. */
:root[data-theme="dark"] .sk-ls {
	color-scheme: light;
	--sk-bg: #f4f6f2;
	--sk-text: #1c2621;
	--sk-surface: #fff;
	--sk-surface-2: #f9fbf8;
	--sk-line: #d9dfd9;
	--sk-line-soft: #e8ece8;
	--sk-muted: #55615a;
	--sk-primary: #17603a;
	--sk-primary-ink: #124d2e;
	--sk-primary-tint: #e8f1ec;
	--sk-primary-tint-2: #d6e7dd;
	--sk-accent-tint: #fbf0d6;
	color: var(--sk-text);
}

/* Muted copy that sat at 4.48:1 in light mode */
.sk-sub__text,
.sk-sub__row + * {
	color: color-mix(in oklch, var(--sk-text) 74%, var(--sk-bg));
}

/* Keyboard focus on dark gradient slides must stay visible (3:1) */
.sk-feat :focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.sk-feat__slide .sk-btn:focus-visible {
	outline-color: #fff;
	box-shadow: 0 0 0 6px color-mix(in oklch, #000 35%, transparent);
}

/* Container query: the related-sheets list adapts to its own slot
   (narrow sidebar vs full-width on phones), not to the viewport. */
.sk-minilist ul {
	container: minilist / inline-size;
}

@container minilist (inline-size < 15rem) {
	.sk-minilist a {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 10px;
	}

	.sk-minilist__t {
		font-size: 0.85rem;
	}
}

@container minilist (inline-size > 30rem) {
	.sk-minilist ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px 18px;
	}

	.sk-minilist a {
		grid-template-columns: 96px minmax(0, 1fr);
	}
}

/* Dark mode: filled primary controls use dark ink (white on #2c9460 is 3.8:1) */
:root[data-theme="dark"] :is(.sk-btn--primary, .sk-consent__btn--ok, .sk-lang__link.is-current, .page-numbers.current, .sk-skip, .sk-search .sk-btn, .sk-search button[type="submit"]) {
	color: #06100b;
}

:root[data-theme="dark"] .sk-btn--light {
	color: #124d2e;
}

:root[data-theme="dark"] .sk-sort__a.is-current {
	color: var(--sk-primary-ink);
}

:root[data-theme="dark"] .sk-step__n {
	color: color-mix(in oklch, var(--sk-accent) 70%, #fff);
}

/* Dark mode leftovers found by the contrast sweep */
:root[data-theme="dark"] .sk-sub a,
:root[data-theme="dark"] .sk-sub__consent a {
	color: var(--sk-primary-ink);
}

:root[data-theme="dark"] .sk-file3d {
	color: #06100b;
}

:root[data-theme="dark"] .sk-eyebrow,
:root[data-theme="dark"] .sk-card__body .sk-eyebrow {
	color: var(--sk-primary-ink);
}

:root[data-theme="dark"] .sk-chip.is-current {
	color: #06100b;
}

:root[data-theme="dark"] .sk-lang__link:not(.is-current) {
	color: color-mix(in oklch, var(--sk-text) 82%, var(--sk-bg));
}

/* WCAG 2.5.8: stand-alone footer links need a 24px target */
.sk-footer a {
	display: inline-flex;
	align-items: center;
	min-block-size: 28px;
}

.sk-box__group a {
	display: inline-block;
	padding-block: 4px;
}

:root[data-theme="dark"] .sk-translations a {
	color: #06100b;
}

/* ==========================================================
   OKLCH tokens (perceptually even: one seed, predictable contrast).
   Hex values in style.css stay as the fallback for old browsers.
   To re-theme: change --sk-hue / the L,C of the seeds below only.
   ========================================================== */
@supports (color: oklch(0.5 0.1 150)) {
	:root {
		--sk-hue: 157;
		--sk-primary: oklch(0.43 0.09 var(--sk-hue));
		--sk-primary-ink: oklch(0.36 0.08 var(--sk-hue));
		--sk-text: oklch(0.24 0.02 160);
		--sk-bg: oklch(0.968 0.008 130);
	}

	:root[data-theme="dark"] {
		--sk-bg: oklch(0.185 0.014 160);
		--sk-text: oklch(0.945 0.01 160);
		--sk-surface: oklch(0.225 0.016 160);
		--sk-surface-2: oklch(0.205 0.015 160);
		--sk-primary: oklch(0.6 0.12 var(--sk-hue));
		--sk-primary-ink: oklch(0.84 0.1 var(--sk-hue));
		--sk-primary-tint: color-mix(in oklch, oklch(0.6 0.12 var(--sk-hue)) 14%, oklch(0.225 0.016 160));
		--sk-primary-tint-2: color-mix(in oklch, oklch(0.6 0.12 var(--sk-hue)) 22%, oklch(0.225 0.016 160));
	}
}
