/* ===========================================================================
 * ArneIron — day / night (inc/daynight.php)
 *
 * Night is the site's own saved palette. Day is a light "MS-DOS" edition.
 * Every rule keys off attributes on the html element, set before the first paint:
 *   data-arneiron-scheme="night|day"
 *   data-arneiron-day="dos|norton|dos-exact"
 *   data-arneiron-base="dark|light"     (is the saved palette dark?)
 *
 * WHY THE HTML ELEMENT: ds.css derives its --c-* aliases, the gradient presets and the
 * custom surface tokens on :root, so a palette set on body would not reach
 * them. html[data-…] (0,1,1) beats core's global-styles :root (0,1,0).
 *
 * BOTH palette families are set (bg/ink/… and base/contrast/…): ds.css §0
 * documents the half-restyle bug when only one family moves.
 *
 * Contrast (WCAG 2.2, normal text) — measured, see PLAN.md §Palettes:
 *   dos        white #fff on #646464  5.92   cyan #55ffff 4.83   yellow 5.55
 *   norton     black #000 on #aaaaaa  9.04   blue #0000aa 5.72
 *   dos-exact  white #fff on #aaaaaa  2.32   FAILS AA — the owner's photo 1:1
 * ======================================================================== */

/* ---- 0. The DOS font: GNU Unifont 16.0.04 (GPL-2+), subset to Latin,
 *         Latin-1/Ext-A/B, Cyrillic, punctuation and box drawing (8.8 KB).
 *         Declared here, downloaded only when a day palette uses it. --------- */
@font-face {
	font-family: "ArneIron DOS";
	src: url("../fonts/unifont-dos-16.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* ---- 1. Day palettes ------------------------------------------------------ */

/* Shared by every day palette: no CRT canvas, square chrome, DOS type. */
html[data-arneiron-scheme="day"] {
	--wp--custom--ui--color-scheme: light;
	--wp--custom--canvas--image: none;
	--wp--custom--canvas--size: auto;
	--wp--custom--canvas--attachment: scroll;
	--wp--custom--canvas--link-glow: none;
	--wp--custom--canvas--body-font: var(--arneiron-dos-font);
	--wp--custom--radius--0: 0;
	--wp--custom--radius--sm: 0;
	--wp--custom--radius--md: 0;
	--wp--custom--radius--lg: 0;
	--wp--custom--radius--pill: 0;
	--wp--custom--shadow--sm: none;
	--wp--custom--shadow--md: 6px 6px 0 0 #000000;
	--wp--custom--shadow--lg: 8px 8px 0 0 #000000;
	--wp--custom--nav--bg: var(--wp--preset--color--surface);
	--wp--custom--nav--border: 3px double var(--arneiron-dos-frame);
	--wp--custom--nav--rail-color: var(--arneiron-dos-hot);
	--wp--custom--nav--active-bg: var(--arneiron-dos-bar);
	--wp--custom--header--bg: var(--arneiron-dos-bar);
	--wp--custom--footer--bg: var(--arneiron-dos-fkey-bg);
	--wp--custom--canvas--selection-bg: var(--arneiron-dos-bar);
	--wp--custom--canvas--selection-ink: var(--arneiron-dos-bar-ink);
	--wp--custom--color--focus-ring: var(--arneiron-dos-hot);
	--arneiron-dos-font: "ArneIron DOS", "Share Tech Mono", ui-monospace, "Courier New", monospace;
	--wp--preset--font-family--ui: var(--arneiron-dos-font);
	--wp--preset--font-family--sans: var(--arneiron-dos-font);
	--wp--preset--font-family--display: var(--arneiron-dos-font);
	--wp--preset--font-family--mono: var(--arneiron-dos-font);
	--arneiron-dos-fkey-bg: #000000;
	--arneiron-dos-fkey-ink: #ffffff;
	--arneiron-dos-fkey-num: #ff5555;
	color-scheme: light;
}

/* dos — the photo's look, darkened until white type passes AA (default). */
html[data-arneiron-scheme="day"][data-arneiron-day="dos"] {
	--wp--preset--color--bg: #646464;
	--wp--preset--color--base: #646464;
	--wp--preset--color--surface: #5a5a5a;
	--wp--preset--color--surface-2: #555555;
	--wp--preset--color--base-2: #555555;
	--wp--preset--color--surface-3: #4e4e4e;
	--wp--preset--color--border: #c8c8c8;
	--wp--preset--color--border-strong: #ffffff;
	--wp--preset--color--ink: #ffffff;
	--wp--preset--color--contrast: #ffffff;
	--wp--preset--color--contrast-2: #ffffff;
	--wp--preset--color--on-surface: #ffffff;
	--wp--preset--color--ink-2: #55ffff;
	--wp--preset--color--muted: #55ffff;
	--wp--preset--color--ink-3: #f0f0f0;
	--wp--preset--color--subtle: #f0f0f0;
	--wp--preset--color--accent: #55ffff;
	--wp--preset--color--accent-strong: #005858;
	--wp--preset--color--on-accent: #000000;
	--wp--preset--color--accent-contrast: #000000;
	--wp--preset--color--link: #ffff55;
	--wp--preset--color--link-hover: #ffffff;
	--wp--preset--color--success: #77ff77;
	--wp--preset--color--warning: #ffff55;
	--wp--preset--color--danger: #ffd0d0;
	--wp--custom--button--hover-bg: #005858;
	--wp--custom--button--hover-ink: #ffff55;
	--arneiron-dos-bar: #006e6e;
	--arneiron-dos-bar-ink: #ffffff;
	--arneiron-dos-hot: #ffff55;
	--arneiron-dos-frame: #ffffff;
}

/* norton — same grey as the photo, black type (Norton/Volkov Commander dialogs). */
html[data-arneiron-scheme="day"][data-arneiron-day="norton"] {
	--wp--preset--color--bg: #aaaaaa;
	--wp--preset--color--base: #aaaaaa;
	--wp--preset--color--surface: #b4b4b4;
	--wp--preset--color--surface-2: #bebebe;
	--wp--preset--color--base-2: #bebebe;
	--wp--preset--color--surface-3: #c8c8c8;
	--wp--preset--color--border: #ffffff;
	--wp--preset--color--border-strong: #000000;
	--wp--preset--color--ink: #000000;
	--wp--preset--color--contrast: #000000;
	--wp--preset--color--contrast-2: #000000;
	--wp--preset--color--on-surface: #000000;
	--wp--preset--color--ink-2: #202020;
	--wp--preset--color--muted: #202020;
	--wp--preset--color--ink-3: #2e2e2e;
	--wp--preset--color--subtle: #2e2e2e;
	--wp--preset--color--accent: #0000aa;
	--wp--preset--color--accent-strong: #000080;
	--wp--preset--color--on-accent: #ffffff;
	--wp--preset--color--accent-contrast: #ffffff;
	--wp--preset--color--link: #0000aa;
	--wp--preset--color--link-hover: #000055;
	--wp--preset--color--success: #003800;
	--wp--preset--color--warning: #4a2a00;
	--wp--preset--color--danger: #6e0000;
	--wp--custom--button--hover-bg: #000080;
	--wp--custom--button--hover-ink: #ffffff;
	--arneiron-dos-bar: #00aaaa;
	--arneiron-dos-bar-ink: #000000;
	--arneiron-dos-hot: #5a0000; /* 5.11:1 on #00aaaa (#aa0000 was 2.71:1) */
	--arneiron-dos-frame: #ffffff;
}

/* dos-exact — the owner's photo, 1:1 (VGA colours). White on #aaa = 2.32:1,
 * below AA: offered for comparison, not recommended for a real site. */
html[data-arneiron-scheme="day"][data-arneiron-day="dos-exact"] {
	--wp--preset--color--bg: #aaaaaa;
	--wp--preset--color--base: #aaaaaa;
	--wp--preset--color--surface: #aaaaaa;
	--wp--preset--color--surface-2: #a0a0a0;
	--wp--preset--color--base-2: #a0a0a0;
	--wp--preset--color--surface-3: #969696;
	--wp--preset--color--border: #ffffff;
	--wp--preset--color--border-strong: #ffffff;
	--wp--preset--color--ink: #ffffff;
	--wp--preset--color--contrast: #ffffff;
	--wp--preset--color--contrast-2: #ffffff;
	--wp--preset--color--on-surface: #ffffff;
	--wp--preset--color--ink-2: #55ffff;
	--wp--preset--color--muted: #55ffff;
	--wp--preset--color--ink-3: #55ffff;
	--wp--preset--color--subtle: #55ffff;
	--wp--preset--color--accent: #00aaaa;
	--wp--preset--color--accent-strong: #0000aa;
	--wp--preset--color--on-accent: #ffffff;
	--wp--preset--color--accent-contrast: #ffffff;
	--wp--preset--color--link: #ffff55;
	--wp--preset--color--link-hover: #ffffff;
	--wp--preset--color--success: #55ff55;
	--wp--preset--color--warning: #ffff55;
	--wp--preset--color--danger: #ff5555;
	--wp--custom--button--hover-bg: #0000aa;
	--wp--custom--button--hover-ink: #ffff55;
	--arneiron-dos-bar: #00aaaa;
	--arneiron-dos-bar-ink: #ffffff;
	--arneiron-dos-hot: #ffff55;
	--arneiron-dos-frame: #ffffff;
}

/* ---- 2. Night for sites whose saved palette is LIGHT ------------------------
 * (Pro's own default and the Quattro/Solutech/photo packs.) Values = the
 * theme's "Gray Dark" variation. On a dark saved palette (Old Arnie, Mocca)
 * night changes nothing. */
html[data-arneiron-scheme="night"][data-arneiron-base="light"] {
	--wp--preset--color--bg: #0d0d10;
	--wp--preset--color--base: #0d0d10;
	--wp--preset--color--base-2: #14151a;
	--wp--preset--color--surface: #1a1c22;
	--wp--preset--color--surface-2: #212430;
	--wp--preset--color--surface-3: #282c36;
	--wp--preset--color--border: #33373e;
	--wp--preset--color--border-strong: #474c56;
	--wp--preset--color--ink: #eef1f5;
	--wp--preset--color--contrast: #eef1f5;
	--wp--preset--color--contrast-2: #ffffff;
	--wp--preset--color--on-surface: #d7dbe2;
	--wp--preset--color--ink-2: #cacfd6;
	--wp--preset--color--muted: #a7adb8;
	--wp--preset--color--ink-3: #a7adb8;
	--wp--preset--color--subtle: #a7adb8;
	--wp--preset--color--accent: #c7ccd6;
	--wp--preset--color--accent-strong: #dadee6;
	--wp--preset--color--on-accent: #0d0d10;
	--wp--preset--color--accent-contrast: #0d0d10;
	--wp--preset--color--link: #c7ccd6;
	--wp--preset--color--link-hover: #ffffff;
	--wp--preset--color--success: #7bd88f;
	--wp--preset--color--warning: #f0c36b;
	--wp--preset--color--danger: #ff8a8a;
	--wp--custom--button--hover-bg: #dadee6;
	--wp--custom--button--hover-ink: #0d0d10;
	--wp--custom--ui--color-scheme: dark;
	--wp--custom--color--focus-ring: #7c8bff;
	color-scheme: dark;
}

/* ---- 2b. Canvas colour on the html element ---------------------------------
 * A site can leave body transparent (dev arneiron.net home: Additional CSS
 * body.home{background-color:revert!important}); night hides that because the
 * browser canvas is dark, day would show white. Paint the root with the
 * palette so a transparent body still sits on the right colour. */
html[data-arneiron-scheme="day"],
html[data-arneiron-scheme="night"][data-arneiron-base="light"] {
	background-color: var(--wp--preset--color--bg);
}

/* ---- 3. Day chrome: the DOS editor look ----------------------------------- */
html[data-arneiron-scheme="day"] body {
	-webkit-font-smoothing: none;
	-moz-osx-font-smoothing: auto;
	text-shadow: none;
	scrollbar-color: var(--arneiron-dos-bar) var(--wp--preset--color--surface-2);
}

/* DOS type everywhere text is set. A site may pin its own font families in
 * Global Styles (arneiron.net pins "Nordwand Mono" on headings), which no
 * preset token reaches, so the day edition sets the family on text elements
 * directly. Icon fonts and code keep theirs: an icon font sets its family on
 * the element (or its ::before, which inherits), so a forced family here turns
 * the glyph into a missing letter (Cutstyle Dark 2026-11-20: simple-line-icons
 * i.icon-magnifier / i.icon-basket in the header vanished by day). Anything
 * named like an icon, an empty <i>, and the search / mini-cart buttons are left
 * alone. */
html[data-arneiron-scheme="day"] :is(body, h1, h2, h3, h4, h5, h6, p, li, dt, dd, a, button, input, select, textarea, label, legend, blockquote, figcaption, caption, td, th, small, strong, em, b, i, .wp-block-site-title, .wp-element-button, .wp-block-button__link, .wp-block-navigation-item__content):not(.dashicons, [class*="dashicons-"], .fa, .fas, .far, .fab, .fal, .fat, .fad, [class*="fa-"], [class*="icon"], [class*="glyph"], .material-icons, .material-symbols-outlined, i:empty, .wp-block-search__button, .wc-block-mini-cart__button, .wc-block-mini-cart__badge, .cart-contents) {
	font-family: var(--arneiron-dos-font) !important;
}

/* Menu bar = the header: bar colour, double frame line under it. */
html[data-arneiron-scheme="day"] header.wp-block-template-part,
html[data-arneiron-scheme="day"] .site-header {
	/* !important: packs paint their header bar hard (Solutech .qg-header = black). */
	background: var(--arneiron-dos-bar) !important;
	color: var(--arneiron-dos-bar-ink);
	box-shadow: none;
}
html[data-arneiron-scheme="day"] header.wp-block-template-part {
	border-bottom: 4px double var(--arneiron-dos-frame);
}
/* Core preset classes carry !important (the mobile bar is has-surface-…). */
html[data-arneiron-scheme="day"] .site-header.has-background {
	background-color: var(--arneiron-dos-bar) !important;
}
/* !important: packs paint header links hard (Solutech: #fff, hover/current
 * #8888ea = 2.86:1 / 1.08:1 on the Norton bar). Hover and the current item keep
 * the bar ink and get an underline instead of a colour change. */
html[data-arneiron-scheme="day"] .site-header a:not(.wp-element-button, .wp-block-button__link, .btn),
html[data-arneiron-scheme="day"] .site-header .wp-block-site-title a,
html[data-arneiron-scheme="day"] .site-header .wp-block-navigation-item__content,
html[data-arneiron-scheme="day"] .site-header .wp-block-navigation-item__content:is(:hover, :focus-visible),
html[data-arneiron-scheme="day"] .site-header :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content {
	color: var(--arneiron-dos-bar-ink) !important;
	text-shadow: none;
}
html[data-arneiron-scheme="day"] .site-header .wp-block-navigation-item__content:is(:hover, :focus-visible),
html[data-arneiron-scheme="day"] .site-header :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content,
html[data-arneiron-scheme="day"] .site-header .wp-block-navigation-item__content[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 4px;
}
/* Header icon buttons (search, burger): packs paint them white (2.86:1 on Norton). */
html[data-arneiron-scheme="day"] .site-header :is(.wp-block-search__button, .wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close, .nav-toggle, .arneiron-mobile-bar__toggle) {
	color: var(--arneiron-dos-bar-ink) !important;
	fill: currentColor;
}
/* Slider buttons painted with the site's own accent in inline styles
 * (marked by daynight.js): by day they take the day accent like every other
 * accent (owner 2026-11-23, Cutstyle Dark hero "about us" stayed gold). */
html[data-arneiron-scheme="day"] .arneiron-dn-accent-bg {
	background-color: var(--wp--preset--color--accent) !important;
	border-color: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--on-accent) !important;
}
html[data-arneiron-scheme="day"][data-arneiron-day="dos-exact"] .arneiron-dn-accent-bg {
	color: #000 !important; /* on-accent white on dos-exact #00aaaa is 2.86:1; black is 7.33:1 */
}
html[data-arneiron-scheme="day"] .arneiron-dn-accent-line {
	border-color: var(--wp--preset--color--accent) !important;
}
/* The day/night toggle itself, where it sits on the bar (Pitstop phone bar:
 * white on Norton 2.86:1). A floating or docked toggle has its own plate. */
html[data-arneiron-scheme="day"] :is(header.wp-block-template-part, .site-header) .arneiron-daynight:not(.arneiron-daynight--float, .arneiron-daynight--docked) {
	color: var(--arneiron-dos-bar-ink) !important;
}
/* The hot-key letter: first letter of every top-level menu item. */
/* On the LABEL span, not the link: the link is a full-height flex box that
 * centres the text, and ::first-letter needs a block-level box. */
html[data-arneiron-scheme="day"] .site-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content > .wp-block-navigation-item__label {
	display: inline-block;
}
html[data-arneiron-scheme="day"] .site-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content > .wp-block-navigation-item__label::first-letter {
	color: var(--arneiron-dos-hot) !important;
}

/* F-key line = the footer: black, white labels, red headings. */
html[data-arneiron-scheme="day"] footer.wp-block-template-part {
	background: var(--arneiron-dos-fkey-bg);
	color: var(--arneiron-dos-fkey-ink);
	border-top: 4px double var(--arneiron-dos-frame);
	--wp--preset--color--ink: var(--arneiron-dos-fkey-ink);
	--wp--preset--color--contrast: var(--arneiron-dos-fkey-ink);
	--wp--preset--color--ink-2: #c0c0c0;
	--wp--preset--color--muted: #c0c0c0;
	--wp--preset--color--ink-3: #c0c0c0;
	--wp--preset--color--subtle: #c0c0c0;
	--wp--preset--color--link: var(--arneiron-dos-fkey-ink);
	--wp--preset--color--link-hover: #ffff55;
	--wp--preset--color--bg: var(--arneiron-dos-fkey-bg);
	--wp--preset--color--base: var(--arneiron-dos-fkey-bg);
	--wp--preset--color--surface: var(--arneiron-dos-fkey-bg);
	--wp--preset--color--border: #555555;
	--wp--preset--color--success: #55ff55;
	--wp--preset--color--warning: #ffff55;
	--wp--preset--color--danger: #ff5555;
	/* ds.css resolves the --c-* aliases once on :root, so the footer needs its
	   own copies or norton's dark ink lands on the black F-key line. */
	--c-bg: var(--arneiron-dos-fkey-bg);
	--c-ink: var(--arneiron-dos-fkey-ink);
	--c-ink-2: #c0c0c0;
	--c-ink-3: #c0c0c0;
	--c-ink-dim: #c0c0c0;
	--c-border: #555555;
	--c-surface: var(--arneiron-dos-fkey-bg);
	--c-link: var(--arneiron-dos-fkey-ink);
	--c-link-hover: #ffff55;
	--c-success: #55ff55;
	--c-warning: #ffff55;
	--c-danger: #ff5555;
}
html[data-arneiron-scheme="day"] footer.wp-block-template-part :is(h1, h2, h3, h4, h5, h6, .wp-block-heading) {
	color: var(--arneiron-dos-fkey-num);
}
html[data-arneiron-scheme="day"] footer.wp-block-template-part .app-footer,
html[data-arneiron-scheme="day"] footer.wp-block-template-part > .wp-block-group {
	background: transparent;
}

/* Double frame lines instead of hairlines. */
html[data-arneiron-scheme="day"] hr,
html[data-arneiron-scheme="day"] .wp-block-separator {
	border: 0;
	border-top: 4px double var(--arneiron-dos-frame);
	background: none;
	opacity: 1;
}

/* Buttons: square, flat, hard black drop shadow (DOS dialog button). */
html[data-arneiron-scheme="day"] :is(.wp-element-button, .wp-block-button__link, .btn, button[type="submit"], input[type="submit"]) {
	border-radius: 0;
	background-image: none;
	text-shadow: none;
}

/* Keyboard focus: dashed hot colour, never glow. */
html[data-arneiron-scheme="day"] :focus-visible {
	outline: 2px dashed var(--arneiron-dos-hot);
	outline-offset: 2px;
	box-shadow: none;
}

html[data-arneiron-scheme="day"] ::selection {
	background: var(--arneiron-dos-bar);
	color: var(--arneiron-dos-bar-ink);
}

/* ---- 4. The toggle -------------------------------------------------------- */
.arneiron-daynight {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 32px;
	margin: 0;
	padding: 4px;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	flex: 0 0 auto;
}
.arneiron-daynight__track {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	width: 52px;
	height: 26px;
	padding: 0 5px;
	border: 2px solid currentColor;
	background: color-mix(in srgb, currentColor 12%, transparent);
	/* The knob moves by left/translateX: keep the icons in the same order in RTL. */
	direction: ltr;
}
.arneiron-daynight__icon {
	display: inline-flex;
	width: 14px;
	height: 14px;
}
.arneiron-daynight__icon svg { display: block; }
/* Header icon rules size every svg in their row (Pro ds.css:
 * `.arneiron-mobile-bar__icons svg { width: 30px; height: 30px }`, and packs
 * do the same), which blew the 14px moon/sun up past the 26px track (%123,
 * 2026-11-23, Photo / Solutech / Quattro / dev phone bar). The toggle keeps
 * its own icon size. */
html .arneiron-daynight[data-arneiron-daynight] .arneiron-daynight__icon,
html .arneiron-daynight[data-arneiron-daynight] .arneiron-daynight__icon svg {
	width: 14px !important;
	height: 14px !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: none !important;
}
/* The knob covers the CURRENT mode; the visible icon is where a click goes. */
.arneiron-daynight__knob {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	background: currentColor;
	transition: transform 0.2s steps(4, end);
}
html[data-arneiron-scheme="day"] .arneiron-daynight__knob {
	transform: translateX(26px);
}
.arneiron-daynight:hover .arneiron-daynight__track {
	background: color-mix(in srgb, currentColor 24%, transparent);
}
.arneiron-daynight:focus-visible {
	outline: 2px dashed currentColor;
	outline-offset: 2px;
}
/* Packs style every <button> in their header (Mocca 2026-11-20: a black box
 * with wide padding around the toggle), so the toggle keeps its own box. */
html .arneiron-daynight[data-arneiron-daynight] {
	margin: 0 !important;
	padding: 4px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	width: auto !important;
	height: auto !important;
	min-width: 44px !important;
	min-height: 32px !important;
	max-width: none !important;
	float: none !important;
	transform: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	line-height: 1 !important;
}
html .arneiron-daynight--mobile[data-arneiron-daynight] {
	min-height: 44px !important;
}
/* A floating toggle sits on whatever the pack paints there (Nordis
 * 2026-11-20: a white header ink over a light hero, 1.02:1), so it carries its
 * own plate in the site's page colours: the track always reads on it. */
html .arneiron-daynight--float[data-arneiron-daynight],
html .arneiron-daynight--docked[data-arneiron-daynight] {
	background: var(--wp--preset--color--bg, #fff) !important;
	color: var(--wp--preset--color--ink, #000) !important;
	border-radius: 4px !important;
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--ink, #000) 35%, transparent) !important;
}
html .arneiron-daynight--float[data-arneiron-daynight] {
	position: absolute !important;
	top: 8px;
	right: 8px;
	z-index: 40;
}
.wp-block-template-part:has(> .arneiron-daynight--float) {
	position: relative;
}
/* daynight.js moves a floating toggle off the pack's own controls; with no
 * room in the header it docks to the bottom-left corner of the screen. */
.arneiron-daynight[hidden] {
	display: none !important;
}
html .arneiron-daynight--docked[data-arneiron-daynight] {
	position: fixed !important;
	top: auto !important;
	right: auto !important;
	left: 12px !important;
	bottom: 12px !important;
	z-index: 9990;
}
.arneiron-daynight--slot {
	flex: none;
}
/* Compact toggle (daynight.js adds --compact when the header row it sits in
 * overflows): icon only, ~28px instead of ~60px. Cutstyle Dark 2026-11-23: at
 * 993-1199px the pack's own menu already filled the row and the full toggle
 * pushed search/cart off the screen. The icon shown is where a click goes. */
html .arneiron-daynight--compact[data-arneiron-daynight] {
	min-width: 28px !important;
	min-height: 28px !important;
	padding: 2px !important;
}
.arneiron-daynight--compact .arneiron-daynight__track {
	width: 24px;
	height: 24px;
	padding: 0;
	justify-content: center;
}
.arneiron-daynight--compact .arneiron-daynight__knob {
	display: none;
}
html:not([data-arneiron-scheme="day"]) .arneiron-daynight--compact .arneiron-daynight__icon--night,
html[data-arneiron-scheme="day"] .arneiron-daynight--compact .arneiron-daynight__icon--day {
	display: none !important;
}

/* The colour change itself: a short stepped fade, never under reduced motion. */
html.arneiron-daynight-anim body,
html.arneiron-daynight-anim body * {
	transition: background-color 0.2s steps(3, end), color 0.2s steps(3, end), border-color 0.2s steps(3, end) !important;
}

/* …but the knob keeps its stepped slide during that fade. */
html.arneiron-daynight-anim .arneiron-daynight__knob {
	transition: transform 0.2s steps(4, end), background-color 0.2s steps(3, end) !important;
}

@media (prefers-reduced-motion: reduce) {
	.arneiron-daynight__knob { transition: none; }
	html.arneiron-daynight-anim body,
	html.arneiron-daynight-anim body * { transition: none !important; }
	html.arneiron-daynight-anim .arneiron-daynight__knob { transition: none !important; }
}

/* ---- 5. Known plugin spots outside the tokens ------------------------------
 * arneiron-price-block meter: hard-coded rgba(5,2,3,.6) track (night colour);
 * dark ink on it fails AA in day. Better fixed in the plugin itself. */
html[data-arneiron-scheme="day"] .arneiron-price-block .apb-meter {
	background: var(--wp--preset--color--surface-2);
}
html[data-arneiron-scheme="day"] .arneiron-price-block .apb-meter__bar i:not(.on) {
	background: var(--wp--preset--color--surface-3);
}

@media print {
	.arneiron-daynight { display: none !important; }
}
