body {
  text-align: justify;
  background-color: #FFFFFF;
  font: 100% Verdana, sans-serif;
}


td {
	font-family: "Times New Roman", Times, serif;
}

th {
	font-family: "Times New Roman", Times, serif;
}


/* CSS Document */
/* Deployment 100403.1 Version c040.01 */
/* local css styles relate to all elements in the main editable content region */

/* -------------------------------------------------------------------------------- */
/* HTML Tag Styles                                                                  */
/* -------------------------------------------------------------------------------- */

p {
	font-family: Verdana, sans-serif;
	line-height: 1.15em;
	padding-bottom: 15px;
	vertical-align: top;
	text-align: justify;
}

div.letter p {
  font-family: "Apple Chancery", Noteworthy, "Snell Roundhand", Allura, "Berkshire Swash", BlackJack, "Dancing Script", "Indie Flower", Pacifico, Satisfy, "Gloria Hallelujah", "Gochi Hand", Handlee, Schoolbell;
  line-height: 1.15em;
  font-size: 1.2em;
  padding-bottom: 15px;
  vertical-align: top;
  text-align: justify;
}

h1 {
	color: #006699;
	font-family: "snap itc", "forte", "ravie", "cooper black", "bremen bd bt", "Berlin sans fb", "magneto", "Beesknees ITC", Verdana, Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-style: italic;
	text-transform: uppercase;
	margin-top: 15px;
	vertical-align: top;
	font-size: 1.7em;
}

div.letter h1{
  color: #006699;
	font-family: "Apple Chancery", Noteworthy, "Snell Roundhand", Allura, "Berkshire Swash", BlackJack, "Dancing Script", "Indie Flower", Pacifico, Satisfy, "Gloria Hallelujah", "Gochi Hand", Handlee, Schoolbell;
  font-weight: bold;
	font-style: italic;
	text-transform: uppercase;
	margin-top: 15px;
	vertical-align: top;
	font-size: 1.7em;
}

h2 {
	color: #006699;
	font-family: "snap itc", "forte", "ravie", "cooper black", "bremen bd bt", "Berlin sans fb", "magneto", "Beesknees ITC", Verdana, Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-style: italic;
	font-size: 1.5em;
	text-decoration: none;
}

h3 {
	font-family: "cooper black", "bremen bd bt", "Berlin sans fb", "magneto", "Beesknees ITC", Verdana, Arial, Helvetica, sans-serif;
	font-weight: bold;
	text-decoration: none;
	padding-top: 10px;
	font-size: 1.3em;
}

hr {
	text-align: center;
	height: 1px;
}


table.mainbody {
	width: 100%;
	max-width: 1000px;
	table-layout: fixed;
}

table.mainbody td:nth-child(1) {
	width: 78%;
}

table.mainbody td:nth-child(2) {
	width: 2%;
}

table.mainbody td:nth-child(3) {
	width: 20%;
}

.mainbody a {
	display: inline;
	padding: 0;
	text-decoration: none;
	background: #FFFFFF;
	color:#006699;
}

.mainbody a:hover {
	text-decoration:underline;
}

.warning {
	color: #CC0066;
}

p#offline{
	font-family: Verdana, sans-serif;
	line-height: 1.15em;
	padding-bottom: 15px;
	vertical-align: top;
	text-align: center;
	font-size: large;
	font-weight: bold;
}

ul#quotes {padding: 0;
	margin: 0;
	font-family: "Vivaldi", Verdana, sans-serif;
	list-style-position: outside;
	list-style-type: disc;
	font-weight: bold;
	text-indent: 3px;
	padding: 4px;
	margin-left: 1em;
}

ul#quotes li#type_1 {
	font-size: 1.5em;
	color: #000000;
	position: relative;
	padding: 0;
}

ul#quotes li#type_2 {
	font-size: 1.5em;
	color: #3366ff;
	position: relative;
	padding: 0;
}

.source{
	display: inline;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: .6em;
}

ol#wisdoms {padding: 0;
	margin: 0;
	font-family: Verdana, sans-serif;
  	font-size: 1em;
}

ol#wisdoms li {
	list-style-type: decimal;
  	position: relative;
	margin: 0; padding: 0;
}

ul#list {
	padding: 0;
	margin-left: 1em;
	font-family: Verdana, sans-serif;
	list-style-position: outside;
	list-style-type: disc;
	text-indent: 3px;
	padding: 4px;
}

ul#list p {
	text-indent: 0em;
	margin-left: 2em;
	margin-top: 2px;
    border-top-width: 0;
    padding-top: 0;
    margin-bottom: 5px;
    border-bottom-width: 0;
    padding-bottom: 0;
}

ul#list li a {
	display: inline;
	padding: 0;
	text-decoration: none;
	background: #FFFFFF;
	color:#006699;
}

ul#pgcntnt {
	padding: 0;
	margin-left: 1em;
	font-family: Verdana, sans-serif;
	list-style-position: outside;
	list-style-type: disc;
	text-indent: 3px;
	padding: 4px;
}

ul#pgcntnt p {
	text-indent: -2em;
	margin-left: 2em;
	margin-top: 2px;
    border-top-width: 0;
    padding-top: 0;
    margin-bottom: 5px;
    border-bottom-width: 0;
    padding-bottom: 0;
}

div#tablecont p {
	text-indent: -2em;
	margin-left: 2em;
	margin-top: 5px;
    border-top-width: 0;
    padding-top: 0;
    margin-bottom: 5px;
    border-bottom-width: 0;
    padding-bottom: 0;
}

/* Once id="tablecont2" is changed to class="tablecont2" across the site (see notes),
   this gives those CV/timeline-style entries the same tidy spacing as tablecont. */
.tablecont2 p {
	margin-top: 0;
	margin-bottom: 5px;
	padding-top: 0;
	padding-bottom: 0;
}

/* Any plain content table (not the header layout table.mainbody) should scale
   with its container instead of staying locked to its old fixed pixel width. */
table:not(.mainbody) {
	width: 100%;
	max-width: 100%;
}

/* CV/timeline-style tables (date + description columns, identified by the
   tablecont2 divs inside them) — use fixed, deterministic proportions rather
   than the browser's automatic column sizing, which isn't reliably predictable.
   Keeps roughly the original 128/372 date-to-description ratio. */
table:not(.mainbody):has(.tablecont2) {
	table-layout: fixed;
}

table:not(.mainbody):has(.tablecont2) td:first-child {
	width: 25%;
}

table:not(.mainbody):has(.tablecont2) td:last-child {
	width: 75%;
}

.gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
}

div.imfloatl {
	flex: 2 1 240px;
	max-width: 340px;
	height: 290px;
	border-left: 5px;
	border-right: 5px;
	box-sizing: border-box;
	float: none;
	margin: 0 0 20px 0;
}

div.imfloatl img{
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.imfloatl p, .imfloats p {
   	text-align: center;
	width: 100%;
}

.imfloatl a, .imfloats a {
	background: #ffffff;
	color: #ffffff;
}

div.imfloats {
	flex: 1 1 180px;
	max-width: 200px;
	height: 400px;
	border-left: 5px;
	border-right: 5px;
	box-sizing: border-box;
	float: none;
	margin: 0 0 20px 0;
}

div.imfloats img{
	width: 100%;
	height: 260px;
	object-fit: cover;
}

div.spacer {
	clear: both;
}

div.pictpar {
	width: 100%;
}

/* -------------------------------------------------------------------------------- */
/* Content Column Styles                                                            */
/* -------------------------------------------------------------------------------- */


#content {
	width: 600px;
	padding-left: 30px;
	padding-right: 20px;
	float: left;
}

#contentA {
	float:left;
	width: 590px;

}

#onecolumn {

}


#twocolumnleft1, #twocolumnright1 {
	width: 48%;
	float: left;
	margin-left: 1%;
	padding: 5px;
	box-sizing: border-box;
}

#twocolumnleft1 {
	margin-right: 1%;

}

/* When used alone (no matching #twocolumnright1 sibling — e.g. text next to a
   single floated photo rather than a true two-column split), fill all the
   remaining width instead of staying locked at 48%. overflow:hidden makes it
   wrap neatly around any floated element (like the photo) without needing to
   calculate an exact percentage. */
#twocolumnleft1:not(:has(~ #twocolumnright1)) {
	width: calc(100% - 160px);
	float: left;
	margin-left: 0;
	margin-right: 0;
}

#twocolumnleft2, #twocolumnright2 {
	width: 48%;
	float: left;
	margin-left: 1%;
	padding: 5px;
	box-sizing: border-box;



}
#twocolumnleft2 {
	margin-right: 1%;

}

#threecolumnleft, #threecolumnright, #threecolumnmiddle {
	width: 31%;
	float: left;
	margin-left: 1%;
	padding: 5px;
	box-sizing: border-box;
}

#threecolumnleft{
	margin-right: 1%;

}
#threecolumnmiddle{
	margin-right: 1%;

}

.twocolumnleft1, .twocolumnright1 {
	width: 48%;
	float: left;
	margin-left: 1%;
	padding: 5px;
	box-sizing: border-box;


}
.twocolumnleft1 {
	margin-right: 1%;

}

.twocolumnleft2, .twocolumnright2 {
	width: 48%;
	float: left;
	margin-left: 1%;
	padding: 5px;
	box-sizing: border-box;


}
.twocolumnleft2 {
	margin-right: 1%;

}

.threecolumnleft, .threecolumnright, .threecolumnmiddle {
	width: 31%;
	float: left;
	margin-left: 1%;
	box-sizing: border-box;
}

.threecolumnleft{
	margin-right: 1%;

}
.threecolumnmiddle{
	margin-right: 1%;

}

.colourbox {
	background-color: #ffe8df;



}
.colourbox2 {
	color: #FFFFFF;
	background-color: #cc3300;
}

#hottopics {
	float:right;
	text-align:left;
	vertical-align: top;
	border: 1px dotted #CCCCCC;
	width: 135px;
	padding: 5px;
	margin-left: 10px;
}

#leftnav {
	width:140px;
	text-align:left;
	margin-top: 35px;
	vertical-align: top;
	padding-left: 10px;
	float: left;
	height: 100%;
}

#leftmargin {
	float:left;
	width:90px;
	text-align:right;
	margin-top: 35px;
	vertical-align: top;
}


/* -------------------------------------------------------------------------------- */
/* Misc Styles                                                            */
/* -------------------------------------------------------------------------------- */
.pad5 {
	padding-right: 5px;
	padding-left: 5px;

}
.imageRight, .imageright {
	float: right;
	margin-right: 5px;
	margin-bottom: 10px;
	margin-left: 10px;
}
.imageLeft {
	float: left;
	margin-right: 10px;
	margin-bottom: 10px;
	margin-left: 5px;
}

h4 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 100%;
	font-weight: bold;
}

.up {
	width: 100%;
	float: left;
	background-color: #006699;
	margin: auto;
}

.up a {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 0.85em;
	background: #006699;
	color: #FFFFFF;
	text-align: center;
	text-decoration: none;
}

.up:hover {
	width: 100%;
	max-width: 1000px;
	background-color: #FFFFFF;
	margin: auto;
}

.up a:hover {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 0.85em;
	background: #FFFFFF;
	color: #000000;
	text-align: center;
	text-decoration: none;
}

#footer {
	width: 100%;
	max-width: 1000px;
	background-color: #000000;
	margin: auto;
}

.copyright {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 0.85em;
	color: #FFFFFF;
	padding-top: 3px;
	text-align: center;
}


/*When printing the pages then take specific layout measurements*/
@media print{
}


/*-----------------------------------------------------------------------------------------------------*/

/* Single horizontal navigation menu (replaces the old vertical sidebar dropdown).
   The old JS/image top menu (#menubar) is hidden below, so this is now the only nav on the page. */

ul#l_menu_nav {
	padding: 0;
	margin: 0;
	font: 1em sans-serif;
	width: 100%;
	position: static;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

ul#l_menu_nav li {
	list-style-type: none;
	position: relative;
	margin: 0;
	padding: 0;
	border: none;
}

ul#l_menu_nav > li {
	flex: 1 1 0;
	text-align: center;
}

/*Hide the second level list by default (revealed on hover, or via .open on touch, see below)*/
ul#l_menu_nav ul {
	display: none;
	width: 100%;
	position: absolute;
	top: 0;
	left: 100%;
	z-index: 10;
}

/*Level 1 submenus drop straight down under their item*/
#l_menu_nav > li > ul {
	top: 100%;
	left: 0;
}

/*Level 2 and deeper fly out to the right of their parent item*/
#l_menu_nav ul ul {
	top: 0;
	left: 100%;
}

/*Show the second level list when hovered over the parent item (desktop), or when JS has marked it .open (touch)*/
ul#l_menu_nav li:hover > ul,
ul#l_menu_nav li.open > ul {
	display: block;
}

#l_menu_nav li a {
	display: block;
	padding: 10px 12px;
	text-decoration: none;
	background: #FFFFFF;
	border: 1px solid #006699;
	color: #006699;
	box-sizing: border-box;
}

#l_menu_nav > li > a {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

#l_menu_nav li.sub > a {
	color: #006699;
}

/* Directional arrows — only add these once the literal ">>" text is removed
   from the HTML links (see instructions). Level 1 opens downward, level 2+
   opens to the right, so the arrows point accordingly. */
#l_menu_nav > li.sub > a::after {
	content: " \25BE"; /* ▾ down arrow */
	margin-left: 6px;
}

#l_menu_nav ul li.sub > a::after {
	content: " \25B8"; /* ▸ right arrow */
	margin-left: 6px;
}

#l_menu_nav ul {
	margin: 0;
	padding: 0;
	cursor: default;
	list-style-type: none;
	border: none;
	background: #FFFFFF;
}

#l_menu_nav ul li {
	border: 1px solid #006699;
	border-top: none;
}

#l_menu_nav ul li:first-child {
	border-top: 1px solid #006699;
}

#l_menu_nav li > a {
	background-color: #FFFFFF;
	padding: 8px 10px;
	text-decoration: none;
	color: #006699;
}

#l_menu_nav li.sub:hover,
#l_menu_nav li.sub.open {
	position: relative;
	z-index: 50;
}

#l_menu_nav li:hover > a {
	background-color: #006699;
	color: #FFFFFF;
}

#l_menu_nav li.sub:hover > a {
	background-color: #006699;
	color: #FFFFFF;
}

/*-----------------------------------------------------------------------------------------------------*/


ul#right {
	padding: 0;
	margin: 0;
	font: 1em sans-serif;
	list-style-type: none;
	width: 125px;
}

ul#right li {
	padding: 0;
	margin: 0;
	font: 1em sans-serif;
	width: 125px;
}

h1#right {
	color: #006699;
	font-family: "cooper black", "bremen bd bt", "Berlin sans fb", "magneto", "Beesknees ITC", Verdana, Arial, Helvetica, sans-serif;
	font-weight: normal;
	font-style: normal;
	font-size: 1.2em;
}

h2#right {
	color: #000000;
	font-family: "cooper black", "bremen bd bt", "Berlin sans fb", "magneto", "Beesknees ITC", Verdana, Arial, Helvetica, sans-serif;
	font-weight: normal;
	font-style: normal;
	font-size: 1.1em;
}

#right a:hover {
	background: #FFFFFF;
	color:#006699;
	text-decoration: none;
}

/*-----------------------------------------------------------------------------------------------------*/

/*Layout of the entire page by centering and setting */

div#outer {
    width: 100%;
    max-width: 1000px;
    background-color:#FFFFFF;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    padding: 0px;
}

div#header {
    clear: both;
	width: inherit;
}

div#header img {
	width: 100%;
	max-width: 1000px;
	height: auto;
	display: block;
}

div#menubar {
    display: none;
}

div#left {
	float: none;
	width: 100%;
	padding: 0;
}
div#right {
	width: 145px;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 20px;
	padding-left: 0px;
	float: right;
}

div#middle {
	padding-left: 3px;
	margin-top: 0px;
	margin-right: 150px;
	margin-bottom: 0px;
	margin-left: 150px;
	padding-right: 3px;
}

div#wideright {
    padding: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
	float: none;
	box-sizing: border-box;
}

div#footerblock {
    clear: both;
    width: 100%;
    max-width: 1000px;
	background-color: #FFFFFF;
	margin: 0 auto;
}

/*Spare code, not used currently*/
div#table {
    width: 500px;
    margin-top: 10px;
	margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
	padding: 1px 0px 3px 0px;
}

div#tableleft {
	position:relative;
	float:left;
	width:100px;
	background:#fff;
	padding-bottom:20px;
}

div#tableright {
	float:right;
	width:400px;
}

/*-----------------------------------------------------------------------------------------------------*/
/* Small-screen behaviour */

@media screen and (max-width: 820px) {
  *, *:before, *:after {
    box-sizing: border-box;
  }

  table.mainbody,
  table.mainbody tbody,
  table.mainbody tr,
  table.mainbody td,
  table:not(.mainbody),
  table:not(.mainbody) tbody,
  table:not(.mainbody) tr,
  table:not(.mainbody) td {
    display: block;
    width: 100% !important;
  }

  div#wideright {
    padding: 15px;
  }

  /* Stack the menu vertically instead of a horizontal bar */
  ul#l_menu_nav {
    flex-direction: column;
  }

  ul#l_menu_nav > li {
    text-align: left;
    border-right: none;
    border-bottom: 1px solid #ffffff;
  }

  /* On small screens, submenus should drop below (accordion-style) rather than
     fly out sideways off-screen. They still only reveal via the .open class,
     toggled by tap (see top_menu.js) — not shown all the time. */
  ul#l_menu_nav ul {
    position: static;
    width: 100%;
    left: auto;
    top: auto;
  }

  #l_menu_nav ul li {
    padding-left: 15px;
  }
}
