/*
Theme Name: NAHS
Author: Roger Cornwell
Description: A custom theme for the Northern Architectural Society, based on the City of Durham theme
Version: 1.1.1
Tags: bootstrap
*/

/*
 * Globals
 */

body {
  font-family: Calibri, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #555;
  background-color: #cdddeb;
}
.row	{
	background-color: white;
	padding-top: 1rem;
}
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  margin-top: 0;
  font-weight: normal;
  color: #1B223C;
}

p, li, blockquote	{
	font-size: 110%;
	line-height: 1.2;
}

hr	{
	border-top-color:#354275;
	clear: both;
}

/*
 * Masthead for nav
 */

.blog-masthead {
	position:relative;
	background-color: #354275;
   padding-bottom:0;
	border-bottom: 1px solid white;
}
div.header-image	{
	position: relative;
}

/* So titles can be hidden */
.hidetitle .blog-post-title {
	display:none;
}

/* =Menu
-------------------------------------------------------------- */

#access {
	margin: 0 auto;
}
#access .menu-header,
div.menu {
	float: left;
	font-size: 14pt;
	margin-left: 3vw;
}
#access .menu-header ul,
div.menu ul {
	list-style: none;
	margin: 0;
}
#access .menu-header li,
div.menu li {
	float: left;
	position: relative;
   display: inline-block;
   padding: 10px .5vw;
   font-weight: 500;	
	font-size: 14pt !important;
}
#access a {
	color: #E7C959;
	display: inline-block;
	line-height: 1.2;
	padding: 5px 1vw;
	text-decoration: none;
	font-weight: bold;
}
ul.sub-menu {
	display: none;
	position: absolute;
	top: 60px;
	left: 0;
	float: left;
	width: 300px;
	z-index: 99999;
}
ul.sub-menu li {
	min-width: 220px;
	margin: -20px 10px 0 -40px;
	font-size: 12pt !important;
}
ul.sub-menu a {
	background-color: #354275;
	color: #E7C959;
	width: 200px;
}
ul.sub-menu li ul	{
	position: absolute;
	top:20px;
	left: 200px;
	font-size: 12pt !important;
}
ul.sub-menu li ul li	a{
	background-color: #455490;
}

#access li:hover > a,
#access ul ul :hover > a {
	color: White;
}
#access ul li:hover > ul {
	display: block;
}
#access  li.current_page_item > a,
#access li.current-menu-ancestor > a,
#access li.current-menu-item > a,
#access li.current-menu-parent > a {
	color: White !important;
	font-weight: bold;
}
* html #access li.current_page_item a,
* html #access li.current-menu-ancestor a,
* html #access li.current-menu-item a,
* html #access li.current-menu-parent a,
* html #access li a:hover {
	color: White !important;
	font-weight: bold;
}
#access .menu-header ul li.page_item > a {
	color: #E7C959;
}
#access .menu-header ul li.page_item > a:hover {
	color: White;
}


/* Float picture to right */
.alignright	{
	float:right;
	margin: 0 0 1em 1em;
}
/*
/* Float picture to left */
.alignleft	{
	float:left;
	margin: 0 1em 1em 0;
}
/* Centre picture on mobiles (does not display if larger screen */
.mobile-centre	{
	margin: 1em auto;
	display: none;
}
/* For text alongside a picture floated left */
.alongside	{
	margin-left: 320px;
}
/* To centre a picture and its caption */
p.centre	{
	text-align:center;
}
/*
 * Blog name and description
 */

.blog-header {
	position: absolute;
	left: calc(50% - 320px);
	top:50px;	/* The menu bar at the top */
	padding: 0;
	margin-right: 40%;
}
h1.blog-title, h1.blog-title a {
	margin-top: 1.2vw;
	margin-bottom: 0;
	font-size: 6vw;
	font-weight: bold;
	color: black !important;
	text-decoration: none;
}
h1.blog-title a:hover, h1.blog-title a:focus {
	text-decoration: none;
}
.blog-description {
  font-size: 2vw;
  color: black;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: white;
  font-weight:bold;
  margin-bottom: 2vw;
  line-height: 1.4;
}

.home-header	{
	text-align:right;
	margin:-290px 12px 0 -12px;
	padding:0;
	background-color:white;
}
.home-header img {
	width:calc(100% + var(--bs-gutter-x));
}

@media (min-width:992px){
	.blog-header	{
		left: calc(50% - 440px);
	}
	h1.blog-title, h1.blog-title a {
		font-size: 6vw;
	}
	.blog-description {
		font-size: 2vw;
	}
	nav.blog-nav	{
		height: 68px;
	}
	.conditional-break {
		display:none;
	}
}

@media (min-width:1200px){
	.blog-header	{
		left: calc(50% - 540px);
	}
	h1.blog-title, h1.blog-title a {
		font-size: 72px;
	}
	.blog-description {
		font-size: 24px;
	}
}

/* Make the comments box wider if there is enough space */
textarea#comment	{
	width:50em;
	max-width: 100%;
}

/* Style the table of EPC ratings */
table.epc th	{
	text-align: center;
	font-weight: bold;
	padding:0 1ex;
}
table.epc td	{
	text-align:right;
	padding:0 1ex;
}
table.epc .pc	{
	padding-left:0;
}

/* Style the table of the list of houses */
table.houses tr th,
table.houses thead th {
	color: #888;
	font-size: 12px;
	font-weight: bold;
	line-height: 18px;
	padding: 9px 24px;
}
table.houses tr td {
	border-top: 1px solid #e7e7e7;
	padding: 6px 24px;
}
table.houses tr.odd td {
	background: #f2f7fc;
}
table.houses tr th,
table.houses tr td {
	padding:2px 12px 2px 0;
}
/* The ® button on the NPF list of properties */
span.radius {
	padding:2px 4px;
	background-color: #E7C959;
	border:1px solid black;
	font-size:20px !important;
}
form.radius	{
	display:inline;
	height:1em;
}
form.radius input[type=submit] {
	padding:2px 4px;
	background-color: #E7C959;
	margin:1px;
	border:1px solid black;
	font-size:20px !important;
}
/* End of house styling */

dl {
	margin-left: 2em;
}

dt    {
	font-size: 150%;
	font-weight: bold;
}

dd    {
	margin-left: 4em;
	font-size: 120%;
	margin-bottom: 2ex;
}

/*
 * Main column and sidebar layout
 */

.blog-main {
  font-size: 18px;
  line-height: 1.5;
}

@media (min-width:768px) {
	.book {		
		margin-right: -10%;
	}
}
@media (max-width:500px) {
	.blog-post-title	{
		text-align: center;
	}
	.blog-main	{
		padding: 0;
	}
	.cover {		
		text-align:center;
		float:none;
	}
	.cover::after	{
		clear:both;
	}
}

/* Sidebar modules for boxing content */
.sidebar-module {
  padding: 15px;
  margin: 0 -15px;
}
.sidebar-module-inset {
  padding: 15px;
  background-color: #f0f0ff;
  border-radius: 4px;
}
.sidebar-module-inset p:last-child,
.sidebar-module-inset ul:last-child,
.sidebar-module-inset ol:last-child {
  margin-bottom: 0;
}
.sidebar-module-inset h4 {
	font-size: 120%;
	font-weight:bold;
}
.sidebar-module-inset ol.list-unstyled li	{
	text-indent: -1em;
	margin-left:1em;
}

/* Pagination */
.pager {
  margin-bottom: 60px;
  text-align: left;
}
.pager > li > a {
  width: 140px;
  padding: 10px 20px;
  text-align: center;
  border-radius: 30px;
}

/* =GIS formatting
-------------------------------------------------------------- */
.newspaper {
    column-count: 5;
    column-gap: 2em;
}
.streets {
    column-count: 3;
    column-gap: 2em;
}
.newspaper p, .streets p	{
	margin:0;
}
/* End of GIS formatting */

/* Space around input boxes */
input[type=text] {
	margin: 1ex 0;
}

/*
 * Blog posts
 */

.blog-post {
  margin: 0 1em 60px 1em;
}
.blog-post-title {
  margin-bottom: 5px;
  font-size: 40px;
}
.blog-post-meta {
  margin-bottom: 20px;
  color: #999;
}

/*
 * Tag pages
 */
h1.tagged	{
	margin:1ex -10% 1ex 1ex;
	padding:1ex;
	font-size: 30pt;
	color:white;
	background-color: #354275;
}
@media (max-width:991px){
	h1.tagged	{
		font-size: 22pt;
	}
}
@media (max-width:600px){
	h1.tagged	{
		font-size: 5vw;
	}
}
/*
 * Footer
 */

.blog-footer {
  padding: 20px 0;
  color: #BBB;
  text-align: center;
  background-color: #354275;
  border-top: 1px solid #e5e5e5;
}
.blog-footer a {
	color: #cdddeb;
}
.blog-footer a:hover {
	color: white;
	text-decoration: none;
}
.blog-footer p:last-child {
  margin-bottom: 0;
}
.blog-nav li a {
    color: #d9dcf0;
}
.blog-nav li a:hover, .blog-nav li a:active {
    color: #fff;
    text-decoration: none;
}
/* Support fluid navigation
-------------------------------------------------------------- */
nav.blog-nav	{
	min-height: 68px;
	height: 68px;
}
.conditional-break {
	display:inline;
}
h1.small-title, h1.small-title a	{
	display:none;
	color:white !important;
	margin: 3px 5px 0px 10px;
	font-weight: normal;
}
h1.small-title a:hover, h1.small-title a:focus {
	text-decoration: none;
}
.small-description {
	font-size: 2.8vw;
	color: black;
	font-weight:bold;
	margin:-26vw 0 22vw 15px;
	display: none;
}
#menu-trigger {
	position: absolute;
	top: 5px;
	right: 15px;
	display: none;
	z-index:10;
	text-align: center; 
}
#menu-trigger span {
	display: inline-block;
	padding: 0 14px 5px 14px;
   background-color: transparent;
   color: white;
   cursor: pointer;
   font-size: 20pt;
}
nav#menu-mobile {
	display: none;
   font-family: "Lucida Sans Unicode", Arial, Helvetica, sans-serif;
	font-size: 90%;
	font-weight: bold;
	max-width:10em;
	margin:0 1em;
}


nav#menu-mobile ul {
	margin: 0;
	padding-bottom:1ex;
	text-align:left;
	list-style-type:none;
}
nav#menu-mobile ul li+li {
	margin-top: 10px;
}
nav#menu-mobile a {
	color: color: #E7C959;;
	padding: 0;
	width:auto;
}
nav#menu-mobile a:hover, nav#menu-mobile ul.sub-menu a:hover {
	color: white;
	text-decoration: none;
}
nav#menu-mobile ul.sub-menu {
	position: static;
	display: inline-block;
	margin: 0;
}
nav#menu-mobile ul.sub-menu li {
	display: inline-block;
	margin: 10px 2px;
}

/* =Media Queries
-------------------------------------------------------------- */
@media all and (max-width: 600px) {
	h1.small-title, h1.small-title a	{
		display: block;
	}
	h1.blog-title	{
		display: none;
	}
	.blog-header	{
		left:20%;
		top:40px;
	}
	.blog-description {
		display: none;
	}
	.small-description {
		display:block;
	}
	#menu-trigger {
		display: block;
	}

	#menu-header-menu {
		display: none;
	}

	dl	{
		margin-left:0;
	}
	dd {
		margin-left: 2em;
	}
	.alignright	{
		display: none;
	}
	.mobile-centre	{
		display:block;
		max-width:100%;
	}
}