
a:link {color: #003366; text-decoration: none}
a:visited {color: #003366; text-decoration: none}
a:hover {color: #003366;  font-weight:bold}
a:active {color: #003366; text-decoration: none}

.tempHeading {
font-family: Trebuchet MS, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #99121B;
text-shadow:none
}

.home {font-family: Helvetica, Arial, sans-serif; font-size: 13px; color: #333333; line-height: 1.2em; text-shadow: none}

.tempHeading-line {
font-family: Helvetica, Arial, sans-serif;
font-size: 14px;
font-weight: bold;
color: #99121B; 
text-shadow:none
}


h3{
font-family: Helvetica, Arial, sans-serif;
font-size: 13px;
font-style: regular;
font-weight: normal; 
color: #333333;
text-transform: sentence;
}

/* Modern Layout System for Template Pages */
/* Body background - grey color for outside content area */
body {
	background-color: #969696;
	margin: 0;
	padding: 0;
}

/* Main container styles */
.site-container {
	max-width: 760px;
	margin: 0 auto;
	background-color: #ffffff;
	min-height: 100vh;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.site-header {
	height: 20px;
	width: 100%;
	background-color: #ffffff;
}

.site-content {
	background-color: #ffffff;
	padding: 0;
	min-height: 400px;
}

.site-footer {
	height: 26px;
	width: 100%;
	background-color: #ffffff;
}

.content-wrapper {
	background: #ffffff;
	padding: 30px 40px;
}

/* Skip Link for Accessibility */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: #000;
	color: #fff;
	padding: 8px;
	text-decoration: none;
	z-index: 100;
}

.skip-link:focus {
	top: 0;
}

/* Navigation improvements for template */
.template-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0;
	align-items: center;
}

.template-nav a {
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.3s;
}

.template-nav a:hover {
	background: rgba(255, 255, 255, 0.2);
}

.home-link {
	margin-left: auto;
}

.nav-separator {
	border: none;
	border-top: 1px solid #ddd;
	margin: 20px 0;
}

.header-divider {
	border: none;
	border-top: 1px solid #cccccc;
	margin: 10px auto;
	max-width: 715px;
}

.home-link-right {
	text-align: right;
	margin: 10px 0;
}

/* Responsive images */
img {
	max-width: 100%;
	height: auto;
}

/* Media Queries for larger screens */
@media screen and (min-width: 768px) {
	.site-container {
		max-width: 760px;
	}

	.template-nav {
		justify-content: flex-start;
	}
}

/* Legacy table support for gradual migration */
table {
	max-width: 100%;
	width: 100% !important;
}

@media screen and (min-width: 768px) {
	table {
		width: 700px !important;
	}
}

@media screen and (max-width: 767px) {
	/* Body stays grey on mobile */
	body {
		background-color: #969696;
		margin: 0;
		padding: 0;
	}

	/* Site container adjustments for mobile */
	.site-container {
		box-shadow: none;
		margin: 10px;
	}

	/* Template navigation mobile improvements */
	.template-nav {
		flex-direction: column;
		gap: 10px;
		background: rgba(255, 255, 255, 0.1);
		padding: 15px;
		border-radius: 8px;
		margin: 20px 0;
	}
	
	.template-nav a {
		display: block;
		width: 100%;
		text-align: center;
		padding: 12px 16px;
		margin: 0;
		background: rgba(255, 255, 255, 0.2);
		border-radius: 6px;
		font-weight: bold;
		border: 1px solid rgba(255, 255, 255, 0.3);
	}
	
	.template-nav a:hover, .template-nav a:focus {
		background: rgba(255, 255, 255, 0.4);
		transform: translateY(-1px);
		box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	}
	
	.home-link {
		margin-left: 0;
		order: -1; /* Move home link to top on mobile */
	}
	
	.tempHeading {
		font-size: 16px;
		line-height: 1.3em;
		text-align: center;
		display: block;
		margin-bottom: 10px;
	}
	
	.tempHeading-line {
		display: block;
		margin: 0.5em 0;
		font-size: 13px;
		text-align: center;
	}
	
	/* Make touch targets larger */
	a {
		min-height: 44px;
		display: inline-block;
		padding: 8px 4px;
	}
	
	/* Content wrapper mobile adjustments */
	.content-wrapper {
		padding: 20px 15px;
	}
}