/* Robert Clements Memorial — responsive layout (replaces the original frameset) */
:root {
	--navy: #0f1e87;
	--navy-dark: #0a1560;
	--cream: #fff1de;
	--ink: #1d1d1d;
	--muted: #6b6257;
	--rule: #e3d3bb;
	--nav-w: 180px;
	--font: Verdana, Geneva, Tahoma, sans-serif;
	--serif: Georgia, "Times New Roman", Times, serif;
}

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

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

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font: 15px/1.65 var(--font);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

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

a {
	color: var(--navy);
	text-underline-offset: 2px;
}

a:hover {
	color: #b3001b;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #fff;
	padding: 8px 12px;
	z-index: 10;
}

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

/* ---------- Header ---------- */
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 66px;
	padding: 0 0 0 12px;
	background: var(--navy) url(../images/header_flag.gif) no-repeat right top;
}

.brand {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 7px 0;
	text-decoration: none;
}

.menu-toggle {
	display: none;
}

/* ---------- Time-line bar ---------- */
.timeline {
	display: flex;
	align-items: flex-start;
	background: #000;
	padding: 0 12px;
	overflow-x: auto;
}

.tl-title {
	flex: none;
	margin-left: -12px;
}

.timeline ol {
	display: flex;
	flex: 1;
	margin: 0;
	padding: 0 0 6px;
	list-style: none;
	position: relative;
	min-width: max-content;
}

/* the horizontal rule the dots sit on */
.timeline ol::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 13px;
	height: 1px;
	background: #bdbdbd;
}

.timeline li {
	position: relative;
}

.timeline a {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 7px 14px 0;
	min-width: 96px;
	color: #d9d9d9;
	text-decoration: none;
	font-size: 11px;
	letter-spacing: .02em;
}

.timeline .dot {
	width: 12px;
	height: 12px;
	background: #fff;
	border: 1px solid #000;
	box-shadow: 0 0 0 1px #9a9a9a;
	transition: transform .15s, background .15s;
}

.timeline .tl-label {
	margin-top: 5px;
	white-space: nowrap;
}

.timeline a:hover .dot,
.timeline a:focus-visible .dot,
.timeline a[aria-current] .dot {
	background: #d8232a;
	transform: scale(1.2);
}

.timeline a:hover,
.timeline a[aria-current] {
	color: #fff;
}

.timeline a[aria-current] .tl-label {
	font-weight: bold;
}

/* ---------- Main layout ---------- */
.layout {
	display: flex;
	flex: 1;
}

.site-nav {
	flex: 0 0 var(--nav-w);
	background: #000 url(../images/back_nav.gif) no-repeat left top;
	background-size: 100% auto;
}

.site-nav ul {
	margin: 0;
	padding: 20px 0;
	list-style: none;
	text-align: center;
	position: sticky;
	top: 0;
}

.site-nav a {
	display: block;
	padding: 7px 10px;
	color: #fff;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	text-decoration: underline;
	color: #ffe27a;
}

.site-nav a[aria-current] {
	color: #ffe27a;
}

.content {
	flex: 1;
	min-width: 0;
	max-width: 900px;
	padding: 28px 32px 48px;
}

.content h1 {
	margin: 0 0 14px;
	color: var(--navy);
	font-size: 22px;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.content p {
	margin: 0 0 1em;
}

.content blockquote {
	margin: 1em 0;
}

.content hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin: 1em 0;
}

.small {
	font-size: 13px;
	line-height: 1.55;
}

.headline {
	display: block;
	font: bold 26px/1.25 var(--serif);
	margin: .25em 0 .4em;
}

.subhead {
	display: inline-block;
	font: 19px/1.4 var(--serif);
}

/* Old layout tables become wrapping flex rows */
.grid,
.card {
	margin: 0 0 1em;
}

.row {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
}

.row + .row {
	margin-top: 16px;
}

.cell {
	flex: 1 1 280px;
	min-width: 0;
}

.cell.full {
	flex-basis: 100%;
}

.cell.center {
	text-align: center;
}

.card {
	background: #fff;
	padding: 20px 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.card .row {
	align-items: flex-start;
}

.box-head {
	background: #003399;
	color: #fff;
	font-weight: bold;
	padding: 4px 8px;
}

.box-body {
	background: #e9e9e9;
	padding: 8px;
	font-size: 13px;
}

/* Floated photos and sidebars in the reprinted articles */
.float-right {
	float: right;
	margin: 4px 0 12px 20px;
	max-width: 45%;
}

.float-left {
	float: left;
	margin: 4px 20px 12px 0;
	max-width: 45%;
}

aside.float-right,
aside.float-left {
	width: 220px;
	font-size: 12px;
	line-height: 1.5;
}

.card::after,
.content::after {
	content: "";
	display: block;
	clear: both;
}

/* Photo with the original corner-mount frame */
.framed {
	display: inline-block;
	margin: 0 auto;
	border: 31px solid transparent;
	border-image: url(../images/frame.png) 31 fill round;
	line-height: 0;
	max-width: 100%;
}

.cell > .framed {
	display: table;
}

/* Timeline pager */
.pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 0 0 20px;
	font-size: 13px;
}

.pager ol {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pager ol a {
	display: grid;
	place-items: center;
	min-width: 32px;
	height: 32px;
	border: 1px solid var(--navy);
	border-radius: 3px;
	font-weight: bold;
	text-decoration: none;
}

.pager ol a:hover {
	background: #fff;
}

.pager ol a[aria-current] {
	background: var(--navy);
	color: #fff;
}

.pager-period {
	font-weight: bold;
	text-decoration: none;
}

.pager-period.next {
	margin-left: auto;
}

.content > .pager:last-of-type {
	margin: 28px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--rule);
}

/* Contact form embed */
.page-contact iframe {
	width: 100% !important;
	max-width: 680px;
}

/* ---------- Footer ---------- */
.site-footer {
	background: #000;
	color: #bbb;
	font-size: 12px;
	text-align: center;
	padding: 14px 16px;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: #fff;
}

/* ---------- Tablet / phone ---------- */
@media (max-width: 760px) {
	body {
		font-size: 16px;
	}

	.site-header {
		background-size: auto 100%;
		background-position: 140% top;
		padding-right: 8px;
		position: relative;
	}

	.site-header::before {
		/* soften the flag behind the menu button */
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, var(--navy) 55%, rgba(15, 30, 135, .55));
		pointer-events: none;
	}

	.brand,
	.menu-toggle {
		position: relative;
		z-index: 1;
	}

	.brand img:first-child {
		width: 56px;
	}

	.brand-name {
		width: 160px;
	}

	.menu-toggle {
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 10px 12px;
		background: rgba(0, 0, 0, .35);
		border: 1px solid rgba(255, 255, 255, .5);
		border-radius: 4px;
		color: #fff;
		font: bold 13px var(--font);
		text-transform: uppercase;
		letter-spacing: .05em;
		cursor: pointer;
	}

	.bars,
	.bars::before,
	.bars::after {
		display: block;
		width: 18px;
		height: 2px;
		background: #fff;
		position: relative;
	}

	.bars::before,
	.bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.bars::before {
		top: -6px;
	}

	.bars::after {
		top: 6px;
	}

	.timeline {
		padding: 0;
	}

	.tl-title {
		display: none;
	}

	.timeline ol {
		min-width: 0;
	}

	.timeline li {
		flex: 1;
	}

	.timeline a {
		min-width: 0;
		padding-left: 2px;
		padding-right: 2px;
		font-size: 10.5px;
	}

	.layout {
		display: block;
	}

	.site-nav {
		display: none;
		background-image: none;
		border-bottom: 3px solid var(--navy);
	}

	.site-nav.open {
		display: block;
	}

	.site-nav ul {
		display: grid;
		grid-template-columns: 1fr 1fr;
		padding: 8px 0;
	}

	.site-nav a {
		padding: 12px 10px;
		font-size: 13px;
	}

	.content {
		padding: 20px 16px 36px;
	}

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

	.headline {
		font-size: 22px;
	}

	.card {
		padding: 16px;
		margin-left: -4px;
		margin-right: -4px;
	}

	.float-right,
	.float-left,
	aside.float-right,
	aside.float-left {
		float: none;
		display: block;
		max-width: 100%;
		width: auto;
		margin: 16px auto;
	}

	.framed {
		border-width: 20px;
	}

	.pager-period.next {
		margin-left: 0;
	}
}

@media print {
	.site-header,
	.timeline,
	.site-nav,
	.pager,
	.site-footer {
		display: none;
	}
}
