* {
  box-sizing: border-box;
}

table#tlayout {
  border: none;
  border-collapse: separate;
  background: white;
  width: 100%;
  max-width: 100%;
}

body {
  background: white;
  font-family: Helvetica, Arial, sans-serif;
  padding-bottom: 8px;
  margin: 0;
  overflow-x: hidden;
}

#layout-menu {
  background: #f6f6f6;
  border: 1px solid #dddddd;
  padding-top: 0.5em;
  padding-left: 8px;
  padding-right: 8px;
  font-size: 1em;
  width: auto;
  white-space: nowrap;
  text-align: left;
  vertical-align: top;
  max-width: 100%;
}

#layout-menu td {
  background: #f4f4f4;
  vertical-align: top;
}

#layout-content {
  padding-top: 0;
  padding-left: 1em;
  padding-right: 1em;
  border: none;
  background: white;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

#layout-menu a {
  line-height: 1.5em;
  margin-left: 0.5em;
}

a {
  color: #224b8d;
  text-decoration: none;
}

a:hover {
  border-bottom: 1px gray dotted;
}

#layout-menu a:link,
#layout-menu a:visited,
#layout-menu a:hover {
  color: #527bbd;
  text-decoration: none;
}

div.menu-category {
  border-bottom: 1px solid gray;
  margin-top: 0.8em;
  padding-top: 0.2em;
  padding-bottom: 0.1em;
  font-weight: bold;
}

div.menu-item {
  padding-left: 16px;
  text-indent: -16px;
}

div#toptitle {
  padding-bottom: 0.2em;
  margin-bottom: 1.5em;
  border-bottom: 3px double gray;
}

div#toptitle h1 {
  margin-bottom: 0;
  padding-bottom: 0.1em;
  padding-top: 0;
  margin-top: 0.5em;
  border-bottom: none;
}

h1,
h2,
h3 {
  color: #527bbd;
  margin-top: 0.7em;
  margin-bottom: 0.3em;
  padding-bottom: 0.2em;
  line-height: 1;
  padding-top: 0.5em;
  border-bottom: 1px solid #aaaaaa;
}

h1 {
  font-size: 165%;
}

h2 {
  padding-top: 0.8em;
  font-size: 125%;
}

h3 {
  font-size: 110%;
  border-bottom: none;
}

p {
  margin-top: 0;
  margin-bottom: 0.8em;
  padding: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

ul,
ol,
dl {
  margin-top: 0.2em;
  padding-top: 0;
  margin-bottom: 0.8em;
}

ul {
  list-style-position: outside;
  list-style-type: square;
}

ol {
  list-style-position: outside;
  list-style-type: decimal;
}

li p {
  margin-bottom: 0.3em;
}

div#footer {
  font-size: small;
  border-top: 1px solid #c0c0c0;
  padding-top: 0.1em;
  margin-top: 4em;
  color: #c0c0c0;
}

div#footer-text {
  float: left;
  padding-bottom: 8px;
}

img {
  border: none;
}

table {
  border: 2px solid black;
  border-collapse: collapse;
}

td {
  padding: 2px 0.5em;
  text-align: center;
  border: 1px solid gray;
}

table.imgtable,
table.imgtable td {
  border: none;
  text-align: left;
}

@media print {
  #layout-menu {
    display: none;
  }
}

@media (max-width: 900px) {
  table#tlayout,
  table#tlayout tbody,
  table#tlayout tr,
  table#tlayout td {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  #layout-menu {
    white-space: normal;
    margin-bottom: 12px;
  }

  #layout-content {
    padding-left: 0.4em;
    padding-right: 0.4em;
  }

  table.imgtable,
  table.imgtable tbody,
  table.imgtable tr,
  table.imgtable td {
    display: block;
    width: 100%;
  }

  table.imgtable img {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin-bottom: 12px;
  }

  #layout-content,
  #layout-content p,
  #layout-content li,
  #layout-content a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
