/* ==========================================================================
   Slider Converters · shared styles          Version No.: 48
   Used by every slider converter template. Part A: page. Part B: converter.
   ========================================================================== */

/* PART A · PAGE */

/* A1 · BASE */
#main{ padding-bottom:0 !important; }
/* On :root: the title and info icon also appear in the site's top bar. */
:root{
	--wl-font-display:'Fraunces', Georgia, 'Times New Roman', serif;
	--wl-font-body:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--wl-font-copy:'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.wl-wrap{
	--wl-ink:#1b1d1e;
	--wl-paper:#f2f1ed;
	--wl-surface:#ffffff;
	--wl-line:#dcdad2;
	--wl-muted:#6f716c;
	--wl-accent:#1f6f5c;
	--wl-focus:#2b6ef6;
	--wl-max:760px;

	background:var(--wl-paper);
	color:var(--wl-ink);
	font-family:var(--wl-font-body);
	-webkit-font-smoothing:antialiased;
	box-sizing:border-box;
}
.wl-wrap *{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
.wl-navgroup{ -webkit-tap-highlight-color:transparent; }
.wl-wrap [hidden]{ display:none !important; }

[data-wlcustom-dm="dark"] .wl-wrap{
	--wl-ink:var(--wlcustom-dm-text, #e8e6e3);
	--wl-paper:var(--wlcustom-dm-bg, #0a1423);
	--wl-surface:#121d30;
	--wl-line:#223049;
	--wl-muted:#8b93a6;
	--wl-accent:#2bb3a8;
	--wl-focus:#6d9dff;
}

.wl-wrap button{
	font-family:inherit;
	cursor:pointer;
	-webkit-appearance:none;
	appearance:none;
}
.wl-wrap button:focus-visible,
.wl-wrap [tabindex]:focus-visible{
	outline:3px solid var(--wl-focus);
	outline-offset:2px;
}
.wl-wrap button:focus:not(:focus-visible){
	outline:none !important;
}
/* No outline around text boxes; a focused box gets its own border colour. */
.wl-wrap input:not([type="range"]):not([type="checkbox"]),
.wl-wrap input:not([type="range"]):not([type="checkbox"]):focus,
.wl-wrap input:not([type="range"]):not([type="checkbox"]):focus-visible{ outline:none !important; }
.wl-wrap button::-moz-focus-inner{
	border:0 !important;
	padding:0 !important;
}
@media (prefers-reduced-motion: reduce){
	.wl-wrap *{ transition:none !important; animation:none !important; }
	.wl-navgroup *,
	.wl-navgroup *::after{ transition:none !important; }
}

/* A2 · HERO AND TOP BAR */
.wl-hero{
	flex:none; width:100%; max-width:var(--wl-max);
	margin-left:auto; margin-right:auto;
	padding:0 20px 28px; text-align:center;
}
@media (min-width:900px){
	.wl-hero{ padding:29px 20px 12px; }
}
@media (min-width:980px){
	.wl-hero{ max-width:calc(var(--wl-max) * 1.5); }
}
.wl-h1{
	font-family:var(--wl-font-display);
	font-weight:600;
	font-size:clamp(26px, 4vw, 34px);
	line-height:1.15;
	margin:0 0 12px;
	color:var(--wl-ink);
}
.wl-hero-line{
	font-family:var(--wl-font-copy);
	font-weight:600;
	font-size:17px !important;
	line-height:1.35;
	color:var(--wl-accent);
	margin:0 0 10px;
}
@media (max-width:480px){
	.wl-hero{ padding-left:16px; padding-right:16px; }
	.wl-h1{ font-size:clamp(18px, 5.8vw, 25px); }
	.wl-h1{ padding:0 32px; }
}

.wl-title-ghost{
	position:fixed; z-index:10000; box-sizing:border-box;
	margin:0 !important; padding:0; text-align:center; pointer-events:none;
}
.wl-hero.wl-hero-compact{
	position:absolute; width:1px; height:1px; margin:-1px; padding:0;
	overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
.wl-nav-compact:not(.wl-nav-open) :is(.topnav-menu-desktop, .topnav-desk-search-icon, .topnav-inner > [class*="wlcustom-dm-"]){ visibility:hidden; }
.wl-nav-compact:not(.wl-nav-open) .topnav-mob-row2-menu{ display:none; }
.wl-nav-open .wl-navmain{ display:none; }
.wl-navgroup{
	--wl-nav-ink:#ffffff;
	--wl-nav-accent:#fff551;
	--wl-nav-gap:10px;
	display:flex; align-items:center; gap:18px;
	flex:0 1 auto; min-width:0; margin:0 8px 0 4px;
}
#topnav-bar .wl-navgroup{
	position:absolute; top:0; bottom:0; margin:0;
	display:grid; grid-template-columns:minmax(40px, 1fr) minmax(0, auto) minmax(40px, 1fr);
	pointer-events:none;
}
#topnav-bar .wl-navgroup > *{ pointer-events:auto; }
.wl-navmain{ display:flex; align-items:center; gap:var(--wl-nav-gap, 10px); min-width:0; }
.wl-navtitle{
	flex:0 1 auto; min-width:0; max-width:clamp(160px, 28vw, 420px);
	overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
	font-family:var(--wl-font-copy);
	font-size:20px; font-weight:500; line-height:1.3;
	color:var(--wl-nav-ink);
}
.wl-navarrow,
.wl-navgroup .wl-info-btn,
.wl-navgroup .wl-related-btn{
	display:inline-flex; align-items:center; justify-content:center;
	flex:0 0 auto; width:20px; height:20px; padding:0;
	border:1px solid var(--wl-nav-ink); border-radius:50%;
	background:none; color:var(--wl-nav-ink);
	transition:background-color .15s ease, color .15s ease;
}
.wl-navarrow svg,
.wl-navgroup .wl-info-btn svg,
.wl-navgroup .wl-related-btn svg{ width:10px; height:10px; }
.wl-navarrow{ margin-left:6px; }
.wl-navgroup .wl-fold-btn svg{ transform:rotate(180deg); }
.wl-navarrow:hover,
.wl-navgroup .wl-info-btn:hover,
.wl-navgroup .wl-related-btn:hover,
.wl-navgroup .wl-related-btn[aria-expanded="true"]{ background:var(--wl-nav-accent); border-color:var(--wl-nav-accent); color:#1a1a1a; }
.wl-navtitlebox{ display:flex; align-items:center; gap:var(--wl-nav-gap, 10px); min-width:0; }
.wl-navarrow svg{ transition:transform .15s ease; }
.wl-navarrow[aria-expanded="true"] svg{ transform:rotate(180deg); }
.wl-navgroup button:focus-visible{ outline:3px solid var(--wl-nav-accent); outline-offset:2px; }
.topnav-mobile-wrap .wl-navtitle{ max-width:none; font-size:16px; }
.topnav-mob-brand-wrap .wl-navarrow{
	--wl-nav-ink:#ffffff;
	--wl-nav-accent:#fff551;
	margin-left:10px; pointer-events:auto;
}
.topnav-mob-brand-wrap .wl-navarrow:focus-visible{ outline:3px solid var(--wl-nav-accent); outline-offset:2px; }

@media (pointer:coarse){
	.wl-info-btn,
	.wl-btns > button,
	.wl-navarrow,
	.wl-navgroup .wl-related-btn{ position:relative; }
	.wl-info-btn::before,
	.wl-btns > button::before,
	.wl-navarrow::before,
	.wl-navgroup .wl-related-btn::before{
		content:''; position:absolute; top:50%; left:50%;
		width:48px; height:48px; transform:translate(-50%, -50%);
	}
	.wl-navgroup .wl-info-btn::before{ top:-13px; bottom:-13px; left:-13px; right:calc(var(--wl-nav-gap) / -2 + 1px); width:auto; height:auto; transform:none; }
	.wl-navgroup .wl-related-btn::before{ top:-13px; bottom:-13px; right:-13px; left:calc(var(--wl-nav-gap) / -2 + 1px); width:auto; height:auto; transform:none; }
	.topnav-mob-brand-wrap .wl-navarrow{ margin-left:15px; }
}

body.wlm-has-pro-badge #topnav-bar .wl-navarrow,
body.wlm-has-pro-badge .topnav-mob-brand-wrap .wl-navarrow{ margin-left:8px; }
@media (pointer:coarse){
	body.wlm-has-pro-badge .wl-navarrow::before{ transform:translate(calc(-50% + 7px), -50%); }
}

/* A3 · TITLE */
.wl-edge{ white-space:nowrap; }
.wl-btns{ display:inline-flex; gap:8px; width:0; vertical-align:middle; position:relative; top:-0.11em; } /* the title's icons hang off its first and last word and take no room, so the title stays centred; any number fit; the icons are centred on the capital letters */
.wl-btns > *{ flex:none; }
.wl-btns-start{ justify-content:flex-end; margin:0 8px 0 -8px; }
.wl-btns-end{ margin:0 -8px 0 8px; }
.wl-h1:has(.wl-btns > :nth-child(2)){ padding:0 64px; } /* room for two icons on one side, so a long title wraps instead of overflowing */
.wl-info-btn,
.wl-btns > button{
	display:inline-flex; align-items:center; justify-content:center;
	width:24px; height:24px; padding:0; margin:0; flex-shrink:0;
	border:1px solid var(--wl-line); border-radius:50%;
	background:var(--wl-surface); color:var(--wl-ink); cursor:pointer;
}
.wl-info-btn:hover,
.wl-btns > button:hover{ border-color:var(--wl-ink); }

/* A4 · DOCUMENTATION POPUP */

.wldocument{
	--wldocument-ink:#1b1d1e;
	--wldocument-accent:#1f6f5c;
	--wldocument-focus:#2b6ef6;
	--wldocument-top:#b2ab95;
	--wldocument-surface:#ffffff;
	--wldocument-line:#dcdad2;
	--wldocument-display:var(--wl-font-display);
	--wldocument-body:var(--wl-font-body);
	--wldocument-copy:var(--wl-font-copy);

	width:calc(100% - 32px);
	max-width:1100px;
	height:calc(100vh - 32px);
	height:calc(100dvh - 32px);
	max-height:none;
	margin:auto;
	padding:0;
	border:1px solid var(--wldocument-line);
	border-radius:14px;
	background:var(--wldocument-surface);
	color:var(--wldocument-ink);
	overflow:hidden;
}
[data-wlcustom-dm="dark"] .wldocument{
	--wldocument-ink:var(--wlcustom-dm-text, #e8e6e3);
	--wldocument-accent:#2bb3a8;
	--wldocument-focus:#6d9dff;
	--wldocument-top:var(--wlcustom-dm-text, #e8e6e3);
	--wldocument-surface:#121d30;
	--wldocument-line:#223049;
}
.wldocument[open]{ display:flex; flex-direction:column; }
.wldocument::backdrop{ background:rgba(10, 20, 35, .6); }
html:has(.wldocument[open]){ overflow:hidden; scrollbar-gutter:stable; }
.wldocument-bar{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	flex:none;
	padding:12px 16px 12px 24px;
	border-bottom:1px solid var(--wldocument-line);
}
.wldocument-bar-title{
	font-family:var(--wldocument-display);
	font-size:1.15rem;
	font-weight:600;
	color:var(--wldocument-ink);
}
.wldocument-close{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	flex:none;
	width:36px;
	height:36px;
	padding:0;
	border:1px solid var(--wldocument-line);
	border-radius:50%;
	background:var(--wldocument-surface);
	color:var(--wldocument-ink);
	cursor:pointer;
}
.wldocument-close:hover{ border-color:var(--wldocument-ink); }
.wldocument-close:focus-visible{ outline:3px solid var(--wldocument-focus); outline-offset:2px; }
@media (pointer:coarse){ .wldocument .wldocument-close:focus-visible{ outline:none; } }
.wldocument-body{
	flex:1;
	min-height:0;
	overflow-y:auto;
	overscroll-behavior:contain;
	padding:32px max(16px, calc((100% - 760px) / 2)) 40px;
}
.wldocument h2{
	margin:40px 0 10px;
	font-family:var(--wldocument-body);
	font-size:1.4rem;
	font-weight:600;
	line-height:1.3;
	color:var(--wldocument-ink);
}
.wldocument p, .wldocument li{
	font-family:var(--wldocument-copy);
	font-size:16px;
	font-weight:400;
	line-height:1.7;
	color:var(--wldocument-ink);
}
.wldocument p{ max-width:66ch; margin:0 0 14px; }
.wldocument p:last-child{ margin-bottom:0; }
.wldocument ul, .wldocument ol{
	display:flex;
	flex-direction:column;
	gap:8px;
	max-width:66ch;
	margin:0;
	padding-left:20px;
}
.wldocument ul > li{ position:relative; list-style:none !important; }
.wldocument ul > li::before{
	content:"";
	position:absolute;
	top:0.66em;
	left:-14px;
	width:6px;
	height:6px;
	border-radius:50%;
	background:var(--wldocument-ink);
}
.wldocument .wldocument-steps{
	max-width:none;
	margin:0 0 48px;
	padding:0;
	gap:26px;
	list-style:none;
}
.wldocument .wldocument-intro{ margin:0 0 36px; text-align:center; }
.wldocument .wldocument-intro-title{
	margin:0 auto 14px;
	font-family:var(--wldocument-display);
	font-size:clamp(1.5rem, 4vw, 2rem); font-weight:600; line-height:1.2;
	color:var(--wldocument-ink);
}
.wldocument .wldocument-intro-line{
	margin:0 auto 10px;
	font-family:var(--wldocument-copy);
	font-size:17px; font-weight:600; line-height:1.35;
	color:var(--wldocument-accent);
}
.wldocument .wldocument-intro-text{ margin:0 auto; font-family:var(--wldocument-body); font-size:1rem; line-height:1.6; }
.wldocument-steps > li{ display:flex; align-items:flex-start; gap:18px; }
.wldocument-step-num{
	min-width:2ch;
	font-family:var(--wldocument-display);
	font-size:1.1rem;
	font-weight:400;
	color:var(--wldocument-accent);
}
.wldocument .wldocument-step-title{ margin:0 0 4px; }
.wldocument-top{ display:flex; justify-content:center; margin-top:48px; }
.wldocument-top-btn{
	padding:16px 32px; border:0; background:none; line-height:0; cursor:pointer;
	color:var(--wldocument-top);
	transition:transform 0.15s ease;
}
.wldocument-top-btn:hover{ transform:translateY(-3px); }
.wldocument-top-btn:focus-visible{ outline:3px solid var(--wldocument-focus); outline-offset:2px; }
.wldocument-top-btn svg{ width:88px; height:auto; }

/* PART B · CONVERTER */

/* B1 · LAYOUT AND TONES */
.slider-convert-wrap{
	--slider-convert-gap:24px;
	--slider-convert-edge:#f1e7ff;

	min-height:calc(100vh - 120px);
	display:flex; align-items:flex-start; justify-content:center;
	padding:20px var(--slider-convert-gap) 0;
	background:linear-gradient(to bottom, var(--wl-paper) calc(100% - 80px), #ffffff);
}
.slider-convert-inner{ width:100%; margin:0 auto; }

/* ink: text and numbers · mid: thumb, symbol, focus · soft: slider start · wash: pill and type box */
[data-tone="cyan"]{ --slider-convert-tone-ink:#0369a1; --slider-convert-tone-mid:#29b6e8; --slider-convert-tone-soft:#a5dcf5; --slider-convert-tone-wash:#dcf1fb; }
[data-tone="orange"]{ --slider-convert-tone-ink:#c2410f; --slider-convert-tone-mid:#fb923c; --slider-convert-tone-soft:#fed7aa; --slider-convert-tone-wash:#fff1e2; }
[data-tone="green"]{ --slider-convert-tone-ink:#15803d; --slider-convert-tone-mid:#4ade80; --slider-convert-tone-soft:#bbf7d0; --slider-convert-tone-wash:#dcfce7; }
[data-tone="indigo"]{ --slider-convert-tone-ink:#4338ca; --slider-convert-tone-mid:#818cf8; --slider-convert-tone-soft:#c7d2fe; --slider-convert-tone-wash:#eef2ff; }
[data-tone="red"]{ --slider-convert-tone-ink:#b91c1c; --slider-convert-tone-mid:#f87171; --slider-convert-tone-soft:#fecaca; --slider-convert-tone-wash:#fef2f2; }
[data-tone="slate"]{ --slider-convert-tone-ink:#334155; --slider-convert-tone-mid:#94a3b8; --slider-convert-tone-soft:#e2e8f0; --slider-convert-tone-wash:#f1f5f9; }
[data-tone="chartreuse"]{ --slider-convert-tone-ink:#48700c; --slider-convert-tone-mid:#84cc16; --slider-convert-tone-soft:#ceeba2; --slider-convert-tone-wash:#edf7dc; }
[data-tone="grape"]{ --slider-convert-tone-ink:#7c3aed; --slider-convert-tone-mid:#7c3aed; --slider-convert-tone-soft:#cbb0f8; --slider-convert-tone-wash:#ebe1fc; }
[data-tone="cocoa"]{ --slider-convert-tone-ink:#8b5e3c; --slider-convert-tone-mid:#8b5e3c; --slider-convert-tone-soft:#d1bfb1; --slider-convert-tone-wash:#eee7e2; }
[data-tone="teal"]{ --slider-convert-tone-ink:#187468; --slider-convert-tone-mid:#2dd4bf; --slider-convert-tone-soft:#abeee5; --slider-convert-tone-wash:#e0f9f5; }
[data-tone="royal"]{ --slider-convert-tone-ink:#8a2c99; --slider-convert-tone-mid:#8a2c99; --slider-convert-tone-soft:#d0abd6; --slider-convert-tone-wash:#eddff0; }
[data-tone="hotpink"]{ --slider-convert-tone-ink:#cc006e; --slider-convert-tone-mid:#ff1493; --slider-convert-tone-soft:#ffa1d4; --slider-convert-tone-wash:#ffdcef; }
[data-tone="jade"]{ --slider-convert-tone-ink:#00754b; --slider-convert-tone-mid:#00a86b; --slider-convert-tone-soft:#99dcc4; --slider-convert-tone-wash:#d9f2e9; }
[data-tone="electric"]{ --slider-convert-tone-ink:#005eeb; --slider-convert-tone-mid:#0066ff; --slider-convert-tone-soft:#99c2ff; --slider-convert-tone-wash:#d9e8ff; }
[data-tone="vermilion"]{ --slider-convert-tone-ink:#c22e00; --slider-convert-tone-mid:#ff3d00; --slider-convert-tone-soft:#ffb199; --slider-convert-tone-wash:#ffe2d9; }
[data-tone="lilac"]{ --slider-convert-tone-ink:#7952c0; --slider-convert-tone-mid:#b39ddb; --slider-convert-tone-soft:#e1d8f1; --slider-convert-tone-wash:#f4f0fa; }
[data-tone="rust"]{ --slider-convert-tone-ink:#b83e0b; --slider-convert-tone-mid:#c2410c; --slider-convert-tone-soft:#e7b39e; --slider-convert-tone-wash:#f6e2db; }
[data-tone="navy"]{ --slider-convert-tone-ink:#1e40af; --slider-convert-tone-mid:#1e40af; --slider-convert-tone-soft:#a5b3df; --slider-convert-tone-wash:#dde2f3; }
[data-tone="magenta"]{ --slider-convert-tone-ink:#ac22bd; --slider-convert-tone-mid:#c026d3; --slider-convert-tone-soft:#e6a8ed; --slider-convert-tone-wash:#f6def8; }
[data-tone="tan"]{ --slider-convert-tone-ink:#826426; --slider-convert-tone-mid:#d3b069; --slider-convert-tone-soft:#eddfc3; --slider-convert-tone-wash:#f8f3e8; }
[data-tone="petrol"]{ --slider-convert-tone-ink:#0e707c; --slider-convert-tone-mid:#0f7c8a; --slider-convert-tone-soft:#9fcbd0; --slider-convert-tone-wash:#dbebed; }
[data-tone="scarlet"]{ --slider-convert-tone-ink:#d20023; --slider-convert-tone-mid:#e60026; --slider-convert-tone-soft:#f599a8; --slider-convert-tone-wash:#fbd9de; }
[data-tone="maroon"]{ --slider-convert-tone-ink:#7a1f2b; --slider-convert-tone-mid:#7a1f2b; --slider-convert-tone-soft:#caa5aa; --slider-convert-tone-wash:#ebdddf; }
[data-tone="gold"]{ --slider-convert-tone-ink:#8a5f00; --slider-convert-tone-mid:#e0a800; --slider-convert-tone-soft:#f3dc99; --slider-convert-tone-wash:#faf2d9; }
[data-tone="kelly"]{ --slider-convert-tone-ink:#037712; --slider-convert-tone-mid:#049517; --slider-convert-tone-soft:#9bd5a2; --slider-convert-tone-wash:#d9efdc; }
[data-tone="auto"]{
	--slider-convert-tone-ink:color-mix(in srgb, var(--slider-convert-tone-mid) 55%, #000000);
	--slider-convert-tone-soft:color-mix(in srgb, var(--slider-convert-tone-mid) 40%, #ffffff);
	--slider-convert-tone-wash:color-mix(in srgb, var(--slider-convert-tone-mid) 14%, #ffffff);
}

[data-wlcustom-dm="dark"] .slider-convert-wrap{ --slider-convert-edge:var(--wl-line); background:var(--wl-paper); }
[data-wlcustom-dm="dark"] .slider-convert-wrap [data-tone]{
	--slider-convert-tone-ink:color-mix(in srgb, var(--slider-convert-tone-mid) 70%, #ffffff);
	--slider-convert-tone-soft:color-mix(in srgb, var(--slider-convert-tone-mid) 40%, var(--wl-surface));
	--slider-convert-tone-wash:color-mix(in srgb, var(--slider-convert-tone-mid) 16%, var(--wl-surface));
}

/* B2 · CONTROLS */
.slider-convert-stage{ display:flow-root; }
.slider-convert-controls{ display:flex; flex-direction:row; flex-wrap:wrap; justify-content:center; align-items:center; gap:16px; margin-bottom:24px; }
.slider-convert-switches{ display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:10px; flex:none; max-width:100%; }

.slider-convert-pills-wrap{ display:flex; align-items:center; gap:6px; flex:0 1 auto; min-width:0; max-width:100%; }
.slider-convert-pills-scroll{ position:relative; display:flex; flex:0 1 auto; min-width:0; }
.slider-convert-pills{
	position:relative; display:flex; flex-wrap:nowrap; justify-content:safe center; gap:10px; min-width:0; padding:2px;
	overflow-x:auto; scrollbar-width:none;
}
.slider-convert-pills::-webkit-scrollbar{ display:none; }
.slider-convert-pills > .slider-convert-pill{ flex:none; }
.slider-convert-pills-arrow{
	position:absolute; top:50%; z-index:2; display:grid; width:30px; height:30px; margin:-15px 0 0; padding:0; place-items:center; color:var(--wl-ink);
	background:var(--wl-surface); border:1px solid var(--slider-convert-edge); border-radius:50%;
	box-shadow:0 4px 12px -2px rgb(0 0 0 / 0.25); cursor:pointer;
}
.slider-convert-pills-arrow[hidden]{ display:none; }
.slider-convert-pills-prev{ left:2px; }
.slider-convert-pills-next{ right:2px; }
.slider-convert-restore[hidden],
.slider-convert-pill[hidden]{ display:none; }
.slider-convert-finder{ display:flex; align-items:center; gap:8px; flex:none; }
.slider-convert-wrap .slider-convert-finder input.slider-convert-find{
	box-sizing:border-box !important; width:190px; max-width:100%; height:38px; margin:0; padding:0 20px 0 16px !important; font-family:inherit; font-size:0.875rem; font-weight:500; color:var(--wl-ink);
	-webkit-appearance:none; appearance:none;
	background:var(--wl-surface); border:1px solid var(--slider-convert-edge); border-radius:9999px;
}
.slider-convert-find::-webkit-search-decoration,
.slider-convert-find::-webkit-search-cancel-button{ -webkit-appearance:none; }
.slider-convert-find::placeholder{ color:var(--wl-muted); opacity:1; }
.slider-convert-find:focus{ border-color:var(--wl-ink); box-shadow:0 0 0 3px color-mix(in srgb, var(--wl-ink) 12%, transparent); }
.slider-convert-hide-all{
	height:38px; padding:0 16px; font-family:inherit; font-size:0.875rem; font-weight:600; cursor:pointer; flex:none; white-space:nowrap;
	color:color-mix(in srgb, var(--wl-ink) 80%, var(--wl-surface));
	background:var(--wl-surface); border:1px solid var(--slider-convert-edge); border-radius:9999px;
}
.slider-convert-restore{
	flex:none;
	height:38px; padding:0 16px; font-family:inherit; font-size:0.875rem; font-weight:600; cursor:pointer;
	color:color-mix(in srgb, var(--wl-ink) 80%, var(--wl-surface));
	background:var(--wl-surface); border:1px solid var(--slider-convert-edge); border-radius:9999px;
}

.slider-convert-pill{
	display:inline-flex; align-items:center; gap:10px;
	height:38px; padding:0 18px;
	background:var(--wl-surface); border:1px solid var(--slider-convert-edge); border-radius:9999px;
	font-size:0.875rem; font-weight:600; color:color-mix(in srgb, var(--wl-ink) 80%, var(--wl-surface));
	cursor:pointer;
	transition:background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.slider-convert-pills > .slider-convert-pill{ cursor:grab; user-select:none; -webkit-user-select:none; }
.slider-convert-pills > .slider-convert-dragging{ position:relative; z-index:5; cursor:grabbing; pointer-events:none; box-shadow:0 8px 20px -6px rgb(0 0 0 / 0.3); transition:none; }
.slider-convert-pill input{
	position:absolute; width:1px; height:1px; margin:-1px;
	overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap;
}
.slider-convert-pill:has(input:focus-visible){ outline:3px solid var(--wl-focus); outline-offset:2px; }
.slider-convert-pill[data-tone]:has(input:checked){
	background:var(--slider-convert-tone-wash); border-color:var(--slider-convert-tone-mid); color:var(--slider-convert-tone-ink);
}

.slider-convert-switch{ padding:0 16px; }
.slider-convert-track{
	position:relative; width:40px; height:22px;
	background:var(--wl-line); border-radius:9999px;
	transition:background-color 0.2s;
}
.slider-convert-knob{
	position:absolute; top:2px; left:2px; width:18px; height:18px;
	background:#ffffff; border-radius:50%; box-shadow:0 2px 6px rgb(0 0 0 / 0.2);
	transition:transform 0.2s;
}
.slider-convert-switch:has(input:checked) .slider-convert-track{ background:#6366f1; }
.slider-convert-switch:has(input:checked) .slider-convert-knob{ transform:translateX(18px); }

@media (min-width:769px){
	.slider-convert-controls{ flex-wrap:nowrap; }
	.slider-convert-controls:has(.slider-convert-finder){ flex-wrap:wrap; }
}
@media (min-width:860px){
	.slider-convert-controls{ gap:22px 32px; }
	.slider-convert-switches{ position:relative; }
	.slider-convert-switches::before{
		content:""; position:absolute; left:-16px; top:50%; transform:translateY(-50%);
		width:1px; height:28px; background:var(--wl-line);
	}
}

/* B3 · UNIT CARDS */
.slider-convert-grid{
	display:grid;
	grid-template-columns:repeat(auto-fit, minmax(max(260px, calc((100% - 3 * var(--slider-convert-gap)) / 4 - 1px)), 1fr));
	gap:var(--slider-convert-gap);
}
.slider-convert-card{
	min-width:0; background:var(--wl-surface);
	border:1px solid var(--slider-convert-edge); border-radius:24px;
	box-shadow:0 25px 50px -12px rgb(0 0 0 / 0.15);
	padding:28px;
	transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.slider-convert-card:hover{ transform:translateY(-3px); box-shadow:0 30px 60px -15px rgb(0 0 0 / 0.18); }
.slider-convert-card-head{ margin-bottom:20px; cursor:grab; user-select:none; -webkit-user-select:none; }
.slider-convert-card.slider-convert-dragging{ position:relative; z-index:5; cursor:grabbing; pointer-events:none; transition:none; box-shadow:0 30px 60px -15px rgb(0 0 0 / 0.35); }
.slider-convert-title-line{ display:flex; align-items:center; gap:10px; }
.slider-convert-name{
	white-space:nowrap; min-width:0; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; overscroll-behavior-x:contain;
	margin:0; font-family:inherit; font-size:2rem; font-weight:600; letter-spacing:-0.02em; line-height:1.2;
	color:var(--slider-convert-tone-ink);
}
.slider-convert-name::-webkit-scrollbar{ display:none; }
/* A title too long for its card scrolls sideways; its right end fades while there is more. */
.slider-convert-name.slider-convert-name-more{
	-webkit-mask-image:linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image:linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
.slider-convert-symbol{ margin:2px 0 0; font-size:0.875rem; font-weight:500; color:var(--slider-convert-tone-mid); }

.slider-convert-slider-wrap{ margin-bottom:12px; }
.slider-convert-range-labels{ display:flex; justify-content:space-between; margin-bottom:4px; padding:0 4px; font-size:0.75rem; font-weight:600; }
.slider-convert-ticks{ display:flex; justify-content:space-between; gap:4px; margin-top:4px; padding:0 4px; overflow:hidden; }
.slider-convert-tick{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; font-weight:500; }
.slider-convert-ticks:empty::before{ content:"\00a0"; font-size:10px; } /* keeps the row, so cards stay level */
.slider-convert-range-labels,
.slider-convert-tick,
.slider-convert-note{ color:var(--wl-muted); }

.slider-convert-values{ --slider-convert-read:3.5rem; display:flex; flex-direction:column; gap:14px; margin-top:20px; } /* the one fixed reading height: the number shrinks inside it, so a card never changes size */
.slider-convert-caption{ display:block; margin-bottom:4px; font-size:0.7rem; font-weight:600; color:var(--slider-convert-tone-mid); }
.slider-convert-readout{ display:flex; align-items:baseline; gap:4px; height:var(--slider-convert-read); }
.slider-convert-display{
	font-size:var(--slider-convert-read); font-weight:700; line-height:1; white-space:nowrap;
	font-feature-settings:"ss02"; font-variant-numeric:tabular-nums;
	color:var(--slider-convert-tone-ink);
}
.slider-convert-unit{ font-size:1.5rem; color:var(--slider-convert-tone-mid); white-space:nowrap; }
.slider-convert-input{
	width:100%; padding:12px 16px;
	font-family:inherit; font-size:1.35rem; font-weight:600; color:var(--wl-ink);
	background:var(--slider-convert-tone-wash);
	border:2px solid var(--slider-convert-tone-soft); border-radius:14px;
	outline:none !important;
}
.slider-convert-input:focus,
.slider-convert-input:focus-visible{
	outline:none !important;
	background:var(--wl-surface); border-color:var(--slider-convert-tone-mid);
	box-shadow:0 0 0 4px color-mix(in srgb, var(--slider-convert-tone-mid) 15%, transparent);
}
.slider-convert-note{ margin:16px 0 0; font-size:0.75rem; font-weight:500; text-align:center; }
.slider-convert-note:empty{ display:none; }

.slider-convert-switch:has(.slider-convert-switch-input:disabled){ opacity:0.45; cursor:not-allowed; }

.slider-convert-bw [data-tone]{ --slider-convert-tone-mid:#64748b !important; }
html:not([data-wlcustom-dm="dark"]) .slider-convert-bw [data-tone]{
	--slider-convert-tone-ink:#334155; --slider-convert-tone-soft:#cbd5e1; --slider-convert-tone-wash:#f1f5f9;
}

.slider-convert-simple .slider-convert-symbol,
.slider-convert-simple .slider-convert-range-labels,
.slider-convert-simple .slider-convert-ticks,
.slider-convert-simple .slider-convert-note{ display:none; }
.slider-convert-simple .slider-convert-caption{
	position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.slider-convert-simple .slider-convert-grid{ grid-template-columns:repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap:14px; }
.slider-convert-simple .slider-convert-grid[data-layout="wide"]{ grid-template-columns:repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.slider-convert-simple .slider-convert-card{ padding:14px; border-radius:16px; }
.slider-convert-simple .slider-convert-card-head{ margin-bottom:8px; }
.slider-convert-simple .slider-convert-name{ font-size:1.1rem; }
.slider-convert-simple .slider-convert-slider-wrap{ margin-bottom:0; }
.slider-convert-simple .slider-convert-values{ --slider-convert-read:2rem; gap:8px; margin-top:8px; }
.slider-convert-simple .slider-convert-unit{ font-size:1rem; }
.slider-convert-simple .slider-convert-input{ padding:6px 12px; font-size:1rem; border-radius:10px; }

.slider-convert-stage:has(+ .slider-convert-status) .slider-convert-controls{ margin-bottom:8px; }

.slider-convert-status{ margin:0 0 12px; font-size:0.75rem; font-weight:500; text-align:center; color:var(--wl-muted); }
.slider-convert-status a{ color:inherit; text-decoration:none; }
.slider-convert-param{
	display:inline-flex; align-items:center; gap:8px; height:38px; padding:0 8px 0 18px;
	background:var(--wl-surface); border:1px solid var(--slider-convert-edge); border-radius:9999px;
	font-size:0.875rem; font-weight:600; color:color-mix(in srgb, var(--wl-ink) 80%, var(--wl-surface));
}
.slider-convert-param-input{
	width:6.5em; height:24px; padding:0 8px; font-family:inherit; font-size:0.8rem; font-weight:600; color:var(--wl-ink);
	background:var(--wl-surface); border:1px solid var(--slider-convert-edge); border-radius:8px; outline:none !important;
}
.slider-convert-grid[data-layout="wide"]{ grid-template-columns:repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }

/* B4 · SLIDERS */
.slider-convert-slider{
	-webkit-appearance:none; appearance:none;
	width:100%; height:26px; margin:0;
	background:linear-gradient(to right, var(--slider-convert-tone-soft), var(--slider-convert-tone-mid));
	border-radius:9999px;
	box-shadow:inset 0 2px 4px rgb(0 0 0 / 0.08);
	cursor:pointer; outline:none;
}
.slider-convert-slider:focus-visible{ outline:3px solid var(--wl-focus); outline-offset:6px; }
.slider-convert-slider::-webkit-slider-thumb{
	-webkit-appearance:none;
	width:38px; height:38px; background:#ffffff;
	border:5px solid var(--slider-convert-tone-mid); border-radius:50%;
	box-shadow:0 8px 16px color-mix(in srgb, var(--slider-convert-tone-mid) 35%, transparent);
	cursor:pointer;
}
.slider-convert-slider::-moz-range-thumb{
	box-sizing:border-box; width:38px; height:38px; background:#ffffff;
	border:5px solid var(--slider-convert-tone-mid); border-radius:50%;
	box-shadow:0 8px 16px color-mix(in srgb, var(--slider-convert-tone-mid) 35%, transparent);
	cursor:pointer;
}

/* B5 · BACKGROUND ANIMATION FRAME */
.slider-convert-converter{ position:relative; padding-bottom:96px; }
.slider-convert-converter > :not(.slider-convert-fx-layer){ position:relative; z-index:1; }
.slider-convert-stage > .slider-convert-controls,
.slider-convert-stage > .wl-hero:not(.wl-hero-compact){ position:relative; z-index:1; }
.slider-convert-fx-layer,
.slider-convert-fx-stage{
	position:absolute; inset:-20px calc(-1 * var(--slider-convert-gap)) 0; z-index:0;
	overflow:hidden; pointer-events:none;
}
.slider-convert-fx-layer{
	bottom:auto;
	height:max(calc(100% + 20px), calc(100vh - 60px)); height:max(calc(100% + 20px), calc(100svh - 60px));
	-webkit-mask-image:linear-gradient(to bottom, #000 calc(100% - 80px), transparent);
	mask-image:linear-gradient(to bottom, #000 calc(100% - 80px), transparent);
}
.slider-convert-fx-layer > div,
.slider-convert-fx-stage > div{ position:absolute; inset:0; }
.slider-convert-stage:has(> .wl-hero-compact){ --slider-convert-scene-fit:0.75; }
.slider-convert-converter:not(.slider-convert-fx-on) :is(.slider-convert-fx-layer, .slider-convert-fx-stage){ display:none; }
.slider-convert-fx-paused :is(.slider-convert-fx-layer, .slider-convert-fx-stage) *,
.slider-convert-fx-paused :is(.slider-convert-fx-layer, .slider-convert-fx-stage) *::before{ animation-play-state:paused; }

/* B6 · SMALL SCREENS AND REDUCED MOTION */
@media (max-width:768px){
	.slider-convert-wrap{ --slider-convert-gap:10px; padding:38px var(--slider-convert-gap) 0; } /* same space as under the trust line */
	.slider-convert-controls{ gap:10px; margin-bottom:12px; }
	.slider-convert-pills-wrap{ flex:1 1 100%; }
	.slider-convert-pills{ gap:6px; }
	.slider-convert-restore{ height:32px; padding:0 12px; font-size:0.7rem; }
	.slider-convert-pill{ height:32px; padding:0 12px; font-size:0.7rem; }
	.slider-convert-switch{ gap:6px; height:38px; padding:0 12px; line-height:1.1; }
	/* More than two switches: the search row and the switches share one grid, so the search row matches the two columns. */
	.slider-convert-controls:has(> .slider-convert-switches > :nth-child(3)){ display:grid; grid-template-columns:minmax(0, 1fr) repeat(2, minmax(0, max-content)) minmax(0, 1fr); gap:10px 0; }
	.slider-convert-controls:has(> .slider-convert-switches > :nth-child(3)) > .slider-convert-pills-wrap{ grid-column:1 / -1; contain:inline-size; }
	.slider-convert-controls:has(> .slider-convert-switches > :nth-child(3)) > .slider-convert-finder{ grid-column:2 / 4; contain:inline-size; }
	.slider-convert-wrap .slider-convert-controls:has(> .slider-convert-switches > :nth-child(3)) .slider-convert-finder input.slider-convert-find{ flex:1 1 auto; width:auto; min-width:0; }
	.slider-convert-controls > .slider-convert-switches:has(> :nth-child(3)){ display:contents; }
	.slider-convert-switches:has(> :nth-child(3)) > .slider-convert-switch{ justify-content:space-between; gap:12px; min-width:0; }
	.slider-convert-switches:has(> :nth-child(3)) > .slider-convert-switch:nth-child(odd){ grid-column:2; }
	.slider-convert-switches:has(> :nth-child(3)) > .slider-convert-switch:nth-child(even){ grid-column:3; margin-left:10px; }
	.slider-convert-switches:has(> :nth-child(3)) > .slider-convert-param{ grid-column:2 / 4; }

	.slider-convert-grid{ grid-template-columns:repeat(2, 1fr); }
	.slider-convert-card{ padding:12px; border-radius:14px; }
	.slider-convert-card-head{ margin-bottom:8px; }
	.slider-convert-name{ font-size:1rem; }
	.slider-convert-slider-wrap{ margin-bottom:8px; }
	.slider-convert-range-labels{ font-size:0.6rem; }
	.slider-convert-slider{ height:18px; }
	.slider-convert-slider::-webkit-slider-thumb{ width:22px; height:22px; border-width:3px; }
	.slider-convert-slider::-moz-range-thumb{ width:22px; height:22px; border-width:3px; }
	.slider-convert-tick{ font-size:7px; }
	.slider-convert-ticks:empty::before{ font-size:7px; }
	.slider-convert-values{ --slider-convert-read:1.5rem; gap:6px; margin-top:8px; }
	.slider-convert-unit{ font-size:0.85rem; }
	.slider-convert-input{ font-size:0.8rem; padding:6px 8px; border-radius:8px; }
	.slider-convert-note{ font-size:0.55rem; margin:6px 0 0; }
	.slider-convert-grid[data-layout="wide"]{ grid-template-columns:1fr; }
	.slider-convert-simple .slider-convert-grid,
	.slider-convert-simple .slider-convert-grid[data-layout="wide"]{ grid-template-columns:repeat(2, 1fr); gap:10px; }
	.slider-convert-simple .slider-convert-card{ padding:10px; }
	.slider-convert-simple .slider-convert-values{ --slider-convert-read:1.35rem; }
}
@media (prefers-reduced-motion:reduce){
	.slider-convert-fx-layer *,
	.slider-convert-fx-layer *::before,
	.slider-convert-fx-stage *{ animation:none !important; transition:none !important; }
}
