body {
  padding-top:100px;
  /* background-color: #F5E1C8; */
}

body header {
  padding-bottom: 0px;
}

body main {
  padding-top: 0px;
}


kbd {
  background-color: transparent;
  color:inherit;
}

.center {
  text-align: center;
}

.diagram {
  margin: auto;
}

article {
}

#pages-container article header {

}

@media (max-width: 991px){
  .diagram {
    transform: rotate(90deg);
    margin:30px auto;
  }
}
header.top-header {
  position: fixed;
  top:0;
  z-index: 1100;
  /* background-color: #E3C9A3; */
  background-color: #fff;
  padding-top:10px;
  padding-bottom: 10px;
  -webkit-box-shadow: 0px 4px 16px 8px rgba(0,0,0,0.1);
  -moz-box-shadow: 0px 4px 16px 8px rgba(0,0,0,0.1);
  box-shadow: 0px 4px 16px 8px rgba(0,0,0,0.1);
  
}

div.top {
  display:flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}
hgroup {
  margin-bottom: 0;
}
hgroup *, .include-item, #collection tr {
  cursor: pointer;
}

.header-image {
  max-width: 50%;
  max-height: 100px;
}

header.top nav {
  margin-left: auto;
}


ul#pages {
  left:auto;
}

.subpage-menu {
  display: block;
}

.subpage-menu li {
  display: block;
}
figure.hero {
  display:none
  ;
}

.hero figcaption {
  text-align: right;
}

#pages-container, #collection {
  display: none;
}

#pages-container article {
  display: none;
}

#pages-container article:nth-child(1) {
  display:block;
}

.parentLink {
  float:right;
}

#pages-container figure img {
  max-height: 500px;
}

#pages-container footer {
  display: flex;
}
button.page-nav {
  width: 25%;
}
button.previous-page {

}
button.next-page {
  margin-left: auto;
}


.show-all {
  width: 25%;
  float: right;
}

.advanced {
  margin:1%;
}

.dataTables_wrapper .dataTables_filter {
  float: left;
  text-align: left;
  margin: 0.5%;
  width:99%;
}

#items thead {
  display:none;
}

#items tbody {
  display: flex;
  flex-wrap: wrap;

}
#items tr {
  flex-basis:48%;
  flex-wrap: wrap;
  margin:1%;
  background-color: #ffffff;
  /* border: 1px solid #000000; */
  border: 1px solid #aaaaaa;
  padding: 10px;
  border-radius: 4px;
}

#items td {
  display: block;
  background-color: #ffffff;
  border: 0px;
}

#items td.thumbnail {
  max-width: 150px;
}
.dataTables_info {
  padding:20px;
}

.dataTables_paginate {
}

.dataTables_paginate, .dataTables_paginate span {
  display: flex;
}
.dataTables_paginate a, .dataTables_paginate span a{
  padding:20px;
  text-align: center;
}

/* === Intro section (homepage only) === */
#intro[hidden] { display: none !important; }
#intro {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
#intro #home-article{
  background: #FFF6EA;
  border: 1px solid #E2D2B8;
  border-radius: 16px;
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
#intro #home-article header{
  border-bottom: 1px solid #E2D2B8;
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}
#intro #home-article h2{
  margin: 0;
}
/* Optional: images inside page body look neat */
#pages-container article figure{
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* Dark mode harmony */
@media (prefers-color-scheme: dark){
  #pages-container article{
    background: var(--card, #302419);
    border-color: var(--border, #473622);
  }
  #pages-container article > header,
  #pages-container article > footer{
    background: color-mix(in oklab, var(--card, #302419) 80%, #000);
    border-color: var(--border, #473622);
  }
  #pages-container article > :not(header):not(footer){
    background: #1f1812;
    color: var(--text, #F5EDE3);
  }
}
dialog { z-index: 2001; }              /* keep dialog above the fixed header */
dialog::backdrop { background: rgba(0,0,0,.35); }

