
* {box-sizing: border-box;}
            
body {
    width: 100%;
    max-width: 65rem;
    background-image: url(../images/banner2.png);
    background-repeat: no-repeat;
    font-family: "Baskervville", serif;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.5px;
}

/* =================== Navigation ======================
 * courtesy of ChatGPT, with additions and adjustments */
.navTitle {
    display: block; 
    margin-top: 0; 
    margin-left: 2rem; 
    text-align: center; 
    background-color: #faf0d2; 
    padding: 6px 20px; 
    float: left;
    width: 35%;
}
.homePlink {
    margin-left: 96%;
    width: 150px;
    display: block;
}
nav {
    width: 100%;
	font-size: 1em;
	line-height: 1.2em;
    color: #000;
    font-weight: bold;
    display: block;
    position: relative;
}
ul.nav {
    margin-top: 3%;
    display: block;
    background-color: #faf0d2;
    margin-left: -0.5rem;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-right: 10px;
    padding-left: 4px;
    width: 103%;
    text-align: right;
    box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}
li.nav {
    list-style-type: none; 
    display: inline-block;
    position: relative;
    padding-right: 20px;
}
li.nav:hover {background-color: #f0e3bb;}
.drop {
    text-decoration: none;
    color: #00347d;
}
.drop:hover {
    text-decoration: none;
	color: #356FC0;
}
.dropdown {
    display: none;
    position: absolute;
    top: 1.2rem;
    left: 0;
    background-color: #faf0d2;
    padding-left: 10px;
    margin: 0;
    text-align: left;
    width: 10rem;
    list-style-type: none;
}
ul.dropdown li {
  display: list-item;
  font-size: 90%;
}

ul.dropdown li a {
  padding: 6px;
  width: 300px;
}

ul.dropdown li a:hover {
  background-color: white;
}

/* Show the dropdown menu on hover */
li.nav:hover > ul {
  display: block;
}
/* end nav */

/* ======================= links =====================*/
a {
    font-weight: bold;
    text-decoration: none;
	color: #00347d;
}
a:hover {
    color: #356FC0;
}
a:visited {
    color: #36619e;
    }
a:visited:hover {
    color: #356FC0;
}

/* ======================= images ================== */
img.homeButton {
    height: 50px;
    width: 55px;
}
img.teiLogo {
    float: right;
    height: 60px;
    width: 60px;
    margin: 0;
    padding: 0;
}
figure.downloadCSV {
    float: right;
    margin: 0 -5rem -2rem 0;
    padding: 0;
}
div.listTitle > figure.downloadCSV {
    margin-top: -1rem;
}
figure.downloadCSV > figcaption {
    font-size: small;
    line-height: 14px;
}
img.csvIcon {
    height: 30px;
    width: 30px;
    padding: 5px;
}
img.csvIconB {
    height: 60px;
    width: 60px;
    padding: 5px;
}
/* =================== structures ==================== */
main {
    margin-left: 3%;
    margin-top: 0;
    background-color: #faf0d2;
    padding: 35px 10px;
}
div.letList, div.appMain {
    margin-left: 3%;
    margin-right: 3%;
    background-color: white;
    padding: 2% 8%;
}
div.letter {
    margin-left: 3%;
    margin-right: 3%;
    background-color: white;
    padding: 2% 8%;
}
div.introduction {
    margin-left: 3%;
    margin-right: 3%;
    background-color: white;
    padding: 2% 8%;
}
div.paratext {
    margin-left: 3%;
    margin-right: 3%;
    background-color: white;
    padding: 2% 8%;
}
div.appendix {
    margin-left: 3%;
    margin-right: 3%;
    background-color: white;
    padding: 2% 8%;
}
div.listTitle {
    margin: 0 3%;
    background-color: white;
    padding: 2% 8%;
    
}
div.lists {
    clear: both;
    display: flex;
    justify-content: flex-end;
    margin-top: -1rem;
}
div.toList {
    width: 25rem;
}
div.menList {
    width: 25rem;
}
div.notes {
    margin-left: 3%;
    margin-right: 3%;
    background-color: white;
    padding: 2% 8%;
}
.note { /* can be a div (containing p tags) or a p */
    display: block;
    width: 100%;
}

div > p:first-child {
    display: block;
    width: 100%;
    clear: both;
}

p {
    display: block;
    width: 100%;
}
p.noteSpace {
    height: 30rem;
}
ul {
    list-style-type: none;
}
p.opener {
    margin: 3%;
}

.dateline {
    display: block;
}
.dateline > .date {
    padding-left: 5px;
}
.salute {
    display: block;
    text-indent: 30px;
}
p.closer {}
p.postscript {}

.blockquote {
    display: block;
    margin-left: 40px;
    margin-right: 40px;
}

/* =================== tables and lists =================== */

tr.rowSpace {
    height: 2rem;
}

td {
    display: table-cell;
    vertical-align: top;
    padding-bottom: 0.5rem;
}


/* lists */
ul.letList {
    list-style-type: none;
    font-size: 90%;
    margin-left: 0;
}
ul.letList:empty::before {
    content: "None";
    display: list-item;
    list-style-position: inside;
    }
dl {

}
dt {
    font-size: 110%;
    font-weight: 600;
}
dd > p {
    margin-bottom: 0;
    padding-bottom: 0;
}
/* ====================== headers ====================== */
.listTitle > h1 {
    font-size: 90%;
    margin: 0;
    padding: 0;
    text-align: center;
}
.listTitle > h2 {
    margin: 0;
    text-align: center;
}
.listTitle > h3 {
    font-size: 90%;
    margin: 0;
    padding: 0;
    text-align: center;
}
/* for mentioned.html */
.menHdr,
.toHdr {
    padding-left: 2rem;
    position: relative;
    cursor: pointer;
    user-select: none;
}
.menHdr::before,
.toHdr::before {
    content: "\25B8";
    position: absolute;
    left: 0.75rem;
    display: inline-block;
    transition: transform 0.15s ease;
}
.menHdr.expanded::before,
.toHdr.expanded::before {
    transform: rotate(90deg);
}
.menList ul.letList,
.toList ul.letList {
    display: none;
}
.menList ul.letList.expanded,
.toList ul.letList.expanded {
    display: block;
}
/* for corrspondents */
.toToggle,
.menToggle {
    padding-left: 2rem;
    position: relative;
    cursor: pointer;
    user-select: none;
}
.toToggle::before,
.menToggle::before {
    content: "\25B8";
    position: absolute;
    left: 0.75rem;
    display: inline-block;
    transition: transform 0.15s ease;
}
.toToggle.expanded::before,
.menToggle.expanded::before {
    transform: rotate(90deg);
}

/* Hide toggle lists by default */
.correspToList,
.correspMenList {
    display: none;
}

/* Display toggle lists when sibling trigger is expanded */
.toToggle.expanded + .correspToList,
.menToggle.expanded + .correspMenList {
    display: block;
}
/*========================= poetry ========================*/

.stanza {
    margin-right: 0;
    display: block;
    width: 100%;
}
.stanzaSpace {}

.l {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    text-indent: 0px;
    gap: 20px;
}
.ltext {
    display: block;
    flex-grow: 2;
    flex-basis: 10rem;
}
.lno {
    display: block;
    flex-grow: 1;
    flex-shrink: 3;
}

/* ===================== indentation ==================== 
 * (can be used in poems, divs, paragraphs, etc.) */

.indent0 {
    text-indent: 0;
}
.indent {
    text-indent: 10px;
    display: block;
}
.indent1 {
    text-indent: 20px;
    display: block;
}
.indent2 {
    text-indent: 30px;
    display: block;
}
.indent3 {
    text-indent: 40px;
    display: block;
}
.indent4 {
    text-indent: 50px;
    display: block;
}
.indent5 {
    text-indent: 60px;
    display: block;
}
.indent6 {
    text-indent: 70px;
    display: block;
}
.indent7 {
    text-indent: 80px;
    display: block;
}
.indent8 {
    text-indent: 90px;
    display: block;
}
.indent9 {
    text-indent: 100px;
    display: block;
}
.indent10 {
    text-indent: 110px;
    display: block;
}
.indent11 {
    text-indent: 120px;
    display: block;
}
.indent12 {
    text-indent: 130px;
    display: block;
}
.indent13 {
    text-indent: 140px;
    display: block;
}
.indent14 {
    text-indent: 150px;
    display: block;
}
.indent15 {
    text-indent: 160px;
    display: block;
}
.indent20 {
    text-indent: 210px;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.3px;
    display: block;
}
.indent25 {
    text-indent: 260px;
    display: block;
}
.indent30 {
    text-indent: 310px;
    display: block;
}

/* ==================== Fonts and sizes ================== */

h1 {
    font-size: 24px;
    line-height: 32px;
}
h2 {
    font-size: 22px;
    line-height: 30px;
}
h3 {
    font-size: 20px;
    line-height: 28px;
}
h4 {
    font-size: 18px;
    line-height: 26px;
}
h5 {
    font-size: 14px;
    line-height: 22px;
}
h6 {
    font-size: 10px;
    line-height: 18px;
}
.label {
    font-size: 20px;
    font-weight: bold;
}
.title {
    font-style: italic;
}

.addUP {
    vertical-align: 10px;
}
.del {
    text-decoration: line-through;
}
sup, .sup {
  vertical-align: baseline;
  position: relative;
  top: -0.4rem;
  font-size: 0.95rem;
  line-height: 0;
}
.emphasis {
    text-decoration: underline;
}
.italics, .italic, .ital {
    font-style: italic;
}
.bold {
    font-weight: bold;
}

/* ================== alphabet list ===================
 * from gemini pro, 7/19/26 */
.alphabet-container {
    margin-left: -5%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.alpha-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px; /* Changed from width to min-width so "Clear" fits beautifully */
  height: 44px;
  padding: 0 12px; /* Adds space inside the buttons */
  text-decoration: none;
  color: #4b5563;
  font-size: 1.1rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer; /* Makes the clear button show a hand pointer like the links */
  transition: all 0.2s ease;
}

/* Specific styling for the clear button so it stands out subtly */
.clear-btn {
  background-color: #f3f4f6;
  font-size: 0.95rem;
  color: #6b7280;
}

/* Hover effects */
.alpha-btn:hover, 
.alpha-btn:focus {
  background-color: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

/* Red styling for when you hover over the clear button */
.clear-btn:hover {
  background-color: green !important;
  border-color: green !important;
  box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3) !important;
}

/* The style applied to the letter that is currently selected */
.alpha-btn.active {
  background-color: #2563eb; /* Slightly darker blue so it looks "pushed in" */
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(0);  /* Drops back down flat */
  box-shadow: none;
}

/* Disabled button styling for letters without entries */
.alpha-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: none;
}