/*
 * CARE Case: the 2006 site (style/ear.css + table layout) rebuilt in plain CSS.
 * Sizes and positions were measured on the old pages and match them to the pixel at desktop width.
 * Below 660px wide the page keeps its proportions and scales down (see site.js).
 */

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

body {
	margin: 0;
	background: #ccc;
	color: #000;
	font: 16px/normal "Times New Roman", Times, serif;
}

/* ---------------------------------------------------------------- type (from ear.css) */

a:link,
a:visited,
a:active {
	font-family: Verdana, sans-serif;
	color: #339900;
	font-size: 9px;
	font-weight: normal;
	text-decoration: none;
	line-height: 1.3em;
}

/* The old stylesheet's hover rule never worked (broken first line), so links do not change on hover. */
a:focus-visible {
	outline: 1px dotted #336600;
	outline-offset: 1px;
}

p {
	font-family: Verdana, sans-serif;
	color: #333;
	font-size: 10px;
	font-weight: normal;
	line-height: 1.5em;
	text-align: justify;
	margin: 10px 0;
}

h3 {
	font-family: Verdana, sans-serif;
	color: #669933;
	font-size: 10px;
	font-weight: normal;
	line-height: 1.3em;
	margin: 10px 0;
}

.footer {
	font-family: Verdana, sans-serif;
	color: #fff;
	font-size: 9px;
	font-weight: normal;
	line-height: 1.3em;
}

img {
	border: 0;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------- page frame */

.page {
	width: 640px;
	margin: 0 auto;
	padding: 16px 0 62px;
}

.hd {
	box-sizing: border-box;
	height: 82px;
	padding: 1px;
	background: #336600;
}

.stage {
	display: block;
	overflow: hidden;
}

.bar {
	box-sizing: border-box;
	height: 15.7px;
	margin-top: 2px;
	padding: 1.65px 11px 0 0;
	text-align: right;
	white-space: nowrap;
}

.bar a {
	margin: 0 10px;
}

/* ---------------------------------------------------------------- content panel */

/*
 * The old table layout gave each page slightly different column widths; kept per page.
 *   --pl green box left edge from the page edge, --pw green box width,
 *   --c1 text column left edge inside the white sheet, --cw text column width, --ax arrow left edge in the sheet.
 * Company, Technical and Application use the defaults (163 / 476 / 21 / 412 / 447).
 */
.page-gallery,
.page-gallery2 {
	--pl: 177.4px;
	--pw: 461.6px;
	--c1: 22.2px;
	--cw: 393.6px;
	--ax: 429.9px;
}

.page-gallery3,
.page-contact {
	--pl: 168.8px;
	--pw: 470.2px;
	--c1: 21.5px;
	--cw: 404.6px;
	--ax: 440.1px;
}

.panel {
	box-sizing: border-box;
	width: var(--pw, 476px);
	margin: 14px 0 0 var(--pl, 163px);
	padding: 1px;
	background: #336600;
}

.sheet {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 2px;
	background: #fff;
}

.row {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 18.4px;
	padding: 5px 0 5px var(--c1, 21px);
}

.row > .cell {
	width: var(--cw, 412px);
}

.cell > :first-child {
	margin-top: 0;
}

.cell > p:last-child {
	margin-bottom: 0;
}

.title {
	display: block;
	margin: 0;
}

.title img {
	display: block;
}

.blank {
	height: 18.4px;
}

.foot-row {
	height: 18.6px;
}

.arrow {
	position: absolute;
	top: 6.9px;
	left: calc(var(--ax, 447px) - 2px);
	height: 15px;
	line-height: 0;
}

.arrow img {
	display: block;
}

.next {
	position: absolute;
	top: 4.5px;
	right: calc(100% - var(--c1, 21px) - var(--cw, 412px));
	font: 13px/normal Verdana, sans-serif;
}

/* Application list */
.bullets {
	width: 60%;
	margin: 0 auto;
	border-spacing: 2px;
}

.bullets td {
	padding: 3px;
}

.bullets td:first-child {
	width: 10px;
}

.bullets img {
	display: block;
}

.bullets p {
	margin: 0;
}

/* Gallery */
.gallery {
	display: grid;
	grid-template-columns: repeat(4, 90px);
	width: 360px;
	margin: 0 auto;
}

.gallery a,
.gallery span {
	display: block;
	width: 90px;
	height: 60px;
	line-height: 0;
}

.gallery img {
	display: block;
}

.gallery .main {
	grid-column: 1 / 5;
	width: 360px;
	height: 240px;
}

/* Contact form and address */
.form,
.address {
	width: 80%;
	margin: 0 auto;
	border: 1px dotted #336600;
	border-spacing: 2px;
	font-family: Verdana, sans-serif;
	font-size: 10px;
	line-height: 1.3em;
	color: #000;
}

.form {
	background: #ccc;
}

.address {
	background: #fff;
	text-align: center;
}

address {
	font-style: normal;
}

.form td,
.address td {
	padding: 2px;
}

.form .label {
	text-align: right;
}

.form textarea {
	vertical-align: bottom;
}

.contact-form {
	margin: 0 0 16px;
}

/* Old layout: 30 x 20 spacer pictures around the buttons. */
.form .buttons {
	height: 26.5px;
	vertical-align: top;
	text-align: right;
	font: 13px/13px Georgia, "Times New Roman", Times, serif;
}

.form .buttons input {
	vertical-align: top;
	margin: 5px 0 0;
}

.form .buttons input + input {
	margin-left: 33.1px;
}

.form .buttons input:last-child {
	margin-right: 33.1px;
}

.contact-form .hp {
	position: absolute;
	left: -9999px;
}

/*
 * Cloudflare Turnstile sits in its own row under the buttons. It only shows when Cloudflare wants the
 * visitor to click; otherwise the row is empty and the note row below is 2px shorter, so the grey box
 * keeps the old height.
 */
.form td.captcha {
	padding: 0;
	font-size: 0;
	line-height: 0;
	text-align: center;
}

.form td.captcha > div {
	display: inline-block;
	vertical-align: top;
}

.form td.captcha.shown {
	padding: 2px;
}

.form-note {
	height: 11px;
	line-height: 11px;
	text-align: center;
	color: #336600;
}

.form-note.err {
	color: #b00;
}

.dotted {
	display: block;
	margin: 0 auto;
}

.ft {
	box-sizing: border-box;
	height: 15.7px;
	margin-top: 2px;
	padding: 3.05px 11px 0 0;
	text-align: right;
}

/* ---------------------------------------------------------------- home page */

.home .page {
	padding: 17px 0 52px;
}

.home .stage {
	width: 640px;
	height: 480px;
}

.home-nav p {
	margin: 23px 0 0;
	padding-left: 200px;
	text-align: left;
	white-space: nowrap;
}

.home-ft {
	box-sizing: border-box;
	height: 18.5px;
	margin-top: 23px;
	padding: 5.55px 0 0 44px;
}

/* Flash buttons on the home page: grey photo, coloured photo under the mouse */
.fl-btn .fl-over,
.fl-btn .fl-down,
.fl-btn:hover .fl-up,
.fl-btn:focus-visible .fl-up,
.fl-btn:active .fl-over {
	display: none;
}

.fl-btn:hover .fl-over,
.fl-btn:focus-visible .fl-over,
.fl-btn:active .fl-down {
	display: inline;
}

.fl-btn:focus-visible {
	outline: none;
}

/* ---------------------------------------------------------------- small popup pages */

.popup {
	background: #999;
}

.popup .box {
	width: 310px;
	margin: 18.5px auto 0;
	background: #fff;
	border-spacing: 2px;
	text-align: center;
	font: 13px/normal Verdana, Arial, Helvetica, sans-serif;
}

.popup .box td {
	padding: 2px;
	vertical-align: top;
}

.popup .box img {
	vertical-align: bottom;
}

.popup .box td.empty {
	height: 0;
}

.popup .close {
	margin: 0 0 16px;
}

/* Reply window after Send (old process.php): white page, grey text, details in the default serif font. */
.popup.result {
	background: #fff;
	color: #999;
}

.popup.result .box {
	margin-top: 47.4px;
	color: #999;
}

.popup .box td.gap,
.popup .details {
	font: 16px/normal "Times New Roman", Times, serif;
}

.popup .details {
	width: 50%;
	margin: 0 auto;
	border-spacing: 2px;
	text-align: left;
	color: #999;
}

.popup .details td {
	padding: 1px;
	vertical-align: middle;
}

/* ---------------------------------------------------------------- narrow screens */

@media (max-width: 659px) {
	body {
		overflow-x: hidden;
	}
}
