/* =============================================================================
   ASSC Hall of Fame Registration System
   One stylesheet, numbered sections, no build step.

   RULE: no hex colour, font stack, radius or spacing literal appears anywhere
   below section 01 — not here, not in a template, not in a .js string.
   Transcribing the prototype means mapping its inline value to a token.
   ============================================================================= */

/* 01 TOKENS ---------------------------------------------------------------- */

:root {
	/* Brand */
	--navy: #445e8f;
	--navy-hover: #38507c;
	--navy-deep: #3a5280;
	--sidebar: #2e4266;
	--sidebar-hover: #3b5480;
	--sidebar-line: #24354f;
	--sidebar-card: #3b5480;
	--sidebar-card-b: #4a6293;
	--sidebar-text: #dce4f1;
	--sidebar-icon: #b9c7de;
	--sidebar-exit-b: #5a73a2;
	--brass-deep: #3f3410;
	--ink: #151e30;
	--ink-soft: #1a2233;
	--brass: #c9a961;
	--brass-soft: #e6dab9;
	--brass-bg: #fbf6e9;
	--brass-ink: #5c4a16;

	/* Surfaces */
	--canvas: #f4f6fa;
	--surface: #ffffff;
	--surface-2: #fbfcfe;
	--surface-3: #fafbfd;
	--accent-bg: #eef2f9;

	/* Lines */
	--hairline: #e7ebf3;
	--hairline-2: #eef1f7;
	--hairline-3: #f2f5fa;
	--border-field: #d9e0ec;
	--radio-border: #a9b3c6;

	/* Text */
	--heading: #000000;
	--body: #5a6883;
	--muted: #5f6a80;
	--label: #3b4761;

	/* Status */
	--error: #b04034;
	--error-bg: #fdf2f1;
	--error-border: #f3c9c4;
	--error-ring: #d46a5e;
	--error-ink: #8c2f26;
	--ok: #4a6b38;
	--ok-bg: #edf2e9;
	--ok-border: #cbddbf;
	--warn-bg: #fdf7ea;
	--warn-border: #efdfb8;
	--warn-ink: #6b5312;
	--warn-badge: #8a7524;

	/* Shape — two values only: 8px for every surface, a full pill for chips */
	--r: 8px;
	--r-pill: 999px;

	/* The dropdown chevron, as a token because two controls draw it: the native
	   .f-select, and the Select2 selection that stands in front of it. A data URI
	   cannot read a custom property from inside itself, so the colour is spelt out
	   here — holding it in one place is what stops the two controls drifting apart. */
	--chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='7'><path d='M1 1l4.5 4.5L10 1' fill='none' stroke='%237A8599' stroke-width='1.6'/></svg>");

	/* Spacing scale */
	--s1: 7px;
	--s2: 14px;
	--s3: 20px;
	--s4: 28px;

	/* Type */
	--font-head: Butler, Georgia, "Times New Roman", serif;
	--font-ui:
		Gordita, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
		sans-serif;

	/* Depth */
	--shadow-card: 0 20px 44px rgba(21, 30, 48, 0.09);
	--shadow-modal: 0 30px 70px rgba(21, 30, 48, 0.35);
	--shadow-toast: 0 16px 40px rgba(21, 30, 48, 0.18);
	--focus: 0 0 0 3px rgba(68, 94, 143, 0.13);
	--scrim: rgba(21, 30, 48, 0.55);

	/* Text and marks that sit on a dark surface (navy hero, sidebar, ink panels). */
	--on-dark: #ffffff;
	--on-dark-2: rgba(255, 255, 255, 0.82);
	--on-dark-3: rgba(255, 255, 255, 0.72);
	--hero-lead: #d3dcec;
	--hero-eyebrow-b: #6e85b0;
	--on-navy-soft: #c6d2e8;
	--on-ink-soft: #94a0b8;
	--ink-rule: #2a3550;
	--panel: #f7f9fd;
	--panel-dash: #c9d5e8;

	/* Layout */
	--container: 1120px;
	--sidebar-w: 250px;
	--rail-w: 316px;
}

/* The viewer's theme never applies here: this is a branded public site with one
   deliberate look, so the palette is committed rather than theme-aware. */
:root {
	color-scheme: light;
}

/* 01b WEBFONTS -------------------------------------------------------------
   Self-hosted. The prototype hot-linked a CDN, which would leak every visitor of a
   page collecting names, emails and addresses to a third party — and the CSP here is
   font-src 'self', so it would simply fail anyway.

   Only the weights the design actually uses are declared. Butler ships seven weights
   and Gordita three; loading all ten would be roughly 700KB of font for a design that
   uses three faces.

   font-display:swap on every face: without it the browser hides text for up to three
   seconds while a font loads, and on a registration form that reads as a broken page.
   The fallbacks below are chosen to keep that swap from reflowing much.
   -------------------------------------------------------------------------- */

/* Headings. Butler is a high-contrast display serif; Georgia is the closest widely
   installed face, and the generic serif backs it up. */
@font-face {
	font-family: "Butler";
	src: url("../fonts/butler/Butler_Regular.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Used by the 500-weight heading treatments only. */
@font-face {
	font-family: "Butler";
	src: url("../fonts/butler/Butler_Medium.otf") format("opentype");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* Interface. Gordita is a geometric sans; the system stack below it is the closest
   thing every platform already has. */
@font-face {
	font-family: "Gordita";
	src: url("../fonts/gordita/Gordita-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Gordita";
	src: url("../fonts/gordita/Gordita-Medium.ttf") format("truetype");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* 02 RESET & BASE ---------------------------------------------------------- */

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

/* Zero the user-agent's own margins.
 *
 * This matters more here than in a typical reset, because the layout is built almost
 * entirely from flex and grid `gap`. A UA margin does not collapse inside a flex or grid
 * container — it ADDS to the gap — so leaving, say, `p { margin-block: 1em }` in place
 * silently inflates the spacing in every card, field and summary row, and no amount of
 * tuning the gap values would make the design match.
 *
 * Spacing is therefore only ever expressed by `gap`, the `--s*` scale, or an explicit
 * margin on a named component.
 */
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ol,
ul,
pre,
hr {
	margin: 0;
}

/* Lists used as navigation or layout carry no marker or indent. */
ul[class],
ol[class] {
	list-style: none;
	padding: 0;
}

/* Form elements do not inherit font or margin from the UA either. */
fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
legend {
	padding: 0;
}

/* Tables: the UA's spacing and left-alignment defaults are not what we draw. */
table {
	border-collapse: collapse;
	border-spacing: 0;
}
th {
	text-align: left;
	font-weight: inherit;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--canvas);
	color: var(--body);
	font-family: var(--font-ui);
	font-size: 14px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	max-width: 100%;
}
img {
	height: auto;
	display: block;
}

a {
	color: var(--navy);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

strong {
	font-weight: 500;
}

[hidden] {
	display: none !important;
}

/* Visible only to screen readers — used for form landmarks and live regions. */
/* Visually hidden, but read aloud.
 *
 * !important is deliberate and is the one place it is used. This utility's whole contract
 * is "occupies no space", and any later layout rule that sets a width on its own children
 * — `.filters > *:not(.sr-only) { width: 100% }`, say — wins on equal specificity and silently turns
 * these labels into full-width boxes that push the page sideways. */
.sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* One focus treatment for the whole app. :focus-visible so a mouse click does not
   ring the control, but keyboard navigation always does. */
:focus-visible {
	outline: 2px solid var(--navy);
	outline-offset: 2px;
}

/* 03 TYPOGRAPHY ------------------------------------------------------------ */

h1,
h2,
h3,
h4 {
	font-family: var(--font-head);
	font-weight: 400;
	color: var(--heading);
	letter-spacing: -0.01em;
}

.t-display {
	font-size: 50px;
	line-height: 1.06;
}
.t-page {
	font-size: 26px;
	line-height: 1.2;
}
.t-section {
	font-size: 19px;
	line-height: 1.3;
}
.t-metric {
	font-size: 34px;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.t-lead {
	font-size: 16px;
	line-height: 1.7;
	color: var(--body);
}
.t-body {
	font-size: 14px;
}
.t-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--label);
}
.t-caption {
	font-size: 12.5px;
	color: var(--muted);
}
.t-micro {
	font-size: 10.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 500;
}

.t-strong {
	color: var(--ink);
	font-weight: 500;
}

/* The characters in a table cell that matched the search box.
   Server-rendered by View::highlight(), so the marks survive an AJAX sort, filter or
   page swap the same way the rest of the row does. Brass rather than the browser's
   default yellow, which belongs to no palette here. */
.hl {
	background: var(--brass-soft);
	color: var(--brass-ink);
	font-weight: 500;
}

/* 04 LAYOUT SHELLS --------------------------------------------------------- */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--s3);
}

/* --- public shell --- */

.public-header {
	background: var(--surface);
	border-bottom: 1px solid var(--hairline);
	position: sticky;
	top: 0;
	z-index: 5;
}
.public-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s3);
	padding-block: 16px;
	flex-wrap: wrap;
}

.hero {
	background: var(--navy);
	color: var(--on-dark);
	padding-block: 54px 96px;
}
.hero h1 {
	color: var(--on-dark);
	/* Fluid rather than stepped: this single rule is most of the headline's
	   responsive behaviour, and it is what the prototype specifies. */
	font-size: clamp(34px, 4.6vw, 50px);
	line-height: 1.06;
	letter-spacing: -0.015em;
	max-width: 13em;
	margin-top: var(--s3);
}
.hero__lead {
	color: var(--hero-lead);
	max-width: 38em;
	margin-top: var(--s2);
}

/* An outlined eyebrow, not a filled chip.
   The same soft tint the sign-in panel's eyebrow uses — brass on navy reads as a warning
   colour at this size, and the mark is the only thing that should carry gold. */
.hero__eyebrow {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--on-navy-soft);
	border: 1px solid var(--hero-eyebrow-b);
	border-radius: var(--r-pill);
	padding: 6px var(--s2);
}

/* The registration card deliberately overlaps the hero, as in the prototype. */
.overlap {
	margin-top: -64px;
	position: relative;
	z-index: 1;
}

.reg-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--rail-w);
	gap: var(--s2);
	align-items: start;
}

/* Clears the sticky public header as the form scrolls past. */
.reg-rail {
	position: sticky;
	top: 88px;
	display: flex;
	flex-direction: column;
	gap: var(--s2);
	min-width: 0;
}

.summary-card {
	background: var(--ink);
	border-radius: var(--r);
	padding: 24px;
	color: var(--on-dark);
}
.summary-card__eyebrow {
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--on-ink-soft);
}
.summary-card__title {
	font-family: var(--font-head);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.25;
	color: var(--on-dark);
	margin: 8px 0 0;
}
.summary-card__rule {
	height: 1px;
	background: var(--ink-rule);
	margin: 18px 0;
}
.summary-card__rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.summary-card__row {
	display: flex;
	justify-content: space-between;
	gap: var(--s2);
	font-size: 12.5px;
}
.summary-card__row dt {
	color: var(--on-ink-soft);
	margin: 0;
}
.summary-card__row dd {
	color: var(--on-dark);
	margin: 0;
	text-align: right;
}
.summary-card__row dd.is-accent {
	color: var(--brass-soft);
}

/* --- auth shell --- */

.auth {
	min-height: 100vh;
	display: flex;
	gap: 22px;
	padding: 22px;
	background: var(--canvas);
	flex-wrap: wrap;
}

.auth__card {
	flex: 1 1 380px;
	min-width: 0;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--r);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 36px;
}
.auth__inner {
	width: 100%;
	max-width: 380px;
}

.auth__title {
	font-family: var(--font-head);
	font-weight: 400;
	font-size: 34px;
	line-height: 1.1;
	color: var(--heading);
	margin: 32px 0 0;
}
.auth__sub {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--muted);
	margin: 8px 0 0;
}

.auth__panel {
	flex: 1 1 420px;
	min-width: 0;
	background: var(--navy);
	border-radius: var(--r);
	padding: 48px 44px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.auth__eyebrow {
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--on-navy-soft);
}
.auth__headline {
	font-family: var(--font-head);
	font-weight: 400;
	font-size: 36px;
	line-height: 1.18;
	color: var(--on-dark);
	max-width: 16em;
	margin: 16px 0 0;
}
.auth__lead {
	font-size: 15px;
	color: var(--on-navy-soft);
	max-width: 37em;
	margin: var(--s2) 0 32px;
}

.auth__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
}
.auth__stat {
	background: var(--navy-deep);
	border-radius: var(--r);
	padding: 18px;
}
.auth__stat-value {
	font-family: var(--font-head);
	font-weight: 400;
	font-size: 30px;
	color: var(--on-dark);
	font-variant-numeric: tabular-nums;
}
.auth__stat-label {
	font-size: 12.5px;
	color: var(--on-navy-soft);
	margin-top: 2px;
}

/* --- app shell --- */

.app {
	min-height: 100vh;
	display: grid;
	grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}
.app__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: var(--canvas);
}

.sidebar {
	background: var(--sidebar);
	border-right: 1px solid var(--sidebar-line);
	display: flex;
	flex-direction: column;
	/* Sticks while the main column scrolls, and scrolls itself if the nav outgrows it. */
	position: sticky;
	top: 0;
	align-self: flex-start;
	height: 100vh;
	overflow-y: auto;
}

/* The logo sits in a white card, because the mark itself is dark. */
.sidebar__logo {
	min-height: 83px;
	padding: var(--s2);
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	border-bottom: 1px solid var(--sidebar-line);
}
.sidebar__logo > a {
	width: 100%;
	background: var(--surface);
	border-radius: var(--r);
	padding: 11px var(--s2);
	display: flex;
	align-items: center;
}

.sidebar__nav {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: var(--s3) var(--s2) 0;
}

.sidebar__section {
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sidebar-text);
	padding: 0 10px 10px;
	margin: 0;
}

.sidebar__link {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 12px;
	border-radius: var(--r);
	font-size: 13.5px;
	color: var(--sidebar-text);
}
.sidebar__link .nav-icon {
	flex: 0 0 auto;
	color: var(--sidebar-icon);
}
/* The trailing arrow on a link that leaves the admin shell. Pushed to the far edge
   rather than sat beside the label, so it reads as a property of the link instead of a
   second glyph competing with the one in front, and a step down from the 17px nav glyph
   so the eye still lands on the leading icon first. */
.sidebar__link .nav-icon--external {
	flex: 0 0 auto;
	margin-left: auto;
	width: 15px;
	height: 15px;
	color: var(--sidebar-icon);
	opacity: 0.75;
}
.sidebar__link:hover {
	background: var(--sidebar-hover);
	color: var(--on-dark);
	text-decoration: none;
}
.sidebar__link:hover .nav-icon--external {
	opacity: 1;
}

/* Active is a WHITE chip with navy text — the inverse of the resting state. */
.sidebar__link.is-active {
	background: var(--surface);
	color: var(--sidebar);
	font-weight: 500;
}
.sidebar__link.is-active .nav-icon,
.sidebar__link.is-active .nav-icon--external {
	color: var(--navy);
}

.sidebar__foot {
	margin-top: auto;
	padding: 0 var(--s2) 18px;
}

.sidebar__user {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border-radius: var(--r);
	background: var(--sidebar-card);
	border: 1px solid var(--sidebar-card-b);
}
.sidebar__user-name {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--on-dark);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sidebar__user-role {
	font-size: 11px;
	color: var(--sidebar-text);
}

.sidebar__exit {
	font-size: 11px;
	color: var(--sidebar-text);
	background: none;
	border: 1px solid var(--sidebar-exit-b);
	border-radius: var(--r);
	padding: 4px 8px;
	cursor: pointer;
}
.sidebar__exit:hover {
	background: var(--sidebar-card-b);
	color: var(--on-dark);
}

.topbar {
	background: var(--surface);
	border-bottom: 1px solid var(--hairline);
	padding: 16px 26px;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	position: sticky;
	top: 0;
	z-index: 6;
}
/* The brass rule beside every page title. */
.topbar__accent {
	width: 3px;
	height: 38px;
	flex: 0 0 auto;
	background: var(--brass);
	border-radius: 2px;
}

.status-chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--canvas);
	border: 1px solid var(--hairline);
	border-radius: var(--r-pill);
	padding: 6px var(--s2);
	font-size: 12.5px;
	color: var(--body);
}
.status-chip__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ok);
	flex: none;
}

.main {
	padding: 22px 26px 40px;
	flex: 1;
	min-width: 0;
}

/* 05 FORMS ----------------------------------------------------------------- */

/* Row gap is tighter than the column gap, as in the prototype. */
.f-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}
.f-grid--1 {
	grid-template-columns: minmax(0, 1fr);
}
.f-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}
.f-field--full {
	grid-column: 1 / -1;
}

/* A section rule: brass tick, label, and a note pushed to the right. */
.form-section {
	display: flex;
	align-items: center;
	gap: var(--s2);
	padding-bottom: 18px;
	border-bottom: 1px solid var(--hairline-2);
	margin-bottom: 22px;
}
.form-section__tick {
	width: 34px;
	height: 2px;
	background: var(--brass-soft);
	flex: none;
}
.form-section__label {
	/* An eyebrow label, not a display heading — the serif h1-h4 face reads wrong at
	   11px with this much tracking, so it takes the body font. */
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
}
.form-section__note {
	margin-left: auto;
	font-size: 12.5px;
	color: var(--muted);
}

/* A label bound to a control is clickable — clicking it focuses or toggles that
   control — so it takes the pointer cursor. A label with no `for` is a caption, and
   keeps the default. */
label[for] {
	cursor: pointer;
}

.f-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--label);
	margin: 0;
}
.f-label .req {
	color: var(--error);
}
.f-optional {
	color: var(--muted);
	font-weight: 400;
}

/* The control wrapper exists so the error state can be an OVERLAY ring rather than a
   border colour change. The prototype draws it at inset:-1px with a 9px radius, which
   sits just outside the 8px field — a border swap cannot reproduce that, and changing
   the border would also shift the layout by a pixel. */
.f-control {
	position: relative;
}
.f-ring {
	position: absolute;
	inset: -1px;
	border: 1.5px solid var(--error-ring);
	border-radius: 9px;
	pointer-events: none;
}
.f-ring--selected {
	border-color: var(--navy);
}

.f-input,
.f-select {
	width: 100%;
	padding: 10px var(--s2);
	background: var(--surface-2);
	border: 2px solid var(--border-field);
	border-radius: var(--r);
	color: var(--ink-soft);
	caret-color: var(--navy);
	font-size: 14px;
}
.f-select {
	padding-right: 36px;
	appearance: none;
	background-image: var(--chevron);
	background-repeat: no-repeat;
	background-position: right var(--s2) center;
}
.f-input::placeholder {
	color: var(--muted);
}
.f-input:focus,
.f-select:focus {
	outline: none;
	box-shadow: none;
	border-color: var(--navy);
	background: var(--surface);
}

.f-input[readonly],
.f-input--locked {
	background: var(--canvas);
	color: var(--body);
	cursor: not-allowed;
}

/* Password show/hide. The field reserves room on the right so a long password never runs
   under the button, and the button is inside .f-control so it lands inside the error ring
   rather than on top of it.

   The two states are two different glyphs, both present in the markup — [aria-pressed]
   picks which one is displayed, so the swap is a style change with nothing to load. */
.f-input--reveal {
	padding-right: 48px;
}
.f-reveal {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 7px;
	background: none;
	color: var(--muted);
	cursor: pointer;
	/* Safari otherwise gives the button the page font at its own size. */
	font: inherit;
	line-height: 0;
}
.f-reveal:hover {
	color: var(--navy);
	background: var(--canvas);
}
/* Keyboard users get the ring; a mouse click does not leave one behind. */
.f-reveal:focus-visible {
	outline: 2px solid var(--navy);
	outline-offset: 1px;
	color: var(--navy);
}
/* Brass while the password is on screen — the revealed state should not look like rest.
   The ink tone, not the light --brass: a 1.5px stroke at #c9a961 on the field ground is
   too faint to read as a state change. */
.f-reveal[aria-pressed="true"] {
	color: var(--brass-ink);
}

/* Hidden password: the open eye. Revealed: the struck-through one. Exactly one of the
   two is ever displayed, so the button never grows to fit both. */
.f-reveal__icon {
	display: block;
}
.f-reveal__icon--hide,
.f-reveal[aria-pressed="true"] .f-reveal__icon--show {
	display: none;
}
.f-reveal[aria-pressed="true"] .f-reveal__icon--hide {
	display: block;
}

.f-msg {
	font-size: 12.5px;
}
.f-msg--error {
	color: var(--error);
}
.f-help {
	font-size: 12.5px;
	color: var(--muted);
}

/* Choice pair — Gender, Ran for Tech. Full-width rounded rectangles that split the
   row, NOT pills: at 14px text a pill would not line up with the fields beside it. */
.f-choice {
	display: flex;
	gap: 8px;
}
.f-choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.f-choice label {
	flex: 1;
	text-align: center;
	padding: 12px 10px;
	border: 1px solid var(--border-field);
	border-radius: var(--r);
	background: var(--surface-2);
	font-size: 14px;
	color: var(--label);
	cursor: pointer;
}
.f-choice label:hover {
	border-color: var(--navy);
}
.f-choice input:checked + label {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--on-dark);
	font-weight: 500;
}
.f-choice input:focus-visible + label {
	box-shadow: var(--focus);
}

/* Segmented filter — the dashboard's All / Female / Male group.
   A pill group, unlike .f-choice's rectangles: in a filter bar it sits beside other
   pill controls, where a rectangle would read as a form field. */
.f-seg {
	display: flex;
	gap: var(--s1);
	flex-wrap: wrap;
}
.f-seg input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.f-seg label {
	padding: 9px 16px;
	border: 1px solid var(--hairline);
	border-radius: var(--r-pill);
	background: var(--surface);
	font-size: 13px;
	color: var(--body);
	cursor: pointer;
}
.f-seg label:hover {
	border-color: var(--navy);
}
.f-seg input:checked + label {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--on-dark);
}
.f-seg input:focus-visible + label {
	box-shadow: var(--focus);
}

/* The conditional graduation-year field gets its own panel, so it reads as something
   that appeared in response to an answer rather than a field that was always there. */
.f-panel {
	grid-column: 1 / -1;
	background: var(--panel);
	border: 1px dashed var(--panel-dash);
	border-radius: var(--r);
	padding: var(--s2) 16px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	animation: assc-rise 0.22s ease;
}
.f-panel .f-input {
	background: var(--surface);
}
@keyframes assc-rise {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Consent: a custom radio, because the native control cannot carry the selected ring. */
.f-radio-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.f-radio-card__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 15px;
	border: 1px solid var(--border-field);
	border-radius: var(--r);
	background: var(--surface-2);
	cursor: pointer;
}
.f-radio-card__item:hover {
	border-color: var(--navy);
}
.f-radio-card__item input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.f-radio-card__dot {
	width: 18px;
	height: 18px;
	flex: none;
	border-radius: 50%;
	border: 1.5px solid var(--radio-border);
	display: grid;
	place-items: center;
}
.f-radio-card__dot::after {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: transparent;
}
.f-radio-card__item input:checked ~ .f-radio-card__dot::after {
	background: var(--navy);
}
.f-radio-card__item input:focus-visible ~ .f-radio-card__dot {
	box-shadow: var(--focus);
}
.f-radio-card__label {
	font-size: 14px;
	font-weight: 500;
	color: var(--ink-soft);
}
.f-radio-card__help {
	font-size: 13px;
	color: var(--muted);
}

.f-divider {
	grid-column: 1 / -1;
	height: 1px;
	background: var(--hairline-2);
	margin: 4px 0;
}

/* The disclosure toggle's +/- sits in a small rounded box. */
.f-disclosure {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: none;
	border: 0;
	padding: 0;
	color: var(--navy);
	font-size: 13.5px;
	cursor: pointer;
}
.f-disclosure:hover {
	color: var(--sidebar);
}
/* A JS hook: the label text is swapped on toggle. No styling of its own. */
.f-disclosure__text {
	display: inline;
}

.f-disclosure__icon {
	width: 20px;
	height: 20px;
	flex: none;
	border-radius: var(--r);
	border: 1px solid var(--panel-dash);
	display: grid;
	place-items: center;
	font-size: 13px;
	line-height: 1;
}

/* The privacy note: a quiet panel, not a dark card. */
.disclaimer {
	grid-column: 1 / -1;
	background: var(--panel);
	border-radius: var(--r);
	padding: var(--s2) 16px;
	margin-top: 2px;
}
.disclaimer p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--muted);
}

.form-actions {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 6px;
}

/* 05b SELECT2 --------------------------------------------------------------
   Every <select> in the application is upgraded by assc.select.js, so these rules
   draw the control the user actually sees — section 05's .f-select is what sits
   behind it for the no-JS pass and for browsers that never run the upgrade.

   The two must be indistinguishable when closed. Anything below that changes a
   border, a radius or a padding has a twin in section 05 and they move together.

   Select2's own "default" and "classic" themes are never loaded: the vendor file
   ships them, we build with theme "assc", and none of their rules ever match. That
   is deliberate — the vendor CSS stays byte-identical to upstream so it can be
   replaced on an upgrade without re-applying a patch.

   Specificity note: the vendor's un-themed base rules (a 28px height, an 8px text
   padding, a 4px radius) tie with these on specificity, so this file simply has to
   load after select2.min.css. head.php orders them that way.
   ------------------------------------------------------------------------- */

/* The closed control — the twin of .f-select. */
.select2-container--assc .select2-selection--single {
	height: auto;
	padding: 10px var(--s2);
	background: var(--surface-2);
	border: 2px solid var(--border-field);
	border-radius: var(--r);
	color: var(--ink-soft);
	font-size: 14px;
}
.select2-container--assc
	.select2-selection--single
	.select2-selection__rendered {
	padding: 0;
	padding-right: 22px;
	color: inherit;
	font-weight: inherit;
	/* inherit, not normal: the native input takes the body line-height, and a Select2
	   that computed its own would stand 3px shorter than every field beside it. */
	line-height: inherit;
}
.select2-container--assc
	.select2-selection--single
	.select2-selection__placeholder {
	color: var(--muted);
}

/* The same chevron the native control draws, from the same token. Select2 renders an
   empty <b> for its themes to shape into a triangle; ours is a background image, so
   the <b> has nothing to do. */
.select2-container--assc .select2-selection--single .select2-selection__arrow {
	position: absolute;
	top: 0;
	right: 0;
	width: 34px;
	height: 100%;
	background-image: var(--chevron);
	background-repeat: no-repeat;
	background-position: right var(--s2) center;
	pointer-events: none;
}
.select2-container--assc
	.select2-selection--single
	.select2-selection__arrow
	b {
	display: none;
}

/* Focus and open share one appearance, because to the user they are one state: the
   field is live. Matches .f-select:focus — a border colour change, no ring. */
.select2-container--assc .select2-selection--single:focus,
.select2-container--assc .select2-selection--single:focus-visible,
.select2-container--assc.select2-container--open .select2-selection--single {
	outline: none;
	box-shadow: none;
	border-color: var(--navy);
	background: var(--surface);
}

.select2-container--assc.select2-container--disabled
	.select2-selection--single {
	background: var(--canvas);
	color: var(--body);
	cursor: not-allowed;
}

/* The clear affordance, shown only where a select opts into allowClear. */
.select2-container--assc .select2-selection__clear {
	position: absolute;
	top: 0;
	right: 30px;
	height: 100%;
	padding: 0 var(--s1);
	color: var(--muted);
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}
.select2-container--assc .select2-selection__clear:hover {
	color: var(--error);
}

/* The menu. Detached from the field by a hair rather than welded to it — at an 8px
   radius a joined dropdown has to square off two corners, and the seam shows. The
   three rules after it are the vendor's welding, undone. */
.select2-container--assc .select2-dropdown {
	background: var(--surface);
	border: 1px solid var(--border-field);
	border-radius: var(--r);
	box-shadow: var(--shadow-card);
	overflow: hidden;
}
.select2-container--assc .select2-dropdown--below {
	margin-top: 4px;
}
.select2-container--assc .select2-dropdown--above {
	margin-top: -4px;
}
.select2-container--assc.select2-container--open .select2-dropdown--above,
.select2-container--assc.select2-container--open .select2-dropdown--below {
	border: 1px solid var(--border-field);
	border-radius: var(--r);
}

/* Theme "assc" inherits no scroll cap — only the vendor's own two themes set one, so
   without this a long inductee list runs off the bottom of the window. */
.select2-container--assc .select2-results > .select2-results__options {
	max-height: 264px;
	overflow-y: auto;
}
.select2-container--assc .select2-results__option {
	padding: 10px var(--s2);
	font-size: 14px;
	color: var(--body);
}

/* Keyboard and pointer land on the same highlight: Select2 moves --highlighted with
   the arrow keys and with hover, so styling it once covers both. */
.select2-container--assc
	.select2-results__option--highlighted.select2-results__option--selectable {
	background: var(--accent-bg);
	color: var(--ink-soft);
}

/* The current choice is a filled navy row, the same mark .f-seg gives a checked
   segment. It used to be --accent-bg with navy text, which is the hover tint one
   shade off white: on a long list the user could not see which row they had picked.
   Filled reads at a glance and never collides with the highlight. */
.select2-container--assc .select2-results__option--selected {
	background: var(--navy);
	color: var(--on-dark);
	font-weight: 500;
}

/* Selected and highlighted at once - the row the pointer is over is the row already
   chosen. Without this the highlight rule above wins on specificity and the filled
   row flickers back to near-white under the cursor. --navy-hover keeps it dark and
   still registers as a hover. */
.select2-container--assc
	.select2-results__option--selected.select2-results__option--highlighted {
	background: var(--navy-hover);
	color: var(--on-dark);
}

.select2-container--assc .select2-results__option--disabled {
	color: var(--muted);
	cursor: not-allowed;
}
.select2-container--assc .select2-results__message {
	padding: 10px var(--s2);
	font-size: 13px;
	color: var(--muted);
}
.select2-container--assc .select2-results__group {
	padding: 10px var(--s2) 6px;
	font-size: 12.5px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
}

/* The filter box inside the menu, built from the same parts as .f-input. */
.select2-container--assc .select2-search--dropdown {
	padding: var(--s1);
	border-bottom: 1px solid var(--hairline);
}
.select2-container--assc .select2-search--dropdown .select2-search__field {
	padding: 9px 12px;
	background: var(--surface-2);
	border: 1px solid var(--border-field);
	border-radius: var(--r);
	color: var(--ink-soft);
	caret-color: var(--navy);
	font-family: inherit;
	font-size: 13px;
}
.select2-container--assc
	.select2-search--dropdown
	.select2-search__field:focus {
	outline: none;
	border-color: var(--navy);
	background: var(--surface);
}

/* The twin of .f-select--pill — this is what actually renders the filter selects once
   the upgrade runs, so it has to carry the same 8px field radius or the native control
   and its replacement would be two different shapes. */
.select2-container--assc.select2--pill .select2-selection--single {
	padding: 10px var(--s2);
	border-radius: var(--r);
	border-color: var(--hairline);
	font-size: 13px;
}
.select2-container--assc.select2--pill
	.select2-selection--single
	.select2-selection__arrow {
	background-position: right 12px center;
}
.select2-container--assc.select2--pill
	.select2-selection--single
	.select2-selection__rendered {
	padding-right: 18px;
}
.select2-container--assc.select2--pill.select2-container--open
	.select2-selection--single,
.select2-container--assc.select2--pill .select2-selection--single:focus {
	border-color: var(--navy);
}
.select2-container--assc.select2--pill .select2-results__option {
	font-size: 13px;
}

/* The twin of .f-select--sm. This is the one that actually renders in the table footer:
   assc.select.js upgrades every select on the page, so the native control above is only
   ever seen before the upgrade runs — the two have to stay the same size. */
.select2-container--assc.select2--sm .select2-selection--single {
	padding: 4px 10px;
	border-width: 1px;
	font-size: 12.5px;
}
.select2-container--assc.select2--sm
	.select2-selection--single
	.select2-selection__arrow {
	width: 24px;
	background-position: right 8px center;
}
.select2-container--assc.select2--sm
	.select2-selection--single
	.select2-selection__rendered {
	padding-right: 16px;
}

/* Error. Two selectors for one state: the server renders .is-error on the select,
   which assc.select.js carries across as a modifier, and the client-side validator
   sets aria-invalid on the original select — which is still in the DOM, hidden,
   immediately before its container. */
.select2-container--assc.select2--error .select2-selection--single,
select[aria-invalid="true"]
	+ .select2-container--assc
	.select2-selection--single {
	border-color: var(--error-ring);
}

/* 06 BUTTONS & PILLS ------------------------------------------------------- */

/* The gap is for icon-plus-label buttons. Note that an .sr-only span inside a button
   splits the label into two anonymous flex items, so any whitespace left between that
   span and </button> becomes a second item and the gap pushes the label off centre —
   close the tag straight after the span. */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s1);
	/* 11px + 1px border against the field's 10px + 2px border puts a button at the same
	   44px as an .f-input, so an action next to or beneath a field lines up with it. */
	padding: 11px 20px;
	border: 1px solid transparent;
	border-radius: var(--r);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
}
.btn:hover {
	text-decoration: none;
}
.btn:disabled,
.btn.is-busy {
	opacity: 0.6;
	cursor: not-allowed;
}

.btn--primary {
	background: var(--navy);
	color: var(--on-dark);
}
.btn--primary:hover:not(:disabled) {
	background: var(--navy-hover);
}
.btn--secondary {
	background: var(--surface);
	color: var(--ink);
	border-color: var(--border-field);
}
.btn--secondary:hover:not(:disabled) {
	background: var(--surface-3);
}
.btn--brass {
	background: var(--brass);
	color: var(--ink);
}
.btn--ghost {
	background: none;
	color: var(--navy);
	padding-inline: 0;
}
.btn--danger {
	background: none;
	color: var(--error);
	padding-inline: 0;
}
.btn--pill {
	border-radius: var(--r-pill);
	padding: 8px 16px;
	font-size: 13px;
}
.btn--outline-pill {
	border-radius: var(--r-pill);
	padding: 8px 16px;
	font-size: 13px;
	color: var(--navy);
	background: var(--surface);
	border-color: var(--border-field);
}
.btn--outline-pill:hover {
	border-color: var(--navy);
	background: var(--canvas);
}
.btn--sm {
	padding: 6px 14px;
	font-size: 13px;
}
/* The sign-in button spans its card, as in the prototype. */
.btn--block {
	display: flex;
	width: 100%;
	padding: 14px;
	font-size: 15px;
}
/* The form's primary action carries a lift, so it reads as the end of the page. */
.btn--submit {
	flex: 1 1 240px;
	padding: 15px 24px;
	font-size: 15px;
	box-shadow: 0 8px 20px rgba(68, 94, 143, 0.28);
}
.btn--submit:active:not(:disabled) {
	transform: translateY(1px);
}

.pill {
	display: inline-flex;
	align-items: center;
	border-radius: var(--r-pill);
	padding: 5px 12px;
	font-size: 12.5px;
}
.pill--navy {
	background: var(--accent-bg);
	color: var(--navy);
}
.pill--brass {
	background: var(--brass-bg);
	color: var(--brass-ink);
}
.pill--ok {
	background: var(--ok-bg);
	color: var(--ok);
}
.pill--error {
	background: var(--error-bg);
	color: var(--error-ink);
}

.avatar {
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--accent-bg);
	color: var(--navy);
	font-size: 12.5px;
	font-weight: 500;
}
.avatar--dark {
	background: var(--sidebar-hover);
	color: var(--on-dark);
}
.avatar--brass {
	background: var(--brass-soft);
	color: var(--brass-deep);
	border-radius: var(--r);
	font-size: 12px;
}

/* 07 CARDS & ALERTS -------------------------------------------------------- */

.card {
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--r);
	padding: 26px 28px;
}
.card--flush {
	padding: 0;
}
.card--raised {
	box-shadow: var(--shadow-card);
	border-color: transparent;
}
.card__head {
	border-bottom: 1px solid var(--hairline-2);
	padding-bottom: var(--s2);
	margin-bottom: var(--s3);
}

.card--dark {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.78);
	border-color: transparent;
}
.card--dark h3,
.card--dark strong {
	color: var(--on-dark);
}

/* One card divided into columns, not four separate cards — the dividers are inset
   shadows so no cell needs a border that would double up at the seams. */
.stat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--r);
	overflow: hidden;
}
.stat {
	min-width: 0;
	padding: 20px 18px;
	box-shadow: inset 1px 0 0 var(--hairline-2);
}
.stat:first-child {
	box-shadow: none;
}
.stat__label {
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}
/* Value and note share a baseline, rather than stacking. */
.stat__body {
	display: flex;
	align-items: baseline;
	gap: 9px;
	margin-top: 10px;
	flex-wrap: wrap;
}
.stat__value {
	font-family: var(--font-head);
	font-weight: 400;
	font-size: 34px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--heading);
}
.stat__note {
	font-size: 11.5px;
	color: var(--muted);
}

/* Filters sit in their own card, above the results card. */
.filters-card {
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--r);
	padding: 13px 16px;
}
.filters {
	display: flex;
	/* A shade wider than --s1: at 7px the four controls read as one run-on control, and
	   the gender segment needs to look separate from the select it sits beside. */
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

/* Filter-bar controls. They share the 8px field radius with every other input and with
   .btn, because a fully rounded shape is reserved for things you press or read as a tag —
   buttons, .f-seg labels, .pill, .status-chip — and a text box is neither. */
.f-input--pill,
.f-select--pill {
	border-radius: var(--r);
	border-color: var(--hairline);
	padding: 10px var(--s2);
	font-size: 13px;
}
.f-select--pill {
	padding-right: 32px;
}
.f-input--pill:focus,
.f-select--pill:focus {
	border-color: var(--navy);
	background: var(--surface);
}

/* Compact field. The rows-per-page control sits inside the table footer beside the
   "Showing x–y of z" caption, so it is drawn at caption scale: a field at form scale
   there is half again as tall as the line it labels and reads as the loudest thing in
   the footer. The border drops to 1px because 2px around a 29px box is a frame. */
.f-select--sm {
	padding: 4px 28px 4px 10px;
	border-width: 1px;
	font-size: 12.5px;
	background-position: right 8px center;
}

/* Search field with its magnifier. The icon is a background image so it cannot be
   selected, and the input keeps its own padding for the glyph. */
.search-field {
	position: relative;
	/* Wide enough for a name and the placeholder, and no wider: the bar holds four
	   controls, and a search box that grows without limit pushes the sort select onto
	   a second row on its own. */
	flex: 1 1 240px;
	max-width: 340px;
	min-width: 0;
}
/* The input has to fill the field it sits in. `.filters .f-input { width: auto }` below
   lets the selects size to their content, but applied here it would leave the search box
   at its intrinsic ~20-character width while the flex item around it grew — so the
   three-class selector outranks it rather than relying on source order. */
.filters .search-field .f-input,
.search-field .f-input {
	width: 100%;
	padding-left: 36px;
}
.search-field__icon {
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: var(--muted);
}

/* Loading and empty states are cards in their own right. */
.state-card {
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--r);
}

.alert {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	border: 1px solid;
	border-radius: var(--r);
	padding: 14px 16px;
}
.alert--error {
	background: var(--error-bg);
	border-color: var(--error-border);
	color: var(--error-ink);
}
.alert--ok {
	background: var(--ok-bg);
	border-color: var(--ok-border);
	color: var(--ok);
}
.alert--warn {
	background: var(--brass-bg);
	border-color: var(--brass-soft);
	color: var(--brass-ink);
}
.alert--warn .alert__badge {
	background: var(--warn-badge);
}
.alert--info {
	background: var(--accent-bg);
	border-color: var(--hairline);
	color: var(--navy);
}
.alert__badge {
	width: 18px;
	height: 18px;
	flex: none;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--error);
	color: var(--on-dark);
	font-size: 12.5px;
}

/* 07b SHARE ----------------------------------------------------------------
   Share targets, drawn as flat marks in the brand navy — no tile, no fill, no border.
   The card the block sits in is already a surface; boxing each glyph inside it would be
   a second border at every glyph, and the row would read as six buttons rather than as
   one set of marks.

   No brand's own colour appears here either. Five official brand colours beside a form
   would out-shout it, and the glyph inheriting currentColor is what lets hover move one
   value instead of five.

   The heading and caption above the row are .t-section and .t-caption, the same two the
   "Questions?" card beside it uses — this block is deliberately its sibling, so it takes
   the classes rather than restating their type.
   -------------------------------------------------------------------------- */

.share__list {
	list-style: none;
	/* Pulled left by the glyph's own padding, so the first mark lines up with the
	   heading above it rather than sitting a few pixels inboard of it. */
	margin: var(--s2) 0 0 -6px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--s1);
}
.share__btn {
	display: grid;
	place-items: center;
	/* The glyph is 20px; the padding is what makes the target big enough to hit on a
	   touch screen without drawing anything. */
	padding: 6px;
	border: 0;
	background: none;
	color: var(--navy);
	cursor: pointer;
	transition: color 0.15s ease;
}
.share__btn:hover {
	color: var(--navy-hover);
}
.share__btn:focus-visible {
	outline: none;
	border-radius: var(--r);
	box-shadow: var(--focus);
}
.share__icon {
	display: block;
}

/* Copy link holds both glyphs and shows one. Swapping a class beats swapping markup:
   the check never has to be built in JavaScript, so no SVG path lives in a .js file. */
.share__icon--done,
.share__btn.is-copied .share__icon {
	display: none;
}
.share__btn.is-copied .share__icon--done {
	display: block;
}
.share__btn.is-copied {
	color: var(--ok);
}

/* On the success card the block is a footer, not a card of its own — a card inside a
   card would double the border. A hairline does the separating instead. */
.share-foot {
	margin-top: var(--s4);
	padding-top: var(--s3);
	border-top: 1px solid var(--hairline-2);
}

/* 08 TABLES ---------------------------------------------------------------- */

/* A table is the one thing allowed to be wider than the viewport, inside its own
   scroller. The page itself must never scroll sideways. */
.table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.table {
	width: 100%;
	border-collapse: collapse;
}
.table th {
	text-align: left;
	padding: 12px 14px;
	background: var(--surface-3);
	border-bottom: 1px solid var(--hairline);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 500;
	white-space: nowrap;
}
.table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--hairline-3);
	vertical-align: middle;
}
.table tbody tr:hover {
	background: var(--surface-3);
}
.table__sort {
	cursor: pointer;
	user-select: none;
}
.table__sort .mark {
	color: var(--border-field);
	margin-left: 4px;
}
.table__sort.is-sorted .mark {
	color: var(--navy);
}

.table__person {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.table__person .name {
	color: var(--ink);
	font-weight: 500;
}
.table__person .email {
	color: var(--muted);
	font-size: 12.5px;
	word-break: break-word;
}

.table-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s2);
	flex-wrap: wrap;
	padding: var(--s2) 16px;
	border-top: 1px solid var(--hairline-2);
}
.pager {
	display: flex;
	gap: 4px;
}
.pager button {
	min-width: 30px;
	height: 30px;
	border: 1px solid var(--border-field);
	background: var(--surface);
	border-radius: var(--r);
	cursor: pointer;
	font-size: 13px;
}
.pager button.is-current {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--on-dark);
}
.pager button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.filters .f-input,
.filters .f-select,
.filters .select2-container {
	width: auto;
	min-width: 0;
}

/* 09 MODAL, TOAST, STATES -------------------------------------------------- */

.modal-scrim {
	position: fixed;
	inset: 0;
	background: var(--scrim);
	display: grid;
	place-items: center;
	padding: var(--s3);
	z-index: 50;
}
.modal {
	background: var(--surface);
	border-radius: var(--r);
	box-shadow: var(--shadow-modal);
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 2 * var(--s3));
	display: flex;
	flex-direction: column;
}
.modal__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: var(--s3) var(--s4);
	border-bottom: 1px solid var(--hairline-2);
}
.modal__head h2 {
	/* A dialog title, not a display heading — the serif h1-h4 face is too light to read
	   cleanly at this size against the subtitle beneath it, so it takes the body font. */
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 16px;
	letter-spacing: 0;
}
.modal__body {
	padding: var(--s4);
	overflow-y: auto;
}
.modal__foot {
	display: flex;
	justify-content: flex-end;
	gap: var(--s1);
	padding: var(--s3) var(--s4);
	border-top: 1px solid var(--hairline-2);
}
.modal__close {
	margin-left: auto;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--muted);
	font-size: 18px;
}

.toast-host {
	position: fixed;
	right: var(--s3);
	bottom: var(--s3);
	z-index: 60;
	display: grid;
	gap: var(--s1);
}
.toast {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--surface);
	border: 1px solid var(--ok-border);
	border-radius: var(--r);
	box-shadow: var(--shadow-toast);
	padding: 12px 14px;
	max-width: 420px;
	font-weight: 500;
}
.toast--error {
	border-color: var(--error-border);
}

.state {
	display: grid;
	place-items: center;
	gap: var(--s1);
	padding: 56px var(--s3);
	text-align: center;
}
.state__title {
	font-family: var(--font-head);
	font-size: 19px;
	color: var(--heading);
}
.state__note {
	color: var(--muted);
	max-width: 34em;
}

.spinner {
	width: 22px;
	height: 22px;
	border: 2px solid var(--hairline);
	border-top-color: var(--navy);
	border-radius: 50%;
	animation: assc-spin 0.7s linear infinite;
}
@keyframes assc-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Respect a user who has asked for less motion. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* A thin progress bar during AJAX navigation, so a slow fetch is never a dead click. */
.nav-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 2px;
	width: 0;
	background: var(--brass);
	z-index: 70;
	transition:
		width 0.2s ease-out,
		opacity 0.3s ease-out;
}

/* 10 UTILITIES ------------------------------------------------------------- */

/* Small, named helpers so no template carries a style attribute. */
.is-hidden-offscreen {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.w-auto {
	width: auto;
}
.maxw-year {
	max-width: 220px;
}
.gap-10 {
	gap: 10px;
}
.minw-0 {
	min-width: 0;
}
.plain-link {
	color: inherit;
	text-decoration: none;
}
.plain-link:hover {
	text-decoration: none;
}
.is-disabled {
	pointer-events: none;
	opacity: 0.45;
}
.pad-block-4 {
	padding-block: var(--s4);
}
.pad-bottom-4 {
	padding-bottom: var(--s4);
}
.lh-165 {
	line-height: 1.65;
}
.req-mark {
	color: var(--error);
}
.tone-muted-bg {
	background: var(--surface-3);
}
.table--nested {
	background: none;
}

/* A label/value pair list, used by the success card. */
.kv {
	display: grid;
	grid-template-columns: 0.8fr 1.1fr;
	gap: var(--s1) var(--s2);
}
.kv dt,
.kv dd {
	margin: 0;
}

.ml-auto {
	margin-left: auto;
}
.mt-24 {
	margin-top: 24px;
}
.gap-16 {
	gap: 16px;
}
/* A filter select that is allowed to shrink but keeps a sensible resting width — sized
   to a long option ("All inductees", a full name in the activity log's user filter), not
   to the space going spare. Without it a select hugs its selected label, so a filter
   resting on "All actions" comes out narrower than the menu it opens. */
.filter-wide {
	flex: 0 1 220px;
	min-width: 0;
}

/* Logo sizes, one per placement. */
.logo {
	display: block;
}
/* Larger than the prototype's 38px: with the event line and sign-in button gone, the
   logo is the only thing in the header and can carry it. Capped in vw so a long mark
   cannot crowd a narrow screen. */
.logo--header {
	height: clamp(40px, 5vw, 56px);
	width: auto;
}
.logo--login {
	height: 42px;
	width: auto;
}
.logo--sidebar {
	width: 100%;
	max-width: 168px;
	height: auto;
}

.stack {
	display: grid;
	gap: var(--s3);
}
.stack--s {
	gap: var(--s1);
}
.stack--m {
	gap: var(--s2);
}
.row {
	display: flex;
	align-items: center;
	gap: var(--s1);
	flex-wrap: wrap;
}
.row--between {
	justify-content: space-between;
}
/* The chip and the date read as two separate facts, so they need more air between
   them than .row's default gap gives.
   Qualified with .row on purpose. A bare .topbar__meta is the same specificity as
   .row, so it would win or lose on source order alone — which is how this rule sat
   dead in the file once already. .row.topbar__meta outranks .row outright and cannot
   be silently undone by moving either block. */
.row.topbar__meta {
	gap: var(--s2);
}
.grow {
	flex: 1;
	min-width: 0;
}
.muted {
	color: var(--muted);
}
.nowrap {
	white-space: nowrap;
}
.mt-1 {
	margin-top: var(--s1);
}
.mt-2 {
	margin-top: var(--s2);
}
.mt-3 {
	margin-top: var(--s3);
}
.mt-4 {
	margin-top: var(--s4);
}

/* 11 SIDEBAR DRAWER (mobile chrome) ---------------------------------------- */

.sidebar-toggle {
	display: none;
}
.sidebar__scrim {
	display: none;
}

/* 12 RESPONSIVE ------------------------------------------------------------ */
/*
   Layout only. Breakpoints never change a colour, a type scale or a component's
   appearance — the design is the design at every width, it just reflows.
*/

@media (max-width: 1080px) {
	/* The registration summary rail stacks under the form before the form gets cramped. */
	.reg-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	/* Stacked, the rail is below the form — sticking it would pin it off-screen. */
	.reg-rail {
		position: static;
	}
	.stat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	/* The inset dividers only make sense on the first column of each row. */
	.stat:nth-child(odd) {
		box-shadow: none;
	}
	.stat:nth-child(n + 3) {
		border-top: 1px solid var(--hairline-2);
	}
}

@media (max-width: 900px) {
	/* Sidebar becomes a drawer. It stays in the DOM in the same order, so the AJAX
     fragment swap and the tab order are unaffected. */
	.app {
		grid-template-columns: minmax(0, 1fr);
	}

	.sidebar {
		position: fixed;
		inset: 0 auto 0 0;
		width: min(84vw, var(--sidebar-w));
		/* dvh tracks the mobile browser's collapsing toolbar; vh does not, and the
       drawer's footer would sit under it. vh stays as the fallback. */
		height: 100vh;
		height: 100dvh;
		transform: translateX(-100%);
		transition: transform 0.22s ease-out;
		z-index: 40;
	}
	.app.is-drawer-open .sidebar {
		transform: translateX(0);
	}

	.app.is-drawer-open .sidebar__scrim {
		display: block;
		position: fixed;
		inset: 0;
		background: var(--scrim);
		z-index: 30;
	}

	.sidebar-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 38px;
		height: 38px;
		border: 1px solid var(--border-field);
		border-radius: var(--r);
		background: var(--surface);
		cursor: pointer;
	}

	/* The marketing panel is decoration; on a phone the form is the whole job. */
	.auth__panel {
		display: none;
	}
	.auth {
		padding: var(--s2);
		min-height: 100dvh;
	}
	.auth__card {
		padding: var(--s4) var(--s3);
	}

	.topbar,
	.main {
		padding: var(--s3);
	}
	.hero {
		padding-block: 40px 72px;
	}
	.t-display {
		font-size: 34px;
	}
}

@media (max-width: 780px) {
	/* Results tables become stacked cards rather than a sideways-scrolling grid.
     Each cell keeps its column name via data-label, so the information is identical —
     only the arrangement changes. */
	.table--stack thead {
		display: none;
	}

	.table--stack,
	.table--stack tbody,
	.table--stack tr,
	.table--stack td {
		display: block;
		width: 100%;
	}

	.table--stack tr {
		border: 1px solid var(--hairline);
		border-radius: var(--r);
		margin-bottom: var(--s2);
		padding: var(--s1) var(--s2);
		background: var(--surface);
	}
	.table--stack tbody tr:hover {
		background: var(--surface);
	}

	.table--stack td {
		border-bottom: 1px solid var(--hairline-3);
		padding: 10px 0;
		display: grid;
		grid-template-columns: 34% minmax(0, 1fr);
		gap: var(--s2);
		align-items: start;
	}
	.table--stack td:last-child {
		border-bottom: 0;
	}

	.table--stack td::before {
		content: attr(data-label);
		font-size: 10.5px;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--muted);
		font-weight: 500;
	}
	/* A cell with no label spans the full width — the actions row, for instance. */
	.table--stack td[data-label=""]::before {
		content: none;
	}
	.table--stack td[data-label=""] {
		grid-template-columns: minmax(0, 1fr);
	}

	/* The expanded activity detail is already a table; keep it simple inside a card. */
	.table--stack td > .table {
		margin-top: var(--s1);
	}

	/* Filter bars stack, and every control takes the full width. */
	.filters {
		flex-direction: column;
		align-items: stretch;
	}
	/* Reset every flex shorthand in the bar once it stacks.
	   flex-basis follows the MAIN axis, so `flex: 1 1 240px` on the search field and
	   `flex: 0 1 220px` on the inductee select stop meaning "this wide" and start meaning
	   "this TALL" the moment the direction flips to column. */
	.filters > * {
		flex: 0 0 auto;
	}
	/* The search field's horizontal cap has no meaning in a stacked column. */
	.filters .search-field {
		max-width: none;
	}
	.filters .f-input,
	.filters .f-select,
	.filters .f-seg {
		width: 100%;
	}
	/* Select2 writes its width as an inline style, which a class cannot outrank —
	   this is the one place the stacked bar has to insist. */
	.filters .select2-container {
		width: 100% !important;
	}
	.filters .f-seg label {
		flex: 1;
		text-align: center;
	}

	.table-foot {
		flex-direction: column;
		align-items: stretch;
		gap: var(--s2);
	}
	.table-foot .row {
		justify-content: space-between;
	}
}

@media (max-width: 640px) {
	.f-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.stat-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.stat {
		box-shadow: none;
	}
	.stat + .stat {
		border-top: 1px solid var(--hairline-2);
	}
	.card {
		padding: var(--s3);
	}
	.auth__form {
		padding: var(--s4) var(--s3);
	}

	/* Full-bleed modal with a sticky footer, so the actions stay reachable while the
     body scrolls. */
	.modal-scrim {
		padding: 0;
		place-items: end stretch;
	}
	.modal {
		max-width: none;
		border-radius: var(--r) var(--r) 0 0;
		max-height: 92vh;
	}
	.modal__foot {
		position: sticky;
		bottom: 0;
		background: var(--surface);
	}

	.toast-host {
		left: var(--s2);
		right: var(--s2);
		bottom: var(--s2);
	}
	.toast {
		max-width: none;
	}

	.filters > *:not(.sr-only) {
		width: 100%;
	}
	.filters .f-input,
	.filters .f-select {
		width: 100%;
	}
	.filters .select2-container {
		width: 100% !important;
	}

	.t-display {
		font-size: 28px;
	}
	.t-page {
		font-size: 21px;
	}
	.overlap {
		margin-top: -40px;
	}
}

/* 13 PRINT ----------------------------------------------------------------- */

@media print {
	.sidebar,
	.topbar,
	.public-header,
	.toast-host,
	.pager,
	.filters {
		display: none !important;
	}
	body {
		background: var(--surface);
	}
	.card {
		border-color: var(--hairline);
		box-shadow: none;
	}
}
