/*
 * Showcase Content Management System
 * 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 {
    font-size: 16px;
    line-height: 1.5em;
    margin: 0px;
    position: relative;
}

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

/* header section */
body > header {
    height: 80px;
    padding: 1em 0;
    text-align: center;
}

/* title in header section */
body > header h1 {
    font-size: 32px;
    margin: 0;
    line-height: 32px;
}

/* tagline in header section */
body > header p {
    display: inline;
    margin: 0;
}

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

/* navigation section */
nav {
    height: 32px;
    line-height: 30px;
    overflow: visible;
    width: 960px;
    margin: 0 auto;
}

/* header for mobile devices */
nav > header {
    display: none;
}

/* main navigation */
nav > ul {
    list-style-type: none;
    margin: 0 auto;
    padding: 0px 8px;
    position: relative;
    width: 960px;
}

/* submenus start off invisible */
nav > ul ul {
    display: none;
    list-style-type: none;
    padding: 0;
    left: -8px;
    position: absolute;
    z-index: 99;
}

/* spacing for a navigation link */
nav > ul li {
    display: inline-block;
    margin-right: 8px;
    padding: 0px 24px 0px 0px;
    position: relative;
    vertical-align: top;
}

/* spacing for search (the last navigation link */
nav > ul li.search {
    padding-right: 0px;
}

/* submenu appears when parent is hovered */
nav > ul > li:hover > ul {
    display: block;
}

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

/* extra positioning for admin link */
nav > ul > li.search {
    float: right;
    margin-left: 8px;
    margin-right: 0px;
}

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

/* container section */
.container {
    display: flex;
    flex-flow: row wrap;
    margin: 0px auto;
    margin-bottom: 32px;
    overflow: auto;
    /* padding-top: 0; */
    width: 960px;
}

/* page heading */
.container h1 {
    font-size: 20px;
    padding: 0px;
    margin: 8px 0px;
    text-align: left;
    width: 100%;
}

/* section heading */
.container h2 {
    clear: both;
    font-size: 18px;
    padding: 0px;
    margin: 8px 0px;
    text-align: left;
    width: 100%;
}

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

/* content section */
.content {
    flex: 1;
    min-width: 480px;
    padding-top: 1em;
}

/*
 * Summaries in link lists
 */

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

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

/*
 * 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;
}

/*
 * Public forms
 */

/* button section */
section.buttons {
    margin-bottom: 1em;
    text-align: right;
}

/* individual buttons */
section.buttons button {
    margin: 3px 0px;
    padding: 3px 0px;
    width: 160px;
}

/*
 * Boxed sections
 */

/* basic boxed layout */
.boxed {
    margin: 8px;
    padding: 8px;
}

/*
 * Featured items
 */

/* featured container */
.content .featured-items {
    display: flex;
    flex-flow: row wrap;
}

/* featured item */
.content .featured-item {
    margin: 0;
    margin-bottom: 0.5em;
    padding-right: 16px;
    width: 320px;
}

/* portal page text */
#portal .content .text {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
    padding-top: 8px;
}

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

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

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

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

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

/* lower inset section */
.lower-inset {
    font-size: 14px;
    margin-left: 40px;
    margin-right: 40px;
    line-height: 1.5em;
}

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

/* special stuff for a figure */
.lower-inset > figure {
    margin: 0;
}

/* special stuff for an image within a figure */
.lower-inset > figure > img {
    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 {
    text-align: center;
}

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

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

/* right sidebar section */
.right-sidebar {
    width: 240px;
    padding-left: 40px;
    padding-top: 1em;
}

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

/* list items in the sidebar */
.right-sidebar ul li {
    padding-left: 1em;
    text-indent: -1em;
}

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

/* align with text */
.below-all {
    width: 720px;
}

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

/* outer dialogue box */
dialog {
    border: none;
    position: fixed;
    height: 40px;
    left: 50%;
    margin-left: -240px;
    margin-top: -20px;
    padding: 0;
    text-align: center;
    top: 50%;
    width: 480px;
    z-index: 9999;
}

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

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

/* footer section */
body > footer {
    background-color: white;
    opacity: 100%;
    bottom: 0px;
    height: 24px;
    position: fixed;
    width: 100%;
}

/* visible portion of footer section */
body > footer > section {
    line-height: 24px;
    margin: 0 auto;
    width: 960px;
}

/* footer paragraph */
body > footer > section > p {
    margin: 0;
    padding-left: 12px;
}

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