/* SMART SET — scoped under .ss so the theme stays untouched. */
.ss {
	--ss-ink: #17202e;
	--ss-ink-2: #4a5568;
	--ss-paper: #fbfcfe;
	--ss-grid: #e3e8f2;
	--ss-line: #cdd5e3;
	--ss-e: #0f6b4f;
	--ss-e-soft: #e3f1ec;
	--ss-s: #2350c8;
	--ss-s-soft: #e6ecfb;
	--ss-mark: #fd5700;
	--ss-brand: #fd5700;
	--ss-brand-ink: #b83f00;
	--ss-err: #b42318;
	--ss-err-soft: #fdecea;
	--ss-radius-sm: 6px;
	--ss-radius: 12px;
	--ss-head: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, sans-serif;
	--ss-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	color: var(--ss-ink);
	font-family: var(--ss-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	max-width: 760px;
	margin: 0 auto;
}
.ss *, .ss *::before, .ss *::after { box-sizing: border-box; }
.ss [hidden] { display: none !important; }
.ss h1, .ss h2, .ss h3, .ss h4 {
	font-family: var(--ss-head);
	color: var(--ss-ink);
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
}
.ss h2 { font-size: 1.5rem; font-weight: 700; }
.ss h3 { font-size: 1.2rem; font-weight: 700; }
.ss h4 { font-size: 1rem; font-weight: 700; }
.ss p { margin: 0 0 0.9em; max-width: 68ch; }
.ss a { color: var(--ss-s); text-underline-offset: 2px; }
.ss .ss-muted { color: var(--ss-ink-2); font-weight: 400; }
.ss .ss-note { font-size: 0.9rem; color: var(--ss-ink-2); }
.ss .ss-lede { color: var(--ss-ink-2); }
.ss .ss-e { color: var(--ss-e); }
.ss .ss-s { color: var(--ss-s); }

.ss .ss-block { margin: 2.25rem 0; }

/* Buttons */
.ss .ss-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1.25rem 0; }
.ss .ss-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0.7rem 1.4rem;
	border-radius: 999px; border: 2px solid transparent;
	font: 600 1rem/1.2 var(--ss-body); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.ss .ss-btn--primary { background: var(--ss-ink); color: #fff; }
.ss .ss-btn--primary:hover { background: var(--ss-brand); color: #000; }
.ss .ss-btn--ghost { background: transparent; color: var(--ss-ink); border-color: var(--ss-ink); }
.ss .ss-btn--ghost:hover { background: var(--ss-ink); color: #fff; }
.ss .ss-btn--lg { min-height: 56px; padding: 0.9rem 2rem; font-size: 1.1rem; }
.ss .ss-btn[disabled] { opacity: .6; cursor: progress; }
.ss .ss-btn:focus-visible, .ss .ss-input:focus-visible, .ss a:focus-visible,
.ss .ss-opt input:focus-visible + .ss-opt__box, .ss .ss-check input:focus-visible {
	outline: 3px solid var(--ss-mark); outline-offset: 2px;
}

/* ---------- Landing ---------- */
.ss-landing { max-width: 1040px; }
.ss .ss-hero {
	display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center;
	padding: 2.5rem 0 1rem;
}
.ss .ss-hero__brand {
	font: 800 1rem/1 var(--ss-head); color: var(--ss-ink);
	display: inline-block; padding: .35rem .6rem; background: var(--ss-mark); border-radius: var(--ss-radius-sm);
	margin-bottom: 1.25rem;
}
.ss .ss-hero__title { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; line-height: 1.08; max-width: 16ch; }
.ss .ss-hero__lede { font-size: 1.15rem; color: var(--ss-ink-2); }
.ss .ss-hero__facts { font-size: .95rem; color: var(--ss-ink-2); }
.ss .ss-hero__map { background: var(--ss-paper); border: 1px solid var(--ss-line); border-radius: var(--ss-radius); padding: 1rem; }
.ss .ss-hero__caption { font-size: .85rem; color: var(--ss-ink-2); text-align: center; margin: .25rem 0 0; max-width: none; }

.ss .ss-steps { list-style: none; counter-reset: ss; padding: 0; margin: 0; display: grid; gap: 1rem; }
.ss .ss-steps li { counter-increment: ss; position: relative; padding-left: 3.25rem; min-height: 2.5rem; }
.ss .ss-steps li::before {
	content: counter(ss); position: absolute; left: 0; top: 0;
	width: 2.25rem; height: 2.25rem; border-radius: 50%;
	display: grid; place-items: center; font: 800 1rem/1 var(--ss-head);
	border: 2px solid var(--ss-ink);
}
.ss .ss-two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

/* ---------- Forms ---------- */
.ss .ss-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ss .ss-alert, .ss .ss-step-error {
	background: var(--ss-err-soft); color: var(--ss-err); border-left: 4px solid var(--ss-err);
	padding: .85rem 1rem; border-radius: var(--ss-radius-sm); margin: 1rem 0;
}
.ss .ss-success { background: var(--ss-e-soft); border-left: 4px solid var(--ss-e); padding: 1.25rem; border-radius: var(--ss-radius-sm); }
.ss .ss-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin: 1.25rem 0; }
.ss .ss-field { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .95rem; }
.ss .ss-field:first-child, .ss .ss-field--wide { grid-column: 1 / -1; }
.ss .ss-input {
	width: 100%; min-height: 48px; padding: .65rem .85rem;
	border: 1.5px solid var(--ss-line); border-radius: var(--ss-radius-sm);
	font: 400 1rem/1.4 var(--ss-body); color: var(--ss-ink); background: #fff;
}
.ss textarea.ss-input { min-height: 110px; }
.ss .ss-check { display: flex; gap: .75rem; align-items: flex-start; margin: .85rem 0; cursor: pointer; }
.ss .ss-check input { width: 22px; height: 22px; margin-top: .15rem; flex: none; accent-color: var(--ss-ink); }
.ss .is-missing > .ss-input, .ss label.is-missing .ss-input { border-color: var(--ss-err); }
.ss label.ss-check.is-missing { color: var(--ss-err); }

.ss .ss-consent { background: var(--ss-paper); border: 1px solid var(--ss-line); border-radius: var(--ss-radius); padding: 1.25rem; }
.ss .ss-consent ul { margin: 0 0 1rem 1.1rem; padding: 0; }
.ss .ss-consent li { margin: .3rem 0; }

/* Progress */
.ss .ss-progress { position: sticky; top: 0; z-index: 5; background: #fff; padding: .75rem 0 .5rem; margin-bottom: .5rem; }
.ss .ss-progress__bar { height: 8px; background: var(--ss-grid); border-radius: 999px; overflow: hidden; }
.ss .ss-progress__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ss-e), var(--ss-s)); transition: width .3s ease; }
.ss .ss-progress__text { font-size: .9rem; color: var(--ss-ink-2); margin: .4rem 0 0; }
html:not(.ss-js) .ss .ss-progress, html:not(.ss-js) .ss [data-smartset-next], html:not(.ss-js) .ss [data-smartset-prev] { display: none; }

/* Steps */
.ss .ss-step { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
.ss-js .ss .ss-step:not(.is-active) { display: none; }
.ss .ss-step__title { font: 800 1.45rem/1.2 var(--ss-head); padding: 0; margin-bottom: .4rem; }
.ss .ss-step__title:focus { outline: none; }
.ss .ss-step__intro { color: var(--ss-ink-2); }

/* Questions */
.ss .ss-q { padding: 1.25rem 0; border-top: 1px solid var(--ss-grid); scroll-margin-top: 90px; }
.ss .ss-q.is-missing .ss-q__text { color: var(--ss-err); }
.ss .ss-q.is-missing .ss-q__num { background: var(--ss-err); color: #fff; border-color: var(--ss-err); }
.ss .ss-q__text { font-weight: 600; margin-bottom: .85rem; display: flex; gap: .7rem; align-items: baseline; }
.ss .ss-q__num {
	flex: none; min-width: 2rem; height: 2rem; padding: 0 .4rem; border-radius: var(--ss-radius-sm);
	display: inline-grid; place-items: center; font: 800 .9rem/1 var(--ss-head);
	border: 1.5px solid var(--ss-ink);
}
.ss .ss-q__opts { display: grid; gap: .5rem; }
.ss .ss-q--a .ss-q__opts { grid-template-columns: repeat(5, 1fr); }
.ss .ss-opt { display: block; cursor: pointer; }
.ss .ss-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ss .ss-opt__box {
	display: flex; align-items: center; gap: .7rem; min-height: 48px; height: 100%;
	padding: .6rem .85rem; border: 1.5px solid var(--ss-line); border-radius: var(--ss-radius-sm);
	background: #fff; transition: border-color .12s, background-color .12s;
}
.ss .ss-q--a .ss-opt__box { justify-content: center; text-align: center; font-size: .88rem; line-height: 1.25; padding: .55rem .4rem; }
.ss .ss-opt__key { flex: none; font: 800 .9rem/1 var(--ss-head); width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--ss-grid); }
.ss .ss-opt:hover .ss-opt__box { border-color: var(--ss-ink-2); }
.ss .ss-opt input:checked + .ss-opt__box { border-color: var(--ss-ink); background: var(--ss-ink); color: #fff; }
.ss .ss-opt input:checked + .ss-opt__box .ss-opt__key { background: var(--ss-mark); color: var(--ss-ink); }

.ss .ss-nav { display: flex; gap: .75rem; justify-content: space-between; margin-top: 1rem; }
.ss .ss-nav [data-smartset-next], .ss .ss-nav [data-smartset-submit] { margin-left: auto; }
.ss .ss-sending { color: var(--ss-ink-2); font-size: .95rem; }

/* ---------- Report ---------- */
.ss .ss-report__kicker { font-weight: 600; color: var(--ss-ink-2); margin-bottom: .25rem; }
.ss .ss-report__name { font-size: 2.1rem; font-weight: 800; margin-bottom: .2rem; }
.ss .ss-report__meta { color: var(--ss-ink-2); }
.ss .ss-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.ss .ss-score { border-radius: var(--ss-radius); padding: 1.1rem 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .5rem; }
.ss .ss-score--e { background: var(--ss-e-soft); color: var(--ss-e); }
.ss .ss-score--s { background: var(--ss-s-soft); color: var(--ss-s); }
.ss .ss-score__label { flex-basis: 100%; font: 700 1.05rem/1 var(--ss-head); }
.ss .ss-score__value { font: 800 clamp(2.6rem, 8vw, 3.6rem)/1 var(--ss-head); letter-spacing: -0.03em; margin-top: .5rem; font-variant-numeric: tabular-nums; }
.ss .ss-score__max { font-size: .9rem; }

.ss .ss-profile { display: grid; grid-template-columns: 300px 1fr; gap: 1.75rem; align-items: center; }
.ss .ss-profile__map { background: var(--ss-paper); border: 1px solid var(--ss-line); border-radius: var(--ss-radius); padding: .5rem; }
.ss .ss-profile h3 { font-size: 1.35rem; }

.ss .ss-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ss .ss-table th, .ss .ss-table td { padding: .7rem .5rem; border-bottom: 1px solid var(--ss-grid); text-align: right; }
.ss .ss-table th:first-child { text-align: left; }
.ss .ss-table thead th { font-family: var(--ss-head); font-size: .95rem; border-bottom: 2px solid var(--ss-ink); }
.ss .ss-table thead th:nth-child(2) { color: var(--ss-e); }
.ss .ss-table thead th:nth-child(3) { color: var(--ss-s); }
.ss .ss-table tbody th { font-weight: 600; }

.ss .ss-dims__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.ss .ss-dims__col--e h4 { color: var(--ss-e); }
.ss .ss-dims__col--s h4 { color: var(--ss-s); }
.ss .ss-hl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.ss .ss-list { list-style: none; margin: 0; padding: 0; }
.ss .ss-list li { padding: .75rem 0; border-top: 1px solid var(--ss-grid); font-size: .97rem; }
.ss .ss-limits { background: var(--ss-paper); border: 1px solid var(--ss-line); border-radius: var(--ss-radius); padding: 1.25rem; }
.ss .ss-limits p { margin: 0; }
.ss .ss-cta { border-top: 2px solid var(--ss-ink); padding-top: 1.5rem; }
.ss .ss-link__field { font-size: .85rem; color: var(--ss-ink-2); }
.ss .ss-report__foot { font-size: .8rem; color: var(--ss-ink-2); border-top: 1px solid var(--ss-grid); padding-top: .75rem; margin-top: 2rem; }
.ss-empty { padding: 2rem 0; }

/* SVG */
.ss svg { display: block; width: 100%; height: auto; overflow: visible; }
.ss .ss-map__paper { fill: #fff; }
.ss .ss-map__grid { stroke: var(--ss-grid); stroke-width: 1; }
.ss .ss-map__t { stroke: var(--ss-ink-2); stroke-width: 1; stroke-dasharray: 4 4; }
.ss .ss-map__q { font: 600 9.5px var(--ss-body); fill: var(--ss-ink-2); }
.ss .ss-map__axis { stroke-width: 2.5; }
.ss .ss-map__axis--e { stroke: var(--ss-e); }
.ss .ss-map__axis--s { stroke: var(--ss-s); }
.ss .ss-map__lab { font: 700 12px var(--ss-head); }
.ss .ss-map__lab--e { fill: var(--ss-e); }
.ss .ss-map__lab--s { fill: var(--ss-s); }
.ss .ss-map__tick { font: 500 10px var(--ss-body); fill: var(--ss-ink-2); }
.ss .ss-map__halo { fill: var(--ss-mark); opacity: .55; }
.ss .ss-map__dot { fill: var(--ss-ink); }
.ss .ss-bars__lab { font: 500 13px var(--ss-body); fill: var(--ss-ink); }
.ss .ss-bars__val { font: 700 13px var(--ss-head); fill: var(--ss-ink); font-variant-numeric: tabular-nums; }
.ss .ss-bars__track { fill: var(--ss-grid); }
.ss .ss-dims__col--e .ss-bars__fill { fill: var(--ss-e); }
.ss .ss-dims__col--s .ss-bars__fill { fill: var(--ss-s); }


/* ---------- Brand (v1.2.1) ---------- */
.ss .ss-hero__logo { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 0 1.5rem; }
.ss .ss-logo-sm { display: block; width: 168px; max-width: 45%; height: auto; margin: 0 0 1.25rem; }
.ss .ss-report__head .ss-logo-sm { margin-bottom: 1rem; }
.ss .ss-hero__title { border-left: 6px solid var(--ss-brand); padding-left: 1rem; }
.ss .ss-steps li::before { border-color: var(--ss-brand); color: var(--ss-brand-ink); }
.ss .ss-cta { border-top-color: var(--ss-brand); }
/* The landing shows the logo itself; hide the theme's duplicate page title there. */
.home .wp-block-post-title, .home .entry-title { display: none; }

/* ---------- Report charts (v1.2) ---------- */
.ss .ss-chart { max-width: 560px; margin: .5rem 0; }
.ss .ss-caption { font-size: .88rem; color: var(--ss-ink-2); margin: .4rem 0 0; max-width: 68ch; }
.ss .ss-score__range { flex-basis: 100%; font-size: .85rem; margin-top: .3rem; color: var(--ss-ink-2); }
.ss .ss-profile__kicker { font-weight: 600; color: var(--ss-ink-2); margin-bottom: .2rem; }
.ss .ss-c__grid { stroke: var(--ss-grid); stroke-width: 1; }
.ss .ss-c__axis { stroke: var(--ss-ink-2); stroke-width: 1; }
.ss .ss-c__tick { font: 500 10px var(--ss-body); fill: var(--ss-ink-2); }
.ss .ss-c__lab { font: 600 12px var(--ss-body); fill: var(--ss-ink); }
.ss .ss-c__leg { font: 500 11px var(--ss-body); fill: var(--ss-ink); }
.ss .ss-c__bar--e { fill: var(--ss-e); }
.ss .ss-c__bar--s { fill: var(--ss-s); }
.ss .ss-c__err { stroke: var(--ss-ink); stroke-width: 1.5; }
.ss .ss-c__thr { stroke: var(--ss-ink-2); stroke-width: 1; stroke-dasharray: 4 3; }
.ss .ss-c__val { font: 700 12px var(--ss-head); fill: var(--ss-ink); font-variant-numeric: tabular-nums; }
.ss .ss-c__val--sm { font-size: 10.5px; }
.ss .ss-c__val--in { fill: #fff; }
.ss .ss-c__zone--0 { fill: #eef1f6; }
.ss .ss-c__zone--1 { fill: #dde3ee; }
.ss .ss-c__zone--2 { fill: #c9d2e3; }
.ss .ss-c__dot--e { fill: var(--ss-e); stroke: #fff; stroke-width: 2; }
.ss .ss-c__dot--s { fill: var(--ss-s); stroke: #fff; stroke-width: 2; }
.ss .ss-c__band { font: 600 11px var(--ss-body); fill: var(--ss-ink-2); }
.ss .ss-c__band--2 { fill: var(--ss-ink); }
.ss .ss-map__box { fill: var(--ss-brand); opacity: .22; stroke: var(--ss-brand-ink); stroke-width: 1; }
.ss .ss-readings { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.ss .ss-reading { border-left: 4px solid var(--ss-line); padding: .25rem 0 .25rem .85rem; }
.ss .ss-reading p { margin: 0 0 .3rem; font-size: .95rem; }
.ss .ss-reading--e { border-color: var(--ss-e); }
.ss .ss-reading--s { border-color: var(--ss-s); }
.ss .ss-reading__title { font-weight: 700; }
@media (max-width: 760px) { .ss .ss-readings { grid-template-columns: 1fr; } }
@media print {
	.ss .ss-c__bar--e, .ss .ss-c__bar--s, .ss [class*="ss-c__zone"], .ss [class*="ss-c__dot"], .ss .ss-map__box, .ss .ss-reading {
		-webkit-print-color-adjust: exact; print-color-adjust: exact;
	}
	.ss .ss-readings { grid-template-columns: 1fr 1fr; }
	.ss .ss-chart { max-width: 480px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
	.ss { font-size: 1rem; }
	.ss .ss-hero, .ss .ss-two, .ss .ss-profile, .ss .ss-dims__grid, .ss .ss-hl, .ss .ss-fields { grid-template-columns: 1fr; }
	.ss .ss-hero { gap: 1.5rem; padding-top: 1rem; }
	.ss .ss-profile__map { max-width: 340px; }
	.ss .ss-q--a .ss-q__opts { grid-template-columns: 1fr; }
	.ss .ss-q--a .ss-opt__box { justify-content: flex-start; text-align: left; font-size: .95rem; padding: .6rem .85rem; }
}
@media (max-width: 420px) {
	.ss .ss-scores { gap: .6rem; }
	.ss .ss-score { padding: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
	.ss *, .ss *::before, .ss *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print / PDF ---------- */
@media print {
	@page { margin: 14mm; }
	body * { visibility: hidden; }
	.ss-report, .ss-report * { visibility: visible; }
	.ss-report { position: absolute; left: 0; top: 0; width: 100%; max-width: none; font-size: 10.5pt; }
	.ss .ss-noprint { display: none !important; }
	.ss .ss-report__head .ss-logo-sm { width: 150px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.ss .ss-block { margin: 1rem 0; break-inside: avoid; }
	.ss .ss-score, .ss .ss-limits, .ss .ss-profile__map, .ss .ss-bars__fill, .ss .ss-map__halo {
		-webkit-print-color-adjust: exact; print-color-adjust: exact;
	}
	.ss .ss-profile { grid-template-columns: 240px 1fr; }
	.ss .ss-dims__grid, .ss .ss-hl, .ss .ss-scores { grid-template-columns: 1fr 1fr; }
}
