/*
Theme Name: royalsociety
Theme URI: http://royalsociety.org
Description: A Wordpress theme which conforms with the Royal Society's digital design pack. See the enclosed README.txt for details.
Version: 1.0
Author: Royal Society
Author URI: http://royalsociety.org
License: GNU General Public License v2.0 & Apache License 2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html http://www.apache.org/licenses/LICENSE-2.0
*/

/* 
** WORDPRESS BOOTSTRAP THEME (320press.com) CSS
** NOTE THAT ROYAL SOCIETY CSS IS AT END OF THIS FILE
*/

/* micro clearfix: http://nicolasgallagher.com/micro-clearfix-hack/ */
/* For modern browsers */
.clearfix:before,
.clearfix:after {
    content:"";
    display:table;
}

.clearfix:after {
    clear:both;
}

/* For IE 6/7 (trigger hasLayout) */
.clearfix {
    zoom:1;
}

/* layout */
body{
	padding-top: 0;
}

/* Admin Top Navigation fixes */
body.admin-bar .navbar-fixed-top{ 
	top: 28px; 
}

.navbar .brand{
  /*background: url(http://downloads.royalsociety.org/Images/Furniture/Blogs/royalsociety-logo.png) no-repeat left center;*/
  font-family:'Univers Next W01 Light', helvetica, serif;
  font-size:1.4em;
  line-height:1.2;
  color: #f9b100;
  letter-spacing: -0.02em;
  padding-top:10px; padding-bottom:13px;
  text-shadow: none;
  margin-left:0px;
  margin-top:10px;
  margin-bottom:10px;
}

.nav-container{
	padding-left: 0;
	padding-right: 0;
}

#inner-header{
	width: 100%;
}

input, textarea, select, .uneditable-input {
	margin-bottom: 0;
}

.navbar-form, .navbar-search {
	margin: 20px 0 9px;
}

.navbar-search{
	padding-left: 0;
}

#s{
	width: 100px;
}

#content{
	padding: 20px 0 0;
}

.more-link{
	white-space: nowrap;
}

.footer-links{
	float: right;
	margin-bottom: 18px;
}

.footer-links .menu{
	list-style-type: none;
	margin-left: 0;
}

.footer-links .menu li{
	float: left;
	margin-left: 10px;
}

/* post styling */

#main p.meta{
	font-style: italic;
	color: #808080;
}

#main article{
	margin-bottom: 18px;
	border-bottom: 1px solid #eeeeee;
	padding: 0 0 9px;
}

.sidebar{
	margin-top: 18px !important;
	font-size:90%;
}

#main article footer{
	border-top: none;
	margin-top: 0;
	padding-top: 0;
	position: relative;
	min-height: 20px;
}

#main article footer a.edit-post{
	position: absolute;
	right: 0;
	top: 0;
	display: none;
}

.post:hover a.edit-post{
	display: inline;
}

p.tags{
	line-height: 20px;
	margin-top:20px;
}

div[id*='attachment_']{
	max-width: 100%;
	height: 100%;
}

#credit320{
	background: url('images/320press_mini.png') no-repeat left top transparent;
	padding-left: 20px;
}

#main .hero-unit img{
	margin-bottom: 1em;
}

#main article img{
	height: auto;
	max-width: 100%;
}

img.alignleft{
	margin-right: 10px;
	float: left;
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;	
}

img.alignright{
	margin-left: 27px;
	margin-bottom: 13px;
	margin-top: 7px;
	float: right;
	border-top-left-radius: 3px;
	border-bottom-left-radius: 3px;
}

img.aligncenter{
	display: block;
	margin: 0 auto;
	border-radius: 3px;
}

.post header img{
	margin-bottom: 18px;
}

.archive #main .post h3{
	line-height: 24px;
	margin-bottom: 10px;
}

video {
	max-width: 100%;
	height: auto;
}

.video-container {
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 30px;
	height: 0;
	overflow: hidden;
}

.video-container iframe,  
.video-container object,  
.video-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.video-wrapper {
	width: 630px;
	max-width: 100%;
	margin-bottom: 18px;
}

/* page styling */

#featured-carousel .item{
	width: 970px;
	height: 600px;
}

.carousel-caption p{
	display: none;
}

.page-template-page-homepage-php #main article{
	border-bottom: none;
}

.page-template-page-homepage-php .hero-unit,
.blog .hero-unit{
	padding: 1em;
}

.hero-unit h1 {
	font-size: 3em;
}

/* comments */

#comments{
	line-height: 24px;
	margin-bottom: 18px;
}

ol.commentlist,
ol.commentlist ul.children{
	list-style-type: none;
	margin-left: 0;
}

.comment .vcard div{
	margin-top: 8px;
	padding: 0 10px;
}

ol.commentlist time{
	font-size: .8em;
	color: #eeeeee;
}

ol.commentlist div.comment-author{
	position: relative;
}

ol.commentlist a.comment-edit-link{
	color: #ffffff;
	text-decoration: none;
	padding-left: 5px;
}

ol.commentlist span.edit-comment{
	position: absolute;
	right: 0;
	top: 8px;
}

ol.commentlist li.bypostauthor{
	background-color: #dddddd;
}

ol.commentlist ul.children li{
	background-color: #cccccc;
}

ol.commentlist ul.children li ul.children li{
	background-color: #bbbbbb;
}

ol.commentlist ul.children li ul.children li ul.children li{
	background-color: #aaaaaa;
}

ol.commentlist article{
	border-bottom: none !important;
}

a.comment-reply-link{
	position: absolute;
	right: 0;
	bottom: 0;
}

#comment-nav ul{
	list-style-type: none;
	margin: 0;
}

#comment-form-elements{
	list-style-type: none;
	margin: 0;
}

.comment .vcard .avatar{
	padding-right: 0;
}

.comment .vcard .comment-text{
	margin-left: 0;
}

img.avatar{
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #dedede;
	border-right: 1px solid #dedede;
	border-left: 1px solid #ddd;
	margin-right:20px;
	
}

ol.commentlist li{
	padding-right: 10px;
	background-color: #F0F0F0;
}

#pings{
	margin-bottom: 9px;
}

ol.pinglist{
	list-style-type: none;
	margin: 0 0 9px 0;
}

#comment{
	width: 270px;
}

ol.commentlist #respond{
	padding: 5px 10px;
}

/* specific post-type styles */

/* image attachment */

.attachment #main .post_content img{
	max-width: 100%;
}

.ie8 #main .media-grid img{
	max-height: none !important;
	max-width: none !important;
}

.attachment-img{
	margin-bottom: 18px;
}

.metadata p.alert-message{
	margin-right: 0;
	margin-bottom: 18px;
}

#gallery-nav{
	list-style-type: none;
	margin-left: 0;
}

li.next a, li.previous a{
	position: relative;
}

li.next a:hover:before{
	content: "\2190";
	position: absolute;
	display: block;
	top: 42%;
	left: 0;
	background-color: #BFBFBF;
	color: #444;
	width: 20px;
	height: 20px;
	padding-left: 5px;
	text-decoration: none;
	box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);
}

li.previous a:hover:before{
	content: "\2192";
	position: absolute;
	display: block;
	top: 42%;
	right: 0;
	background-color: #BFBFBF;
	color: #444;
	width: 20px;
	height: 20px;
	padding-left: 5px;
	text-decoration: none;
	box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);
}


/* widget styles */

.widget{
	margin-bottom: 18px;
}

.widgettitle{
	margin-bottom: 9px;
}

#tag-cloud{
	margin-bottom: 18px;
	line-height: 160%;
}

/* for some reason the bs version currently available for download doesn't have this style */
.label{
	text-transform: uppercase;
}

/* override standard link hover for the tag cloud widget */
#tag-cloud a:hover,
.tags a:hover{
	color: #ffffff;
	text-decoration: none;
}

#tag-cloud a{
	white-space: pre;
	text-transform: uppercase;
}

/* change default form padding for search */

.widget_search form{
	padding-left: 0;
}

.widget_search input{
	width: 121px;
}

/* calendar widget */

#calendar_wrap{
	border: 1px solid #ddd;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	padding: 5px;
}

#wp-calendar{
	width: 100%;
	
}

#wp-calendar caption{
	font-weight: bold;
	padding: 8px;
}

#wp-calendar tr{
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

#wp-calendar tr:last-child{
	border-bottom: none;
}

#wp-calendar td{
	text-align: center;
	padding: 8px 0;
}

blockquote.pull-left{
	padding-right: 15px;
}

@media only screen and (min-width: 768px) {
	.carousel-caption p{
		display: block;
	}
}

@media only screen and (min-width: 980px) {
	body{
		padding-top: 60px;
	}
	
	.container-fluid{
		max-width: 970px;
		margin: 0 auto;
		padding-left: 20px;
		padding-right: 20px;
	}
	
	#inner-footer{
		padding: 0;
	}
	
	#content{
		padding-left: 0;
		padding-right: 0;
	}
	
	.topbar-inner{
		padding: 0;
	}
	
	.topbar form.pull-right {
		float: right;
	}
	
	.navbar-form, .navbar-search {
		margin-top: 20px;
		margin-bottom: 0;
	}
	
	.navbar-search{
		padding-left: 0;
	}
	
	.sidebar{
		margin-top: 10px !important;
	}
	
	.widget_search input{
		width: 230px;
	}
	
	.blog .hero-unit{
		margin-top: 10px;
	}
	
	.page-template-page-homepage-php .hero-unit,
	.blog .hero-unit{
		padding: 60px;
	}
	
	.hero-unit h1 {
		font-size: 60px;
	}
	
	/* hide edit comment button and show on hover on desktop version */
	.edit-comment{
		display: none;
	}
	
	.vcard:hover .edit-comment{
		display: inline-block;
	}
	
	#s{
		width: 210px;
		margin-bottom: 6px;
	}
	
	.widget_search input{
		width: 209px;
	}
	
	.comment .vcard .comment-text{
		padding-left: 0;
		padding-right: 0;
	}
}


/* 
** ROYAL SOCIETY CUSTOM CSS
*/

/* Text styling */
    body {
        font-family:'Univers Next W01 Light', helvetica, serif;
        font-size:1em;
        line-height:1.4;
        color: #4d4e53;
    }
    p {
        font-family:'Univers Next W01 Light', helvetica, serif;
        font-size:1em;
        line-height:1.4;
    }
    i, em {
        font-family:'UniversNextW01-LightIta', helvetica, serif;
        font-size:1em;
        line-height:1.4;
        font-style:normal;
    }
    b, strong {
        font-family:'Univers Next W01 Medium', helvetica, serif;
        font-size:1em;
        line-height:1.4;
        font-weight:normal;
    }
    h3 {
        font-family:'Univers Next W01 Medium', helvetica, serif;
        font-size:1.2em;
        line-height:1.2;
        letter-spacing:-0.02em;
        font-weight:normal;
    }
    h1, h2 {
        font-family:'Univers Next W01 Medium', helvetica, serif;
        font-size:1.4em;
        line-height:1.2;
        letter-spacing:-0.02em;
        font-weight:normal;
    }
    li {
    	margin: 0 0 10px;
    	line-height:1.4;
    }
    div.widget > ul > li {
    	margin: 0px;
    }
    .date, .notes, footer {
        font-size:90%;
    }
    a {
        color: #bd0e2b;
    }
    p > a {text-decoration:underline;}
    a:hover { color: #ed1240;}

    
    blockquote > p, blockquote > small {
        font-size: 1.3em;
        line-height: 1.2;
        color: #004250;
    }
    blockquote > small {
        color:#8C8D8E;
    }
    
    p.wp-caption-text {
    	padding: 0 10px;
    	margin: 5px 0;
    	color: #8c8d8e;
    	font-size:85%;
    	line-height: 1.45;
	    
	    }
    
/* Twitter's Navbar in the header*/
    .navbar .container { 
        height: 50px; 
        }
        
    .navbar-inner {
        background-color: #bd0e2b; /* fallback color, place your own */
        background-image: none;
        background-repeat: no-repeat;
        filter: none;
}
    /*.navbar .brand {
        font-family:'Univers Next W01 Light', helvetica, serif;
        font-size:1.4em;
        line-height:1.2;
        color: #f9b100;
        letter-spacing: -0.02em;
        padding-top:10px; padding-bottom:10px;
        text-shadow: none;
    }*/
    .navbar .description {
        font-family:'Univers Next W01 Light', helvetica, serif;
        font-size:90%;
        line-height:1.4;
        color: #f9b100;
        padding-top:22px; 
        text-shadow: none;
        float:right;
        text-align:right;
    }
    .description > a {color:white;}
    
    #top-title {
        display:inline;
        /*margin-left:90px;*/
        color: #f9b100;
    }

    #top-title:hover {
	text-decoration:underline;
    }
    
    #twitter-widget-0 {
        width:100%;
    }
    
    /*thumbnails
    a.thumbnail {
        text-align:center;
        font-size:80%;
        overflow:hidden;
    }*/
	
	.lead {
		margin-bottom: inherit;
		font-size: inherit;
		font-weight: inherit;
		line-height: inherit;
	}
	
		.btn-navbar {
		margin-top:20px !important;	
	}
	
	img.subscribe-icon {
		margin-right:5px;
	}
	
	.typeahead.dropdown-menu {
		z-index:2000;	
	}
	
	.typeahead.dropdown-menu > li {
		overflow: hidden; /* stop text from over-running the typeahead dropdown*/
	}

/* Snippet blocks used on index.php */
	div.snippet {
		width:100%;
		/*max-width: 640px;*/
		margin-top:15px;
		clear:both;
	}

	div.snippet-img {
		float:left;
		width:173px; /*same as royalsociety.org*/
		clear:left;
	}

	div.snippet-text {
		display:block;
		overflow:hidden;
		max-width:480px;
		min-width:160px;
		clear:right;
	}
	
	h1.snippet {
		/*font-size:1.17em;*/
		margin-top:0px;
		margin-bottom:5px;
	}
	
	div.snippet p {
		line-height:1.5em;
		font-size:90%;
	}
	
	p.date {
		font-size:0.8em;
		margin-top:0px;
		margin-bottom:10px;
	}

/*These divs are used for images with captions */
	div.alignright {
	    float:right;
	    margin: 5px 0 20px 20px;
	}

	div.alignleft {
	    float: left;
	    margin: 5px 20px 20px 0;
	}
	
/*Media queries for screen size*/
	
    @media only screen and (max-width:372px) {
	    h1.snippet {
			margin-top:10px;
		}
    }
    

    @media only screen and (max-width:500px) {
            #top-title {
                /*margin-left:0px;*/
                display:block;
            }
            .navbar-search {
            	clear:left;
            	float:left;
	        }
            
        }

	@media only screen and (max-width:767px) {

		/*.entry, .notes {
			margin: 20px 0;
		}
        #exhibitor-blogs, .description {
            display:none;
        }*/

	}

	@media only screen and (max-width:979px) {

		body {
			padding-top: 0;
		}
        /*a.thumbnail {
        	font-size:70%;
        }*/
	}
	