/* Active Sleaford - Sport & Activity Needs Assessment 2026 */

.as26 {
	--as-blue: #0060C0;
	--as-blue-dark: #0048AD;
	--as-cyan: #0098E0;
	--as-lime: #A8D810;
	--as-green: #1E7F3E;
	--as-ink: #102D4F;
	--as-text: #102D4F;
	--as-muted: #4E6175;
	--as-page: #F5FAFD;
	--as-border: #DDE8F0;
	--as-soft-blue: #EDF7FC;
	--as-soft-green: #F2F9E6;
	--as-error: #B42318;
	--as-error-soft: #FEF3F2;
	--as-radius: 16px;
	max-width: 860px;
	margin: 0 auto;
	padding: 24px 16px 56px;
	font-family: Inter, system-ui, 'Segoe UI', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: var(--as-text);
	box-sizing: border-box;
}
.as26 *, .as26 *::before, .as26 *::after { box-sizing: border-box; }
.as26 [hidden] { display: none !important; }
.as26 .as26-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.as26-progress-done { position: static; }
.as26 h1, .as26 h2, .as26 h3 { color: var(--as-ink); font-family: inherit; letter-spacing: -0.01em; }
.as26 p { margin: 0 0 14px; }
.as26 a { color: var(--as-blue); }
.as26 :focus-visible { outline: 3px solid var(--as-cyan); outline-offset: 2px; border-radius: 6px; }
.as26 [tabindex="-1"]:focus { outline: none; }

/* The site's off-canvas mobile menu sits outside the viewport and causes sideways
   scrolling on every page; contain it on survey pages without touching the header. */
body:has(#as26-app) { overflow-x: clip; }

/* Cards ------------------------------------------------------------------ */
.as26-card {
	background: #fff;
	border: 1px solid var(--as-border);
	border-radius: 24px;
	padding: 28px;
	box-shadow: 0 12px 30px rgba(11, 99, 201, .08);
}
@media (max-width: 600px) {
	.as26 { padding: 16px 12px 40px; }
	.as26-card { padding: 20px 16px; border-radius: 18px; }
}

.as26-pilot {
	background: #FFF8E1;
	border: 1px solid #F0D58C;
	color: #5C4500;
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 14px;
	margin-bottom: 16px;
}
.as26-restored {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	background: var(--as-soft-blue);
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 14px;
	margin-bottom: 14px;
}

/* Intro ------------------------------------------------------------------ */
.as26-hero { margin: -28px -28px 24px; border-radius: 24px 24px 0 0; overflow: hidden; background: var(--as-soft-blue); }
.as26-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 300px; object-fit: cover; object-position: 50% 88%; }
@media (max-width: 600px) {
	.as26-hero { margin: -20px -16px 20px; border-radius: 18px 18px 0 0; }
	.as26-hero img { max-height: 210px; }
}
.as26-title {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 800;
	color: var(--as-blue) !important;
	margin: 0 0 8px;
	line-height: 1.35;
}
.as26-tagline { font-size: clamp(26px, 5vw, 40px); line-height: 1.12; font-weight: 800; margin: 0 0 16px; }
.as26-intro > p { font-size: 17px; }
.as26-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0; }
.as26-chips li {
	background: var(--as-soft-blue);
	color: var(--as-ink);
	border-radius: 999px;
	padding: 7px 13px;
	font-size: 14px;
	font-weight: 600;
}
.as26-chips li::before { content: '✓'; color: var(--as-blue); margin-right: 6px; font-weight: 800; }
.as26-privacy {
	background: var(--as-soft-green);
	border: 1px solid #D7E9B5;
	border-radius: var(--as-radius);
	padding: 16px 20px;
	margin: 0 0 24px;
	font-size: 15px;
}
.as26-privacy h3 { font-size: 16px; margin: 0 0 6px; }
.as26-privacy ul { margin: 0; padding-left: 20px; }
.as26-privacy li { margin: 3px 0; }

/* Progress --------------------------------------------------------------- */
.as26-progress {
	position: sticky;
	top: 0;
	z-index: 5;
	background: rgba(255, 255, 255, .97);
	border: 1px solid var(--as-border);
	border-radius: 14px;
	padding: 11px 15px 12px;
	margin-bottom: 16px;
}
.admin-bar .as26-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .as26-progress { top: 0; } }
.as26-prow { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.as26-ptitle { font-weight: 700; color: var(--as-ink); font-size: 15px; }
.as26-ppct { font-size: 13px; color: var(--as-muted); white-space: nowrap; font-weight: 600; }
.as26-track { height: 8px; background: #E5EEF4; border-radius: 99px; overflow: hidden; }
.as26-fill { height: 100%; background: linear-gradient(90deg, var(--as-blue), var(--as-cyan)); border-radius: 99px; }
.as26-milestone { margin: 7px 0 0; font-size: 13px; color: var(--as-green); font-weight: 600; }

/* Section header --------------------------------------------------------- */
.as26-sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.as26-sec-head h2 { font-size: clamp(24px, 4vw, 30px); font-weight: 800; margin: 0; line-height: 1.15; }
.as26-icon {
	flex: 0 0 auto;
	width: 46px; height: 46px;
	border-radius: 14px;
	display: grid; place-items: center;
	background: var(--as-soft-blue);
	color: var(--as-blue);
}
.as26-icon svg { width: 26px; height: 26px; }
.as26-sec-intro { color: var(--as-muted); font-size: 15.5px; margin: 6px 0 18px; }
.as26-why {
	display: flex; gap: 12px;
	background: var(--as-soft-blue);
	border-radius: var(--as-radius);
	padding: 14px 16px;
	margin: 0 0 22px;
	font-size: 15px;
}
.as26-why-icon { color: var(--as-blue); flex: 0 0 auto; padding-top: 2px; }
.as26-why-icon svg { width: 22px; height: 22px; }
.as26-why h3 { font-size: 15px; margin: 0 0 3px; }
.as26-why p { margin: 0; }

/* Questions -------------------------------------------------------------- */
.as26-q {
	padding: 22px 0 6px;
	border-top: 1px solid #EDF2F6;
	scroll-margin-top: 110px;
}
.as26-sec-head + .as26-q, .as26-sec-intro + .as26-summary + .as26-q { border-top: 0; }
.as26-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.as26-label {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: var(--as-ink);
	line-height: 1.35;
	margin: 0 0 6px;
	padding: 0;
}
.as26-optional { font-weight: 500; color: var(--as-muted); font-size: 15px; }
.as26-help { font-size: 14.5px; color: var(--as-muted); margin: 0 0 12px; }
.as26-input {
	display: block;
	width: 100%;
	font: inherit;
	font-size: 16px; /* prevents iOS zoom */
	color: var(--as-ink);
	background: #fff;
	border: 1.5px solid #B8CAD7;
	border-radius: 12px;
	padding: 12px 14px;
	min-height: 48px;
	margin-top: 6px;
}
.as26-input:focus { border-color: var(--as-blue); outline: 3px solid rgba(54, 169, 225, .35); outline-offset: 0; }
.as26-input-short { max-width: 220px; }
textarea.as26-input { resize: vertical; min-height: 120px; }

.as26-opts { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 680px) { .as26-opts-cols { grid-template-columns: 1fr 1fr; } }
.as26-opt {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 48px;
	padding: 12px 14px;
	border: 1.5px solid var(--as-border);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	line-height: 1.35;
	color: var(--as-ink);
	font-weight: 500;
	transition: border-color .12s, background-color .12s;
}
.as26-opt:hover { border-color: #9DB6C8; }
.as26-opt input {
	flex: 0 0 auto;
	width: 20px; height: 20px;
	margin: 0;
	accent-color: var(--as-blue);
	cursor: pointer;
}
.as26-opt:has(input:checked) { border-color: var(--as-blue); background: var(--as-soft-blue); }
.as26-opt:has(input:focus-visible) { outline: 3px solid var(--as-cyan); outline-offset: 2px; }
.as26-disabled .as26-opt { opacity: .55; cursor: not-allowed; }
.as26-other { margin: 8px 0 4px 32px; }
.as26-other label { font-size: 14px; font-weight: 600; color: var(--as-ink); }
.as26-counter { font-size: 14px; color: var(--as-muted); margin: 10px 0 0; font-weight: 600; }

/* Accordion groups */
.as26-group { border: 1.5px solid var(--as-border); border-radius: 14px; margin-bottom: 10px; background: #fff; }
.as26-group summary {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	padding: 14px 16px;
	min-height: 52px;
	cursor: pointer;
	font-weight: 700;
	color: var(--as-ink);
	list-style: none;
}
.as26-group summary::-webkit-details-marker { display: none; }
.as26-group summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--as-blue); font-weight: 600; }
.as26-group[open] summary::after { content: '–'; }
.as26-group-count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--as-blue); }
.as26-group .as26-opts { padding: 0 12px 12px; }
@media (min-width: 680px) { .as26-group .as26-opts { grid-template-columns: 1fr 1fr; } }

/* Highlighted block (receive results) */
.as26-highlight {
	background: var(--as-soft-green);
	border: 1px solid #D7E9B5;
	border-radius: var(--as-radius);
	padding: 18px 18px 12px;
	margin: 22px 0 6px;
}
.as26-highlight-title { font-size: 19px; margin: 0 0 8px; }
.as26-note { font-weight: 600; color: var(--as-ink); margin: 0; }
.as26-q-note { border-top: 0; padding-top: 4px; }

/* Matrices --------------------------------------------------------------- */
.as26-mhead { display: none; }
.as26-mrow {
	border: 1.5px solid var(--as-border);
	border-radius: 14px;
	padding: 12px 14px;
	margin-bottom: 10px;
}
.as26-mlabel { display: block; font-weight: 700; color: var(--as-ink); margin-bottom: 8px; }
.as26-mcells { display: flex; flex-wrap: wrap; gap: 8px; }
.as26-mopt {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px;
	padding: 8px 12px;
	border: 1.5px solid var(--as-border);
	border-radius: 10px;
	cursor: pointer;
	font-size: 14.5px;
	color: var(--as-ink);
	background: #fff;
}
.as26-mopt input { width: 20px; height: 20px; margin: 0; accent-color: var(--as-blue); flex: 0 0 auto; }
.as26-mopt:has(input:checked) { border-color: var(--as-blue); background: var(--as-soft-blue); }
.as26-mopt:has(input:focus-visible) { outline: 3px solid var(--as-cyan); outline-offset: 2px; }
.as26-matrix-radio .as26-mcells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.as26-matrix-radio .as26-mopt { padding: 8px 10px; font-size: 14px; line-height: 1.25; min-width: 0; }
.as26-matrix-radio .as26-mopt:last-child { grid-column: 1 / -1; }
.as26-matrix-check .as26-mcells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.as26-matrix-check .as26-mopt { justify-content: center; padding: 8px 6px; font-size: 14px; }
@media (max-width: 479px) {
	.as26-matrix-radio .as26-mcells { grid-template-columns: 1fr; gap: 6px; }
	.as26-matrix-radio .as26-mopt { font-size: 15px; padding: 10px 12px; }
}
@media (max-width: 359px) {
	.as26-matrix-check .as26-mopt { flex-direction: column; gap: 4px; font-size: 13px; }
}

/* Desktop: true grid with one header row */
@media (min-width: 760px) {
	.as26-matrix { border: 1.5px solid var(--as-border); border-radius: 14px; overflow: hidden; }
	.as26-mhead, .as26-mrow {
		display: grid;
		grid-template-columns: minmax(150px, 1.4fr) repeat(var(--as26-cols), minmax(0, 1fr));
		align-items: center;
	}
	.as26-matrix-check .as26-mhead, .as26-matrix-check .as26-mrow { grid-template-columns: minmax(130px, 1fr) repeat(var(--as26-cols), minmax(0, 1fr)); }
	.as26-mhead { background: var(--as-page); font-size: 13px; font-weight: 700; color: var(--as-ink); text-align: center; line-height: 1.25; }
	.as26-mhead span { padding: 10px 4px; }
	.as26-mrow { border: 0; border-top: 1px solid #E6EEF3; border-radius: 0; margin: 0; padding: 0; }
	.as26-mrow:nth-child(odd) { background: #FBFDFE; }
	.as26-mlabel { margin: 0; padding: 12px 14px; font-weight: 600; }
	.as26-mcells, .as26-matrix-radio .as26-mcells, .as26-matrix-check .as26-mcells { display: contents; }
	.as26-mopt, .as26-matrix-check .as26-mopt {
		justify-content: center; border: 0; border-radius: 0; background: transparent !important;
		min-height: 52px; padding: 0;
	}
	.as26-matrix-radio .as26-mopt:last-child { grid-column: auto; }
	.as26-mopt:has(input:checked) { background: transparent; }
	.as26-mtext { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.as26-mopt input { width: 22px; height: 22px; }
}

/* Errors ----------------------------------------------------------------- */
.as26-summary, .as26-submit-error {
	background: var(--as-error-soft);
	border: 1.5px solid #F4B8B2;
	color: var(--as-error);
	border-radius: 12px;
	padding: 12px 14px;
	font-weight: 600;
	margin: 0 0 16px;
}
.as26-submit-error { margin-top: 16px; }
.as26-err { color: var(--as-error); font-weight: 600; font-size: 15px; margin: 4px 0 12px; }
.as26-err::before { content: '⚠ '; }
.as26-has-error .as26-label { color: var(--as-error); }
.as26-has-error .as26-input { border-color: var(--as-error); }
.as26-q.as26-has-error { border-left: 4px solid var(--as-error); padding-left: 14px; margin-left: -18px; }
@media (max-width: 600px) { .as26-q.as26-has-error { margin-left: -12px; padding-left: 8px; } }

/* Buttons ---------------------------------------------------------------- */
.as26-actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #EDF2F6;
	flex-wrap: wrap;
}
.as26-actions-start { justify-content: flex-start; align-items: center; border-top: 0; padding-top: 0; margin-top: 8px; }
.as26-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 50px;
	padding: 12px 26px;
	border-radius: 12px;
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	text-decoration: none !important;
	border: 2px solid transparent;
	line-height: 1.2;
}
.as26-btn-primary { background: var(--as-blue); color: #fff !important; }
.as26-btn-primary:hover { background: var(--as-blue-dark); }
.as26-btn-primary[disabled] { opacity: .7; cursor: progress; }
.as26-btn-secondary { background: #fff; color: var(--as-blue); border-color: #B8CAD7; }
.as26-btn-secondary:hover { border-color: var(--as-blue); }
.as26-btn-quiet { background: transparent; color: var(--as-blue); padding: 8px 10px; min-height: 40px; text-decoration: underline !important; font-weight: 600; }
.as26-restart { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.as26-restart-q { font-weight: 600; margin-right: 4px; }
@media (max-width: 480px) {
	.as26-actions:not(.as26-actions-start) .as26-btn { flex: 1 1 0; padding-left: 12px; padding-right: 12px; }
	.as26-actions-start .as26-btn-primary { width: 100%; }
}

/* Review ----------------------------------------------------------------- */
.as26-rv-sec { border: 1.5px solid var(--as-border); border-radius: var(--as-radius); padding: 14px 18px; margin-bottom: 14px; }
.as26-rv-sec-bad { border-color: #F4B8B2; background: var(--as-error-soft); }
.as26-rv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.as26-rv-head h3 { font-size: 18px; margin: 0; }
.as26-rv-list { margin: 8px 0 0; }
.as26-rv-list dt { font-weight: 600; color: var(--as-ink); font-size: 14.5px; margin-top: 12px; }
.as26-rv-list dd { margin: 3px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.as26-rv-list ul { margin: 2px 0 0; padding-left: 18px; }
.as26-rv-text { white-space: pre-line; }
.as26-rv-row { font-weight: 600; }
.as26-rv-empty { color: var(--as-muted); font-style: italic; }
.as26-rv-missing { color: var(--as-error); font-weight: 600; }
.as26-hp { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Done ------------------------------------------------------------------- */
.as26-done { text-align: left; }
.as26-done-art { max-width: 420px; margin: 0 auto 18px; }
.as26-done-art img { display: block; width: 100%; height: auto; max-height: 240px; object-fit: contain; }
.as26-done-title { font-size: clamp(24px, 4.5vw, 34px); font-weight: 800; line-height: 1.15; margin: 0 0 10px; }
.as26-lead { font-size: 18px; font-weight: 600; color: var(--as-ink); }

@media (prefers-reduced-motion: reduce) {
	.as26 * { transition: none !important; scroll-behavior: auto !important; }
}

.as26-review { position: relative; }
