:root {
  --max-width: 1100px;
  --orange-300: 221, 185, 103;
  --orange-500: 209, 96, 61;
  --orange-700: 163, 59, 26;
  --brown-100: 255, 254, 250;
  --brown-150: 247, 246, 241;
  --brown-900: 35, 30, 36;

  --white: 255, 255, 255;

  --slightly-elevated-shadow: 0 4px 10px rgba(var(--brown-900), .05), 0 1px 6px rgba(var(--brown-900), .025);
  --elevated-shadow: 0 4px 10px rgba(var(--brown-900), .05), 0 1px 3px rgba(var(--brown-900), .08);
}

@font-face {
  font-family: Geist;
  src: url(../fonts/Geist-Regular.woff2) format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: Geist;
  src: url(../fonts/Geist-Bold.woff2) format('woff2');
  font-weight: bold;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  position: relative;
  color: rgb(var(--brown-900));
  background-color: rgb(var(--brown-100));
  font-family: Geist, Arial, Helvetica, sans-serif;
  text-align: left;
}
p {
    text-align: justify;
}

.wrapper {
  max-width: var(--max-width);
  width: 100%;
  margin-inline: auto;
  padding-bottom: 5rem;
}

.header {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto 1rem auto;
  padding: 3rem 0 1rem;
}

.hero {
  width: 100%;
  height: 200px;
  background: url('../img/hero.jpeg') no-repeat center 20%;
  border-radius: .5rem;
  background-size: cover;
  margin-top: 1rem;
}

.logo {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  letter-spacing: .1rem;
  font-weight: bold;
  margin-bottom: .5rem;
  font-size: 4rem;
}

.mainNavigation {
  width: 100%;
}
.mainNavigation_wrapper {
  --gap: 1rem;
  display: flex;
  align-items: center;
  position: relative;
  gap: var(--gap);
  z-index: 9;
}
.mainNavigation ul:not([class]) {
  list-style: none;
  display: flex;
  gap: var(--gap);
}
.mainNavigation a {
  color: rgb(var(--brown-900));
  transition: all .2s cubic-bezier(0.39, 0.575, 0.565, 1);
  display: block;
  padding: .5rem 0;
  text-decoration: none;
}
.mainNavigation a:hover {
  color: rgb(var(--orange-500));
}
.mainNavigation__toggle {

}
.mainNavigation_dropdownWrapper {
  position: relative;
}
.mainNavigation_dropdown {
  position: absolute;
  display: none;
  background-color: rgb(var(--brown-100));
  padding: 1rem;
  margin-left: -1rem;
  margin-top: 0;
  list-style: none;
  width: 200px;
  box-shadow: var(--elevated-shadow);
  border-radius: 0 0 .5rem .5rem;
}
.mainNavigation_dropdownWrapper:hover .mainNavigation_dropdown {
  display: block;
}

.searchInput {
  width: 100%;
  font-size: 1rem;
  line-height: 1.5rem;
  font-family: Geist, Arial, Helvetica, sans-serif;
  padding: .75rem 1rem;
  border-radius: .25rem;
  border: 1px solid rgba(var(--brown-900), .1);
  box-shadow: var(--slightly-elevated-shadow);
  margin-bottom: 3rem;
}
.searchInput:focus {
  outline: none;
  border-color: rgb(var(--orange-500));
}
.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
.table th {
  text-align: left;
  padding: .5rem 1rem;
  letter-spacing: .05rem;
  border-bottom: 2px solid rgba(var(--brown-900), .1);
}
.table td {
  padding: .5rem 1rem;
  border-bottom: 1px solid rgba(var(--brown-900), .1);
}
.table tr:nth-child(odd):not(thead tr) {
  background-color: rgba(var(--brown-150));
}

.button {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: .25rem;
  background-color: rgb(var(--orange-500));
  color: rgb(var(--brown-100));
  transition: all .2s cubic-bezier(0.39, 0.575, 0.565, 1);
  text-decoration: none;
}
.button:hover {
  background-color: rgb(var(--orange-700));
  color: rgb(var(--brown-100));
  box-shadow: var(--elevated-shadow);
}

.catalogueList {
  list-style: none;
}
.catalogueList li {
  margin: 0 0 .5rem 0;
}

.metaHeader {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 5rem;
}
.metaInformation {
  display: grid;
  list-style: none;
  grid-template-columns: repeat(2, 1fr);
}
.metaInformation li {
  border-bottom: 1px solid rgba(var(--brown-900), .1);
  align-items: center;
  padding: .5rem 1rem;
  display: flex;
}
.metaInformation li:last-child {
  border-bottom: none;
}
.metaInformation li:nth-last-child(2) {
  border-bottom: none;
}
.metaInformation li:nth-child(odd) {
  border-right: 1px solid rgba(var(--brown-900), .1);
  font-weight: bold;
  padding-left: 0;
}
.catalogueBibl {
  margin-bottom: 2rem;
  list-style: '- ';
  padding-left: 1rem;
}
.twoColumns {
  columns: 2;
  gap: 2rem;
  list-style: none;
}
.twoColumns a {
  text-decoration: none;
}
.sort-desc::after,
.sort-asc::after {
  content: ' ';
  display: inline-block;
  border-top: 2px solid rgb(var(--orange-500));
  border-right: 2px solid rgb(var(--orange-500));
  width: 4px;
  height: 4px;
  transform: rotate(135deg) translateY(.25rem);;
  margin-left: .75rem;
  transition: all .2s cubic-bezier(0.39, 0.575, 0.565, 1);
}
.sort-asc::after {
  transform: rotate(-45deg) translateY(-.1rem);
  margin-left: .5rem;
}

table th:not([data-sort="disabled"]) {
  cursor: pointer;
  transition: all .2s cubic-bezier(0.39, 0.575, 0.565, 1);
}
table th:not([data-sort="disabled"]):hover {
  color: rgb(var(--orange-500));
}

h1:not([class]) {
  font-size: 2rem;
  line-height: 2.5rem;
  font-weight: bold;
  margin-bottom: 4rem;
  letter-spacing: .1rem;
}
h1:not([class])::after {
  content: ' ';
  display: block;
  position: absolute;
  width: 5%;
  height: 5px;
  background-color: rgb(var(--orange-500));
  margin-top: 1rem;
  border-radius: 1rem;
}
h2:not([class]) {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  letter-spacing: .1rem;
}
h3:not([class]) {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: bold;
  margin-bottom: 1rem;
  letter-spacing: .05rem;
}
p:not([class]) {
  font-size: 1rem;
  line-height: 1.5rem;
  color: rgb(var(--brown-900));
  margin-bottom: 1.5rem;
}
a:not([class]) {
  color: rgb(var(--brown-900));
  transition: all .2s cubic-bezier(0.39, 0.575, 0.565, 1);
}
a:not([class]):hover {
  color: rgb(var(--orange-500));
}
ul:not([class]) {
  list-style: none;
}

@media only screen and (max-width: 767px) {

}

/* Footnotes */
/* in-text references */
.footnote-ref {
  vertical-align: super;
  font-size: 0.75em;
  line-height: 1;
}

.footnote-ref-link {
  text-decoration: none;
}

/* auto number for each in-text marker */
main {
  counter-reset: fn-ref;
}

.footnote-ref-link::before {
  counter-increment: fn-ref;
  content: counter(fn-ref);
}

/* notes block */
.footnotes {
  margin-top: 1.5rem;
  padding-left: 0;
  list-style: none;
  counter-reset: fn-note;
}

.footnote {
  margin: 0.4rem 0;
}

.footnote::before {
  counter-increment: fn-note;
  content: counter(fn-note) ". ";
  font-weight: 600;
}

.footnote-backref {
  margin-left: 0.35rem;
  text-decoration: none;
}

/* Dates - selection */
.century-container {
        margin: 20px 0;
        padding: 15px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 6px;
        font-family: sans-serif;
    }
    .century-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }
    .century-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .btn-century {
        padding: 6px 12px;
        border: 1px solid #ccc;
        background: #fff;
        cursor: pointer;
        border-radius: 4px;
        font-size: 13px;
        transition: background 0.2s;
    }
    .btn-century:hover {
        background: #e9ecef;
    }
    .btn-century.selected-range {
        background-color: #007bff;
        color: #fff;
        border-color: #0056b3;
    }
    .btn-reset {
        padding: 5px 12px;
        cursor: pointer;
        font-size: 12px;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 4px;
    }
    .btn-reset:hover {
        background: #e9ecef;
    }