/* ============================================================================
   TYPOGRAPHY & FONTS
   ============================================================================ */

/* Alternative Font Classes */
.alt-font1 {
	font-family: "Lato", sans-serif;
}

.alt-font2 {
	font-family: "Quicksand", sans-serif;
}

/* alt-font3 is RESERVED FOR NUMERALS -- stat values, counts, percentages and
   numeric dates (08/01/2027). A written date (Aug 1, 2027) is prose and stays
   in the body face. Aligned digits are the reason this class exists. */
.alt-font3 {
	font-family: "Chivo Mono", monospace;
}

.alt-font4 {
	font-family: "Kanit", sans-serif;
}

.alt-font5 {
	font-family: "Exo", sans-serif;
}

/* Content Lead Styling */
.content-lead {
	font-family: "Kanit", sans-serif;
	font-size: 20px;
	font-weight: 400;
	color: #ffc45a;
	text-transform: capitalize;
	display: block;
	background-color: var(--mud);
	padding: 0.3rem 0.4rem;
	border-radius: 0;
}

/* Error Message Styling */
.error-message {
	color: #cc0000;
	font-weight: bold;
	font-size: 13px;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

/* Minimum Height Utilities */
.mh-300 {
	min-height: 300px !important;
}

.mh-500 {
	min-height: 500px !important;
}

/* Card Height Utilities */
.card-height-lg {
	min-height: 700px !important;
}

.card-height-md {
	min-height: 400px !important;
}

.card-height-sm {
	min-height: 200px !important;
}

/* Tight Card Spacing - For content sections with minimal gaps */
.card-tight {
	margin-bottom: -1rem !important;
}

.card-tight .card {
	margin-bottom: 0 !important;
}

/* ============================================================================
   COMPONENTS
   ============================================================================ */

/* Password Toggle - Eye Icon */
.password-input-wrapper {
	position: relative;
}

.password-toggle {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 5px 10px;
	cursor: pointer;
	z-index: 10;
	color: var(--mud);
	transition: color 0.2s ease;
}

.password-toggle:hover {
	color: var(--mint);
}

.password-toggle:focus {
	outline: none;
}

.password-input-wrapper input {
	padding-right: 45px;
}

/* Video Container - Responsive 16:9 */
.video-container {
	overflow: hidden;
	position: relative;
	width: 100%;
}

.video-container::after {
	padding-top: 56.25%;
	display: block;
	content: "";
}

.video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Map Grayscale Filter */
.map {
	-webkit-filter: grayscale(100%) saturate(1) brightness(90%) contrast(100%);
	-moz-filter: grayscale(100%) saturate(1) brightness(90%) contrast(100%);
	-ms-filter: grayscale(100%) saturate(1) brightness(90%) contrast(100%);
	-o-filter: grayscale(100%) saturate(1) brightness(90%) contrast(100%);
	filter: grayscale(100%) saturate(1) brightness(90%) contrast(100%);
}

/* Tooltip Styles */
.tooltip {
	position: relative;
	display: inline-block;
}

.tooltip .tooltiptext {
	visibility: hidden;
	width: 140px;
	background-color: #555555;
	color: #ffffff;
	text-align: center;
	border-radius: 0;
	padding: 5px;
	position: absolute;
	z-index: 1;
	bottom: 150%;
	left: 50%;
	margin-left: -75px;
	opacity: 0;
	transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: #555555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
}

/* Accordion Chevron Icon Toggle */
.accordion-toggle .chevron-icon::before {
	content: "\f078\f078";
}

.accordion-toggle:not(.collapsed) .chevron-icon::before {
	content: "\f077\f077";
}

/* ============================================================================
   SOCIAL MEDIA ICONS
   ============================================================================ */

.social-media-icons {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-right: 15px;
}

.social-icon-desktop,
.social-icon-mobile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	background-color: var(--black);
	border: 1px solid var(--black);
	transition: all 0.3s ease;
	text-decoration: none;
}

.social-icon-desktop:hover,
.social-icon-mobile:hover {
	background-color: var(--black-hover);
	border-color: var(--black-hover);
}

.social-icon-desktop .icon-theme,
.social-icon-mobile .icon-theme {
	color: var(--gold-light) !important;
}

.social-icon-desktop:hover .icon-theme,
.social-icon-mobile:hover .icon-theme {
	color: var(--gold-light-hover) !important;
}

.social-icon-desktop i,
.social-icon-mobile i {
	font-size: 16px;
}

.social-icons-tiktok:hover a {
	background: var(--black) !important;
}

/* ============================================================================
   TABLES & DATA DISPLAY
   ============================================================================ */

/* Every <th> wears this one class instead of repeating four utilities. Changing
   the look of table headers fleet-wide is then a single edit here.
   See /home/sagedash/.guides/dashboard-design-standard.md #6.4 */
.table-label {
	font-family: "Overpass Mono", monospace;
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--mud);
}

/* Form field labels are owned here, never by a color utility in the markup, so
   retheming is one edit and a label can never be mistaken for a status. */
label,
.form-label,
legend {
	color: var(--mud);
}

.audit-row {
	transition: background-color 0.2s ease;
}

.audit-row:hover {
	background-color: rgba(0, 0, 0, 0.02) !important;
}

/* ============================================================================
   RESPONSIVE MOBILE STYLES
   ============================================================================ */

/* Hide Desktop Views on Mobile */
@media (max-width: 767px) {
	.card-header > .row,
	.audit-row {
		display: none !important;
	}
}

/* Mobile Header & Social Icons */
@media (max-width: 767px) {
	.header {
		min-height: 60px;
	}

	.logo-container {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 10px 15px;
		height: 100%;
	}

	.logo-container .logo {
		display: flex;
		align-items: center;
		max-width: 200px;
	}

	.logo-container .logo img {
		max-width: 100%;
		height: 35px;
		width: auto;
		object-fit: contain;
	}

	.mobile-controls {
		display: flex;
		align-items: center;
		gap: 8px;
		flex-shrink: 0;
	}

	.social-icon-mobile {
		width: 32px;
		height: 32px;
		flex-shrink: 0;
	}

	.social-icon-mobile i {
		font-size: 14px;
	}

	.toggle-sidebar-left {
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		width: 32px;
		height: 32px;
		margin-left: 5px;
	}

	.toggle-sidebar-left i {
		margin: 0 !important;
		font-size: 18px;
	}
}

/* ============================================================================
   SIDEBAR NAVIGATION
   ============================================================================ */

/* Icons and labels are DESERT-LIGHT at rest -- 5.89:1 on the #1D2127 sidebar
   (base desert is 4.56:1, so this is the more legible of the two as well as the
   one Kenny picked). The markup carries no color class (see
   includes/sidebar-left.php), so the <i> and its <span> both inherit from the
   link and can never drift apart. Hover and active stay gold; those rules live
   in css/sidebar.css and out-specify this one.
   See /home/sagedash/.guides/dashboard-design-standard.md #6.8 */
html ul.nav-main li a,
html ul.nav-main li a span,
html ul.nav-main li a > i {
	color: var(--desert-light);
}

/* nav-active is set on the <li>; the link inside it is the current page. */
html ul.nav-main li.nav-active > a,
html ul.nav-main li.nav-active > a span,
html ul.nav-main li.nav-active > a > i,
html ul.nav-main li a:hover,
html ul.nav-main li a:hover span,
html ul.nav-main li a:hover > i,
html ul.nav-main li a:focus,
html ul.nav-main li a:focus span,
html ul.nav-main li a:focus > i {
	color: #f4c430;
}

/* ============================================================================
   USER DROPDOWN (top right)
   ============================================================================ */

/* theme.css hovers these to white-on-#CCC (1.6:1). Keep the mud text and use a
   light neutral behind it instead. The link/icon colors themselves come from
   text-mud in includes/header.php, which is !important and beats theme.css's
   .userbox .dropdown-menu a at (0,3,0). */
html .userbox .dropdown-menu a:hover,
html .userbox .dropdown-menu a:focus {
	background: #f2f2f2;
	color: var(--mud);
}

html .userbox .dropdown-menu a:hover i,
html .userbox .dropdown-menu a:focus i {
	color: var(--mud);
}

/* ============================================================================
   SECTION BARS
   ============================================================================ */

/* A section bar's height was being set by whichever heading level it happened to
   use: theme.css gives h4 line-height 27px and h5 only 18px, so with identical
   px-2 py-1 padding an <h5> bar rendered 9px shorter than an <h4> one. Heading
   level is a semantic choice and should not change how the bar looks.
   Pinning line-height here makes every bar the same height at any level.
   See /home/sagedash/.guides/dashboard-design-standard.md #6.3 */
.section-bar {
	line-height: 27px;
}

/* ==========================================================================
   CMS Forms (includes/forms/_form-engine.php)
   ========================================================================== */

/* Breathing room wherever a form is embedded (contact page, form pages).
   The bottom gap matters most on mobile, where the form stacks directly on
   top of the next block of content. */
.cms-form-wrap {
	padding-top: 0.5rem;
	padding-bottom: 2.5rem;
}

@media (min-width: 992px) {
	.cms-form-wrap {
		padding-bottom: 1rem;
	}
}

/* Honeypot - kept out of sight of people, still visible to bots */
.cms-form-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cms-form .form-label {
	color: #030303;
	/* Set here, not left to the engine's font-weight-semi-bold class: dashboards' admin theme does not define it,
	   so labels rendered at normal weight there (2026-10-01). 600 = the website theme's semi-bold. */
	font-weight: 600;
}

/* A single checkbox FIELD ("I agree to the refund policy") is a field label too, but the engine renders
   it as a .form-check-label at normal weight and without the required asterisk. It is the first thing in
   its column, while radio / checkbox OPTIONS always follow the field's .form-label - so :first-child
   picks out the field and leaves options alone (cms-form-checkbox-field, 2026-10-01). */
.cms-form [class*="col"] > .form-check:first-child .form-check-label {
	font-weight: 600;
}
.cms-form [class*="col"] > .form-check:first-child .form-check-input[required] + .form-check-label::after {
	content: " *";
	color: #dc3545;
}

.cms-form .form-text {
	color: #6c757d;
}

/* Porto resets some Bootstrap form sizing - keep controls consistent */
.cms-form .form-control,
.cms-form .form-select {
	padding: 0.5rem 0.75rem;
}

/* Agreement / consent text above a form's submit button (_formAgreement) */
.cms-form-agreement {
	padding: 1rem 1.15rem;
	border-left: 3px solid #c92927;
	background: #f7f7f7;
	font-size: 0.9rem;
	line-height: 1.6;
}

/* Section heading inside a long form (_formHeadings). Deliberately theme-neutral:
   it inherits the site's heading font and color rather than naming a brand color,
   because this block is copied verbatim onto every site. */
.cms-form-heading {
	margin: 1.75rem 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #dee2e6;
	font-size: 1.25rem;   /* larger than body text - house rule 2026-09-23; the engine also adds .fs-5 + .text-primary */
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* No gap above the first heading - it already sits at the top of the form */
.cms-form .row > .col-12:first-child .cms-form-heading {
	margin-top: 0;
}

/* Privacy / do-not-send warning above a form's fields (_formIntro). Deliberately
   louder than .cms-form-agreement: that one is consent text people are expected to
   skim, this one has to be read BEFORE they start typing. Same red as the agreement
   rule so the two read as one family.
   Added 2026-08-28 after real submissions arrived carrying dates of birth and medical
   detail on a clinic's contact form. */
.cms-form-notice {
	/* A top margin as well as a bottom one: this block is used BOTH above a form
	   (_formIntro) and below an input as a field description, where without it the
	   card butts straight against the radio buttons it explains. Reported on
	   lsbbqcatering's Catering Package field, 2026-09-01. */
	margin-top: 0.85rem;
	margin-bottom: 1.25rem;
	padding: 0.9rem 1.1rem;
	border: 1px solid #c92927;
	border-left-width: 4px;
	border-radius: 3px;
	background: #fdf3f3;
	color: #8c1d1c;
	font-size: 0.9rem;
	line-height: 1.6;
}
.cms-form-notice p:last-child { margin-bottom: 0; }
.cms-form-notice strong { color: #a51f1e; }

/* Important Notice messages are WYSIWYG and arrive wrapped in <p>; keep the theme's p color from overriding the alert text color */
.alert p,
.alert li {
	color: inherit;
}

/* Between .text-4 (1.2em) and .text-5 (1.5em): announcement card titles */
.text-4-5 {
	font-size: 1.35em !important;
}

/* Home page announcement cards: the text is cut to about five lines and fades out; the chevron
   (.ann-more) expands it. .ann-fits marks text short enough to need neither. */
.ann-clamp {
	max-height: 7.5rem;
	overflow: hidden;
	position: relative;
	transition: max-height 0.3s ease;
}
.ann-clamp:not(.ann-open):not(.ann-fits)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2.5rem;
	background: linear-gradient(rgba(253, 253, 253, 0), #fdfdfd);
}
.ann-more i {
	transition: transform 0.3s ease;
}
.ann-more[aria-expanded="true"] i {
	transform: rotate(180deg);
}

/* Form bars: the section titles inside a form (edit forms, Register at the Gate, check-ins). A solid bar
   beside the form's solid buttons read as one more long button, so a form bar is a light tint of its
   color, a colored left edge and colored text, with no icon (Kenny, 2026-11-23). Give the heading
   form-bar plus text-<color>; currentColor carries the color to the edge and the tint.
   See /home/sagedash/.guides/dashboard-design-standard.md #6.3 */
.form-bar {
	border-left: 4px solid currentColor;
	background-color: rgba(0, 0, 0, .04);
	background-color: color-mix(in srgb, currentColor 8%, transparent);
}

/* Title boxes: the standard section style (Kenny, 2026-11-23; design standard 6.3). A section is a thin outline
   with its title sitting on the top line, the line broken behind it: <fieldset class="title-box"> with
   <legend><h4 class="title-box-title">Title</h4></legend>. The browser breaks the border behind the legend, so it
   works on any background. The color is the site's brand color (mud on a site without one); override
   --title-box-color on a box for another. No icon in the title. */
.title-box {
	--title-box-color: var(--brand, var(--mud, #212529));
	position: relative;
	border: 1px solid var(--title-box-color);
	padding: .25rem .85rem .85rem;
	margin: 0 0 1.75rem;
	min-width: 0;
}
.title-box > legend {
	float: none;
	width: auto;
	margin: 0 0 .5rem -.4rem;
	padding: 0 .4rem;
	line-height: 1;
}
.title-box-title {
	margin: 0;
	color: var(--title-box-color);
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}
/* The box's own padding is the bottom gap: drop the last block's margin (a form row's mb-3). */
.title-box > :last-child {
	margin-bottom: 0 !important;
}
/* A button on a title box's top line, at the right (e.g. Add a Car). Its own background hides the line. */
.title-box-action {
	position: absolute;
	top: -1.16rem;   /* Chrome starts a fieldset's padding box below the legend and its .5rem margin; the line runs
	                   through the legend's middle (half of 1.1rem x 1.2 = .66rem) */
	right: .85rem;
	translate: 0 -50%;   /* not transform: the theme's .btn sets its own */
}

/* card-featured on a modal (from sagentic.soccer; Kenny, 2026-11-23: every modal is a featured card).
 * Never add .card to .modal-content (theme.css makes .card transparent, so the modal turns see-through); the
 * card-featured classes carry the look. Bootstrap gives .modal-content a 1px border all round and card-featured
 * colors every edge, so only the top edge keeps the accent; the header and footer take the card-header gray. */
.modal-content.card-featured {
	border-color: rgba(0, 0, 0, .175);
	border-top-color: var(--brand, var(--mud));
}
.modal-content.card-featured .modal-header,
.modal-content.card-featured .modal-footer {
	background-color: #f6f6f6;
}
.modal-content.card-featured .modal-header {
	border-bottom: 1px solid #dadada;
}

/* Badges: cut corners (Kenny, 2026-11-23: "cut the corners off badges so they don't get confused with buttons";
 * design standard 6.7). Buttons are square, so a badge has its four corners chamfered at 45 degrees with clip-path
 * and reads as a tag. The cut scales with the badge (.4em, about 4-5px). An outlined badge loses its border on the
 * diagonals, which still reads as a tag. */
html body .badge {   /* html body: custom.css loads before the theme and skin, whose .badge rules would win */
	border-radius: 0;
	clip-path: polygon(
		.4em 0, calc(100% - .4em) 0, 100% .4em, 100% calc(100% - .4em),
		calc(100% - .4em) 100%, .4em 100%, 0 calc(100% - .4em), 0 .4em
	);
}

/* Dark text on yellow (Kenny, 2026-11-23: "I think we need dark text on yellow"). White on Bootstrap's warning yellow
 * (#ffc107) is about 1.6:1; dark text is about 12:1. Covers a yellow badge and anything yellow that a template marks
 * text-white (which Bootstrap makes !important, hence !important here). Icons inherit it. */
html body .badge.bg-warning,
html body .bg-warning.text-white {
	color: #212529 !important;
}

/* <hr>: thin and solid by default (Kenny, 2026-11-23: "Make <hr> appear solid by default (thin, but solid)"). The
 * dashboard theme draws a plain <hr> as a gradient that fades at both ends, and the website theme as 6% black, which is
 * barely there; both now draw 1px of #dadada, the theme's own hr.solid. The variants that mean a different look keep it
 * (dotted, light, invisible, the gradient ones); a utility class like bg-light still wins (it is !important). */
html body hr:not(.dotted):not(.light):not(.invisible):not(.gratient):not(.gradient-to-right):not(.gradient-to-left) {
	height: 1px;
	border: 0;
	background-color: #dadada;
	background-image: none;
	opacity: 1;
}

/* Info buttons are Bootstrap info (Kenny, 2026-11-24: "all copy buttons on all dashboards must be bootstrap info colored";
   2026-11-25: "make all info buttons bootstrap info", then "All copy buttons info-outline. All copy icons or other elements
   used for copy must be info. But if it is a button, it has to be outline - not solid"). theme.css repaints info as a
   paler #5bc0de with white text (2:1); these rules put back Bootstrap's own info.
   - A copy button is `btn btn-outline-info btn-copy`: a #0dcaf0 outline with #087990 text (5.1:1; #0dcaf0 text is 1.8:1),
     filled #0dcaf0 with black text on hover. It stays an outline even if a script puts `btn-info` back after a copy.
   - Any other `btn-info` is solid #0dcaf0 with black text (10.7:1), even if the markup also says text-white;
     `btn-outline-info` looks like a copy button.
   - A copy icon that isn't a button (`btn btn-link btn-copy-icon`, or an icon with `btn-copy`): #087990, hover #055160.
   A script that flashes a button green after a copy still can (btn-success).
   Guide: /home/sagedash/.guides/dashboard-design-standard.md §6.7. */
html body .btn.btn-info:not(.btn-success):not(.btn-copy),
html body .btn.btn-info:not(.btn-success):not(.btn-copy):focus,
html body .btn.btn-info:not(.btn-success):not(.btn-copy):disabled {
	background-color: #0dcaf0 !important;
	border-color: #0dcaf0 !important;
	color: #000 !important;
}
html body .btn.btn-outline-info:not(.btn-success),
html body .btn.btn-outline-info:not(.btn-success):focus,
html body .btn.btn-outline-info:not(.btn-success):disabled,
html body .btn.btn-copy:not(.btn-success):not(.btn-link),
html body .btn.btn-copy:not(.btn-success):not(.btn-link):focus,
html body .btn.btn-copy:not(.btn-success):not(.btn-link):disabled {
	background-color: transparent !important;
	border-color: #0dcaf0 !important;
	color: #087990 !important;
}
html body .btn.btn-info:not(.btn-success):hover,
html body .btn.btn-info:not(.btn-success):active,
html body .btn.btn-outline-info:not(.btn-success):hover,
html body .btn.btn-outline-info:not(.btn-success):active,
html body .btn-check:checked + .btn.btn-outline-info,
html body .btn.btn-copy:not(.btn-success):not(.btn-link):hover,
html body .btn.btn-copy:not(.btn-success):not(.btn-link):active {
	background-color: #31d2f2 !important;
	border-color: #25cff2 !important;
	color: #000 !important;
}
html body .btn.btn-info:not(.btn-success) i,
html body .btn.btn-info:not(.btn-success) svg,
html body .btn.btn-outline-info:not(.btn-success) i,
html body .btn.btn-outline-info:not(.btn-success) svg,
html body .btn.btn-copy:not(.btn-success):not(.btn-link) i,
html body .btn.btn-copy:not(.btn-success):not(.btn-link) svg { color: inherit !important; }
html body .btn-copy-icon,
html body .btn-copy-icon i,
html body .btn-copy-icon svg,
html body :not(.btn).btn-copy { color: #087990 !important; }
html body .btn-copy-icon:hover i,
html body .btn-copy-icon:hover svg,
html body :not(.btn).btn-copy:hover { color: #055160 !important; }

/* ============================================================================
   TILE ROWS: equal heights (Kenny, 2026-11-25)
   A simple-card-list that is the only thing in a grid column is a stat tile.
   It fills the column, so every tile in a row matches the tallest one (a tile
   with a note line under its label no longer sticks out). The tile's bottom
   margin goes, so the gap below the row stays the ul's mb-3. A list that shares
   its column with other content (the detail sidebars) is left alone.
   ============================================================================ */
.row > [class*="col"] > ul.simple-card-list.mb-3:only-child {
	display: flex;
	flex-direction: column;
	height: calc(100% - 1rem);
}

.row > [class*="col"] > ul.simple-card-list.mb-3:only-child > li {
	flex: 1 1 auto;
	margin-bottom: 0;
}
