/*
Theme Name: Global Civil Society Knowledgebase Rev.2
Theme URI: http://kb.culture-knowledge.org/
Description: Custom.
Version: 1.0
Author: Sean Deel
Author URI: http://www.seandeel.com/
Tags: academic, culture, knowledge


	The CSS, XHTML and design is released under GPL:
	http://www.opensource.org/licenses/gpl-license.php

/* 
/**
 * HTML5 ✰ Boilerplate
 *
 * style.css contains a reset, font normalization and some base styles.
 *
 * Credit is left where credit is due.
 * Much inspiration was taken from these projects:
 * - yui.yahooapis.com/2.8.1/build/base/base.css
 * - camendesign.com/design/
 * - praegnanz.de/weblog/htmlcssjs-kickstart
 */


/**
 * html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
 * v1.6.1 2010-09-17 | Authors: Eric Meyer & Richard Clark
 * html5doctor.com/html-5-reset-stylesheet/
 */

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

#cse b {font-weight: bold;}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

blockquote, q { quotes: none; }

blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }

ins { background-color: #ff9; color: #000; text-decoration: none; }

mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }

del { text-decoration: line-through; }

abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }

table { border-collapse: collapse; border-spacing: 0; }

hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }

input, select { vertical-align: middle; }


/**
 * Font normalization inspired by YUI Library's fonts.css: developer.yahoo.com/yui/
 */

body { font:13px/1.231 sans-serif; *font-size:small; } /* Hack retained to preserve specificity */
select, input, textarea, button { font:99% sans-serif; }

/* Normalize monospace sizing:
   en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome */
pre, code, kbd, samp { font-family: monospace, sans-serif; }


/**
 * Minimal base styles.
 */

/* Always force a scrollbar in non-IE */
html { overflow-y: scroll; }

/* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
a:hover, a:active { outline: none; }

ul, ol { margin-left: 2em; }
ol { list-style-type: decimal; }

/* Remove margins for navigation lists */
nav ul, nav li { margin: 0; list-style:none; list-style-image: none; }

small { font-size: 85%; }
strong, th { font-weight: bold; }

td { vertical-align: top; }

/* Set sub, sup without affecting line-height: gist.github.com/413930 */
sub, sup { font-size: 75%; line-height: 0; position: relative; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }

pre {
  /* www.pathf.com/blogs/2008/05/formatting-quoted-code-in-blog-posts-css21-white-space-pre-wrap/ */
  white-space: pre; white-space: pre-wrap; word-wrap: break-word;
  padding: 15px;
}

textarea { overflow: auto; } /* www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars/ */

.ie6 legend, .ie7 legend { margin-left: -7px; } 

/* Align checkboxes, radios, text inputs with their label by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css  */
input[type="radio"] { vertical-align: text-bottom; }
input[type="checkbox"] { vertical-align: bottom; }
.ie7 input[type="checkbox"] { vertical-align: baseline; }
.ie6 input { vertical-align: text-bottom; }

/* Hand cursor on clickable input elements */
label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; }

/* Webkit browsers add a 2px margin outside the chrome of form elements */
button, input, select, textarea { margin: 0; }

/* Colors for form validity */
input:valid, textarea:valid   {  }
input:invalid, textarea:invalid {
   border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red;
}
.no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; }


/* These selection declarations have to be separate
   No text-shadow: twitter.com/miketaylr/status/12228805301
   Also: hot pink! */
::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
::selection { background:#FF5E99; color:#fff; text-shadow: none; }

/* j.mp/webkit-tap-highlight-color */
a:link { -webkit-tap-highlight-color: #FF5E99; }

/* Make buttons play nice in IE:
   www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
button {  width: auto; overflow: visible; }

/* Bicubic resizing for non-native sized IMG:
   code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */
.ie7 img { -ms-interpolation-mode: bicubic; }

/**
 * You might tweak these..
 */

body, select, input, textarea {
  /* #444 looks better than black: twitter.com/H_FJ/statuses/11800719859 */
  color: #444;
  /* Set your base font here, to apply evenly */
  /* font-family: Georgia, serif;  */
}

/* Headers (h1, h2, etc) have no default font-size or margin; define those yourself */
h1, h2, h3, h4, h5, h6 { font-weight: bold; }

a, a:active, a:visited { color: #607890; }
a:hover { color: #036; }


/**
 * Primary styles
 *
 * Author: Sean Deel
 */
 
 html {background: #e0e0e0;}
 body { background: #E0E0E0; font-family: 'Droid Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
 }
 header {padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #e0e0e0;}
 body.home header {border-bottom: none; padding: 0; margin: 0;}
 header img {float: right;}
 body.home #main {background: url(images/b-world.jpg) center top no-repeat; padding-top: 110px; min-height: 460px;}
 body.home header img {display:none;}
 #browse-theme {background: url(images/browse-theme.gif) no-repeat; height: 100px; width: 126px; position: absolute; margin-top: -110px;right: 0; margin-right: 160px;}
 #browse-book {background: url(images/browse-book.gif) no-repeat; height: 100px; width: 126px; position: absolute; margin-top: -110px;}
 
 div#theme-column {padding: 20px 10px; margin: 0px; margin-top: 20px; width: 120px; position: fixed; right: 0; top: 0; height: 100%;  text-transform: uppercase; font-family: Arial, Helvetica, sans-serif; font-weight: bold; font-size: 11px;}
 div#sub-theme-column {padding: 20px 10px; margin: 0px; margin-top: 20px; width: 120px; position: fixed; right: 140px; top: 0; height: 100%; font-family: Arial, Helvetica, sans-serif; font-size: 11px;}
 div#yearbook-column {padding: 20px 10px; margin: 0px; margin-top: 20px; width: 120px; position: fixed; left: 0; top: 0; height: 100%; text-align: right;  text-transform: uppercase; font-family: Arial, Helvetica, sans-serif; font-weight: bold; font-size: 11px;}
 div#chapter-column {padding: 20px 10px; margin: 0px; margin-top: 20px; width: 120px; position: fixed; left: 140px; top: 0; height: 100%; font-family: Arial, Helvetica, sans-serif; font-size: 11px;}
 ul#themes, ul#yearbooks, ul#chapters, ul#subthemes, div#pdfchaps ul { padding:0; margin: 0;}
 #main #pdfchaps ul {
 	padding-top: 15px;
 }
 div.scroll {overflow: auto;}
 ul#themes li a, ul#yearbooks li a, ul#chapters li a, ul#subthemes li a, div#pdfchaps ul li a {display: block; list-style: none; text-shadow: white 0px 1px 0px;  color: #646464; padding: 5px; text-decoration: none; border-top: 1px solid transparent;
}
 ul#themes li, ul#yearbooks li, ul#chapters li, ul#subthemes li, div#pdfchaps ul li { list-style: none;
}
ul#chapters li a {max-height: 36px; overflow: hidden;}
ul#chapters.listing li a {
	max-height: none;
}
 ul#themes li a:hover, ul#yearbooks li a:hover, ul#chapters li a:hover, ul#subthemes li a:hover, ul#themes li.current-menu-item a, ul#themes li.current-category-ancestor a, ul#yearbooks li.current-menu-item a, ul#chapters li.current-menu-item a, ul#subthemes li.current a, ul#subthemes li.current-cat a, ul#chapters li.current-chapter a, ul#yearbooks li.current-y20056-ancestor a, ul#yearbooks li.current-y20078-ancestor a, ul#yearbooks li.current-20067-ancestor a, div#pdfchaps ul li a:hover {
	text-shadow: #777 0px 1px 0px;
	background-color: #B0B0B0;
	color: white;
	-webkit-transition: color 100ms ease-out;
	-webkit-transition: background-color 100ms ease-out;
	-webkit-border-radius: 5px;
	-moz-transition: color 100ms ease-out;
	-moz-transition: background-color 100ms ease-out;
	-moz-border-radius: 5px;
	cursor: pointer;
	border-top: 1px solid #999;
 }
 ul#themes li.current-menu-item a, ul#themes li.current-category-ancestor a, ul#yearbooks li.current-menu-item a, ul#chapters li.current-menu-item a, ul#subthemes li.current a, ul#subthemes li.current-cat a, ul#chapters li.current-chapter a, ul#yearbooks li.current-y20056-ancestor a, ul#yearbooks li.current-y20078-ancestor a, ul#yearbooks li.current-y20067-ancestor a {	margin: 5px 0;}

h6.title {color: #000; border-bottom: 1px solid #999; padding: 5px; margin-bottom: 5px; 
}
#container h6.title {border-bottom: none;}
#main h6.title {
	font-weight: 300; font-size: 24px;
}
body.home #container { background: #7d8ca4 url(images/GCSKbkgrd.gif);}
 #container {
 	margin: 10px 140px 0px 140px;
	background: #fff; padding: 20px;
	-webkit-box-shadow: 0px 0px 5px #999;
	-moz-box-shadow: 0px 0px 5px #999;
	min-height: 600px;
	border-radius: 3px;
 }
 body.archive #container, body.page #container {
 	padding: 20px 200px 20px 60px;
 }
 body.page-template-narrowpage-php #container {
 	padding: 20px 160px 20px 160px;
 }
 footer {
  	margin: 0px 160px 20px 160px;
 }
  #admin-nav {
  	margin: 0px 160px 10px 160px;
 }
 a.btn {
 	text-decoration: none;
 }
 .menu-top-nav-container {display: inline;}
  #top-menu { margin: 0px}
 body.archive #container {margin: 10px 140px 0px 280px}
 body.archive.term-book-20056 #container, body.archive.term-book-20067 #container, body.archive.term-book-20078 #container {
 	margin: 10px 140px 0px 140px;
 }
 body.archive footer {margin: 0px 160px 20px 300px}
 body.archive #admin-nav {margin: 0px 160px 0px 300px}
 body.category #container {margin: 10px 280px 0px 140px}
 body.category footer {margin: 0px 300px 20px 160px}
 body.category #admin-nav {margin: 0px 300px 0px 160px}
 body.category #container .the-post:nth-child(even) {background: #efefef; padding: 0 10px 20px 10px;}
  body.archive.term-book-20056 #chapter-column, body.archive.term-book-20067 #chapter-column, body.archive.term-book-20078 #chapter-column { display: none;}
 
 p {padding-top: 20px;}
 h2 {font-size: 120%; padding-top: 20px;}
 h3 {font-size: 110%; padding-top: 20px;}
 h4 {font-size: 105%; padding-top: 20px;}
 h1.page-title {font-size: 170%; font-weight: 300; font-family: HelveticaNeue-Light, Helvetica, serif; line-height: 28px; }
 body.archive h1.page-title, body.page-template-pdfpage-php h1.page-title, body.page h1.page-title { margin-top: 20px; padding-top: 10px; border-top: 1px solid #e0e0e0;}
 body.page-template-narrowpage-php h1.page-title {
 	text-align: center;
 }
 a.logo {float: right;}
 #home-left h1, #search-top h1, #home-mid h1, #home-right h1 {margin-top: 20px; font-size: 200%; font-weight: normal; font-family: HelveticaNeue-Light, Helvetica, serif;}
  body.home h1 a {color: #e0e0e0; text-decoration: none;}
 body.home {color: #e0e0e0;}
 .the-post {border-bottom: 1px solid #ccc; padding: 20px 10px 20px 10px;}
 .archive-meta {font-weight: normal; font-size: 14px;
 }
 #gcs2012 {
 	margin-bottom: 20px;
 }
 #gcs2012 img {
 	float: left;
 	display: block;
 	margin-right: 10px;
 	margin-top: 13px;
 	
 }
 img.border {
 	border-radius: 3px;
 		-webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, .25); -moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, .25);box-shadow: 0px 1px 3px rgba(0, 0, 0, .25);background: #efefef; padding: 3px;
 }
 em {
 	font-style: italic;
 }
#search-top { background: url(images/smokey.png); padding: 2%; border-radius: 3px;}
#home-left {width: 25%; float: left;}
#home-mid {width: 40%; float: left; margin: 0 5% 0 5%; text-align: center;}
#suggest-form {display: none;}
#home-right {width: 25%; float: right;}
#home-left, #home-right {
	margin-top: 74px;
}
#main #home-left p, #main #home-mid p, #main #search-top p, div.gs-snippet, #main #home-right p {font-size: 12px; line-height: 18px; text-align: justify; padding-top: 10px;}div.gs-snippet {padding-top: 0px;}
#main #home-mid li {
	text-align: left;
}
#main #home-mid img {
	max-width: 100%;
}
body.home a {
	color: #444;
	text-decoration: none;
}
#cse {padding: 20px 0;}
img.yb-picture {float: left; margin-right: 20px; border-radius: 3px;
	-webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, .25); -moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, .25);box-shadow: 0px 1px 3px rgba(0, 0, 0, .25);background: #efefef; padding: 10px; margin-top: 30px;
}
#main ul {margin-top: 20px; list-style-type: square;}
#main li {
	margin-bottom: 5px;
}
.context-link {padding-top: 10px; font-size: 11px; } .context-link a { text-decoration: none; background: url(images/link.gif) no-repeat center right; padding-right: 15px;} .context-link p {display: inline;}
li#login-register {background: url(images/login.gif) no-repeat center left; padding-left: 15px;}
li#search-link a {background: url(images/search.gif) no-repeat center left; padding-left: 12px;}
#admin-nav li, #top-menu li {display: inline; list-style: none; font-size: 11px; margin-right: 5px;  line-height: 11px;} #admin-nav li a, #top-menu li a {font-weight: bold; text-transform: uppercase;text-decoration: none; line-height: 11px; text-shadow: white 0px 1px 0px; color: #646464;}
#admin-nav li a:active {text-shadow: white 0px -1px 0px; color: #343434;} #admin-nav ul {padding: 0; margin: 0; display: inline; }
#admin-nav {text-align: right; padding-top: 10px;}
div.more-options {display: none; margin-top: 5px; padding: 0px 0 5px 0; border-bottom: 1px dotted #ccc; font-size: 11px;}
a.more {height: 11px; width: 11px; background:url(images/moreorless.gif) no-repeat; display: block;text-decoration: none; }
a.more.active {background:url(images/moreorless.gif) no-repeat center bottom;}
div.commentmetadata {display: none;} div.more-options p {padding-top: 5px;}
span.themes-list, #comments h3 { font-weight: normal; display: inline; font-size: 9px;  line-height: 13px; border: 1px solid #ccc; background: #ddd; border-radius: 2px;text-transform: uppercase; padding: 0 2px; text-shadow: white 0px 1px 0px; }
div.more-section {padding-top: 5px;}
footer img {float: right; padding-top: 13px;}
footer p {width: 400px; float: left;}
div.wpcf7 input, div.wpcf7 textarea {width: 100% !important;}
div.wpcf7 input.wpcf7-submit {width: auto !important;}
body.single #comments {margin-top: 20px;}
body.category #main h1, body.category #main h2, body.category #main h3, body.category #main h4, body.category #main h5, body.category #main h6 {display: none;} 
table.gsc-branding {display: none !important;}
input.gsc-input {background-image: none !important; background: #fff !important; padding: 10px 0; border-radius: 3px;}
input.gsc-search-button {padding: 10px; border: none; background: #fff; border-radius: 3px; margin-left: -5px;}
table.gsc-table-result {text-align: left;}
.gs-title a, .gs-visibleUrl {color: #e0e0e0;}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
#pdfchaps span {font-style: italic; color: #ccc!important;}
.pdfs {
	width:  45%;
	float: left;
}
.online {
	width: 45%;
	float: right;
}
span.authors p {
	display: inline;font-style: italic; color: #ccc!important;
}
body.archive #main p, body.page-template-narrowpage-php #main p {
	font-size: 14px;
	line-height: 22px;
	font-family: 'Droid Serif', serif;
}
body.page-template-narrowpage-php #main a {
	text-decoration: none;
}
body.archive #main h1, body.archive #main h2, body.archive #main h3, body.archive #main h4, body.archive #main h5, body.archive #main h6, {
	font-family: 'Droid Serif', serif;
}


::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
    display: block;
    height: 10px;
}

::-webkit-scrollbar-button:vertical:increment {
    background-color: #fff;
}

::-webkit-scrollbar-track-piece {
    background-color: #eee;
    -webkit-border-radius: 3px;
}

::-webkit-scrollbar-thumb:vertical {
    height: 50px;
    background-color: #ccc;
    -webkit-border-radius: 3px;
}

::-webkit-scrollbar-thumb:horizontal {
    width: 50px;
    background-color: #ccc;
    -webkit-border-radius: 3px;
}
p small {text-align: justify; display: block;}


/**
 * Non-semantic helper classes: please define your styles before this section.
 */

/* For image replacement */
.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }

/* Hide for both screenreaders and browsers:
   css-discuss.incutio.com/wiki/Screenreader_Visibility */
.hidden { display: none; visibility: hidden; }

/* Hide only visually, but have it available for screenreaders: by Jon Neal.
  www.webaim.org/techniques/css/invisiblecontent/  &  j.mp/visuallyhidden */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: drupal.org/node/897638 */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }

/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }

/* The Magnificent Clearfix: Updated to prevent margin-collapsing on child elements.
   j.mp/bestclearfix */
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
.clearfix:after { clear: both; }
/* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
.clearfix { zoom: 1; }
html.ie7 .clearfix {clear: both;}
html.ie6 .clearfix {clear: both;}

/**
 * Media queries for responsive design.
 *
 * These follow after primary styles so they will successfully override.
 */

@media all and (orientation:portrait) {
  /* Style adjustments for portrait mode goes here */

}

@media all and (orientation:landscape) {
  /* Style adjustments for landscape mode goes here */

}

/* Grade-A Mobile Browsers (Opera Mobile, Mobile Safari, Android Chrome)
   consider this: www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/ */
@media screen and (max-device-width: 480px) {


  /* Uncomment if you don't want iOS and WinMobile to mobile-optimize the text for you: j.mp/textsizeadjust */
  /* html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
}


/**
 * Print styles.
 *
 * Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
 */
@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
  -ms-filter: none !important; } /* Black prints faster: sanbeiji.com/archives/953 */
  a, a:visited { color: #444 !important; text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
  tr, img { page-break-inside: avoid; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3{ page-break-after: avoid; }
   div#theme-column, div#sub-theme-column, div#yearbook-column, div#chapter-column, #admin-nav {
   display:none;
   }
   #container, body.category #container, body.archive #container {width: auto; margin: 0; padding: 0;}
}