/*
 * Kabataan FIRST — one stylesheet, no framework.
 *
 * Written for readers who may have weaker eyesight: 18px base text, nothing smaller
 * than 16px, near-black text on white, underlined links, large buttons and fields,
 * and status shown with an icon and a word as well as a colour.
 */

@font-face {
	font-family: "Public Sans";
	src: url(../fonts/public-sans.woff2) format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Public Sans";
	src: url(../fonts/public-sans-italic.woff2) format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

:root {
	--paper: #ffffff;
	--wash: #f1f4f2;
	--stripe: #f6f8f7;
	--ink: #111814;
	--ink-2: #37423c;
	--line: #c3ccc6;
	--field: #5d6a63;
	--green: #0b5d33;
	--green-dark: #084526;

	/* Status colours (validated for contrast and colour-blindness; always paired with icon + label). */
	--s-achieved: #0b6b35;
	--s-on-track: #1d5fbf;
	--s-behind: #c4320a;
	--s-none: #7d8682;

	--font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 75rem;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--radius: 6px;
}

/* ---------------------------------------------------------------- Base */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.125rem/1.6 var(--font);
	font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--green-dark); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
strong { font-weight: 700; }

h1, h2, h3 { font-family: var(--font); color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-weight: 800; }
h2, h3 { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.nil { color: var(--ink-2); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 1rem; top: -5rem; z-index: 100;
	background: var(--ink); color: #fff; padding: 0.75rem 1.1rem; border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------------------------------------------------------------- Buttons */

.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	min-height: 3rem; padding: 0.7rem 1.35rem;
	background: var(--green); color: #fff; border: 2px solid var(--green); border-radius: var(--radius);
	font: 700 1.0625rem/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center;
}
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.button--secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.button--secondary:hover { background: var(--wash); color: var(--ink); border-color: var(--ink); }
.button--small { min-height: 2.6rem; padding: 0.4rem 0.95rem; font-size: 1rem; }
.button--large { min-height: 3.5rem; padding: 0.9rem 1.75rem; font-size: 1.1875rem; }
.button--block { width: 100%; }
.js .js-hide { display: none; }

/* ---------------------------------------------------------------- Header */

.site-header { background: var(--paper); border-bottom: 2px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; fill: var(--green); flex: none; }
.brand__mark-sun { fill: #e0a100; }
.brand__name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.brand__version { color: var(--green); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--ink); font-weight: 600; text-decoration: none; padding: 0.4rem 0; border-bottom: 3px solid transparent; }
.nav__list a:hover { border-bottom-color: var(--ink); }
.nav__list .current-menu-item > a { border-bottom-color: var(--green); }
.nav__account {
	display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 1rem;
	border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); font-weight: 700; text-decoration: none;
}
.nav__account:hover { background: var(--wash); color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
	.site-header { position: relative; }
	.nav-toggle {
		display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem;
		background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
		font: 700 1.0625rem var(--font); color: var(--ink); cursor: pointer;
	}
	.nav { display: none; }
	.nav-open .nav {
		display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem;
		position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
		padding: 1.25rem var(--gutter) 1.5rem; background: var(--paper); border-bottom: 2px solid var(--line);
	}
	.nav-open .nav__list { flex-direction: column; gap: 0.9rem; }
}

/* ---------------------------------------------------------------- Status: colours, badges, legend */

.sq--achieved { background: var(--s-achieved); }
.sq--on_track { background: var(--s-on-track); }
.sq--behind { background: var(--s-behind); }
.sq--not_reported { background: var(--s-none); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.badge {
	display: inline-flex; align-items: center; gap: 0.35rem;
	padding: 0.25rem 0.7rem 0.25rem 0.45rem; border-radius: 99px;
	font-size: 1rem; font-weight: 700; line-height: 1.3; color: #fff; max-width: 100%;
}
@media (min-width: 861px) { .table .badge { white-space: nowrap; } }
.badge--achieved { background: var(--s-achieved); }
.badge--on_track { background: var(--s-on-track); }
.badge--behind { background: var(--s-behind); }
.badge--not_reported { background: #e6eae8; color: var(--ink); box-shadow: inset 0 0 0 2px var(--s-none); }

.legend { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; }
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.legend__key { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 4px; color: #fff; }
.legend__key .icon { width: 1.1rem; height: 1.1rem; }
.legend__key.sq--not_reported { background: #e6eae8; color: var(--ink); box-shadow: inset 0 0 0 2px var(--s-none); }

/* ---------------------------------------------------------------- Dashboard frame */

.dash__head { background: var(--wash); border-bottom: 2px solid var(--line); padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.dash__crumb { margin: 0 0 0.75rem; font-weight: 600; }
.dash__title { font-size: clamp(2rem, 4.5vw, 2.75rem); margin-bottom: 0.35rem; max-width: 30ch; }
.dash__intro { font-size: 1.1875rem; margin: 0 0 0.5rem; max-width: 46rem; }
.dash__who { margin: 0 0 1.5rem; color: var(--ink-2); font-size: 1rem; }
.dash__empty { padding-block: 3rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; }
.tabs a {
	padding: 0.75rem 0 0.85rem; color: var(--ink); font-size: 1.125rem; font-weight: 700; text-decoration: none;
	border-bottom: 5px solid transparent; margin-bottom: -2px;
}
.tabs a:hover { border-bottom-color: var(--line); }
.tabs a[aria-current="page"] { border-bottom-color: var(--green); color: var(--green); }
.tabs .tabs__aside { margin-left: auto; font-weight: 600; text-decoration: underline; }

.block { padding-block: clamp(2rem, 4.5vw, 3rem) 0; }
.block:last-child, .dash > .block:last-of-type { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.block__title { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-bottom: 0.35rem; }
.block__lead { margin: 0 0 1.5rem; max-width: 46rem; color: var(--ink-2); }

.callout { margin: 1.5rem 0 0; padding: 1rem 1.25rem; background: var(--wash); border-left: 6px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; }
.callout a { font-weight: 700; margin-left: 0.25rem; }

/* Summary tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tile {
	display: flex; flex-direction: column; gap: 0.2rem; height: 100%;
	padding: 1.1rem 1.25rem 1.25rem; background: var(--paper); color: var(--ink); text-decoration: none;
	border: 2px solid var(--line); border-top-width: 8px; border-radius: var(--radius);
}
.tile:hover { border-color: var(--ink); color: var(--ink); }
.tile--achieved { border-top-color: var(--s-achieved); }
.tile--on_track { border-top-color: var(--s-on-track); }
.tile--behind { border-top-color: var(--s-behind); }
.tile--not_reported { border-top-color: var(--s-none); }
.tile__head { margin-bottom: 0.4rem; }
.tile__num { font-size: 3rem; font-weight: 800; line-height: 1.05; }
.tile__of { font-weight: 600; }
.tile__help { color: var(--ink-2); font-size: 1rem; margin-top: 0.35rem; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .tile__num { font-size: 2.5rem; } }

/* Status-by-theme chart */
.chart { padding: 1.5rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.chart__rows { list-style: none; margin: 0; padding: 0; }
.chart__row { display: grid; grid-template-columns: minmax(12rem, 2fr) minmax(0, 3fr) 2.5rem; gap: 0.5rem 1.25rem; align-items: center; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.chart__label { color: var(--ink); font-weight: 700; line-height: 1.35; }
.chart__total { font-weight: 800; font-size: 1.25rem; text-align: right; }
.chart__table { margin-top: 1.25rem; }
.chart__table summary { cursor: pointer; font-weight: 700; color: var(--green); text-decoration: underline; padding: 0.4rem 0; }
.chart__table .table-wrap { margin-top: 0.75rem; }
.chart--single { margin-bottom: 0.5rem; }
@media (max-width: 760px) {
	.chart { padding: 1rem; }
	.chart__row { grid-template-columns: minmax(0, 1fr) 2.5rem; }
	.chart__label { grid-column: 1 / -1; }
}

.sbar { display: flex; gap: 2px; min-height: 2.25rem; }
.sbar__seg { display: flex; align-items: center; justify-content: center; min-width: 2.25rem; flex-basis: 0; color: #fff; font-weight: 800; }
.sbar__seg:first-child { border-radius: 4px 0 0 4px; }
.sbar__seg:last-child { border-radius: 0 4px 4px 0; }
.sbar__seg:only-child { border-radius: 4px; }
.sbar__seg.sq--not_reported { background: #e6eae8; color: var(--ink); box-shadow: inset 0 0 0 2px var(--s-none); }

/* Small single-value meter, e.g. "2 of 8 updated" */
.meter { display: inline-block; vertical-align: middle; width: 6rem; height: 0.75rem; margin-right: 0.5rem; background: #e6eae8; border: 1px solid var(--s-none); border-radius: 99px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--green); }

/* Progress toward a numeric target */
.prog { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; max-width: 17rem; }
.prog__track { position: relative; flex: 1; height: 0.85rem; background: #e6eae8; border: 1px solid var(--s-none); border-radius: 99px; }
.prog__fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; }
.prog__fill.sq--not_reported { background: var(--s-none); }
.prog__expected { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; }
.prog__pct { font-weight: 800; min-width: 3rem; text-align: right; }
.prog--lg { max-width: none; margin: 1.25rem 0 0.4rem; }
.prog--lg .prog__track { height: 1.1rem; }

/* ---------------------------------------------------------------- Tables */

.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; line-height: 1.45; background: var(--paper); }
.table th, .table td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--wash); font-weight: 700; border-bottom: 2px solid var(--ink); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.table tbody th { font-weight: 400; }
.table tbody tr:nth-child(even):not(.table__group) { background: var(--stripe); }
.table .num { text-align: right; }
.table__name { display: block; font-weight: 700; }
.table__sub { display: block; color: var(--ink-2); font-size: 1rem; margin-top: 0.2rem; }
.table__action { text-align: right; white-space: nowrap; width: 1%; }
.table__group th { background: var(--ink); color: #fff; font-size: 1.125rem; font-weight: 700; padding-top: 0.75rem; padding-bottom: 0.75rem; border-bottom: 0; }
.table__group-count { display: inline-block; margin-left: 0.5rem; padding: 0 0.55rem; border-radius: 99px; background: #fff; color: var(--ink); font-size: 1rem; }
.table--compact { font-size: 1rem; }
.table--compact th, .table--compact td { padding: 0.6rem 0.75rem; }
.table--compact td:first-child { white-space: nowrap; }
.table--compact .badge { font-size: 0.9375rem; }
.table--themes tbody th { font-weight: 700; }
.table--indicators thead th:nth-child(1), .table--report thead th:nth-child(1) { width: 30%; }
.table--indicators td:nth-child(3), .table--report td:nth-child(3) { min-width: 14rem; }
.table--indicators td:nth-child(5) { white-space: nowrap; }
.table .prog { max-width: none; }

/* Phones: each row becomes a labelled card. */
@media (max-width: 860px) {
	.table--indicators, .table--report, .table--themes { font-size: 1.0625rem; }
	.table--indicators thead, .table--report thead, .table--themes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.table--indicators, .table--indicators tbody, .table--indicators tr, .table--indicators th, .table--indicators td,
	.table--report, .table--report tbody, .table--report tr, .table--report th, .table--report td,
	.table--themes, .table--themes tbody, .table--themes tr, .table--themes th, .table--themes td { display: block; width: auto; }
	.table--indicators tbody tr:not(.table__group), .table--report tbody tr, .table--themes tbody tr {
		padding: 1rem; margin-bottom: 0.75rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper) !important;
	}
	.table--indicators tbody tr:not(.table__group) > *, .table--report tbody tr > *, .table--themes tbody tr > * { padding: 0.3rem 0; border: 0; text-align: left; }
	.table--indicators td[data-label]::before, .table--report td[data-label]::before, .table--themes td[data-label]::before {
		content: attr(data-label); display: block; font-weight: 700; font-size: 1rem; color: var(--ink-2);
	}
	.table__action { width: auto; padding-top: 0.75rem !important; }
	.table__action .button { width: 100%; }
	.table__group { margin: 1.5rem 0 0.75rem; }
	.table__group th { display: block; border-radius: var(--radius); padding: 0.75rem 1rem !important; }
}

/* ---------------------------------------------------------------- All indicators: filters */

.table-view { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.filters { padding: 1.25rem 1.5rem 1.5rem; background: var(--wash); border: 2px solid var(--line); border-radius: var(--radius); }
.filters__title { font-size: 1.25rem; margin-bottom: 0.75rem; }
.filters__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.filters__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.1rem 0 0; }
@media (max-width: 1000px) { .filters__grid { grid-template-columns: 1fr 1fr; } .field--search { grid-column: 1 / -1; } }
@media (max-width: 560px) { .filters__grid { grid-template-columns: 1fr; } }
.table-view__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.table-view__count { margin: 0; font-size: 1.1875rem; font-weight: 700; }
.table-view__none { padding: 2rem 0; font-size: 1.1875rem; }

/* ---------------------------------------------------------------- Form fields */

.field, .form__field { margin: 0 0 1.1rem; }
.field label, .form__field label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.filters .field { margin: 0; }
input[type="text"], input[type="password"], input[type="search"], input[type="email"], input[type="number"], select, textarea {
	width: 100%; min-height: 3rem; padding: 0.6rem 0.85rem;
	font: 400 1.0625rem/1.4 var(--font); color: var(--ink);
	background: var(--paper); border: 2px solid var(--field); border-radius: var(--radius);
}
textarea { resize: vertical; }
select { appearance: none; padding-right: 2.5rem; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23111814' stroke-width='2.2'/%3E%3C/svg%3E") no-repeat right 0.9rem center; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ink); outline-offset: 2px; }
::placeholder { color: #66726b; opacity: 1; }
.form__opt { font-weight: 400; color: var(--ink-2); }
.form__check { margin: 0 0 1.4rem; }
.form__check label { display: inline-flex; gap: 0.6rem; align-items: center; font-weight: 600; }
.form__check input { width: 1.4rem; height: 1.4rem; accent-color: var(--green); }

.notice { padding: 1rem 1.25rem; border-radius: var(--radius); margin: 0 0 1.5rem; font-size: 1.125rem; }
.notice--error { background: #fdeee8; color: #7a1f05; border-left: 6px solid var(--s-behind); }
.notice--ok { background: #e6f2eb; color: #063d20; border-left: 6px solid var(--s-achieved); }

/* ---------------------------------------------------------------- Details panel */

.detail {
	width: min(48rem, calc(100vw - 1.5rem)); max-height: calc(100vh - 1.5rem); padding: 0;
	border: 2px solid var(--ink); border-radius: 10px; color: var(--ink); background: var(--paper);
	box-shadow: 0 20px 60px rgba(17, 24, 20, 0.35);
}
.detail::backdrop { background: rgba(17, 24, 20, 0.6); }
.detail__close { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; margin: 0; padding: 0.75rem 0.75rem 0; background: var(--paper); }
.detail__body { padding: 0 clamp(1.25rem, 4vw, 2.25rem) 2rem; }
.detail__theme { margin: 0 0 0.4rem; color: var(--ink-2); font-weight: 600; }
.detail__title { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 0.75rem; }
.detail__note { margin: 0 0 0.5rem; color: var(--ink-2); font-size: 1rem; }
.detail__sub { font-size: 1.25rem; margin: 1.75rem 0 0.6rem; }
.detail__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.75rem 0 0; }
.facts { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: 1.0625rem; }
.facts th, .facts td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.facts th { width: 11rem; background: var(--wash); font-weight: 700; }
@media (max-width: 560px) { .facts th, .facts td { display: block; width: auto; } .facts td { padding-top: 0.25rem; } }

/* ---------------------------------------------------------------- Update my indicators */

.mine { padding-block: clamp(2rem, 4.5vw, 3rem) clamp(3rem, 6vw, 4.5rem); max-width: 62rem; }
.mine__intro { display: grid; gap: 1rem; margin-bottom: 0.5rem; }
.mine__lead { margin: 0; font-size: 1.1875rem; max-width: 44rem; }
.mine__filters { display: flex; gap: 0.75rem 1rem; align-items: center; flex-wrap: wrap; }
.mine__filters select { width: auto; min-width: 14rem; }
.mine__empty, .mine__done { padding: 2rem 0; font-size: 1.1875rem; }
.segmented { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.segmented a { padding: 0.65rem 1rem; color: var(--ink); text-decoration: none; font-weight: 700; }
.segmented a + a { border-left: 2px solid var(--ink); }
.segmented a[aria-current] { background: var(--ink); color: #fff; }
.mine__theme { font-size: 1.375rem; margin: 2.5rem 0 0; padding: 0.7rem 1rem; background: var(--ink); color: #fff; border-radius: var(--radius); }
.mine__list { list-style: none; margin: 0; padding: 0; }
.ind { padding: 1.35rem 0; border-bottom: 2px solid var(--line); scroll-margin-top: 1rem; }
.ind__head { display: flex; justify-content: space-between; gap: 0.75rem 2rem; flex-wrap: wrap; }
.ind__name { flex: 1 1 22rem; min-width: 0; }
.ind__name h3 { font-size: 1.1875rem; margin: 0 0 0.35rem; }
.ind__meta { margin: 0; }
.ind__depts { display: block; color: var(--ink-2); font-size: 1rem; margin-top: 0.15rem; }
.ind__now { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; text-align: right; }
.ind__latest { color: var(--ink-2); }
.ind__due { font-weight: 700; color: #8a2a06; }
.ind .prog { max-width: 24rem; }
.ind__form { margin-top: 1rem; }
.ind__form > summary { list-style: none; }
.ind__form > summary::-webkit-details-marker { display: none; }
.ind__form[open] > summary { background: var(--wash); color: var(--ink); border-color: var(--ink); }
@media (max-width: 640px) { .ind__now { align-items: flex-start; text-align: left; } .ind__form > summary { width: 100%; } }

.uform { margin-top: 1rem; padding: 1.5rem; background: var(--wash); border: 2px solid var(--line); border-radius: var(--radius); }
.uform__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.25rem; }
.uform__wide { grid-column: span 2; }
.uform__live { margin: -0.25rem 0 1.25rem; padding: 0.85rem 1rem; background: var(--paper); border: 2px solid var(--s-on-track); border-radius: var(--radius); font-weight: 600; }
.uform__status { border: 0; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.uform__status legend { font-weight: 700; margin-bottom: 0.5rem; padding: 0; }
.choice { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3.25rem; padding: 0.5rem 0.9rem; background: var(--paper); border: 2px solid var(--field); border-radius: var(--radius); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.choice input { width: 1.35rem; height: 1.35rem; accent-color: var(--green); margin: 0; }
.choice__hint { font-size: 0.9375rem; font-weight: 700; color: var(--ink); background: #ffe28a; padding: 0.1rem 0.5rem; border-radius: 4px; }
.uform__submit { margin: 0.25rem 0 0; }
.uform__submit .button { min-width: 12rem; }
@media (max-width: 760px) {
	.uform { padding: 1.1rem; }
	.uform__grid { grid-template-columns: 1fr; }
	.uform__wide { grid-column: auto; }
	.uform__submit .button { width: 100%; }
}

/* ---------------------------------------------------------------- Theme report */

.report { padding-block: clamp(2rem, 4.5vw, 3rem) clamp(3rem, 6vw, 4.5rem); }
.report__bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.25rem; background: var(--wash); border: 2px solid var(--line); border-radius: var(--radius); }
.report__bar p, .report__bar form { margin: 0; }
.report__period { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.report__period label { font-weight: 700; }
.report__period select { width: auto; min-width: 14rem; }
.report__tools { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.report__head { margin: 2rem 0 0; }
.report__kicker { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-bottom: 1rem; }
.report__fresh { color: var(--ink-2); margin: 0.75rem 0 0; }
.report__part { margin-top: clamp(2.25rem, 5vw, 3rem); padding-top: 1.25rem; border-top: 4px solid var(--ink); }
.report__part h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: 0.9rem; }
.report__missing { color: var(--ink-2); max-width: 46rem; padding: 1rem 1.25rem; background: var(--wash); border-radius: var(--radius); }

/* ---------------------------------------------------------------- Home */

.hero { padding-block: clamp(3rem, 8vw, 5.5rem); background: var(--wash); border-bottom: 2px solid var(--line); }
.hero__title { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 18ch; margin-bottom: 0.5em; }
.hero__intro { font-size: clamp(1.1875rem, 1.8vw, 1.375rem); max-width: 40rem; margin: 0 0 2rem; }
.hero__actions { margin: 0; }

.home-chart { padding-block: clamp(2.5rem, 6vw, 4rem); border-bottom: 2px solid var(--line); }
.hbars { list-style: none; margin: 0; padding: 0; max-width: 60rem; }
.hbars__row { display: grid; grid-template-columns: minmax(12rem, 2fr) minmax(0, 3fr) 8.5rem; gap: 0.4rem 1.25rem; align-items: center; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.hbars__label { font-weight: 700; line-height: 1.35; }
.hbars__track { height: 1.75rem; }
.hbars__bar { display: block; height: 100%; min-width: 4px; background: var(--green); border-radius: 0 4px 4px 0; }
.hbars__value { font-weight: 700; }
@media (max-width: 700px) {
	.hbars__row { grid-template-columns: minmax(0, 1fr) auto; }
	.hbars__label { grid-column: 1 / -1; }
}

.prose { max-width: 46rem; }
.prose > * { margin-block: 0 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-top: 1.5em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }

/* Home content: each group with class kf-split puts its heading beside its text. */
.prose--home { max-width: var(--wrap); padding-block: clamp(1rem, 3vw, 2rem) clamp(2.5rem, 6vw, 4rem); }
.prose--home > .wp-block-group { padding-block: clamp(2rem, 5vw, 3rem); border-bottom: 2px solid var(--line); margin: 0; }
.prose--home > .wp-block-group:last-child { border-bottom: 0; }
.kf-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(2rem, 6vw, 4.5rem); }
.kf-split > .wp-block-group__inner-container { display: contents; }
.kf-split > *, .kf-split > .wp-block-group__inner-container > * { grid-column: 2; margin-block: 0 1em; max-width: 44rem; }
.kf-split > h2, .kf-split > .wp-block-group__inner-container > h2 { grid-column: 1; grid-row: 1 / span 20; margin: 0; font-size: clamp(1.6rem, 3vw, 2rem); }
.kf-split > :last-child, .kf-split > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.wp-block-button__link { display: inline-flex; min-height: 3rem; align-items: center; padding: 0.7rem 1.35rem; border-radius: var(--radius); background: var(--green); color: #fff; font-weight: 700; text-decoration: none; }
.wp-block-button__link:hover { background: var(--green-dark); color: #fff; }
.kf-terms { list-style: none; padding: 0 !important; border-top: 2px solid var(--ink); }
.kf-terms li { padding: 1rem 0; margin: 0; border-bottom: 1px solid var(--line); }
.kf-terms strong { display: block; font-size: 1.1875rem; margin-bottom: 0.2rem; }
@media (max-width: 760px) {
	.kf-split { grid-template-columns: 1fr; }
	.kf-split > *, .kf-split > .wp-block-group__inner-container > *, .kf-split > h2, .kf-split > .wp-block-group__inner-container > h2 { grid-column: 1; grid-row: auto; }
	.kf-split > h2, .kf-split > .wp-block-group__inner-container > h2 { margin-bottom: 0.6em; }
}

/* ---------------------------------------------------------------- Generic pages */

.content-page { padding-block: clamp(2.5rem, 6vw, 4rem); }
.page__title { font-size: clamp(2rem, 4.5vw, 2.75rem); }
.entry { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.entry__title { font-size: 1.5rem; }

/* ---------------------------------------------------------------- Login */

.login { padding-block: clamp(2.5rem, 8vw, 5rem); }
.login__panel { max-width: 30rem; margin-inline: auto; padding: clamp(1.5rem, 4vw, 2.25rem); border: 2px solid var(--line); border-radius: 10px; }
.login__title { font-size: clamp(2rem, 4.5vw, 2.5rem); }
.login__intro { margin: 0 0 1.75rem; color: var(--ink-2); }
.login__help { margin: 1.5rem 0 0; color: var(--ink-2); }

/* ---------------------------------------------------------------- Footer */

.site-footer { background: var(--ink); color: #e3e8e5; padding-block: 2.5rem; }
.site-footer__inner p { margin: 0 0 0.4rem; }
.site-footer__name { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 0.6rem !important; }
.site-footer__meta { color: #c4ccc7; margin-top: 1rem !important; }
.site-footer a { color: #fff; }

/* ---------------------------------------------------------------- Print */

@media print {
	.site-header, .site-footer, .filters, .tabs, .table-view__bar, .report__bar, .dash__who, .dash__crumb, .detail, .ind__form, .no-print, .chart__table { display: none !important; }
	.dash__head { background: none; border: 0; padding-top: 0; }
	.table thead th { position: static; }
	.table tr, .report__part { break-inside: avoid; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	body { font-size: 11pt; }
}

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