/*
 * Strongman Archives: site theme (ui-refresh branch).
 *
 * The look of the proposed 2026 redesign ("Cobalt": cool paper, electric cobalt accent,
 * Space Grotesk / Inter / JetBrains Mono, 1px hairlines, 6px / 10px radii), applied to the
 * existing pages. Loaded last, after blueprint, azimuth, DataTables and site.css, so it wins
 * over them; inline colours still printed by older page code are overridden here too.
 *
 * Sections: 1 tokens · 2 base · 3 shell (sidebar, toolbar, footer) · 4 components ·
 *           5 tables & DataTables · 6 older page elements · 7 responsive
 */

/* ===================== 1. Tokens ===================== */

:root {
	--color-paper: #f8fafd;
	--color-paper-2: #f2f5f9;
	--color-paper-3: #e7ecf0;
	--color-ink: #192029;
	--color-ink-2: #323841;
	--color-rule: #d9dfe5;
	--color-rule-2: #bec5cc;
	--color-muted: #5e646d;
	--color-accent: #0076ed;
	--color-accent-2: #005fc6;
	--color-accent-ink: #f8fafd;
	--color-accent-soft: rgba(0, 118, 237, 0.1);
	--color-focus: rgba(0, 118, 237, 0.45);
	--color-destructive: #c53637;
	--color-live: #dc2626;
	--color-highlight: #fff6c2;
	--color-stripe: #ebf2fa; /* alternate table rows (the production site's blue tint) */
	--color-row-hover: #dde8f6;
	--color-table-head: #d6dee8; /* table header row: clearly darker than the stripe */
	--color-scrim: rgba(9, 13, 20, 0.45);
	--shadow-xs: 0 1px 2px rgba(25, 32, 41, 0.05);
	--shadow-md: 0 2px 8px rgba(25, 32, 41, 0.06);
	--shadow-lg: 0 8px 24px rgba(25, 32, 41, 0.12);

	--font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
	--font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-label: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	--text-display: clamp(2.25rem, 4vw, 3.25rem);
	--radius-sm: 4px;
	--radius-md: 6px;
	--radius-lg: 10px;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--dur-fast: 150ms;

	--sidebar-width: 15rem;
	--sidebar-collapsed: 4rem;
	--content-max: 1180px;

	color-scheme: light;
}

html.dark {
	--color-paper: #090d14;
	--color-paper-2: #12161d;
	--color-paper-3: #1b1f27;
	--color-ink: #e6ecf2;
	--color-ink-2: #9ea5af;
	--color-rule: #2e333b;
	--color-rule-2: #434851;
	--color-muted: #9399a1;
	--color-accent: #4298ff;
	--color-accent-2: #3680dd;
	--color-accent-ink: #090d14;
	--color-accent-soft: rgba(66, 152, 255, 0.14);
	--color-focus: rgba(66, 152, 255, 0.5);
	--color-destructive: #ea6a64;
	--color-live: #dc2626;
	--color-highlight: #3a3415;
	--color-stripe: #121a26;
	--color-row-hover: #1c2634;
	--color-table-head: #252d39;
	--color-scrim: rgba(0, 0, 0, 0.6);
	--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 2px 8px rgba(0, 0, 0, 0.35);
	--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

	color-scheme: dark;
}

/* ===================== 2. Base ===================== */

html, body.sa {
	overflow-x: clip;
}

html body.sa {
	margin: 0;
	height: auto;
	min-height: 100%;
	background: var(--color-paper);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

html.dark body.sa {
	font-weight: 350;
}

.sa ::selection {
	background: var(--color-accent);
	color: var(--color-accent-ink);
}

.sa a,
.sa a:visited {
	color: var(--color-accent);
	text-decoration: none;
	transition: color var(--dur-fast) var(--ease-out);
}

.sa a:hover,
.sa a:focus {
	color: var(--color-accent-2);
	text-decoration: underline;
	text-underline-offset: 2px;
}

html.dark .sa a:hover,
html.dark .sa a:focus {
	color: var(--color-ink);
}

.sa :focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 1px;
	border-radius: var(--radius-sm);
}

.sa h1, .sa h2, .sa h3, .sa h4, .sa h5, .sa h6 {
	font-family: var(--font-display);
	color: var(--color-ink);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.sa h1 { font-size: 2.25rem; line-height: 1.1; letter-spacing: -0.03em; }
.sa h2 { font-size: 1.875rem; line-height: 1.15; letter-spacing: -0.025em; }
.sa h3 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.02em; }
.sa h4 { font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.01em; }

.sa p {
	line-height: 1.65;
}

.sa input, .sa select, .sa textarea, .sa button {
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--color-ink);
}

.sa button, .sa summary, .sa [role='button'] {
	cursor: pointer;
}

.sa img {
	max-width: 100%;
}

.sa hr {
	background: var(--color-rule);
	color: var(--color-rule);
	height: 1px;
	border: 0;
}

.sa-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sa-skip {
	position: absolute;
	left: 8px;
	top: -40px;
	z-index: 100;
	padding: 8px 12px;
	background: var(--color-accent);
	color: var(--color-accent-ink) !important;
	border-radius: var(--radius-md);
}

.sa-skip:focus {
	top: 8px;
}

@media (prefers-reduced-motion: reduce) {
	.sa *, .sa *::before, .sa *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 150ms !important;
		scroll-behavior: auto !important;
	}
}

/* ===================== 3. Shell ===================== */

.sa-shell {
	display: flex;
	min-height: 100vh;
}

.sa-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.sa-main {
	flex: 1;
	width: 100%;
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 2.5rem 2.5rem 4rem;
	box-sizing: border-box;
	min-width: 0;
}

/* --- logo --- */

.sa .sa-logo,
.sa .sa-logo:visited {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--color-ink);
	text-decoration: none;
}

.sa .sa-logo:hover {
	color: var(--color-ink);
	text-decoration: none;
}

.sa-logo-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: var(--radius-md);
	background: var(--color-accent);
	overflow: hidden;
}

.sa-logo-mark img {
	width: 24px;
	height: 24px;
	display: block;
}

.sa-logo-type {
	display: flex;
	flex-direction: column;
	line-height: 1;
	min-width: 0;
}

.sa-logo-name {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.sa-logo-sub {
	margin-top: 2px;
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-muted);
}

/* --- icons & icon buttons --- */

.sa-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	display: block;
}

.sa .sa-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-md);
	background: var(--color-paper);
	color: var(--color-ink);
	transition: background-color var(--dur-fast) var(--ease-out);
}

.sa .sa-icon-btn:hover {
	background: var(--color-paper-3);
}

.sa .sa-icon-btn-sm {
	width: 32px;
	height: 32px;
}

.sa-theme-toggle .sa-icon-sun,
html.dark .sa-theme-toggle .sa-icon-moon {
	display: none;
}

html.dark .sa-theme-toggle .sa-icon-sun {
	display: block;
}

/* --- sidebar --- */

.sa-sidebar {
	position: sticky;
	top: 0;
	height: 100vh;
	width: var(--sidebar-width);
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	background: var(--color-paper-2);
	border-right: 1px solid var(--color-rule);
	box-sizing: border-box;
	z-index: 50;
}

.sa-sidebar-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 1.25rem 0.75rem 1rem 1rem;
}

.sa-drawer-close {
	display: none !important;
}

.sa-sidebar-scroll {
	flex: 1;
	overflow-y: auto;
	padding: 0 0.75rem 1rem;
}

.sa-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sa-nav-more {
	margin-top: 1.25rem;
}

/* "More" is a <details> group: collapsed until opened (js/site.js remembers the choice). */
.sa .sa-nav-summary {
	list-style: none;
	cursor: pointer;
	border-radius: var(--radius-md);
	padding-top: 0.5rem;
}

.sa .sa-nav-summary::-webkit-details-marker {
	display: none;
}

.sa .sa-nav-summary:hover .sa-overline,
.sa .sa-nav-summary:hover .sa-icon {
	color: var(--color-ink);
}

.sa-nav-summary .sa-icon {
	color: var(--color-muted);
}

.sa-icon-chevron {
	transition: transform var(--dur-fast) var(--ease-out);
}

.sa-nav-more[open] .sa-icon-chevron {
	transform: rotate(180deg);
}

.sa-nav-summary .sa-icon-more {
	display: none;
}

.sa-nav-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	min-height: 32px;
	padding: 0.25rem 0.75rem 0.5rem;
}

.sa .sa-overline {
	margin: 0;
	font-family: var(--font-label);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-accent);
}

.sa-nav-head .sa-overline {
	color: var(--color-muted);
}

.sa-nav-row {
	position: relative;
	display: flex;
	align-items: center;
	border-radius: var(--radius-md);
	color: var(--color-muted);
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.sa-nav-row:hover {
	background: var(--color-paper-3);
	color: var(--color-ink);
}

.sa-nav-row.is-active {
	background: var(--color-accent-soft);
	color: var(--color-accent);
}

.sa .sa-nav-link,
.sa .sa-nav-link:visited {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: 40px;
	padding: 0 0.75rem;
	color: inherit;
	font-family: var(--font-display);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.sa .sa-nav-link:focus,
.sa .sa-nav-link:hover {
	color: inherit;
	text-decoration: none;
}





/* collapsed rail (desktop only; the choice is remembered in localStorage) */

@media (min-width: 768px) {
	html[data-sidebar='collapsed'] .sa-sidebar {
		width: var(--sidebar-collapsed);
	}

	html[data-sidebar='collapsed'] .sa-sidebar-top {
		flex-direction: column;
		justify-content: center;
		gap: 0.75rem;
		padding: 1.25rem 0.25rem 1rem;
	}

	html[data-sidebar='collapsed'] .sa-logo-type,
	html[data-sidebar='collapsed'] .sa-nav-label,
	html[data-sidebar='collapsed'] .sa-nav-head .sa-overline {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	html[data-sidebar='collapsed'] .sa-sidebar-scroll {
		padding: 0 0.25rem 1rem;
	}

	html[data-sidebar='collapsed'] .sa-nav-head {
		justify-content: center;
		padding: 0 0 0.5rem;
	}

	html[data-sidebar='collapsed'] .sa-nav-more .sa-nav-head {
		height: 40px;
		padding: 0;
		border-top: 1px solid var(--color-rule);
		margin: 0 0.5rem 0.25rem;
		border-radius: 0;
	}

	html[data-sidebar='collapsed'] .sa-nav-summary .sa-icon-chevron {
		display: none;
	}

	html[data-sidebar='collapsed'] .sa-nav-summary .sa-icon-more {
		display: block;
	}

	html[data-sidebar='collapsed'] .sa-nav-link {
		justify-content: center;
		padding: 0;
	}
}

.sa-collapse-toggle .sa-icon-expand,
html[data-sidebar='collapsed'] .sa-collapse-toggle .sa-icon-collapse {
	display: none;
}

html[data-sidebar='collapsed'] .sa-collapse-toggle .sa-icon-expand {
	display: block;
}

/* --- header bar: site search + view / theme switches (sticky on desktop) --- */

.sa-topbar {
	position: sticky;
	top: 0;
	z-index: 30;
	border-bottom: 1px solid var(--color-rule);
	background: rgba(248, 250, 253, 0.85);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

html.dark .sa-topbar {
	background: rgba(9, 13, 20, 0.85);
}

.sa-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: var(--content-max);
	height: 64px;
	margin: 0 auto;
	padding: 0 2.5rem;
	box-sizing: border-box;
}

.sa .sa-header-search {
	flex: 1;
	max-width: 30rem;
}

.sa .sa-header-search .sa-icon {
	left: 12px;
}

.sa .sa-header-search input[type='text'] {
	height: 40px;
	padding-left: 36px;
}

.sa .sa-header-search .result {
	max-height: min(70vh, 32rem);
	overflow-y: auto;
}

.sa-topbar-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sa-topbar .sa-icon-btn {
	border-color: transparent;
	background: transparent;
}

.sa .result .sa-result-empty {
	padding: 12px 14px;
	color: var(--color-muted);
}

.sa .result a.is-active p {
	background: var(--color-paper-3);
}

/* "Classic view" switch (toolbar on desktop, foot of the slide-in menu on phones) */
.sa .sa-view-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 10px;
	margin: 0;
	border: 0;
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--color-muted);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.sa .sa-view-toggle:hover {
	background: var(--color-paper-3);
	color: var(--color-ink);
}

.sa-sidebar-foot {
	display: none;
	margin-top: 1.25rem;
	padding: 0.75rem 0.25rem 0;
	border-top: 1px solid var(--color-rule);
}

/* --- mobile header & drawer --- */

.sa-mobile-header {
	display: none;
}

.sa-drawer-backdrop {
	display: none;
}

/* --- footer --- */

.sa-footer {
	border-top: 1px solid var(--color-rule);
	background: var(--color-paper-2);
}

.sa-footer-inner,
.sa-footer-legal {
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 2.5rem 2.5rem;
	box-sizing: border-box;
}

.sa-footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
}

.sa-footer-brand {
	max-width: 24rem;
}

.sa .sa-footer-brand p {
	margin: 1rem 0 0;
	color: var(--color-ink-2);
	font-size: 14px;
}

.sa-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
}

.sa .sa-footer-links a,
.sa .sa-footer-links a:visited {
	font-family: var(--font-display);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-ink-2);
}

.sa .sa-footer-links a:hover {
	color: var(--color-accent);
	text-decoration: none;
}

.sa-footer-legal {
	padding-top: 1rem;
	padding-bottom: 1rem;
	border-top: 1px solid var(--color-rule);
}

.sa .sa-footer-legal p {
	margin: 0;
	font-size: 12px;
	color: var(--color-muted);
}

/* ===================== 4. Components ===================== */

/* Section heading: mono overline over a display title, with an optional action at the right. */
.sa-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 2rem;
}

.sa #main_area .sa-section-head h1,
.sa #main_area .sa-section-head h2 {
	font-size: 1.875rem;
	line-height: 1.15;
	letter-spacing: -0.025em;
	margin: 0.5rem 0 0;
}

/* No overline above the heading: no gap either. */
.sa #main_area .sa-section-head h1:first-child,
.sa #main_area .sa-section-head h2:first-child {
	margin-top: 0;
}

.sa-section {
	padding: 3rem 0;
}

.sa-section + .sa-section {
	border-top: 1px solid var(--color-rule);
}

.sa #main_area .sa-display {
	font-family: var(--font-display);
	font-size: var(--text-display);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0;
}

.sa .sa-lede {
	max-width: 36rem;
	margin: 1rem 0 0;
	color: var(--color-ink-2);
	font-size: 1rem;
	line-height: 1.75;
}

.sa .sa-label {
	font-family: var(--font-label);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-muted);
}

/* Buttons */
.sa .sa-btn,
.sa .sa-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px;
	padding: 0 0.875rem;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	background: var(--color-accent);
	color: var(--color-accent-ink);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.sa .sa-btn:hover {
	background: var(--color-accent-2);
	color: var(--color-accent-ink);
	text-decoration: none;
}

.sa .sa-btn-outline,
.sa .sa-btn-outline:visited {
	background: var(--color-paper);
	border-color: var(--color-rule);
	color: var(--color-ink);
}

.sa .sa-btn-outline:hover {
	background: var(--color-paper-3);
	border-color: var(--color-rule);
	color: var(--color-ink);
}

/* Cards */
.sa .sa-card,
.sa a.sa-card:visited {
	display: block;
	padding: 1.25rem;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-lg);
	background: var(--color-paper-2);
	color: var(--color-ink);
	transition: border-color var(--dur-fast) var(--ease-out);
}

.sa a.sa-card:hover {
	border-color: var(--color-accent);
	color: var(--color-ink);
	text-decoration: none;
}

/* Pill tabs (also used for the older .tablink buttons, see section 6) */
.sa-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
	margin: 0 0 1.5rem;
	border-radius: var(--radius-md);
	background: var(--color-paper-3);
}

/* Inputs */
.sa input[type='text'],
.sa input[type='search'],
.sa input[type='number'],
.sa input[type='email'],
.sa input[type='password'],
.sa select,
.sa textarea {
	box-sizing: border-box;
	min-height: 36px;
	padding: 6px 10px;
	margin: 0;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-md);
	background-color: var(--color-paper-2);
	color: var(--color-ink);
	outline: none;
	box-shadow: none;
}

.sa select {
	padding-right: 28px;
}

.sa input:focus,
.sa select:focus,
.sa textarea:focus {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px var(--color-focus);
}

.sa input::placeholder,
.sa textarea::placeholder {
	color: var(--color-muted);
}

.sa input[type='submit'],
.sa input[type='button'],
.sa button.sa-submit {
	min-height: 36px;
	padding: 0 0.875rem;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	background: var(--color-accent);
	color: var(--color-accent-ink);
	font-weight: 500;
	cursor: pointer;
}

.sa input[type='submit']:hover,
.sa input[type='button']:hover {
	background: var(--color-accent-2);
}

/* Search field with a leading icon */
.sa-search {
	position: relative;
	display: block;
}

.sa-search .sa-icon {
	position: absolute;
	top: 50%;
	left: 16px;
	transform: translateY(-50%);
	color: var(--color-muted);
	pointer-events: none;
}

.sa .sa-search input[type='text'] {
	width: 100%;
	height: 48px;
	padding-left: 44px;
	background: var(--color-paper-2);
}

/* Live badge */
.sa-live {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 1px 7px;
	border-radius: var(--radius-sm);
	background: var(--color-live);
	color: #fff;
	font-family: var(--font-label);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.sa-live::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
	animation: sa-pulse 1.4s ease-in-out infinite;
}

@keyframes sa-pulse {
	50% { opacity: 0.35; }
}

/* Utility text */
.sa .sa-muted { color: var(--color-muted); }
.sa .sa-nowrap { white-space: nowrap; }
.sa .sa-actions { margin: 1.5rem 0 0; }

/* Pill tab group: tab buttons inside a muted track */
.sa .sa-tabs .tablink {
	margin: 0;
	border-color: transparent;
	background: transparent !important;
}

.sa .sa-tabs .tablink:hover {
	background: var(--color-paper) !important;
}

.sa .sa-tabs .tablink.is-active,
.sa .sa-tabs .tablink.is-active:hover {
	border-color: transparent;
	background: var(--color-accent) !important;
}

/* Archive table (class-based markup, no legacy inline styles) */
.sa-table-wrap {
	position: relative;
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-lg);
	background: var(--color-paper);
}

.sa-main .sa-table-wrap > table {
	margin: 0;
	min-width: 720px;
}

.sa-main .sa-table thead th:first-child { border-top-left-radius: var(--radius-lg); }
.sa-main .sa-table thead th:last-child { border-top-right-radius: var(--radius-lg); }
.sa-main .sa-table tbody tr:last-child td { border-bottom: 0; }
.sa-main .sa-table td { white-space: nowrap; }

.sa-main .sa-table td.sa-thumb {
	width: 44px;
	padding-top: 6px;
	padding-bottom: 6px;
}

.sa-thumb img {
	display: block;
	width: 40px;
	min-width: 40px;
	max-width: none;
	height: 40px;
	object-fit: cover;
	border-radius: var(--radius-sm);
	box-shadow: 0 0 0 1px rgba(25, 32, 41, 0.08);
}

.sa .sa-contest-name {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.sa .sa-contest-name a {
	font-weight: 500;
}

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

.sa-hero {
	padding: 0;
}

.sa #main_area .sa-hero-logo {
	margin: 0;
	line-height: 0;
}

.sa-hero-logo img {
	display: block;
	width: 100%;
	max-width: 640px;
	height: auto;
}

.sa .sa-hero .sa-lede {
	max-width: none;
	margin-top: 0.75rem;
}

/* Donation box (ShowDonateInfo: contest pages, contact page) */
.sa-donate {
	box-sizing: border-box;
	max-width: 40rem;
	margin: 2.5rem auto 0;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-lg);
	background: var(--color-paper-2);
	text-align: left;
}

.sa-main > .sa-donate {
	margin-left: 0;
}

.sa .sa-donate p {
	margin: 0 0 1rem;
	color: var(--color-ink-2);
	font-size: 14px;
	line-height: 1.65;
	text-wrap: pretty;
}

.sa .sa-donate .sa-overline {
	margin-bottom: 0.5rem;
	color: var(--color-accent);
	font-size: 0.75rem;
}

.sa-donate form {
	margin: 0;
}

/* Contact page */
.sa-contact {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 2rem;
	max-width: 40rem;
	margin: 2rem 0 0;
}

.sa .sa-contact .sa-label {
	margin: 0 0 0.5rem;
}

.sa .sa-contact p,
.sa .sa-contact ul {
	margin: 0;
	font-size: 15px;
}

.sa .sa-contact ul {
	padding: 0;
	list-style: none;
	line-height: 1.8;
}

/* Black-bordered wrappers older pages put around their tables (event, country pages). */
.sa-main div[style*='solid black'] {
	border: 0 !important;
}

/* Older pages centre a fixed-width block (1050px / 600px): use the page area's full width
   instead, so it lines up with everything else and shrinks on narrow screens. */
.sa-main center > div[style*='width'] {
	width: auto !important;
	max-width: 100%;
	text-align: left;
}

/* Filter controls above a table (e.g. the event filter on the records page) */
.sa-filter-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1rem;
}

.sa .sa-filter-row label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--color-muted);
	font-weight: 500;
}

.sa .sa-section-first {
	padding-top: 2rem;
}

/* Athlete cards & carousel */
.sa-carousel {
	position: relative;
}

.sa-carousel-track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 2px;
}

.sa-carousel-track::-webkit-scrollbar {
	display: none;
}

.sa .sa-athlete-card,
.sa .sa-athlete-card:visited {
	position: relative;
	flex: 0 0 220px;
	aspect-ratio: 5 / 7;
	overflow: hidden;
	scroll-snap-align: start;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-lg);
	background: var(--color-paper-3);
	color: #fff;
	text-decoration: none;
}

.sa .sa-athlete-card > img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: top;
}

.sa-athlete-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.25) 45%, transparent 70%);
}

.sa-athlete-card-text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	padding: 1rem;
}

.sa-athlete-card-country {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-label);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.8);
}

.sa-athlete-card-country img {
	width: 16px;
	height: 10px;
	border-radius: 1px;
}

.sa-athlete-card-name {
	margin-top: 4px;
	font-family: var(--font-display);
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
}

.sa .sa-athlete-card:hover .sa-athlete-card-name {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sa .sa-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	border-radius: 50%;
	background: rgba(248, 250, 253, 0.9);
	box-shadow: var(--shadow-md);
}

html.dark .sa .sa-carousel-btn {
	background: rgba(9, 13, 20, 0.9);
}

.sa-carousel-prev { left: 8px; }
.sa-carousel-next { right: 8px; }

.sa .sa-carousel-btn[disabled] {
	opacity: 0;
	pointer-events: none;
}

/* ===================== 5. Tables & DataTables ===================== */

/* Every table in the content area gets the archive look: hairline rows, label-style headers. */
.sa-main table {
	width: 100%;
	margin: 0 0 1.5rem;
	border-collapse: separate;
	border-spacing: 0;
	border-color: var(--color-rule);
	background: transparent;
	color: var(--color-ink);
	font-size: 14px;
}

.sa-main th,
.sa-main td {
	padding: 10px 12px;
	border-color: var(--color-rule);
	color: inherit;
}

.sa-main thead th,
.sa-main thead td {
	background: var(--color-table-head);
	color: var(--color-muted);
	font-family: var(--font-label);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	text-shadow: none;
}

.sa-main tbody td {
	border-bottom: 1px solid var(--color-rule);
}

/* Zebra colours printed by older code (bgcolor / inline background) give way to hairlines.
   Blueprint's even-row tint is cleared without !important, so highlighted cells such as the
   contest total-points column (td.pts_col) keep their colour on every row. */
.sa-main tr.even td {
	background-color: transparent;
}

/* Yellow highlights (contest total points, head-to-head winners): darker gold in dark mode. */
html.dark .sa-main td.pts_col,
html.dark .sa-main td.winner {
	background-color: #4a4413 !important;
	color: var(--color-ink);
}

.sa-main tr[bgcolor],
.sa-main tr[style*='background'] {
	background: transparent !important;
	color: inherit !important;
}

.sa-main tbody tr:hover > td {
	background-color: rgba(127, 140, 160, 0.07);
}

/* DataTables (1.10) */
.sa .dataTables_wrapper {
	padding: 0;
	border: 0;
	color: var(--color-ink);
	font-size: 14px;
}

.sa .dataTables_wrapper .dataTables_length,
.sa .dataTables_wrapper .dataTables_filter,
.sa .dataTables_wrapper .dataTables_info,
.sa .dataTables_wrapper .dataTables_processing,
.sa .dataTables_wrapper .dataTables_paginate {
	color: var(--color-muted);
	font-size: 14px;
}

.sa .dataTables_wrapper .dataTables_length,
.sa .dataTables_wrapper .dataTables_filter {
	margin-bottom: 1rem;
}

.sa .dataTables_wrapper .dataTables_length label,
.sa .dataTables_wrapper .dataTables_filter label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
}

.sa .dataTables_wrapper .dataTables_filter input {
	width: 240px;
	margin-left: 0;
	padding-left: 32px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e646d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 10px center;
}

.sa .dataTables_wrapper .dataTables_length select {
	min-height: 36px;
	padding: 4px 28px 4px 10px;
}

.sa table.dataTable {
	box-sizing: border-box;
	margin: 0 0 0.5rem !important;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.sa table.dataTable thead th,
.sa table.dataTable thead td {
	padding: 12px;
	border-bottom: 1px solid var(--color-rule-2);
	background-color: var(--color-table-head);
	background-image: none !important;
}

.sa table.dataTable.no-footer {
	border-bottom: 1px solid var(--color-rule);
}

.sa table.dataTable thead .sorting,
.sa table.dataTable thead .sorting_asc,
.sa table.dataTable thead .sorting_desc {
	padding-right: 24px;
	position: relative;
}

/* Sort icons are drawn with an SVG mask, not text arrows: iOS shows the up-down arrow
   character as a colour emoji. Unsorted = both triangles faded; sorted = one triangle in the
   accent colour. */
.sa table.dataTable thead .sorting::after,
.sa table.dataTable thead .sorting_asc::after,
.sa table.dataTable thead .sorting_desc::after {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 8px;
	height: 12px;
	content: '';
	opacity: 0.35;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M4 0l4 5H0zM4 12L0 7h8z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M4 0l4 5H0zM4 12L0 7h8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sa table.dataTable thead .sorting_asc::after {
	opacity: 1;
	background-color: var(--color-accent);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M4 0l4 5H0z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M4 0l4 5H0z'/%3E%3C/svg%3E");
}

.sa table.dataTable thead .sorting_desc::after {
	opacity: 1;
	background-color: var(--color-accent);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M4 12L0 7h8z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M4 12L0 7h8z'/%3E%3C/svg%3E");
}

.sa table.dataTable tbody tr,
.sa table.dataTable.stripe tbody tr.odd,
.sa table.dataTable.display tbody tr.odd,
.sa table.dataTable tbody tr.even {
	background-color: transparent;
}

.sa table.dataTable tbody th,
.sa table.dataTable tbody td {
	padding: 10px 12px;
	border-top: 0;
	border-bottom: 1px solid var(--color-rule);
}

.sa table.dataTable tbody tr:last-child td {
	border-bottom: 0;
}

.sa table.dataTable.display tbody tr > .sorting_1,
.sa table.dataTable.order-column tbody tr > .sorting_1,
.sa table.dataTable.display tbody tr.odd > .sorting_1,
.sa table.dataTable.display tbody tr.even > .sorting_1 {
	background-color: transparent;
}

.sa table.dataTable.hover tbody tr:hover,
.sa table.dataTable.display tbody tr:hover {
	background-color: rgba(127, 140, 160, 0.07);
}

/* Alternating row shades on every data table (DataTables, tablesorter and .sa-table lists), as on
   the production site. Set on the cells, so the frozen-column copy of the results grid stripes
   too; highlighted cells (td.pts_col, td.winner) keep their colour through !important. */
.sa .sa-main table.dataTable > tbody > tr:nth-child(even) > td,
.sa .sa-main table.tablesorter > tbody > tr:nth-child(even) > td,
.sa .sa-main table.sa-table > tbody > tr:nth-child(even) > td {
	background-color: var(--color-stripe);
}

.sa .sa-main table.dataTable > tbody > tr:hover > td,
.sa .sa-main table.tablesorter > tbody > tr:hover > td,
.sa .sa-main table.sa-table > tbody > tr:hover > td {
	background-color: var(--color-row-hover);
}

.sa .dataTables_wrapper .dataTables_info {
	padding-top: 1rem;
}

.sa .dataTables_wrapper .dataTables_paginate {
	padding-top: 0.75rem;
}

.sa .dataTables_wrapper .dataTables_paginate .paginate_button,
.sa .dataTables_wrapper .dataTables_paginate .paginate_button:visited {
	min-width: 0;
	margin: 0 0 0 2px;
	padding: 6px 12px;
	border: 0 !important;
	border-radius: var(--radius-md);
	background: transparent !important;
	color: var(--color-ink) !important;
	box-shadow: none !important;
	font-size: 14px;
}

.sa .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	background: var(--color-paper-3) !important;
	color: var(--color-ink) !important;
	text-decoration: none;
}

.sa .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.sa .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	background: var(--color-accent) !important;
	color: var(--color-accent-ink) !important;
}

.sa .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.sa .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
	background: transparent !important;
	color: var(--color-muted) !important;
	opacity: 0.45;
	cursor: default;
}

.sa .dataTables_wrapper .dataTables_paginate .ellipsis {
	color: var(--color-muted);
}

/* Wide tables scroll inside their own box instead of widening the page. */
.sa .dataTables_scrollBody,
.sa .dataTables_scroll {
	border-color: var(--color-rule) !important;
}

.sa .DTFC_LeftBodyLiner,
.sa .DTFC_LeftHeadWrapper,
.sa .DTFC_LeftWrapper table,
.sa .DTFC_LeftBodyWrapper,
.sa table.DTFC_Cloned tbody tr,
.sa table.DTFC_Cloned thead th {
	background-color: var(--color-paper) !important;
}

.sa table.DTFC_Cloned thead th {
	background-color: var(--color-table-head) !important;
}

/* tablesorter "blue" tables (small stat tables, e.g. on athlete pages) */
.sa .tablesorter-blue {
	margin: 0 0 1.5rem;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-lg);
	background: transparent;
	overflow: hidden;
}

.sa .tablesorter-blue th,
.sa .tablesorter-blue td {
	border: 0;
	border-bottom: 1px solid var(--color-rule);
}

.sa .tablesorter-blue th,
.sa .tablesorter-blue thead td {
	background-color: var(--color-table-head);
	border-bottom: 1px solid var(--color-rule-2);
	color: var(--color-muted);
	font: 500 0.72rem/1.3 var(--font-label);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-shadow: none;
	padding: 12px;
}

.sa .tablesorter-blue tbody td {
	padding: 10px 12px;
	background: transparent;
	color: var(--color-ink);
}

.sa .tablesorter-blue tbody tr:last-child td {
	border-bottom: 0;
}

.sa .tablesorter-blue tbody > tr.odd > td,
.sa .tablesorter-blue tbody > tr.even > td,
.sa .tablesorter-blue tbody > tr:hover > td {
	background-color: transparent;
	color: var(--color-ink);
}

/* ===================== 6. Older page elements ===================== */

/* Old centred title bars (blue <th> with an inline background): now a left-aligned heading in
   the same style as the home page's section headings ("Results & calendar"). */
.sa-main th[style*='#496E89'] {
	padding: 0 0 1.25rem !important;
	background: transparent !important;
	color: var(--color-ink) !important;
	border: 0 !important;
	font-family: var(--font-display) !important;
	font-size: 1.875rem !important;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.025em;
	text-transform: none;
	white-space: normal;
}

.sa-main th[style*='#496E89'] center,
.sa-main th[style*='#496E89'] div {
	text-align: left;
	font-size: inherit !important;
}

/* Second line of a title bar (e.g. a contest's place and date): ordinary text. */
.sa-main th[style*='#496E89'] center > div + div {
	margin-top: 0.5rem;
	color: var(--color-muted);
	font-family: var(--font-body);
	font-size: 1rem !important;
	font-weight: 400;
	letter-spacing: 0;
}

.sa-main td[style*='#496E89'] {
	background: var(--color-paper-3) !important;
	color: var(--color-ink) !important;
}

/* Old grey "View all ..." bars under tables: now outline buttons. */
.sa-main div.IndexTabTable {
	display: inline-block;
	margin: 1rem 0 0;
	padding: 0 !important;
	border: 0;
	background: transparent !important;
}

.sa-main div.IndexTabTable center {
	text-align: left;
}

.sa .sa-main div.IndexTabTable a,
.sa .sa-main div.IndexTabTable a:visited {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 0.875rem;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-md);
	background: var(--color-paper);
	color: var(--color-ink) !important;
	font-weight: 500;
	text-decoration: none;
}

.sa .sa-main div.IndexTabTable a:hover {
	background: var(--color-paper-3);
}

.sa-main table.IndexTabTable,
.sa-main table[style*='solid black'] {
	padding: 0;
	border: 1px solid var(--color-rule) !important;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

/* Inline "contest in progress" red text */
.sa-main font[color='red'] {
	color: var(--color-destructive);
}

/* Tab buttons (PrintTabButton): pill tabs. js/site.js marks the open one with .is-active. */
.sa .tablink {
	float: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto !important;
	margin: 0 4px 1.5rem 0;
	padding: 8px 16px !important;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-md);
	background: var(--color-paper-2) !important;
	color: var(--color-muted);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.sa .tablink:hover {
	background: var(--color-paper-3) !important;
	color: var(--color-ink);
}

.sa .tablink.is-active,
.sa .tablink.is-active:hover {
	border-color: var(--color-accent);
	background: var(--color-accent) !important;
	color: var(--color-accent-ink);
}

.sa .tabcontent {
	clear: both;
	height: auto;
}

/* Old main-area headings (blue boxed h2, grey boxed h4) */
.sa #main_area h2,
.sa #main_area h4 {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--color-ink);
	font-weight: 600;
}

.sa #main_area h2 {
	margin: 2rem 0 1.25rem;
	font-size: 1.875rem;
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.sa #main_area h4 {
	margin: 2rem 0 0.75rem;
	font-size: 1.125rem;
}

/* Collapsible panels (contest notes) and news items */
.sa .collapsible,
.sa .newsCollapse,
.sa .newsSolo {
	box-sizing: border-box;
	margin: 0 0 0.75rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-lg);
	background: var(--color-paper-2);
	color: var(--color-ink);
	text-align: left;
	transition: border-color var(--dur-fast) var(--ease-out);
}

.sa .collapsible:hover,
.sa .newsCollapse:hover,
.sa .newsActive {
	border-color: var(--color-accent);
	background: var(--color-paper-2);
}

/* Collapsible panels start closed; js/site.js opens them (max-height). */
.sa .newsContent,
.sa .content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.2s ease-out;
}

.sa .newsContent,
.sa .content {
	margin: -0.5rem 0 0.75rem;
	padding: 0 1.25rem;
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	background: var(--color-paper-3);
	color: var(--color-ink);
}

.sa .nsTitle {
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.sa .nsByln {
	margin-top: 4px;
	font-family: var(--font-label);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.sa .nsMore,
.sa .nsFull {
	color: var(--color-ink-2);
	font-size: 14px;
	line-height: 1.65;
}

.sa .nsLogo img,
.sa .nsLogoFull img {
	border-radius: var(--radius-md);
}

/* Rankings toggles: segmented controls */
.sa .rank-toggle {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	text-align: left;
}

.sa .rank-toggle span {
	display: inline-flex;
	gap: 2px;
	margin: 0;
	padding: 2px;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-md);
	background: var(--color-paper-3);
}

.sa .rank-toggle a,
.sa .rank-toggle a:visited {
	padding: 6px 14px;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--color-muted);
	font-size: 13px;
	font-weight: 500;
}

.sa .rank-toggle a:hover {
	background: transparent;
	color: var(--color-ink);
	text-decoration: none;
}

.sa .rank-toggle a.active {
	background: var(--color-accent);
	color: var(--color-accent-ink);
	font-weight: 500;
}

.sa .rank-about {
	color: var(--color-muted);
	font-size: 13px;
}

/* Home quick-search results (site-search.php) and other dropdown lists */
.sa .result {
	position: absolute;
	z-index: 40;
	left: 0;
	right: 0;
	margin-top: 4px;
	border-radius: var(--radius-md);
	background: var(--color-paper);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

.sa .result:empty {
	display: none;
}

.sa .result p {
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid var(--color-rule);
	background: var(--color-paper);
	color: var(--color-ink);
	cursor: pointer;
}

.sa .result a:last-child p {
	border-bottom: 0;
}

.sa .result {
	border: 1px solid var(--color-rule);
}

.sa .sa-result-label {
	position: sticky;
	top: 0;
	z-index: 1;
	padding: 8px 14px 6px;
	background: var(--color-paper-2);
	border-bottom: 1px solid var(--color-rule);
	font-family: var(--font-label);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.sa .result p:hover {
	background: var(--color-paper-3);
}

.sa .result a,
.sa .result a:visited {
	display: block;
	color: var(--color-ink);
}

.sa .result a:hover {
	color: var(--color-accent);
	text-decoration: none;
}

.sa .dropdown-menu {
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-md);
	background: var(--color-paper);
	box-shadow: var(--shadow-lg);
	color: var(--color-ink);
}

/* Advanced search forms */
.sa .srchHeader {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--color-ink);
}

.sa .srchLbl {
	color: var(--color-muted);
}

/* Search form rows: label, then the control(s) on one line ("Min to Max" stays together). */
.sa .srchGrp {
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
}

.sa .srchLbl {
	flex: 0 0 6.5rem;
	width: auto;
	line-height: 1.3;
}

.sa .srchCtl {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 6px;
	min-width: 0;
	line-height: 1.3;
}

.sa .srchCtl input[size='5'] {
	width: 4.75rem;
}

.sa .srchCtl input[size='25'],
.sa .srchCtl select {
	width: 100%;
	max-width: 16rem;
	min-width: 0;
}

/* Not enough room for three columns side by side: stack them. */
@media (max-width: 1099px) {
	.sa td.srchColumn {
		display: block;
		width: auto !important;
	}
}

/* Highlighted rows (e.g. head-to-head winners) keep a soft highlight that works in dark mode. */
.sa-main [style*='#f2ed8a'],
.sa-main .highlight {
	background-color: var(--color-highlight) !important;
}

/* --- Table text: one size (14px) everywhere. Older code sets 11-15px on table rows. --- */
.sa .sa-main td {
	font-size: 14px;
}

/* Table cells centred vertically (the old blue theme set top), and pictures in tables keep
   their size: a table wider than the screen scrolls instead of squeezing them. */
.sa .sa-main td,
.sa .tablesorter-blue tbody td {
	vertical-align: middle;
}

.sa .sa-main td img {
	max-width: none;
}

/* Dates and year ranges stay on one line (js/site.js marks those cells). */
.sa .sa-main td.sa-date {
	white-space: nowrap;
}

/* Contest results grid: one line per value ("300 kg (8 reps)"); the grid scrolls sideways. */
.sa .sa-main table[id^='ContestResults'] td {
	white-space: nowrap;
}

/* Contests list: contest type names as plain links (they were large <h3> headings). */
.sa .sa-strong-link {
	font-weight: 600;
}

/* --- Wide content stays inside the page area --- */

/* js/site.js wraps each table in .sa-scroll, so a table wider than the screen scrolls on its
   own instead of being cut off or pushing the whole page sideways. */
.sa-scroll {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.sa-scroll > table {
	margin-bottom: 0;
}

.dataTables_wrapper > .sa-scroll {
	clear: both;
}

/* Tables older pages give a fixed pixel width (search forms 1047px, contest header 870px,
   video titles 666px) fit the page area instead. DataTables sizes its own tables. */
.sa-main table[style*='px']:not(.dataTable),
.sa-main table[width]:not(.dataTable) {
	width: 100% !important;
	max-width: 100%;
}

/* Embedded videos scale down to fit, keeping their shape. */
.sa-main iframe[src*='youtube'],
.sa-main iframe[src*='youtu.be'] {
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

/* Videos page: left-aligned like the rest of the site (it was a centred column). */
.sa.page-videos .sa-main center {
	text-align: left;
}

/* --- All / Men / Women switch next to a page title --- */
.sa-segmented {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-md);
	background: var(--color-paper-3);
}

.sa .sa-segmented a,
.sa .sa-segmented a:visited {
	padding: 6px 16px;
	border-radius: var(--radius-sm);
	color: var(--color-muted);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.sa .sa-segmented a:hover {
	color: var(--color-ink);
	text-decoration: none;
}

.sa .sa-segmented a.is-active,
.sa .sa-segmented a.is-active:hover {
	background: var(--color-accent);
	color: var(--color-accent-ink);
}

/* --- Contest type page header (logo, name, count and years) --- */
.sa-type-head {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin: 0 0 2.5rem;
}

.sa-type-logo img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: contain;
	border-radius: var(--radius-lg);
}

.sa #main_area .sa-type-head h1 {
	margin: 0;
	font-size: 1.875rem;
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.sa .sa-type-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin: 0.5rem 0 0;
	color: var(--color-muted);
	font-size: 15px;
}

/* --- Photo cards (events index): photo with the name over a dark fade --- */
.sa-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
}

.sa .sa-photo-card,
.sa .sa-photo-card:visited {
	position: relative;
	display: block;
	aspect-ratio: 5 / 3;
	overflow: hidden;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-lg);
	background: var(--color-paper-3);
	color: #fff;
	text-decoration: none;
}

.sa .sa-photo-card > img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 300ms var(--ease-out);
}

.sa .sa-photo-card:hover > img {
	transform: scale(1.03);
}

.sa-photo-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.15) 50%, transparent 75%);
}

.sa-photo-card-name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 0.875rem 1rem;
	font-family: var(--font-display);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #fff;
}

.sa .sa-photo-card:hover .sa-photo-card-name {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Round athlete photos in tables (country pages) */
.sa-thumb-round img {
	border-radius: 50%;
	object-position: top;
}

/* --- Shared bits for profile and contest pages --- */
.sa-head-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.sa .sa-dot {
	margin: 0 0.5em;
	color: var(--color-rule-2);
}

.sa .sa-notice {
	margin: 0 0 1.25rem;
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--color-accent);
	border-radius: var(--radius-sm);
	background: var(--color-paper-2);
	color: var(--color-ink-2);
	font-size: 14px;
}

.sa-panel {
	margin: 0 0 2rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-lg);
	background: var(--color-paper-2);
}

.sa #main_area .sa-panel h2 {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
	letter-spacing: -0.01em;
}

.sa .sa-prose {
	color: var(--color-ink-2);
	font-size: 15px;
	line-height: 1.7;
}

.sa .sa-link-list {
	margin: 0;
	padding-left: 1.25rem;
	line-height: 1.9;
}

/* --- Athlete profile --- */
.sa-profile {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
	margin: 0 0 2.5rem;
}

.sa-profile-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 13 / 16;
	object-fit: cover;
	object-position: top;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-lg);
	background: var(--color-paper-3);
}

.sa .sa-photo-credit {
	margin: 0.5rem 0 0;
	color: var(--color-muted);
	font-size: 12px;
	line-height: 1.4;
}

.sa #main_area .sa-profile-name {
	margin: 0;
	line-height: 1;
}

.sa-profile-first {
	display: block;
	color: var(--color-muted);
	font-size: 1.375rem;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.sa-profile-nick {
	color: var(--color-ink-2);
}

.sa-profile-last {
	display: block;
	margin-top: 0.25rem;
	font-size: clamp(2.25rem, 4vw, 3.25rem);
	font-weight: 600;
	letter-spacing: -0.03em;
}

/* Last name with the country beside it (level with its baseline); below it when there's no room */
.sa-profile-lastline {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 1.25rem;
	margin-top: 0.25rem;
}

.sa #main_area .sa-profile-lastline .sa-profile-last {
	margin-top: 0;
}

.sa .sa-profile-country {
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.4;
	color: var(--color-ink-2);
	white-space: nowrap;
}

.sa .sa-profile-country a {
	font-weight: 500;
}

.sa-profile-country img {
	vertical-align: -1px;
}

.sa-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2.5rem;
	margin: 1.5rem 0 0;
	padding: 1.25rem 0 0;
	border-top: 1px solid var(--color-rule);
}

.sa .sa-facts dt {
	margin: 0 0 0.25rem;
}

/* Phones: two even columns so the facts line up */
@media (max-width: 640px) {
	.sa-facts {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem 1.5rem;
	}
}

.sa .sa-facts dd {
	margin: 0;
	color: var(--color-ink);
	font-size: 15px;
	font-weight: 500;
}

/* Career: featured cards (international, WSM) with medal counts, then a line for the rest */
.sa-career {
	margin: 1.5rem 0 0;
}

.sa-career-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.sa-career-card {
	padding: 1rem 1.25rem;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-lg);
	background: var(--color-paper-2);
}

.sa #main_area .sa-career-title {
	margin: 0;
	color: var(--color-muted);
	font-family: var(--font-label);
	font-size: 0.75rem !important; /* not the phone heading size */
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.sa .sa-career-count {
	margin: 0.375rem 0 0;
	color: var(--color-ink-2);
	font-size: 15px;
}

.sa .sa-career-count strong {
	margin-right: 0.25rem;
	color: var(--color-ink);
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.sa-medals {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.sa-medal {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
}

.sa-medal-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.375rem;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--sa-medal);
	color: #1b1f27;
	font-family: var(--font-display);
	font-size: 0.9375rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.sa-medal-l {
	color: var(--color-ink-2);
	font-size: 14px;
	font-weight: 500;
}

.sa-medal-1 { --sa-medal: #e3b74a; }
.sa-medal-2 { --sa-medal: #c3cbd3; }
.sa-medal-3 { --sa-medal: #d39a6a; }

.sa-medal.is-zero .sa-medal-n {
	background: transparent;
	border: 1px solid var(--color-rule-2);
	color: var(--color-muted);
}

.sa .sa-career-note {
	margin: 0.75rem 0 0;
	color: var(--color-muted);
	font-size: 13px;
}

/* National / regional / single-event: one-line cards on the same grid as the cards above */
.sa-career-more {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	color: var(--color-ink-2);
	font-size: 14px;
}

.sa-career-more li {
	margin: 0;
	padding: 0.625rem 1.25rem;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-lg);
	background: var(--color-paper-2);
}

.sa-career-more strong {
	color: var(--color-ink);
	font-weight: 600;
}

/* --- Contest page --- */
.sa-contest-head {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin: 0 0 1.5rem;
}

.sa-contest-logo img {
	display: block;
	width: 88px;
	height: 88px;
	object-fit: contain;
	border-radius: var(--radius-lg);
}

.sa-contest-title {
	flex: 1;
	min-width: 0;
}

.sa .sa-contest-series {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	font-weight: 500;
}

.sa #main_area .sa-contest-title h1 {
	margin: 0.25rem 0 0;
	font-size: var(--text-display);
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.sa .sa-contest-meta {
	margin: 0.5rem 0 0;
	color: var(--color-ink-2);
	font-size: 15px;
}

.sa-contest-tools {
	align-self: flex-start;
}

.sa-contest-nav {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 2rem;
}

.sa .sa-contest-nav .sa-btn {
	min-width: 0;
	max-width: 48%;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 500;
}

/* Units switch: radio buttons drawn as a segmented control */
.sa .sa-units label {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.sa .sa-units input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.sa .sa-units span {
	display: block;
	padding: 6px 14px;
	border-radius: var(--radius-sm);
	color: var(--color-muted);
	font-size: 13px;
	font-weight: 500;
}

.sa .sa-units input:checked + span {
	background: var(--color-accent);
	color: var(--color-accent-ink);
}

.sa .sa-units input:focus-visible + span {
	outline: 3px solid var(--color-focus);
}

/* Podium */
.sa-podium {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0.75rem;
	margin: 0 0 2.5rem;
}

.sa .sa-podium-card,
.sa .sa-podium-card:visited {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.875rem 1rem;
	border: 1px solid var(--color-rule);
	border-left: 4px solid var(--sa-medal, var(--color-rule-2));
	border-radius: var(--radius-lg);
	background: var(--color-paper-2);
	color: var(--color-ink);
	text-decoration: none;
	transition: border-color var(--dur-fast) var(--ease-out);
}

.sa .sa-podium-card:hover {
	border-color: var(--color-accent);
	border-left-color: var(--sa-medal, var(--color-accent));
	text-decoration: none;
	color: var(--color-ink);
}

.sa-place-1 { --sa-medal: #d4a72c; }
.sa-place-2 { --sa-medal: #9aa6b2; }
.sa-place-3 { --sa-medal: #b8794a; }

.sa .sa-podium-card > img {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	object-fit: cover;
	object-position: top;
	border-radius: 50%;
	max-width: none;
}

.sa-podium-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sa-podium-place {
	color: var(--sa-medal);
	font-family: var(--font-label);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sa-podium-name {
	margin-top: 2px;
	font-family: var(--font-display);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.sa-podium-country {
	margin-top: 2px;
	color: var(--color-muted);
	font-size: 13px;
}

/* Results grid: rank in bold; the frozen first columns don't add their own scrollbar */
.sa .sa-main td.rank_col {
	font-weight: 700;
}

.sa .sa-main td.pts_col {
	background-color: #f2ed8a !important;
	color: #192029;
	font-weight: 700;
}

.sa .DTFC_LeftBodyLiner {
	overflow-x: hidden;
}

/* The frozen columns are a copy laid over the scrolling table, which still has its own rank,
   name and points cells underneath. Dragging past the edge used to rubber-band the table out
   from under the copy, showing those cells as a duplicate column. No bounce where the browser
   supports turning it off, and the cells underneath are blank in case it still happens.
   (js/site.js sets sa-frozen-N, N = number of frozen columns.) */
.sa .dataTables_scrollBody {
	overscroll-behavior-x: none;
}

.sa .sa-frozen-2 .dataTables_scroll tr > :nth-child(-n+2),
.sa .sa-frozen-3 .dataTables_scroll tr > :nth-child(-n+3),
.sa .sa-frozen-4 .dataTables_scroll tr > :nth-child(-n+4) {
	visibility: hidden;
}

.sa-heat {
	margin-top: 3rem;
}

/* Heat titles link to the heat's own page */
.sa #main_area .sa-heat h2 a,
.sa #main_area .sa-heat h2 a:visited {
	color: var(--color-ink);
	text-decoration: none;
}

.sa #main_area .sa-heat h2 a:hover {
	color: var(--color-accent);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.sa .sa-main .collapsible {
	width: 100%;
	margin-top: 1rem;
}

/* Upcoming contest: competing athletes as portrait cards */
.sa-athlete-grid {
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.sa .sa-athlete-grid .sa-athlete-card {
	flex: none;
}

/* News page buttons (same look as the tables' page buttons) */
.sa .sa-pager .dataTables_paginate {
	float: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 2px;
	padding-top: 1.5rem;
}

/* --- Contest results grid: compact, like the classic site, so a contest fits without scrolling.
   (The wrapper DataTables builds is #ContestResults<id>_wrapper; its frozen first columns are a
   copy of the table laid over the scrolling one, inside .DTFC_ScrollWrapper.) --- */
.sa [id^='ContestResults'][id$='_wrapper'] .DTFC_ScrollWrapper {
	/* FixedColumns writes a pixel height that can fall short of the table (js/site.js re-lays it
	   out); size to the table instead, so the clipping below never hides the last row. */
	height: auto !important;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.sa [id^='ContestResults'][id$='_wrapper'] table.dataTable {
	margin: 0 !important;
	border: 0;
	border-radius: 0;
}

.sa [id^='ContestResults'][id$='_wrapper'] thead th {
	padding: 8px 16px 8px 6px;
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	text-align: center;
	vertical-align: bottom;
	white-space: normal;
	color: var(--color-ink-2);
}

.sa [id^='ContestResults'][id$='_wrapper'] thead .sorting::after,
.sa [id^='ContestResults'][id$='_wrapper'] thead .sorting_asc::after,
.sa [id^='ContestResults'][id$='_wrapper'] thead .sorting_desc::after {
	right: 4px;
	top: auto;
	bottom: 8px;
	transform: none;
}

.sa .sa-main [id^='ContestResults'][id$='_wrapper'] tbody td {
	padding: 5px 6px;
	font-size: 13px;
	text-align: center;
}

.sa .sa-main [id^='ContestResults'][id$='_wrapper'] tbody td:nth-child(2),
.sa [id^='ContestResults'][id$='_wrapper'] thead th:nth-child(2) {
	text-align: left;
}

/* Live contests: every athlete's photo above the standings */
.sa-athlete-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 1.5rem;
}

.sa-strip-break {
	flex-basis: 100%;
	height: 0;
}

.sa .sa-athlete-strip a {
	display: block;
	text-decoration: none;
}

.sa .sa-athlete-strip img {
	display: block;
	width: 56px;
	height: 56px;
	max-width: none;
	object-fit: cover;
	object-position: top;
	border: 1px solid var(--color-rule);
	border-radius: var(--radius-md);
	background: var(--color-paper-3);
	transition: border-color var(--dur-fast) var(--ease-out);
}

.sa .sa-athlete-strip a:hover img {
	border-color: var(--color-accent);
}

/* ===================== 7. Responsive ===================== */

@media (max-width: 1023px) {
	.sa-main,
	.sa-footer-inner,
	.sa-footer-legal {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.sa-topbar-inner {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

/* Phones and small tablets: sticky top bar; the sidebar becomes a slide-in drawer. */
@media (max-width: 767px) {
	.sa-shell {
		display: block;
	}

	.sa-mobile-header {
		position: sticky;
		top: 0;
		z-index: 40;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		height: 56px;
		padding: 0 1rem;
		border-bottom: 1px solid var(--color-rule);
		background: var(--color-paper);
	}

	.sa-mobile-actions {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	/* Header bar under the phone header: search only (the switches live in the header/menu). */
	.sa-topbar {
		position: static;
		border-bottom: 0;
		background: transparent;
	}

	.sa-topbar-inner {
		height: auto;
		padding: 12px 1rem 0;
	}

	.sa .sa-header-search {
		max-width: none;
	}

	.sa-topbar-actions {
		display: none;
	}

	.sa-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		height: auto;
		width: min(20rem, 86vw);
		transform: translateX(-100%);
		visibility: hidden;
		box-shadow: var(--shadow-lg);
		transition: transform 200ms var(--ease-out), visibility 0s linear 200ms;
	}

	html.sa-drawer-open .sa-sidebar {
		transform: none;
		visibility: visible;
		transition: transform 200ms var(--ease-out);
	}

	.sa-drawer-close {
		display: inline-flex !important;
	}

	.sa-sidebar-foot {
		display: block;
	}

	.sa-collapse-toggle {
		display: none !important;
	}

	html.sa-drawer-open .sa-drawer-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 45;
		background: var(--color-scrim);
	}

	html.sa-drawer-open {
		overflow: hidden;
	}

	.sa .sa-nav-link {
		height: 44px;
	}


	/* One scrolling row on phones; the track hugs its tabs instead of filling the width */
	.sa-tabs {
		display: flex;
		flex-wrap: nowrap;
		width: fit-content;
		max-width: 100%;
		box-sizing: border-box;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.sa #main_area .sa-section-head h1,
	.sa #main_area .sa-section-head h2,
	.sa #main_area h2,
	.sa-main th[style*='#496E89'] {
		font-size: 1.5rem !important;
	}

	.sa-section {
		padding: 2rem 0;
	}

	.sa .sa-athlete-card {
		flex-basis: 180px;
	}

	/* Athlete profile and contest header stack on phones */
	.sa-profile {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.sa-profile-photo {
		max-width: 200px;
	}

	.sa .sa-profile-country {
		white-space: normal;
	}

	.sa-contest-head {
		flex-wrap: wrap;
		gap: 1rem;
	}

	.sa-contest-logo img {
		width: 64px;
		height: 64px;
	}

	.sa-contest-tools {
		width: 100%;
	}

	/* Long contest names wrap inside the button rather than being cut off */
	.sa .sa-contest-nav .sa-btn {
		max-width: calc(50% - 0.375rem); /* two of these plus the gap fit, so neither is squeezed */
		height: auto;
		min-height: 36px;
		padding-top: 6px;
		padding-bottom: 6px;
		font-size: 13px;
		line-height: 1.3;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.sa .sa-contest-nav .sa-nav-prev {
		justify-content: flex-start;
		text-align: left;
	}

	.sa .sa-contest-nav .sa-nav-next {
		justify-content: flex-end;
		text-align: right;
	}

	/* Career: featured cards stacked; the small cards stay two across */
	.sa-career-cards {
		grid-template-columns: 1fr;
	}

	.sa-career-more li {
		padding: 0.625rem 0.875rem;
	}

	/* Event cards: two per row on phones */
	.sa-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}

	.sa-photo-card-name {
		padding: 0.625rem 0.75rem;
		font-size: 0.9375rem;
	}

	.sa .sa-carousel-btn {
		display: none;
	}

	.sa-main {
		padding: 1.5rem 1rem 3rem;
	}

	.sa-footer-inner,
	.sa-footer-legal {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.sa .dataTables_wrapper .dataTables_filter,
	.sa .dataTables_wrapper .dataTables_length {
		float: none;
		text-align: left;
	}

	.sa .dataTables_wrapper .dataTables_filter input {
		width: 100%;
	}

	.sa .dataTables_wrapper .dataTables_filter label {
		display: flex;
	}

	.sa .dataTables_wrapper .dataTables_info,
	.sa .dataTables_wrapper .dataTables_paginate {
		float: none;
		text-align: left;
	}
}

@media print {
	.sa-sidebar,
	.sa-topbar,
	.sa-mobile-header,
	.sa-footer {
		display: none !important;
	}
}
