/*
Theme Name: Elastic 2014
Theme URI: https://elastic.org.uk
Author: Elastic Residence
Description: The Elastic Residence design as it stood in 2014, rebuilt from the original Adobe Muse stylesheets recovered from the Wayback Machine. Colours, dimensions and typography are taken directly from master_a-master.css and index.css. The navigation is driven by WordPress rather than by Muse's hardcoded element IDs, so the menu can be edited normally.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: elastic-2014
*/

/* ------------------------------------------------------------------
   Reset, carried over from site_global.css
   ------------------------------------------------------------------ */

body, div, dl, dt, dd, ul, ol, li,
h1, h2, h3, h4, h5, h6, pre, code,
form, fieldset, legend, input, button, textarea,
p, blockquote, th, td, a {
	margin: 0;
	padding: 0;
	border-width: 0;
}

table { border-collapse: collapse; border-spacing: 0; }
fieldset, img { border: 0; }
li { list-style: none; }
caption, th { text-align: left; }
h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: inherit; }

/* ------------------------------------------------------------------
   Page shell
   html background #7F7F7F, page 1247px white with a black rule
   ------------------------------------------------------------------ */

html {
	background-color: #7F7F7F;
	min-height: 100%;
}

body {
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.2;
	text-align: left;
	word-wrap: break-word;
	padding-top: 35px;
	padding-bottom: 36px;
	background-color: #7F7F7F;
}

#page {
	width: 1247px;
	min-height: 1000px;
	margin-left: auto;
	margin-right: auto;
	background-color: #FFFFFF;
	border: 1px solid #000000;
	position: relative;
}

/* ------------------------------------------------------------------
   Links, from site_global.css
   ------------------------------------------------------------------ */

a { color: inherit; text-decoration: inherit; }
a:link    { color: #0000FF; text-decoration: underline; }
a:visited { color: #800080; text-decoration: underline; }
a:hover   { color: #0000FF; text-decoration: underline; }
a:active  { color: #EE0000; text-decoration: underline; }

a.nontext {
	color: black;
	text-decoration: none;
	font-style: normal;
	font-weight: normal;
}

/* ------------------------------------------------------------------
   Banner band
   #u458: 970px wide, grey #999999, black rule, inset 21px
   ------------------------------------------------------------------ */

#banner {
	width: 970px;
	margin: 20px 0 0 21px;
	padding-bottom: 32px;
	background-color: #999999;
	border: 1px solid #000000;
	position: relative;
	min-height: 100px;
}

#banner img {
	display: block;
	margin: 41px 0 0 8px;
	width: 594px;
	height: 59px;
}

#banner .site-title {
	margin: 41px 0 0 8px;
	font-family: Palatino, "Palatino Linotype", Georgia, Times, "Times New Roman", serif;
	font-size: 34px;
	color: #000000;
}

/* ------------------------------------------------------------------
   Navigation column
   #u461: 167px wide at x-763, green #669966, black rule
   Items 140px wide, Palatino 18px, centred, hover #999999
   ------------------------------------------------------------------ */

#nav-column {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 784px;
	width: 167px;
	background-color: #669966;
	border: 1px solid #000000;
	padding-bottom: 40px;
	z-index: 5;
}

#nav-column ul {
	margin: 208px 0 0 9px;
	width: 140px;
}

#nav-column li {
	width: 140px;
	margin-top: 2px;
}

#nav-column li:first-child { margin-top: 0; }

#nav-column a {
	display: block;
	width: 140px;
	min-height: 22px;
	padding: 4px 0;
	background-color: #669966;
	font-family: Palatino, "Palatino Linotype", Georgia, Times, "Times New Roman", serif;
	font-size: 18px;
	color: #000000;
	text-align: center;
	text-decoration: none;
}

#nav-column a:hover {
	background-color: #999999;
	color: #000000;
	text-decoration: none;
}

#nav-column a:active {
	background-color: #6B6B6B;
	color: #000000;
}

#nav-column .current-menu-item > a,
#nav-column .current_page_item > a {
	background-color: #999999;
}

/* Sub-menus, shown on hover the way the Muse menu behaved */

#nav-column .sub-menu {
	display: none;
	margin: 0;
	width: 140px;
}

#nav-column li:hover > .sub-menu { display: block; }

#nav-column .sub-menu a {
	font-size: 15px;
	background-color: #5b8a5b;
}

/* ------------------------------------------------------------------
   Content
   Muse ran the body copy at 716px starting 34px in
   ------------------------------------------------------------------ */

#content {
	width: 716px;
	margin: 30px 0 60px 34px;
	padding-bottom: 40px;
	position: relative;
	z-index: 1;
}

#content .entry-title {
	font-family: Palatino, "Palatino Linotype", Georgia, Times, "Times New Roman", serif;
	font-size: 24px;
	color: #000000;
	margin-bottom: 18px;
}

#content p {
	margin-bottom: 12px;
	line-height: 1.4;
}

#content img {
	max-width: 716px;
	height: auto;
}

#content table { max-width: 716px; }

#content td {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	line-height: 12px;
	text-align: left;
}

/* Legacy classes that appear inside the recovered page content */

#content .headings {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 18px;
	font-weight: bold;
	color: #ffe263;
	text-align: left;
}

#content .italic { font-style: italic; }

#content .maintxt {
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.4;
}

/* Muse left these on nearly every paragraph in the recovered markup */

#content .ehz0jeo567yq8o8zs {
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	margin-bottom: 12px;
}

/* ------------------------------------------------------------------
   Muse layout helpers still present in the stored page markup
   ------------------------------------------------------------------ */

.clearfix:after {
	content: "\0020";
	visibility: hidden;
	display: block;
	height: 0;
	clear: both;
}

.colelem { display: inline; float: left; clear: both; }
.grpelem { display: inline; float: left; }
img.block { display: block; }

/* Muse pushed things off screen with a huge negative margin. Inside a
   normal WordPress column that just breaks the layout, so it is undone. */

#content .grpelem,
#content .colelem {
	float: none;
	display: block;
	margin-right: 0;
	left: auto;
	width: auto;
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

#site-footer {
	clear: both;
	position: relative;
	z-index: 1;
	width: 716px;
	margin: 0 0 30px 34px;
	padding-top: 18px;
	border-top: 1px solid #999999;
	font-size: 12px;
	color: #666666;
}

#site-footer a { color: #444444; text-decoration: underline; }

/* ------------------------------------------------------------------
   Narrow screens. The 2014 site had no mobile layout at all, so this
   is the one deliberate departure: below 1300px the fixed geometry is
   released so the site is at least readable on a phone.
   ------------------------------------------------------------------ */

@media screen and (max-width: 1300px) {
	body { padding: 10px; }

	#page { width: auto; max-width: 100%; }

	#banner {
		width: auto;
		margin: 10px;
		padding-bottom: 16px;
	}

	#banner img {
		width: auto;
		max-width: 100%;
		height: auto;
		margin: 20px 0 0 8px;
	}

	#nav-column {
		position: static;
		width: auto;
		min-height: 0;
		margin: 10px;
		padding-bottom: 10px;
	}

	#nav-column ul { margin: 10px auto; width: 140px; }

	#content,
	#site-footer {
		width: auto;
		margin: 20px 10px;
	}

	#content img { max-width: 100%; }
}

/* ------------------------------------------------------------------
   Slideshow
   Geometry taken from index.css: stage 582x429 at x-138, thumbnails
   60x45 in two columns of four, caption panel 398px below at y-446,
   controls to the right of it. Colours and Georgia italic captions
   are the originals.
   ------------------------------------------------------------------ */

.slideshow {
	position: relative;
	width: 716px;
	min-height: 540px;
	margin-bottom: 40px;
}

.ss-thumbs {
	position: absolute;
	top: 22px;
	left: 0;
	width: 140px;
}

.ss-thumb {
	width: 60px;
	height: 45px;
	padding: 0;
	margin: 0 10px 10px 0;
	float: left;
	overflow: hidden;
	background: transparent;
	border: 1px solid transparent;
	cursor: pointer;
	display: block;
}

.ss-thumb img {
	display: block;
	width: 60px;
	height: 45px;
	object-fit: cover;
}

.ss-thumb:hover { border-color: #000000; }

.ss-thumb.is-selected {
	border-color: transparent;
	opacity: 0.45;
}

.ss-stage {
	position: absolute;
	top: 0;
	left: 138px;
	width: 582px;
	height: 429px;
}

.ss-slide {
	display: none;
	max-width: 582px;
	max-height: 429px;
	width: auto;
	height: auto;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.ss-slide.is-active { display: block; }

.ss-below {
	position: absolute;
	top: 446px;
	left: 138px;
	width: 578px;
}

.ss-caption {
	float: left;
	width: 398px;
	min-height: 78px;
}

.ss-cap { display: none; }
.ss-cap.is-active { display: block; }

.ss-cap p {
	line-height: 1.4;
	color: #999999;
	font-family: Georgia, Palatino, "Palatino Linotype", Times, "Times New Roman", serif;
	margin: 0 0 2px 0;
}

.ss-cap .ss-title { font-style: italic; }
.ss-cap .ss-show  { font-style: normal; }

.ss-controls {
	float: right;
	width: 160px;
	text-align: center;
	line-height: 1.4;
	color: #999999;
	font-family: Georgia, Palatino, "Palatino Linotype", Times, "Times New Roman", serif;
}

.ss-controls button {
	width: 30px;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: #999999;
	font-family: inherit;
	font-size: 16px;
	padding: 0;
}

.ss-controls button:hover { color: #000000; }

.ss-count {
	display: inline-block;
	width: 70px;
	text-align: center;
}

@media screen and (max-width: 1300px) {
	.slideshow {
		width: auto;
		min-height: 0;
	}

	.ss-thumbs,
	.ss-stage,
	.ss-below {
		position: static;
		width: auto;
		left: auto;
		top: auto;
	}

	.ss-stage { height: auto; min-height: 200px; margin-bottom: 12px; }

	.ss-slide {
		position: static;
		transform: none;
		max-width: 100%;
		margin: 0 auto;
	}

	.ss-caption { float: none; width: auto; }
	.ss-controls { float: none; width: auto; margin: 10px 0; }
	.ss-thumbs:after { content: ""; display: block; clear: both; }
}

/* ------------------------------------------------------------------
   Posts page used as an archive listing
   ------------------------------------------------------------------ */

.posts-page-intro {
	margin-bottom: 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid #cccccc;
}

.archive-entry {
	margin-bottom: 34px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e4e4e4;
}

.archive-entry:last-of-type { border-bottom: 0; }

.archive-entry .entry-title {
	font-family: Palatino, "Palatino Linotype", Georgia, Times, "Times New Roman", serif;
	font-size: 20px;
	margin-bottom: 12px;
}

.archive-entry .entry-title a { text-decoration: none; color: #000000; }
.archive-entry .entry-title a:hover { text-decoration: underline; }

.navigation.pagination {
	margin-top: 20px;
	font-family: Georgia, Palatino, Times, serif;
	color: #999999;
}

.navigation.pagination .page-numbers {
	display: inline-block;
	padding: 2px 8px;
	text-decoration: none;
	color: #666666;
}

.navigation.pagination .page-numbers.current { color: #000000; font-weight: bold; }
