/*
 * Showcase Content Management System
 * Cascading Style Sheets - HTML5 layout for screens < 960px
 *
 * Copyright (C) Damian Walker 2015
 * Created: 24-Oct-2015
 */

/* apply a natural box layout model to all elements */
*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* general body layout styling */
body {
    line-height: 1.5em;
    margin: 0px;
}

/*----------------------------------------------------------------------
 * Header section
 */

/* header section not shown on mobiles */
body > header {
    display: none;
}

/*----------------------------------------------------------------------
 * Navigation section
 */

/* navigation section */
nav {
    line-height: 2em;
}

/* header for mobile devices */
nav > header {
    margin: 0.5em;
    padding: 0;
}
nav > header:after {
    float: right;
    content: "\25bc";
}

/* content of the navigation section */
nav > ul {
    display: none;
    list-style-type: none;
    padding: 0px;
    margin: 0px;
    width: 100%;
}

/* spacing for a navigation link */
nav > ul li {
    display: inline-block;
    margin: 0% 1%;
    overflow: hidden;
    padding-left: 1em;
    vertical-align: top;
    width: 98%;
}

/* submenus start off invisible */
nav > ul ul {
    display: none;
}

/* spacing for search (the last navigation link */
nav > ul li.search {
}

/* active submenus and selected others are visible */
nav > ul > li.active ul,
nav > ul > li.auto-mobile-dropdown ul {
    display: block;
}

/* formatting for submenu links */
nav > ul > li > ul > li {
    display: block;
    white-space: nowrap;
    padding: 0 2em;
}

/* navigation link */
nav > ul > li > a {
    display: block;
    width: 100%;
}

/*----------------------------------------------------------------------
 * Container section
 */

/* content section */
.container {
    margin: 0 0.5em;
}

/*
 * Standardised elements
 */

/* page heading */
.container h1 {
    font-size: 1.44em;
    padding: 0%;
    margin: 4px 0px;
    text-align: left;
}

/* section heading */
.container h2 {
    font-size: 1.2em;
    padding: 0%;
    margin: 8px 0px;
    text-align: left;
}

/*----------------------------------------------------------------------
 * Content section
 */

/* content section */
.content {
    width: 100%;
}

/* summary section */
.content .summary {
    overflow: auto;
}

/* summary image */
.content .summary img {
    float: right;
    margin-left: 1em;
    max-width: 50%;
}

/*
 * Breadcrumbs
 */

/* the breadcrumb list */
.content .breadcrumbs {
    list-style-type: none;
    padding-left: 0;
}

/* individual breadcrumbs */
.content .breadcrumbs li {
    display: inline;
}

/* separator for breadcrumbs */
.content .breadcrumbs li:before {
    content: '\00bb';
}

/* no separator before first breadcrumb */
.content .breadcrumbs li:first-of-type:before {
    display: none;
}

/*
 * Boxed sections
 */

/* basic boxed layout */
.boxed {
}

/*
 * Public forms
 */

/* button section */
section.buttons {
    margin-top: 0.5em;
}

/* individual buttons */
section.buttons button {
    margin: .5em 0;
    padding: .5em;
}

/*
 * Featured items
 */

/* featured container */
.content .featured-items {
}

/* featured item */
.content .featured-item {
}

/* portal page text */
#portal .content .text {
}

/* first paragraph on left-hand column */
#portal .content .text > p:first-child {
}

/*----------------------------------------------------------------------
 * Upper inset section
 */

/* upper inset section */
.upper-inset {
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    width: 100%;
}

/* content in the upper inset section */
.upper-inset > * {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* lower inset section for media */
.lower-inset-media {
    text-align: center;
}

/* cancel central alignment for media content */
.lower-inset-media > * {
    text-align: left;
}

/* lower inset section for media */
.lower-inset-video {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 35px;
    height: 0;
    overflow: hidden;
    text-align: center;
}

/* cancel central alignment for media content */
.lower-inset-video > * {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: left;
}

/*----------------------------------------------------------------------
 * Lower inset section
 */

/*----------------------------------------------------------------------
 * Right sidebar section
 */

/* right sidebar section */
.right-sidebar {
    width: 100%;
}

/* unordered lists in the sidebar */
.right-sidebar ul {
    list-style-type: none;
    padding-left: 0;
}

/*----------------------------------------------------------------------
 * Below all section
 */

/* align with text */
.below-all {
}

/*----------------------------------------------------------------------
 * Dialogue boxes
 */

/* outer dialogue box */
dialog {
    border: none;
    position: fixed;
    height: 2em;
    left: 1%;
    margin-top: -1em;
    padding: 0;
    text-align: center;
    top: 50%;
    width: 98%;
    z-index: 9999;
}

/* text within the dialogue box */
dialog p {
    line-height: 2em;
    margin: 0;
}

/*----------------------------------------------------------------------
 * Footer section
 */

/* footer section */
body > footer {
    clear: both;
    margin: 0 0.5em;
    margin-top: 2em;
}

/* internal footer div */
body > footer > section {
    border-top: 1px solid white; /* enforces div height */
    margin-top: -1px; /* makes border hack invisible */
}

/* footer paragraph */
body > footer > section > p {
    margin: 1%;
}

/* footer links */
body > footer > section > ul {
    float: right;
    list-style-type: none;
    padding: 0;
    margin: 1%;
}
body > footer > section > ul > li {
    display: inline-block;
    padding: 0 0.5em;
    vertical-align: top;
}
body > footer > section > ul > li > img {
}
