@charset "utf-8";
/* ================================
   CONTENT
================================ */
#content {
  flex: 1;
  padding: 60px 80px;
  max-width: 800px;
  background: #ffffff;
  transition: all 0.35s ease;
}


/* Year */
.year {
  margin-bottom: 6px;
}

.year-title {
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}

.year-title:hover {
  background: #f5f5f5;
}

/* Entries */
.entry-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 10px;
}

.entry-list.open {
  max-height: 600px;
}

.entry {
  display: block;
  text-decoration: none;
  color: #444;
  padding: 4px 6px;
  font-size: 14px;
  border-radius: 4px;
}

.entry:hover {
  background: #f2f2f2;
}

.entry.active {
  background: #e8e8e8;
  font-weight: bold;
}


/* ================================
   READING MODE (fade + center)
================================ */
body.reading #sidebar {
  opacity: 0.08;
  pointer-events: none;
}

#sidebar:hover {
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.reading #content {
  margin: 0 auto;
  max-width: 720px;
  padding-left: 40px;
  padding-right: 40px;
}

/* ================================
   PARAGRAPH TRACKING
================================ */
#content p {
  transition: all 0.25s ease;
}

#content p.active {
  background: rgba(0, 0, 0, 0.035);
  border-radius: 6px;
  padding: 6px 8px;
}

#content p.dim {
  opacity: 0.6;
}

/* ================================
   NAV BAR (ONLY COLORED ELEMENT)
================================ */
/* ================================
   NAV BAR (FINAL FIX)
================================ */
.nav-bar {
  position: fixed;
  bottom: 0;
  left: 260px;   /* matches sidebar width */
  right: 0;

  display: flex;
  justify-content: space-between;  /* ✅ THIS ensures left/right split */
  align-items: center;

  padding: 10px 20px;
  background: #f4efe6;
  border-top: 1px solid #ddd;

  z-index: 1000;
}
.nav-btn.prev {
  justify-content: flex-start;
}

.nav-btn.next {
  justify-content: flex-end;
  margin-left: auto;   /* ✅ pushes it fully right */
}
.nav-btn {
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
}

.nav-btn:hover {
  background: #e8e2d5;
}

.nav-meta {
  font-size: 11px;
  opacity: 0.7;
}

.nav-date {
  font-weight: 500;
}

.nav-arrow {
  font-size: 16px;
}
/* ================================
   BREADCRUMB (TOP)
================================ */
#breadcrumb {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

#breadcrumb span {
  opacity: 0.7;
}

#breadcrumb strong {
  color: #222;
  font-weight: 500;
}
