@import url("common.css");
body {
  font-size: 1rem;
  text-align: left;
  background-color: white;
  color: black;
  margin: 1em auto;
  max-width: 80ch;
  line-height: 150%;
}
a {
  text-decoration: none;
  color: #0000CC;
}
.logo_box {
  grid-area: logo_box;
  vertical-align: bottom;
  padding-right: 1em;
  white-space: nowrap;
}
.top_nav {
  grid-area: top_nav;
  padding: 0;
  margin: 0;
  vertical-align: bottom;
}
.left_nav {
  grid-area: left_nav;
  vertical-align: top;
}
.page_content {
  grid-area: page_content;
  vertical-align: top;
}
.footer_box {
  grid-area: footer_box;
  vertical-align: top;
}
.main {
  display: grid;
  width: auto;
  grid-template-areas: 'logo_box''top_nav''left_nav''page_content''footer_box';
  grid-row-gap: 1rem;
  grid-column-gap: 0;
  grid-template-rows: max-content max-content max-content max-content max-content;
  grid-template-columns: auto;
}
@media only screen and (min-width: 768px) {
  .main {
    display: grid;
    width: 80ch;
    grid-template-areas: 'logo_box top_nav''left_nav page_content''footer_box footer_box';
    grid-row-gap: 0.5rem;
    grid-column-gap: 0;
    grid-template-rows: max-content max-content max-content;
    grid-template-columns: 22ch auto;
  }
}
/* Logo */
#logo_subtitle {
  font-size: 1rem;
  line-height: 1rem;
  margin-left: 1rem;
  margin-bottom: 0;
  font-style: italic;
  color: #666666;
  width: max-content;
}
.logo_box a {
  text-decoration: none;
  color: #666666;
}
/* top common text before the menu*/
#top-common-text {
  margin-bottom: 1rem;
  text-align: left;
  font-size: 1rem;
  vertical-align: top;
}
#top-common-text li {
  display: inline;
  list-style-type: none;
  margin: 0 2rem 0 0;
  text-align: left;
}
#top-common-text a {
  color: rgb(100, 100, 100);
  text-decoration: none;
}
#top-common-text a:hover, a:focus {
  text-decoration: underline;
}
@media only screen and (min-width: 768px) {
  #top-common-text {
    text-align: right;
  }
  #top-common-text li {
    margin: 0 0 0 2rem;
  }
}
/* top menu */
#topmenu {
  width: auto;
}
#topmenu ul {
  margin: 0.3rem 0;
  width: auto;
}
#topmenu li {
  list-style-type: none;
  display: inline;
  width: auto;
  margin: 0.8rem 0;
}
@media only screen and (min-width: 768px) {
  #topmenu ul {
    display: flex;
    align-items: stretch; /* Default */
    justify-content: space-between;
    width: auto;
    margin-bottom: 0.3rem; /*Need this to ovoid overlap with the horizontal ruler. bug */
  }
  #topmenu li {
    display: inline;
    flex-grow: 0; /*Default: Do no grow to fill up the parent*/
    flex-shrink: 1; /*Default Shrink when necessary */
    flex-basis: auto; /*Widths of children element are calculated automatically based on their content. If you want fixed, equal width children element, simply set it to 100%.*/
    list-style-type: none;
    margin: 0;
  }
}
#topmenu a {
  padding: 0.3rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 1rem;
  font-weight: bold;
  color: #000099;
  background: rgb(250, 250, 250);
}
#topmenu a:hover {
  box-shadow: 0.1rem 0.1rem 0.2rem #666688;
  border-radius: 0.44rem;
  background: rgb(235, 235, 235);
}
#topmenu a:active {
  background: #0033FF;
  color: white;
}
#topmenu .highlightfirstletter {
  font-size: 1.4rem;
}
#topmenu .selected a {
  background: #CFE2FE;
  border-top: 1px solid rgb(106, 0, 95);
}
#topbar {
  width: auto;
  height: 3px;
  background-color: #FFCC00;
  margin: 0;
  padding: 0;
}
/* main */
/* leftmenu */
#leftmenu {
  margin: 0 1rem 1rem 0.4rem;
  border: 1px solid #CFE2FE;
  width: auto;
}
#leftmenu ul {
  list-style: none;
  line-height: normal;
  margin: 0;
  padding: 0;
}
#leftmenu li {
  display: inline;
	line-height: 2rem;
}
#leftmenu a {
  display: inline; 
  padding: 0.2rem 3rem 0 1rem;
  text-decoration: none;
  text-align: left;
  font-size: 1rem;
  font-weight: normal;
  color: rgb(0, 0, 176); /*#1F23CB; #892167;*/
}
@media only screen and (min-width: 768px) {
  #leftmenu li {
    padding-bottom: 1rem;
    margin: 0;
		line-height: normal;
    display: block;
    /* If you make only this a display block, then the link shading covers only the text, not the whole row. To shade the whole row, make the <a> tag appear in display mode also. */
  }
  #leftmenu a {
    padding: 0.2rem 0.4rem 0.2rem 0.4rem;
    display: block;
  }
}
#leftmenu a:hover, a:focus {
  box-shadow: 1px 1px 1px #DDDDDD;
  border-radius: 3px;
  background: #CFE2FE;
}
#leftmenu .selected a {
  box-shadow: 1px 1px 1px #6F69B6;
  border-radius: 3px;
  background: #CFE2FE; /*#E6D2F4;	*/
}
/* maintext */
.page_content {
  font-size: 1rem;
  color: rgb(0, 0, 0); /*rgb(65, 65, 65)*/
  width: auto;
}
.page_content #page_title {
  margin-bottom: 1rem;
  padding: 0.2rem;
  text-align: left;
  font-weight: bold;
  border-left: 0.7rem solid #FFCC00;
  background-color: rgb(240, 240, 240);
  color: rgb(106, 0, 95);
  letter-spacing: 0.1rem;
}
.page_content h1 {
  font-size: 1.1rem;
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #0000BB; /*rgb(0,51,153)*/
}
.page_content h1 .highlightfirstletter {
  color: rgb(106, 0, 95);
  text-decoration: underline;
}
.page_content h2 {
  font-size: 1rem;
  font-weight: bold;
  color: rgb(106, 0, 95);
  margin: 1.5rem 0 0.5rem 2.5rem;
}
.page_content p {
  text-align: left;
  margin-top: 0;
  margin-bottom: 1rem;
}
.page_content .indent1 {
  margin-left: 1rem;
}
.page_content .indent2 {
  margin-left: 2.5rem;
}
.page_content ol {
  list-style-type: decimal;
  list-style-position: outside;
  margin-top: 6px;
  margin-left: 7px;
  padding-left: 7px;
}
.page_content ul {
  list-style-type: square;
  list-style-position: outside;
  margin-top: 6px;
  margin-left: 2rem; /*Offset the start of the bullet*/
}
.page_content li {
  text-align: left;
  padding-left: 1rem; /*Offset the start of the text.*/
  margin-top: 0;
  margin-right: 2px;
  margin-bottom: 6px;
}
.page_content .toplinks {
  margin-bottom: 15px;
}
/* Use this order: link visited hover active
hover: mouse is over, focus: the element is selected for example via tabbing
*/
.page_content .toplinks a {
  margin-right: 22px;
}
.page_content a:link {
  color: #0000CC;
}
.page_content a:visited {
  color: #0000CC;
}
.page_content a:hover, a:focus {
  background-color: #CFE2FE;
  text-decoration: none;
}
.page_content a:active {
  color: green;
}
/* footer */
#footer {
  height: 4em;
  margin: 0 auto;
  padding: 0;
  line-height: normal;
  border-top: 1px solid #E5E5E5;
  color: #757E82;
}
#footer p {
  margin: 0.8rem;
  padding: 0;
  text-align: center;
  font-size: 0.8rem;
}
#footer a {
  text-decoration: underline;
  color: #757E82;
}
#footer a:hover {
  text-decoration: none;
}
#footer p .highlightfirstletter {
  margin-left: 2rem;
  color: rgb(106, 0, 95);
  text-decoration: underline;
}
table.FACT_TOC {
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
}
table.FACT_TOC td {
  border-width: 0;
  text-align: left;
  padding: 0.1rem 0.8rem;
}
/* Putting td and th in the same declaration did not work */
table.FACT_TOC th {
  border-width: 0;
  text-align: left;
  padding: 0.1rem 0.8rem;
  background-color: #CEEFFF;
}
.contact img {}