/* Palette and type follow cutwise.com (cutwise-frontend src/cutwise/styles/variables.css). */
@font-face {
	font-display: swap;
	font-family: 'IBM Plex Sans';
	font-style: normal;
	font-weight: 100 700;
	src: url('../fonts/IBMPlexSansVar-Roman.woff2') format('woff2');
}

:root {
	--cw-bg: #000000;
	--cw-bg-alt: #111313;
	--cw-surface: #191b1b;
	--cw-neutral: #272b2b;
	--cw-neutral-hover: #353b3b;
	--cw-border: #2c3030;
	--cw-fg: #e3e3e3;
	--cw-fg-bold: #ffffff;
	--cw-fg-muted: #a8a8a8;
	--cw-fg-light: #8a8a8a;
	--cw-link: #5bbaff;
	--cw-warn: #ffb35b;
	--cw-primary: #3a65ff;
	--cw-primary-dark: #2f5af3;
	--cw-radius: 3px;
	--cw-font: 'IBM Plex Sans', sans-serif;
	--cw-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

html {
	color-scheme: dark;
}

body {
	background: var(--cw-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body, input, select, textarea {
	color: var(--cw-fg);
	font-family: var(--cw-font);
	font-size: 16px;
	line-height: 1.65;
}

header p, header p time, header p small, header.authors,
#header .logo, #header .slogan, #menu ul,
input[type=submit], input[type=reset], input[type=button], button, .button {
	font-family: var(--cw-font);
}

code, pre, kbd, samp {
	font-family: var(--cw-mono);
}

/* Typography */

h1, h2, h3, h4, h5, h6 {
	color: var(--cw-fg-bold);
	font-family: var(--cw-font);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

h1 {
	font-size: 2.5em;
	font-weight: 700;
	letter-spacing: -0.02em;
}

h2 {
	font-size: 1.6em;
}

h3 {
	font-size: 1.25em;
}

strong, b, label, table th {
	color: var(--cw-fg-bold);
	font-weight: 600;
}

a {
	border-bottom: 0;
	color: var(--cw-link);
	text-decoration: underline;
	text-decoration-color: rgba(91, 186, 255, 0.35);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
	color: var(--cw-fg-bold) !important;
	text-decoration-color: currentColor;
}

blockquote {
	border-left-color: var(--cw-primary);
	color: var(--cw-fg-muted);
}

code {
	background: var(--cw-surface);
	border: solid 1px var(--cw-border);
	border-radius: var(--cw-radius);
	color: var(--cw-fg);
	font-size: 0.875em;
}

pre, pre[class*=language-] {
	border: solid 1px var(--cw-border);
	border-radius: var(--cw-radius);
}

pre code {
	border: 0;
}

hr, ul.alt li, ul.contact li, .mini-posts article, #main > .inner > section {
	border-color: var(--cw-border);
}

/* Header */

#header {
	align-items: center;
	border-bottom: solid 1px var(--cw-border);
	gap: 0.45em;
	padding: 2.25em 0 1.25em 0;
}

#header > a:first-child {
	display: flex;
	text-decoration: none;
}

#header > a:first-child img {
	display: block;
	height: 26px !important;
	margin: 0;
	width: auto !important;
}

#header a.logo {
	color: var(--cw-fg-muted);
	flex: 0 0 auto;
	/* Pixels, because the wordmark beside it is a fixed 26px. */
	font-size: 28px;
	line-height: 26px;
	text-decoration: none;
}

#header a.logo strong {
	color: inherit;
	font-weight: 500;
	position: relative;
	/* Puts the label on the baseline of the Cutwise wordmark. */
	top: 4px;
}

#header a.logo:hover {
	color: var(--cw-fg-bold) !important;
}

#header h1 {
	font-size: inherit;
	margin: 0;
}

@media screen and (max-width: 736px) {
	#header {
		flex-direction: row;
		justify-content: center;
		padding-top: 6em;
	}

	#header a.logo {
		margin: 0;
	}
}

header.major > h1, header.major > h2, header.major > h3,
header.major > h4, header.major > h5, header.major > h6 {
	border-bottom: 0;
	padding-bottom: 0;
}

/* Sidebar */

#sidebar {
	background-color: var(--cw-bg-alt);
	border-right: solid 1px var(--cw-border);
	font-size: 15px;
}

#sidebar > .inner > * {
	border-bottom: solid 1px var(--cw-border);
	margin: 0 0 1.75em 0;
	padding: 0 0 1.75em 0;
}

#sidebar header.major {
	margin-bottom: 0.75em;
}

#sidebar header.major h2 {
	color: var(--cw-fg-light);
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.08em;
	margin: 0;
	text-transform: uppercase;
}

#sidebar p, #sidebar li {
	color: var(--cw-fg-muted);
	font-size: 0.9em;
	line-height: 1.55;
}

#sidebar .anchorjs-link {
	display: none;
}

#menu > header.major {
	display: none;
}

#menu ul {
	color: var(--cw-fg);
	font-size: 1em;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
}

#menu ul li {
	font-size: 1em;
}

#menu > ul > li {
	border-top: 0;
	line-height: 1.4;
}

#menu ul li a {
	border-radius: var(--cw-radius);
	color: inherit;
	padding: 0.45em 0.75em;
	text-decoration: none;
	width: calc(100% - 2.25em);
}

#menu > ul > li > a {
	color: var(--cw-fg-bold);
	font-weight: 500;
}

#menu ul li a:hover {
	background: var(--cw-surface);
	color: var(--cw-fg-bold) !important;
}

#menu > ul > li > ul,
#menu > ul > li > ul ul {
	border-left: solid 1px var(--cw-border);
	margin: 0.15em 0 0.5em 0.75em;
	padding-left: 0.5em;
}

/* Closed from the first paint: main.js collapses submenus only after the whole menu has rendered open. */
#menu ul li .dropdown:not(.active) + .submenu {
	display: none;
}

#menu > ul > li > ul a, #menu > ul > li > ul span {
	color: var(--cw-fg-muted);
	font-size: 0.93em;
}

#menu > ul > li > ul > li {
	margin: 0;
	padding: 0;
}

#menu ul li .dropdown:before {
	color: var(--cw-fg-light);
	font-size: 0.7em;
	line-height: 2.9em;
	width: 2.9em;
}

#menu ul li .dropdown:hover:before {
	color: var(--cw-fg-bold);
}

#menu ul li.current > a {
	background: var(--cw-neutral);
	box-shadow: inset 2px 0 0 var(--cw-primary);
	color: var(--cw-fg-bold) !important;
	font-weight: 500;
}

#sidebar .toggle {
	background: transparent;
	color: var(--cw-fg-muted);
}

#sidebar .toggle:hover {
	color: var(--cw-fg-bold) !important;
}

#sidebar .toggle:before {
	font-size: 1.25rem;
}

#sidebar .toggle:after {
	background: var(--cw-neutral);
}

#footer .copyright, ::-webkit-input-placeholder, ::-moz-placeholder {
	color: var(--cw-fg-light) !important;
}

/* Controls */

input[type=submit], input[type=reset], input[type=button], button, .button {
	background-color: var(--cw-neutral);
	border-radius: var(--cw-radius);
	box-shadow: none;
	color: var(--cw-fg-bold) !important;
	font-size: 0.875em;
	font-weight: 500;
	letter-spacing: normal;
	text-decoration: none;
	text-transform: none;
}

input[type=submit]:hover, input[type=reset]:hover, input[type=button]:hover, button:hover, .button:hover {
	background-color: var(--cw-neutral-hover);
}

input[type=submit].primary, input[type=reset].primary, input[type=button].primary,
button.primary, .button.primary, #sidebar #login .button,
ul.pagination li > .page.active, #back-to-top, .box.primary, .archive_items, .score {
	background-color: var(--cw-primary);
	color: var(--cw-fg-bold) !important;
}

input[type=submit].primary:hover, input[type=reset].primary:hover, input[type=button].primary:hover,
button.primary:hover, .button.primary:hover, #sidebar #login .button:hover,
ul.pagination li > .page.active:hover {
	background-color: var(--cw-primary-dark);
}

#sidebar #login .button {
	align-items: center;
	box-shadow: 0 4px 14px -4px var(--cw-primary);
	display: flex;
	font-size: 1rem;
	font-weight: 600;
	gap: 0.5em;
	height: 3.25em;
	justify-content: center;
	line-height: 1;
	padding-bottom: 0;
	/* IBM Plex Sans centered by its line box leaves the capitals 0.1em high. */
	padding-top: 0.2em;
	transition: background-color 0.2s, box-shadow 0.2s, translate 0.2s;
}

#sidebar #login .button:hover {
	box-shadow: 0 6px 18px -4px var(--cw-primary);
	translate: 0 -1px;
}

input[type=text], input[type=password], input[type=email], input[type=tel],
input[type=search], input[type=url], select, textarea,
select option, input[type=checkbox] + label:before, input[type=radio] + label:before {
	background: var(--cw-neutral);
	border-color: var(--cw-border);
	border-radius: var(--cw-radius);
	color: var(--cw-fg-bold);
}

input[type=checkbox] + label, input[type=radio] + label {
	color: var(--cw-fg);
}

input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=tel]:focus,
input[type=search]:focus, input[type=url]:focus, select:focus, textarea:focus,
input[type=checkbox]:focus + label:before, input[type=radio]:focus + label:before {
	border-color: var(--cw-primary);
	box-shadow: 0 0 0 1px var(--cw-primary);
}

input[type=checkbox]:checked + label:before, input[type=radio]:checked + label:before {
	background: var(--cw-primary);
	border-color: var(--cw-primary);
}

/* Tables and boxes */

table {
	font-size: 0.95em;
}

table tbody tr, table thead, table tfoot, table.alt tbody tr td, .box {
	border-color: var(--cw-border);
}

table tbody tr:nth-child(2n+1), .box.light, .responsive tr td:first-child,
ul.blog-items li:nth-child(even) {
	background-color: var(--cw-surface);
}

.posts article::before, .posts article::after {
	background: var(--cw-border);
}

.box.light, .box.light h1, .box.light h2, .box.light h3,
.box.light h4, .box.light h5, .box.light h6 {
	color: var(--cw-fg-bold) !important;
}

/* Pricing */

.price-cards {
	display: grid;
	gap: 1em;
	grid-template-columns: repeat(auto-fill, minmax(17em, 1fr));
	margin: 2em 0;
}

#main a.price-card {
	background: var(--cw-surface);
	border: solid 1px var(--cw-border);
	border-radius: 6px;
	color: var(--cw-fg);
	display: flex;
	flex-direction: column;
	gap: 0.75em;
	padding: 1.5em;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

#main a.price-card:hover {
	border-color: var(--cw-primary);
	color: var(--cw-fg) !important;
	transform: translateY(-2px);
}

.price-card__head {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

.price-card__title {
	color: var(--cw-fg-bold);
	font-size: 1.15em;
	font-weight: 600;
}

.price-card__price {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
}

.price-card__from, .price-card__unit {
	color: var(--cw-fg-muted);
	font-size: 0.9em;
}

.price-card__unit {
	flex-basis: 100%;
}

.price-card__amount {
	color: var(--cw-fg-bold);
	font-size: 2.25em;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
}

.price-card__summary {
	color: var(--cw-fg-muted);
	flex-grow: 1;
	font-size: 0.9em;
	line-height: 1.5;
}

.price-card__more {
	color: var(--cw-link);
	font-size: 0.9em;
	font-weight: 500;
}

.pricing #main table {
	border-collapse: separate;
	border: solid 1px var(--cw-border);
	border-radius: 6px;
	border-spacing: 0;
	overflow: hidden;
}

.pricing #main table thead {
	background: var(--cw-surface);
	border-bottom: 0;
}

.pricing #main table th {
	color: var(--cw-fg-muted);
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: 0.05em;
	padding: 0.9em 1em;
	text-transform: uppercase;
}

.pricing #main table tbody tr {
	background: transparent;
	border: 0;
}

.pricing #main table td {
	border-top: solid 1px var(--cw-border);
	padding: 0.9em 1em;
	vertical-align: top;
}

.pricing #main table tbody tr:hover {
	background: var(--cw-surface);
}

.pricing #main td.cw-price {
	color: var(--cw-fg-bold);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.pricing #main td.cw-price--short {
	white-space: nowrap;
}

.pricing #main tr.cw-total td {
	background: rgba(58, 101, 255, 0.12);
	border-top: solid 1px var(--cw-primary);
	color: var(--cw-fg-bold);
}

.pricing #main h2 ~ h2 {
	border-top: solid 1px var(--cw-border);
	margin-top: 2em;
	padding-top: 1.25em;
}

/* Pricing landing */

.pricing {
	--pl-blue: #5bbaff;
	--pl-amber: #f5b94a;
	--pl-violet: #a98bff;
}

.pl-hero {
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(58, 101, 255, 0.28), transparent 55%),
		radial-gradient(90% 120% at 100% 100%, rgba(169, 139, 255, 0.16), transparent 60%),
		var(--cw-bg-alt);
	border: solid 1px var(--cw-border);
	border-radius: 12px;
	margin: 0 0 3em;
	padding: 2.5em 2.5em 2em;
}

#main .pl-hero__title {
	color: var(--cw-fg-bold);
	font-size: 2em;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 0.5em;
}

#main .pl-hero__lead {
	color: var(--cw-fg);
	font-size: 1.1em;
	line-height: 1.6;
	margin: 0 0 1.75em;
	max-width: 40em;
}

#main .pl-facts {
	display: grid;
	gap: 0.75em;
	grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
	list-style: none;
	margin: 0 0 1.5em;
	padding: 0;
}

#main .pl-fact {
	background: rgba(255, 255, 255, 0.04);
	border: solid 1px var(--cw-border);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 0.2em;
	padding: 0.9em 1.1em;
}

.pl-fact__title {
	color: var(--cw-fg-bold);
	font-weight: 600;
}

.pl-fact__text, #main .pl-hero__note {
	color: var(--cw-fg-muted);
	font-size: 0.85em;
}

#main .pl-hero__note {
	margin: 0;
}

.pl-device {
	background: var(--cw-bg-alt);
	border: solid 1px var(--cw-border);
	border-left: solid 3px var(--pl-amber);
	border-radius: 0 8px 8px 0;
	margin: 0 0 3em;
	padding: 1.2em 1.5em;
}

#main .pl-device__title {
	font-size: 1.15em;
	margin: 0 0 0.4em;
}

#main .pl-device__text {
	color: var(--cw-fg);
	margin: 0 0 0.6em;
}

#main .pl-device__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.5em;
	margin: 0;
}

.pl-group {
	margin: 0 0 3em;
}

.pl-group, .pp-hero {
	--pl-tone: var(--pl-blue);
}

.pl-group--amber {
	--pl-tone: var(--pl-amber);
}

.pl-group--violet {
	--pl-tone: var(--pl-violet);
}

.pl-group__head {
	align-items: center;
	display: flex;
	gap: 1em;
}

.pl-group__icon {
	align-items: center;
	background: color-mix(in srgb, var(--pl-tone) 14%, transparent);
	border: solid 1px color-mix(in srgb, var(--pl-tone) 35%, transparent);
	border-radius: 10px;
	color: var(--pl-tone);
	display: flex;
	flex: none;
	height: 3em;
	justify-content: center;
	width: 3em;
}

.pl-group__icon svg {
	fill: none;
	height: 1.5em;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
	width: 1.5em;
}

.pricing #main h2.pl-group__title, .pricing #main h2.pl-section-title {
	border: 0;
	margin: 0;
	padding: 0;
}

#main .pl-group__text {
	color: var(--cw-fg-muted);
	margin: 0.15em 0 0;
}

.pl-group .price-cards {
	margin: 1.25em 0 0;
}

#main .pl-group a.price-card {
	border-top: solid 2px color-mix(in srgb, var(--pl-tone) 55%, transparent);
}

#main .pl-group a.price-card:hover {
	border-color: var(--pl-tone);
}

#main .pl-group .price-card__amount {
	font-size: 1.9em;
}

.pl-pay {
	border-top: solid 1px var(--cw-border);
	margin: 0 0 3em;
	padding-top: 2em;
}

#main .pl-steps {
	display: grid;
	gap: 1em;
	grid-template-columns: repeat(auto-fit, minmax(14em, 1fr));
	list-style: none;
	margin: 1.25em 0;
	padding: 0;
}

#main .pl-step {
	background: var(--cw-surface);
	border: solid 1px var(--cw-border);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 0.35em;
	padding: 1.25em;
}

.pl-step__number {
	align-items: center;
	background: var(--cw-primary);
	border-radius: 50%;
	color: #fff;
	display: flex;
	font-size: 0.85em;
	font-weight: 600;
	height: 1.9em;
	justify-content: center;
	margin-bottom: 0.4em;
	width: 1.9em;
}

.pl-step__title {
	color: var(--cw-fg-bold);
	font-weight: 600;
}

.pl-step__text {
	color: var(--cw-fg-muted);
	font-size: 0.9em;
	line-height: 1.5;
}

#main .pl-bonus {
	background: rgba(58, 101, 255, 0.1);
	border-left: solid 3px var(--cw-primary);
	border-radius: 0 6px 6px 0;
	color: var(--cw-fg);
	margin: 0;
	padding: 0.9em 1.2em;
}

.pl-cta {
	align-items: center;
	background:
		radial-gradient(100% 160% at 100% 0%, rgba(58, 101, 255, 0.3), transparent 60%),
		var(--cw-bg-alt);
	border: solid 1px var(--cw-border);
	border-radius: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25em 2em;
	justify-content: space-between;
	padding: 2em 2.5em;
}

#main .pl-cta__title {
	color: var(--cw-fg-bold);
	font-size: 1.35em;
	font-weight: 600;
	margin: 0 0 0.25em;
}

#main .pl-cta__text {
	color: var(--cw-fg-muted);
	margin: 0;
}

#main a.pl-cta__button {
	flex: none;
}

@media screen and (max-width: 736px) {
	.pl-hero, .pl-cta {
		padding: 1.5em 1.25em;
	}

	#main .pl-hero__title {
		font-size: 1.6em;
	}
}

/* Product price pages */

.pp-hero {
	background:
		radial-gradient(110% 150% at 0% 0%, color-mix(in srgb, var(--pl-tone) 22%, transparent), transparent 55%),
		var(--cw-bg-alt);
	border: solid 1px var(--cw-border);
	border-radius: 12px;
	margin: 0 0 2.5em;
	padding: 1.75em 2.5em 2.25em;
}

#main a.pp-back {
	color: var(--cw-fg-muted);
	display: inline-block;
	font-size: 0.85em;
	margin-bottom: 1.5em;
	text-decoration: none;
}

#main a.pp-back:hover {
	color: var(--cw-fg-bold) !important;
}

#main .pp-eyebrow {
	align-items: center;
	color: var(--pl-tone);
	display: flex;
	font-size: 0.8em;
	font-weight: 600;
	gap: 0.75em;
	letter-spacing: 0.06em;
	margin: 0 0 0.75em;
	text-transform: uppercase;
}

.pl-group__icon.pp-eyebrow__icon {
	border-radius: 8px;
	font-size: 0.85em;
	height: 2.5em;
	width: 2.5em;
}

#main h1.pp-title {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 2.5em;
	gap: 0.4em;
	letter-spacing: -0.02em;
	margin: 0 0 0.4em;
}

#main h1.pp-title .page-list__badge {
	font-size: 0.3em;
	letter-spacing: 0.05em;
}

#main .pp-lead {
	color: var(--cw-fg);
	font-size: 1.1em;
	line-height: 1.6;
	margin: 0 0 1em;
	max-width: 42em;
}

#main .pp-requires {
	background: rgba(255, 255, 255, 0.05);
	border: solid 1px var(--cw-border);
	border-radius: 999px;
	color: var(--cw-fg-muted);
	display: inline-block;
	font-size: 0.85em;
	margin: 0 0 1em;
	padding: 0.35em 0.9em;
}

.pp-highlights {
	display: grid;
	gap: 0.75em;
	grid-template-columns: repeat(auto-fit, minmax(10em, 1fr));
	margin-top: 1em;
}

.pp-highlight {
	background: rgba(255, 255, 255, 0.04);
	border: solid 1px var(--cw-border);
	border-top: solid 2px color-mix(in srgb, var(--pl-tone) 60%, transparent);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 0.3em;
	padding: 1em 1.15em;
}

.pp-highlight__label {
	color: var(--cw-fg-muted);
	font-size: 0.85em;
}

.pp-highlight__price {
	color: var(--cw-fg-bold);
	font-size: 1.75em;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.pp-highlight__unit {
	color: var(--cw-fg-muted);
	font-size: 0.8em;
}

.pp-body {
	margin-bottom: 3em;
}

.pricing #main .pp-body h2:first-child {
	margin-top: 0;
}

.pricing #main .pp-body h3 {
	color: var(--cw-fg-muted);
	font-size: 0.85em;
	letter-spacing: 0.06em;
	margin-top: 1.75em;
	text-transform: uppercase;
}

.pricing #main .pp-body td:last-child {
	color: var(--cw-fg-bold);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.pricing #main .pp-body tbody tr:has(strong) td {
	background: rgba(58, 101, 255, 0.12);
	border-top: solid 1px var(--cw-primary);
	color: var(--cw-fg-bold);
}

.pricing #main .pp-body blockquote {
	background: rgba(58, 101, 255, 0.1);
	border-left: solid 3px var(--cw-primary);
	border-radius: 0 6px 6px 0;
	color: var(--cw-fg);
	font-style: normal;
	margin: 1.25em 0;
	padding: 0.9em 1.2em;
}

.pricing #main .pp-body blockquote p:last-child, .pricing #main .pp-body blockquote ul:last-child {
	margin-bottom: 0;
}

@media screen and (max-width: 736px) {
	.pp-hero {
		padding: 1.25em 1.25em 1.5em;
	}

	#main h1.pp-title {
		font-size: 1.9em;
	}
}

/* The theme leaves content images unconstrained, so a wide screenshot overflows the text column. */
#main img {
	max-width: 100%;
	height: auto;
}

#main a.cw-zoom > img {
	cursor: zoom-in;
}

/* Reading column: about 75 characters a line. Tables and code may scroll sideways instead. */
#main .page-body, #main header.main {
	max-width: 46rem;
}

/* main.css styles every `header p` with !important, so these override it the same way. */
#main header.main p.page-lead {
	color: var(--cw-fg-muted);
	font-size: 1.15em !important;
	letter-spacing: normal;
	line-height: 1.5;
	margin: 0.75em 0 0 !important;
	text-transform: none;
}

#main header.main p.page-audience {
	border: solid 1px currentColor;
	border-radius: var(--cw-radius);
	display: inline-block;
	font-size: 0.8em !important;
	font-weight: 600;
	letter-spacing: normal;
	margin: 0.75em 0 0 !important;
	padding: 0.15em 0.6em;
	text-transform: none;
}

#main .page-audience--internal {
	color: var(--cw-warn);
}

#main .page-audience--partners {
	color: var(--cw-link);
}

#breadcrumbs {
	color: var(--cw-fg-light);
	font-size: 0.85em;
	margin: 0 0 0.5em;
}

#breadcrumbs a {
	color: var(--cw-fg-muted);
	text-decoration: none;
}

#breadcrumbs > span + span::before {
	content: '/';
	margin: 0 0.5em;
}

#main .page-toc {
	border-left: solid 2px var(--cw-border);
	margin: 1.5em 0 2em;
	padding: 0.25em 0 0.25em 1em;
}

#main .page-toc__title {
	color: var(--cw-fg-light);
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: 0.05em;
	margin: 0 0 0.25em;
	text-transform: uppercase;
}

#main .page-toc ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#main .page-toc li {
	padding: 0.1em 0;
}

#main .page-toc a {
	text-decoration: none;
}

/* Two callouts only: NOTE for context, WARNING for money or irreversible steps. */
:root {
	--gh-alert-note-border-color: var(--cw-link);
	--gh-alert-note-title-color: var(--cw-link);
	--gh-alert-warning-border-color: var(--cw-warn);
	--gh-alert-warning-title-color: var(--cw-warn);
}

#main .md-alert {
	background: var(--cw-bg-alt);
	border-radius: 0 var(--cw-radius) var(--cw-radius) 0;
	margin: 1.5em 0;
	padding: 0.9em 1.2em;
}

#search input[type=text] {
	background: var(--cw-surface);
	border: solid 1px var(--cw-border);
	border-radius: var(--cw-radius);
	color: var(--cw-fg);
}

#sidebar #search {
	background: var(--cw-bg-alt);
}

/* Motion guideline layer: product windows, numbered steps, hero. Tokens and sizes follow motion-guidelines.md. */

:root {
	--cw-ease-out: cubic-bezier(.33, 1, .68, 1);
	--cw-ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

#main header.main h1::after {
	background: var(--cw-primary);
	border-radius: 2px;
	content: '';
	display: block;
	height: 4px;
	margin-top: 0.45em;
	transform-origin: left center;
	width: 72px;
}

/* Product window around a screenshot. */

#main figure.cw-window {
	background: var(--cw-bg-alt);
	border: solid 1px var(--cw-border);
	border-radius: 10px;
	margin: 1.25em 0 1.75em;
	overflow: hidden;
}

#main .cw-window__bar {
	align-items: center;
	background: var(--cw-surface);
	border-bottom: solid 1px var(--cw-border);
	display: flex;
	gap: 6px;
	height: 38px;
	padding: 0 14px;
}

#main .cw-window__bar > i {
	background: var(--cw-neutral-hover);
	border-radius: 50%;
	height: 10px;
	width: 10px;
}

#main .cw-window__url {
	background: var(--cw-bg-alt);
	border-radius: 13px;
	color: var(--cw-fg-muted);
	font-family: var(--cw-mono);
	font-size: 12px;
	line-height: 26px;
	margin-left: 12px;
	overflow: hidden;
	padding: 0 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#main figure.cw-window a.cw-zoom {
	border: 0;
	display: block;
}

#main figure.cw-window img {
	border: 0;
	border-radius: 0;
	display: block;
	height: auto;
	margin: 0;
	max-width: 100%;
	width: 100%;
}

#main .cw-window__caption {
	border-top: solid 1px var(--cw-border);
	color: var(--cw-fg-muted);
	font-size: 0.85em;
	line-height: 1.45;
	padding: 0.6em 1em;
}

/* Numbered steps: callout circles joined by a track line. */

#main .page-body > ol {
	counter-reset: cw-step;
	list-style: none;
	padding-left: 2.75em;
}

#main .page-body > ol > li {
	counter-increment: cw-step;
	padding-left: 0;
	position: relative;
}

#main .page-body > ol > li + li {
	margin-top: 0.6em;
}

#main .page-body > ol > li::before {
	align-items: center;
	background: var(--cw-primary);
	border-radius: 50%;
	box-shadow: 0 0 0 3px var(--cw-bg);
	color: #ffffff;
	content: counter(cw-step);
	display: flex;
	font-family: var(--cw-mono);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	height: 26px;
	justify-content: center;
	left: -2.75em;
	position: absolute;
	top: 0.05em;
	width: 26px;
	z-index: 1;
}

#main .page-body > ol > li:not(:last-child)::after {
	background: var(--cw-border);
	bottom: -0.6em;
	content: '';
	left: calc(-2.75em + 12px);
	position: absolute;
	top: 26px;
	width: 2px;
}

#main .page-toc__title {
	font-size: 12px;
	letter-spacing: 0.08em;
}

#main table {
	font-variant-numeric: tabular-nums;
}

/* Home hero, after the end card of a feature film. */

#main .cw-hero {
	margin: 0 0 3em;
	max-width: 46rem;
	padding: 3.5em 0 2.5em;
	position: relative;
}

#main .cw-hero__title {
	font-size: 2.6em;
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
}

#main .cw-hero__title::after {
	background: var(--cw-primary);
	border-radius: 3px;
	content: '';
	display: block;
	height: 6px;
	margin-top: 0.4em;
	transform-origin: left center;
	width: 120px;
}

/* Cut-shape outlines behind every page; custom.js draws them and fades them under the text column. */

.cw-backdrop {
	inset: 0;
	pointer-events: none;
	position: fixed;
	z-index: -1;
}

.cw-backdrop svg {
	display: block;
	height: 100%;
	width: 100%;
}

@media print {
	.cw-backdrop {
		display: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.cw-drift {
		animation: cw-drift var(--cw-d) var(--cw-ease-in-out) infinite alternate;
		transform-box: fill-box;
		transform-origin: center;
	}
}

@keyframes cw-drift {
	from { translate: var(--cw-dx) var(--cw-dy); }
	to { translate: calc(var(--cw-dx) * -1) calc(var(--cw-dy) * -1); }
}

@media screen and (max-width: 736px) {
	#main .cw-hero__title {
		font-size: 2em;
	}

	#main .page-body > ol {
		padding-left: 2.4em;
	}

	#main .page-body > ol > li::before {
		left: -2.4em;
	}

	#main .page-body > ol > li:not(:last-child)::after {
		left: calc(-2.4em + 12px);
	}
}

#main .cw-pending {
	opacity: 0;
}

#main .page-body > ol.cw-pending {
	opacity: 1;
}

#main .page-body > ol.cw-pending > li::before {
	scale: 0;
}

@media (prefers-reduced-motion: no-preference) {
	#main header.main h1::after, #main .cw-hero__title::after {
		animation: cw-draw 700ms var(--cw-ease-out) 250ms both;
	}

	#main .page-body > ol > li.cw-pop::before {
		animation: cw-pop 450ms var(--cw-ease-out) var(--cw-delay, 0ms) both;
	}
}

@keyframes cw-draw {
	from { scale: 0 1; }
	to { scale: 1 1; }
}

@keyframes cw-pop {
	0% { opacity: 0; scale: 0.6; }
	70% { opacity: 1; scale: 1.06; }
	100% { opacity: 1; scale: 1; }
}

@media screen and (max-width: 736px) {
	#main .cw-hero {
		margin-bottom: 1.5em;
		padding: 2em 0 1.5em;
	}
}
