.pet-calculator {
	--pet-blue: #1e73d8;
	--pet-blue-dark: #1358a9;
	--pet-ink: #172033;
	--pet-muted: #647083;
	--pet-line: #dfe7f2;
	--pet-soft: #f6f8fb;
	--pet-card: #ffffff;
	--pet-shadow: 0 18px 48px rgba(22, 41, 71, 0.10);
	box-sizing: border-box;
	color: var(--pet-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 0 auto;
	max-width: 1220px;
	padding: 28px 20px 24px;
}

.pet-calculator *,
.pet-calculator *::before,
.pet-calculator *::after {
	box-sizing: border-box;
}

.pet-calculator__grid {
	display: grid;
	gap: 22px;
	grid-template-columns: minmax(260px, 0.95fr) minmax(420px, 1.85fr) minmax(230px, 0.85fr);
}

.pet-card {
	background: var(--pet-card);
	border: 1px solid rgba(210, 222, 238, 0.78);
	border-radius: 10px;
	box-shadow: var(--pet-shadow);
	min-width: 0;
	padding: 26px;
}

.pet-card__eyebrow {
	color: var(--pet-blue);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.2;
	margin: 0 0 22px;
	text-transform: uppercase;
}

.pet-form {
	display: grid;
	gap: 16px;
}

.pet-field {
	display: grid;
	gap: 7px;
}

.pet-field--hidden {
	display: none;
}

.pet-field label {
	color: #253142;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.pet-field input,
.pet-field select {
	appearance: none;
	background: #fff;
	border: 1px solid var(--pet-line);
	border-radius: 6px;
	color: var(--pet-ink);
	font: inherit;
	font-size: 14px;
	height: 44px;
	line-height: 1.2;
	min-width: 0;
	outline: none;
	padding: 0 12px;
	transition: border-color 160ms ease, box-shadow 160ms ease;
	width: 100%;
}

.pet-field select {
	background-image: linear-gradient(45deg, transparent 50%, #6f7b8c 50%), linear-gradient(135deg, #6f7b8c 50%, transparent 50%);
	background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
	padding-right: 34px;
}

.pet-field input:focus,
.pet-field select:focus {
	border-color: var(--pet-blue);
	box-shadow: 0 0 0 3px rgba(30, 115, 216, 0.14);
}

.pet-inline-control {
	display: grid;
	gap: 8px;
}

.pet-inline-control--with-unit {
	grid-template-columns: minmax(0, 1fr) 92px;
}

.pet-helper {
	color: var(--pet-muted);
	font-size: 12px;
	line-height: 1.45;
	margin: 0;
}

.pet-actions {
	display: grid;
	gap: 10px;
	margin-top: 4px;
}

.pet-button {
	align-items: center;
	border: 0;
	border-radius: 7px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	gap: 8px;
	height: 44px;
	justify-content: center;
	padding: 0 16px;
	text-decoration: none;
	transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pet-button--primary {
	background: var(--pet-blue);
	box-shadow: 0 10px 22px rgba(30, 115, 216, 0.24);
	color: #fff;
}

.pet-button--primary:hover,
.pet-button--primary:focus {
	background: var(--pet-blue-dark);
}

.pet-button--ghost {
	background: #f2f5fa;
	color: var(--pet-blue-dark);
}

.pet-button__icon {
	background:
		linear-gradient(#fff, #fff) 50% 33% / 12px 1px no-repeat,
		linear-gradient(#fff, #fff) 50% 66% / 12px 1px no-repeat,
		linear-gradient(#fff, #fff) 33% 50% / 1px 12px no-repeat,
		linear-gradient(#fff, #fff) 66% 50% / 1px 12px no-repeat;
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 2px;
	height: 15px;
	width: 15px;
}

.pet-results-layout {
	align-items: center;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(210px, 0.82fr) minmax(0, 1.18fr);
	min-width: 0;
}

.pet-result-panel {
	background: linear-gradient(180deg, #f9fbff 0%, #f4f8fd 100%);
	border: 1px solid rgba(30, 115, 216, 0.45);
	border-radius: 8px;
	padding: 22px;
	text-align: center;
}

.pet-result-panel__label {
	color: #243042;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.35;
	margin: 0 0 12px;
}

.pet-result-panel__value {
	color: var(--pet-blue);
	font-size: var(--pet-result-value-size, 36px);
	font-weight: 800;
	line-height: 1.08;
	margin: 0;
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
}

.pet-result-panel__secondary {
	color: var(--pet-muted);
	font-size: 13px;
	font-weight: 700;
	min-height: 18px;
	margin: 8px 0 0;
}

.pet-result-panel__multiplier {
	color: #263348;
	font-size: 15px;
	font-weight: 800;
	margin: 16px 0 0;
}

.pet-result-panel hr {
	border: 0;
	border-top: 1px solid var(--pet-line);
	margin: 20px 0;
}

.pet-result-meta {
	display: grid;
	gap: 12px;
	margin: 0;
	text-align: left;
}

.pet-result-meta div {
	display: grid;
	gap: 2px;
}

.pet-result-meta dt {
	color: var(--pet-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pet-result-meta dd {
	color: #253142;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
}

.pet-diagram {
	min-height: 260px;
	min-width: 0;
	width: 100%;
}

.pet-diagram svg {
	display: block;
	height: auto;
	width: 100%;
}

.pet-diagram__cable {
	fill: none;
	stroke: #252b31;
	stroke-linecap: square;
	stroke-width: 20;
	transition: d 180ms ease, stroke 180ms ease;
}

.pet-diagram[data-pet-bend-state="target"] .pet-diagram__cable {
	stroke: #21845b;
}

.pet-diagram[data-pet-bend-state="minimum"] .pet-diagram__cable {
	stroke: #b87417;
}

.pet-diagram[data-pet-bend-state="below"] .pet-diagram__cable {
	stroke: #b8342a;
}

.pet-diagram__inner {
	fill: none;
	stroke: #8b96a5;
	stroke-width: 1.4;
}

.pet-diagram__minimum {
	fill: none;
	stroke: #b87417;
	stroke-dasharray: 4 5;
	stroke-width: 1.3;
}

.pet-diagram__minimum[hidden],
.pet-diagram__small[hidden] {
	display: none;
}

.pet-diagram__guide {
	stroke: #b7c1cf;
	stroke-dasharray: 6 7;
	stroke-width: 1;
}

.pet-diagram__measure {
	stroke: #253142;
	stroke-width: 1.5;
}

.pet-diagram__od {
	stroke: #8b96a5;
	stroke-width: 1.5;
}

.pet-diagram__text {
	fill: #202a3a;
	font-size: 10px;
	font-weight: 800;
}

.pet-diagram__small {
	fill: #4f5d70;
	font-size: 8.5px;
	font-weight: 700;
}

.pet-bend-demo {
	--pet-bend-target-offset: -1px;
	--pet-bend-target-position: 50%;
	display: grid;
	gap: 10px;
	margin-top: 10px;
	position: relative;
}

.pet-bend-demo::after {
	background: #176b49;
	border-radius: 999px;
	box-shadow: 0 0 0 3px rgba(33, 132, 91, 0.14);
	content: "";
	height: 20px;
	left: calc(var(--pet-bend-target-position) + var(--pet-bend-target-offset));
	pointer-events: none;
	position: absolute;
	top: 62px;
	transform: translateX(-50%);
	width: 2px;
	z-index: 0;
}

.pet-bend-demo__header,
.pet-bend-demo__readout {
	align-items: center;
	display: grid;
	gap: 6px;
	grid-template-columns: minmax(54px, 1fr) minmax(112px, 136px) minmax(54px, 1fr);
}

.pet-bend-demo__header {
	min-height: 48px;
}

.pet-bend-demo__header span,
.pet-bend-demo__readout span {
	color: var(--pet-muted);
	font-size: 11px;
	font-weight: 750;
	line-height: 1.3;
}

.pet-bend-demo__header span:last-child {
	text-align: right;
}

.pet-bend-demo__header strong {
	background: #e9f6ef;
	border: 1px solid rgba(33, 132, 91, 0.22);
	border-radius: 999px;
	color: #176b49;
	font-size: 11px;
	font-weight: 850;
	justify-self: center;
	line-height: 1.2;
	max-width: 136px;
	padding: 5px 8px;
	text-align: center;
	width: fit-content;
}

.pet-diagram[data-pet-bend-state="minimum"] .pet-bend-demo__header strong {
	background: #fff5e6;
	border-color: rgba(184, 116, 23, 0.24);
	color: #89550e;
}

.pet-diagram[data-pet-bend-state="below"] .pet-bend-demo__header strong {
	background: #fff0ee;
	border-color: rgba(184, 52, 42, 0.24);
	color: #9f2b23;
}

.pet-diagram[data-pet-bend-state="unavailable"] .pet-bend-demo__header strong {
	background: #f2f5fa;
	border-color: var(--pet-line);
	color: var(--pet-muted);
}

.pet-bend-demo input[type="range"] {
	appearance: none;
	background: transparent;
	color: var(--pet-blue);
	cursor: pointer;
	height: 28px;
	margin: 0;
	position: relative;
	width: 100%;
	z-index: 1;
}

.pet-bend-demo input[type="range"]::-webkit-slider-runnable-track {
	background: #d7dee8;
	border: 1px solid #b9c4d2;
	border-radius: 999px;
	height: 6px;
}

.pet-bend-demo input[type="range"]::-webkit-slider-thumb {
	appearance: none;
	background: var(--pet-blue);
	border: 2px solid #fff;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(23, 32, 51, 0.26);
	height: 16px;
	margin-top: -6px;
	width: 16px;
}

.pet-bend-demo input[type="range"]::-moz-range-track {
	background: #d7dee8;
	border: 1px solid #b9c4d2;
	border-radius: 999px;
	height: 6px;
}

.pet-bend-demo input[type="range"]::-moz-range-thumb {
	background: var(--pet-blue);
	border: 2px solid #fff;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(23, 32, 51, 0.26);
	height: 16px;
	width: 16px;
}

.pet-bend-demo[data-pet-slider-at-target] input[type="range"]::-webkit-slider-thumb {
	background: #21845b;
	box-shadow: 0 0 0 5px rgba(33, 132, 91, 0.18), 0 2px 6px rgba(23, 32, 51, 0.24);
}

.pet-bend-demo[data-pet-slider-at-target] input[type="range"]::-moz-range-thumb {
	background: #21845b;
	box-shadow: 0 0 0 5px rgba(33, 132, 91, 0.18), 0 2px 6px rgba(23, 32, 51, 0.24);
}

.pet-bend-demo__readout {
	grid-template-columns: minmax(0, 1fr);
}

.pet-bend-demo__readout span {
	text-align: left;
}

.pet-reference {
	background: var(--pet-soft);
	border-radius: 8px;
	margin-top: 26px;
	padding: 20px;
}

.pet-reference h3 {
	color: #263348;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 12px;
}

.pet-reference ul {
	display: grid;
	gap: 9px;
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}

.pet-reference li {
	color: #334056;
	font-size: 13px;
	line-height: 1.45;
	padding-left: 24px;
	position: relative;
}

.pet-reference li::before {
	color: var(--pet-blue);
	content: "+";
	font-weight: 900;
	left: 0;
	position: absolute;
	top: 0;
}

.pet-reference p {
	color: var(--pet-muted);
	font-size: 12px;
	line-height: 1.55;
	margin: 0;
}

.pet-quick-list {
	display: grid;
	gap: 0;
}

.pet-quick-list div {
	border-bottom: 1px solid var(--pet-line);
	display: grid;
	gap: 8px;
	padding: 18px 0;
}

.pet-quick-list div:first-child {
	padding-top: 0;
}

.pet-quick-list span {
	color: var(--pet-muted);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.35;
}

.pet-quick-list strong {
	color: #243042;
	font-size: 16px;
	line-height: 1.3;
}

.pet-definition {
	background: var(--pet-soft);
	border-radius: 8px;
	display: grid;
	gap: 6px;
	margin-top: 22px;
	padding: 18px;
}

.pet-definition strong {
	color: #263348;
	font-size: 14px;
}

.pet-definition span {
	color: var(--pet-muted);
	font-size: 13px;
}

.pet-disclaimer {
	align-items: flex-start;
	background: rgba(246, 248, 251, 0.82);
	border: 1px solid rgba(223, 231, 242, 0.76);
	border-radius: 10px;
	color: #526073;
	display: flex;
	font-size: 13px;
	gap: 12px;
	line-height: 1.55;
	margin: 22px 0 0;
	padding: 18px 22px;
}

.pet-disclaimer span {
	flex: 0 0 auto;
}

.pet-disclaimer__icon {
	align-items: center;
	border: 1px solid rgba(30, 115, 216, 0.48);
	border-radius: 999px;
	color: var(--pet-blue);
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	height: 19px;
	justify-content: center;
	line-height: 1;
	margin-top: 1px;
	width: 19px;
}

@media (max-width: 1050px) {
	.pet-calculator__grid {
		grid-template-columns: 1fr;
	}

	.pet-card {
		padding: 22px;
	}
}

@media (max-width: 700px) {
	.pet-calculator {
		padding: 18px 12px;
	}

	.pet-results-layout {
		grid-template-columns: 1fr;
	}

	.pet-inline-control--with-unit {
		grid-template-columns: minmax(0, 1fr) 86px;
	}

	.pet-result-panel__value {
		font-size: 34px;
	}

	.pet-diagram {
		min-height: 0;
	}

	.pet-bend-demo__header span,
	.pet-bend-demo__header span:last-child,
	.pet-bend-demo__header strong,
	.pet-bend-demo__readout span,
	.pet-bend-demo__readout span:last-child {
		max-width: none;
	}

	.pet-bend-demo__header {
		grid-template-columns: minmax(0, 1fr) minmax(118px, 150px) minmax(0, 1fr);
	}

	.pet-bend-demo__header span:first-child {
		text-align: left;
	}

	.pet-bend-demo__header span:last-child {
		text-align: right;
	}

	.pet-bend-demo__header strong {
		max-width: 150px;
		text-align: center;
	}

	.pet-bend-demo__readout span,
	.pet-bend-demo__readout span:last-child {
		text-align: left;
	}

	.pet-bend-demo__readout {
		grid-template-columns: 1fr;
	}
}

/*
 * Theme guard: WordPress themes often style headings, form fields, and buttons
 * with selectors such as ".entry-content h2" or ".site button". These scoped
 * rules keep the calculator looking the same when embedded on a live site.
 */
.pet-calculator,
.pet-calculator h2,
.pet-calculator h3,
.pet-calculator p,
.pet-calculator label,
.pet-calculator input,
.pet-calculator select,
.pet-calculator button,
.pet-calculator span,
.pet-calculator strong,
.pet-calculator li,
.pet-calculator dt,
.pet-calculator dd {
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pet-calculator .pet-card__eyebrow {
	color: var(--pet-blue);
	font-size: 13px;
	font-style: normal;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.2;
	margin: 0 0 22px;
	padding: 0;
	text-transform: uppercase;
}

.pet-calculator .pet-button,
.pet-calculator button.pet-button {
	appearance: none;
	background-image: none;
	border: 0;
	border-radius: 7px;
	box-shadow: none;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	height: 44px;
	line-height: 1;
	margin: 0;
	padding: 0 16px;
	text-transform: none;
}

.pet-calculator .pet-button--primary,
.pet-calculator button.pet-button--primary {
	background: var(--pet-blue);
	box-shadow: 0 10px 22px rgba(30, 115, 216, 0.24);
	color: #fff;
}

.pet-calculator .pet-button--ghost,
.pet-calculator button.pet-button--ghost {
	background: #f2f5fa;
	color: var(--pet-blue-dark);
}

.pet-calculator .pet-field input,
.pet-calculator .pet-field select {
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.2;
	margin: 0;
	text-transform: none;
}
