/* SATCAST: shared styles for every page
   Matches the 2026 NSSTC homepage (www.nsstc.uah.edu): Red Hat Text,
   UAH Blue to Navy sidebar gradient, section labels with a UAH Yellow
   underline, and the uah.edu-style gray footer with a blue top rule.

   UAH web palette:
     UAH Blue   #0058A4   UAH Navy   #002D72   UAH Yellow #FDDA24 (accents only)
     UAH Black  #2C2A29   Gray       #63666A   Light Gray #E5E5E5 */

@font-face {
	font-family: "Red Hat Text";
	src: url("../fonts/RedHatText-VF.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Red Hat Text";
	src: url("../fonts/RedHatText-Italic-VF.woff2") format("woff2");
	font-weight: 300 700;
	font-style: italic;
	font-display: swap;
}

:root {
	--uah-blue: #0058A4;
	--uah-navy: #002D72;
	--uah-yellow: #FDDA24;
	--uah-black: #2C2A29;
	--uah-gray: #63666A;
	--uah-light-gray: #E5E5E5;
	--rule: #D5D5D5;
	--font: "Red Hat Text", Arial, Helvetica, sans-serif;
	--page-max: 1200px;
	--sidebar-w: 280px;
}

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

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

body {
	margin: 0;
	background: #DDDDDD;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--uah-black);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--uah-blue);
}

a:hover {
	text-decoration: none;
}

:focus-visible {
	outline: 3px solid var(--uah-blue);
	outline-offset: 2px;
}

.sidebar :focus-visible {
	outline-color: var(--uah-yellow);
}

.skip-link {
	position: absolute;
	left: 8px;
	top: -60px;
	z-index: 100;
	padding: 8px 14px;
	background: #FFFFFF;
	color: var(--uah-blue);
	font-weight: 600;
}

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

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ------------------------------------------------------------------
   HEADER: SATCAST name on the left, UAH primary logo on the right
   ------------------------------------------------------------------ */

.wrapper {
	max-width: var(--page-max);
	margin: 0 auto;
	background: #FFFFFF;
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 0 0 0 24px;
	background: linear-gradient(180deg, #FCFCFC 0%, #F2F2F2 100%);
	border-bottom: 1px solid var(--rule);
}

.site-id {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px 0;
	color: var(--uah-black);
	text-decoration: none;
}

.site-id img {
	display: block;
	width: auto;
	height: 96px;
}

.site-id .name {
	display: block;
	font-size: 34px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--uah-blue);
}

.site-id .tagline {
	display: block;
	max-width: 420px;
	margin-top: 4px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--uah-black);
}

.site-id .parent {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	color: var(--uah-gray);
}

.site-id:hover .name {
	text-decoration: underline;
}

/* Official UAH primary (stacked) logo, links to uah.edu.
   Brand guide: never smaller than the unit mark beside it; clear space on
   all sides about equal to the height of the university-name text. */
.uah-logo {
	flex: 0 0 auto;
	display: block;
	padding: 36px;
}

.uah-logo img {
	display: block;
	width: auto;
	height: 100px;
}

/* ------------------------------------------------------------------
   PAGE: sidebar on the left, content on the right (as on the homepage)
   ------------------------------------------------------------------ */

.page {
	display: flex;
	align-items: stretch;
}

.sidebar {
	flex: 0 0 var(--sidebar-w);
	padding-bottom: 40px;
	color: #FFFFFF;
	/* background-color is the fallback that contrast checkers measure */
	background-color: var(--uah-navy);
	background-image: linear-gradient(180deg, var(--uah-blue) 0%, var(--uah-navy) 100%);
}

.sidebar a,
.sidebar a:visited {
	color: #FFFFFF;
	text-decoration: none;
}

.sidebar a:hover,
.sidebar a:focus {
	text-decoration: underline;
}

.side-box {
	padding: 32px 30px 0 30px;
}

.side-box h2 {
	display: inline-block;
	margin: 0 0 18px 0;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--uah-yellow);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.2;
}

.link-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.link-list li {
	margin: 0 0 14px 0;
	font-size: 17px;
	line-height: 1.25;
}

.link-list a[aria-current="page"] {
	font-weight: 700;
	padding-left: 12px;
	border-left: 3px solid var(--uah-yellow);
}

.link-list .sub {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.85);
}

.content {
	flex: 1 1 0;
	min-width: 0;
	padding: 36px 40px 48px 40px;
}

/* ------------------------------------------------------------------
   CONTENT TYPOGRAPHY
   ------------------------------------------------------------------ */

.content h1 {
	margin: 0 0 20px 0;
	font-size: 30px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--uah-blue);
}

.content h2 {
	margin: 36px 0 12px 0;
	font-size: 23px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--uah-blue);
}

.content h3 {
	margin: 28px 0 8px 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--uah-black);
}

.content p,
.content ul,
.content ol {
	max-width: 72ch;
	margin: 0 0 16px 0;
}

.content li {
	margin-bottom: 6px;
}

.lead {
	font-size: 18px;
}

.note {
	max-width: 72ch;
	margin: 0 0 24px 0;
	padding: 14px 18px;
	background: #F2F6FB;
	border-left: 4px solid var(--uah-blue);
}

.note p:last-child {
	margin-bottom: 0;
}

/* Product status notice (for example, GOES West not being updated) */
.status-note {
	max-width: 72ch;
	margin: 0 0 24px 0;
	padding: 14px 18px;
	background: #FFF9DB;
	border-left: 6px solid var(--uah-yellow);
	color: var(--uah-black);
}

.status-note strong {
	display: block;
	margin-bottom: 4px;
}

.status-note p {
	margin: 0 0 8px 0;
}

.status-note p:last-child {
	margin-bottom: 0;
}

.status {
	font-weight: 600;
	color: var(--uah-gray);
}

.archive-note {
	max-width: 72ch;
	margin: 0 0 24px 0;
	padding: 14px 18px;
	background: #F5F5F5;
	border-left: 4px solid var(--uah-gray);
	font-size: 15px;
}

.archive-note strong {
	display: block;
	margin-bottom: 4px;
}

.archive-note p {
	margin: 0 0 8px 0;
}

.archive-note p:last-child {
	margin-bottom: 0;
}

/* SS color key used on the home page */
.ss-key {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0 0 20px 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.ss-key li {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.swatch {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 1px solid #555555;
}

/* ------------------------------------------------------------------
   REGION PICKER (GOES East / West pages)
   ------------------------------------------------------------------ */

.domain-figure {
	margin: 0 0 28px 0;
}

.domain-figure img {
	display: block;
	border: 1px solid var(--rule);
}

figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--uah-gray);
}

.region-grid {
	display: grid;
	gap: 14px;
	margin: 0 0 24px 0;
	padding: 0;
	list-style: none;
}

.region-grid.east {
	grid-template-columns: repeat(3, minmax(0, 220px));
}

.region-grid.west {
	grid-template-columns: repeat(2, minmax(0, 220px));
}

.region-grid li {
	margin: 0;
}

.region-grid a {
	display: block;
	color: var(--uah-black);
	text-decoration: none;
	font-weight: 600;
}

.region-grid img {
	display: block;
	width: 100%;
	border: 2px solid var(--uah-navy);
	background: #000000;
}

.region-grid span {
	display: block;
	padding-top: 6px;
	line-height: 1.3;
}

.region-grid span small {
	display: block;
	font-weight: 400;
	color: var(--uah-gray);
}

.region-grid a:hover img,
.region-grid a:focus img {
	border-color: var(--uah-yellow);
}

.region-grid a:hover span,
.region-grid a:focus span {
	color: var(--uah-blue);
	text-decoration: underline;
}

.extra-loops {
	margin: 0 0 24px 0;
	padding: 0;
	list-style: none;
}

.extra-loops li {
	margin-bottom: 8px;
}

/* ------------------------------------------------------------------
   LOOP PLAYER
   ------------------------------------------------------------------ */

.breadcrumb {
	margin: 0 0 10px 0;
	font-size: 15px;
}

.loop {
	max-width: 100%;
}

.loop-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0 0 10px 0;
	padding: 10px 12px;
	background: var(--uah-light-gray);
	border-top: 3px solid var(--uah-blue);
}

.loop-controls .group {
	display: flex;
	align-items: center;
	gap: 6px;
}

.loop button,
.player button {
	min-width: 40px;
	min-height: 40px;
	padding: 6px 12px;
	border: 1px solid var(--uah-navy);
	border-radius: 3px;
	background: #FFFFFF;
	color: var(--uah-navy);
	font: 600 15px var(--font);
	cursor: pointer;
}

.loop button:hover,
.player button:hover {
	background: #EAF1F9;
}

.loop button[aria-pressed="true"] {
	background: var(--uah-navy);
	color: #FFFFFF;
}

.loop button.primary,
.player button.primary {
	min-width: 92px;
	background: var(--uah-blue);
	border-color: var(--uah-blue);
	color: #FFFFFF;
}

.loop button.primary:hover,
.player button.primary:hover {
	background: var(--uah-navy);
}

.loop label {
	font-size: 15px;
}

.loop input[type="range"] {
	width: 120px;
	accent-color: var(--uah-blue);
}

.loop-status {
	margin: 0 0 8px 0;
	font-size: 15px;
	color: var(--uah-gray);
}

/* Fit mode (default): the whole image is visible, never cropped. Its
   height is capped so the image and the control bar fit in the window
   together (--fit-h is set by loop-player.js); width is capped by the
   column. Images are never enlarged beyond their real size. */
.loop-view {
	position: relative;
	display: flex;
	justify-content: flex-start;
	max-width: 100%;
	overflow: hidden;
}

.loop-view img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: var(--fit-h, 80vh);
	border: 1px solid var(--rule);
	user-select: none;
	-webkit-user-drag: none;
}

/* Zoomed: the box keeps the fitted size and scrolls; drag to pan */
.loop-view.zoomed {
	display: block;
	overflow: auto;
	background: #000000;
	border: 1px solid var(--rule);
	cursor: grab;
}

.loop-view.zoomed img {
	max-width: none;
	max-height: none;
	border: 0;
}

.loop-view.dragging {
	cursor: grabbing;
}

.loop-frames {
	margin: 10px 0 0 0;
	padding: 0;
	border: 0;
}

.loop-frames legend {
	padding: 0;
	margin-bottom: 4px;
	font-size: 15px;
	font-weight: 600;
}

.loop-frames .boxes {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
}

.loop-frames label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.loop-frames input {
	width: 18px;
	height: 18px;
	accent-color: var(--uah-blue);
}

.loop-help {
	margin-top: 14px;
	font-size: 15px;
	color: var(--uah-gray);
}

/* ------------------------------------------------------------------
   FAQ and slide figures: image with its text beside it
   ------------------------------------------------------------------ */

.slide-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	margin: 0 0 12px 0;
}

.slide-pair figure {
	margin: 0;
}

.slide-pair figure img {
	display: block;
	border: 1px solid var(--rule);
}

.slide-pair .slide-text p,
.slide-pair .slide-text ul {
	max-width: none;
}

/* ------------------------------------------------------------------
   PUBLICATIONS and DOWNLOADS
   ------------------------------------------------------------------ */

.pub-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pub-list li {
	max-width: 80ch;
	margin: 0 0 18px 0;
	padding-left: 1.5em;
	text-indent: -1.5em;
}

.file-type {
	font-size: 14px;
	color: var(--uah-gray);
	white-space: nowrap;
}

/* ------------------------------------------------------------------
   CONTACT CARDS
   ------------------------------------------------------------------ */

.people {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.people li {
	margin: 0;
	padding-top: 14px;
	border-top: 3px solid var(--uah-blue);
}

.people h2 {
	margin: 0 0 4px 0;
	font-size: 20px;
	color: var(--uah-black);
}

.people .role {
	margin: 0 0 8px 0;
	font-weight: 600;
	color: var(--uah-blue);
}

.people address {
	margin-bottom: 8px;
	font-style: normal;
}

/* ------------------------------------------------------------------
   TRAINING PLAYER
   ------------------------------------------------------------------ */

.player {
	margin: 0 0 32px 0;
}

.player-stage {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(220px, 2fr);
	gap: 20px;
	align-items: start;
}

.player-stage figure {
	margin: 0;
}

.player-stage img {
	display: block;
	width: 100%;
	border: 1px solid var(--rule);
}

.player-slide-text {
	max-height: 420px;
	overflow-y: auto;
	padding: 4px 4px 4px 0;
	font-size: 15px;
}

.player-slide-text h2 {
	margin-top: 0;
	font-size: 20px;
}

.player-slide-text ul {
	padding-left: 1.2em;
}

.captions {
	min-height: 4.4em;
	margin: 12px 0 10px 0;
	padding: 10px 14px;
	background: #1E1E1E;
	color: #FFFFFF;
	font-size: 18px;
	line-height: 1.45;
}

.captions[hidden] {
	display: none;
}

.player-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 10px;
}

.player audio {
	width: 100%;
	margin: 6px 0 12px 0;
}

.chapters {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 6px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ch;
}

.chapters li {
	margin: 0;
}

.chapters button {
	width: 100%;
	min-height: 0;
	padding: 6px 10px;
	text-align: left;
	font-weight: 500;
}

.chapters button[aria-current="true"] {
	background: var(--uah-navy);
	color: #FFFFFF;
}

.transcript {
	margin-top: 8px;
}

.transcript summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--uah-blue);
}

.transcript section {
	max-width: 72ch;
}

/* ------------------------------------------------------------------
   FOOTER (styled after the uah.edu contact block, as on the homepage)
   ------------------------------------------------------------------ */

.site-footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) max-content max-content;
	grid-template-areas:
		"contact reach brand"
		"copy    copy  copy";
	column-gap: 40px;
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 35px 40px 30px 40px;
	background: var(--uah-light-gray);
	border-top: 12px solid var(--uah-blue);
	color: var(--uah-black);
}

.site-footer h2 {
	margin: 0 0 12px 0;
	font-size: 26px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--uah-blue);
}

.site-footer address {
	font-style: normal;
}

.site-footer p {
	margin: 0;
}

.footer-contact {
	grid-area: contact;
}

.footer-reach {
	grid-area: reach;
	padding-top: 50px;
}

.footer-brand {
	grid-area: brand;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.footer-brand img {
	display: block;
	width: auto;
	height: 70px;
}

.footer-brand img.ua-system {
	width: 150px;
	height: auto;
}

.brand-rule {
	display: block;
	width: 150px;
	height: 0;
	margin: 18px 0;
	border: 0;
	border-top: 1px solid var(--uah-black);
}

.icon-line {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px !important;
}

.icon-line a {
	white-space: nowrap;
}

.icon {
	flex: 0 0 auto;
}

.site-footer a,
.site-footer a:visited {
	color: var(--uah-black);
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--uah-blue);
	text-decoration: underline;
}

.copyright {
	grid-area: copy;
	margin-top: 22px !important;
	padding-top: 16px;
	border-top: 1px solid #BBB1A7;
	text-align: center;
	font-size: 14px;
}

.copyright a {
	text-decoration: underline !important;
}

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

@media (max-width: 1000px) {
	.player-stage {
		grid-template-columns: minmax(0, 1fr);
	}

	.player-slide-text {
		max-height: none;
	}

	.site-footer {
		grid-template-columns: minmax(0, 1fr) max-content;
		grid-template-areas:
			"contact brand"
			"reach   brand"
			"copy    copy";
	}

	.footer-reach {
		padding-top: 14px;
	}
}

@media (max-width: 860px) {
	.site-header {
		flex-direction: column;
		align-items: center;
		padding: 12px 20px 0 20px;
	}

	.site-id {
		padding: 10px 0 0 0;
	}

	.uah-logo {
		padding: 26px;
	}

	.uah-logo img,
	.site-id img {
		height: 72px;
	}

	.site-id .name {
		font-size: 28px;
	}

	.page {
		flex-direction: column;
	}

	.content {
		order: 1;
		padding: 26px 20px 36px 20px;
	}

	.sidebar {
		order: 2;
		flex: 0 0 auto;
	}

	.side-box {
		padding-left: 20px;
		padding-right: 20px;
	}

	.slide-pair {
		grid-template-columns: minmax(0, 1fr);
	}

	.region-grid.east {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.region-grid.west {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.site-id {
		flex-direction: column;
		text-align: center;
	}

	.content h1 {
		font-size: 26px;
	}

	.region-grid.east {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"contact"
			"reach"
			"brand"
			"copy";
		row-gap: 22px;
		padding: 28px 20px;
	}

	.footer-reach {
		padding-top: 0;
	}

	.footer-brand {
		align-items: flex-start;
	}

	.copyright {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
	}
}

@media print {
	.sidebar,
	.loop-controls,
	.loop-frames,
	.skip-link {
		display: none;
	}
}

.chapters button[aria-current="true"] .file-type {
	color: #FFFFFF;
}

p.file-type {
	white-space: normal;
}

/* Color key swatches (classes instead of inline styles, so the
   Content-Security-Policy can forbid inline styles) */
.sw-0 { background: #FFABFF; }
.sw-1 { background: #0000F9; }
.sw-2 { background: #007BFF; }
.sw-3 { background: #00FBFF; }
.sw-4 { background: #00FF3F; }
.sw-5 { background: #F7FF07; }
.sw-6 { background: #FFC700; }
.sw-7 { background: #FF8700; }
.sw-8 { background: #FF0700; }

.video {
	display: block;
	max-width: 100%;
	height: auto;
	margin-bottom: 8px;
	background: #000000;
}
