#main-content {
  width: auto;
  margin: 0 1rem;
  position: relative;
}

h1 {
  font-size: 175%;
  color: #6C34A8;
  margin-left: 380px;
  padding-left: 0.5rem;
}
h2 {
  font-size: 150%;
  margin-top: 2rem;
  padding-top: 2rem;
}

h3 {
  font-size: 120%;
  font-weight: normal;
}

h4, h5, h6, p.c0x_heading {
  font-size: 100%;
  font-weight: bold;
  margin-top: 1rem;
}

mark {
  text-decoration-line: underline;
  text-decoration-style: double;
  background-color: transparent;
  color: inherit;
}

.glyphicon {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  font-size: 1rem;
  min-height: 24px;
}

button.glyphicon {
  background: transparent;
  border: 0;
  color: #005DA8;
  cursor: pointer;
  padding: 0;
}

.glyphicon-triangle-right::before {
  content: "\25B6";
  padding: .33rem;
}

.glyphicon-triangle-bottom::before {
  content: "\25BC";
  padding: .33rem;
}

.glyphicon-arrow-up::before {
  content: "\21D1";
}

/* Table of Contents */

#toc {
  position: sticky;
  top: 0;
  float: left;
  width: 360px;
  background-color: #ffffff;
  padding: 0;
  margin: 0;
  border-radius: .25rem;
  box-shadow: 2px 2px 2px #cccccc;
  overflow-y: auto;
}

#toc .glyphicon {
  margin-right: 0.5rem;
}

#toc .list-unstyled {
  list-style: none;
  padding: 0;
}

#toc ul li {
  margin-bottom: .5rem;
}

#toc > h2,
#toc > ul.list-unstyled {
  padding: 0 1rem;
}

#toc > h2 .glyphicon {
  margin-left: .5rem;
}

#toc > ul.list-unstyled {
  margin-bottom: 2rem;
}

#toc > ul > li > ul {
  display: none;
  list-style: none;
  margin-left: 3rem;
  margin-top: 0.5rem;
}

#toc > ul > li > ul > li.expandable {
  margin-left: -2rem;
}

#toc > ul > li > ul > li.expandable ul {
  display: none;
  list-style: none;
  margin-left: 1rem;
  margin-top: 0.5rem;
}

/* Main */

#main {
  margin-left: 380px;
  padding: 0 .5rem;
}

#main h2 {
  border-top: 1px solid #cccccc;
}

#docBody > h2:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

#docBody .glyphicon {
  margin: auto 0.5rem;
}

#downloads {
  float: right;
}

#downloads .btn {
  color: #ffffff;
	background-color: #43177d;
	border: 1px solid #43177d;
  display: inline-block;
  padding: .25rem .5rem;
  margin-right: .25rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border-radius: .25rem;
  font-size: 1rem;
  line-height: 1.5;
}

#downloads .btn:hover {
  color: #ffffff;
	background-color: #6335a3;
	border: 1px solid #43177d;
}

dl {
  display: grid;
  grid-template-columns: 200px auto;
  grid-auto-flow: row;
}

dt {
  text-align: right;
  font-weight: 700;
}

dd {
  margin: 0 0 1rem 1rem;
}

dd p {
  margin-top: 0;
}

th, td {
  padding: .5rem;
  vertical-align: top;
  border-top: 1px solid #ddd;
}

a[href="#top"] {
  font-size: 1rem;
  font-weight: normal;
  background: #43177d;
  color: #ffffff;
  padding: .25rem .5rem .25rem 0;
  text-decoration: none;
  margin-top: 3rem;
  position: absolute;
  right: 0;
}

#dscdiv-content a[href="#top"] {
  margin-top: 0;
  right: 1rem;
}

a#aeon {
  color: #ffffff;
  padding: .5rem .5rem .5rem 2.5rem;
  text-decoration: none;
  background-color: #43177d;
  background-image: url('/layout/images/aeon.png');
  background-repeat: no-repeat;
  background-size: 1.5rem;
  background-position: .5rem;
}

a[href="#top"]:hover,
a[href="#top"]:focus,
a#aeon:hover,
a#aeon:focus {
  color: #ffffff;
  text-decoration: underline;
}

/* DSC */

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  vertical-align: middle;
}

.switch #dsc-toggle {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #43177d;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

.switch + .text {
  font-size: 110%;
}

input:checked + .slider {
  background-color: #8649d7;
}

input:focus + .slider {
  outline: 3px solid #005DA8;
  outline-offset: 2px;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

#dscdiv-content h3,
#dscdiv-content h4,
#dscdiv-content h5,
#dscdiv-content h6,
#dscdiv-content p.c0x_heading {
  margin: 0;
}

#dscdiv-content ul {
  list-style: none;
  padding: 1rem;
}

#dscdiv-content > ul {
  padding: 0;
}

#dscdiv-content li {
  margin: 0 0 1rem 0;
  padding: 1rem;
  border: 1px solid #cccccc;
  border-radius: .25rem;
  position: relative;
}

#dscdiv-content ul.display_table li {
  border: 0;
  padding: 0;
}

#dscdiv-content li:last-child {
  margin: 0;
}

li.white {
  background: #ffffff;
}

li.gray {
  background: #f9f9f9;
}

ul.display_table li.white,
ul.display_table li.gray {
  background: transparent;
}

#dscdiv-content div ul {
  list-style: disc;
  list-style-position: inside;
  padding: 1rem 0 0 1rem;
}

#dscdiv-content div ul ul { 
  list-style-type: circle;
  padding-top: 0;
}

#dscdiv-content div li {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

.c0x_row {
  display: flex;
  flex-direction: column;
}

.c0x_description {
  font-weight: bold;
}

.c0x_description div {
  font-weight: normal;
  margin-left: 2rem;
}

.c0x_description p {
  margin: 0.5rem 0;
}

.c0x_description .c0x_label {
  display: none;
}

table.dsc_table {
  margin-bottom: 1rem;
}

table.dsc_table .c0x_description {
  font-weight: normal;
}

table.dsc_table .c0x_label,
table.dsc_table .dsc-footer {
  display: none;
}

.dsc-footer {
  display: flex;
}

.dsc-parents {
  flex: 1 1 auto;
}

.dsc-actions {
  flex: 1 0 auto;
  text-align: right;
}

.dsc-actions button {
  height: 24px;
  width: 24px;
  background-position: center center;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.dsc-actions button:focus {
  outline: 3px solid #005DA8;
  outline-offset: 2px;
}

.dsc-actions .btn-citation {
  background-image: url('images/info.png');
}

#dialog-actions ul {
  padding: .5rem;
  margin: 0 0 0 1rem;
}

dl.citation {
  display: block;
}

dl.citation dt {
  text-align:left;
}

/* Footer */
#main .footer {
  text-align: center;
}

#main .footer .author {
  font-size: 120%;
}

.hidden {
  display: none;
}

.loading {
  display: block;
  height: 200px;
  background: url('images/loading.gif');
  background-position: center;
  background-repeat: no-repeat;
}

/* QR Dialog */

#qr-loading {
  min-width:232px;
  min-height:232px;
  background: url('/layout/images/loading.gif');
  background-position: center center;
  background-repeat: no-repeat;
}

#dialog-qr {
  text-align: center;
  padding: 1rem;
}

.ui-dialog {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important; /* Center the dialog */
}

/* Images */

img.daoimage {
  width: 400px;
  max-width: 100%;
  display: block;
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
  
  h1 {
    padding-top: 1rem;
    margin: 0;
    clear: both;
  }
  
  #toc {
    position: relative;
    float: none;
    width: 100%;
    background-color: transparent;
    border-radius: none;
    box-shadow: none;
    overflow: auto;
  }
  
  #toc > h2 {
    font-size: 120%;
  }
  
  #main {
    margin-left: 0;
    padding: 0 1rem;
  }
  
}

@media screen and (max-width: 760px) {
  
  a[href="#top"] {
    display: none !important;
  }
  
  dl {
    display: block;
  }

  dt {
    text-align: left;
  }

  dd {
    margin-left: 0;
  }
  
}