/* Herman-style post list */
.recent-posts {
    margin: 2em 0;
}

.recent-posts h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 1em;
}

/* Remove the ### decoration that Archie adds */
.recent-posts h3::before {
    content: "" !important;
}

.post-list {
    list-style: disc;
    padding-left: 1.5em;
    line-height: 1.8;
}

.post-list li {
    margin-bottom: 0.5em;
}

.post-list a {
    color: inherit;
    text-decoration: none;
}

.post-list a:hover {
    text-decoration: underline ; 
}
main.list > div {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

main.list {
    line-height: 1.6 !important;
}
/* Remove the ### decoration from all headings */
h1::before, h2::before, h3::before, h4::before, h5::before, h6::before {
  content: '' !important;
}
/* CSS for rendering bookshelf image */
/* Minimalist collapsible bookshelf matching site theme */
.bookshelf-collapsible {
  margin: 30px 0;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.bookshelf-collapsible:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: #d1d8dd;
}

.bookshelf-collapsible summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  padding: 18px 20px;
  background: #f8f9fa;
  color: #2c3e50;
  border: none;
  transition: all 0.2s ease;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bookshelf-collapsible summary:hover {
  background: #e9ecef;
  color: #1a252f;
}

.bookshelf-collapsible summary .icon {
  font-size: 20px;
}

.bookshelf-collapsible summary .text {
  flex: 1;
}

.bookshelf-collapsible summary::after {
  content: "◀";
  font-size: 12px;
  color: #6c757d;
  transition: transform 0.3s ease;
}

.bookshelf-collapsible[open] summary::after {
  content: "▼";
  transform: rotate(0deg);
}

.bookshelf-collapsible summary::marker {
  display: none;
}

.bookshelf-image-container {
  padding: 20px;
  text-align: center;
  background: #fff;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 2000px;
  }
}

.bookshelf-image-container img {
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.bookshelf-image-container img:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Mobile responsiveness */
@media only screen and (max-width: 767px) {
  .bookshelf-collapsible summary {
    font-size: 15px;
    padding: 15px 18px;
  }
  
  .bookshelf-image-container {
    padding: 15px;
  }
}
.bookshelf-collapsible summary::before {
  content: "▶";
  margin-right: 8px;
  font-size: 12px;
  color: #6c757d;
}

.bookshelf-collapsible summary::after {
  content: "▶";
  margin-left: 8px;
  font-size: 12px;
  color: #6c757d;
  transform: rotate(180deg);
  display: inline-block;
}

.bookshelf-collapsible[open] summary::before {
  content: "▼";
   transform: none !important;
}

.bookshelf-collapsible[open] summary::after {
  content: "▼";
  transform: none;
}

/* Remove the ### decoration from all headings */
h1::before, h2::before, h3::before, h4::before, h5::before, h6::before {
  content: '' !important;
}

/* Collapsible bookshelf styles */
.bookshelf-collapsible {
  overflow: hidden;
  transition: all 0.3s ease;
}

.bookshelf-collapsible summary::before {
  content: "▶";
  margin-right: 8px;
  font-size: 12px;
  color: #6c757d;
  transition: transform 0.3s ease;
  display: inline-block;
}

/* Fix bullet list alignment in post content */
.post-content ul {
  list-style: disc;
  padding-left: 2em;
  margin-left: 0;
}

.post-content ul li {
  text-indent: 0;
  padding-left: 0;
  margin-bottom: 0.5em;
}

.post-content ul > li::before {
  content: none;
}

/* Ensure nested lists work properly */
.post-content ul ul {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Light mode: deep blue */
.post-content strong,
.post-content b {
  font-weight: 700 !important;
  color: #2563eb !important;
  font-size: 20px !important;
}

/* Dark mode: light blue */
body.dark-theme .post-content strong,
body.dark-theme .post-content b {
  font-weight: 700 !important;
  color: #60a5fa !important;
  font-size: 20px !important;
}



details {
  margin: 24px 0;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  background-color: #fff;
  overflow: hidden;
}

details summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  padding: 16px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e1e8ed;
  transition: background-color 0.2s ease;
  user-select: none;
  color: #2c3e50;
}

details summary:hover {
  background: #e9ecef;
}

details summary::before {
  content: " ";
  font-size: 12px;
  color: #27ae60;
  transition: transform 0.2s ease;
  margin-right: 8px;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details[open] summary {
  border-bottom: 1px solid #e1e8ed;
}

details summary::marker {
  display: none;
}

/* Content inside details */
details div, details ul, details ol {
  margin: 0;
  padding: 20px;
}

details ul {
  list-style-type: disc;
  padding-left: 20px;
}

details li {
  padding: 4px 0;
  margin-left: 0;
}

details li a {
  color: #2c3e50;
  font-size: 14px;
}

details li a:hover {
  color: #27ae60;
}

/* Fix bullets in details - always use dark text since background is white */
details ul li {
  color: #2c3e50 !important;
}

details ul li::marker {
  color: #2c3e50 !important;
}

details li a {
  color: #27ae60 !important;
}

details li a:hover {
  color: #219a52 !important;
}

ul.posts {
    list-style-type: none;
    padding-left: 0;
}

ul.posts > li.post::before {
    content: none;
}

ul.posts > li.post {
    text-indent: 0;
}

/* Dropdown container */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown link */
.nav-dropdown .nav-link {
    cursor: pointer;
}
/* Hashtag styling for POST tags */
.post-content .tags,
.single .tags {
  list-style: none !important;
  list-style-type: none !important;
}

.post-content .tags li,
.single .tags li {
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
}

.post-content .tags li::before,
.single .tags li::before {
  content: "#" !important;
  margin-inline-start: 0 !important;
  margin-inline-end: 0.05rem !important;
  color: var(--color-text-muted, #737373) !important;
  font-size: var(--font-size-base, 15px) !important;
  font-family: 'Roboto Mono', 'Courier New', monospace !important;
  font-weight: normal !important;
  line-height: var(--line-height-base, 1.6) !important;
}

.post-content .tags li::after,
.single .tags li::after {
  content: "" !important;
}
html {
  font-size: 18px; /* or 17px, 18px - whatever you prefer */
}

/* Custom heading sizes - overrides theme's uniform sizing */
h1 {
  font-size: 1.5rem !important;
  font-weight: 700;
}

h2 {
  font-size: 1.2rem !important;
  font-weight: 600;
}

h3 {
  font-size: 1.0rem !important;
  font-weight: 600;
}

h4 {
  font-size: 0.75rem !important;
  font-weight: 500;
}

h5 {
  font-size: 1.1rem !important;
  font-weight: 500;
}

h6 {
  font-size: 1rem !important;
  font-weight: 500;
}

/* Responsive heading sizes for mobile */
@media screen and (max-width: 768px) {
  h1 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  h4 {
    font-size: 1.1rem !important;
  }
}

/* Wider Table Layout */
table {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 2rem auto !important;
}

/* Extend tables beyond content width */
.post-content table {
  margin-left: -2rem !important;
  margin-right: -2rem !important;
  width: calc(100% + 4rem) !important;
}

/* Responsive table width */
@media screen and (max-width: 900px) {
  .post-content table {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    width: calc(100% + 2rem) !important;
  }
}

@media screen and (max-width: 600px) {
  .post-content table {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
}




