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

html {
	--goldenRatio: 1.618;
	--sectionBgColor: light-dark(whitesmoke, #252E27);
	color-scheme: light dark;
	font: 1em/1.5 Lucida Grande, Lucida Sans Unicode, Lucida Sans, Futura, sans-serif;
	font-size: clamp(1rem, .564rem + .788vw, 1.5rem); /* https://www.marcbacon.com/tools/clamp-calculator/ */
	overflow-y: scroll;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0 auto;
	max-inline-size: calc(64ch * var(--goldenRatio));
	transition: .2s;
}

a {
	color: light-dark(#2353ba, #b4d2ff);
	text-decoration: none;
	transition: color .2s linear;
}

a:hover,
a:focus { color: light-dark(#003e7e, #bedcff); }

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
	outline: 1px solid;
	outline-offset: 1px;
}

[tabindex="-1"]:focus { outline: 0; }
:focus:not(:focus-visible) { outline: 0; }

a:is(:hover, :active) {
	outline: 0;
	text-decoration: underline;
}

a[href$=".doc"] {
	background: url("../../images/icons/word.png") 100% 50% no-repeat;
	padding-right: 20px;
}
a[href$=".pdf"] {
	background: url("../../images/icons/pdf.png") 100% 50% no-repeat;
	padding-right: 20px;
}
a[href$=".txt"] {
	background: url("../../images/icons/text.png") 100% 50% no-repeat;
	padding-right: 20px;
}
a[href$="/feed/"] {
	background: url("../../images/icons/feed.png") 0 50% no-repeat;
	padding-left: 16px;
}

abbr[title] { border-bottom: 1px dotted; }
@supports (text-decoration: underline dotted) {
	abbr[title] { border-bottom: 0; }
}

/*
http://www.brownbatterystudios.com/sixthings/2007/03/14/lucida-hybrid-the-grande-alternative/
use Lucida Sans Unicode for normal text and Lucida Sans for bold and italic text
*/
address,
b,
em,
h1,
h2,
h3,
h4,
h4,
h6,
header a,
i,
strong,
th { font-family: Lucida Sans, Lucida Sans Unicode, Lucida Grande, Futura, sans-serif; }

address,
dl,
dt,
form,
h2,
h3,
h4,
h5,
h6,
hr,
ol,
.oversized > li,
p,
pre,
table,
ul { margin-block: 1.5em .25em; }

b,
strong { font-weight: 700; }

blockquote {
	background: light-dark(#ddd, #333);
	border: 2px solid;
	border-width: 2px 2px 3px 4px;
	border-radius: 2px;
	margin: 1em 2em;
	padding: .5em;
}

del { color: light-dark(#600, #e60000); }

dfn {font-style:italic;}

figure { margin: 0; }

h1 {
	letter-spacing: -1px;
	line-height: 1.125;
	margin: 0;
}
.subtitle {
	font-size: 1.625em;
	letter-spacing: 0;
	line-height: 1;
}
h1 span { display: none; }

h1,
h2,
h3,
h4,
h4,
h6 { text-wrap: balance; }

h2 { line-height: 1.25em; }

ins { text-decoration: none; }
ins:before {content: "[";}
ins:after {content: "]";}

li,
p {text-wrap: pretty; }

p.center { text-align: center; }

pre, code, kbd, samp, var {
	font-family: Consolas, monospace, serif;
	font-size: 1em;
}
pre {white-space:pre; white-space:pre-wrap; word-wrap:break-word;}

small,
.small { font-size: .8125em; }

sub, sup {font-size:75%; line-height:0; position:relative; vertical-align:baseline;}
sub {bottom:-0.25em;}
sup {top:-0.5em;}

var {font-style:normal;}


menu {margin:1em 0;}
dd {margin:0 0 0 40px;}
menu, ol, ul {padding: 0 0 0 40px;}
nav ul,
nav ol {list-style:none; list-style-image:none;}

iframe {
	border: 0;
	max-inline-size: 100%;
}

img { border: 0; }

img[width][height],
img:not([height]) {
	height: auto;
	max-inline-size: 100%;
}

img.border { border: 1px solid; }
img.left {
	float: left;
	margin: .25em 1em 1em 0;
}
img.right {
	float: right;
	margin: .25em 0 1em 1em;
}

svg:not(:root) { overflow: hidden; }


/* structure */

header {
	align-items: center;
	background: var(--sectionBgColor);
	border-radius: .3333em .3333em 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	justify-content: center;
	margin-block: .25em;
	padding: .5em;
	position: relative;
	transition: .2s;
}

header > a:any-link {
	color: light-dark(#576558, #fff);
	font-size: clamp(2em, calc(1.8em + (1vw / 2)), 3em);
	font-variant: small-caps;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

header form { margin-block: 0; }

header nav {
	flex-basis: 100%;
	font-size: 1.25em;
	font-weight: 700;
}

header nav ul  { margin-block: 0; }

main {
	background: light-dark(#edeae5, #312d28);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin-block: .25em;
	transition: .2s;
}

@media (width > calc(64ch + 2em)) {
	main { flex-direction: row; }
}

main.wideContent { flex-direction: column; }

.mainColumn {
	container: mainColumn / inline-size;
	flex-basis: calc(100% / var(--goldenRatio));
	padding-block-end: 1em;
	padding-inline: 1em;
}

aside {
	background: light-dark(#e9e6e0, #48423a);
	flex-basis: calc(100% / var(--goldenRatio) / var(--goldenRatio));
	font-size: .875em;
	padding: 0 1em;
}

footer {
	background: var(--sectionBgColor);
	border-radius: 0 0 .3333em .3333em;
	margin-block: .25em;
	min-height: 60px;
	padding: .5em;
}

footer nav { font-size: 1.125em; }

nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: .25em;
	padding: 0;
	position: relative;
	text-align: center;
}

nav li {
	flex-grow: 1;
	list-style: none;
}

nav li > a:any-link {
	color: light-dark(#576558, #fff);
	text-decoration: none;
}

nav li > a,
nav li > span {
	background: light-dark(#fff, #576558);
	border: 1px solid light-dark(#ddd, #07120a);
	border-radius: 3px;
	display: block;
	padding-inline: .5em;
}

nav > ul > li > :is(a:hover, a:focus, .here) {
	background: light-dark(#ddd, rgba(0, 0, 0, .33));
	border-color: light-dark(#ccc, #111);
	color: light-dark(#333, #fff);
}

nav ul ul :is(a:hover, a:focus, .here) { background: light-dark(#ddd, rgba(0, 0, 0, .8)); }

nav ul ul {
	border: 3px solid var(--sectionBgColor);
	border-radius: 3px;
	display: none;
	font-size: .8125em;
	position: absolute;
	text-align: initial;
	width: fit-content;
	z-index: 2;
}
nav li:hover ul,
nav li a:focus + ul { display: block; }

nav ul ul a { padding-block: .25em; }


/* forms (normalization) */

button,
input,
optgroup,
select,
textarea {
	color: inherit;
	font-family: inherit;
	font-size: 100%;
	margin: 0;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
	overflow: visible;
}

::-moz-focus-inner {
	border: 0;
	padding: 0;
}

[type="checkbox"],
[type="radio"] {
	min-height: 1.5em;
	vertical-align: top;
}

[type="file"] {
	border: 0;
	padding: 0;
}

::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button { height: auto; }

[type="search"],
[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }

fieldset { padding: .35em .75em .625em; }

legend {
	color: inherit;
	padding: 0;
}

textarea {
	min-height: 5.8em;
	min-width: 18em;
	overflow: auto;
	resize: vertical;
}

::placeholder {
	color: #595959;
	font-style: italic;
	opacity: 1;
}


/* forms (template-specific) */
button,
input,
select,
textarea {
	border-width: 1px;
	border-style: solid;
	line-height: 1.285714em;
	max-inline-size: 100%;
	padding: 1px 2px;
}
select { padding: 1px 0; }

button:hover,
button:focus,
input:hover,
input:focus,
select:hover,
select:focus,
textarea:hover,
textarea:focus { border-color: light-dark(#666, #999); }

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border-radius: 3px;
	font-weight: 700;
	padding: 1px .5em;
}

button:active,
input[type="button"]:active,
input[type="image"]:active,
input[type="reset"]:active,
input[type="submit"]:active { transform: translate(1px, 1px); }

input[type="image"] {
	border: 0;
	padding: 0;
	vertical-align: top;
}

button.secondary,
input.secondary { font-weight: 400; }

/* precedes :disabled for cascade */
input:read-only:where(:not([type="button"], [type="reset"], [type="submit"])),
textarea:read-only,
[contenteditable]:read-only {
	background: 0;
	border-color: transparent;
	text-overflow: ellipsis;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
	background: rgba(239, 239, 239, .3);
	border-color: rgba(118, 118, 118, .3);
	color: #545454;
}

optgroup:not(:last-child) { padding-bottom: 4px; }
optgroup::before { color: #595959; }

option { padding-inline: 2px; }


/* forms (layout class) */
.layout span.required {
	color: #a00;
	font-size: 1.5em;
	font-weight: 700;
	line-height: 0;
	position: relative;
	top: 2px;
}

.layout > div,
.layout fieldset {
	border: 1px solid transparent;
	border-radius: 3px;
}

.layout > div,
.layout .optionGroup { padding: 8px 4px; }

.layout fieldset > div,
.layout fieldset .optionGroup {
	padding-left: 3px;
	padding-right: 3px;
}

.layout.striped > div:nth-child(odd) { background: #fff; }
.layout.striped > div:nth-child(even),
.layout:not(.striped) > div.altBg { background: #f6f6f6; }

.layout fieldset {
	margin: .5em 0;
	padding: 0;
}

.layout > div.border,
.layout fieldset.border { border-color: #c0c0c0; }

.layout legend {
	font-size: 1.071em;
	font-weight: 700;
	margin: 0 10px;
	padding: 0 10px;
}

.layout legend ~ fieldset legend {
	font-size: 1em;
	font-weight: 400;
}

.layout label,
.layout .optionGroup span.label { display: block; }

.layout label.secondary.secondary { /* specificity */
	font-size: .92857em;
	margin: 0;
	padding-top: 2px;
	width: auto;
}

.layout .caption {
	font-size: .92857em;
	font-style: italic;
	margin-top: .214286em;
}
.layout span.caption { display: block; }

.layout label + input,
.layout label + select,
.layout label + textarea { max-inline-size: calc(98vw - 16px); }

.layout .optionGroup label {
	display: inline-block;
	width: calc(100% - 1.5em);
}

/* form messages */
#errors {background:#fee url("../../images/icons/silk/error.png") .6em 50% no-repeat; border:1px solid #dde; border-radius:3px; font-weight:700; margin-left:1em; padding:.5em .5em .5em 2em; position:relative; width:260px;}
#errors a {display:none;}
#errors a, #submission a {right:0; position:absolute; top:0;}
#errors p {color:#900;}
#errors li {font-size:.9em; font-weight:400; list-style-type:disc; margin-left:2em;}

#submission {
	background: #fff url("../../images/icons/silk/email.png") .6em 50% no-repeat;
	padding: .25em 2em;
	position: relative;
	max-inline-size: 260px;
}

#websiteDisplay {display:none;}

/* text selection */
::selection {
	background: #b3d4fc;
	color: #333;
	text-shadow: none;
}



/* */

footer .quote { font-size: .875em; }

hr { border-width: 1px 0 0; }
hr.clear {
	border: 0;
	clear: both;
	height: 0;
	visibility: hidden;
}

hgroup { margin-block: 2em; }

table {
	border-collapse: collapse;
	border-spacing: 0;
}
caption { text-align: left; }
.striped > tbody > tr:nth-child(even) > td { background-color: light-dark(rgba(230, 230, 230, .8), rgba(230, 230, 230, .1)); }
thead > tr > th {
	background: #666;
	color: #eee;
	text-align: left;
}
td, th {
	padding: 0 3px;
	vertical-align: top;
}

/* multi-column */
.twoColumn,
.threeColumn {
	align-items: flex-start;
	display: flex;
	flex-flow: column wrap;
	justify-content: space-between;
}
:is(.twoColumn, .threeColumn) > * {
	flex-basis: 30%;
	flex-grow: 1;
}


/* helper classes */
.button:is(:any-link, :hover, :focus) {
	border: 1px solid;
	border-width: 1px 2px 2px 1px;
	border-radius: 4px;
	color: currentColor;
	display: inline-block;
	padding: 2px 4px;
	text-decoration: none;
}
.button:is(:hover, :focus) { background: light-dark(#fff, #111); }

.clear {clear:both;}

.join,
.oversized.join > li:first-child { margin-top: .25em; }

.noWrap { white-space: nowrap; }

.visuallyHidden { /* remains available for screen readers */
	border: 0;
	clip-path: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	transition: .2s linear;
	white-space: nowrap;
	width: 1px;
}


@media print {
	nav { display: none; }
}


@container mainColumn (width > 48ch ) {
	.layout > div,
	.layout .optionGroup {
		padding-bottom: 4px;
		padding-top: 4px;
	}

	.layout .optionGroup,
	.layout > div.noLabel { padding-left: 163px; }

	.layout fieldset .optionGroup,
	.layout fieldset > div.noLabel { padding-left: 162px; }

	.layout .optionGroup legend { margin-left: -147px; }

	.layout label { padding-top: 1px; }

	.layout label,
	.layout .optionGroup span.label {
		display: inline-block;
		margin-right: 3px;
		text-align: right;
		vertical-align: top;
		width: 150px;
	}

	.layout .optionGroup span.label { margin-left: -157px; }

	.layout .optionGroup label {
		margin: 0;
		padding: 0;
		text-align: left;
	}

	.layout label + input,
	.layout label + select,
	.layout label + textarea { max-inline-size: 345px; }

	.layout .caption { margin-left: 157px; }


	.two-column {
		column-count: 2;
		column-gap: 2em;
	}

	.twoColumn {
		flex-direction: row;
		gap: 2em;
	}
}

@container mainColumn (width > 56ch ) {
	.threeColumn {
		flex-direction: row;
		gap: 2em;
	}
}

@media (width > 480px) {
	header,
	footer {
		margin-block: .5em;
		padding: 1em;
	}

	main { margin-block: .5em; }
}

@media (width < 885px) {
	article img:is(.left, .right):not(.keepFloated) {
		display: block;
		float: none;
		margin: 1em 0;
	}

	article,
	aside { hyphens: auto; }
}

/* Colorbox core style: consistent between example themes and should not be altered. */

#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden; -webkit-transform: translate3d(0,0,0);}
#cboxWrapper {max-inline-size:none;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
#cboxTitle{margin:0;}
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-inline-size:none; -ms-interpolation-mode:bicubic;}
.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
#colorbox, #cboxContent, #cboxLoadedContent { box-sizing:content-box; }

/*
User Style: Change the following styles to modify the appearance of Colorbox. They are ordered and tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay{background:#000;}
#cboxTopLeft{width:14px; height:14px; background:url("../images/colorbox/controls.png") no-repeat 0 0;}
#cboxTopCenter{height:14px; background:url("../images/colorbox/border.png") repeat-x top left;}
#cboxTopRight{width:14px; height:14px; background:url("../images/colorbox/controls.png") no-repeat -36px 0;}
#cboxBottomLeft{width:14px; height:43px; background:url("../images/colorbox/controls.png") no-repeat 0 -32px;}
#cboxBottomCenter{height:43px; background:url("../images/colorbox/border.png") repeat-x bottom left;}
#cboxBottomRight{width:14px; height:43px; background:url("../images/colorbox/controls.png") no-repeat -36px -32px;}
#cboxMiddleLeft{width:14px; background:url("../images/colorbox/controls.png") repeat-y -175px 0;}
#cboxMiddleRight{width:14px; background:url("../images/colorbox/controls.png") repeat-y -211px 0;}
#cboxContent{background:#fff; overflow:visible;}
.cboxIframe{background:#fff;}
#cboxError{padding:50px; border:1px solid #ccc;}
#cboxLoadedContent{margin-bottom:5px;}
#cboxLoadingOverlay{background:url("../images/colorbox/loading_background.png") no-repeat center center;}
#cboxLoadingGraphic{background:url("../images/colorbox/loading.gif") no-repeat center center;}
#cboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; font-weight:bold; color:#7C7C7C;}
#cboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;}

/* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; position:absolute; bottom:-29px; background:url("../images/colorbox/controls.png") no-repeat 0px 0px; width:23px; height:23px; text-indent:-9999px;}

/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}

#cboxPrevious{left:0px; background-position: -51px -25px;}
#cboxPrevious:hover{background-position:-51px 0px;}
#cboxNext{left:27px; background-position:-75px -25px;}
#cboxNext:hover{background-position:-75px 0px;}
#cboxClose{right:0; background-position:-100px -25px;}
#cboxClose:hover{background-position:-100px 0px;}

.cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px; right:27px;}
.cboxSlideshow_on #cboxSlideshow:hover{background-position:-150px 0px;}
.cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px; right:27px;}
.cboxSlideshow_off #cboxSlideshow:hover{background-position:-125px 0px;}
