/* Self-hosted fonts. Elementor lists these as system fonts (see functions.php) so it never calls Google. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-hyperlegible-700.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-hyperlegible-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/lexend-variable.woff2") format("woff2"); }
@font-face { font-family: "Caveat Brush"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/caveat-brush-400.woff2") format("woff2"); }

:root {
	--ndw-ink: #141414;
	--ndw-magenta: #d1126f;
	--ndw-berry: #a80f55;
	--ndw-blush: #fff8fb;
	--ndw-rose: #f9c2da;
	--ndw-lavender: #dcc8ee;
	--ndw-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16l8 9L29 5'/%3E%3C/svg%3E");
	--ndw-swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 11C60 3 130 2 197 6' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
	--ndw-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 32' fill='none' stroke='%23141414' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 24C20 8 44 4 72 12'/%3E%3Cpath d='M62 4l10 8-12 5'/%3E%3C/svg%3E");
	--ndw-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 32' fill='none' stroke='%23141414' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6c16 16 40 22 68 14'/%3E%3Cpath d='M60 12l12 8-11 7'/%3E%3C/svg%3E");
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	-webkit-font-smoothing: antialiased;
}

[id] {
	scroll-margin-top: 1.5rem;
}

:focus-visible {
	outline: 3px solid var(--ndw-magenta);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Links inside running text are underlined, as in the original design. */
.elementor-widget-text-editor a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 0.09em;
	text-underline-offset: 0.2em;
}

.elementor-widget-text-editor a:hover {
	text-decoration: none;
}

.elementor-widget-text-editor > :last-child,
.elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

/* Elementor sets max-width on every widget wrapper, so this needs the extra weight. */
.elementor-element.ndw-measure {
	max-width: 46rem !important;
}

.ndw-link-strong a {
	font-family: Lexend, sans-serif;
	font-weight: 700;
	text-decoration-thickness: 2px;
}

/* ---------- Header and nav ---------- */

.ndw-site-title .elementor-heading-title a {
	color: inherit;
	text-decoration: none;
}

.ndw-nav .elementskit-navbar-nav > li > a {
	color: var(--ndw-ink) !important;
	font-family: Lexend, sans-serif;
	font-size: 18px;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.25em;
}

.ndw-nav .elementskit-navbar-nav > li > a:hover {
	text-decoration: none;
}

@media (max-width: 1024px) {
	/* Boxed containers put their flex layout on .e-con-inner. */
	.ndw-header > .e-con-inner {
		flex-wrap: nowrap !important;
	}

	.ndw-nav .elementskit-menu-container {
		background: #fcdae8 !important;
		box-shadow: 0 0 40px rgba(20, 20, 20, 0.25);
	}

	.ndw-nav .elementskit-menu-close {
		border: 2px solid var(--ndw-ink);
		border-radius: 10px;
		color: var(--ndw-ink);
	}

	.ndw-nav .elementskit-menu-hamburger {
		padding: 10px;
		border: 2px solid var(--ndw-ink);
		border-radius: 10px;
		background: transparent;
	}

	.ndw-nav .elementskit-menu-hamburger .elementskit-menu-hamburger-icon {
		background-color: var(--ndw-ink);
	}

	.ndw-nav .elementskit-navbar-nav > li > a {
		padding: 14px 20px !important;
		font-size: 20px;
	}
}

@media (min-width: 1025px) {
	.ndw-nav .elementskit-navbar-nav > li > a {
		padding: 8px 0 8px 32px !important;
	}
}

/* ---------- Buttons ---------- */

.ndw-textlink .elementor-button,
.ndw-textlink .elementor-button:hover,
.ndw-textlink .elementor-button:focus {
	padding: 0;
	background: none !important;
	color: var(--ndw-ink) !important;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.25em;
}

.ndw-textlink .elementor-button:hover {
	text-decoration: none;
}

/* ---------- Brush stroke ---------- */

.ndw-swoosh {
	display: block;
	width: min(100%, 17rem);
	height: 0.9rem;
	background-color: var(--ndw-magenta);
	-webkit-mask: var(--ndw-swoosh) no-repeat center / 100% 100%;
	mask: var(--ndw-swoosh) no-repeat center / 100% 100%;
}

.ndw-swoosh--short {
	width: min(100%, 14rem);
}

/* ---------- Definition cards ---------- */

/* The label sits across the top edge of its card: card padding (36px) plus half the label's height. */
.ndw-pill {
	margin-top: -59px !important;
	margin-left: -9px !important;
}

.ndw-pill .elementor-heading-title {
	display: inline-block;
	padding: 0.45em 0.9em;
	border-radius: 10px;
	background: var(--ndw-ink);
	color: #fff;
	font-size: 22px;
	line-height: 1.2;
}

/* ---------- Lists ---------- */

.ndw-toc ol {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.35rem 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ndw-toc ol > li::before {
	content: counter(list-item) ". ";
}

.ndw-tags ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ndw-tags li {
	padding: 0.3rem 0.85rem;
	border: 2px solid var(--ndw-ink);
	border-radius: 10px;
	background: var(--ndw-blush);
	font-family: Lexend, sans-serif;
	font-weight: 700;
	line-height: 1.5;
}

.ndw-checklist ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.75rem 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ndw-checklist--single ul {
	grid-template-columns: 1fr;
}

.ndw-checklist li {
	position: relative;
	padding-left: 2.75rem;
}

.ndw-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1rem;
	width: 1.75rem;
	height: 1.75rem;
	background-color: var(--ndw-magenta);
	-webkit-mask: var(--ndw-check) no-repeat center / contain;
	mask: var(--ndw-check) no-repeat center / contain;
}

.ndw-checklist li > strong:first-child {
	display: block;
	font-family: Lexend, sans-serif;
}

.ndw-dots ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ndw-dots li:not(:last-child)::after {
	content: "·";
	margin-inline: 1.1rem;
	font-weight: 700;
}

.ndw-details ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ndw-details li {
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	gap: 0.5rem;
	margin-block: 0.4rem;
}

.ndw-details li > strong:first-child {
	font-family: Lexend, sans-serif;
}

.ndw-inline ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 767px) {
	.ndw-toc ol,
	.ndw-checklist ul {
		grid-template-columns: 1fr;
	}
}

/* ---------- Columns with dividers ---------- */

.ndw-dividers > .e-con + .e-con {
	border-left: 3px solid var(--ndw-ink);
	padding-left: 44px;
}

@media (max-width: 767px) {
	.ndw-dividers > .e-con + .e-con {
		border-left: 0;
		border-top: 3px solid var(--ndw-ink);
		padding-left: 0;
		padding-top: 32px;
	}
}

/* ---------- Steps ---------- */

.ndw-step .elementor-heading-title {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border: 3px solid var(--ndw-ink);
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
}

.ndw-step--rose .elementor-heading-title {
	background: var(--ndw-rose);
}

.ndw-step--lavender .elementor-heading-title {
	background: var(--ndw-lavender);
}

.ndw-steps > .e-con {
	position: relative;
}

@media (min-width: 768px) {
	.ndw-steps > .e-con:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 12px;
		right: -80px;
		width: 72px;
		height: 29px;
		background: var(--ndw-arrow) no-repeat center / contain;
	}

	.ndw-steps > .e-con:nth-child(2)::after {
		background-image: var(--ndw-arrow-down);
	}
}

/* ---------- Instagram tiles ---------- */

.ndw-tile {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
}

.ndw-tile .elementor-heading-title a {
	color: inherit;
	text-decoration: none;
}

.ndw-tile .elementor-heading-title a::after,
.ndw-tile .elementor-widget-image a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ndw-tile:hover .elementor-heading-title a,
.ndw-tile a:focus-visible {
	text-decoration: underline;
}

.ndw-tile:focus-within {
	outline: 3px solid var(--ndw-magenta);
	outline-offset: 3px;
}

.ndw-tile a:focus-visible {
	outline: none;
}

.ndw-tile .elementor-widget-image,
.ndw-tile .elementor-widget-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ---------- Gain bar ---------- */

.ndw-gain > .elementor-widget-heading {
	width: auto;
}

.ndw-gain > .elementor-widget-text-editor {
	flex: 1 1 22rem;
	width: auto;
}

/* ---------- Footer ---------- */

.ndw-footer-swoosh {
	margin-top: -6px;
}

.ndw-rule {
	border-top: 2px solid var(--ndw-ink);
}
