.crimson-pro-<uniquifier> {
  font-family: "Crimson Pro", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.playfair-display-<uniquifier> {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.tagline {
	text-align: center;
	font-size: 1.6em;
	font-family: 'Playfair Display', serif;
	margin-top: -8px;
	margin-bottom: 15px;
	color: #652ABF;
	font-weight: 350;
} 

.main-content {
	font-family: 'Crimson Pro' , sans-serif;
	position: relative;
	background: transparent;
	z-index: 10;
	flex: 1;
	padding: 20px;
	padding-top: 5px;
} 

body {
	background-color: #FFFFFF;
	font-size: 1rem;
	font-family: 'Crimson Pro', serif;
} 
body.main-page {
	background-color: #FFFFFF;
}

.footer {
	font-family: 'Playfair Display', serif;
	font-size: 14px;
	color: black;
	display: flex;
	justify-content: space-evenly;
	max-width: 700px;
	margin: 0 auto;
	padding: 6px 0;
	gap: 12px;
} 


.heading {
	color: #2C3999;
	font-size: 1.6rem;
	font-weight: 400;
	margin-top: 30px; 
	margin-bottom: .5rem;
	position: static;
	text-align: left;
	font-family: 'Playfair Display', serif;
}

/* PRIVACY POLICY, ABOUT AND TERMS OF SERVICE PAGE SYLING */
body.subpage {
	color: black;
	line-height: 1.5;
	font-size: 1rem;
	font-family: 'Crimson Pro', sans-serif;
 }
 
 
.privacy_policy h1, 
.privacy_policy h2 {
	text-align: left;
	color: #2C3999;
	font-size: 1.75rem;
	font-family: 'Playfair Display', sans-serif;
}
/* END PRIVACY POLICY AND TERMS OF SERVICE PAGE SYLING */

.STPLogo {
	width: 180px;
	height: 180px;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 0;
}

:root{
	--hiw-gap: clamp(14px, 2vw, 22px);
	--hiw-radius: 14px;
	--hiw-card-bg: #fff;
	--hiw-text: #222;
	--hiw-muted: #666;
}

/* 1 2 3 BOXES */

.hiw{
	padding-top: 16px;
	padding-bottom: 1px;
	border-block: 1px solid var(--hiw-border);
	color: var(--hiw-text);
	font-family: 'Crimson Pro', sans-serif;
}

.hiw-wrap{ max-width: 1050px; margin: 0 auto; }

.hiw h2{
	margin: 0 0 14px;
	font-size: clamp(1.4rem, 2.4vw, 2.1rem);
	font-family: 'Playfair Display', serif;
}

.hiw-grid{
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--hiw-gap);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hiw-card{
	background: var(--hiw-card-bg);
	border: 1px solid #7E3CE0;
	border-radius: var(--hiw-radius);
	padding: 28px 18px 15px;
	min-height: 120px;
	display: grid;
	align-content: start;
	gap: 6px;
	text-align: center;
	justify-items: center;
	position: relative;
	overflow: hidden;
	background-color: #FAFAFA;
	z-index: -1;
}


.hiw-card h3{
	margin: 0 0 4px;
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.3;
	color: #2C3999; 
}

.hiw-card p{
	margin: 0;
	color: #9B5DE5;
	line-height: 1.4;
	font-size: 1.4rem;
	font-weight: 500;
}

.hiw-num {
	font-size: 9rem;
	font-weight: 700;
	color: #ECECEC;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	left: 50%;
	pointer-events: none;
	z-index: -2;
}

@media (max-width: 820px){
		.hiw-card h3 {
			font-size: 1.1rem; 
		}
		.hiw-card p {
			font-size: .9rem;
		}
}

/* 1 2 3 BOXES END */


/* FORM */

.form-block{
	max-width: 600px;
	margin: 20px auto;
	padding: 20px;
	background: #F8F7FC;
	border: 1px solid #C9CDF2;
	border-radius: 10px;
	font-family: 'Crimson Pro', sans-serif;
	box-sizing: border-box;
}

.form-block h2{
	font-family: 'Playfair Display', serif;
	font-size: 1.6rem;
	color: #2C3999;
	margin-bottom: 12px;
}

.form-block label{
	display: block;
	margin-top: 12px;
	font-weight: 600;
}

.form-block input,
.form-block textarea,
.form-block select{
	width: 100%;
	padding: 8px;
	margin-top: 4px;
	border: 1px solid #CCC;
	border-radius: 6px;
	font-size: 1rem;
	font-family: inherit;
	box-sizing: border-box;
	background-color: #FFFFFF;
}

.form-block button{
	margin-top: 16px;
	padding: 10px 18px;
	background: #6D23DC;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.form-block button:hover{
	background: #5A1BB6;
}

.form-block select:disabled {
  background-color: #f0f0f0;
  cursor: not-allowed;
  opacity: 0.7;
}

/* FORM END */

/*SEARCH BAR */
.search-bar{
    display:flex; 
	gap:.5rem; 
    max-width:700px; 
	width: 100%;
	margin: 0 auto;
	align-items: center;
	flex-wrap: wrap; 
  }
  .search-bar input{
    flex:1; 
	min-width:220px;
    padding:10px 12px; 
	border:1px solid #ddd; 
	border-radius:10px;
    font-family:'Crimson Pro', serif; 
	font-size:1rem;
  }
  .search-bar button{
    padding: 10px 10px; 
	border: 1px solid #6A74C9; 
	border-radius: 10px; 
    background:#BFC5F3; 
	color:#4A56B9; 
	font-weight:600;
    cursor:pointer;
	font-size: 1.1rem;
	height: auto;
	align-self: center;
	font-family: 'Crimson Pro', sans-serif;
  }
  .search-bar button:hover{ filter:brightness(.95); }
  
.button-all {
	padding: 9px 12px; 
	border:  3px solid #C9CDF2;
	border-radius:10px; 
    background: #F9F7FC; 
	color: #4A56B9; 
	font-size: 1.1rem;
	font-weight:700;
    cursor:pointer;
	font-family: 'Crimson Pro', sans-serif;
	text-decoration: none;
	margin-top: 10px;
	margin-bottom: 10px; 
  }
  
  
.nav-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .5rem;  
}

/* ADVANCED SEARCH BAR */

/* Style for the 'Advanced' button */
.advanced-toggle-btn {
  /* This styles it like your 'Search' button */
  background-color: #666; /* A neutral dark grey */
  color: white;
  border: 1px solid #666;
  padding: 0 15px;
  cursor: pointer;
  font-size: 1em;
  border-radius: 0 8px 8px 0; /* Match search button rounding */
  height: 44px; /* Match your input/button height */
  margin-left: -1px; /* Aligns with the search button */
}

.advanced-toggle-btn:hover {
  background-color: #444;
}

/* The panel itself - hidden by default */
.advanced-search-panel {
  display: none; 
  width: 100%; 
  background: #F8F7FC;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-top: -1px; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  
  /* This ensures it takes up the full row under the main search */
  grid-column: 1 / -1; 
}

/* This class is added by JS to show the panel */
.advanced-search-panel.active {
  display: grid;
}

/* Styling for each label/input group */
.advanced-search-panel .form-group {
  display: flex;
  flex-direction: column;
}

.advanced-search-panel .form-group label {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 5px;
  color: #4A56B9;
  font-family: 'Crimson Pro', sans-serif;
}

.advanced-search-panel .form-group input[type="text"],
.advanced-search-panel .form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
  box-sizing: border-box; 
}


/* SEARCH RESULTS PAGE */

.result-title {
	Font-family: 'Playfair Display', sans-serif;
	color: #4A56B9;
	font-size: 1.5rem;
	margin-top: -.1px;
}


.result-card {
	display: grid;
	position: relative; 
	grid-template-columns: 100px 1fr;
	gap: 16px;
	padding: 16px;
	margin-top: 16px;
	background: #FAFAFA;
	border: 1px solid #E0E0E0;
	border-radius: 12px;
}

.result-cover{
	width: 100%;
	max-width: 150px;
	height: auto;
	display: block;
	object-fit: cover;
	border-radius: 6px;
	background: #ECECEC;
}

.result-body{
	font-family: 'Crimson Pro', sans-serif;
	color: #222;
	
}



.result-author{
	margin-top: -10px;
	margin-left: 0px;
	margin-right: 0px;
	margin-bottom: 30px;
	color: #2C3999;
	font-size: 1.1rem;
}

.results-meta{
	margin: 0 0 10px;
	color: #444;
	font-size: 1rem;
	font-weight: 800;
	margin-top: 10px;
}

.result-about{
	margin: 0 0 20px;
	color: #333; 
	line-height: 1.4;
}

/* HIDDEN SPOILERS SECTION */

.result-spoilers{
		margin-top: 12px;
		padding: 14px 16px;
		background-color: #F9F7FC;
		border: 1px solid #E0E0E0;
		border-radius: 8px;
		font-size: 1rem;
		font-family: 'Crimson Pro', sans-serif;
		line-height: 1.5;
		color: #333;
}

.result-spoilers ul{
	margin: 0;
	padding-left: 20px;
	list-style-type: disc;
}

.result-spoilers li{
	margin-bottom: 6px;
}

.result-actions {
  text-align: left;
  margin-left: 50px; 
  margin-top: 20px; 
  margin-bottom: 1px; 
}

/* SPACE AROUND DOTS ON SEARCH RESULTS PAGE*/
.separator {
  margin: 0 0.4em; /* space left & right */
}

/*CONTRIBUTOR SYLING */

h2.result-title .contributor {
  color: black;
  font-size: 1.5rem;
  display: inline-block;
  float: right;
}

.result-author .contributor {
  color: black;  
  font-size: 1rem; 
  display: inline-block;
  float: right;
}


/* Optional: responsive stack on narrow screens */
@media (max-width: 640px) {
  .result-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "contributor"
      "author"
      "contribinfo";
  }
}

.button-group {
	display: flex;
    justify-content: center;
    gap: 3rem; 
    margin-top: 25px;
}

/* CHECKBOXES FOR GENRES */
.chk { 
	display: inline-block;
	margin: 4px 10px 4px 0;
}

fieldset {
	border: none;
	margin: 0;
	padding: 0;
}

legend {
	font-weight: 600;
	margin-border: 6px;
}

/* SEARCH RESULTS FIND NO MATCH STYLING */


.results-empty{
  max-width: 720px;
  margin: 32px auto;
  padding: 20px 18px;
  background: #FAFAFA;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  text-align: center;
  font-family: 'Crimson Pro', sans-serif;
}

.results-empty__title{
  font-family: 'Playfair Display', serif;
  color: #2C3999;
  font-size: clamp(1.3rem, 1.1vw + 1rem, 1.8rem);
  margin: 0 0 8px;
}

.results-empty__text{
  color: #444;
  margin: 0 0 16px;
  line-height: 1.5;
}

.results-empty__search{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto 14px;
}
.results-empty__search input[type="search"]{
  padding: 10px 12px;
  border: 1px solid #CCC;
  border-radius: 8px;
  font: inherit;
}
.results-empty__search button{
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #6D23DC;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.results-empty__search button:hover{ background: #5A1BB6; }

.results-empty__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}

.btn{
  display: inline-block;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary{ 
	background: #F2F2F2; 
	color: #2C3999; 
	border: 2px solid #9B5DE5; 
	}
	
.btn-primary:hover{ 
	background: #8A4DDE; 
	color: #fff; 
	}

.btn-secondary{ 
	background: #ECECEC; 
	color: #222; 
	border: 1px solid #DADADA; 
	}
	
.btn-secondary:hover{ 
	background: #E2E2E2; 
	}

/* SPOILER BUTTONS */
.btn-spoilers { 
	background: #F9F7FC;
	color: black;
	border: 3px solid #C9CDF2;
	padding: 5px 12px;
	border-radius: 8px; 
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: 'Playfair Display', sans-serif;
	font-size: .9rem;
	margin-right: 15px; 
}

.btn-spoilers:hover {
	background: #C9CDF2;
	color: #F9F7FC;
	transform: translateY(-2px);
}

.btn-spoilers.active {
  background: #C9CDF2;
  color: #fff;
  border: 2px dashed #C9CDF2; 
  transform: translateY(0);
}

.btn-toggle-sec {
  background: transparent; 
  color: #4A56B9;
  border: 2px solid #C9CDF2; 
  padding: 5px 12px;
  border-radius: 8px; 
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Playfair Display', sans-serif;
  font-size: .9rem;
  margin-right: 15px;
}

.btn-toggle-sec:hover {
  background: #F9F7FC; /* Fill with a light color on hover */
  color: #222;
}

.btn-toggle-sec.active {
  background: #C9CDF2;
  color: #fff;
}

/* KEY PLAYERS STYLING */
.keyplayers li {
  margin: 2px 0;
  padding-left: 8px;
  list-style-type: square;  
  color: black;            
  font-weight: 600;  
  font-size:  1.1rem; 
  margin-bottom: 2px;
  font-family: 'Crimson Pro', sans-serif;
  padding-bottom: 7px; 
}


.book_about {
	font-family: 'Crimson Pro', sans-serif;
	font-size: 1.1rem; 
	
}


/* Make the genre list compact and responsive */
fieldset.genres {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* 180–220px works well */
  gap: 6px 12px;       /* row gap | column gap */
  align-items: center; /* keep labels aligned nicely */
  border: 1px solid #ddd;
  padding: 10px 12px;
  border-radius: 8px;
}

fieldset.genres legend {
  font-weight: 600;
  padding: 0 6px;
}

fieldset.genres label.chk {
  display: flex;           /* checkbox + text on one line */
  align-items: center;
  gap: 8px;
  margin: 0;               /* remove default spacing */
  line-height: 1.2;
  white-space: nowrap;     /* keep short genres on one line */
}

/* Optional: slightly smaller checkbox and text for density */
fieldset.genres input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
fieldset.genres label.chk { font-size: 0.95rem; }

/* FRESH SPOILS SECTION */

.fresh { 
	text-align: center;
	font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    margin: 20px 0 2px;
    color: #2C3999;                    
    font-weight: 600;
} 

.spoils {
	max-width: 1100px;
	margin: 40px auto;
	padding: 0 20px;
}

.spoils_grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 30px;
}

.book_card {
	background: #fff;
	border-radius: 8px;
	padding: 1px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.book_card img {
	width: 100%;
	max-width: 200px;
	height: auto;
	aspect-ratio: 326 / 522;
	object-fit: cover;
	border-radius: 8px;	
	display: block;
	margin: 0 auto;

}

@media (max-width: 1000px) {
	.spoils_grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.spoils_grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* LOGIN PAGE */
.panel-title {
	font-family: 'Crimson Pro', Serif;
	color: #4A56B9;
	text-align: center;
	font-size: 2rem;
}

.panel-body {
	text-align: center;
	font-family: 'Playfair Display', sans-serif;
	background-color: #9B5DE5;
	width: 300px; 
	margin: 50px auto;
	padding: 20px;
	border-radius: 8px;
}	

.panel-body input {
	width: 100%;
	padding: 8px;
	margin-top: 5px;
	margin-bottom: 15px;
	border: 1px solid;
	border-radius: 8px;
	box-sizing: border-box;
}

/*LOGOUT BUTTON*/

.logoutbtn {
	display: block;
	margin: 10px;
	padding: 10px;
	border-radius: 8px;
	background-color: #grey;
	font-weight: 600;
}

/* SEARCH RESULTS PAGE FOOTER */
.search_footer {
	text-align: center;
	font-size: .85rem;
	color: black;
	margin-top: 40px;
}


/* REQUEST FOR USER SUBMISSION BAND */
.contribute-band {
  background: #F8F7FC; 
  text-align: center;
  padding: 1rem 1rem;
  margin-top: .5px;
  margin-bottom: 5px;
  border-top: 1px solid #7E3CE0;
  border-bottom: 1px solid #7E3CE0;
}

.contribute-band__wrap {
	max-width: 700px;
	margin: 0 auto;
	padding-bottom: 20px; 
}

.contribute-band h2 {
	font-family: "Playfair Display", serif;
	font-size: 2rem;
	margin-top: 0;
	margin-bottom: 1rem;
	color: #7E3CE0;
	font-weight: 600;
}

.contribute-band p {
	font-family: "Crimson Pro", sans serif;
	font-size: 1rem;
	margin-bottom: 2rem;
	font-weight: 500;
}

.contribute-band__cta {
	padding: 12px 15px;
	border-radius:10px; 
	font-weight:700;
    cursor:pointer;
	margin-bottom: 20px;
	text-decoration: none;
	color: #4A56B9;
	border: 3px solid #C9CDF2; 

}

.contribute-band__cta:hover {
	background: #FFFFFF;
}

/* TRIGGER WARNING BAND */

.tw-band {
	color: #4A56B9;
	background-color: #F8F7FC;
	text-align: center;
	border-top: 1px solid #7E3CE0;
	border-bottom: 1px solid #7E3CE0;
	font-size: 1.2rem;
	font-weight: 600;
	font-family: 'Crimson Pro', sans-serif;
	margin-top: 20px;
}


/* SUBMISSIONS PAGE GUIDELINES */

.sub_headings {
	font-family: 'Playfair Display', serif;
	text-align: center;
	font-size: 1.7rem;	
}

.sub_body {
	text-align: left;
	padding-left: 250px;
	padding-right: 100px;
	font-family: 'Crimson Pro', sans-serif;
	font-size: 1.2rem;
	line-height: 1.5rem;
}

.success-message {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    color: #155724; 
    background-color: #d4edda; 
    text-align: center;
    font-size: 1.1em;
}

/* ALL BOOKS PAGE */

/* A–Z NAV */
.alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 20px 0 40px;
}

.alphabet-nav a,
.alphabet-nav .disabled-letter {
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-family: 'Crimson Pro', serif;
  font-size: 0.95rem;
}

.alphabet-nav a {
  background: #f3f3f9;
  color: #4A56B9;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.alphabet-nav a:hover {
  background: #4A56B9;
  color: #fff;
}

.alphabet-nav .disabled-letter {
  background: #eee;
  color: #aaa;
  cursor: not-allowed;
}

/* Optional: make nav sticky while scrolling */
.alphabet-nav {
  position: sticky;
  top: 96px;
  background: #fff;
  padding: 10px 0;
  z-index: 10;
  border-bottom: 1px solid #ddd;
}


.letter-heading {
  margin: 40px 0 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2C3999;
  border-bottom: 2px solid #eee;
  padding-bottom: 6px;
  font-family: 'Playfair Display', serif;
  scroll-margin-top: 160px; 
}


.allbooks-grid {
	display: grid;

	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));

	gap: 20px;
	max-width: 100%;   
	margin: 0 auto 50px;
	padding: 0 20px;   
}


.book-card .amazonurl {

	margin-top: auto; 
	padding-bottom: 16px;
}






form.search-bar2 {
  display: flex;
  gap: 0.5rem;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  align-items: center;
  padding-bottom: 20px;
  box-sizing: border-box;
}

form.search-bar2 input[type="search"] {
  flex: 1;
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  box-sizing: border-box;
}

form.search-bar2 > button {
  flex: 0 0 auto;         
  width: auto;            
  white-space: nowrap;    
  padding: 10px 14px;
  border: 1px solid #6A74C9;
  border-radius: 10px;
  background-color: #C9CDF2; 
  color: #4A56B9;              
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  font-family: 'Crimson Pro', sans-serif;
  align-self: center;
  box-sizing: border-box;
  transition: filter 0.2s ease;
}

form.search-bar2 > button:hover {
  filter: brightness(0.95);
}

 
 /* ALLBOOKS / SERIES / NOVELLAS STYLING */
 
.series-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
}

.book-card-details-link {
    padding-top: 15px; 
    font-size: 1rem;
    font-weight: 600;
    color: #7E3CE0;
    font-family: 'Crimson Pro', sans-serif;
	text-decoration: none;
}

@media (min-width: 640px) {
    .series-container {
        padding-left: 1.5rem; 
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .series-container {
        padding-left: 2rem; 
        padding-right: 2rem;
    }
}

.series-page-header {
    text-align: center;
    margin-bottom: 1rem; 
	margin-top: -40px;
}


.series-section {
    margin-bottom: 2rem;
}

.series-header {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
	font-family: 'Playfair Display', serif;
    padding-top: .1rem ;
	padding-left: 1.2rem;
	padding-right: 1rem;
	padding-bottom: .1rem;
    margin-bottom: 1rem;
    border-left-width: 4px;
}

.amazon-button-series{

    background-color: #4A56B9; 
    color: #ffffff;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}


.series-title {
    font-size: 1.8rem; 
    line-height: 1.5rem; 
    font-weight: 400;
    color: #4A56B9; 
	font-family: 'Playfair Display', serif;
}

.series-top-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem; 
}

.series-meta {
    margin-top: 0.25rem;
	margin-bottom: .5rem;
    color: #475569; 
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem; 
}
/*
.series-about {
    margin-top: 1rem;
    color: #475569;
    font-family: 'Crimson Pro', sans-serif;
    line-height: 1.5;
} */

.series-grid {
    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px; 
    color: #9B5DE5; 
}


.series-book-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.2s ease-in-out;
    text-align: center;
}

.series-book-card:hover {
    transform: translateY(-4px);
}

.book-card-link {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.book-card-image {
    width: 100%;
    height: auto;
	aspect-ratio: 326 / 522;
    object-fit: cover;
    background-color: #f0f0f0;
} 

.order-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(15, 23, 42, 0.8);
    color: white;
    padding: 0.25rem 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    border-bottom-right-radius: 0.5rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.book-card-body {
    padding: .5rem;
	display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.book-card-title {
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1;
	font-family: 'Crimson Pro', sans-serif; 
	color: #4A56B9;
}

.book-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease-in-out;
}

.book-card-title a:hover {
    color: #6366f1;
}

.book-card-info {
    font-size: 0.95rem; 
	font-weight: 400;
    color: #64748b;
    margin-top: -0.1rem;
}

.book-card-tag {
    font-weight: 500;
}


.container {
    max-width: 1280px; 
    margin-left: auto;  
    margin-right: auto;
    padding-left: 1rem; 
    padding-right: 1rem;
}


/* ACCESSORIES PAGE STYLING  */


.site-subtitle-acc {
    margin-top: 0.25rem;
    color: #4b5563;
}


.main-content-acc {
	padding-top: -1rem;
    padding-bottom: 3rem;
}

.intro-acc {
    text-align: center;
    margin-bottom: 3rem;
}

.accessories-grid-acc {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.product-card-acc {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-image-acc {
    height: 12rem;
    width: 100%;
    object-fit: contain;
}

.card-body-acc {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.product-title-acc {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.product-description-acc {
    color: #374151;
    margin-bottom: 1rem;
    flex-grow: 1; 
}

.amazon-button-acc {
    display: block;
    background-color: #4A56B9; 
    color: #ffffff;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    text-decoration: none;
	align-self: center;
    transition: background-color 0.2s ease-in-out;
    margin-top: auto; 
}

.amazon-button-acc:hover {
    background-color: #2563eb; 
}


.card-hover-effect-acc {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card-hover-effect-acc:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}


@media (min-width: 640px) {
    .accessories-grid-acc {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .accessories-grid-acc {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .accessories-grid-acc {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* navigation bar */

  /* Basic Header Styles */

.main-header {
  background-color: #F8F7FC;
  padding: 8px 0; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: 50px;
}


.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Playfair Display', serif;
}

  .nav-logo a {
    display: block;
  }

  .nav-logo img {
    height: 80px; 
  }
  
  /* --- Dropdown Menu Styles --- */

/* Add relative position to the list item that holds the dropdown */
.nav-links li {
	position: relative;
}

/* Style the dropdown toggle link (Browse) */
.nav-links .dropdown > a {
	display: flex;
	align-items: center;
}
.nav-links .dropdown > a::after {
	content: ' \25BE'; /* Adds a down arrow */
	font-size: 0.8em;
	margin-left: 4px;
}

/* The dropdown content (hidden by default) */
.dropdown-content {
	display: none;
	position: absolute;
	top: 100%; /* Position it right below the parent */
	left: 0;
	padding: 0;
	margin: 0;
	background-color: #FFFFFF;
	min-width: 220px; /* Give it some space */
	border: 1px solid #C9CDF2; /* Match site border */
	border-radius: 8px; /* Match site rounding */
	box-shadow: 0 4px 8px rgba(0,0,0,0.05);
	z-index: 1001; /* Ensure it's on top */
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
	display: block;
}

/* Style the links inside the dropdown */
.dropdown-content li {
	display: block;
	list-style: none;
}

.dropdown-content a {
	display: block;
	padding: 12px 16px;
	color: #4A56B9; 
	text-decoration: none;
	white-space: nowrap;
	font-size: 0.95rem; 
}

.dropdown-content a:hover {
	background-color: #F8F7FC; 
	color: #2C3999; 
}


  /* Desktop Navigation Links */
  .nav-links {
    display: none; /* Hidden by default on mobile */
    list-style: none;
	color: #4A56B9;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 24px; /* space-x-6 */
  }

  .nav-links a,
  .nav-links button {
    text-decoration: none;
    font-size: 1rem;
    background: none;
	color: #4A56B9;
    border: none;
    cursor: pointer;
	font-weight: 500;
    font-family: inherit;
    transition: color 0.2s ease-in-out;
  }

  .nav-links a:hover,
  .nav-links button:hover {
    color: #9f1239; /* hover:text-rose-800 */
  }


  .mobile-menu-button {
    display: block; 
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .mobile-menu-button svg {
      width: 24px;
      height: 24px;
      color: #374151;
  }

  .mobile-menu {
    display: none; 
    background-color: #ffffff;
    width: 100%;
  }
  
  .mobile-menu.active {
      display: block;
  }

  .mobile-menu a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #374151;
    font-size: 0.875rem; 
  }
  
  .mobile-menu a:hover {
      background-color: #F8F7FC;
  }



  @media (min-width: 768px) {
    .nav-links {
      display: flex; 
    }
    .mobile-menu-button {
      display: none; 
    }
  }


/* BREADCRUMB STYLE */


.breadcrumb {
  padding: 1px 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  font-family: 'Crimson Pro', serif;
  font-size: 0.9rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}


.breadcrumb-item:not(:last-child)::after {
  content: '>';
  margin: 0 0.6em; 
  color: #6c757d;
}


.breadcrumb-item a {
  color: #555; 
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}


.breadcrumb-item.active {
  color: #111;
  font-weight: bold;
}


/* === UNIVERSAL PAGE TITLE === */
.page-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; 
  font-weight: 600;
  color: #4A56B9;
  margin-top: 0; 
  margin-bottom: 1rem;
  line-height: 1.2; 
}


@media (max-width: 640px) {
  .page-title {
    font-size: 2rem;
  }
}
/* NOVELLA STYLING */


.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.intro-text {
    font-family: 'Crimson Pro', sans-serif;
    font-size: 1.2rem;
	text-align: center;
    color: black;
    max-width: 800px;
	font-weight: 300;
    margin: 1rem auto 0;
    line-height: 1.3;
}

.book-category {
    margin-bottom: 50px;
}


.novellas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
}


/* AMAZON LINKS - NEW STYLE */
.amazonurl {
  display: inline-block;
  text-decoration: none;
  font-family: Arial, sans-serif; 
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
  background-color: #FFA41C;
  border: 1px solid #FF8F00;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 10px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.amazonurl:hover {
  background-color: #FA8900; 
  transform: translateY(-1px); 
  filter: none; 
}

/* SCREEN READER H1 ON INDEX PAGE */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Series Page - Jump To Navigation   */

.page-jump-nav {
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: .9rem;
    background: #F8F7FC;
    border: 2px solid #C9CDF2;
	
}

.jump-nav-title {
    margin-top: -.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
	color: #4A56B9;
}


.jump-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-family: 'Crimson Pro', sans-serif; 
}


.jump-links li {
    padding: 0;
    margin: 0;
    display: flex;
    flex-grow: 1; 
}


.jump-links a {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    flex-grow: 1; 
    padding: 10px 14px; 
    background: #fff; /* Your button background */
    border: 1px solid #C9CDF2; /* Your button border */
    border-radius: 10px; /* Your rounded corner choice */
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    min-width: 150px; /* Ensures buttons have a nice minimum size */
    text-align: center;
}


.jump-links a:hover {
    background: #f0f0f0;
    border-color: #aaa;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


.jump-link-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #4A56B9; 
}


.jump-link-author {
    font-size: .9rem;
    color: #555; 
    margin-top: 2px;
}

/* ======================================= */
/* START: MINIMIZED JUMP-TO-SERIES NAV     */
/* ======================================= */

.minimized-jump-nav {
    position: fixed;
    bottom: 150px;
    right: 20px;
    z-index: 100;
    display: none; 
}

.minimized-jump-nav.is-visible {
    display: block;
}

.minimized-jump-nav__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #4A56B9; 
    color: #fff;
    padding: 12px 16px;
    border: none;
    border-radius: 50px; 
    font-family: 'Crimson Pro', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.minimized-jump-nav__trigger:hover {
    background-color: #2C3999;
    transform: translateY(-2px);
}

.minimized-jump-nav__trigger svg {
    stroke: #fff;
}

.minimized-jump-nav__panel {
    display: none; 
    position: absolute;
    bottom: calc(100% + 10px); 
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #C9CDF2;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* This class is added by JS on click */
.minimized-jump-nav.is-open .minimized-jump-nav__panel {
    display: block;
}

.minimized-jump-nav__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.minimized-jump-nav__header h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #4A56B9;
}

.minimized-jump-nav__close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.minimized-jump-nav__close:hover { color: #333; }

.minimized-jump-nav__list {
    list-style: none;
    padding: 8px;
    margin: 0;
    max-height: 300px; /* Make the list itself scrollable */
    overflow-y: auto;
}

.minimized-jump-nav__list li {
    margin: 0;
    padding: 0;
}

.minimized-jump-nav__list a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #2C3999;
    border-radius: 6px;
    font-family: 'Crimson Pro', sans-serif;
    font-size: 1rem;
}

.minimized-jump-nav__list a:hover {
    background-color: #F8F7FC;
}


.minimized-jump-nav__list a .jump-link-author {
    font-size: 0.85rem;
    color: #555;
    display: block;
    margin-top: 2px;
}


/* END: MINIMIZED JUMP-TO-SERIES NAV       */


/* WHATNEXT PAGE STYLING */

.whatnext-jump-nav {
    max-width: 800px;
    margin: 0 auto 30px; 
}
.whatnext-jump-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr; 
    gap: 10px;
}
.whatnext-jump-nav a {
    display: block;
    padding: 12px 16px;
    background: #F8F7FC; 
    border: 1px solid #C9CDF2; 
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    font-family: 'Crimson Pro', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #4A56B9; /* Site-brand color */
    transition: background-color 0.2s ease;
}

.whatnext-jump-nav a:hover {
    background-color: #ECECEC;
}


@media (min-width: 600px) {
    .whatnext-jump-nav ul {
        grid-template-columns: repeat(3, 1fr);
    }
}


#option-1, #option-2, #option-3 {
    scroll-margin-top: 120px; 
}


.whatnext-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
    max-width: 1200px; 
    margin: 30px auto;
}

.whatnext-column-2 {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


.whatnext-grid > .form-block,
.whatnext-column-2 > .form-block {
    margin: 0;
    max-width: none;
}


@media (max-width: 820px) {
    .whatnext-grid {
        grid-template-columns: 1fr;
        max-width: 800px; 
    }
}
  
.randomizer-block {
    text-align: center;
}

.randomizer-block p,
.tbr-block p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1.5rem;
}


.whatnext-btn { 	
    display: inline-block;
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Crimson Pro', sans-serif;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.whatnext-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.form-block .whatnext-btn-primary {
    background: #7E3CE0D9; 
    color: #fff;
}
.whatnext-btn-primary:hover {
    background: #8A4DDE; 
}


/* === MODAL POPUP STYLES === */

.modal-overlay {
	display: none; 
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.65); 
	align-items: center;
	justify-content: center;
	z-index: 2000; 
	padding: 20px;
	box-sizing: border-box;
}

.modal-content {
	background: #FFFFFF;
	padding: 28px;
	border-radius: 12px;
	max-width: 450px;
	width: 100%;
	position: relative; 
	text-align: center;
	font-family: 'Crimson Pro', sans-serif;
	box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.modal-close-button {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 2.2rem;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 0;
}
.modal-close-button:hover {
	color: #333;
}

.modal-title {
	font-family: 'Playfair Display', serif;
	font-size: 1.8rem;
	color: #2C3999;
	margin-top: 0;
	margin-bottom: 20px;
}

/* --- Styles for the content injected by JavaScript --- */

.modal-book-cover {
	width: 100%;
	max-width: 250px;
	height: auto;
	aspect-ratio: 326 / 522; 
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 12px;
}

.modal-book-title {
	font-family: 'Playfair Display', serif;
	font-size: 1.6rem;
	font-weight: 600;
	color: #4A56B9; /* This was .modal-book-title */
	margin: 0;
	line-height: 1.2;
}

.modal-book-author {
	font-family: 'Crimson Pro', sans-serif;
	font-size: 1.15rem;
	color: #4A56B9; /* This was .modal-book-author */
	margin-top: 4px;
	margin-bottom: 24px;
}

/* Make the button in the modal smaller */
.modal-book-card .whatnext-btn {
	width: auto; 
	padding: 10px 24px;
}

/* Style for the custom title from your TBR list */
.modal-custom-title p {
	font-family: 'Playfair Display', serif;
	font-size: 2.2rem;
	font-weight: 600;
	color: #4A56B9;
	padding: 20px;
	background: #F8F7FC;
	border: 1px solid #C9CDF2;
	border-radius: 8px;
	margin: 10px 0;
}

.modal-text-muted {
	font-size: 1.1rem;
	color: #666;
	margin: 8px 0;
	line-height: 1.4;
}


.modal-book-card > a {
    text-decoration: none;
    color: white;
}


.modal-book-card > a:hover .modal-book-title {
    color: #4A56B9; 
}

/* --- Custom Select Dropdown (for Pub Year) --- */


.custom-select-wrapper {
  position: relative;
}


.custom-select-trigger {
 
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
  box-sizing: border-box; 
  background: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333; 
}


.custom-select-arrow {
  border: solid #555;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg); 
  transition: transform 0.2s ease;
}


.custom-select-trigger.is-open .custom-select-arrow {
  transform: rotate(-135deg); 
}

.custom-select-options {
  display: none; 
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 100; 
  max-height: 180px; 
  overflow-y: auto;  
 
}


.custom-select-options.is-open {
  display: block;
}


.custom-select-option {
  padding: 10px;
  cursor: pointer;
  font-size: 0.95em;
  color: #333;
}


.custom-select-option:hover,
.custom-select-option:focus {
  background-color: #F8F7FC; 
  color: #4A56B9; 
  outline: none;
}

@media (max-width: 820px) {
  .search-bar {
    justify-content: center;
  }

  .search-bar input {
    flex-basis: 100%;
    min-width: 0; 
  }
}

/* START: BACK TO TOP BUTTON    */


.back-to-top-btn {
    position: fixed;
    bottom: 150px;
    left: 20px; 
    z-index: 100;
    display: none; 
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    background-color: #4A56B9; 
    color: #fff;
    border: none;
    border-radius: 50%; 
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


.back-to-top-btn.is-visible {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background-color: #2C3999;
    transform: translateY(-2px);
}

.back-to-top-btn svg {
    stroke: #fff;
}

/* MOBILE FRIEDNLY CSS FOR SEARCH RESULTS PAGE */

/* --- START: Mobile Fix for Search Results --- */

@media (max-width: 600px) {

  .result-card {
   
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

  /* Center the image and Amazon link in the new 1-column layout */
  .result-image-column {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Give the cover a nice, centered size */
  .result-cover {
    max-width: 180px;
  }

  .results-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    gap: 5px; 
    font-size: 1.05rem; 
    line-height: 1.4;
  }

  .results-meta .separator {
    display: none;
  }
}


@media (max-width: 600px) {

  .result-actions {
    display: flex;        
    flex-wrap: wrap;     
    gap: 10px;    
    margin-left: 0;
    margin-top: 15px;
    margin-bottom: 10px;
  }
  
  .result-actions .btn-spoilers,
  .result-actions .btn-toggle-sec {
    margin-right: 0; 
  }
}

/* --- END: Mobile Fix for Result Buttons --- */