/* Embedded REBOL Header
-------------------------------------------------------
[REBOL [title: "Knitting Pattern Stylesheet"
date: 17-May-2006
author: "Christopher Ross-Gill"
rights: http://creativecommons.org/licenses/by-sa/1.0/
history: [
	 5-Aug-2002 "Original Version"
	10-Sep-2003 "Updated"
	17-May-2006 "Refined"
]]]
------------------------------------------------------- */

/* Page Style
------------------------------------------------------- */
* {
	font: 12px/1.5 "trebuchet ms","freesans","dejavu sans","times new roman", times, serif;
	margin: 0; padding: 0;
}

body {
	background: #fff url(/styles/knitting/anchor.png) repeat-y center top;
	color: #000;
	margin: 3em 0;
	text-align: center;
}

#page {
	width: 710px;
	margin: 0 auto;
	text-align: left;
}

@media print {
	* {font-size: 9pt;}
	body {margin: 1em 5%;}
}


/* Link + Inline Styles
------------------------------------------------------- */
a, b, i, strong, em {font: inherit;}
b, strong {font-weight: bold;}
i, em {font-style: italic;}
a:link {color: #009;}
a:visited {color: #639;}
a:active, a:hover {color: #c00;}
div.break {
	text-align: center;
	clear: both;
	margin: 0.8em auto;
}


/* Text Styles
------------------------------------------------------- */
p, ol, ul, dl, blockquote, div.image, div.frame {
	line-height: 1.6;
	margin: 0.2em 0 1em;
}


/* Header Styles
------------------------------------------------------- */
h1, h2, h3 {font: bold 1em/1.2 verdana,"dejavu sans","times new roman",times,serif;}
h1 {margin: 0; font-size: 1.4em;}
h2, h3 {margin: 1.2em 0 0.2em;}
h2 {padding-bottom: 0.3em; border-bottom: 1px dotted #888;}
h4 {font-weight: bold;}
h5 {font-style: italic;}

/* Lists
------------------------------------------------------- */
ol, ul {margin-left: 2.4em; }
dl {margin-top: 0.6em;}

ul ul, ol ul {list-style-type: square; margin: 0 0 0 1.8em;}
ul ul ul, ol ul ul, ol ol ul, ul ol ul  {list-style-type: circle;}
ol ol, ul ol {list-style-type: lower-alpha; margin: 0 0 0 1.8em;}
ol ol ol, ul ol ol, ul ul ol, ol ul ol {list-style-type: lower-roman;}

li {margin: 0.2em 0 0.4em;}
dt {font-weight: bold;}
dd {margin: 0.2em 0 1em 2.4em;}

/* Images
------------------------------------------------------- */
div.image, div.image div {text-align: center; line-height: 0;}
img {border: 0;}
p img {
	float: left;
	margin: 0.2em 10px 2px 0;
	border-right: 1px dotted #888;
	border-bottom: 1px dotted #888;
	padding: 0 60px 8px 0;
}

/* Frames
------------------------------------------------------- */
div.frame {padding: 0 0 0.3em; border-bottom: 1px dotted #888; border-top: 1px solid #888;}
div.frame p {
	font-style: italic;
	text-align: right;
	line-height: 1.25;
	padding-left: 10%;
}
div.frame div.image,
div.frame p {margin: 0.2em 0;}
div.frame p {margin-top: 0.7em;}
div.frame div.image {background: #ddd;}

/* Frames
------------------------------------------------------- */
div.question p {font-weight: bold; font-style: italic;}

/* Code
------------------------------------------------------- */
pre {
	width: 100%;
	margin: 1em 0;
	border-left: 1px dotted #888;
	padding-left: 0.8em;
	font: 1em/1.2 monaco, "andale mono", "lucida console", "courier new", courier, fixed-width;
	overflow: auto;
}

pre code {
	font: 1em/1.2 monaco, "andale mono", "lucida console", "courier new", courier, fixed-width;
	display: block;
	padding: 0.5em 0.8em; margin: 0;
}

blockquote pre {
	width: auto;
	background: #eee;
	border: 1px solid #ccc;
	padding: 0.5em 0.8em;
}


/* Table Styles
------------------------------------------------------- */
table {
	border-collapse: collapse;
	margin: 0.2em auto 1em;
	text-align: center;
	width: auto;
}

th, td {
	margin: 0; padding: 0.1em 0.5em;
	overflow: visible;
	text-align: left;
	vertical-align: top;
}

th {
	font-weight: bold;
	text-align: right;
}

thead th {
	text-align: left;
}

td.del {
	font-size: 0.8em;
}


thead th, thead td {vertical-align: bottom;}
tbody th, tbody td {vertical-align: top;}

/* Form Style
------------------------------------------------------- */
form {margin: 1em 0; border: 0; padding: 0;}
form br {display: none;}

label {display: block;}
span.label {display: block; width: 100%; text-align: right;}
input, select {margin: 0;}
textarea, input.field, select {
	background: #fafafa;
	border: 1px dotted #888;
	margin: 0; padding: 2px;
}

input.field:focus, textarea:focus {
	background: #ffc;
}

input.field, textarea {width: 98%;}
input.field, select {
	line-height: 120%;
	padding: 4px 2px;
}

input.button {
	cursor: pointer;
	font-weight: bold;
	padding: 0 2em;
}



/* Form Table Structure
------------------------------------------------------- */
*.form-left {text-align: right; width: 150px;}
*.form-right {width: 310px;}
*.form-left * {display: block; margin-left: auto; text-align: right;}
form th, form td {border: none; background: transparent; padding: 0.3em;}
form th {text-align: right;}
form th label {display: block;}

/* Form List Structure
------------------------------------------------------- */
form ul {
	list-style: none outside; list-style-image: none;
	margin: 1em 0; padding: 0;
	text-indent: 0;
}

form ul li {
	background: inherit;
	padding: 0;
}


/* Enhanced Styles
------------------------------------------------------- */
hr {clear: both; display: none;}

div.address {text-align: right; font-style: italic;}
div.indent {padding: 0 2.6em;}

div.figure {clear: left;}
div.figure div {padding: 0.3em 1em 1em 0;}
div.figure p {
	line-height: 150%;
	margin: -0.4em 0 0.2em;
	padding: 6px;
	text-align: left;
}

div.figure div {
	font-weight: bold;
	margin: 0 auto;
	padding-bottom: 1em;
}


dl.note dt {
}

blockquote, dl.note dd {
	border-left: 1px dotted #888;
	font-style: italic;
	margin: 0 0 1em 1.4em;
	padding-left: 0.8em;
}

.hidden {display: none;}

p.date {font-weight: bold;}

/* Table of Contents
------------------------------------------------------- */
ul#toc, ul#toc ul {
	margin-left: 0; margin-right: 0;
	list-style: none outside;
	list-style-image: none;
	text-indent: 0;
}

ul#toc {padding-left: 0;}
ul#toc ul {padding: 0 2.6em;}
ul#toc li {font-weight: bold; padding: 0;}
ul#toc ul li {font-weight: normal;}
ul#toc ul ul li {font-style: italic;}
ul#toc ul ul ul li {font-style: normal; font-size: 0.9em;}

/* Page Elements
------------------------------------------------------- */
#maincol {
	width: 500px;
	float: left;
}

#subcol {
	width: 150px;
	float: right;
}


#s2 {
	padding: 120px 0;
}

#s2 * {
	font: bold 0.98em/1.2 "trebuchet ms","freesans","dejavu sans","times new roman", times, serif;
}

#head {
	background: #457 url(/styles/knitting/head-clare.jpg) no-repeat;
	padding: 200px 0 0;
}

#head h1 {
	background: #000;
	color: #fff;
	font: bold 1.5em/1 helvetica, arial;
	padding: 0.5em 0.6em;
}

#body, #footer {
	margin: 1.4em 0 1em 115px;
}

#body {
	text-align: left;
}

#footer {
	clear: both;
	padding-top: 3em;
}

#footer p {
	margin-bottom: 0.2em;
}



/* Pattern Previews
------------------------------------------------------- */
.arran-sweater #head {
	background-image: url(/styles/knitting/head-arran-sweater.jpg);
}

.mcbride-gansey #head {
	background-image: url(/styles/knitting/head-mcbride-gansey.jpg);
}

.childrens-mcbride #head {
	background-image: url(/styles/knitting/head-childrens-mcbride.jpg);
}

.paulines-scarf #head {
	background-image: url(/styles/knitting/head-paulines-scarf.jpg);
}

.galway-shawl #head {
	background-image: url(/styles/knitting/head-galway-shawl.jpg);
}

.socks #head {
	background-image: url(/styles/knitting/head-socks.jpg);
}

.special-offer #head {
	background-image: url(/styles/knitting/head-special-offer.jpg);
}



/* SubColumn
------------------------------------------------------- */
#subcol ul {
	list-style: none outside;
	margin: 1em 0;
}

#subcol li {
	margin: 0; padding: 0;
}


.thumbnails {
	margin: 2.8em auto;
	text-align: center;
	width: 110px;
}

.thumbnails dt {
	margin-bottom: 0;
}

.thumbnails dd {
	margin: 0 0 1em;
	padding: 0;
	text-align: right;
}

.thumbnails a,
.thumbnails a:link,
.thumbnails a:hover,
.thumbnails a:visited,
.thumbnails a:active {
	color: #000;
	text-decoration: none;
}

.thumbnails img {
	border-bottom: 1px solid #555;
}


/* Survey
------------------------------------------------------- */
dl.question {
	margin: 0.9em 0 1.4em;
	padding: 0;
}

dl.question dt {
	margin: 0.4em 0 0.9em;
}

dl.question dd {
	margin: 0.4em 0;
	padding-left: 4em;
	line-height: 1;
}

dl.question label {
	display: inline;
	margin: 0;
	line-height: 1;
	font-weight: inherit;
}

dl.question textarea {
	height: 4.6em;
}

ul.errors {
	background: #fee;
	border: 2px solid #c00;
	margin: 0.4em 0;
	padding: 0.2em 0.2em 0.2em 2em;
	font-weight: bold;
}

