#page {
  display: grid;
  grid-template-columns: 49px 250px fit-content(840px);
  grid-template-rows: auto;
  grid-template-areas:
    "header header header"
    "header-nav header-nav header-nav"
    "background navigation main"
    "background navigation footer";
}

#page > header {
  grid-area: header;
  img {
    width: 1006px;
    max-width: 100%;
    object-fit: cover;
    overflow: hidden;
  }
}

#page > nav {
  grid-area: header-nav;
}

#page > aside {
  grid-area: navigation;
  background-color: #6699cc;
  border-left: 13px solid #369;
  padding: 48px 6px 6px 6px;
}

#page > #content {
  grid-area: main;
}

#page > #footer {
  grid-area: footer;
}

#page > #background {
  grid-area: background;
  background: url(../../images/theme/background_left.png) no-repeat;
}

/* =Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html
-------------------------------------------------------------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  border: 0;
  font-family: inherit;
  font-size: 13px;
  font-style: inherit;
  font-weight: inherit;
  margin: 0;
  outline: 0;
  padding: 0;
  vertical-align: baseline;
}
:focus {/* remember to define focus styles! */
  outline: 0;
}
body {
  background: #fff;
  line-height: 1;
}
ol, ul {
  list-style: none;
}
table {/* tables still need 'cellspacing="0"' in the markup */
  border-collapse: separate;
  border-spacing: 0;
}
caption, th, td {
  font-weight: normal;
  text-align: left;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
}
blockquote, q {
  quotes: "" "";
}
a img {
  border: 0;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}


/* =Structure
----------------------------------------------- */

body {
  background: #fff;
  padding: 0;
}
#page {
  background: #fff;
  margin: 0;
}

#primary {
  margin: 0;
  width: 100%;
}
#content {
  margin: 15px 0 0 0;
  padding: 10px 7.6%;
  border: 2px solid #6699cc;
  border-left: 0 none;
}
#secondary {
  margin-left: 0;
  margin-right: 0;
  padding: 10px;
  width: 367px;
  min-width: 25%;
  height: 100%;
  background: #6699cc;
  border-left: 6px solid #369; /*tw: 5px solid #369*/
}

nav#access {
  margin-top: -30px;
}

footer {
  margin-left: 1ex;
}
#copyright {
  color: #666;
  font-size: 0.7em;
}

#content-table {
  width: 100%;
  min-height: 310px;
}

#content-table td {
  height: 100%;
}

/* Alignment */
.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


/* =Global
----------------------------------------------- */

body, input, textarea {
  font: 13px "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #404040;
  font-weight: 300;
  line-height: 1.425;
}

/* Headings */
h1,h2,h3,h4,h5,h6 {
  clear: both;
}
hr {
  background-color: #ccc;
  border: 0;
  height: 1px;
  margin-bottom: 1.625em;
}

/* Text elements */
p {
  margin-bottom: 1.625em;
}
ul, ol {
  margin: 0 0 1.625em 2.5em;
}
ul {
  list-style: square;
}
ol {
  list-style-type: decimal;
}
ol ol {
  list-style: upper-alpha;
}
ol ol ol {
  list-style: lower-roman;
}
ol ol ol ol {
  list-style: lower-alpha;
}
ul ul, ol ol, ul ol, ol ul {
  margin-bottom: 0;
}
dl {
  margin: 0 1.625em;
}
dt {
  font-weight: bold;
}
dd {
  margin-bottom: 1.625em;
}
strong {
  font-weight: bold;
}
cite, em, i {
  font-style: italic;
}
blockquote {
  font-family: Georgia, "Bitstream Charter", serif;
  font-style: italic;
  font-weight: normal;
  margin: 0 3em;
}
blockquote em, blockquote i, blockquote cite {
  font-style: normal;
}
blockquote cite {
  color: #666;
  font: 12px "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
pre {
  background: #f4f4f4;
  font: 13px "Courier 10 Pitch", Courier, monospace;
  line-height: 1.5;
  margin-bottom: 1.625em;
  overflow: auto;
  padding: 0.75em 1.625em;
}
code, kbd {
  font: 13px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
abbr, acronym, dfn {
  border-bottom: 1px dotted #666;
  cursor: help;
}
address {
  display: block;
  margin: 0 0 1.625em;
}
ins {
  background: #fff9c0;
  text-decoration: none;
}
sup,
sub {
  font-size: 0.8em;
  height: 0;
  line-height: 1;
  position: relative;
  vertical-align: baseline;
}
sup {
  bottom: 1ex;
}
sub {
  top: .5ex;
}

/* Links */
a {
  color: #036;
  font-weight: bold;
  text-decoration: none;
}
a:focus,
a:active,
a:hover {
  text-decoration: underline;
}

/* =Header
----------------------------------------------- */

#branding {
  height: 96px; /*tw*/
  width: 100%;
  border-bottom: 15px solid #e5e5e5;
}


/* =Menu
-------------------------------------------------------------- */

#access {
  clear: both;
}
#access ul {
  font-size: 13px;
  font-size: 1.2em;
  text-transform: lowercase;
  list-style: none;
  margin: 0 0 0 207px; /* tw: 200px */
  padding-left: 0;
}
#access li {
  float: left;
  position: relative;
}
#access a {
  display: block;
  line-height: 1em;
  padding: 1px 1.2125em 0 1.2125em;
  color: #69C;
  text-decoration: none;
  /* use font from google for navigation */
  font-size: 16px;
}
#access ul ul {
  -moz-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
  -webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
  box-shadow: 0 3px 3px rgba(0,0,0,0.2);
  display: none;
  float: left;
  margin: 0;
  position: absolute;
  top: 3.333em;
  left: 0;
  width: 188px;
  z-index: 99999;
}
#access ul ul ul {
  left: 100%;
  top: 0;
}
#access ul ul a {
  background: #f9f9f9;
  border-bottom: 1px dotted #ddd;
  color: #444;
  font-size: 13px;
  font-weight: normal;
  height: auto;
  line-height: 1.4em;
  padding: 10px 10px;
  width: 168px;
}
#access li:hover > a,
#access ul ul :hover > a,
#access a:focus {
  color: #369;
}
#access li:hover > a,
#access a:focus {
  color: #369;
}
#access ul li:hover > ul {
  display: block;
}

/* =Content
----------------------------------------------- */

#main {
  padding: 0 0 0 49px;
  background: url(../../images/theme/background_left.png) no-repeat;
  position: relative;
  top: -15px;
  width: 827px;
  width: 960px;
  min-height: 350px;
}
.entry-title {
  padding-right: 76px;
}
.entry-title {
  clear: both;
  color: #404040;
  font-weight: bold;
  font-size: 1.6em;
  line-height: 1.5em;
  padding-bottom: .3em;
  padding-top: 15px;
}
.entry-title,
.entry-title a {
  color: #404040;
  text-decoration: none;
}
.entry-title a:hover,
.entry-title a:focus,
.entry-title a:active {
  color: #1982d1;
}
.entry-content {
  padding: 0.5em 0 0;
}
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-size: 0.9em;
  /*letter-spacing: 0.1em;*/
  line-height: 2.6em;
  font-weight: bold;
}
.entry-content table {
  border-bottom: 1px solid #ddd;
  margin: 0 0 1.625em;
  width: 100%;
}
.entry-content th {
  color: #666;
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 2.6em;
  text-transform: uppercase;
}
.entry-content td {
  border-top: 1px solid #ddd;
  padding: 6px 10px 6px 0;
}

/* Images */
img[class*="align"] {
  height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
}
img.size-full {
  max-width: 97.5%;
  width: auto; /* Prevent stretching of full-size images with height and width attributes in IE8 */
}
img.alignleft,
img.alignright,
img.aligncenter {
  margin-bottom: 1.625em;
}
p img,

/* Image borders */
img[class*="align"],
a:focus img[class*="align"],
a:hover img[class*="align"],
a:active img[class*="align"] {/* Add some useful style to those fancy borders for linked images ... */
  background: #eee;
  border-color: #bbb;
}


/* =yWorks specific
----------------------------------------------- */
h1 {
  font-size: 16px;
}
h1.section {
  border-bottom: 1px solid #cccccc;
  border-top: 1px solid #cccccc;
  background-color: #e5e5e5;
  padding: 3px;
  margin-top: 14px;
}

h2 {
  font-size: 14px;
  border-bottom: 1px solid #FD9E11;
  padding-bottom: 5px;
  margin-bottom: 5px;
  margin-top: 0;
  padding-top: 10px;
}

h3 {
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 5px;
  padding-top: 0;
}

.box h2 {
  font-size: 14px;
  border-bottom: 1px solid #FD9E11;
  padding-bottom: 5px;
  margin-bottom: 5px;
  margin-top: 0;
  padding-top: 0;
}

.box h3 {
  font-size: 14px;
  margin-top: 0;
  padding-top: 0;
}

h2.simple {
  border: 0 none;
}

.box {
  background: #F0F0F0;
  padding: 15px;
}

p.box {
  background: #F0F0F0;
  padding: 15px;
}


/* =Responsive Structure
----------------------------------------------- */

@media (max-width: 800px) {
  /* Simplify the basic layout */
  #main #content {
    /*margin: 0 7.6%;*/
    width: auto;
  }
  #main #secondary {
    float: none;
    margin: 0 7.6%;
    width: auto;
  }
  /* Make sure embeds fit their containers */
  embed,
  object {
    max-width: 100%;
  }
}

@media (max-width: 650px) {
  /* @media (max-width: 650px) Reduce font-sizes for better readability on smaller devices */
  body, input, textarea {
    font-size: 13px;
  }
  #access ul {
    font-size: 1em;
  }
  .entry-title {
    font-size: 21px;
  }
  blockquote {
    margin: 0;
  }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
  body {
    padding: 0;
  }
  #page {
    margin-top: 0;
  }
  #branding {
    border-top: none;
  }
}


/* =Print
----------------------------------------------- */

@media print {
  body {
    background: none !important;
    font-size: 10pt;
  }
  #page {
    clear: both !important;
    display: block !important;
    float: none !important;
    max-width: 100%;
    position: relative !important;
  }
  #branding {
    border-top: none !important;
    padding: 0;
  }
  #branding img {
    display: none;
  }
  #access {
    display: none;
  }
  #main {
    border-top: none;
    box-shadow: none;
  }
  #primary {
    float: left;
    margin: 0;
    width: 100%;
  }
  #content {
    margin: 0;
    width: auto;
  }
  #content nav {
    display: none;
  }
  .entry-title {
    font-size: 21pt;
  }
}
