/*
   Autscape supplementary Cascading Style Sheet for narrow screens
   By Martijn Dekker, loosely based on original by Peter Benie
   © 2008-2014 The Autscape Organisation
*/

body {
	padding: 0;
	margin: 0;
	min-width: 256px;
	-webkit-text-size-adjust: none; /* no big letters on rotating iPhone */
}

.printonly {
	display: none;
}

p#accesslinks {
	display: block;
	height: 25px;
	text-align: center;
	margin: 0;
	padding: 0;
	border-bottom: 1px dotted gray;
	white-space: nowrap;
}
p#accesslinks span.separator {
	display: none;
}
p#accesslinks a {
	display: none;
}
p#accesslinks a.formobile {
	display: inline-block;
	height: 100%;
	vertical-align: top; /* Safari adds 2px top margin without this!? */
	font-size: 70%;
	text-transform: uppercase;
	margin: 0 .3em;
	padding: 0 .8em;
	max-width: 8em;
	overflow: hidden;
	text-overflow: ellipsis;
	background: white;
	color: black;
	text-decoration: none;
	border-left: 1px solid gray;
	border-right: 1px solid gray;
}
p#accesslinks a.formobile:hover {
	background: #eee;
}
p#accesslinks a#access-home:before {
	content: '↵ ';
}
p#accesslinks a#access-content:before {
	content: '↓ ';
}
p#accesslinks a#access-nav:before {
	content: '⇊ ';
}

div#gradient {
	margin: 0;
	padding: 0;
}

div#heading {
	margin: 0;
	padding: 0 85px 10px .6em;
	min-height: 60px;
	background: url("/image/swirl-small.png") no-repeat;
	background-position: right top;
}
body.ireland div#heading {
	min-height: 94px;
	background-size: 94px;
	background-image: url("/image/logo-ireland.png");
}

h1 {
	padding-top: 10px;
	margin: 0;
	font-size: 150%;
}

/* logout button [mcdutchie 2014-04-02] */
div#logout {
	white-space: nowrap;
	position: absolute;
	top: 70px;
	right: 19px;
}
body.ireland div#logout {
	top: 100px;
}
div#logout a {
	color: black;
	text-decoration: none;
	font-weight: bold;
	font-size: 63%;
	padding: .25ex .7em .3ex;
	background: white;
	border: 2px solid rgb(246,134,21);
	border-radius: 15px;
}
body.ireland div#logout a {
	border-color: #4b8603;
}
div#logout a:hover {
	background: #eee;
}
div#logout a:active {
	color: white;
	background: black;
}

div#content {
	margin: 0 .7em .5ex;
	padding: 0;
}

ul.spaced li, ol.spaced li {
	margin: .5ex 0 .5ex -1.5em;
	padding: 0;
}

pre {
	font-size: 75%;
}

div#accesshelp {
	float: right;
	margin: 0 0 0 1em;
	font-size: smaller;
}

/* navigation bar */

div#left {
/* it should not be necessary to specify 'position: static' here, but
   Opera 12.02 has a bug where it remembers 'position: absolute' from
   style-wide.css after narrowing the window. */
	position: static;
	top: auto;
	width: 100%;
	margin: 0;
	padding: 0;
	border-top: dotted 1px gray;
}

div#leftbl {
	display: none;
}

div#leftnav {
	margin: 0;
	padding: 0;
}

div#leftnav h2 {
	letter-spacing: 3px;
	text-transform: uppercase;
}
div#leftnav h2#navigation {
	padding-top: 1ex; /* no margin-top, otherwise div#colourscheme
				doesn't float to touch the top border */
	margin: 0 .9em;
	font-size: 120%;
}

div#leftnav ul {
	list-style-type: none;
	text-align: left;
	padding: 0;
	margin: 0 0 0 .5em;
	font-size: 90%;
}

div#leftnav ul ul {
	margin-left: 1em; /* each recursive <ul> is indented 1em */
	font-size: 100%;  /* no need for smaller font per indentation here */
}

div#leftnav li {
	margin: 0;
	padding: 1px 0px 1px 0px;
}

div#leftnav a {
	text-decoration: none;
	display: block;
	margin: 0;
	padding: 0.5ex 0.5em;
}

div#leftnav a.navopen {
	font-weight: bold;
	font-style: italic;
}

div#leftnav a.navopen:after {
	content: ':';
}

/* colour scheme switcher */

div#colourscheme {
	font-size: smaller;
	float: right;
	padding: .5em;
	background-color: white;
	border-left: 1px dotted gray;
	border-bottom: 1px dotted gray;
}
div#colourscheme h2 {
	text-align: center;
	font-size: 100%;
	margin: 0;
}
ul#stylelist {
	margin: 0px auto !important;
	width: 11em;
	border: 1px solid gray;
}
ul#stylelist li {
	margin: 0;
	padding: 0;
	text-align: center;
	letter-spacing: .2em;
}
ul#stylelist li:nth-child(n+2) {
	border-top: 1px solid gray;
}
a#styleswitcher_blue {
	color: black;
	background: #aaf;
}
a#styleswitcher_green {
	color: black;
	background: #afa;
}
a#styleswitcher_red {
	color: black;
	background: #faa;
}
a#styleswitcher_plain {
	color: black;
	background: white;
}

/* adapt to iPhone horizontal orientation */
@media screen and (max-width: 480px) {
	table, fieldset {
		font-size: smaller;
	}

	div#content {
		font-size: 90%;
	}

	img#hdrlogo {
		width: 200px;
		height: auto;
	}

	span#logincountdown {
		display: block;
	}
}

/* Breadcrumbs */
div#breadcrumbs {
	font-size: 80%;
	padding: 3ex 0;
	margin: 0 1em;
}
div#breadcrumbs a {
	background: none;
	padding: 0;
}

/* Table of contents */
div#toc {
	font-size: 80%;
	padding: 1ex 1em;
	margin-top: 1ex;
	background: white;
	border: solid 1px gray;
	border-radius: 15px;
}
@media (min-width: 620px) {
	div#toc {
		width: 30%;
		float: right;
	}
}
div#toc ul {
	margin-left: -2em;
}
div#toc ul li.h3 {
	margin-left: 1em;
	list-style-type: circle;
}
div#toc ul li.h4 {
	margin-left: 2em;
	list-style-type: square;
}
div#toc ul li.h5 {
	margin-left: 3em;
	list-style-type: circle;
}
div#toc ul li.h6 {
	margin-left: 4em;
	list-style-type: square;
}

/* further adapt to iPhone vertical orientation */
@media screen and (max-width: 320px) {
	pre {
		font-size: 50%;
	}
	dl dd {
		margin-left: 1.5em;
	}
}

