/* =========================================================
   DiveMeetManager
   Main Stylesheet
   ========================================================= */


/* ---------------------------------------------------------
   1. RESET
   --------------------------------------------------------- */

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

html {
	margin: 0;
	padding: 0;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--font-main);
	font-size: var(--text-base);
	line-height: var(--line-normal);
	color: var(--dmm-text);
	background: var(--dmm-light);
	-webkit-font-smoothing: antialiased;
}


/* ---------------------------------------------------------
   STICKY FOOTER LAYOUT
   Keeps the footer at the bottom of short pages.
   --------------------------------------------------------- */

html,
body {
	min-height: 100%;
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main {
	flex: 1 0 auto;
}


/* ---------------------------------------------------------
   2. BASE ELEMENTS
   --------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
	color: var(--dmm-heading);
	font-family: var(--font-heading);
}

p {
	margin-top: 0;
}

a {
	color: var(--dmm-blue);
	text-decoration: none;
}

	a:hover {
		color: var(--dmm-blue-dark);
	}

button,
input,
select,
textarea {
	font: inherit;
}
/* Native hidden-state support */
[hidden] {
	display: none !important;
}

/* ---------------------------------------------------------
   3. REUSABLE LAYOUT
   --------------------------------------------------------- */

main {
	width: 100%;
}


/* ---------------------------------------------------------
   5. SHARED SITE CONTAINER
   ---------------------------------------------------------
   One reusable width keeps the header, page content, and
   footer aligned without duplicating layout rules.
   --------------------------------------------------------- */

:root {
	--site-content-width: 1180px;
}

.container {
	width: 100%;
	max-width: var(--site-content-width);
	margin-inline: auto;
	padding-inline: 24px;
}

@media (max-width: 600px) {
	.container {
		padding-inline: 16px;
	}
}


/* ---------------------------------------------------------
   4. LOGIN PAGE
   --------------------------------------------------------- */

.login-page {
	display: grid;
	grid-template-columns: 58% 42%;
	min-height: 100vh;
	width: 100%;
}

.login-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: var(--space-xl);
	background: var(--dmm-light);
}


/* ---------------------------------------------------------
   LOGIN VISUAL PANEL
   --------------------------------------------------------- */

.login-visual {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 70px;
	overflow: hidden;
	color: #ffffff;
	background: linear-gradient( 135deg, rgba(4, 34, 77, 0.96), rgba(5, 91, 158, 0.84) ), url("../images/page-hero.jpg") center center / cover no-repeat;
}

	.login-visual > div {
		width: 100%;
		max-width: 520px;
	}

.login-visual-brand {
	margin-bottom: var(--space-lg);
	font-size: var(--text-lg);
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--dmm-aqua-light);
}

.login-visual h1 {
	margin-bottom: var(--space-lg);
	color: var(--dmm-white);
	font-size: clamp(2.25rem, 4vw, var(--text-5xl));
	line-height: var(--line-tight);
}

	.login-visual h1 span {
		display: block;
		color: var(--dmm-aqua-light);
	}

.login-visual p {
	max-width: 440px;
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: var(--text-lg);
	line-height: var(--line-relaxed);
}


/* ---------------------------------------------------------
   LOGIN FORM PANEL
   --------------------------------------------------------- */

.login-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: var(--space-xl);
	background: var(--dmm-light);
}

	.login-panel .login-card {
		width: 100%;
		max-width: 460px;
		padding: 32px 22px;
		background: var(--dmm-white);
		border: 1px solid var(--dmm-border);
		border-radius: 18px;
		box-shadow: var(--shadow-md);
	}


/* ---------------------------------------------------------
   LOGIN BRAND
   --------------------------------------------------------- */

.login-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
	margin-bottom: var(--space-xl);
	color: var(--dmm-navy);
}

.login-logo-text {
	font-size: var(--text-xl);
	font-weight: 700;
	letter-spacing: -0.02em;
}

	.login-logo-text span {
		color: var(--dmm-blue);
	}


/* ---------------------------------------------------------
   LOGIN HEADINGS
   --------------------------------------------------------- */

.login-card h2 {
	margin-bottom: var(--space-xs);
	font-size: var(--text-2xl);
	text-align: center;
}

.login-card > p {
	margin-bottom: var(--space-lg);
	color: var(--dmm-muted);
	text-align: center;
}

.login-card .form-group {
	margin-bottom: var(--space-lg);
}

.login-card .form-control {
	width: 100%;
	height: 54px;
}

.login-card .btn-primary {
	width: 100%;
}
/* ---------------------------------------------------------
   FORM GROUPS
   --------------------------------------------------------- */

.form-group {
	margin-bottom: var(--space-md);
}

	.form-group label {
		display: block;
		margin-bottom: var(--space-xs);
		color: var(--dmm-text);
		font-size: var(--text-sm);
		font-weight: 600;
	}


/* ---------------------------------------------------------
   FORM CONTROLS
   --------------------------------------------------------- */

.form-control {
	width: 100%;
	height: var(--input-height);
	padding: 0 var(--space-md);
	border: 1px solid var(--dmm-border-dark);
	border-radius: var(--radius-xs);
	background: var(--dmm-white);
	color: var(--dmm-text);
	outline: none;
	transition: var(--transition-fast);
}

	.form-control:focus {
		border-color: var(--dmm-blue);
		box-shadow: 0 0 0 3px rgba(8, 125, 193, 0.12);
	}


.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 0.94rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

	.btn:hover {
		transform: translateY(-1px);
	}

.btn-primary {
	background: var(--dmm-blue);
	color: white;
	box-shadow: 0 5px 14px rgba( 8, 121, 209, 0.22 );
}

	.btn-primary:hover {
		background: var(--dmm-blue-dark);
		color: white;
		box-shadow: 0 8px 20px rgba( 8, 121, 209, 0.28 );
	}

.btn-outline {
	background: white;
	color: var(--dmm-blue);
	border-color: var(--dmm-blue);
}

	.btn-outline:hover {
		background: var(--dmm-blue-light);
		color: var(--dmm-blue-dark);
	}

.btn-danger {
	background: var(--dmm-danger);
	color: white;
}

	.btn-danger:hover {
		background: var(--dmm-danger-dark);
		color: white;
	}

.btn-secondary {
	background: var(--dmm-navy);
	color: white;
}

	.btn-secondary:hover {
		background: var(--dmm-navy-dark);
		color: white;
	}


/* ---------------------------------------------------------
   ALERTS
   --------------------------------------------------------- */

.alert {
	margin-bottom: var(--space-lg);
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-xs);
	font-size: var(--text-sm);
}

.alert-danger {
	border: 1px solid var(--dmm-danger);
	background: var(--dmm-danger-light);
	color: var(--dmm-danger-dark);
}


/* ---------------------------------------------------------
   LOGIN FOOTER LINK
   --------------------------------------------------------- */

.login-back {
	margin-top: var(--space-lg);
	margin-bottom: 0;
	text-align: center;
	font-size: var(--text-sm);
	white-space: nowrap;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 850px) {

	.login-page {
		grid-template-columns: 1fr;
		min-height: 100vh;
	}

	/*
	 * Keep the hero visible on tablets and phones.
	 * The hero stacks above the authentication card instead
	 * of disappearing at the mobile breakpoint.
	 */
	.login-visual {
		display: flex;
		min-height: 360px;
		padding: 50px 32px;
	}

	.login-panel {
		min-height: auto;
		padding: var(--space-lg);
	}
}

@media (max-width: 600px) {

	.login-visual {
		min-height: 320px;
		padding: 42px 24px;
		align-items: center;
	}

		.login-visual > div {
			max-width: 520px;
		}

		.login-visual h1 {
			font-size: clamp(2rem, 10vw, 2.75rem);
		}

		.login-visual p {
			font-size: var(--text-base);
		}

	.login-panel {
		padding: 24px 16px;
	}

		.login-panel .login-card {
			width: 100%;
			max-width: 360px;
			padding: 30px 22px;
		}
}


/* ---------------------------------------------------------
   6. SITE HEADER CONTAINER
   ---------------------------------------------------------
   The header background remains full width. Its contents use
   the shared .container so the logo and navigation align with
   the rest of the site.
   --------------------------------------------------------- */

.site-header {
	width: 100%;
	background: var(--dmm-white);
	border-bottom: 1px solid var(--dmm-border);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	gap: var(--space-lg);
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: var(--space-sm);
	flex-shrink: 0;
	color: var(--dmm-navy);
	font-weight: 700;
	white-space: nowrap;
}

	.site-logo:hover {
		color: var(--dmm-navy);
	}

.site-navigation {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-xs);
	margin-left: auto;
}

	.site-navigation > a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 44px;
		padding: 0 12px;
		color: var(--dmm-blue);
		font-size: var(--text-sm);
		font-weight: 600;
		white-space: nowrap;
		border-radius: var(--radius-xs);
		transition: var(--transition-fast);
	}

		.site-navigation > a:hover,
		.site-navigation > a.active {
			color: var(--dmm-blue-dark);
			background: var(--dmm-light);
		}

		.site-navigation > a.btn-primary,
		.site-navigation > a.btn-primary:hover {
			color: var(--dmm-white);
			background: var(--dmm-gradient-primary);
		}

.mobile-menu-button {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--dmm-border);
	border-radius: var(--radius-xs);
	background: var(--dmm-white);
	color: var(--dmm-navy);
	cursor: pointer;
}

/* Header layout on smaller screens */
@media (max-width: 800px) {
	.site-header-inner {
		position: relative;
		min-height: 60px;
		gap: var(--space-sm);
	}

	.mobile-menu-button {
		display: inline-flex;
		flex-shrink: 0;
	}

	.site-navigation {
		display: none;
		position: absolute;
		top: 100%;
		left: 16px;
		right: 16px;
		z-index: 1000;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		padding: var(--space-xs);
		background: var(--dmm-white);
		border: 1px solid var(--dmm-border);
		border-radius: var(--radius-sm);
		box-shadow: var(--shadow-md);
	}

		.site-navigation.is-open {
			display: flex;
		}

		.site-navigation > a {
			justify-content: flex-start;
			width: 100%;
			min-height: 44px;
			padding-inline: var(--space-sm);
		}
}

@media (max-width: 400px) {
	.site-header-inner {
		padding-inline: 12px;
	}

	.site-logo {
		gap: 6px;
		font-size: var(--text-sm);
	}
}


/* Account icon fallback classes.
   The inline image from icon.php remains the source of truth. */
.site-navigation .dmm-icon-account-male {
	background-image: url("../icons/profile_male_exact.svg");
}

.site-navigation .dmm-icon-account-female {
	background-image: url("../icons/profile_female_exact.svg");
}

.site-navigation .dmm-icon-account-nongender {
	background-image: url("../icons/profile_gender_neutral_exact.svg");
}
/* ---------------------------------------------------------
   CARDS
   --------------------------------------------------------- */
.dashboard-content {
	padding-block: var(--space-xl);
}

/* ---------------------------------------------------------
   DASHBOARD CARDS
   --------------------------------------------------------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--space-md);
}

.card {
	display: block;
	padding: var(--space-md);
	background: var(--dmm-white);
	border: 1px solid var(--dmm-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	text-decoration: none;
	overflow: hidden;
}


	.card > h2 {
		margin-bottom: var(--space-sm);
		padding-bottom: var(--space-sm);
		border-bottom: 1px solid var(--dmm-border);
	}

	.card .card {
		box-shadow: none;
	}

.card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-right: var(--space-sm);
	border-radius: var(--radius-sm);
	background: var(--dmm-white);
}

.card .list-page-actions {
	justify-content: flex-start;
	margin-top: var(--space-sm);
}

.form-group > .list-page-actions {
	width: 100%;
	justify-content: space-between;
	margin-bottom: var(--space-sm);
}

@media (max-width: 700px) {
	.card > h2 {
		margin-bottom: var(--space-sm);
	}
}





/* ---------------------------------------------------------
   REUSABLE FORM / MANAGEMENT LAYOUT
   Main form content with an optional right-hand information card.
   --------------------------------------------------------- */

.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
	gap: var(--space-lg);
	align-items: start;
}

.form-card {
	width: 100%;
	margin: 0;
}

@media (max-width: 800px) {
	.content-grid {
		grid-template-columns: 1fr;
	}
}


/* ---------------------------------------------------------
   REUSABLE LIST PAGES
   Used by Teams, Meets, Divers, Users, Judges, etc.
   --------------------------------------------------------- */

.list-page-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-lg);
	margin-bottom: var(--space-xl);
}

.list-page-heading {
	min-width: 0;
}

	.list-page-heading h2 {
		margin-bottom: var(--space-xs);
	}

	.list-page-heading p {
		margin-bottom: 0;
		color: var(--dmm-muted);
	}

.list-page-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-sm);
	flex-shrink: 0;
}
/* =========================================================
   SHARED LIST TOOLBAR
   Used by Teams, Meets, Divers, Users, and other list pages
   ========================================================= */

.list-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"search"
		"filters"
		"footer";
	row-gap: var(--space-md);
	align-items: start;
	padding: var(--space-md);
	border: 1px solid var(--dmm-blue-light-border);
	border-radius: var(--radius-md);
	background: var(--dmm-white);
}

.list-search-row {
	grid-area: search;
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	min-width: 0;
}

.list-search {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	gap: var(--space-sm);
	min-width: 0;
}

	.list-search .form-control {
		flex: 1 1 auto;
		min-width: 0;
	}

.list-filters {
	grid-area: filters;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-sm);
	min-width: 0;
}

.list-filter {
	flex: 0 1 220px;
	min-width: 0;
}

	.list-filter select.form-control {
		width: 100%;
		min-width: 0;
	}

.list-filters > select.form-control {
	width: 220px;
	flex: 0 0 220px;
}

.list-toolbar-footer {
	grid-area: footer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-lg);
	min-width: 0;
	white-space: nowrap;
	color: var(--dmm-muted);
}

	.list-toolbar-footer > div:first-child {
		min-width: 0;
	}

.list-page-size {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-xs);
	white-space: nowrap;
}

	.list-page-size select.form-control,
	.list-toolbar-footer > div:last-child select.form-control {
		width: 100px;
		flex: 0 0 100px;
	}

.list-toolbar-footer > div:last-child {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-xs);
	white-space: nowrap;
}

.table-container {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--dmm-border);
	border-radius: var(--radius-md);
	background: var(--dmm-white);
	box-shadow: var(--shadow-sm);
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 680px;
}

	.data-table th {
		padding: var(--space-md);
		background: var(--dmm-blue);
		color: var(--dmm-white);
		font-size: var(--text-sm);
		font-weight: 700;
		text-align: left;
		white-space: nowrap;
	}

	.data-table td {
		padding: var(--space-md);
		border-bottom: 1px solid var(--dmm-border);
		vertical-align: middle;
	}

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

.clickable-row {
	cursor: pointer;
	transition: background-color var(--transition-fast);
}

	.clickable-row:hover {
		background: var(--dmm-light);
	}

	.clickable-row:focus-visible {
		outline: 3px solid rgba(8, 125, 193, .25);
		outline-offset: -3px;
	}

/* ---------------------------------------------------------
   STANDARD LIST ITEM ICONS
   --------------------------------------------------------- */

.list-item-primary {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	min-width: 220px;
}

.list-item-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 75px;
	width: 75px;
	height: 75px;
	min-width: 75px;
	min-height: 75px;
	padding: 0;
	border-radius: var(--radius-sm);
	background: var(--dmm-light);
	overflow: hidden;
}

	.list-item-icon img,
	.list-item-icon svg,
	.list-item-icon > * {
		display: block;
		width: 100% !important;
		height: 100% !important;
		max-width: none;
		max-height: none;
		object-fit: contain;
	}

.list-item-details {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

	.list-item-details strong {
		color: var(--dmm-heading);
		font-weight: 700;
	}

.list-item-secondary {
	display: block;
	color: var(--dmm-muted);
	font-size: var(--text-sm);
}

.list-item-muted {
	color: var(--dmm-muted);
	font-size: var(--text-sm);
	font-style: italic;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: var(--text-xs);
	font-weight: 700;
	white-space: nowrap;
}

.status-active {
	background: rgba(34, 197, 94, .12);
	color: #15803d;
}

.status-inactive {
	background: rgba(100, 116, 139, .12);
	color: var(--dmm-muted);
}

.status-pending {
	background: rgba(234, 179, 8, .14);
	color: #a16207;
}

.status-danger {
	background: var(--dmm-danger-light);
	color: var(--dmm-danger-dark);
}


/* ---------------------------------------------------------
   LIST PAGE RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 700px) {

	.list-page-header {
		align-items: stretch;
		flex-direction: column;
		gap: var(--space-md);
		margin-bottom: var(--space-lg);
	}

	.list-page-actions {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: var(--space-sm);
	}

		.list-page-actions .btn {
			width: 100%;
		}

	.list-toolbar {
		grid-template-columns: 1fr;
		grid-template-areas:
			"search"
			"filters"
			"footer";
		gap: var(--space-sm);
		align-items: stretch;
	}

	.list-search-row {
		flex-direction: column;
		align-items: stretch;
		gap: var(--space-sm);
		width: 100%;
	}

	.list-search {
		position: relative;
		width: 100%;
	}

		.list-search > span {
			position: absolute;
			left: 12px;
			top: 50%;
			transform: translateY(-50%);
			z-index: 1;
			pointer-events: none;
		}

		.list-search .form-control {
			width: 100%;
			padding-left: 32px;
		}

	.list-search-row > .btn {
		width: 100%;
	}

	.list-filters {
		flex-direction: column;
		align-items: stretch;
		gap: var(--space-sm);
		width: 100%;
	}

		.list-filters .form-control,
		.list-filter,
		.list-filter select.form-control {
			width: 100%;
			max-width: none;
			flex: 1 1 auto;
		}

	.list-toolbar .list-filters > select.form-control {
		width: 100%;
		flex: 0 0 auto;
	}

	.list-toolbar-footer {
		align-items: stretch;
		flex-direction: column;
		gap: var(--space-sm);
		width: 100%;
		padding-top: 2px;
	}

		.list-toolbar-footer > div:first-child {
			width: 100%;
		}

		.list-toolbar-footer > div:last-child {
			width: 100%;
			justify-content: space-between;
		}

			.list-page-size select.form-control,
			.list-toolbar-footer > div:last-child select.form-control {
				width: 68px;
				flex: 0 0 68px;
			}

	.data-table th,
	.data-table td {
		padding: var(--space-sm);
	}

	.list-item-primary {
		min-width: 180px;
	}
}

/* ---------------------------------------------------------
   LIST PAGE HEIGHT
   Allows list tables to fill the available browser window.
   --------------------------------------------------------- */

.list-page {
	min-height: calc(100vh - 180px);
	display: flex;
	flex-direction: column;
}

	.list-page .dashboard-content,
	.list-page .list-section {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

		.list-page .dashboard-content > .container,
		.list-page .list-section > .container {
			flex: 1 1 auto;
			display: flex;
			flex-direction: column;
			min-height: 0;
		}

	.list-page .table-container {
		flex: 1 1 auto;
		min-height: 420px;
		overflow-y: auto;
		overflow-x: auto;
	}

	.list-page .data-table thead th {
		position: sticky;
		top: 0;
		z-index: 2;
	}

/* Keep list-page action buttons compact without changing
   the full-width buttons used elsewhere. */
.list-page-actions .btn {
	width: auto;
}

/* ---------------------------------------------------------
   DASHBOARD OVERVIEW CARDS
   --------------------------------------------------------- */
.overview-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

	.overview-grid .card {
		min-height: 92px;
	}

	.overview-grid h3 {
		margin: 0 0 var(--space-sm);
		font-size: var(--font-size-sm);
	}

	.overview-grid strong {
		display: block;
		font-size: 1.75rem;
		line-height: 1;
		color: var(--dmm-blue);
	}

/* ---------------------------------------------------------
   DASHBOARD HERO
   --------------------------------------------------------- */

.dashboard-hero {
	position: relative;
	overflow: hidden;
	padding: 42px 0;
	background: linear-gradient( 90deg, #07306f 0%, #07306f 30%, rgba(7, 48, 111, .99) 42%, rgba(7, 48, 111, 1) 50%, rgba(7, 56, 120, .96) 56%, rgba(8, 73, 139, .78) 64%, rgba(8, 94, 159, .56) 72%, rgba(8, 114, 181, .34) 82%, rgba(8, 114, 181, .14) 92%, transparent 100% ), url("../images/page-hero.jpg") center right / 50% auto no-repeat, linear-gradient(110deg, #07306f 0%, #0872b5 100%);
	color: var(--dmm-white);
}

	.dashboard-hero h1 {
		margin-bottom: var(--space-xs);
		color: var(--dmm-white);
		font-size: clamp(2rem, 4vw, var(--text-5xl));
		line-height: var(--line-tight);
	}

	.dashboard-hero p {
		margin-bottom: 0;
		color: rgba(255, 255, 255, .9);
	}



/* ---------------------------------------------------------
   DASHBOARD HERO RESPONSIVE IMAGE
   Keep the full-size hero unchanged. At smaller widths the
   hero image fills the banner so its rectangular edges are
   never exposed; the original gradient blend is preserved.
   --------------------------------------------------------- */

@media (max-width: 1200px) {
	.dashboard-hero {
		background: linear-gradient( 90deg, #07306f 0%, #07306f 30%, rgba(7, 48, 111, .99) 42%, rgba(7, 48, 111, 1) 50%, rgba(7, 56, 120, .96) 56%, rgba(8, 73, 139, .78) 64%, rgba(8, 94, 159, .56) 72%, rgba(8, 114, 181, .34) 82%, rgba(8, 114, 181, .14) 92%, transparent 100% ), url("../images/page-hero.jpg") center right / cover no-repeat, linear-gradient(110deg, #07306f 0%, #0872b5 100%);
	}
}

@media (max-width: 700px) {
	.dashboard-hero {
		background: linear-gradient( 90deg, #07306f 0%, #07306f 30%, rgba(7, 48, 111, .99) 42%, rgba(7, 48, 111, 1) 50%, rgba(7, 56, 120, .96) 56%, rgba(8, 73, 139, .78) 64%, rgba(8, 94, 159, .56) 72%, rgba(8, 114, 181, .34) 82%, rgba(8, 114, 181, .14) 92%, transparent 100% ), url("../images/page-hero.jpg") 70% center / cover no-repeat, linear-gradient(110deg, #07306f 0%, #0872b5 100%);
	}
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.site-footer {
	margin-top: auto;
	padding: 48px 0 20px;
	background: var(--dmm-navy);
	color: rgba(255,255,255,.75);
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr repeat(4, 1fr);
	gap: 32px;
}

.footer-brand {
	margin-bottom: 12px;
	color: #fff;
	font-weight: 700;
}

	.footer-brand span {
		color: var(--dmm-blue-light);
	}

.site-footer p {
	margin: 0 0 8px;
	font-size: var(--text-sm);
	line-height: 1.6;
}

.footer-column {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

	.footer-column h3 {
		margin: 0 0 4px;
		color: #fff;
		font-size: var(--text-sm);
	}

.site-footer a {
	color: rgba(255,255,255,.75);
	font-size: var(--text-sm);
}

	.site-footer a:hover {
		color: #fff;
	}

.footer-bottom {
	margin-top: 32px;
	padding-top: 16px;
	border-top: 1px solid rgba(255,255,255,.15);
	font-size: 12px;
}

@media (max-width: 800px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 550px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

.page-navigation {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	padding: 30px 0 60px;
}

.page-navigation-link {
	color: var(--dmm-blue);
	font-weight: 800;
	text-decoration: none;
}

	.page-navigation-link:hover {
		color: var(--dmm-aqua);
	}

.section-kicker {
	margin-bottom: 6px;
	color: #0069d9;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 2px;
}
/* ---------------------------------------------------------
   SHARED FORM CONTROL ENHANCEMENTS
   Uses existing reusable .form-control and list classes.
   No page-specific selectors are introduced.
   --------------------------------------------------------- */

select.form-control {
	width: 100%;
	min-width: 0;
	padding-right: 36px;
	cursor: pointer;
	appearance: auto;
}

input[type="search"].form-control {
	min-width: 0;
}

/* ---------------------------------------------------------
   MOBILE DASHBOARD CARDS
   The dashboard uses the shared .card-grid and .card classes.
   --------------------------------------------------------- */
@media (max-width: 700px) {
	.card-grid {
		grid-template-columns: 1fr;
		gap: var(--space-md);
	}

		.card-grid .card {
			width: 100%;
			min-width: 0;
			padding: var(--space-md);
		}
}


/* Reusable form layout */
.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	row-gap: var(--space-sm);
	column-gap: var(--space-lg);
}

	.form-grid .form-group {
		min-width: 0;
		margin-bottom: 0;
	}

.form-static-value {
	padding: 4px var(--space-md);
	border-radius: var(--radius-xs);
	background: var(--dmm-white);
	color: var(--dmm-text);
	font-weight: 600;
}

@media (max-width: 700px) {
	.form-grid {
		grid-template-columns: 1fr;
	}
}

.readonly {
	min-height: 44px;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #dbe4ec;
	border-radius: 8px;
	background: #f8fafc;
	color: #172033;
	font-weight: 700;
}

.help {
	margin-top: 6px;
	color: #64748b;
	font-size: .8rem;
}
/* ---------------------------------------------------------
   REUSABLE ORDERED LISTS
   Used for drag-and-drop lists that need a visible order.
   --------------------------------------------------------- */
.ordered-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}

.ordered-item {
	display: flex;
	align-items: stretch;
	gap: var(--space-sm);
	min-width: 0;
	border: 1px solid var(--dmm-border);
	border-radius: var(--radius-sm);
	background: var(--dmm-white);
}

	.ordered-item.is-dragging {
		opacity: .55;
	}

.drag-handle {
	flex: 0 0 44px;
	width: 44px;
	border: 0;
	border-right: 1px solid var(--dmm-border);
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	background: var(--dmm-light);
	color: var(--dmm-muted);
	font-size: 1.1rem;
	font-weight: 800;
	cursor: grab;
}

	.drag-handle:active {
		cursor: grabbing;
	}

.ordered-link {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
}

.ordered-surface {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	min-width: 0;
	padding: var(--space-sm) var(--space-md);
}

.item-number {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--dmm-blue-light);
	color: var(--dmm-blue-dark);
	font-weight: 800;
}

.item-content {
	min-width: 0;
}

.item-title {
	color: var(--dmm-heading);
	font-weight: 700;
}

.item-meta {
	margin-top: 3px;
	color: var(--dmm-muted);
	font-size: var(--text-sm);
}

.save-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	margin-top: var(--space-md);
	padding-top: var(--space-md);
	border-top: 1px solid var(--dmm-border);
}

.save-status {
	color: var(--dmm-muted);
	font-size: var(--text-sm);
}

	.save-status.is-success {
		color: #15803d;
	}

	.save-status.is-error {
		color: var(--dmm-danger-dark);
	}

@media (max-width: 700px) {
	.save-bar {
		align-items: stretch;
		flex-direction: column;
	}

		.save-bar .btn {
			width: 100%;
		}

	.ordered-surface {
		padding: var(--space-sm);
	}
}


/* ---------------------------------------------------------
   REUSABLE FORM OPTION GROUPS
   Used for selectable checkbox/radio lists.
   --------------------------------------------------------- */
.option-group {
	display: grid;
	gap: var(--space-xs);
	max-height: 150px;
	overflow-y: auto;
	padding: var(--space-xs);
	border: 1px solid var(--dmm-border);
	border-radius: var(--radius-xs);
	background: var(--dmm-white);
}

.option {
	display: flex;
	align-items: flex-start;
	gap: var(--space-sm);
	width: 100%;
	box-sizing: border-box;
	padding: var(--space-sm);
	border: 1px solid var(--dmm-border);
	border-radius: var(--radius-xs);
	background: var(--dmm-white);
	cursor: pointer;
}

	.option input {
		flex: 0 0 auto;
		margin-top: 3px;
	}

	.option strong {
		display: block;
	}

	.option .help {
		margin-top: 2px;
	}

/* Keep stacked form cards visually separated. */
.dashboard-content form > .card + .card {
	margin-top: var(--space-md);
}

.warning {
	margin-bottom: 20px;
	padding: 16px 18px;
	border: 1px solid #f4c26b;
	border-radius: 10px;
	background: #fff8e6;
	color: #7a4b00
}

.info {
	color: #64748b;
	font-size: .82rem
}
/* ---------------------------------------------------------
   CALENDAR
   --------------------------------------------------------- */
.calendar-card {
	padding: 0;
	margin-top: var(--space-md);
	overflow: hidden;
}

.calendar-toolbar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 56px;
	padding: 8px 12px;
	border-bottom: 1px solid var(--dmm-border);
}

.calendar-controls {
	display: flex;
	align-items: center;
	gap: 4px;
	justify-self: start;
}

.calendar-title {
	margin: 0;
	font-size: var(--text-sm);
	text-align: center;
}

.calendar-total {
	justify-self: end;
	color: var(--dmm-muted);
	font-size: var(--text-xs);
}

.calendar-weekdays,
.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
	border-bottom: 1px solid var(--dmm-border);
	background: #f8fafc;
}

	.calendar-weekdays > div {
		padding: 7px 4px;
		border-right: 1px solid var(--dmm-border);
		color: var(--dmm-muted);
		font-size: 7px;
		font-weight: 800;
		letter-spacing: .08em;
		text-align: center;
		text-transform: uppercase;
	}

		.calendar-weekdays > div:last-child {
			border-right: 0;
		}

.calendar-day {
	position: relative;
	min-width: 0;
	min-height: 132px;
	padding: 8px 6px;
	border-right: 1px solid var(--dmm-border);
	border-bottom: 1px solid var(--dmm-border);
	background: var(--dmm-white);
}

	.calendar-day:nth-child(7n) {
		border-right: 0;
	}

.calendar-muted {
	background: #fafbfc;
}

.calendar-current {
	background: #f4faff;
}

.calendar-day-number {
	margin-bottom: 6px;
	color: var(--dmm-heading);
	font-size: 9px;
	font-weight: 700;
}

.calendar-current .calendar-day-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-bottom: 4px;
	border-radius: 50%;
	background: var(--dmm-blue);
	color: var(--dmm-white);
}

.calendar-day-items {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.calendar-event {
	display: block;
	min-width: 0;
	padding: 6px 7px;
	border: 1px solid #d5e3ef;
	border-radius: 3px;
	background: #f8fbfe;
	color: var(--dmm-text);
	font-size: .72rem;
	line-height: 1.2;
	overflow: hidden;
}

	.calendar-event:hover {
		border-color: var(--dmm-blue);
		background: var(--dmm-blue-light);
		color: var(--dmm-text);
	}

	.calendar-event strong,
	.calendar-subtitle,
	.calendar-type,
	.calendar-time {
		display: block;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

.calendar-time {
	margin-bottom: 2px;
	color: var(--dmm-blue-dark);
	font-size: .62rem;
	font-weight: 700;
}

.calendar-event strong {
	color: var(--dmm-heading);
	font-size: .72rem;
	font-weight: 800;
}

.calendar-subtitle {
	margin-top: 2px;
	color: var(--dmm-muted);
	font-size: .62rem;
}

.calendar-type {
	margin-top: 2px;
	color: var(--dmm-blue);
	font-size: .62rem;
	font-weight: 800;
	text-transform: uppercase;
}

/* Compact upcoming schedule */
.schedule-list {
	display: flex;
	flex-direction: column;
}

.schedule-list-item {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--space-sm);
	padding: 10px 12px;
	border-top: 1px solid var(--dmm-border);
	color: inherit;
}

	.schedule-list-item:hover {
		background: var(--dmm-light);
		color: inherit;
	}

.schedule-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 30px;
	border: 1px solid var(--dmm-blue-light-border);
	border-radius: var(--radius-xs);
	background: #f7fbff;
	color: var(--dmm-blue);
	line-height: 1;
}

	.schedule-date strong {
		font-size: 6px;
		text-transform: uppercase;
	}

	.schedule-date span {
		margin-top: 2px;
		font-size: 11px;
		font-weight: 800;
	}

.schedule-list-content {
	min-width: 0;
}

	.schedule-list-content .schedule-type {
		margin-bottom: 2px;
		color: var(--dmm-blue);
		font-size: 6px;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: .05em;
	}

	.schedule-list-content h3 {
		margin: 0;
		font-size: var(--text-sm);
	}

	.schedule-list-content p,
	.schedule-list-content small {
		display: block;
		margin: 2px 0 0;
		color: var(--dmm-muted);
		font-size: 7px;
	}

.schedule-arrow {
	color: var(--dmm-blue);
	font-size: 18px;
}

.empty-state {
	padding: var(--space-md);
	color: var(--dmm-muted);
	text-align: center;
}

@media (max-width: 700px) {
	.content-narrow {
		max-width: none;
	}

	.calendar-card {
		overflow: hidden;
	}

	.calendar-toolbar {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"title total"
			"controls total";
		gap: 8px;
		min-height: 74px;
		padding: 12px;
	}

	.calendar-title {
		grid-area: title;
		justify-self: start;
		text-align: left;
		font-size: 1.15rem;
	}

	.calendar-controls {
		grid-area: controls;
		align-self: end;
	}

	.calendar-total {
		grid-area: total;
		align-self: center;
		font-size: var(--text-xs);
	}

	.calendar-weekdays > div {
		padding: 8px 2px;
		font-size: 6px;
	}

	.calendar-day {
		min-height: 82px;
		padding: 5px 3px;
	}

	.calendar-day-number {
		margin-bottom: 4px;
		font-size: 7px;
	}

	.calendar-current .calendar-day-number {
		width: 16px;
		height: 16px;
	}

	.calendar-day-items {
		gap: 3px;
	}

	.calendar-event {
		padding: 4px 4px;
		font-size: .62rem;
	}

	.calendar-time {
		display: none;
	}

	.calendar-event strong {
		font-size: .64rem;
	}

	.calendar-subtitle,
	.calendar-type {
		display: none;
	}
}

@media (max-width: 480px) {
	.calendar-weekdays > div {
		font-size: 0;
	}

		.calendar-weekdays > div::after {
			font-size: 7px;
		}

		.calendar-weekdays > div:nth-child(1)::after {
			content: "M";
		}

		.calendar-weekdays > div:nth-child(2)::after {
			content: "T";
		}

		.calendar-weekdays > div:nth-child(3)::after {
			content: "W";
		}

		.calendar-weekdays > div:nth-child(4)::after {
			content: "T";
		}

		.calendar-weekdays > div:nth-child(5)::after {
			content: "F";
		}

		.calendar-weekdays > div:nth-child(6)::after {
			content: "S";
		}

		.calendar-weekdays > div:nth-child(7)::after {
			content: "S";
		}

	.calendar-day {
		min-height: 68px;
	}
}


/* =========================================================
   COMPETITION DIVE SHEET
   Small, reusable component layer for the core scoring UI.
   Existing .card, .btn, .form-control, .table-container and
   .data-table classes are used wherever they already fit.
   ========================================================= */

.alert-success {
	border: 1px solid #a7f3d0;
	background: #ecfdf5;
	color: #065f46;
}

.dive-of-week-card {
	margin-bottom: var(--space-md);
	border-left: 4px solid #f59e0b;
	background: linear-gradient(180deg, #fff 0%, #fffcf5 100%);
}

	.dive-of-week-card h2 {
		color: #7c4a03;
	}

.dive-of-week-group {
	font-weight: 800;
	color: var(--dmm-heading);
}

.dive-of-week-description,
.dive-of-week-note {
	color: var(--dmm-muted);
	font-size: var(--text-sm);
}

.dive-of-week-description {
	margin-top: var(--space-xs);
}

.dive-of-week-dd-limit {
	margin-top: var(--space-sm);
	font-weight: 700;
	color: #92400e;
}

.dive-of-week-note {
	margin-top: var(--space-xs);
}

.dive-of-week-error {
	margin-bottom: 0;
}

.dive-status-panel {
	margin-bottom: var(--space-md);
	padding: var(--space-md);
	border: 1px solid #a7f3d0;
	border-radius: var(--radius-md);
	background: #ecfdf5;
}

	.dive-status-panel.is-incomplete {
		border-color: #fde68a;
		background: #fffbeb;
	}

	.dive-status-panel.is-ready {
		border-color: #bae6fd;
		background: #f0f9ff;
	}

.dive-status-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	margin-bottom: var(--space-sm);
}

.dive-status-title {
	margin: 0;
	font-size: var(--text-lg);
}

.dive-status-badge,
.dive-list-count-reached,
.dive-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	font-weight: 800;
}

.dive-status-badge {
	padding: 4px 9px;
	font-size: .65rem;
	text-transform: uppercase;
}

	.dive-status-badge.complete {
		background: #d1fae5;
		color: #065f46;
	}

	.dive-status-badge.ready {
		background: #e0f2fe;
		color: #075985;
	}

	.dive-status-badge.incomplete {
		background: #fef3c7;
		color: #92400e;
	}

	.dive-status-badge.invalid {
		background: #fee2e2;
		color: #991b1b;
	}

.dive-status-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--space-sm);
}

.dive-status-item {
	min-height: 57px;
	padding: var(--space-sm);
	border: 1px solid rgba(148,163,184,.28);
	border-radius: var(--radius-xs);
	background: rgba(255,255,255,.8);
}

.dive-status-item-label {
	margin-bottom: 4px;
	color: var(--dmm-muted);
	font-size: .62rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.dive-status-item-value {
	color: var(--dmm-heading);
	font-size: .84rem;
	font-weight: 800;
	line-height: 1.2;
}

.dive-status-message {
	margin-top: var(--space-sm);
	color: var(--dmm-text);
	font-size: var(--text-sm);
}

.dive-status-help {
	margin-top: var(--space-xs);
	color: var(--dmm-muted);
	font-size: .72rem;
	line-height: 1.45;
}

.dive-list-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	margin-bottom: var(--space-sm);
}

.dive-list-header-with-entry {
	align-items: flex-end;
}

.dive-list-title-wrap {
	display: flex;
	align-items: baseline;
	gap: var(--space-sm);
	min-width: 0;
}

.dive-list-title {
	margin: 0;
}

.dive-list-count-reached {
	padding: 3px 8px;
	background: #f1f5f9;
	color: #475569;
	font-size: .66rem;
	white-space: nowrap;
}

.dive-add-form-inline {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.dive-two-step-entry {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

	.dive-two-step-entry .dive-field {
		flex: 0 1 180px;
		min-width: 150px;
	}

	.dive-two-step-entry label,
	.selected-dive-label {
		display: block;
		margin-bottom: 4px;
		font-size: var(--text-xs);
		font-weight: 700;
		color: var(--dmm-text);
	}

	.dive-two-step-entry input,
	.dive-two-step-entry select,
	.dive-selection-preview {
		min-height: 39px;
		width: 100%;
		padding: 8px 11px;
		border: 1px solid var(--dmm-border-dark);
		border-radius: var(--radius-xs);
		background: var(--dmm-white);
		color: var(--dmm-text);
	}

.dive-selection-preview {
	flex: 1 1 260px;
	min-width: 220px;
	background: var(--dmm-light);
}

.selected-dive-value {
	font-weight: 700;
	color: var(--dmm-heading);
}

.dive-two-step-entry .btn {
	white-space: nowrap;
}

.dive-empty {
	padding: var(--space-xl) var(--space-md);
	text-align: center;
	border: 1px dashed var(--dmm-border-dark);
	border-radius: var(--radius-sm);
	background: var(--dmm-light);
	color: var(--dmm-muted);
}

.dive-empty-icon {
	margin-bottom: var(--space-xs);
	font-size: 32px;
}

.dive-empty strong {
	display: block;
	margin-bottom: var(--space-xs);
	color: var(--dmm-text);
}

.dive-table {
	min-width: 0;
	table-layout: auto;
}

	.dive-table th {
		padding: 9px 10px;
		background: #f5f8fb;
		color: #64748b;
		font-size: .63rem;
		letter-spacing: .05em;
		text-transform: uppercase;
		white-space: nowrap;
	}

	.dive-table td {
		padding: 9px 10px;
		font-size: .78rem;
	}

	.dive-table tbody tr {
		transition: background-color .12s ease;
	}

		.dive-table tbody tr:hover td {
			background: #f8fbfd;
		}

.dive-order-cell {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.dive-drag-handle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 5px;
	background: #edf7fc;
	color: #075985;
	font-size: .9rem;
	font-weight: 900;
	cursor: grab;
	user-select: none;
	touch-action: none;
}

	.dive-drag-handle:active {
		cursor: grabbing;
	}

.dive-drag-handle-disabled {
	background: #f1f5f9;
	color: #94a3b8;
	cursor: not-allowed;
}

.dive-order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 29px;
	height: 29px;
	border-radius: 50%;
	background: #e8f4fb;
	color: #075985;
	font-size: .75rem;
	font-weight: 800;
}

.dive-number {
	color: var(--dmm-heading);
	font-size: .82rem;
	font-weight: 800;
}

.dive-name {
	margin-top: 2px;
	color: var(--dmm-text);
	font-size: .74rem;
	font-weight: 700;
}

.dive-position {
	margin-top: 2px;
	color: var(--dmm-muted);
	font-size: .68rem;
}

.dive-dd {
	display: inline-flex;
	justify-content: center;
	min-width: 32px;
	padding: 4px 6px;
	border-radius: 5px;
	background: #eff8fc;
	color: #075985;
	font-size: .73rem;
	font-weight: 800;
}

.dive-status {
	padding: 4px 7px;
	background: #f1f5f9;
	color: #475569;
	font-size: .6rem;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.dive-type-badge,
.dive-of-week-badge,
.voluntary-dive-badge {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	font-weight: 800;
	text-transform: uppercase;
}

.dive-type-badge {
	min-width: 21px;
	padding: 4px 6px;
	background: #e0f2fe;
	color: #075985;
	font-size: .63rem;
}

	.dive-type-badge.voluntary {
		background: #fef3c7;
		color: #92400e;
	}

.dive-of-week-badge {
	margin-bottom: 4px;
	padding: 3px 7px;
	background: #fef3c7;
	color: #92400e;
	font-size: .62rem;
}

.voluntary-dive-badge {
	margin-left: 5px;
	padding: 2px 5px;
	background: #fef0a6;
	color: #92400e;
	font-size: .62rem;
}

.dive-row-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
}

.dive-reorder-button {
	width: 32px;
	height: 32px;
	min-height: 32px;
	padding: 0;
	font-weight: 900;
}

.dive-dragging {
	opacity: .55;
}

.dive-drag-over td {
	box-shadow: inset 0 2px 0 var(--dmm-blue);
}

.dive-table tr.voluntary-dive-row td {
	background: #fff8df;
}

	.dive-table tr.voluntary-dive-row td:first-child {
		border-left: 3px solid #f59e0b;
	}

.dive-order-form {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	margin-top: var(--space-sm);
	padding: var(--space-sm) var(--space-md);
	border: 1px solid var(--dmm-border);
	border-radius: var(--radius-xs);
	background: #f6f9fb;
}

.dive-order-help {
	display: flex;
	flex-direction: column;
	gap: 3px;
	color: var(--dmm-muted);
	font-size: .72rem;
	line-height: 1.35;
}

	.dive-order-help strong {
		color: var(--dmm-heading);
	}

.dive-order-rule-note {
	color: #92400e;
	font-size: .68rem;
	font-weight: 700;
}

.dive-order-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.print-only {
	display: none !important;
}

@media (max-width: 900px) {
	.dive-status-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dive-order-form {
		align-items: stretch;
		flex-direction: column;
	}

	.dive-order-actions {
		width: 100%;
	}

		.dive-order-actions .btn {
			flex: 1 1 0;
		}
}

@media (max-width: 700px) {
	.dive-list-header,
	.dive-list-header-with-entry {
		align-items: stretch;
		flex-direction: column;
	}

	.dive-status-grid {
		grid-template-columns: 1fr 1fr;
	}

	.dive-two-step-entry {
		flex-direction: column;
		align-items: stretch;
	}

		.dive-two-step-entry .dive-field,
		.dive-selection-preview {
			width: 100%;
			min-width: 0;
		}

		.dive-two-step-entry .btn {
			width: 100%;
		}
}

@media (max-width: 600px) {
	.dive-status-grid {
		grid-template-columns: 1fr;
	}

	.dive-status-header {
		align-items: flex-start;
		flex-direction: column;
	}
}

/* =========================================================
   DIVE SHEET PRINT
   One compact Letter landscape sheet.
   Uses the shared .print-only utility for print output.
   ========================================================= */
@media print {
	@page {
		size: Letter landscape;
		margin: 0.35in;
	}

	html,
	body {
		background: #ffffff !important;
		color: #111827 !important;
		margin: 0 !important;
		padding: 0 !important;
		font-family: Arial, Helvetica, sans-serif !important;
		font-size: 11px !important;
		line-height: 1.25 !important;
		overflow: hidden !important;
	}

		body * {
			box-shadow: none !important;
		}

	/* Hide the normal application chrome. */
	.dashboard-header,
	.dashboard-hero,
	header,
	nav,
	footer,
	.footer,
	#footer,
	.site-footer,
	.dashboard-footer {
		display: none !important;
	}

	/*
     * The print sheet is the only direct child that remains visible.
     * This uses the shared .dashboard-content structure instead of
     * a page-specific wrapper class.
     */
	.dashboard-content > div > :not(.print-only) {
		display: none !important;
	}

	.dashboard-page,
	.dashboard-content,
	.container {
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
	}

	/*
	 * Multi-sheet printing: each dive sheet must occupy exactly one
	 * Letter-landscape print page. The multi-sheet PHP page has its own
	 * screen styles, so these print rules intentionally override those
	 * dimensions.
	 */
	.dive-print-sheet {
		width: 100% !important;
		max-width: none !important;
		height: 7.8in !important;
		min-height: 7.8in !important;
		max-height: 7.8in !important;
		margin: 0 !important;
		padding: 0 0 0.45in !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
		page-break-inside: avoid !important;
		break-inside: avoid !important;
	}

		.dive-print-sheet + .dive-print-sheet {
			page-break-before: always !important;
			break-before: page !important;
		}

	.print-only {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		position: relative !important;
		top: auto !important;
		left: auto !important;
		width: 100% !important;
		max-width: none !important;
		height: 7.8in !important;
		min-height: 7.8in !important;
		max-height: 7.8in !important;
		margin: 0 !important;
		padding: 0 0 0.45in !important;
		border: 0 !important;
		background: #ffffff !important;
		color: #111827 !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
		page-break-before: auto !important;
		page-break-after: auto !important;
		page-break-inside: avoid !important;
		break-before: auto !important;
		break-after: auto !important;
		break-inside: avoid !important;
	}

		.print-only,
		.print-only * {
			visibility: visible !important;
		}

	.dive-print-header {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		border-bottom: 2px solid #0b4f80;
		padding-bottom: 5px;
		margin-bottom: 5px;
	}

	.dive-print-kicker {
		font-size: 10px;
		font-weight: 800;
		letter-spacing: 1.2px;
		color: #0b4f80;
		margin-bottom: 2px;
	}

	.dive-print-header h1 {
		margin: 0;
		font-size: 16px;
		line-height: 1.1;
		color: #062b55;
	}

	.dive-print-subtitle {
		margin-top: 2px;
		font-size: 11px;
		color: #475569;
	}

	.dive-print-info-grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 3px 5px;
		margin-bottom: 6px;
	}

		.dive-print-info-grid > div {
			padding: 3px 5px 5px;
			border-bottom: 1px solid #cbd5e1;
			min-height: 24px;
		}

		.dive-print-info-grid span {
			display: block;
			font-size: 12px;
			line-height: 1.1;
			font-weight: 800;
			text-transform: uppercase;
			letter-spacing: .25px;
			color: #475569;
			margin-bottom: 3px;
		}

		.dive-print-info-grid strong {
			display: block;
			font-size: 11px;
			line-height: 1.15;
			font-weight: 800;
			color: #062b55;
		}

	.dive-print-section-title {
		font-size: 12px;
		line-height: 1.1;
		font-weight: 800;
		color: #062b55;
		border-bottom: 1px solid #cbd5e1;
		padding-bottom: 4px;
		margin: 7px 0 4px;
	}

	.dive-print-table {
		width: 100% !important;
		border-collapse: collapse !important;
		table-layout: fixed;
		margin: 0;
	}

		.dive-print-table th,
		.dive-print-table td {
			border: 1px solid #cbd5e1 !important;
			padding: 5px 6px !important;
			text-align: left;
			vertical-align: middle;
			color: #111827 !important;
		}

		.dive-print-table th {
			background: #eef3f7 !important;
			font-size: 12px;
			font-weight: 800;
			text-transform: uppercase;
			letter-spacing: .25px;
		}

		.dive-print-table td {
			font-size: 11px;
		}

		.dive-print-table tr {
			page-break-inside: avoid;
			break-inside: avoid;
		}

		.dive-print-table .print-order-column {
			width: 5%;
		}

		.dive-print-table .print-dive-column {
			width: 31%;
		}

		.dive-print-table .print-position-column {
			width: 14%;
		}

		.dive-print-table .print-dd-column {
			width: 6%;
		}

		.dive-print-table .manual-judge-column {
			text-align: center;
			white-space: nowrap;
		}

		.dive-print-table .manual-total-column {
			width: 10%;
			text-align: center;
			white-space: nowrap;
		}

	.manual-score-box,
	.manual-total-box {
		display: block;
		width: 100%;
		height: 24px;
		min-height: 24px;
		background: #ffffff;
		box-sizing: border-box;
	}

	.manual-score-box {
		border: 1px solid #94a3b8;
	}

	.manual-total-box {
		border: 1.5px solid #64748b;
	}

	.dive-print-table-long th,
	.dive-print-table-long td {
		padding: 5px 6px !important;
	}

	.dive-print-table-long th {
		font-size: 7.5px;
	}

	.dive-print-table-long td {
		font-size: 10px;
	}

	.dive-print-table-long .manual-score-box,
	.dive-print-table-long .manual-total-box {
		height: 20px;
		min-height: 20px;
	}

	.dive-print-table-long .print-dive-column {
		width: 28%;
	}

	.dive-print-table-long .print-position-column {
		width: 12%;
	}

	.dive-print-table-long .print-dd-column {
		width: 5%;
	}

	.dive-print-table tr.dow-dive-row td,
	.dive-print-table tr.voluntary-dive-row td {
		background: #fff7d6 !important;
		border-top: 2px solid #f59e0b !important;
		border-bottom: 2px solid #f59e0b !important;
	}

		.dive-print-table tr.dow-dive-row td:first-child,
		.dive-print-table tr.voluntary-dive-row td:first-child {
			border-left: 3px solid #f59e0b !important;
		}

		.dive-print-table tr.dow-dive-row td:last-child,
		.dive-print-table tr.voluntary-dive-row td:last-child {
			border-right: 3px solid #f59e0b !important;
		}

	.dive-print-table .voluntary-dive-badge,
	.dive-print-table .dow-dive-badge {
		display: inline-block;
		margin-left: 4px;
		padding: 1px 4px;
		border-radius: 999px;
		background: #fef0a6;
		color: #92400e;
		font-size: 8px;
		font-weight: 800;
		text-transform: uppercase;
	}

	.manual-score-note {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
		margin-top: 6px !important;
		padding: 5px 7px !important;
		border: 1px solid #cbd5e1 !important;
		background: #f8fafc !important;
		color: #475569 !important;
		font-size: 10px !important;
		line-height: 1.25 !important;
	}

	.dive-print-status-grid {
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 5px !important;
		width: 100% !important;
		box-sizing: border-box !important;
		margin-top: 7px !important;
	}

		.dive-print-status-grid > div {
			min-width: 0 !important;
			min-height: 30px !important;
			padding: 4px 6px !important;
			border: 1px solid #e2e8f0 !important;
			background: #f8fafc !important;
			box-sizing: border-box !important;
		}

		.dive-print-status-grid span {
			display: block !important;
			margin: 0 0 2px !important;
			color: #64748b !important;
			font-size: 9px !important;
			line-height: 1.1 !important;
			font-weight: 800 !important;
			text-transform: uppercase !important;
		}

		.dive-print-status-grid strong {
			display: block !important;
			color: #062b55 !important;
			font-size: 10px !important;
			line-height: 1.15 !important;
			font-weight: 700 !important;
		}

	.dive-print-notes {
		white-space: pre-wrap;
		border: 1px solid #cbd5e1;
		border-radius: 4px;
		padding: 6px 7px;
		min-height: 20px;
		font-size: 11px;
	}

	.dive-print-signatures {
		position: absolute !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0.18in !important;
		display: grid !important;
		grid-template-columns: repeat(3, 1fr);
		gap: 18px;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		page-break-inside: avoid !important;
		break-inside: avoid !important;
		background: #ffffff !important;
	}

	.dive-print-signature {
		min-width: 0;
		page-break-inside: avoid !important;
		break-inside: avoid !important;
	}

	.dive-print-signature-line {
		height: 1px;
		border-bottom: 1px solid #111827;
	}

	.dive-print-signature-label {
		display: block;
		margin-top: 4px;
		font-size: 10px;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: .35px;
		color: #475569;
	}
}

/* =========================================================
   LIVE SCORING CONSOLE
   ---------------------------------------------------------
   Dedicated component layer for:
   - Admin Live Event Control
   - Judge scoring/live scoring screens

   This section intentionally remains compact and isolated.
   It does not change scoring logic or event behavior.
   ========================================================= */

.live-event-page {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1100px;
	height: calc(100vh - 90px);
	min-height: 0;
	margin: 0 auto;
	padding: 8px 0 12px;
	box-sizing: border-box;
	color: #102b50;
	overflow: hidden;
}

.live-event-shell {
	overflow: visible;
}

.live-hero {
	position: relative;
	overflow: hidden;
	margin-bottom: 10px;
	padding: 12px 16px 14px;
	border-radius: 12px;
	background: linear-gradient(135deg, #0b3b67, #0f8cab);
	color: #fff;
	box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
}

	.live-hero::after {
		content: "";
		position: absolute;
		width: 170px;
		height: 170px;
		top: -92px;
		right: -35px;
		border-radius: 50%;
		border: 16px solid rgba(255, 255, 255, .08);
		box-shadow: 0 0 0 16px rgba(255, 255, 255, .035);
		pointer-events: none;
	}

.live-kicker {
	position: relative;
	z-index: 1;
	margin: 0 0 2px;
	font-size: .66rem;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .86;
}

.live-hero h1 {
	position: relative;
	z-index: 1;
	margin: 1px 0 2px;
	color: #fff;
	font-size: 1.45rem;
	line-height: 1.08;
	font-weight: 900;
}

.live-hero p {
	position: relative;
	z-index: 1;
	margin: 0;
	color: rgba(255, 255, 255, .92);
	font-size: .78rem;
}

.live-meta {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 8px;
}

	.live-meta span {
		padding: 3px 8px;
		border: 1px solid rgba(255, 255, 255, .28);
		border-radius: 999px;
		background: rgba(255, 255, 255, .10);
		color: #fff;
		font-size: .63rem;
		line-height: 1.15;
		font-weight: 800;
	}

.live-refresh {
	color: #64788b;
	font-size: .62rem;
	font-weight: 700;
	white-space: nowrap;
}

.live-hero .live-refresh {
	color: rgba(255, 255, 255, .78);
}

.live-print-action {
	position: relative;
	z-index: 1;
	margin-top: 7px;
	margin-bottom: 10px;
}

.print-score-sheets-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 7px;
	background: #fff;
	color: #0b3b67;
	font-size: .65rem;
	font-weight: 900;
	text-decoration: none;
	box-shadow: 0 2px 7px rgba(0, 0, 0, .10);
}

	.print-score-sheets-btn:hover {
		background: #f8fafc;
		color: #075985;
	}

/* Main console: current dive left; standings/play-by-play right. */
.live-screen-layout {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax(0, 1.65fr) minmax(380px, 1fr);
	grid-template-rows: auto minmax(0, 1fr);
	gap: 10px;
	width: 100%;
	min-width: 0;
	min-height: 0;
	box-sizing: border-box;
	align-items: stretch;
}

	.live-screen-layout > section.live-card:nth-child(1) {
		grid-column: 1;
		grid-row: 1 / 3;
		min-width: 0;
		min-height: 0;
	}

	.live-screen-layout > section.live-card:nth-child(2) {
		grid-column: 2;
		grid-row: 1;
		min-width: 0;
		align-self: start;
	}

	.live-screen-layout > section.live-card:nth-child(3) {
		grid-column: 2;
		grid-row: 2;
		min-width: 0;
		min-height: 0;
		display: flex;
		flex-direction: column;
		overflow: hidden;
	}

.live-card {
	position: relative;
	background: #fff;
	border: 1px solid #d7e3ee;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
	overflow: hidden;
}

.live-current-card {
	border-color: #b8d7e8;
}

.live-card-head {
	min-height: 42px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 12px;
	box-sizing: border-box;
	border-bottom: 1px solid #dbe6ef;
	background: linear-gradient(180deg, #fff, #f6f9fc);
}

	.live-card-head h2 {
		margin: 0;
		color: #12385e;
		font-size: .82rem;
		font-weight: 900;
	}

.live-current-card .live-card-head {
	background: #f0f9ff;
	border-bottom-color: #bae6fd;
}

	.live-current-card .live-card-head h2 {
		text-transform: none;
	}

.live-status {
	padding: 5px 8px;
	border-radius: 999px;
	background: #e0f2fe;
	color: #075985;
	font-size: .58rem;
	line-height: 1;
	font-weight: 900;
	letter-spacing: .05em;
	text-transform: uppercase;
	white-space: nowrap;
}

	.live-status.complete {
		background: #dcfce7;
		color: #166534;
	}

/* Current dive workstation */
.announcer-focus-label {
	padding: 7px 10px;
	background: #087dc1;
	color: #fff;
	text-align: center;
	font-size: .61rem;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.current-dive {
	padding: 13px 14px 14px;
	text-align: center;
}

.current-round {
	margin-bottom: 2px;
	color: #075985;
	font-size: .61rem;
	font-weight: 900;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.current-diver {
	margin-top: 2px;
	color: #102b50;
	font-size: clamp(1.65rem, 3vw, 2.35rem);
	line-height: 1.05;
	font-weight: 950;
	letter-spacing: -.02em;
}

.current-dive-name {
	margin-top: 4px;
	color: #102b50;
	font-size: clamp(1.05rem, 1.8vw, 1.38rem);
	line-height: 1.12;
	font-weight: 900;
}

.current-dive-meta {
	margin-top: 3px;
	color: #64788b;
	font-size: .72rem;
	font-weight: 700;
}

.live-bulk-banner {
	margin: 8px 0 0;
	padding: 7px 8px;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	background: #fff7ed;
	color: #c2410c;
	font-size: .67rem;
	font-weight: 900;
	text-align: center;
}

.live-state {
	margin: 8px 0 9px;
	padding: 8px 7px;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: .68rem;
	line-height: 1.2;
	font-weight: 900;
	text-align: center;
}

	.live-state.ready {
		border-color: #86efac;
		background: #dcfce7;
		color: #166534;
	}

	.live-state.waiting {
		border-color: #bfdbfe;
		background: #eff6ff;
		color: #1d4ed8;
	}

.live-total {
	margin: 0 0 9px;
	padding: 8px;
	border: 1px solid #c7d2fe;
	border-radius: 8px;
	background: #eef2ff;
	text-align: center;
}

.live-total-label {
	color: #64748b;
	font-size: .58rem;
	font-weight: 900;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.live-total-value {
	margin-top: 2px;
	color: #102b50;
	font-size: 1.15rem;
	line-height: 1;
	font-weight: 950;
}

.manual-score-form {
	margin-top: 9px;
}

.judge-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 7px;
}

.judge-box {
	min-width: 0;
	padding: 7px;
	border: 1px solid #dbe4ee;
	border-radius: 9px;
	background: #f8fafc;
	text-align: center;
}

.judge-label {
	margin-bottom: 3px;
	color: #64748b;
	font-size: .58rem;
	font-weight: 900;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.manual-score-input {
	width: 100%;
	min-width: 0;
	min-height: 58px;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 9px;
	background: #fff;
	color: #102b50;
	text-align: center;
	font: inherit;
	font-size: 1.25rem;
	font-weight: 950;
}

	.manual-score-input:focus {
		outline: 3px solid #bae6fd;
		border-color: #0b6b8a;
	}

.live-action-panel {
	margin-top: 8px;
	padding: 8px;
	border: 1px solid #cbd5e1;
	border-radius: 9px;
	background: #f8fafc;
}

.live-action-panel-title {
	margin: 0 0 6px;
	color: #0f172a;
	font-size: .61rem;
	font-weight: 900;
	letter-spacing: .08em;
	text-align: left;
	text-transform: uppercase;
}

.live-action-panel-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

	.live-action-panel-buttons > button {
		width: 100%;
		box-sizing: border-box;
	}

.manual-score-save,
.live-action-btn,
.reset-btn {
	width: 100%;
	box-sizing: border-box;
	cursor: pointer;
	font-family: inherit;
	font-weight: 900;
}

.manual-score-save {
	min-height: 58px;
	padding: 13px 16px;
	border: 0;
	border-radius: 9px;
	background: #087dc1;
	color: #fff;
	font-size: .95rem;
	line-height: 1.2;
}

	.manual-score-save:hover {
		background: #056aa6;
	}

.live-action-btn {
	min-height: 58px;
	padding: 13px 16px;
	border: 0;
	border-radius: 9px;
	font-size: .95rem;
	line-height: 1.2;
	letter-spacing: .01em;
}

.bulk-set {
	background: #f97316;
	color: #fff;
}

	.bulk-set:hover {
		background: #ea580c;
	}

.failed-btn {
	background: #dc2626;
	color: #fff;
}

	.failed-btn:hover {
		background: #b91c1c;
	}

.reset-btn {
	min-height: 58px;
	margin-top: 0;
	padding: 13px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 9px;
	background: #fff;
	color: #334155;
	font-size: .9rem;
	line-height: 1.2;
}

	.reset-btn:hover {
		background: #f1f5f9;
	}

.manual-score-help {
	margin: 0;
	color: #64748b;
	font-size: .59rem;
	line-height: 1.3;
	font-weight: 700;
	text-align: center;
}

.last-submitted-inline {
	margin-top: 2px;
	padding: 7px 8px;
	border: 1px solid #d8e3ec;
	border-left: 3px solid #0b7fa3;
	border-radius: 7px;
	background: #fff;
	text-align: left;
}

.last-submitted-label {
	color: #64748b;
	font-size: .54rem;
	font-weight: 900;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.last-submitted-name {
	margin-top: 2px;
	color: #102b50;
	font-size: .68rem;
	font-weight: 900;
}

.live-complete-banner {
	padding: 24px 14px;
	border: 1px solid #a7f3d0;
	background: #ecfdf5;
	color: #065f46;
	text-align: center;
}

	.live-complete-banner strong {
		display: block;
		margin-bottom: 4px;
		font-size: 1.25rem;
	}

/* Right-side live result tables */
.live-standings-card .live-card-head,
.live-play-card .live-card-head {
	min-height: 40px;
}

.standings-table,
.play-table {
	width: 100%;
	border-collapse: collapse;
}

	.standings-table th,
	.standings-table td,
	.play-table th,
	.play-table td {
		padding: 7px 8px;
		border-bottom: 1px solid #e1e9ef;
		text-align: left;
		font-size: .67rem;
		vertical-align: middle;
	}

	.standings-table th,
	.play-table th {
		background: #f3f7fa;
		color: #60758a;
		font-size: .56rem;
		font-weight: 900;
		letter-spacing: .05em;
		text-transform: uppercase;
		white-space: nowrap;
	}

	.standings-table td.place {
		width: 35px;
		color: #075985;
		text-align: center;
		font-weight: 950;
	}

	.standings-table td.total {
		color: #102b50;
		text-align: right;
		font-weight: 950;
		white-space: nowrap;
	}

.standings-failed {
	color: #b91c1c;
	text-align: center;
	font-weight: 900;
}

.standings-current td {
	background: #e8f7fb;
}

.standings-table tbody tr:hover td,
.play-table tbody tr:hover td {
	background: #f7fbfd;
}

.live-play-card {
	min-height: 0;
}

.live-play-wrap-scroll,
.play-wrap {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: auto;
}

.play-table td small {
	font-size: .54rem;
	line-height: 1.1;
}

.play-current td {
	background: #eff6ff;
}

.play-complete td {
	background: #fff;
}

.play-waiting td {
	background: #fff7ed;
}

.play-failed-row td {
	background: #fff5f5;
}

.play-current td:first-child {
	box-shadow: inset 3px 0 0 #0b7fa3;
}

.play-status {
	font-weight: 900;
	white-space: nowrap;
}

	.play-status.done {
		color: #047857;
	}

	.play-status.wait {
		color: #b45309;
	}

.play-failed {
	color: #b91c1c;
	font-weight: 900;
}

.play-bulk {
	color: #c2410c;
	font-weight: 900;
}

/* Keep the right column compact on desktop so play-by-play is visible. */
@media (min-width: 1000px) {
	.live-event-page {
		max-width: var(--site-content-width);
	}

	.live-screen-layout {
		grid-template-columns: minmax(0, 1.9fr) minmax(360px, .95fr);
		gap: 20px;
	}

		.live-screen-layout > section.live-card:nth-child(1) .current-dive {
			min-height: 0;
		}

		.live-screen-layout > section.live-card:nth-child(3) {
			min-height: 0;
		}
}

/* Tablet landscape: preserve the two-column console. */
@media (min-width: 900px) and (max-width: 1100px) {
	.live-event-page {
		max-width: none;
		padding: 8px 10px 12px;
	}

	.live-screen-layout {
		grid-template-columns: minmax(0, 1.55fr) minmax(320px, .9fr);
		gap: 8px;
	}

	.live-card-head {
		padding: 8px 11px;
	}

	.current-dive {
		padding: 11px 12px 12px;
	}

	.current-diver {
		font-size: 1.8rem;
	}

	.current-dive-name {
		font-size: 1.15rem;
	}

	.judge-row {
		gap: 6px;
	}

	.manual-score-input {
		min-height: 38px;
		font-size: 1.05rem;
	}
}

/* Tablet portrait: stack the operational panels without clipping. */
@media (max-width: 899px) and (orientation: portrait) {
	.live-event-page {
		max-width: none;
		height: auto;
		min-height: 0;
		padding: 8px 10px 20px;
		overflow: visible;
	}

	.live-screen-layout {
		display: flex;
		flex-direction: column;
		gap: 10px;
		min-height: 0;
	}

		.live-screen-layout > section.live-card:nth-child(1),
		.live-screen-layout > section.live-card:nth-child(2),
		.live-screen-layout > section.live-card:nth-child(3) {
			width: 100%;
			min-width: 0;
			max-width: none;
			height: auto;
			margin: 0;
		}

		.live-screen-layout > section.live-card:nth-child(1) {
			order: 1;
			overflow: visible;
		}

		.live-screen-layout > section.live-card:nth-child(2) {
			order: 2;
		}

		.live-screen-layout > section.live-card:nth-child(3) {
			order: 3;
			overflow: hidden;
			min-height: 300px;
			max-height: none;
		}

	.live-card-head {
		min-height: 48px;
		padding: 9px 12px;
	}

	.current-dive {
		padding: 14px 14px 16px;
	}

	.current-diver {
		font-size: 1.7rem;
	}

	.current-dive-name {
		font-size: 1.2rem;
	}

	.judge-row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 7px;
	}

	.manual-score-input {
		min-height: 50px;
		font-size: 1.3rem;
	}

	.live-action-panel-buttons {
		gap: 10px;
	}

		.live-action-panel-buttons .manual-score-save,
		.live-action-panel-buttons .live-action-btn,
		.live-action-panel-buttons .reset-btn {
			min-height: 58px;
			padding: 13px 12px;
			font-size: .9rem;
			line-height: 1.2;
		}

		.live-action-panel-buttons .manual-score-help {
			display: none;
		}

	.last-submitted-inline {
		display: none;
	}
}

/* Small screens: make the judge controls readable and tappable. */
@media (max-width: 600px) {
	.live-event-page {
		padding: 6px 8px 16px;
	}

	.live-hero {
		padding: 11px 12px 12px;
		border-radius: 10px;
	}

		.live-hero h1 {
			font-size: 1.25rem;
		}

	.live-meta {
		gap: 4px;
	}

		.live-meta span {
			padding: 3px 7px;
			font-size: .59rem;
		}

	.live-card {
		border-radius: 10px;
	}

	.live-card-head {
		padding: 8px 10px;
	}

	.current-dive {
		padding: 12px 10px 14px;
	}

	.current-diver {
		font-size: 1.5rem;
	}

	.current-dive-name {
		font-size: 1.02rem;
	}

	.judge-row {
		gap: 5px;
	}

	.judge-box {
		padding: 6px 5px;
	}

	.manual-score-input {
		min-height: 58px;
		font-size: 1.2rem;
	}

	.live-action-panel-buttons .manual-score-save,
	.live-action-panel-buttons .live-action-btn,
	.live-action-panel-buttons .reset-btn {
		min-height: 60px;
		padding: 13px 12px;
		font-size: .85rem;
		line-height: 1.2;
	}

	.standings-table th,
	.standings-table td,
	.play-table th,
	.play-table td {
		padding: 7px 6px;
		font-size: .62rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.manual-score-save,
	.live-action-btn,
	.reset-btn,
	.manual-score-input {
		transition: none;
	}
}

.scoring-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 9px;
	text-decoration: none;
	font-weight: 800;
	border: 1px solid transparent;
	cursor: pointer;
	box-sizing: border-box;
}

.scoring-button-live {
	background: #0b7a4b;
	border-color: #0b7a4b;
	color: #fff;
	text-decoration: none;
}

	.scoring-button-live:hover {
		background: #08633d;
		border-color: #08633d;
		color: #fff;
	}

/* =========================================================
   JUDGE SCORING
   Reuses the shared DMM card, button, form-control, alert,
   section-kicker, help and card-grid components. Only the
   scoring station's unique layout rules live here.
   ========================================================= */

.judge-scoring {
	width: 100%;
	max-width: 404px;
	min-height: 100vh;
	margin: 0 auto;
	padding: 6px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-sizing: border-box;
	overflow-y: auto;
}

.judge-scoring-header {
	flex: 0 0 auto;
	padding: 10px 12px;
	border: 0;
	border-radius: 10px;
	background: var(--dmm-gradient-primary);
	color: var(--dmm-white);
	box-shadow: var(--shadow-sm);
}

	.judge-scoring-header > div:first-child {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-sm);
	}

	.judge-scoring-header .section-kicker {
		margin-bottom: 0;
		color: var(--dmm-white);
		font-size: .72rem;
		letter-spacing: .08em;
	}

	.judge-scoring-header strong {
		font-size: .88rem;
		font-weight: 800;
		white-space: nowrap;
	}

	.judge-scoring-header h1 {
		margin: 4px 0 0;
		color: var(--dmm-white);
		font-size: 1.28rem;
		line-height: 1.08;
	}

	.judge-scoring-header p {
		margin: 3px 0 0;
		color: rgba(255,255,255,.95);
		font-size: .84rem;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

.judge-scoring > .card {
	flex: 0 0 auto;
	padding: 8px 10px;
}

.judge-scoring-round {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

	.judge-scoring-round > div:last-child {
		text-align: right;
	}

	.judge-scoring-round .section-kicker {
		margin-bottom: 0;
		color: var(--dmm-muted);
		font-size: .60rem;
		letter-spacing: .07em;
	}

	.judge-scoring-round strong {
		display: block;
		margin-top: 1px;
		color: var(--dmm-heading);
		font-family: var(--font-heading);
		font-size: 1.18rem;
		font-weight: 800;
		line-height: 1.1;
	}

.judge-scoring-title {
	margin: 0 0 2px;
	color: var(--dmm-heading);
	font-family: var(--font-heading);
	font-size: 1.22rem;
	font-weight: 800;
	line-height: 1.05;
	text-align: center;
}

.judge-scoring-diver {
	font-family: var(--font-heading);
	font-size: var(--text-2xl);
	font-weight: 800;
	line-height: 1.05;
}

.judge-scoring .card p {
	margin-bottom: 0;
}

.judge-scoring .help {
	font-size: .74rem;
	font-weight: 700;
}

.judge-scoring form {
	margin-top: 5px;
}

	.judge-scoring form .form-control {
		height: 68px;
		border-width: 2px;
		border-radius: 10px;
		background: #f8fafc;
		color: var(--dmm-heading);
		font-size: 2.5rem;
		font-weight: 800;
		text-align: center;
	}

	.judge-scoring form .btn-primary {
		width: 100%;
		min-height: 56px;
		margin-top: 5px;
		background: var(--dmm-gradient-primary);
		font-size: 1.08rem;
		font-weight: 800;
		text-transform: uppercase;
	}

.judge-wait {
	margin-top: 5px;
	padding: 6px;
	border: 1px solid #fed7aa;
	border-radius: 9px;
	background: #fff7ed;
	color: #9a3412;
	font-size: .72rem;
	font-weight: 700;
	text-align: center;
}

	.judge-wait strong {
		display: block;
		margin-bottom: 1px;
		font-size: .90rem;
	}

.judge-scoring .card-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 5px;
	margin-top: 4px;
}

	.judge-scoring .card-grid .card {
		padding: 4px 2px;
		border-radius: 7px;
		box-shadow: none;
		text-align: center;
	}

	.judge-scoring .card-grid .help {
		margin: 0;
		font-size: .58rem;
		font-weight: 800;
		text-transform: uppercase;
		white-space: nowrap;
	}

	.judge-scoring .card-grid strong {
		display: block;
		margin-top: 1px;
		color: var(--dmm-heading);
		font-family: var(--font-heading);
		font-size: 1.16rem;
		line-height: 1;
	}

.judge-scoring .alert {
	margin-top: 5px;
	margin-bottom: 0;
	padding: 6px;
	text-align: center;
}

.judge-scoring .alert-success {
	border-color: #a7f3d0;
	background: #ecfdf5;
	color: #047857;
}

.judge-scoring .alert-danger {
	border-color: var(--dmm-danger);
	background: var(--dmm-danger-light);
	color: var(--dmm-danger-dark);
}

.judge-scoring > p:last-child {
	flex: 0 0 auto;
	margin: 0;
	padding-bottom: 4px;
	color: var(--dmm-muted);
	font-size: var(--text-xs);
	line-height: 1;
	text-align: center;
}

@media (max-width: 399px) {
	.judge-scoring {
		max-width: 100%;
	}

	.judge-scoring-header h1 {
		font-size: var(--text-xl);
	}

	.judge-scoring-diver {
		font-size: var(--text-xl);
	}

	.judge-scoring-title {
		font-size: var(--text-lg);
	}

	.judge-scoring form .form-control {
		height: 60px;
		font-size: 2.25rem;
	}
}


/* ---------------------------------------------------------
   REUSABLE SCORING / WORKSPACE UTILITIES
   --------------------------------------------------------- */
.stack {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.split {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-md);
}

.text-right {
	text-align: right;
}

.text-center {
	text-align: center;
}

.alert-info {
	border: 1px solid #bae6fd;
	background: #eff6ff;
	color: #075985;
}

.alert-warning {
	border: 1px solid #fed7aa;
	background: #fff7ed;
	color: #9a3412;
	text-align: center;
}

	.alert-warning strong {
		display: block;
		margin-bottom: 2px;
	}


/* ---------------------------------------------------------
   PUBLIC / ENTRY ACTIONS
   --------------------------------------------------------- */

.action-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-md);
}

.action-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-height: 78px;
	padding: var(--space-md);
	text-decoration: none;
	text-align: left;
}

	.action-card strong {
		display: block;
		margin-bottom: 4px;
		color: inherit;
		font-size: var(--text-sm);
		font-weight: 800;
	}

	.action-card span {
		display: block;
		color: var(--dmm-muted);
		font-size: var(--text-xs);
		font-weight: 500;
		line-height: 1.45;
	}

	.action-card.btn-primary span,
	.action-card.btn-secondary span {
		color: rgba(255, 255, 255, .88);
	}

	.action-card:hover {
		text-decoration: none;
	}


/* ---------------------------------------------------------
   SCROLLING LIST
   --------------------------------------------------------- */

.scroll-list {
	max-height: 360px;
	overflow-y: auto;
	padding-right: 6px;
	scrollbar-width: thin;
}

	.scroll-list > .card {
		margin-bottom: var(--space-md);
	}

		.scroll-list > .card:last-child {
			margin-bottom: 0;
		}

	.scroll-list::-webkit-scrollbar {
		width: 8px;
	}

	.scroll-list::-webkit-scrollbar-track {
		background: var(--dmm-bg);
		border-radius: 8px;
	}

	.scroll-list::-webkit-scrollbar-thumb {
		background: var(--dmm-border-dark);
		border-radius: 8px;
	}

		.scroll-list::-webkit-scrollbar-thumb:hover {
			background: var(--dmm-blue);
		}


@media (max-width: 600px) {
	.action-grid {
		grid-template-columns: 1fr;
	}

	.scroll-list {
		max-height: 320px;
	}
}


/* ---------------------------------------------------------
   CLEAN LOGIN-STYLE PUBLIC CONTENT
   --------------------------------------------------------- */

.login-content {
	width: min(100%, 560px);
	padding: var(--space-xl) var(--space-lg);
}

	.login-content .login-logo {
		margin-bottom: var(--space-lg);
	}

	.login-content > p {
		color: var(--dmm-muted);
		line-height: 1.6;
	}

	.login-content .action-grid {
		margin-top: var(--space-lg);
	}

	.login-content .action-card {
		min-height: 72px;
		border-radius: 7px;
		box-shadow: none;
	}

		.login-content .action-card.btn-primary {
			color: #fff;
		}

		.login-content .action-card.btn-outline {
			color: var(--dmm-blue);
			background: #fff;
			border-color: var(--dmm-blue);
		}

			.login-content .action-card.btn-outline span {
				color: var(--dmm-muted);
			}

.login-meets {
	margin-top: var(--space-lg);
	padding-top: var(--space-md);
	border-top: 1px solid var(--dmm-border-dark);
}

.login-meets-heading {
	margin-bottom: var(--space-xs);
	color: var(--dmm-heading);
	font-family: var(--font-heading);
	font-size: var(--text-xl);
	font-weight: 800;
}

.login-meet-list {
	max-height: 330px;
	overflow-y: auto;
	margin-top: var(--space-md);
	padding-right: 4px;
	scrollbar-width: thin;
}

.login-meet {
	padding: var(--space-md) 0;
	border-bottom: 1px solid var(--dmm-border);
}

	.login-meet:first-child {
		padding-top: 0;
	}

	.login-meet:last-child {
		border-bottom: 0;
	}

.login-meet-host {
	margin-bottom: 3px;
	color: var(--dmm-blue);
	font-size: var(--text-xs);
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.login-meet-name {
	margin-bottom: 4px;
	color: var(--dmm-heading);
	font-family: var(--font-heading);
	font-size: var(--text-md);
	font-weight: 800;
}

.login-meet-date {
	color: var(--dmm-text);
	font-size: var(--text-sm);
}

@media (max-width: 600px) {
	.login-content {
		padding: var(--space-lg);
	}

	.login-meet-list {
		max-height: 300px;
	}
}



/* Reusable score/rating controls */
.score-group {
	margin-top: 8px;
}

.score-group-label {
	margin-bottom: 4px;
	color: var(--dmm-blue);
	font-size: .64rem;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.score-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 4px;
}

.score-option {
	min-height: 40px;
	padding: 4px 2px;
	border: 1px solid var(--dmm-border-dark);
	border-radius: 6px;
	background: var(--dmm-blue-light);
	color: var(--dmm-navy);
	font-size: .82rem;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: var(--transition-fast);
}

	.score-option:hover,
	.score-option:focus-visible {
		border-color: var(--dmm-blue);
		background: var(--dmm-white);
		outline: none;
	}

	.score-option.is-selected {
		border-color: var(--dmm-blue);
		background: var(--dmm-blue);
		color: var(--dmm-white);
		box-shadow: 0 0 0 2px rgba(8, 125, 193, .14);
	}

@media (max-width: 380px) {
	.score-option {
		min-height: 38px;
		font-size: .76rem;
	}
}
