/* CSS for Tables */

table.docutils {
  border-collapse: collapse;
  border-spacing: 0px 0px;
}
table.docutils th {
  background-color: #DCDCDC;
}
table:not(.highlighttable) {
  margin-top: 0;
  margin-bottom: 0;
}
table:not(.highlighttable) td,
table:not(.highlighttable) th {
  padding: .5em .5em;
}

/* stamps list for each album page */
table.page-stamp-list {
  width: 100%;
  border: none !important;
}
table.page-stamp-list tr th {
  top: 0;
  position: sticky;
  text-align: left;
  vertical-align: bottom;
  color: #50729f; /* blue stone */
  font-weight: bold;
  border: none !important;
}
table.page-stamp-list tr {
  border-top: none !important;
  border-bottom: 1px solid #D1CFCF !important;
}
table.page-stamp-list tr td {
  border: none !important;
  border-bottom: none !important;
}
table.page-stamp-list tr td a:hover {
  text-decoration: none;
}


table.page-album-list,
table.type-stamp-list {
  width: 100%;
}
table.ordered-stamp-list {
  width: 100%;
  margin-bottom: 1rem;
}
table.ordered-stamp-list tr th,
table.type-stamp-list tr th {
  top: 0;
  position: sticky;
  text-align: left;
  vertical-align: bottom;
  color: #50729f; /* blue stone */
  font-weight: bold;
  background-color: #ffffff; /* white */
  border-bottom: .6px dotted #333;
}

table.ordered-stamp-list tr td:nth-child(8) {
  font-size: .9em;
}
table.page-album-list tr td:hover {
  background-color: #c3e4ed; /* robin's egg */
}
table.ordered-stamp-list tr:hover td,
table.type-stamp-list tr:hover td {
  background-color: #c3e4ed; /* robin's egg */
}
table.page-album-list tr td a:hover,
table.ordered-stamp-list tr td a:hover {
  text-decoration: none;
}
table .highlighted::after {
  content: " «";
}
table.type-stamp-list tr:has(code.samp),
table.ordered-stamp-list tr:has(td):has(code.samp),
table.ordered-stamp-list tr:has(td):has(span.samp) {
  background-color: #e3e3e3; /* gray89 */
}
table.ordered-stamp-list tr:has(td):has(code.samp) {
  background-color: #e0ffff; /* lightcyan */
}
table.ordered-stamp-list tr:has(td):has(code.samp):hover td {
  background-color: transparent
}
table.ordered-stamp-list tr td:has(code.samp) {
  vertical-align: bottom;
}
table.ordered-stamp-list tr:has(code.samp) td:nth-child(2) {
  vertical-align: middle;
}
table.type-stamp-list tr:has(code.samp),
table.ordered-stamp-list tr td:has(code.samp) p {
  line-height: 2em;
  font-variant: small-caps;
  vertical-align: bottom;
}
table.type-stamp-list tr:has(code.samp),
table.ordered-stamp-list tr td:nth-child(1) code.samp {
  margin-top: 10px;
  font-family: 'Patua One', Palatino;
  font-size: 1rem;
  font-style: bold;
}
table.ordered-stamp-list tr:last-child,
table.ordered-stamp-list tr:last-child td {
  border-top: 1px dotted #333;
  border-bottom: none;
}
table.inventory-list tr:last-child(2),
table.inventory-list tr:last-child(2) td {
  border-top: 1px dotted #333;
  border-bottom: 1px dotted #333;
}
table.inventory-list tr:last-child,
table.inventory-list tr:last-child td {
  border-top: 1px dotted #333;
}



table.album-inventory-list {
  width: 100%;
  border: none !important;
}
table.album-inventory-list tr th {
  top: 0;
  position: sticky;
  text-align: left;
  vertical-align: bottom;
  font-weight: bold;
  color: whitesmoke;
  background-color: transparent;
  border: none !important;
  border-bottom: 1px dotted whitesmoke !important;
}
table.album-inventory-list tr td {
  border-bottom: 1px dotted whitesmoke !important;
  border-left: none !important;
  border-right: none !important;
  font-size: .9em;
  text-align: center !important;
}
table.album-inventory-list tr td:nth-child(1) {
  text-align: left !important;
}


table.ordered-stamp-list thead tr:last-child,
table.ordered-stamp-list thead tr:last-child th.head {
  border-top: none;
}
table.ordered-stamp-list tbody {
  border-bottom: none;
}
table.ordered-stamp-list tr:last-child td code.literal {
  color: green;
  font-size: .8em;
}
table.page-inventory tr,
table.page-inventory tr td {
  border: none;
}
table caption {
  margin-bottom: 0;
}
table tr td a.external svg {
  display: none;
}
div.series-heading {
  margin-top: 10px;
  padding: 0px 10px;
  line-height: 1.2em;
  letter-spacing: 2px;
  font-family: 'Patua One', Palatino;
  font-size: .7rem;
  font-weight: bold;
  font-variant: small-caps;
  background-color: #666666; /* gray */
}

/* --- table footnotes --- */

.table-footnotes {
  font-size: 10px;
  margin: 1rem 0;
}
.table-footnotes li {
  line-height: 1.2em;
}
.table-footnotes p {
  margin: 0;
}
.table-footnotes .rubric {
  margin: .8em 0 0 0;
}


/* --- dark mode --- */

@media screen and (prefers-color-scheme: dark) {
  table.page-stamp-list tr {
    border-bottom-color: #D1CFCF !important;
  }
  table.page-album-list tr td:hover,
  table.ordered-stamp-list tr:hover td,
  table.page-stamp-list tr:hover td,
  table.type-stamp-list tr:hover td {
    background-color: #666666 !important; /* gray */
    color: #b5cfdb !important;
  }
  table.docutils th,
  table.page-stamp-list tr.series_heading,
  table.type-stamp-list tr:has(code.samp),
  table.ordered-stamp-list tr:has(td):has(code.samp),
  table.page-stamp-list tr:has(td):has(code.samp) {
    background-color: #666666; /* gray */
  }
  table.ordered-stamp-list tr:has(td):has(code.samp) {
    background-color: #666666; /* gray */
  }
  table.page-stamp-list tr th {
    color: whitesmoke !important;
  }
  table caption .caption-text {
    text-transform: lowercase;
    color: #eceff1; /* light gray */
  }
}

/* --- mobile view --- */

@media (max-width: 768px)
{
  table.page-stamp-list tr th:nth-child(6),
  table.page-stamp-list tr td:nth-child(6),
  table.page-stamp-list tr th:last-child,
  table.page-stamp-list tr td:last-child {
      display: none;
  }
  table.page-stamp-list tr th:nth-child(3),
  table.page-stamp-list tr td:nth-child(3) {
    width_: 35%;
  }
  table.page-stamp-list tr th:nth-child(4),
  table.page-stamp-list tr td:nth-child(4) {
    width: 25%;
  }
  table.type-stamp-list tr td:nth-child(1) em.dfn,
  table.page-stamp-list tr td:nth-child(2) em.dfn {
    display: none;
  }
}

/* --- printing --- */

@media print {
  table.page-stamp-list,
  div.table-footnotes {
    display: none;
  }
}