body {
    font-size: 16px;
    /* color: #F5F1E8;   a subtle cream */
    /* color: #FBF7FB; */
    color: #FDFBFD;
  
    font-family: 'Cardo', serif;
  
    font-weight: 400;

    /* background-color: #212121;    */
    /* background-color: rgba(0, 0, 0, 0.76); */
    background-color: rgba(11, 11, 11, 0.77);
    /* background: linear-gradient( rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.50) ) fixed; */

    margin: 0;
    padding: 0;
    min-height: 100vh;
} 

* {
    box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}


/* shows when htmx is loading a new page */
/* body.htmx-request:before {
  content: ' ';
  width: 100%;
  height: 2px;
  background-color: #35cdf3;;
  display: block;
  position: fixed;
  animation: pulse 1.3s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
} */


/* .grecaptcha-badge { 
  visibility: hidden !important;
} */

.search_box {
  margin: auto; 
  display: block; 
  width: fit-content;
}

.year-list-container {
  justify-content: center;
  max-width: 90vw;
  padding: 0.5em 1.3em;
  width: fit-content;
  margin: 0 auto 1.5em auto;
  border: 1px solid #707070;
  border-radius: 5px;
}

.years-list {
}

.years-list year {
  display: inline-block;
  min-width: 3em;
  font-size: 1.3em;
  /* border: 1px solid red; */
  margin: 0.1em 0.2em;
}

.years-list year a {
  width: 100%;
  height: 100%;
  display: block;
  text-align: center;
  padding: 0.4em 0.3em;
}

/* body div.years-list > a {
  font-weight: 400;
  letter-spacing: -0.5px;
} */

.home-periodical-blocks {
  column-count: 2;
  column-gap: 1em;
  width: 100%;
}

.periodical-browse {
  break-inside: avoid;

  /* border: 1px solid #989899; */
  border: 1px solid #707070;
  border-radius: 5px;

  padding: 0.5em;
  margin-bottom: 1em;
}

.periodical-browse h3 {
  text-align:center;
  margin-top: 0.2em;
  margin-bottom: 0.3em;
}

.home-years {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
 
  margin: auto;

  width: fit-content;
  border-top: 1px solid #989899;
}

.home-years a {
  padding: 0.2em 0.3em;
  /* flex-grow: 1; */
}






div.columns {
  display: flex;
}

div.columns .left {
  flex: 0 0 45%; 
  padding-right: 15px;
}

div.columns .right {
  flex: 0 0 55%;
}





div.home-columns {
  display: flex;
}

div.home-columns .left {
  flex: 0 0 50%; 
  padding-right: 15px;
}

div.home-columns .right {
  flex: 0 0 50%;
}


.login button {
  width: 300px;
  padding: 6px;
  height: initial;
}



button {
  width: fit-content;
  min-width: 120px;

  color: black;
  font-size: 20px;
  
  padding: 5px;
  margin: 6px 10px 6px 0;
  border: 1px solid black;
  border-radius: 5px;

  cursor: pointer;
}



button.full {
  width: 200px;
  font-size: 20px;
  padding: 0;
  height: 35px;
}

button.full img {
  height: 80%;
}

button.bdm {
  height: 25px;
  font-size: 14px;
  padding-left: 3px;
  padding-right: 3px;
}


img.icon {
  width: auto;
  max-height: 100%;
  vertical-align: top;
  margin-top: -1px;
}

button.cancel {
  margin-top: 6px;
}

button.delete {
  margin-top: 12px;
  min-width: 35px;
}


button.htmx-request > img.icon {
  animation: loading-spinner 2.5s linear infinite;
}

@keyframes loading-spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.bdm-delete {
  /* display: none; */
  visibility:hidden;
  height: 18px; 
  min-width: 20px; 
  max-width: 20px; 
  background: none; 
  border: none; 
  padding: 0; 
  margin-left: 6px; 
  vertical-align: bottom;
}

div.bdm-registration-entry:hover .bdm-delete {
  /* display: inline-block; */
  visibility:visible;
}

.bdm-delete.htmx-request > img.icon {
  animation: loading-spinner 2.5s linear infinite;
}

span.add-entry {
  color: #A08FDB; 
  text-decoration: underline;
  cursor: pointer;
}
span.add-entry:hover {
  color: #35cdf3; 
}



div.bdm-registration-entry:first-child {
  margin-top: 0;
}

div.bdm-registration-entry {
  margin-top: 0.8em;
}

/* p.bdm a {
  font-weight: 300;
} */


h2.results-description {
  text-align: center; 
  margin-top: 1em; 
  margin-bottom: 1em;
}


.panzoom-container {
  width: 100%; 
  height: 600px; 
  max-height: 70vh;
  /* overflow: hidden;  */
  /* overflow-x: auto !important;
  overflow-y: auto !important; */
  border: 1px solid #616368;
  border-radius: 5px;
}

.image-adjustment {
  margin: auto;
  display:flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 60%;
  padding: 0.8em 1em;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border: 1px solid #ccc;
}

.image-adjustment > div {
  margin: 0 0.5em;
}

.image-adjustment input[type="range"] {
  margin: 0;
  height: 20px;
  border-radius: 0;
  padding: 0;

  /* -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  
  /* The gradient that creates tick marks */
  /* background-image:  */
    /* Major ticks (every 10 units) */
    /* linear-gradient(to right, 
      #888 1px, transparent 1px
    ); */
  
  /* 17 tick marks for range 20-180 (every 10 units) */
  /* background-size: calc(100% / 16);
  background-repeat: repeat-x;
  background-position: 0% center; */
}

.image-adjustment div b {
  text-align: center;
  width: 100%;
  display: inline-block;
}


a, a:link, a:visited {
  text-decoration: none;
  color: #35cdf3;
  font-weight: 600;
}

a:hover {
  /* color: #FFC107; */
  /* color: #9ea6b9; */
  color: #A08FDB;
}

a.snippet-link {
  font-weight: normal;
  font-style: italic;
  color: white;
}
a.snippet-link:hover {
  text-decoration: underline;
  color: white;
}

h1, h2, h3, h4 {
  font-weight: 600;
  margin-top: 0.8em;
  margin-bottom: 0.5em;
  /* color: #ffd300;  */
  /* color: #b2ebf2; */
}

h2 {
  font-size: 1.6em;
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

header h2 {
  font-size: 1.7em;
  margin-bottom: 0.1em;
  margin-top: 0em;
  /* text-align: center; */
  color: #A08FDB;
}

header h2:hover {
  color: #35cdf3;
}

table h4 {
  margin-top: 0;
  margin-bottom: 0.3em;
}


header {
  display: flex;
  align-items: center; 
  width:100%;
}

header img {
  max-height:140px; 
  height:auto; 
  width:auto; 
  margin-right: 1em;
}

div.page-wrapper {
  margin-top: 3em;
  margin-bottom: 5em;
}


div.page-info,
div.page-info form {
  display: flex;
  width: 100%;
  margin-bottom: 0.5em;
  justify-content: space-between;
  align-items: center;
}

div.page-info form { 
  margin-bottom: 0; 
}

div.page-info h2 {
  margin: 0;
}

div.page-info span {
  font-size: 1.2em;
  margin-left: 10px;
}

.page-notes-field {
  flex-basis: 100%; /* Allow the item to grow and shrink, and set its base size to 100% */
  width: 100%; /* Ensure it takes full width */
  margin-top: 1em; /* Add some space above */
}


div.document-info > form > div,
div.document-info > div {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}
div.document-info h1 {
  margin: 0;
}

div.document-info {
  margin-bottom: 1em;
}

div.hide-embedded-image,
div.embed-image {
  cursor: pointer;
  width: 50%;
  height: 35px;
  margin: auto;
  text-align: center;
}

div.embed-image {
  background-color: #9ea6b9;
  /* background-color: #A08FDB; */
  color: white;

  /* border-left: 1px solid #616368;
  border-right: 1px solid #616368;
  border-bottom: 1px solid #616368; */

  border-bottom-left-radius: 30% 100%;
  border-bottom-right-radius: 30% 100%;
}

div.hide-embedded-image {
  background-color: #9ea6b9;

  /* border-left: 1px solid #616368;
  border-right: 1px solid #616368;
  border-top: 1px solid #616368; */

  border-top-left-radius: 30% 100%;
  border-top-right-radius: 30% 100%;
}


div.hide-embedded-image:hover,
div.embed-image:hover {
  /* background-color: #e9e8ed; */
  /* background-color: #A08FDB; */
  background-color: #c4bbe4;
}

div.hide-embedded-image a,
div.embed-image a {
  color: black;
  width: 100%;
  height: 100%;
  padding: 5px 0;
  display: inline-block;
}

div.hide-embedded-image a img,
div.embed-image a img {
  width: auto;
  max-height: 100%;
  vertical-align: middle;
  margin-top: -3px;
}





ul li {
  margin-top: 0.3em;
  margin-bottom: 0.5em; 
}

ul {
  margin-top: 0.7em;
  margin-bottom: 1.1em;
}

ul.navbar-nav {
  list-style: none;
  text-align: right;
}

/* Pagination */
p.pagination {
  text-align: center;
  font-style: italic;
}
ul.pagination {
  margin: auto;
  width: fit-content;
  padding: 0;
}
ul.pagination li {
  list-style-type: none;
  display: inline-block;
  font-size: 1.2em;
  min-width: 3em;
  border: 1px solid grey;
  border-radius: 5px;
  margin: 0 5px;
  text-align: center;
}
ul.pagination li a {
  display: block;
  width: 100%;
  height: 100%;
}

nav svg {
  max-height: 30px;
}

ul.pagination li.page-item:not(.active):not(.disabled) span[class*="prev"],
ul.pagination li.page-item:not(.active):not(.disabled) span[class*="next"],
ul.pagination li.page-item a[rel*="prev"],
ul.pagination li.page-item a[rel*="next"] {
  display: none;
}


.logo-text {
  display: inline-block;
  vertical-align: top;
  margin-top: 30px;
  margin-left: 20px;
  margin-right: 8px;
}

.logo {
  height:100px; 
  border-radius: 50px;
}

.logo-word {
  height:90px; 
  vertical-align: top;
  margin-top: 5px;
}


div.q-and-a p, 
div.q-and-a h4 {
  margin-left: 21px;
}

div.q-and-a ul {
  margin-left: 10px;
}

div.q-and-a details {
  margin-top: 0.6em;
}

details[open] {
  margin-bottom: 2em;
}

details summary {
  font-size: 1.2em;
  font-weight: 600;
  cursor:pointer;
  width: fit-content;
  text-indent: -21px;
  margin-left: 21px;
}

details summary:hover {
  color: #A08FDB;

}

details summary::marker {
  font-size: 1.2em;
  color: #A08FDB;
}

details[open] summary {
  /* display: inline list-item; */
  color: #A08FDB;
  margin-bottom: 0.5em;
  margin-right: 0.4em;
}

/* div.about details[closed] summary {
  display: block list-item;
} */



.about-section {
    background-color: rgba(38, 49, 51, 0.85);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #616368;
}

.about-section h3 {
    color: #FDFBFD;
    margin-bottom: 20px;
}

.about-section p {
    color: #9ea6b9;
    line-height: 1.6;
}

.statistics {
  display: flex; 
  gap: 1em; 
  flex-wrap: wrap; 
  justify-content: center;
}

.statistics .card {
  text-align: center; 
  padding: 0.8em; 
  /* background-color: rgba(38, 49, 51, 0.85);  */
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px; 
  border: 1px solid #616368; 
  min-width: 180px; 
  flex: 1;
}
.statistics .card h4 {
  margin: 0;
  font-size: 2rem; 
}
.statistics .card p {
  color: #a6acb9; 
  margin: 0; 
  font-size: 0.9em;
}



div.sources h2,
div.sources h3,
div.sources p {
  text-align: right;
}



div.headerNextPrev {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

div.headerNextPrev > a:last-child,
div.headerNextPrev > div:last-child {
  text-align: right;
}

/* Next / previous links */
div.headerNextPrev > div > a {
  font-size: 1.3em;
  display: inline-block;
  padding: 5px 10px;
  /* border: 1px solid red; */
}

div.headerNextPrev h2 {
  margin-top:0;
  margin-bottom:0; 
  text-align:center;
}
div.headerNextPrev h1 {
  margin-top:0.1em; 
  margin-bottom: 0.2em;
  text-align:center;
}
   

  
div.page_content {
  border: 1px solid #ccc; 
  padding: 10px 20px; 
  margin-bottom: 12px;
}
div.page_content label {
  font-size: 1em;
}
div.page_content label, span {
  margin-top: 6px;
}

div.page_content h3 {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: -10px;
}

div.page_content ul {
  margin-top: 6px;
  margin-bottom: 0;
  display: inline-block;
  width: fit-content;
  vertical-align: top;
  margin-left: 0;
  padding-left: 10px;
}
div.page_content ul > li {
  margin-top: 0;
}
div.page_content details {
  margin-top: 6px;
  display: inline-block;
  width: fit-content;
  vertical-align: top;
}

div.page_content details summary {
  font-size: 16px;
  margin-top: 0;
}



div.issue_info {

}
div.issue_info label {
  font-size: 1em;
}
div.issue_info label, span {
  margin-top: 4px;
}


main {
    margin: 0 1.5em;
    padding: 1.5em 1.5em 2em 1.5em;
    border-radius: 6px;

    /* background-color: rgba(30, 55, 75, 0.85); */
    /* background-color: rgba(32, 44, 57, 0.85); */
    /* background-color: #303030; */
    /* background-color: black; */
    /* background-color: rgba(0, 0, 0, 0.8); */
    /* background-color: #292F35; */
    /* background-color: rgba(41, 47, 53, 0.85); */
    /* background-color: rgba(75, 138, 153, 0.15) */
    /* background-color: rgba(38, 49, 51, 0.85); */
    /* background-color: rgba(38, 49, 51, 0.85); */
    /* background-color: rgb(38, 49, 51); */
    background-color: #222C2E;  /* 10% darker than above */

    /* display: grid;
    grid-template-areas: 
    "left right"
    "bottom bottom";
    grid-template-columns: 1fr 1fr; Creates two equal columns */
    /* gap: 1em;  Adds space between columns */

    
}

.main-content {
  min-height: calc(100vh - 454px);
}


td > textarea,
td > form > input,
td > input,
details > input,
.page-info input {
  width: 100%;
  font-size: 0.9em;
  padding: 2px;
  margin-right: 0;
  border-radius: 2px;
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
}

td > details > summary {
  font-size: 0.8em;
  line-height: 0.9em;
  cursor: pointer;
}

td > details > summary:hover {
  color: #A08FDB;
}

td > textarea {
  min-height: 65px;
  height: fit-content;
}

.page-info input {
  width: 150px;
}

input.year-input {
  width: 90px;
  margin-right: 0;
}

/* This was an interesting idea but when you clicked out of the input it moves other elements, eg the Save button, which was very jarring */
/* td > input:focus {
  min-width: 120px;
} */



/* folio number Varcoe index link */
.folio_number {
  color: #ff4040;
}
.folio_number a {
  color: #ff4040;
}
.folio_number a:hover {
  color: #A08FDB;
}





form {
  max-width: 100%;
}

.form-element {
  display: inline;
  max-width: 100%;
}

div.label-above {
  width: 300px;
  max-width: 100%;
  display: inline-block;
  margin-right: 1em;
}

input.label-above {
  display: block;
}

div.label-above label {
  font-size: 1em;
}

label {
  font-size: 20px;
  font-weight: 300;
  color: #9ea6b9;
  min-width: 120px;
}

textarea,
select,
input {
  font-size: 20px; 
  padding: 5px;
  margin: 6px 10px 6px 0;
  border: 1px solid black; 
  border-radius: 5px;
  width: 300px;
  max-width: 100%;
}

textarea:first-child,
select:first-child,
input:first-child {
  margin-top: 0;
}

input[type="checkbox"] {
  width: initial;
  max-width: initial;
  transform: scale(1.5);
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 2px;
}




footer {
  /* background-color: #202124; */
  padding: 0.3em 2em;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer p {
  flex: 0 1 auto;
  /* display: inline-block; */
}

footer .rendered {
  flex: 0 1 auto;
  font-size: 0.7em;
  color: #ADADAD;
  /* text-align: right;  */
}


/* default p styles */
p {
  margin: 0.5em 0;
  line-height: 1.3em;
}

.error {
  /* color: orange; */
  color: lime;
}

.alert {
  color: orange;
}

.highlight {
  /* color: #A08FDB; */
  color: orange;
  font-weight: bold;
}

mark {
  color: orange;
  font-weight: bold;
  background: none;
  padding: 0;
}

.center {
  text-align: center;
}

label {
  font-size: 1.1em;
  /* font-weight: 600; */
  display: inline-block;
  text-align: right;
  margin-right: 10px;
}

form.login label {
  width: 140px;
}




/* TABLE STYLING */

table {
  table-layout: auto;
  border-collapse: collapse;
  width: 100%;

}

div.desktop-row { display: block; }
th.desktop-row, tr.desktop-row { display: table-row; }
tr.mobile-row, tr.mobile-bdm { display: none; }

@media (max-width:1000px) {
  th.desktop-row, tr.desktop-row, div.desktop-row { display: none; }
  tr.mobile-row, table.card tr.mobile-bdm { display: table-row; }
}

/* tr:first-child td, */
thead th {
  border-bottom: 1px solid #616368;
	vertical-align: bottom;
  font-size: 0.8em;
  font-weight: 200;
  color: #9ea6b9;
}

td, th {
  text-align: left;
  vertical-align: top;     /* used to be text-top */
  padding: 6px 6px;
  border: none;
}

tbody tr {
    border-bottom: 1px solid #616368;
}



hr {
  border:0;
  margin:0;
  height:1px;
  border-bottom: 1px solid #616368;
}

header {
    padding: 1em 2em;
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
}



.graph-container {
  width: 48%;
  max-width: 1000px;
  display: inline-block;
  vertical-align: top;
}

.graph-title {
  text-align: center;
  margin-bottom: 1em;
  font-size: 20px;
}
.bar-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  border-radius: 3px;
  background-color: #9ea6b95e;
}
.label {
  width: 120px;
  text-align: right;
  padding-right: 10px;
  font-weight: bold;
  line-height: 1.1em;
}
.bar {
  height: 30px;
  background-color: #3498db;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  color: white;
  padding-left: 10px;
  border-radius: 3px;
  box-sizing: border-box;
}
.count {
  margin-left: 10px;
  font-weight: bold;
}



@media (max-width: 800px) {

  header {
    flex-direction: column;
    padding: 0.5em;
  }
  header img { max-height:130px; }
  header h1 { font-size: 1.5rem; margin: 0.3em 0; }
  header h1, 
  header p {
    text-align: center;  
  }

  main {
    margin: 0 0.75em;
    padding: 0.75em 0.75em 1em 0.75em;
  }


  /* Next / previous links */
  div.headerNextPrev > div > a { font-size: 1.1em; }

  div.headerNextPrev h2 { font-size: 1.3em; }
  div.headerNextPrev h1 { font-size: 1.5em; margin-bottom:0; }

  
  div.columns,
  div.home-columns { display: block; }

  div.columns .right,
  div.columns .left,
  div.home-columns .right,
  div.home-columns .left {
    margin-bottom: 2em;
    flex: 0 0 100%; 
    padding-right: 0;
  }

  .year-list-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 0.5em auto;
    padding: 0.5em;
    border: none;
  }

  .years-list br {
    display:none;
  }

  .years-list year {
    /* display: inline-block; */
    min-width: 2.1em; 
    font-size: 1.1em;
    /* margin: 0.1em 0.2em; */
  }


  .home-periodical-blocks {
    column-count: 1;
    width: 100%;
  }

  /* Responsive statistics */
  .statistics {
    flex-direction: row;
    gap: 0.5em;
  }
  .statistics .card {
    min-width: 200px;
    padding: 0.6em; 
  }
  .statistics .card h4 {
    font-size: 1.7rem; 
  }



  footer { padding: 0.4em 0.5em; }

} /* end of 800px width media */







@media (max-width: 600px) {

  div.headerNextPrev {
    /* Switch to two equal columns for the prev/next buttons */
    grid-template-columns: auto auto;
    /* Optional: Add a small gap between the heading and the buttons */
    row-gap: 0.5rem; 
    margin-bottom: 1rem;
  }

  /* Target the <heading> (the 2nd element) */
  div.headerNextPrev > :nth-child(2) {
    order: -1;           /* Visually moves the heading to the very top */
    grid-column: 1 / -1; /* Forces the heading to span 100% of the grid columns */
    text-align: center;  /* Centers the heading text */
  }

  main {
    margin: 0;
    border-radius: 0;
    padding: 0.5em;
  }

  .search_box input {
    display: block;
  }

  .search_box button {
    display: block;
    margin: 0.8em auto;
  }

  /* header {
    flex-wrap: wrap;
    padding: 0.5em;
  }

  header h2 { font-size: 1.3em; }
  header p { font-size: 0.8em; } */
  header img { max-height:110px; }

  .login-stuff {
    flex-basis: 100%;
  }

  /* adjust login stuff */
  ul.navbar-nav {
    list-style: none;
    text-align: left;
    display: flex;
    margin: 0.2em;
    justify-content: center;
  }
  ul.navbar-nav li {
    padding: 0 1em;
  }

  .image-adjustment {
    width: 100%;
  }

  .label {
      width: 80px;
      font-size: 14px;
  }
  .bar {
      height: 25px;
      font-size: 14px;
  }
}



/* Progress summary styles */
.progress-summary {
    background-color: rgba(38, 49, 51, 0.85);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #616368;

    margin-bottom: 1em;
}

.progress-summary h4 {
    color: #FDFBFD;
    margin-bottom: 15px;
}

.progress-summary .completion-badge {
    color: #4CAF50;
    font-size: 0.8em;
    margin-left: 10px;
}

.progress-summary .progress-bars {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.progress-summary .progress-item {
    flex: 1;
    min-width: 200px;
}

.progress-summary .progress-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #FDFBFD;
}

.progress-summary .bar-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.progress-summary .bar {
    height: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    color: #000;
    font-weight: bold;
    padding-left: 8px;
    box-sizing: border-box;
}

/* Specific Bar Colors */
.progress-summary .bar.downloaded {
    background-color: #4CAF50;
}

.progress-summary .bar.classified {
    background-color: #FF9800;
}

.progress-summary .bar.transcribed {
    background-color: #35cdf3;
}

.progress-summary .bar.analyzed {
    background-color: #A08FDB;
}



/* Blank Report Page Styles */
.blank-report-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.blank-report-item {
    flex: 0 0 33%;
    max-width: 33%;
    padding: 0 15px;
    margin-bottom: 1.5rem;
}

.blank-report-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out;
    border: 1px solid #616368;
    border-radius: 8px;
    background-color: rgba(38, 49, 51, 0.85);
}

.blank-report-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.blank-report-card-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #FDFBFD;
    font-weight: 600;
}

.blank-report-pdf-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 4:3 aspect ratio for rectangular shape */
    height: 0;
    overflow: hidden;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.blank-report-pdf-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #616368;
    background-color: #000;
}

.blank-report-button {
    margin-top: auto;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 4px;
    background-color: #35cdf3;
    color: #000;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.blank-report-button:hover {
    background-color: #A08FDB;
}

.blank-report-result {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .blank-report-item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 992px) {
    .blank-report-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .blank-report-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .blank-report-pdf-container {
        padding-bottom: 100%; /* Square aspect ratio on mobile */
    }
}



/* Issue Mini Progress Bars Styling */
.issue-mini-progress {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mini-bar-bg {
    height: 6px;
    background-color: #9ea6b95e; /* Consistent with main bar containers */
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
}

.mini-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.mini-bar-fill.transcription {
    background-color: #35cdf3; /* Consistent with transcribed bar */
}

.mini-bar-fill.analysis {
    background-color: #A08FDB; /* Consistent with analyzed bar */
}

/* Year View Actions */
.year-actions {
    text-align: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}




/* blueprint-ish line drawings of government buildings */

img.building {
  opacity: 50%;
  max-width: 70%;
  display: block;
  margin: auto;
  margin-top: 4em;
}

img.building:hover {
  opacity: 80%;
}

/* always an odd one out */
img.building.bay-of-islands,
img.building.bay-of-islands:hover {
  opacity: 100%;
}

.periodical-building img.building {
  opacity: 90%;
  max-width: 80%;
}
.periodical-building img.building:hover {
  opacity: 100%;
}

.building-caption {
  text-align: center;
  font-style: italic;
  max-width: 80%;
  margin:auto;
}

a.building-caption {
  display:inline-block;
}



.pagination-above,
.pagination-below {
  margin: 1em 0;
}



/* Calendar View */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.calendar-month {
    /* border: 1px solid #ddd; */
    padding: 1rem;
}
.calendar-month h3 {
    text-align: center;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}
.calendar-month table {
    width: 100%;
    border-collapse: collapse;
}
.calendar-month thead th {
    border-bottom: 1px solid white;
}
.calendar-month tr {
    border-bottom:initial;
}
.calendar-month th, .calendar-month td {
    text-align: center;
    font-size: 0.75rem;
    width:14.28%;
}
.calendar-month th {
    font-weight: bold;
}
.calendar-month td.normal {
    border-top: 1px solid #616368;
    border-bottom: 1px solid #616368;
    height: 2rem;
    vertical-align: middle;
}
.calendar-month td.empty {
    border-color: transparent;
}
.calendar-month td.has-issue {
    /* border: 3px solid #3b82f6; */
    /* border-radius: 5px; */
    background-color: #3b82f6;
}
.calendar-month td.has-special-issue {
    border: 2px solid #dc2626;
}
.calendar-month td .issue-num {
    font-size: 0.9rem;
    font-weight: bold;
}
.calendar-month td .issue-num a {
    text-decoration: none;
    /* color: #1d4ed8; */
    color:black;
}
.calendar-month td .issue-num a:hover {
    text-decoration: underline;
}