:root {
  --spacing: 2.5rem;
  --inner-spacing: 1rem;
  --primary-colour: #007ead;
  --secondary-colour: #ff0000;
  --body-font-family: sans-serif;
  --body-font-size: 14px;
  --body-line-height: 1.6em;
  --body-background-colour: #fefefe;
  --body-colour: #010101;
  --link-colour: #007ead;
  --header1-font-family: sans-serif;
  --header1-font-family: 'Arial', sans-serif;
  --header1-font-size: 24px;
  --header1-line-height: 1.2;
  --header1-colour: #007ead;
  --header2-font-family: 'Arial', sans-serif;
  --header2-font-size: 21px;
  --header2-line-height: 1.2;
  --header2-colour: #010101;
  --header3-font-family: 'Arial', sans-serif;
  --header3-font-size: 16px;
  --header3-line-height: 1.2;
  --header3-colour: #007ead;
  --header4-font-family: 'Arial', sans-serif;
  --header4-font-size: 15px;
  --header4-line-height: 1.2;
  --header4-colour: #007ead;
}

.grid {
    display: grid;
    grid-gap: var(--spacing);
    min-width: 0;
}

.grid.no-gap {
    grid-gap: 0;
}

.grid.small-gap {
    grid-gap: var(--inner-spacing);
}

.grid.two-columns {
    grid-template-columns: 1fr 1fr;
}

.grid.three-columns {
    grid-template-columns: 1fr 1fr 1fr;
}

.grid.four-columns {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.grid.columns {
    grid-template-columns: min-content;
}

/* a|bbb */
.grid.two-columns.one-quarter-left {
    grid-template-columns: 1fr 3fr
}

/* aaa|b */
.grid.two-columns.three-quarters-left {
    grid-template-columns: 3fr 1fr;
}

/* a|bb */
.grid.two-columns.one-third-left {
    grid-template-columns: 1fr 2fr;
}

/* aa|b */
.grid.two-columns.two-thirds-left {
    grid-template-columns: 2fr 1fr;
}

/* a|bbbbbb */
.grid.two-columns.one-sixth-left {
    grid-template-columns: 1fr 5fr;
}

/* a|bb|c */
.grid.three-columns.big-centre {
    grid-template-columns: 1fr 50% 1fr;
}

.grid.two-rows {
    grid-template-rows: 1fr 1fr;
}

.grid.three-rows {
    grid-template-rows: 1fr 1fr 1fr;
}

.grid.four-rows {
    grid-template-rows: 1fr 1fr 1fr 1fr;
}

.grid.rows {
    grid-template-rows: min-content;
}

.grid.two-rows.one-quarter-top {
    grid-template-rows: 1fr 3fr
}

.grid.two-rows.three-quarters-top {
    grid-template-rows: 3fr 1fr;
}
.grid.two-rows.one-third-top {
    grid-template-rows: 1fr 2fr;
}

.grid.two-rows.two-thirds-top {
    grid-template-rows: 2fr 1fr;
}

.grid.three-rows.big-centre {
    grid-template-rows: 1fr 50% 1fr;
}

@media (max-width: 768px) {
    .grid.two-columns,
    .grid.three-columns,
    .grid.four-columns,
    .grid.two-columns.one-quarter-left,
    .grid.two-columns.three-quarters-left,
    .grid.two-columns.one-third-left,
    .grid.two-columns.two-thirds-left,
    .grid.two-columns.one-sixth-left,
    .grid.three-columns.big-centre {
        grid-template-columns: 1fr;
    }
    .grid.two-rows,
    .grid.three-rows,
    .grid.four-rows,
    .grid.two-rows.one-quarter-top,
    .grid.two-rows.three-quarters-top,
    .grid.two-rows.one-third-top,
    .grid.two-rows.two-thirds-top,
    .grid.three-rows.big-centre {
        grid-template-rows: 1fr;
    }
}
* {
    box-sizing: border-box;
}

body {
    min-height: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-family: 'arial', sans-serif;
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
    background-color: var(--body-background-colour);
    color: var(--body-colour);
}

h1 {
    color: var(--header1-colour);
    font-family: var(--header1-font-family);
    font-size: var(--header1-font-size);
    line-height: var(--header1-line-height);
}

h2 {
    color: var(--header2-colour);
    font-family: var(--header2-font-family);
    font-size: var(--header2-font-size);
    line-height: var(--header2-line-height);
}

h3 {
    color: var(--header3-colour);
    font-family: var(--header3-font-family);
    font-size: var(--header3-font-size);
    line-height: var(--header3-line-height);
}

h4 {
    color: var(--header4-colour);
    font-family: var(--header4-font-family);
    font-size: var(--header4-font-size);
    line-height: var(--header4-line-height);
}
a {
    color: var(--link-colour);
}

img {
    width: 100%;
    height: auto;
}

img[align="left"], img[align="right"] {
    width: inherit;
}

img[align="left"] {
    margin-right: var(--inner-spacing);
}

img[align="right"] {
    margin-left: var(--inner-spacing);
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.responsive-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.responsive-container iframe, .responsive-container embed {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
}

div > *:first-child, section > *:first-child, main > *:first-child, article > *:first-child {
    margin-top: 0;
}

div > *:last-child, section > *:last-child, main > *:last-child, article > *:last-child {
    margin-bottom: 0;
}

a.button, button {
    text-align: center;
    font-size: 1rem;
    text-decoration: none;
    display: block;
    background-color: var(--primary-colour);
    color: var(--body-colour);
    padding: calc(var(--spacing) / 4) 0;
}

article[itemProp="blogPost"] h2 {
    margin-top: 0;
}
.container, .headercontainer {
	margin: 0 auto;
	/*
	width: 90%;
	max-width: 990px;
	*/
	width: 990px;
}

h1 {
    margin-top: 0;
}

a {
	text-decoration: none;
	transition: all 0.3s ease;
	color: #007ead;
}

a:hover {
	color: #066a92;
	text-decoration: underline;
}

blockquote {
	padding-left: 20px;
	padding-right: 8px;
	border-left: 5px solid #CCCCCC;
	font-style: italic;
}

.fr-dii.fr-fil {
    margin: 0 1rem 1rem 0;
    width: 200px;
    max-width: 30%;
    display: block;
    float: left;
}

.italic {
	font-style: italic;
}

.small {
	font-size: 75%;
	line-height: 1.4rem;
	font-weight: normal;
}

.large {
	font-size: 125%;
	line-height: 1.6rem;
}

.strong {
	font-weight: bold;
}

.black {
	color: #000;
}

.red {
    color: #ff0000;
}

.blue {
	color: #007ead;
}

.right {
	text-align: right;
}

.clear {
	clear: both;
	border: none;
	outline: none;
	background: none;
}

hr.blue {
	height: 3px;
	width: 100%;
	border: none;
	background-color: var(--primary-colour);
	outline: none;
}

hr.white {
	clear: both;
	border: none;
	height: 2px;
	background-color: var(--body-background-colour);
	width: 100%;
	outline: none;
	margin: 5px 0;
}

.center {
	text-align: center;
	margin: 0 auto;
}

label {
	display: block;
	margin-top: 10px;
}

/*--- Header ---*/
header {
    margin-bottom: var(--inner-spacing);
}

.headercontainer {
	height: 200px;
	background: url('/storage/app/media/design/header.jpg') no-repeat top right;
	text-align: left;
}

header h1, header h1 a, header h2 {
	line-height: 1em;
	margin: 0;
	color: #007ead;
	text-decoration: none;
}

header h1 {
	padding: 65px 0 0 10px;
	font-size: 2.75em;
}

header h2 {
	padding-left: 10px;
	font-size: 2em;
}

/*--- Nav ---*/
#sidebar ul {
	margin: 0 0 15px 0;
	padding: 0;
	list-style: none;
	font-weight: bold;
}

#sidebar ul li {
	padding: 10px 0 10px 0;
	border-bottom: #dedede 1px solid;
}

#sidebar ul li:first-child {
	padding: 0 0 10px 0;
}

#sidebar ul li:last-child {
	border-bottom: none;
}


/*--- Search ---*/
.search-form {
    margin-bottom: var(--spacing);
}

.search form {
    display: grid;
    grid-template-columns: 2rem 1fr;
}

.search input {
    width: 100%;
    border: #ccc 1px solid;
    border-left: none;
    outline: none;
    padding: 0.5rem 0;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    background-color: var(--body-background-colour);
}

.search i {
    display: flex;
    align-items: center;
    justify-content: center;
    border: #ccc 1px solid;
    border-right: none;
    height: 100%;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

/*--- Sidebar ---*/
#toggle-nav {
    display: none;
    font-size: var(--body-font-size);
    padding: calc(var(--inner-spacing) / 2) var(--inner-spacing);
    background: none;
    border: #ccc 1px solid;
    cursor: pointer;
    margin: 0 auto var(--inner-spacing) auto;
}

#sidebar {
	text-align: center;
	color: #007ead;
	padding: 5px;
	margin: 0 0 10px 0;
	width: 200px;
	/*font-size: 12px;*/
	float: left;
}

#sidebar .hits {
	margin: 25px 0 0 ;
	color: #000;
}

#sidebar ul li {
    line-height: 1rem;
}

/*--- Content ---*/
section#content .container {
	position: relative;
	padding-top: 1.75em;
}

main {
	margin: 0 0 10px 225px;
}

article p {
    text-align: justify;
}

.item-page {
	position: relative;
}

.item-page h1 {

}

.item-page img, .item-pagejustify img {
	padding: 0 10px 5px 10px;
}

section.justify .item-page {
	text-align: justify;
}

ul li {
	line-height: calc(var(--body-line-height) * 1.1);
}

.actions {
    margin: var(--inner-spacing) 0;
    font-size: 1.25rem;
}

.actions a {
    margin-right: 0.25rem;
}

.years {
    text-align: center;
}

.years a {
    display: inline-block;
    margin: 0 calc(var(--inner-spacing) / 2);
}

.years a.active {
    text-decoration: underline;
}

/*--- Pagination ---*/
.pagination {
	font-weight: bold;
}

.pagination .counter {
	text-align: center;
	color: #a9abae;
}

.pagination ul {
	list-style: none;
	margin-left: -40px;
	text-align: center;
}

.pagination ul li {
	display: inline-block;
	padding: 0 5px;
	color: #007ead;
}

.pagination ul li a {
	color: #a9abae;
}

.pagination ul li a:hover {
	color: #007ead;
}

ul.pagenav {
	list-style: none;
	margin-left: -40px;
	text-align: center;
    float: left;
}

ul.pagenav li {
	display: inline-block;
	padding: 0;
}


/*--- Year Lists ---*/
.select-year {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.select-year li {
	line-height: 1.5em;
	padding: 0 10px;
	display: inline;
}

.articles-by-year {
	margin: 0;
	padding: 0;
	list-style: none;
}

.articles-by-year li.year {
	font-size: 1.75em;
	font-weight: bold;
	margin: 20px 0 10px 0;
}

.specific-year li {
	margin: 5px 0;
}

/*--- Search Results ---*/
.search-results dt {
	margin-top: 10px;
}


/*--- Footer ---*/
footer {
	clear: both;
	border-top: #007ead 5px solid;
	padding: 10px 0;
	margin-top: 15px;
}

footer ul {
	display: table;
	width: 100%;
	table-layout: fixed;
	padding: 0;
	margin: 0;
	list-style: none;
}

footer ul li {
	text-align: center;
	display: table-cell;
}

footer a, footer p {
	color: #a9abae;
}

footer a:hover {
	color: #007ead;
}

@media print {
    header, footer, #sidebar {
        display: none;
    }
    main {
        margin: 0 30mm;
        line-height: 1.6rem;
        /*font-size: 12pt;*/
        font-size: 16px;
    }
    main .actions {
        display: none;
    }
}

@page {
    margin: 20mm 0 18mm 0;
}

/*
@media (max-width: 768px) {
    header {
        margin-bottom: 0;
    }
    .headercontainer {
        background: none;
        height: 150px;
        text-align: center;
    }
    header h1 {
        padding-top: var(--spacing);
    }
    main {
        margin-left: 0;
    }
    #toggle-nav {
        display: block;
    }
    #sidebar {
        display: none;
        float: none;
        margin: 0 auto;
    }
    #sidebar.active {
        display: block;
    }
}
*/
