.yp-guide {
	--blue: #0661d6;
	--ink: #191919;
	--muted: #5a6476;
	--line: #e8ecf2;
	--tint: #f0f4fe;
	--bg: #fff;
	--bleed: #e11d48;
	--safe: #16a34a;
	--cut: #191919;
	--on-dark: #fff;
	--on-dark-2: #c0c8d8;
	--dark-line: rgba(255, 255, 255, .15);
	padding-block: 72px;
	color: #333;
	line-height: 1.6;
	scroll-margin-top: 120px;
}

.yp-guide--soft {
	background: #f6f8fb;
}

.yp-guide [hidden] {
	display: none !important;
}

.yp-guide .yp-guide__title {
	margin: 0;
	text-align: left;
	text-wrap: balance;
}

.yp-guide .yp-guide__eyebrow {
	margin: 0 0 8px;
	color: var(--blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.yp-ai .yp-guide__eyebrow {
	color: #7fb0ff;
}

.yp-guide__lead {
	max-width: 72ch;
	margin: 12px 0 0;
	color: var(--muted);
}

.yp-guide :is(a, button, summary, input, select, textarea, pre):focus-visible,
.requirements a:focus-visible {
	outline: 2px solid #7fb0ff;
	outline-offset: 3px;
}

.yp-guide :is(button, input, select, textarea) {
	font-family: inherit;
}

.requirements .requirements__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.requirements .requirements__button--secondary {
	border-color: rgba(255, 255, 255, .24);
	color: #c0c8d8;
}
.requirements .requirements__button--secondary:hover {
	color: #191919;
}
.requirements .requirements__jump {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .15);
	font-size: 14px;
}
.requirements .requirements__jump a {
	color: #c0c8d8;
}
.requirements .requirements__jump a:hover {
	color: #fff;
	text-decoration: underline;
}

.yp-scheme figure.stage {
	margin: 0;
}
.yp-scheme .stage__caption .anim-play svg {
	flex: none;
}
.yp-scheme .stage .anim-play__resume {
	display: none;
}

.yp-scheme .stage.paused .anim-play__pause {
	display: none;
}

.yp-scheme .stage.paused .anim-play__resume {
	display: block;
}

.yp-scheme .scheme {
	display: grid;
	grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
	gap: 32px;
	margin-top: 36px;
	align-items: start;
}

@media (max-width: 900px) {
	.yp-scheme .scheme {
		grid-template-columns: 1fr;
	}
}

.yp-scheme .stage {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 20px;
}

.yp-scheme .stage svg {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.yp-scheme .stage__caption {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-size: 13px;
	color: var(--muted);
	margin-top: 12px;
	font-variant-numeric: tabular-nums;
}

.yp-scheme .anim-play {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--line);
	background: var(--bg);
	border-radius: 50px;
	padding: 5px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	cursor: pointer;
}

.yp-scheme .anim-play:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.yp-scheme .anim-play svg {
	width: 10px;
	height: 10px;
	fill: currentColor;
}

.yp-scheme .anim-steps {
	display: grid;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.yp-scheme .anim-steps p {
	grid-area: 1/1;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink);
	opacity: 0;
}

.yp-scheme .anim-steps p:first-child {
	opacity: 1;
}

.yp-scheme .anim-steps .n {
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: var(--safe);
}

.yp-scheme .anim-steps .bad .n {
	background: var(--bleed);
}

.yp-scheme .anim-bar {
	height: 3px;
	border-radius: 3px;
	background: var(--line);
	margin-top: 12px;
	overflow: hidden;
}

.yp-scheme .anim-bar i {
	display: block;
	height: 100%;
	width: 0;
	background: var(--blue);
}

.yp-scheme .sc-bad, .yp-scheme .kr, .yp-scheme .cv, .yp-scheme .co {
	opacity: 0;
}

.yp-scheme .stage.run .sc-good {
	animation: yp-cut-scGood 14s infinite;
}

.yp-scheme .stage.run .sc-bad {
	animation: yp-cut-scBad 14s infinite;
}

.yp-scheme .stage.run .sc-good .kn {
	animation: yp-cut-knGood 14s infinite;
}

.yp-scheme .stage.run .sc-bad .kn {
	animation: yp-cut-knBad 14s infinite;
}

.yp-scheme .stage.run .sc-good .kr {
	animation: yp-cut-krGood 14s infinite;
}

.yp-scheme .stage.run .sc-bad .kr {
	animation: yp-cut-krBad 14s infinite;
}

.yp-scheme .stage.run .sc-good .cv {
	animation: yp-cut-cvGood 14s infinite;
}

.yp-scheme .stage.run .sc-bad .cv {
	animation: yp-cut-cvBad 14s infinite;
}

.yp-scheme .stage.run .sc-good .gd {
	animation: yp-cut-gdGood 14s infinite;
}

.yp-scheme .stage.run .sc-bad .gd {
	animation: yp-cut-gdBad 14s infinite;
}

.yp-scheme .stage.run .sc-good .co {
	animation: yp-cut-coGood 14s infinite;
}

.yp-scheme .stage.run .sc-bad .co {
	animation: yp-cut-coBad 14s infinite;
}

.yp-scheme .stage.run .anim-steps p:nth-child(1) {
	animation: yp-cut-st1 14s infinite;
}

.yp-scheme .stage.run .anim-steps p:nth-child(2) {
	animation: yp-cut-st2 14s infinite;
}

.yp-scheme .stage.run .anim-steps p:nth-child(3) {
	animation: yp-cut-st3 14s infinite;
}

.yp-scheme .stage.run .anim-steps p:nth-child(4) {
	animation: yp-cut-st4 14s infinite;
}

.yp-scheme .stage.run .anim-bar i {
	animation: yp-cut-bar 14s linear infinite;
}

.yp-scheme .stage.paused * {
	animation-play-state: paused!important;
}

.yp-scheme .stage:not(.run) .anim-play, .yp-scheme .stage:not(.run) .anim-bar {
	display: none;
}

@keyframes yp-cut-scGood {
	0%,46% {
		opacity: 1;
	}
	50%,96% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes yp-cut-scBad {
	0%,46% {
		opacity: 0;
	}
	50%,96% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

@keyframes yp-cut-knGood {
	0%,14% {
		transform: translate(0,0);
	}
	22%,50% {
		transform: translate(1.5px,1px);
	}
	50.5%,100% {
		transform: translate(0,0);
	}
}

@keyframes yp-cut-knBad {
	0%,64% {
		transform: translate(0,0);
	}
	72%,100% {
		transform: translate(-1.5px,-1.5px);
	}
}

@keyframes yp-cut-krGood {
	0%,8% {
		opacity: 0;
	}
	12%,26% {
		opacity: 1;
	}
	30%,100% {
		opacity: 0;
	}
}

@keyframes yp-cut-krBad {
	0%,58% {
		opacity: 0;
	}
	62%,76% {
		opacity: 1;
	}
	80%,100% {
		opacity: 0;
	}
}

@keyframes yp-cut-cvGood {
	0%,26% {
		opacity: 0;
	}
	32%,50% {
		opacity: 1;
	}
	50.5%,100% {
		opacity: 0;
	}
}

@keyframes yp-cut-cvBad {
	0%,76% {
		opacity: 0;
	}
	82%,100% {
		opacity: 1;
	}
}

@keyframes yp-cut-gdGood {
	0%,26% {
		opacity: 1;
	}
	31%,50% {
		opacity: 0;
	}
	50.5%,100% {
		opacity: 1;
	}
}

@keyframes yp-cut-gdBad {
	0%,76% {
		opacity: 1;
	}
	81%,100% {
		opacity: 0;
	}
}

@keyframes yp-cut-coGood {
	0%,32% {
		opacity: 0;
	}
	35%,50% {
		opacity: 1;
	}
	50.5%,100% {
		opacity: 0;
	}
}

@keyframes yp-cut-coBad {
	0%,82% {
		opacity: 0;
	}
	85%,100% {
		opacity: 1;
	}
}

@keyframes yp-cut-st1 {
	0%,11% {
		opacity: 1;
	}
	13%,98% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes yp-cut-st2 {
	0%,11% {
		opacity: 0;
	}
	13%,47% {
		opacity: 1;
	}
	49%,100% {
		opacity: 0;
	}
}

@keyframes yp-cut-st3 {
	0%,47% {
		opacity: 0;
	}
	49%,61% {
		opacity: 1;
	}
	63%,100% {
		opacity: 0;
	}
}

@keyframes yp-cut-st4 {
	0%,61% {
		opacity: 0;
	}
	63%,98% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

@keyframes yp-cut-bar {
	from {
		width: 0;
	}
	to {
		width: 100%;
	}
}

.yp-scheme .legend {
	display: grid;
	gap: 12px;
}

.yp-scheme .lg {
	display: grid;
	grid-template-columns: 14px 1fr;
	gap: 4px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 16px 18px;
	background: var(--bg);
}

.yp-scheme .lg__sw {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	margin-top: 4px;
	border: 2px solid var(--c);
}

.yp-scheme .lg__sw.dash {
	border-style: dashed;
}

.yp-scheme .lg__sw.fill {
	background: repeating-linear-gradient(45deg,#fde2e7 0 3px,#f3a3b4 3px 5px);
}

.yp-scheme .lg b {
	color: var(--ink);
	font-size: 16px;
	font-weight: 600;
}

.yp-scheme .lg span.num {
	color: var(--c);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.yp-scheme .lg p {
	grid-column: 2;
	font-size: 14px;
	color: var(--muted);
	line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
	.yp-scheme .stage.run * {
		animation: none !important;
	}
	.yp-scheme .stage.run :is(.anim-play, .anim-bar) {
		display: none;
	}
}

.yp-pdf-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 28px;
}
.yp-pdf-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
}
.yp-pdf-text {
	flex: 1;
	min-width: 0;
}

.yp-pdf-card strong {
	display: block;
	color: var(--ink);
}

.yp-pdf-text span {
	color: var(--muted);
	font-size: 13px;
}
.yp-pdf-icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 46px;
	border-radius: 6px;
	background: var(--tint);
	color: var(--blue);
	font-size: 12px;
	font-weight: 700;
}
.yp-pdf-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 50px;
	background: var(--blue);
	padding: 9px 16px;
	color: white;
	font-size: 14px;
	font-weight: 600;
}
.yp-pdf-link svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.yp-pdf-link:hover {
	background: #003a85;
	color: white;
}

.yp-guide-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 32px;
	padding: 4px;
	border-radius: 24px;
	background: var(--tint);
}
.yp-guide-tabs button {
	border: 0;
	border-radius: 24px;
	padding: 10px 22px;
	background: transparent;
	color: var(--muted);
	font-weight: 600;
	cursor: pointer;
}
.yp-guide-tabs button[aria-selected="true"] {
	background: white;
	color: var(--blue);
	box-shadow: 0 1px 4px rgba(6, 97, 214, .15);
}
.yp-short {
	columns: 3;
	column-gap: 16px;
	margin-top: 28px;
}
.yp-short .yp-short__card {
	break-inside: avoid;
	margin-bottom: 16px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: 14px;
}
.yp-short__card h3 {
	margin: 0 0 10px;
	color: var(--ink);
	font-size: 17px;
}
.yp-short__card ul {
	display: grid;
	gap: 8px;
	padding-left: 20px;
	list-style: disc;
	font-size: 15px;
}
.yp-guide li::marker {
	color: var(--blue);
}

.yp-full {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	margin-top: 28px;
}
.yp-full:has(.yp-contents:not([hidden])) {
	grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
	gap: 40px;
}
.yp-contents {
	position: sticky;
	top: 120px;
	align-self: start;
	font-size: 14px;
}
.yp-contents ol {
	display: grid;
	gap: 3px;
	border-left: 2px solid var(--line);
	padding: 0;
	list-style: none;
}
.yp-contents a {
	display: block;
	padding: 4px 12px;
	color: var(--muted);
}
.yp-contents a:hover {
	color: var(--blue);
	text-decoration: underline;
}
.yp-contents__toggle {
	margin-top: 14px;
	border: 0;
	padding: 0;
	background: transparent;
	color: var(--blue);
	font-weight: 600;
	cursor: pointer;
}
.yp-requirement {
	border-bottom: 1px solid var(--line);
	scroll-margin-top: 120px;
}
.yp-requirement summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-block: 18px;
	list-style: none;
	color: var(--ink);
	font-size: 18px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}
.yp-requirement summary::-webkit-details-marker {
	display: none;
}
.yp-requirement[open] .requirements-accordion__icon {
	transform: rotate(180deg);
	background: var(--blue);
}
.yp-requirement[open] .requirements-accordion__icon svg {
	stroke: white;
}
.yp-requirement__body {
	padding-bottom: 20px;
	font-size: 15px;
}
.yp-requirement__body p {
	margin: 0 0 12px;
}
.yp-requirement__body ul {
	margin: 0 0 12px;
	padding-left: 22px;
	list-style: disc;
}
.yp-requirement__body li {
	margin-bottom: 8px;
}
.yp-requirement__body h4 {
	margin: 16px 0 8px;
	color: var(--ink);
	font-size: 15px;
}

.yp-reject-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin-top: 28px;
}
.yp-rejected :is(.yp-reject-list, .yp-reject-explanations) > .wp-block-group__inner-container {
	display: contents;
}

.yp-reject-card,
.yp-reject-explanation {
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: white;
}
.yp-reject-card h3 {
	margin: 0 0 4px;
	color: var(--ink);
	font-size: 16px;
}
.yp-reject-card h3::before {
	content: "";
	display: block;
	width: 24px;
	height: 24px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: linear-gradient(45deg, transparent 46%, #c81e4a 47% 53%, transparent 54%) center / 12px 12px no-repeat,
		linear-gradient(-45deg, transparent 46%, #c81e4a 47% 53%, transparent 54%) center / 12px 12px no-repeat,
		#fdecef;
}
.yp-reject-card p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}
.yp-reject-explanations {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 24px;
}
.yp-reject-explanation {
	padding: 24px;
}
.yp-reject-explanation h3 {
	margin: 0 0 12px;
	color: var(--ink);
	font-size: 20px;
}
.yp-reject-explanation ul {
	display: grid;
	gap: 8px;
	padding-left: 20px;
	list-style: disc;
}
.yp-reject-explanation :is(ul, p) {
	margin: 0 0 12px;
	font-size: 15px;
}
.yp-short__card a,
.yp-reject-explanation a,
.yp-guide-sources a,
.yp-requirement__body a {
	color: #0661d6;
	text-decoration: underline;
}
.yp-reject-explanation .yp-swatch {
	--first: #0047ff;
	--second: #00ff66;
	--third: #ff2bd6;
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 13px;
}
.yp-reject-explanation .yp-swatch--paper {
	--first: #2d4fa8;
	--second: #3fae6a;
	--third: #c8509e;
}
.yp-swatch::after {
	content: "";
	height: 32px;
	border-radius: 6px;
	background: linear-gradient(to right, var(--first) 32%, #fff 32% 34%,
		var(--second) 34% 66%, #fff 66% 68%, var(--third) 68%);
}
.yp-reject-explanation .yp-swatch-note {
	margin-top: 8px;
	color: var(--muted);
	font-size: 13px;
}
.yp-guide-sources {
	padding-block: 24px;
	color: #5a6476;
	font-size: 13px;
	line-height: 1.7;
}

.yp-ai {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--ink);
	color: var(--on-dark-2);
}
.yp-ai .requirements__graphic-element {
	transform: scaleX(-1);
	opacity: .6;
}
.yp-ai .yp-guide__title {
	color: var(--on-dark);
}
.yp-ai .yp-guide__lead {
	color: var(--on-dark-2);
}
.yp-ai__grid,
.yp-ai__form {
	display: grid;
	gap: 16px;
}
.yp-ai__grid {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
	gap: 28px;
	margin-top: 28px;
}
.yp-ai__form {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-content: start;
}
.yp-ai__wide {
	grid-column: 1 / -1;
}
.yp-ai__field {
	display: grid;
	gap: 6px;
	min-width: 0;
}
.yp-ai__field label {
	font-size: 13px;
	font-weight: 600;
}
.yp-ai__field :is(input, select, textarea) {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--dark-line);
	border-radius: 10px;
	background: #282828;
	color: var(--on-dark);
	font-size: 16px;
}
.yp-ai__field textarea {
	resize: vertical;
}
.yp-ai__extras {
	border: 1px solid var(--dark-line);
	border-radius: 10px;
}
.yp-ai__extras > summary {
	padding: 10px 12px;
	color: var(--on-dark);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.yp-ai__extras > summary:focus-visible {
	outline-offset: -3px;
}
.yp-ai__extra-fields {
	display: grid;
	gap: 12px;
	padding: 0 12px 12px;
}
.yp-ai__calculation,
.yp-ai__copy-status {
	margin: 0;
	font-size: 13px;
}
.yp-ai__output {
	overflow: hidden;
	border: 1px solid var(--dark-line);
	border-radius: 16px;
	background: #0f1115;
}
.yp-ai__toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--dark-line);
	font-size: 13px;
}
.yp-ai__toolbar button {
	border: 0;
	border-radius: 50px;
	padding: 8px 16px;
	background: white;
	color: var(--blue);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.yp-ai__toolbar button:disabled {
	opacity: .5;
	cursor: default;
}
.yp-ai__output pre {
	max-height: 520px;
	margin: 0;
	overflow: auto;
	padding: 18px;
	color: #e6e9ef;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	font: 14px / 1.6 ui-monospace, Consolas, monospace;
}
.yp-ai__output mark {
	border-radius: 3px;
	background: #263853;
	color: #bcd6ff;
}
.yp-ai__copy-status:not(:empty) {
	margin-top: 8px;
}
.yp-ai__notes {
	display: grid;
	gap: 8px;
	margin: 16px 0 0;
	padding-left: 20px;
	list-style: disc;
	font-size: 14px;
}
.yp-ai__notes li::marker {
	color: #7fb0ff;
}

@media (max-width: 1100px) {
	.yp-reject-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 900px) {
	.yp-guide {
		padding-block: 48px;
	}
	.yp-ai__grid,
	.yp-full:has(.yp-contents:not([hidden])),
	.yp-reject-explanations {
		grid-template-columns: minmax(0, 1fr);
	}
	.yp-short {
		columns: 2;
	}
	.yp-contents {
		position: static;
	}
	.yp-contents ol {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		border: 0;
	}
	.yp-contents a {
		border: 1px solid var(--line);
		border-radius: 24px;
	}
}
@media (max-width: 640px) {
	.yp-short {
		columns: 1;
	}
	.yp-pdf-list,
	.yp-reject-list {
		grid-template-columns: minmax(0, 1fr);
	}
}
