:root {
	--pcg-ask-green: #155c48;
	--pcg-ask-green-dark: #0d4033;
	--pcg-ask-blue: #135c73;
	--pcg-ask-coral: #c65e43;
	--pcg-ask-ink: #18302b;
	--pcg-ask-muted: #52645f;
	--pcg-ask-line: #cbd8d4;
	--pcg-ask-soft: #f2f7f5;
	--pcg-ask-blue-soft: #edf6f9;
	--pcg-ask-warning: #fff7df;
	--pcg-ask-error: #a52b2b;
}

body.pcg-ask-page .wp-block-post-title {
	display: none !important;
}

body.pcg-ask-page main,
body.pcg-ask-page .wp-block-post-content,
body.pcg-ask-page .entry-content {
	max-width: none !important;
}

.pcg-ask {
	color: var(--pcg-ask-ink);
	font-size: 18px;
	left: 50%;
	line-height: 1.58;
	margin: 0;
	position: relative;
	transform: translateX(-50%);
	width: min(1180px, calc(100vw - 32px));
}

.pcg-ask *,
.pcg-ask *::before,
.pcg-ask *::after {
	box-sizing: border-box;
}

.pcg-ask a {
	color: var(--pcg-ask-blue);
	font-weight: 750;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.pcg-ask a:focus-visible,
.pcg-ask button:focus-visible,
.pcg-ask textarea:focus-visible,
.pcg-ask select:focus-visible {
	outline: 3px solid #f0aa42;
	outline-offset: 3px;
}

.pcg-ask-breadcrumb {
	align-items: center;
	display: flex;
	font-size: 0.92rem;
	gap: 8px;
	margin: 0 auto 10px;
	max-width: 1020px;
}

.pcg-ask-breadcrumb strong {
	color: var(--pcg-ask-muted);
}

.pcg-ask-hero {
	background: var(--pcg-ask-green-dark);
	border-bottom: 6px solid var(--pcg-ask-coral);
	border-radius: 6px 6px 0 0;
	color: #fff;
	padding: 38px clamp(24px, 5vw, 64px) 34px;
}

.pcg-ask-kicker,
.pcg-ask-step {
	font-size: 0.82rem;
	font-weight: 850;
	letter-spacing: 0;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.pcg-ask-kicker {
	color: #bfe8db;
}

.pcg-ask-hero h1 {
	color: #fff;
	font-size: clamp(2rem, 4vw, 3.3rem);
	line-height: 1.06;
	margin: 0;
}

.pcg-ask-hero > p:not(.pcg-ask-kicker) {
	font-size: 1.12rem;
	margin: 14px 0 0;
	max-width: 850px;
}

.pcg-ask-promises {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin-top: 22px;
}

.pcg-ask-promises span {
	align-items: center;
	display: inline-flex;
	font-size: 0.93rem;
	font-weight: 750;
	gap: 8px;
}

.pcg-ask-promises span::before {
	background: #f0aa42;
	border-radius: 50%;
	content: "";
	height: 9px;
	width: 9px;
}

.pcg-ask-main {
	background: #fff;
	border: 1px solid var(--pcg-ask-line);
	border-top: 0;
	margin: 0;
	min-width: 0;
	padding: clamp(28px, 5vw, 58px);
}

.pcg-ask-workspace,
.pcg-ask-history,
.pcg-ask-caution {
	margin-left: auto;
	margin-right: auto;
	max-width: 940px;
	min-width: 0;
	width: 100%;
}

.pcg-ask-heading {
	border-left: 5px solid var(--pcg-ask-coral);
	padding-left: 16px;
}

.pcg-ask-step {
	color: var(--pcg-ask-green);
}

.pcg-ask-heading h2,
.pcg-ask-result h2,
.pcg-ask-result h3,
.pcg-ask-history h2 {
	color: var(--pcg-ask-ink);
	letter-spacing: 0;
}

.pcg-ask-heading h2 {
	font-size: 1.75rem;
	line-height: 1.2;
	margin: 0;
}

#pcg-ask-form {
	border-bottom: 1px solid var(--pcg-ask-line);
	margin-top: 24px;
	padding-bottom: 28px;
}

#pcg-ask-form > label,
.pcg-ask-profile-row > label {
	display: block;
	font-weight: 800;
	margin-bottom: 8px;
}

#pcg-ask-question {
	background: #fff;
	border: 2px solid #718b83;
	border-radius: 6px;
	color: var(--pcg-ask-ink);
	font: inherit;
	line-height: 1.48;
	min-height: 138px;
	padding: 16px;
	resize: vertical;
	width: 100%;
}

#pcg-ask-question::placeholder {
	color: #65756f;
	opacity: 1;
}

.pcg-ask-form-meta {
	color: var(--pcg-ask-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.82rem;
	justify-content: space-between;
	margin-top: 5px;
}

.pcg-ask-profile-row {
	background: var(--pcg-ask-blue-soft);
	border-left: 5px solid var(--pcg-ask-blue);
	margin-top: 20px;
	padding: 16px 18px;
}

.pcg-ask-profile-row label span {
	font-weight: 500;
}

#pcg-ask-profile {
	background: #fff;
	border: 1px solid #718b83;
	border-radius: 4px;
	color: var(--pcg-ask-ink);
	font: inherit;
	min-height: 48px;
	padding: 8px 38px 8px 11px;
	width: min(100%, 620px);
}

.pcg-ask-profile-row p {
	color: var(--pcg-ask-muted);
	font-size: 0.84rem;
	margin: 6px 0 0;
}

.pcg-ask-photo-option {
	align-items: center;
	background: #f7fbf9;
	border: 1px solid var(--pcg-ask-line);
	border-left: 5px solid var(--pcg-ask-coral);
	display: grid;
	gap: 16px 22px;
	grid-template-columns: minmax(0, 1fr) auto;
	margin-top: 20px;
	padding: 18px;
}

.pcg-ask-photo-copy h3 {
	color: var(--pcg-ask-ink);
	font-size: 1.15rem;
	line-height: 1.25;
	margin: 0 0 5px;
}

.pcg-ask-photo-copy > p:last-child,
.pcg-ask-photo-note {
	color: var(--pcg-ask-muted);
	margin: 0;
}

.pcg-ask-photo-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.pcg-ask a.pcg-ask-photo-button,
.pcg-ask a.pcg-ask-photo-button:link,
.pcg-ask a.pcg-ask-photo-button:visited {
	align-items: center;
	background: var(--pcg-ask-green);
	border: 2px solid var(--pcg-ask-green);
	border-radius: 5px;
	color: #fff;
	display: inline-flex;
	font-size: 0.92rem;
	font-weight: 800;
	justify-content: center;
	min-height: 48px;
	padding: 10px 16px;
	text-decoration: none;
}

.pcg-ask a.pcg-ask-photo-button.is-secondary,
.pcg-ask a.pcg-ask-photo-button.is-secondary:link,
.pcg-ask a.pcg-ask-photo-button.is-secondary:visited {
	background: #fff;
	color: var(--pcg-ask-green-dark);
}

.pcg-ask a.pcg-ask-photo-button:hover,
.pcg-ask a.pcg-ask-photo-button:focus-visible {
	background: var(--pcg-ask-green-dark);
	border-color: var(--pcg-ask-green-dark);
	color: #fff;
}

.pcg-ask-photo-note {
	font-size: 0.84rem;
	grid-column: 1 / -1;
}

.pcg-ask-actions,
.pcg-ask-result-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	margin-top: 20px;
}

.pcg-ask-primary,
.pcg-ask a.pcg-ask-primary,
.pcg-ask button.pcg-ask-primary {
	background: var(--pcg-ask-green);
	border: 2px solid var(--pcg-ask-green);
	border-radius: 5px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 1rem;
	font-weight: 800;
	justify-content: center;
	line-height: 1.2;
	min-height: 50px;
	padding: 13px 20px;
	text-decoration: none;
}

.pcg-ask-primary:hover,
.pcg-ask-primary:focus {
	background: var(--pcg-ask-green-dark);
	border-color: var(--pcg-ask-green-dark);
	color: #fff;
}

.pcg-ask-primary:disabled {
	cursor: wait;
	opacity: 0.65;
}

@media (max-width: 760px) {
	.pcg-ask-photo-option {
		grid-template-columns: 1fr;
	}

	.pcg-ask-photo-actions {
		justify-content: flex-start;
	}

	.pcg-ask-photo-actions a {
		flex: 1 1 180px;
	}
}

.pcg-ask-account-note {
	background: var(--pcg-ask-soft);
	border-left: 4px solid var(--pcg-ask-green);
	font-size: 0.9rem;
	margin: 18px 0 0;
	padding: 12px 14px;
}

.pcg-ask-account-note a {
	margin-left: 5px;
}

.pcg-ask-examples {
	margin-top: 24px;
}

.pcg-ask-examples h3 {
	font-size: 1rem;
	margin: 0 0 10px;
}

.pcg-ask-examples > div {
	display: grid;
	gap: 9px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pcg-ask-examples button,
.pcg-ask-result-actions button,
.pcg-ask-history article button {
	background: #fff;
	border: 1px solid #8aa09a;
	border-radius: 5px;
	color: var(--pcg-ask-blue);
	cursor: pointer;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 750;
	padding: 10px 13px;
	text-align: left;
}

.pcg-ask-examples button:hover,
.pcg-ask-result-actions button:hover,
.pcg-ask-history article button:hover {
	background: var(--pcg-ask-blue-soft);
	border-color: var(--pcg-ask-blue);
}

.pcg-ask-status {
	font-weight: 750;
	margin-top: 20px;
	min-height: 0;
}

.pcg-ask-status.is-working {
	color: var(--pcg-ask-blue);
}

.pcg-ask-status.is-error {
	background: #fff0ef;
	border-left: 5px solid var(--pcg-ask-error);
	color: #741f1f;
	padding: 13px 15px;
}

.pcg-ask-result {
	border: 2px solid var(--pcg-ask-green);
	border-radius: 6px;
	max-width: 100% !important;
	margin-top: 24px;
	min-width: 0;
	overflow-wrap: anywhere;
	padding: clamp(20px, 4vw, 34px);
	scroll-margin-top: 24px;
	width: 100%;
}

body.pcg-ask-page #pcg-ask-result,
body.pcg-ask-page #pcg-ask-history-list > article {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
}

.pcg-ask-result > header {
	align-items: flex-start;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	max-width: 100%;
	min-width: 0;
}

.pcg-ask-result > header > div,
.pcg-ask-result > section,
.pcg-ask-answer,
.pcg-ask-clarifying,
.pcg-ask-sources,
.pcg-ask-sources li {
	max-width: 100%;
	min-width: 0;
}

.pcg-ask-result h2 {
	font-size: 1.8rem;
	line-height: 1.15;
	margin: 0;
}

#pcg-ask-confidence {
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 850;
	line-height: 1.2;
	padding: 7px 10px;
	white-space: nowrap;
}

#pcg-ask-confidence.is-strong {
	color: var(--pcg-ask-green);
}

#pcg-ask-confidence.is-moderate {
	color: #8a5200;
}

#pcg-ask-confidence.is-limited {
	color: #814022;
}

.pcg-ask-answer {
	font-size: 1.04rem;
	margin-top: 18px;
	overflow-wrap: anywhere;
	white-space: pre-line;
}

.pcg-ask-result > section {
	border-top: 1px solid var(--pcg-ask-line);
	margin-top: 22px;
	padding-top: 18px;
}

.pcg-ask-result h3 {
	font-size: 1.15rem;
	margin: 0 0 9px;
}

.pcg-ask-result ul {
	margin: 0;
	padding-left: 24px;
}

.pcg-ask-result li + li {
	margin-top: 6px;
}

.pcg-ask-clarifying {
	background: var(--pcg-ask-warning);
	border-left: 5px solid #bd7a17;
	margin-top: 22px;
	padding: 15px 17px;
}

.pcg-ask-clarifying p {
	margin: 4px 0 0;
}

.pcg-ask-sources ol {
	display: grid;
	gap: 13px;
	list-style-position: outside;
	margin: 0;
	padding-left: 28px;
}

.pcg-ask-sources li {
	border-left: 4px solid var(--pcg-ask-blue);
	padding: 4px 0 4px 13px;
}

.pcg-ask-sources li > a {
	display: inline;
	font-size: 1rem;
	overflow-wrap: anywhere;
	word-break: normal;
}

.pcg-ask-sources li > span {
	color: var(--pcg-ask-muted);
	display: block;
	font-size: 0.78rem;
	font-weight: 750;
	margin-top: 2px;
	text-transform: uppercase;
}

.pcg-ask-sources li > p {
	font-size: 0.88rem;
	margin: 4px 0 0;
}

.pcg-ask-result-actions {
	border-top: 1px solid var(--pcg-ask-line);
	padding-top: 20px;
}

.pcg-ask-result-actions button {
	text-align: center;
}

.pcg-ask-limit-note {
	color: var(--pcg-ask-muted);
	font-size: 0.84rem;
	margin: 12px 0 0;
}

.pcg-ask-history {
	border-top: 4px solid var(--pcg-ask-blue);
	margin-top: 42px;
	padding-top: 28px;
}

#pcg-ask-history-list {
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(0, 1fr);
	margin-top: 20px;
	max-width: 100%;
	min-width: 0;
	width: 100%;
}

.pcg-ask-history article {
	align-items: center;
	background: var(--pcg-ask-soft);
	border: 1px solid var(--pcg-ask-line);
	border-radius: 5px;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	max-width: 100% !important;
	min-width: 0;
	padding: 14px 16px;
	width: 100% !important;
}

.pcg-ask-history article > div:first-child {
	flex: 1 1 auto;
	min-width: 0;
}

.pcg-ask-history article h3 {
	font-size: 1rem;
	line-height: 1.35;
	margin: 0;
	overflow-wrap: anywhere;
	word-break: normal;
}

.pcg-ask-history article p {
	color: var(--pcg-ask-muted);
	font-size: 0.8rem;
	margin: 3px 0 0;
}

.pcg-ask-history article > div:last-child {
	display: flex;
	flex: 0 0 auto;
	gap: 7px;
	max-width: 100%;
}

.pcg-ask-history article button {
	padding: 8px 11px;
	text-align: center;
}

.pcg-ask-history article button.pcg-ask-delete {
	color: #8c2f2f;
}

.pcg-ask-history-empty {
	color: var(--pcg-ask-muted);
}

.pcg-ask-caution {
	background: var(--pcg-ask-blue-soft);
	border-left: 5px solid var(--pcg-ask-blue);
	margin-top: 38px;
	padding: 16px 18px;
}

.pcg-ask-caution p {
	font-size: 0.9rem;
	margin: 4px 0 0;
}

.pcg-ask-noscript {
	background: #fff;
	border: 2px solid var(--pcg-ask-error);
	margin: 20px;
	padding: 18px;
}

@media (max-width: 720px) {
	.pcg-ask {
		font-size: 17px;
		width: min(100%, calc(100vw - 20px));
	}

	.pcg-ask-breadcrumb {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}

	.pcg-ask-breadcrumb span {
		display: none;
	}

	.pcg-ask-hero {
		padding: 28px 20px 26px;
	}

	.pcg-ask-main {
		padding: 26px 17px;
	}

	.pcg-ask-examples > div {
		grid-template-columns: 1fr;
	}

	.pcg-ask-actions,
	.pcg-ask-result-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.pcg-ask-actions > *,
	.pcg-ask-result-actions > * {
		width: 100%;
	}

	.pcg-ask-result > header {
		flex-direction: column;
	}

	#pcg-ask-confidence {
		white-space: normal;
	}

	.pcg-ask-history article {
		align-items: stretch;
		flex-direction: column;
	}

	.pcg-ask-history article > div:last-child {
		display: grid;
		grid-template-columns: 1fr auto;
	}
}

@media print {
	body.pcg-ask-page #wpadminbar,
	body.pcg-ask-page header.wp-block-template-part,
	body.pcg-ask-page footer.wp-block-template-part,
	body.pcg-ask-page .pcg-ask-breadcrumb,
	body.pcg-ask-page .pcg-ask-hero,
	body.pcg-ask-page #pcg-ask-form,
	body.pcg-ask-page .pcg-ask-examples,
	body.pcg-ask-page .pcg-ask-history,
	body.pcg-ask-page .pcg-ask-result-actions,
	body.pcg-ask-page .pcg-ask-status {
		display: none !important;
	}

	body.pcg-ask-page .pcg-ask,
	body.pcg-ask-page .pcg-ask-main,
	body.pcg-ask-page .pcg-ask-result {
		border: 0;
		margin: 0;
		max-width: none;
		padding: 0;
		transform: none;
		width: auto;
	}

	body.pcg-ask-page .pcg-ask-result {
		display: block !important;
	}
}
