@charset "UTF-8";
/*
Theme Name: Wheel of Time Journal
Theme URI: https://your-site-url.com/
Author: Your Name
Description: A custom theme for journaling thoughts on the Wheel of Time series.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wot-journal
Tags: blog, books, reading, wheel of time
*/
/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Lora:ital,wght@0,400;0,600;1,400&family=Nunito+Sans:ital,wght@0,400;0,600;1,400&display=swap");
body {
  font-family: "Lora", Georgia, serif;
  background: #1a1a1a url("https://www.transparenttextures.com/patterns/subtle-dark-vertical.png");
  background-size: 200px 200px;
  color: #222;
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
  line-height: 1.8;
  font-size: 1rem;
}

header {
  background: #1a1a1a;
  color: #e2c275;
  padding: 0.7rem 0;
  text-align: center;
  border-bottom: 4px solid #a41e22;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: padding 0.3s ease;
}
header:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 4px;
  background: #e2c275;
  opacity: 0.6;
}
header .header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
header .header-logo {
  width: 40px;
  height: 40px;
  margin: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}
header .header-logo:hover {
  transform: rotate(45deg);
}
header .header-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
header .header-titles h1.site-title {
  font-size: 1.8rem;
  margin: 0;
  letter-spacing: 2px;
  font-weight: 700;
  font-family: "Cinzel", serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
header .header-titles h1.site-title a {
  transition: color 0.3s ease;
}
header .header-titles h1.site-title a:hover {
  color: #c9a85e;
}
header .header-titles p {
  margin: 0;
  font-size: 1.1rem;
  color: #f5e7c6;
  font-style: italic;
  text-align: left;
  font-family: "Nunito Sans", sans-serif;
  opacity: 0.9;
}

.main-navigation {
  background: rgba(26, 26, 26, 0.95);
  text-align: center;
  padding: 0.5rem 0;
  border-bottom: 2px solid #e2c275;
}
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.main-navigation ul li {
  margin: 0 1rem;
}
.main-navigation ul li a {
  color: #f5e7c6;
  text-decoration: none;
  font-family: "Nunito Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 0;
  position: relative;
  display: inline-block;
}
.main-navigation ul li a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #e2c275;
  transition: width 0.3s ease;
}
.main-navigation ul li a:hover:after {
  width: 100%;
}

main {
  max-width: 1200px;
  margin: 2.5rem auto;
  background: #fff;
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 60vh;
  border: 1px solid rgba(226, 194, 117, 0.3);
  position: relative;
}
main:before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(164, 30, 34, 0.1);
  border-radius: 10px;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Cinzel", serif;
  color: #a41e22;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.3;
  letter-spacing: 0.5px;
}
h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
  margin-top: 0;
}

h1 {
  font-size: 2.4rem;
  border-bottom: 2px solid rgba(164, 30, 34, 0.2);
  padding-bottom: 0.3em;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.3rem;
  color: #1a1a1a;
}

section {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
section img {
  max-width: 160px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(44, 30, 34, 0.15);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 3px solid #fff;
  outline: 1px solid rgba(226, 194, 117, 0.3);
}
section img:hover {
  box-shadow: 0 8px 28px rgba(164, 30, 34, 0.18);
  transform: scale(1.05) rotate(1deg);
}

/* Remove bullets only from sidebar and navigation lists, not from post content */
.sidebar-books ul,
.sidebar-recent ul,
.sidebar-pages ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
}

/* Restore default bullets for post content lists */
.entry-content ul,
.entry-content ol {
  list-style: initial;
  padding-left: 2em;
  margin: 1.5em 0;
  line-height: 1.8;
}
.entry-content ul {
  list-style-type: disc;
}
.entry-content ol {
  list-style-type: decimal;
}
.entry-content li {
  margin-bottom: 0.7em;
  position: relative;
}
.entry-content a.glossary-link:hover {
  text-decoration: none;
}

.book-post-list, .chapter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 1em 0;
}
.book-post-list li, .chapter-list li {
  flex: 0 0 calc(33.333% - 2rem);
  margin-bottom: 0.5em;
  list-style-type: none;
}
.book-post-list li a, .chapter-list li a {
  color: #a41e22;
  text-decoration: none;
  border-bottom: 1px dotted #a41e22;
  transition: color 0.2s ease, border-bottom 0.2s ease;
}
.book-post-list li a:hover, .chapter-list li a:hover {
  color: #c9a85e;
  border-bottom: 1px solid #e2c275;
}
@media (max-width: 900px) {
  .book-post-list li, .chapter-list li {
    flex: 0 0 calc(50% - 2rem);
  }
}
@media (max-width: 700px) {
  .book-post-list li, .chapter-list li {
    flex: 0 0 100%;
  }
}

.entry-content img {
  display: block;
  margin: 2.5rem auto;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(44, 30, 34, 0.12), 0 2px 8px rgba(164, 30, 34, 0.08);
  border: 3px solid #fff;
  outline: 1px solid rgba(226, 194, 117, 0.5);
  background: #fff;
  padding: 0.7rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.entry-content img:hover {
  box-shadow: 0 12px 36px rgba(164, 30, 34, 0.18), 0 4px 12px rgba(44, 30, 34, 0.12);
  transform: scale(1.03);
}
.entry-content figure.wp-caption,
.entry-content .wp-caption {
  margin: 2.5rem auto;
  max-width: 100%;
  text-align: center;
  background: #f9f6f1;
  border-radius: 8px;
  border: 1px solid rgba(226, 194, 117, 0.3);
  box-shadow: 0 4px 16px rgba(44, 30, 34, 0.04);
  padding: 0.5rem 0.7rem 0.7rem 0.7rem;
}
.entry-content figure.wp-caption img,
.entry-content .wp-caption img {
  margin: 0 auto 0.5rem auto;
  padding: 0;
  max-width: 100%;
}
.entry-content figure.wp-caption figcaption,
.entry-content figure.wp-caption .wp-caption-text,
.entry-content .wp-caption figcaption,
.entry-content .wp-caption .wp-caption-text {
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.85rem;
  color: #222;
  line-height: 1.5;
  padding: 0 0.5rem;
  margin: 0;
  font-style: regular;
  text-align: left;
}
.entry-content .alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1.5rem 0;
}
.entry-content .alignright {
  float: right;
  margin: 0.5rem 0.5rem 1.5rem 1.5rem;
}
.entry-content figure.wp-caption.alignright,
.entry-content .wp-caption.alignright {
  margin-right: 0;
  width: auto;
  max-width: calc(100% - 1.5rem); /* Account for left margin of alignright */
}
.entry-content .aligncenter {
  display: block;
  margin: 2.5rem auto;
  clear: both;
}
.entry-content .alignnone {
  margin: 2.5rem 0;
}
.entry-content img.alignleft, .entry-content img.alignright, .entry-content img.aligncenter, .entry-content img.alignnone {
  margin-top: 0;
  margin-bottom: 0;
}
.entry-content a {
  color: #a41e22;
  text-decoration: none;
  border-bottom: 1px solid rgba(164, 30, 34, 0.3);
  transition: color 0.2s ease, border-bottom 0.2s ease;
}
.entry-content a:hover {
  color: #c9a85e;
  border-bottom: 1px solid #e2c275;
}
.entry-content hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(164, 30, 34, 0.3), rgb(164, 30, 34), rgba(164, 30, 34, 0.3));
  margin: 2.5rem 0;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
.entry-content table th {
  background: #efe9dd;
  border-bottom: 2px solid #e2c275;
  padding: 0.8rem;
  text-align: left;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 600;
}
.entry-content table td {
  padding: 0.8rem;
  border-bottom: 1px solid #efe9dd;
}
.entry-content table tr:nth-child(even) {
  background: #f8f6f2;
}

footer {
  text-align: center;
  color: #f5e7c6;
  padding: 3rem 0 2rem 0;
  font-size: 1rem;
  background: #1a1a1a;
  margin-top: 3rem;
  position: relative;
  font-family: "Nunito Sans", sans-serif;
  border-top: 4px solid #a41e22;
}
footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #e2c275;
  opacity: 0.6;
}
footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 0 2rem;
}
footer .footer-column {
  flex: 1;
  min-width: 200px;
  text-align: left;
}
footer .footer-column h4 {
  color: #e2c275;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(226, 194, 117, 0.3);
  padding-bottom: 0.5rem;
}
footer .footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer .footer-column ul li {
  margin-bottom: 0.5rem;
}
footer .footer-column ul li a {
  color: #f5e7c6;
  text-decoration: none;
  transition: color 0.2s ease;
}
footer .footer-column ul li a:hover {
  color: #e2c275;
}
footer .footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Modern blockquote for dialogue */
blockquote {
  border-left: 6px solid #a41e22;
  background: #f9f6f1;
  margin: 2.5rem 0;
  padding: 1.5rem 1.8rem 1.5rem 2.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-style: bold;
  font-weight: 800;
  color: #3a2c1a;
  box-shadow: 0 4px 16px rgba(44, 30, 34, 0.04);
  position: relative;
  clear: both;
}
blockquote:after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border: 1px solid rgba(164, 30, 34, 0.1);
  border-radius: 4px;
  pointer-events: none;
}
blockquote p {
  margin: 0 0 0.9em 0;
  font-family: "Nunito Sans", sans-serif;
  line-height: 1.7;
}
blockquote p:last-child {
  margin-bottom: 0;
}
blockquote::before {
  content: "“";
  font-size: 3rem;
  color: #e2c275;
  position: absolute;
  left: 12px;
  top: 5px;
  line-height: 1;
  font-family: "Cinzel", serif;
  opacity: 0.8;
}
blockquote.tldr {
  font-weight: 400;
  border: none;
}
blockquote.tldr::before {
  content: "TL;DR...";
  font-size: 1.2rem;
  color: gray;
  top: -1.2rem;
}
blockquote.tldr::after {
  border: 3px solid rgba(164, 30, 34, 0.1);
  border-radius: 1rem;
}
blockquote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9em;
  color: #a41e22;
  text-align: right;
}
blockquote cite:before {
  content: "— ";
}

.chapter-nav {
  margin-top: 3rem;
}
.chapter-nav .chapter-btn {
  display: inline-block;
  background: #a41e22;
  color: #fff;
  padding: 0.8em 1.6em;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(44, 30, 34, 0.08);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  font-family: "Nunito Sans", sans-serif;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}
.chapter-nav .chapter-btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.chapter-nav .chapter-btn:hover {
  background: #e2c275;
  color: #1a1a1a;
  box-shadow: 0 6px 20px rgba(164, 30, 34, 0.12);
  transform: translateY(-2px);
}
.chapter-nav .chapter-btn:hover:before {
  opacity: 1;
}
.chapter-nav .chapter-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(44, 30, 34, 0.08);
}

.post-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3rem;
}
.post-flex .post-book-info {
  min-width: 140px;
  max-width: 200px;
  margin-right: 1.5rem;
  text-align: center;
  background: #f9f6f1;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(44, 30, 34, 0.04);
  padding: 1.2rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid rgba(226, 194, 117, 0.3);
  position: relative;
}
.post-flex .post-book-info img {
  max-width: 120px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(44, 30, 34, 0.08);
}
.post-flex .entry-content {
  flex: 1 1 0%;
}

.entry-meta {
  color: #7a6c4d;
  font-size: 1rem;
  font-style: italic;
  opacity: 0.8;
  letter-spacing: 0.01em;
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.book-title {
  font-size: 0.9rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
  opacity: 0.7;
}

.book-publication-date {
  font-size: 1rem;
  color: #7a6c4d;
  margin: 0.5em 0 1em 0;
}

.main-has-sidebar {
  max-width: 1900px;
  width: 90vw;
  margin: 2.5rem auto;
  background: #fff;
  padding: 2.5rem 2vw;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(44, 30, 34, 0.1);
  min-height: 60vh;
}

.main-sidebar-flex {
  display: flex;
  flex-direction: row;
  gap: 2vw;
  align-items: flex-start;
  max-width: 90vw;
  margin: 0 auto;
}

.main-content-col {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.site-sidebar {
  width: 20vw;
  min-width: 220px;
  max-width: 100vw;
  flex-shrink: 0;
  background: #f9f6f1;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44, 30, 34, 0.06);
  padding: 1.5rem 1vw;
  position: sticky;
  top: 2rem;
  box-sizing: border-box;
  border: 1px solid #e67579;
  /* Styles for the current book cover in sidebar */
}
.site-sidebar section {
  display: block;
  margin-bottom: 2.2rem;
}
.site-sidebar h4 {
  display: block;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 1.2rem 0 0.7rem 0;
  letter-spacing: 0.01em;
  border-bottom: 1px solid #e2c275;
  padding-bottom: 0.3rem;
}
.site-sidebar .sidebar-books ul,
.site-sidebar .sidebar-recent ul,
.site-sidebar .sidebar-pages ul {
  margin-top: 0;
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
}
.site-sidebar .sidebar-books ul li,
.site-sidebar .sidebar-recent ul li,
.site-sidebar .sidebar-pages ul li {
  margin-bottom: 0.7rem;
}
.site-sidebar .sidebar-book-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #a41e22;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.2rem 0.3rem;
  transition: background 0.15s;
}
.site-sidebar .sidebar-book-link:hover {
  background: #f5e7c6;
  color: #a41e22;
  border-bottom: 1px solid #a41e22;
}
.site-sidebar .sidebar-book-link,
.site-sidebar .sidebar-pages a,
.site-sidebar .sidebar-recent li a {
  background: none;
  color: #a41e22;
  border-bottom: 1px dotted #a41e22;
  transition: color 0.15s, border-bottom 0.15s, background 0.15s;
}
.site-sidebar .sidebar-book-cover {
  margin-bottom: 1.5rem;
  text-align: center;
  padding: 10px;
}
.site-sidebar .sidebar-book-cover .sidebar-book-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(44, 30, 34, 0.08);
  margin-bottom: 0.5rem;
}
.site-sidebar .sidebar-book-cover .sidebar-book-title {
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  color: #a41e22;
  display: block;
  width: 100%;
  padding: 0 5px;
  box-sizing: border-box;
  white-space: normal;
  line-height: 1.3;
}
.site-sidebar .sidebar-books .sidebar-book-link img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(44, 30, 34, 0.08);
}
.site-sidebar .sidebar-recent-book {
  color: #a41e22;
  font-size: 0.97em;
  font-style: italic;
  margin-left: 0.3em;
  opacity: 0.8;
}

.frontpage-blurb {
  margin-bottom: 2.5rem;
  padding: 1.2rem 1.5rem;
  background: #f9f6f1;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44, 30, 34, 0.04);
  font-size: 1.13rem;
  color: #3a2c1a;
  line-height: 1.7;
}

p {
  line-height: 1.8;
}

a {
  color: #a41e22;
  text-decoration: underline;
  transition: color 0.2s;
}

a:visited {
  color: #7a6c4d;
}

a:hover, a:focus {
  color: #e2c275;
  text-decoration: underline;
}

@media (max-width: 1300px) {
  .main-has-sidebar,
  .main-sidebar-flex {
    max-width: 98vw;
  }
  .site-sidebar {
    width: 270px;
    max-width: 40vw;
    padding: 1rem 0.5rem;
  }
}
@media (max-width: 1100px) {
  .main-has-sidebar {
    max-width: 92vw;
    width: 92vw;
    padding: 1.2rem 1rem;
  }
  .main-sidebar-flex {
    gap: 2vw;
  }
  .site-sidebar {
    width: 32vw;
    min-width: 180px;
    max-width: 40vw;
    padding: 1rem 1vw;
  }
  .main-content-col {
    max-width: 100vw;
  }
}
@media (max-width: 900px) {
  main {
    max-width: 98vw;
    padding: 1.2rem 0.5rem;
  }
  section {
    gap: 1.2rem;
  }
}
@media (max-width: 800px) {
  .post-flex {
    flex-direction: column;
    gap: 1.2rem;
  }
  .post-book-info {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    max-width: 100%;
    margin: 0 0 1rem 0;
    padding: 0.7rem 1rem;
  }
  .post-book-info img {
    max-width: 60px;
    margin-right: 1rem;
  }
  .post-book-info .post-book-name {
    margin-top: 0;
  }
  .main-sidebar-flex {
    flex-direction: column;
  }
  .site-sidebar {
    width: 100%;
    max-width: 100%;
    position: static;
    top: auto;
    margin-top: 2rem;
    max-height: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    min-width: 100%;
  }
}
@media (max-width: 600px) {
  .main-has-sidebar {
    width: 100vw;
    max-width: 100vw;
    padding: 1rem 0.7rem;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .main-has-sidebar::before {
    border: none;
  }
  header {
    padding: 1.2rem 0 0.7rem 0;
  }
  h1.site-title {
    font-size: 2rem;
  }
  main {
    padding: 1rem 0.7rem;
  }
  section {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  section img {
    margin-bottom: 1rem;
    max-width: 90vw;
  }
  .header-flex {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .header-titles {
    align-items: center;
  }
  .header-logo {
    margin-bottom: 0.2rem;
  }
  html, body {
    overflow-x: hidden;
  }
  .entry-content .alignleft, .entry-content .alignright, .entry-content .aligncenter, .entry-content .alignnone,
  .entry-content figure.wp-caption, .entry-content .wp-caption,
  .entry-content figure.wp-caption.alignleft, .entry-content .wp-caption.alignleft,
  .entry-content figure.wp-caption.alignright, .entry-content .wp-caption.alignright,
  .entry-content figure.wp-caption.aligncenter, .entry-content .wp-caption.aligncenter,
  .entry-content figure.wp-caption.alignnone, .entry-content .wp-caption.alignnone {
    float: none;
    display: block;
    margin: 2.5rem auto;
    clear: both;
    width: auto;
    max-width: 100%;
  }
  .entry-content img.alignleft, .entry-content img.alignright, .entry-content img.aligncenter, .entry-content img.alignnone {
    margin: 0 auto 0.5rem auto;
  }
}
/* Comments Section Styles */
.comments-toggle-container {
  text-align: center;
  margin: 2rem 0;
}

/* Character Appearances */
.appears-in-section {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(164, 30, 34, 0.1);
  flex-direction: column;
}
.appears-in-section h2 {
  color: #a41e22;
  font-family: "Cinzel", serif;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.appears-in-section .book-chapter-list .book-group {
  margin-bottom: 2rem;
}
.appears-in-section .book-chapter-list .book-group:last-child {
  margin-bottom: 0;
}
.appears-in-section .book-chapter-list .book-title {
  font-family: "Cinzel", serif;
  color: #a41e22;
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(164, 30, 34, 0.1);
}
.appears-in-section .book-chapter-list .chapter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.appears-in-section .book-chapter-list .chapter-list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  flex: 1 0 calc(33.333% - 2rem);
}
.appears-in-section .book-chapter-list .chapter-list li:last-child {
  border-bottom: none;
}
.appears-in-section .book-chapter-list .chapter-list li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-decoration: none;
  color: #222;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.appears-in-section .book-chapter-list .chapter-list li a:hover {
  background: rgba(164, 30, 34, 0.05);
}
.appears-in-section .book-chapter-list .chapter-list li .chapter-title {
  flex: 1 1 auto;
  white-space: nowrap;
}
.appears-in-section .book-chapter-list .chapter-list li .chapter-date {
  flex: 0 0 7rem;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.85rem;
  color: #7a6c4d;
  margin-right: 1rem;
  flex-shrink: 0;
}
.appears-in-section .book-chapter-list .chapter-list li .chapter-title {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  margin-right: 1rem;
}

/* Character Single Page Styles */
.character-main {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.character-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.character-content {
  flex: 1;
  min-width: 0;
}
.character-content figure.wp-caption,
.character-content .wp-caption {
  margin: 2.5rem auto;
  max-width: 100%;
  text-align: center;
  background: #f9f6f1;
  border-radius: 8px;
  border: 1px solid rgba(226, 194, 117, 0.3);
  box-shadow: 0 4px 16px rgba(44, 30, 34, 0.04);
  padding: 0.5rem 0.7rem 0.7rem 0.7rem;
}
.character-content figure.wp-caption img,
.character-content .wp-caption img {
  margin: 0 auto 0.5rem auto;
  padding: 0;
  max-width: 100%;
}
.character-content figure.wp-caption figcaption,
.character-content figure.wp-caption .wp-caption-text,
.character-content .wp-caption figcaption,
.character-content .wp-caption .wp-caption-text {
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.85rem;
  color: #222;
  line-height: 1.5;
  padding: 0 0.5rem;
  margin: 0;
  font-style: regular;
  text-align: left;
}
.character-content .character-header {
  margin-bottom: 2rem;
}
.character-content .character-header h1 {
  font-size: 2.4rem;
  color: #a41e22;
  margin-bottom: 1rem;
}
.character-content .character-image {
  margin-bottom: 1.5rem;
}
.character-content .character-image img {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 2px solid #fff;
}
.character-content .character-description {
  font-size: 1.1rem;
  line-height: 1.8;
}
.character-content .character-description p {
  margin-bottom: 1.5rem;
}

.character-meta {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 2rem;
}
.character-meta .meta-box {
  background: #f8f6f2;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.character-meta h3 {
  font-family: "Cinzel", serif;
  color: #a41e22;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  border-bottom: 2px solid rgba(164, 30, 34, 0.1);
  padding-bottom: 0.5rem;
}

.character-details .meta-item {
  margin-bottom: 1rem;
}
.character-details .meta-item dt {
  font-weight: 600;
  color: #a41e22;
  font-size: 0.95rem;
}
.character-details .meta-item dd {
  margin-left: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.character-details .meta-item dd .book-name {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.9em;
  color: #7a6c4d;
  font-style: italic;
  position: relative;
  padding-left: 0.7rem;
}
.character-details .meta-item dd .book-name::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(164, 30, 34, 0.4);
}
.character-details .meta-item dd a {
  color: #a41e22;
  text-decoration: none;
  border-bottom: 1px dotted;
}
.character-details .meta-item dd a:hover {
  color: #c9a85e;
}

.alias-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.alias-list .alias-tag {
  background: rgba(164, 30, 34, 0.1);
  color: #a41e22;
  padding: 0.3rem 0.7rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.comments-toggle-btn {
  background-color: #f8f6f2;
  border: 1px solid rgba(164, 30, 34, 0.3);
  border-radius: 4px;
  color: #a41e22;
  cursor: pointer;
  font-family: "Nunito Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(44, 30, 34, 0.04);
}
.comments-toggle-btn:hover {
  background-color: #e2c275;
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(164, 30, 34, 0.12);
  transform: translateY(-1px);
}
.comments-toggle-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(44, 30, 34, 0.04);
}

.comments-area {
  background: #f9f6f1;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(44, 30, 34, 0.04);
  border: 1px solid rgba(226, 194, 117, 0.2);
  margin-top: 1.5rem;
}

.comments-title {
  font-size: 1.4rem;
  color: #a41e22;
  margin-top: 0;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(164, 30, 34, 0.2);
  padding-bottom: 0.5rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.comment-list .comment {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(164, 30, 34, 0.1);
}
.comment-list .comment:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.comment-list .comment-body {
  background: #fff;
  border-radius: 4px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(44, 30, 34, 0.04);
}
.comment-list .comment-meta {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #7a6c4d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.comment-list .comment-author {
  font-weight: 600;
  color: #a41e22;
}
.comment-list .comment-author .avatar {
  border-radius: 50%;
  margin-right: 0.5rem;
}
.comment-list .comment-content {
  line-height: 1.6;
}
.comment-list .comment-content p {
  margin: 0 0 0.8rem 0;
}
.comment-list .comment-content p:last-child {
  margin-bottom: 0;
}
.comment-list .reply {
  margin-top: 0.8rem;
}
.comment-list .reply a {
  color: #a41e22;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px dotted #a41e22;
  transition: color 0.2s ease;
}
.comment-list .reply a:hover {
  color: #c9a85e;
}
.comment-list .children {
  list-style: none;
  padding: 0 0 0 1.5rem;
  margin: 0.8rem 0 0 0;
}

.comment-reply-title {
  font-size: 1.3rem;
  color: #a41e22;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.comment-form {
  margin-top: 1.5rem;
}
.comment-form p {
  margin-bottom: 1rem;
}
.comment-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 600;
  color: #222;
}
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid rgba(164, 30, 34, 0.2);
  border-radius: 4px;
  font-family: "Lora", Georgia, serif;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}
.comment-form input[type=text]:focus,
.comment-form input[type=email]:focus,
.comment-form input[type=url]:focus,
.comment-form textarea:focus {
  border-color: #a41e22;
  outline: none;
  box-shadow: 0 0 0 2px rgba(164, 30, 34, 0.1);
}
.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}
.comment-form .form-submit {
  margin-top: 1.2rem;
}
.comment-form .submit-btn {
  background-color: #a41e22;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.8rem 1.5rem;
  font-family: "Nunito Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(44, 30, 34, 0.08);
}
.comment-form .submit-btn:hover {
  background-color: #e2c275;
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(164, 30, 34, 0.12);
}
.comment-form .submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(44, 30, 34, 0.08);
}

.no-comments {
  color: #7a6c4d;
  font-style: italic;
  margin-top: 1rem;
}

.comments-navigation {
  margin: 1.5rem 0;
  display: flex;
  justify-content: space-between;
}
.comments-navigation a {
  color: #a41e22;
  text-decoration: none;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 600;
  transition: color 0.3s ease;
}
.comments-navigation a:hover {
  color: #c9a85e;
}