/*
* * * * * ==============================
* * * * * ==============================
* * * * * ==============================
* * * * * ==============================
========================================
========================================
========================================
----------------------------------------
USWDS THEME CUSTOM STYLES
----------------------------------------
Minor edits to the HRIT_EMWIN Pages
----------------------------------------
*/
h3 {
	color: #0a4595;
}

/* Make image gallery horizontal */
.hrit-gallery {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.hrit-gallery-item {
	flex: 1 1 18%;
	text-align: center;
	min-width: 120px;
}

.hrit-gallery-item img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 0.5rem;
}

.hrit-gallery-item p {
	margin: 0;
	font-size: 0.875rem;
}

/* Table full width + spacing */
.lrit-table {
	width: 100%;
}

.lrit-table th,
.lrit-table td {
	padding: 0.75rem 1rem;
}

.lrit-table thead th {
	background-color: #f0f0f0;
}

/* Narrow File Size column and center text */
.lrit-table td:nth-child(2),
.lrit-table th:nth-child(2) {
	width: 80px;
	text-align: center;
	white-space: nowrap;
}

.hrit-gallery {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.5rem;
}

.hrit-gallery img {
	width: 100%;
	height: auto;
	display: block;
}

.hrit-gallery-item {
	text-align: center;
}

@media (max-width: 1024px) {
	.hrit-gallery {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 640px) {
	.hrit-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

#goes-dcs-modal .usa-modal__close {
	position: absolute;
	top: 1.75rem;
	/* moves the X down slightly */
	right: 1rem;
}

#goes-dcs-modal .usa-modal__content {
	position: relative;
	display: flex;
	flex-direction: column;
}

#goes-dcs-modal .usa-modal__footer {
	margin-top: auto;
	text-align: center;
	/* centers Go back */
}

#goes-dcs-modal .usa-button-group {
	justify-content: center;
	/* centers button group */
}

#goes-dcs-modal .usa-modal__main {
	overflow: visible;
	/* removes scrollbar */
}


/* HRIT Links multi-column layout */

.hrit-links {
	column-count: 3;
	column-gap: 2rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.hrit-links li {
	break-inside: avoid;
	margin-bottom: 0.5rem;
}

/* Tablet */
@media (max-width: 64rem) {
	.hrit-links {
		column-count: 2;
	}
}

/* Mobile */
@media (max-width: 40rem) {
	.hrit-links {
		column-count: 1;
	}
}

/* Make table scroll horizontally */
.usa-table--responsive {
	display: block;
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Prevent columns from collapsing */
.usa-table--responsive th,
.usa-table--responsive td {
	white-space: nowrap;
}

.sticky-subnav {
	position: sticky;
	top: 0;
	z-index: 450 !important;
}

/* Apply only on smaller screens (USWDS uses ~640px as mobile breakpoint) */
@media (max-width: 40rem) {
	.table-scroll-mobile {
		display: block;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.table-scroll-mobile th,
	.table-scroll-mobile td {
		white-space: nowrap;
	}
}

/* Carousel container */
.carousel {
	position: relative;
	overflow: visible;
	/* IMPORTANT: allows arrows outside */
	max-width: 100%;
}

/* Viewport */
.carousel__viewport {
	overflow: hidden;
	/* keeps images clipped properly */
}

/* Track (slides wrapper) */
.carousel__track {
	display: flex;
	transition: transform 0.4s ease-in-out;
}

/* Slides */
.carousel__slide {
	min-width: 100%;
	padding: 0.5rem;
	box-sizing: border-box;
}

/* Images */
.carousel__slide img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

/* =========================
	 ARROW CONTROLS
	 ========================= */
.carousel__control {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);

	/* remove default button styles */
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;

	/* arrow styling */
	color: #0a4595;
	font-size: 3rem;
	font-weight: bold;
	line-height: 1;

	cursor: pointer;
	z-index: 1;

	transition: color 0.2s ease, transform 0.2s ease;
}

/* Hover effect */
.carousel__control:hover,
.carousel__control:focus {
	color: #0a4595;
	transform: translateY(-50%) scale(1.2);
	outline: none;
}

/* =========================
	 MOBILE (default)
	 Arrows INSIDE images
	 ========================= */
.carousel__control.prev {
	left: 0.5rem;
}

.carousel__control.next {
	right: 0.5rem;
}

/* =========================
	 TABLET
	 ========================= */
@media (min-width: 640px) {
	.carousel__slide {
		min-width: 50%;
	}
}

/* =========================
	 DESKTOP
	 Arrows OUTSIDE images
	 ========================= */
@media (min-width: 1024px) {
	.carousel__slide {
		min-width: 33.3333%;
	}

	.carousel__control.prev {
		left: 0;
		transform: translate(-150%, -50%);
	}

	.carousel__control.next {
		right: 0;
		transform: translate(150%, -50%);
	}
}

.usa-textarea,
.usa-range,
.usa-radio__label,
.usa-input-group,
.usa-hint,
.usa-combo-box__input,
.usa-combo-box__list,
.usa-select,
.usa-checkbox__label,
.usa-fieldset,
.usa-input {
	font-family: Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;
	font-size: 1.06rem;
}

.label-color {
    color: #475569 !important;
    font-size: 0.9em !important;
}