/* Shared by every page: jump bar, skip link, footer labels, copyright, links.
   Load after Materialize and before any page stylesheet. */

/* <img> width/height attributes reserve space while loading; let CSS widths keep the aspect ratio */
img[width][height] { height: auto; }

a { color: #4cd0ff; }
a:hover, a:focus { color: #4cd892; }

/* - - - - Skip link (only visible when focused with the keyboard) - - - - */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 3000;
	padding: 8px 16px;
	background: #0f182c;
	color: #fff;
	border: 1px solid #4cd0ff;
	border-radius: 4px;
}
.skip-link:focus { left: 8px; color: #fff; }

/* - - - - Jump bar - - - - */
#jumpbar {
	position: sticky;
	top: 0;
	z-index: 900;
	width: 100%;
	background-image: url("/tiny-bubbles/images/bg_nav_bar.jpg");
	background-size: 100% 100%;
	text-align: center;
}

/* Undo Materialize's default <nav> styling */
#jumpbar nav {
	background: none;
	box-shadow: none;
	height: auto;
	line-height: normal;
}

#jumpbar ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	min-height: 56px;
	margin: 0;
	padding: 0;
}

#jumpbar li {
	float: none;
	padding: 0 2%;
}

#jumpbar li a {
	display: inline;
	padding: 0;
	color: white;
	font-size: 15px;
	text-transform: uppercase;
	text-decoration: none;
	background: none;
}

#jumpbar li a:focus { background: none; }
#jumpbar li a:hover, #jumpbar li a:focus-visible { color: #4cd892; }	/* not plain :focus, which stays after closing a popup */

@media only screen and (max-width : 600px) {
	#jumpbar ul { min-height: 50px; }
	#jumpbar li a { font-size: 12px; }
	#jumpbar li.ws-only { display: none; }
}

/* Anchored sections shouldn't end up hidden under the sticky jump bar */
html { scroll-padding-top: 64px; }

/* Simple footer links stay on one line whenever the window is wide enough */
#footer ul.footer-links { max-width: none; }
#footer ul.footer-links li { white-space: nowrap; }

/* - - - - Copyright lines - - - - */
.psc-copyright .lbreak { display: inline; }

@media only screen and (max-width : 500px) {
	.psc-copyright .lbreak { display: block; }
}

/* - - - - Popups (<dialog>) - - - - */
/* While one is open the page behind it doesn't scroll, so drags inside the popup (even ones that
   start on a text box) scroll the popup instead of the page */
html:has(dialog[open]) { overflow: hidden; }
dialog { overscroll-behavior: contain; }
dialog:focus { outline: none; }	/* on phones the popup itself takes focus, so the keyboard doesn't pop up */
