/* Whimsy Stick Plan. Loaded only on plan pages. Everything is scoped under .wsp-root.
   Light Whimsy theme: cream, white cards, moss pill buttons, sage accents. No dark backgrounds.
   Contrast (WCAG AA, checked): body #3A3935 on cream 10.4, muted #706F6A on white 5.0 / cream 4.55,
   cream on moss 7.2, white on sage 4.9, "worse" #8A5310 on white 6.3. */

.wsp-root {
	--wsp-cream: #F7F3EC;
	--wsp-parch: #EDE8DF;
	--wsp-white: #FFFFFF;
	--wsp-border: #E3DDD4;
	--wsp-forest: #1E3A2F;
	--wsp-moss: #2D5A3D;
	--wsp-sage: #4A7C59;
	--wsp-sage-tint: #EEF4EF;
	--wsp-text: #3A3935;
	--wsp-muted: #706F6A;
	--wsp-worse: #8A5310;
	--wsp-warn-bg: #FBF1E1;
	--wsp-error: #C0392B;
	--wsp-shadow: 0 2px 16px rgba(0, 0, 0, .06);
	--wsp-radius: 14px;
	--wsp-head: 'Hanken Grotesk', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--wsp-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	color: var(--wsp-text);
	font-family: var(--wsp-body);
	font-size: 16px;
	line-height: 1.6;
	max-width: 760px;
}

.wsp-root *,
.wsp-root *::before,
.wsp-root *::after { box-sizing: border-box; }

.wsp-root.wsp-public {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Type */
.wsp-root .wsp-h1,
.wsp-root .wsp-h2,
.wsp-root .wsp-h3,
.wsp-root .wsp-h4 {
	font-family: var(--wsp-head);
	font-weight: 600;
	color: var(--wsp-forest);
	letter-spacing: -0.01em;
	margin: 0 0 10px;
}
.wsp-root .wsp-h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; }
.wsp-root .wsp-h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; }
.wsp-root .wsp-h3 { font-size: 22px; line-height: 1.25; }
.wsp-root .wsp-h4 { font-size: 18px; line-height: 1.3; }
.wsp-root p { margin: 0 0 12px; }
.wsp-root a { color: var(--wsp-moss); text-underline-offset: 2px; }
.wsp-root a:hover { color: var(--wsp-forest); }

.wsp-root .wsp-kicker {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #3D6B4B; /* 5.5:1 on cream and sage tint, 6.2:1 on white (sage #4A7C59 was 4.4 on cream). */
	margin: 0 0 6px;
}
.wsp-root .wsp-muted { color: var(--wsp-muted); font-size: 15px; }
.wsp-root .wsp-fine { color: var(--wsp-muted); font-size: 14px; }
.wsp-root .wsp-lead { font-size: 18px; max-width: 640px; }
.wsp-root .wsp-head { margin: 0 0 18px; }
.wsp-root .wsp-back { margin: 0 0 14px; font-size: 15px; }
.wsp-root .wsp-dot { color: var(--wsp-muted); padding: 0 4px; }

/* Cards */
.wsp-root .wsp-card {
	background: var(--wsp-white);
	border: 1px solid var(--wsp-border);
	border-radius: var(--wsp-radius);
	box-shadow: var(--wsp-shadow);
	padding: 22px;
	margin: 0 0 16px;
	position: relative;
}
.wsp-root .wsp-card-feature { background: var(--wsp-sage-tint); border-color: #D5E3D8; }
/* Muted/fine text and kickers sit on the sage tint here: darken them to keep AA with margin
   (#706F6A on #EEF4EF is only 4.51, sage #4A7C59 on it is 4.36). */
.wsp-root .wsp-card-feature .wsp-muted,
.wsp-root .wsp-card-feature .wsp-fine,
.wsp-root .wsp-card-feature .wsp-help { color: #5F5E59; }
.wsp-root .wsp-card-feature .wsp-kicker { color: var(--wsp-moss); }
.wsp-root .wsp-card-due { border-left: 4px solid var(--wsp-sage); }
.wsp-root .wsp-card-quiet { box-shadow: none; }
.wsp-root .wsp-card > :last-child { margin-bottom: 0; }

/* Buttons. Element + class selectors so theme a/button rules can't wash them out. */
.wsp-root a.wsp-btn,
.wsp-root button.wsp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 26px;
	border: 2px solid var(--wsp-moss);
	border-radius: 100px;
	background: var(--wsp-moss);
	color: var(--wsp-cream);
	font-family: var(--wsp-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.wsp-root a.wsp-btn:hover,
.wsp-root button.wsp-btn:hover,
.wsp-root a.wsp-btn:focus-visible,
.wsp-root button.wsp-btn:focus-visible {
	background: var(--wsp-forest);
	border-color: var(--wsp-forest);
	color: var(--wsp-cream);
}
.wsp-root a.wsp-btn-ghost,
.wsp-root button.wsp-btn-ghost {
	background: var(--wsp-white);
	color: var(--wsp-moss);
}
.wsp-root a.wsp-btn-ghost:hover,
.wsp-root button.wsp-btn-ghost:hover {
	background: var(--wsp-moss);
	color: var(--wsp-cream);
}
/* The site's Additional CSS forces My Account links to #3A3935 with !important, which
   turned moss pill buttons dark-on-dark. Win back the button colors (and only those). */
body .woocommerce .woocommerce-MyAccount-content .wsp-root a.wsp-btn { color: var(--wsp-cream) !important; }
body .woocommerce .woocommerce-MyAccount-content .wsp-root a.wsp-btn-ghost { color: var(--wsp-moss) !important; }
body .woocommerce .woocommerce-MyAccount-content .wsp-root a.wsp-btn:hover,
body .woocommerce .woocommerce-MyAccount-content .wsp-root a.wsp-btn:focus-visible { color: var(--wsp-cream) !important; }
.wsp-root a.wsp-btn-small,
.wsp-root button.wsp-btn-small { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.wsp-root button.wsp-btn[disabled] { opacity: .55; cursor: not-allowed; }

.wsp-root :focus-visible { outline: 3px solid var(--wsp-sage); outline-offset: 2px; }
/* Headings/legends get focus from the stepper for screen readers; no box around them. */
.wsp-root [tabindex="-1"]:focus,
.wsp-root [tabindex="-1"]:focus-visible { outline: none; }

/* Plan header */
.wsp-root .wsp-plan { margin: 0 0 28px; scroll-margin-top: 140px; } /* Clears the sticky site header after #wsp-dog-N jumps. */
.wsp-root .wsp-plan-head { margin: 0 0 12px; }
.wsp-root .wsp-meta { color: var(--wsp-muted); font-size: 15px; margin: 0 0 8px; }
.wsp-root .wsp-bar {
	height: 8px;
	background: var(--wsp-parch);
	border-radius: 100px;
	overflow: hidden;
}
.wsp-root .wsp-bar span { display: block; height: 100%; background: var(--wsp-sage); border-radius: 100px; }

.wsp-root .wsp-dogtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.wsp-root a.wsp-dogtab {
	padding: 6px 14px;
	border: 1px solid var(--wsp-border);
	border-radius: 100px;
	background: var(--wsp-white);
	color: var(--wsp-forest);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
}

/* Session steps */
.wsp-root .wsp-steps { margin: 0 0 12px; padding-left: 22px; }
.wsp-root .wsp-steps li { margin: 0 0 8px; padding-left: 4px; }
.wsp-root .wsp-steps strong { color: var(--wsp-forest); }
.wsp-root .wsp-done {
	display: inline-block;
	background: var(--wsp-sage-tint);
	color: var(--wsp-forest);
	border-radius: 12px;
	padding: 10px 18px;
	font-weight: 600;
	margin: 0;
}

/* Offer */
.wsp-root .wsp-card-offer { padding-right: 52px; }
.wsp-root .wsp-dismiss { position: absolute; top: 10px; right: 10px; margin: 0; }
.wsp-root button.wsp-x {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wsp-muted);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.wsp-root button.wsp-x:hover { background: var(--wsp-cream); color: var(--wsp-forest); }

.wsp-root .wsp-links { font-size: 15px; color: var(--wsp-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 18px; }

/* 1.0.4: forgiving plan states */
.wsp-root .wsp-lead-sm { font-size: 17px; margin: 6px 0 0; max-width: 640px; }
.wsp-root .wsp-card-wait { border-left: 4px solid var(--wsp-moss); }
.wsp-root .wsp-calm {
	background: var(--wsp-sage-tint);
	border-radius: 10px;
	padding: 14px 16px;
	margin: 0 0 14px;
	color: var(--wsp-forest);
}
.wsp-root .wsp-calm p { margin: 0 0 8px; }
.wsp-root .wsp-calm p:last-child { margin: 0; }
.wsp-root .wsp-inline { display: inline-block; margin: 6px 12px 0 0; vertical-align: middle; }
.wsp-root .wsp-links .wsp-inline { margin: 0; }
.wsp-root button.wsp-linkbtn {
	background: none;
	border: 0;
	padding: 4px 0;
	margin: 0;
	min-height: 0;
	font: inherit;
	font-size: 15px;
	color: var(--wsp-moss);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	box-shadow: none;
	border-radius: 0;
	width: auto;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
}
.wsp-root button.wsp-linkbtn:hover,
.wsp-root button.wsp-linkbtn:focus { background: none; color: var(--wsp-forest); }
.wsp-root .wsp-welcome {
	background: var(--wsp-sage-tint);
	border: 1px solid #D5E3D8;
	color: var(--wsp-forest);
	border-radius: var(--wsp-radius);
	padding: 14px 18px;
	margin: 0 0 14px;
	font-weight: 600;
}
.wsp-root .wsp-cheer { color: var(--wsp-forest); font-style: italic; margin: 0 0 12px; }
.wsp-root .wsp-steps-simple li { font-size: 17px; }

/* Forms */
.wsp-root .wsp-form { margin: 14px 0 0; }
.wsp-root .wsp-fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.wsp-root .wsp-legend {
	font-family: var(--wsp-head);
	font-weight: 600;
	color: var(--wsp-forest);
	font-size: 18px;
	line-height: 1.35;
	padding: 0;
	margin: 0 0 14px;
}
/* A fieldset styled as a card: keep the legend inside the card instead of on its border. */
.wsp-root fieldset.wsp-card { min-width: 0; }
.wsp-root fieldset.wsp-card > legend.wsp-legend { float: left; width: 100%; }
.wsp-root fieldset.wsp-card > legend.wsp-legend + * { clear: both; }
.wsp-root .wsp-field { margin: 0 0 14px; }
.wsp-root .wsp-field label { display: block; font-weight: 600; color: var(--wsp-forest); margin: 0 0 6px; font-size: 15px; }
.wsp-root .wsp-field input,
.wsp-root .wsp-field select,
.wsp-root .wsp-slider select {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid #CFC8BC;
	border-radius: 10px;
	background: var(--wsp-white);
	color: var(--wsp-text);
	font: inherit;
}
.wsp-root .wsp-help { display: block; color: var(--wsp-muted); font-size: 14px; margin-top: 6px; }
.wsp-root .wsp-field-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 560px) {
	.wsp-root .wsp-field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.wsp-root .wsp-newdog[hidden] { display: none; }

.wsp-root .wsp-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 12px;
	cursor: pointer;
}
.wsp-root .wsp-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; accent-color: var(--wsp-moss); }
.wsp-root .wsp-consent { background: var(--wsp-white); border: 1px solid var(--wsp-border); border-radius: 10px; padding: 12px 14px; margin: 16px 0; }

/* Choice pills and count buttons */
.wsp-root .wsp-choices { display: grid; gap: 8px; }
.wsp-root .wsp-counts { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.wsp-root .wsp-option,
.wsp-root .wsp-count { position: relative; display: block; margin: 0 0 8px; cursor: pointer; }
.wsp-root .wsp-choices .wsp-option,
.wsp-root .wsp-counts .wsp-count { margin: 0; }
.wsp-root .wsp-option input,
.wsp-root .wsp-count input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
.wsp-root .wsp-option span,
.wsp-root .wsp-count span {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 10px 16px;
	border: 1.5px solid var(--wsp-border);
	border-radius: 12px;
	background: var(--wsp-white);
	color: var(--wsp-text);
	font-weight: 500;
	transition: border-color .12s ease, background-color .12s ease;
}
.wsp-root .wsp-count span { justify-content: center; padding: 10px 0; font-weight: 600; }
.wsp-root .wsp-option:hover span,
.wsp-root .wsp-count:hover span { border-color: var(--wsp-sage); }
.wsp-root .wsp-option input:checked + span,
.wsp-root .wsp-count input:checked + span {
	background: var(--wsp-sage);
	border-color: var(--wsp-sage);
	color: var(--wsp-white);
}
.wsp-root .wsp-option input:focus-visible + span,
.wsp-root .wsp-count input:focus-visible + span { outline: 3px solid var(--wsp-sage); outline-offset: 2px; }

/* Slider (starts empty: no thumb, no fill, until touched) */
.wsp-root .wsp-slider-ends { display: flex; justify-content: space-between; font-size: 14px; color: var(--wsp-muted); margin-top: 8px; }
.wsp-root .wsp-range-value {
	font-family: var(--wsp-head);
	font-weight: 600;
	font-size: 28px;
	color: var(--wsp-forest);
	text-align: center;
	min-height: 40px;
	margin: 0 0 8px;
}
.wsp-root .wsp-range-value.is-empty { font-family: var(--wsp-body); font-size: 15px; font-weight: 500; color: var(--wsp-muted); padding-top: 10px; }
.wsp-root input.wsp-range {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 44px;
	background: transparent;
	margin: 0;
	cursor: pointer;
	--wsp-fill: 0%;
}
.wsp-root input.wsp-range::-webkit-slider-runnable-track {
	height: 8px;
	border-radius: 100px;
	background: linear-gradient(to right, var(--wsp-sage) var(--wsp-fill), var(--wsp-parch) var(--wsp-fill));
}
.wsp-root input.wsp-range::-moz-range-track { height: 8px; border-radius: 100px; background: var(--wsp-parch); }
.wsp-root input.wsp-range::-moz-range-progress { height: 8px; border-radius: 100px; background: var(--wsp-sage); }
.wsp-root input.wsp-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 28px;
	height: 28px;
	margin-top: -10px;
	border-radius: 50%;
	background: var(--wsp-moss);
	border: 3px solid var(--wsp-white);
	box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}
.wsp-root input.wsp-range::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--wsp-moss);
	border: 3px solid var(--wsp-white);
	box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}
.wsp-root input.wsp-range.is-empty::-webkit-slider-thumb { opacity: 0; }
.wsp-root input.wsp-range.is-empty::-moz-range-thumb { opacity: 0; }
.wsp-root input.wsp-range.is-empty::-moz-range-progress { background: transparent; }

/* Stepper (JS) */
.wsp-root .wsp-stepper-on .wsp-step { display: none; }
.wsp-root .wsp-stepper-on .wsp-step.is-current { display: block; }
.wsp-root .wsp-stepper-on .wsp-step-nav [data-wsp-submit] { display: none; }
.wsp-root .wsp-stepper-on.is-last .wsp-step-nav [data-wsp-submit] { display: inline-flex; }
.wsp-root .wsp-step-nav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.wsp-root .wsp-step-progress { margin: 0 0 14px; }
.wsp-root .wsp-step-progress p { font-size: 14px; color: var(--wsp-muted); margin: 0 0 6px; }
.wsp-root .wsp-step-error { color: var(--wsp-error); font-size: 15px; margin: 8px 0 0; }

/* Progress */
.wsp-root .wsp-chart { width: 100%; height: auto; display: block; margin: 6px 0 10px; }
.wsp-root .wsp-chart-grid { stroke: var(--wsp-border); stroke-width: 1; }
.wsp-root .wsp-chart-axis { fill: var(--wsp-muted); font-size: 13px; font-family: var(--wsp-body); }
.wsp-root .wsp-chart-line { fill: none; stroke: var(--wsp-sage); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.wsp-root .wsp-chart-dot { fill: var(--wsp-white); stroke: var(--wsp-moss); stroke-width: 3; }
.wsp-root .wsp-chart-value { fill: var(--wsp-forest); font-size: 15px; font-weight: 600; font-family: var(--wsp-body); }

.wsp-root .wsp-table-wrap { overflow-x: auto; margin: 4px 0 12px; }
.wsp-root table.wsp-compare { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; border: 0; }
.wsp-root table.wsp-compare th,
.wsp-root table.wsp-compare td { padding: 10px 8px; border: 0; border-bottom: 1px solid var(--wsp-border); text-align: left; vertical-align: top; background: transparent; }
.wsp-root table.wsp-compare thead th { color: var(--wsp-muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.wsp-root table.wsp-compare tbody th { color: var(--wsp-forest); font-weight: 600; }
.wsp-root .wsp-dir { font-weight: 600; white-space: nowrap; }
.wsp-root .wsp-dir-better { color: var(--wsp-sage); }
.wsp-root .wsp-dir-same { color: var(--wsp-muted); }
.wsp-root .wsp-dir-worse { color: var(--wsp-worse); }

.wsp-root .wsp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.wsp-root .wsp-stat { background: var(--wsp-white); border: 1px solid var(--wsp-border); border-radius: var(--wsp-radius); padding: 14px 10px; text-align: center; }
.wsp-root .wsp-stat-n { display: block; font-family: var(--wsp-head); font-weight: 600; font-size: 28px; color: var(--wsp-forest); line-height: 1.1; }
.wsp-root .wsp-stat-l { display: block; font-size: 13px; color: var(--wsp-muted); }

.wsp-root .wsp-stop { margin: 20px 0 0; font-size: 15px; color: var(--wsp-muted); }
.wsp-root .wsp-stop summary { cursor: pointer; }
.wsp-root .wsp-stop form { margin-top: 10px; }

.wsp-root .wsp-reminders { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0 10px; }
.wsp-root .wsp-reminders .wsp-check { margin: 0; flex: 1 1 260px; }

/* Public page */
.wsp-root .wsp-hero { padding: 24px 0 8px; }
.wsp-root .wsp-section { padding: 28px 0 8px; }
.wsp-root .wsp-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
	.wsp-root .wsp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
	.wsp-root .wsp-grid:not(.wsp-grid-2) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.wsp-root .wsp-grid .wsp-card { margin: 0; }
.wsp-root .wsp-cta-row { margin: 18px 0 10px; }
.wsp-root .wsp-close { text-align: center; padding-bottom: 32px; }

@media (max-width: 600px) {
	/* Some themes give My Account no side padding on phones; keep a 16px gutter. */
	.wsp-root:not(.wsp-public) { padding-left: 16px; padding-right: 16px; }
	/* The chart is a 640-wide viewBox scaled down; bump its text so it stays readable. */
	.wsp-root .wsp-chart-axis { font-size: 24px; }
	.wsp-root .wsp-chart-value { font-size: 28px; }
	.wsp-root .wsp-chart-dot { stroke-width: 4; }
}

@media (max-width: 480px) {
	.wsp-root .wsp-card { padding: 18px 16px; }
	.wsp-root .wsp-counts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.wsp-root a.wsp-btn,
	.wsp-root button.wsp-btn { width: 100%; }
	.wsp-root button.wsp-x { width: 36px; }
	.wsp-root .wsp-reminders button.wsp-btn { width: auto; }
	.wsp-root .wsp-card-wait .wsp-inline { display: block; margin: 8px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
	.wsp-root * { transition: none !important; }
}
