/* ========== Journal Guide ========== */

/* Section accent colors */
#start { --accent: #2563eb; --accent-light: #eff6ff; --accent-mid: #dbeafe; }
#system { --accent: #059669; --accent-light: #ecfdf5; --accent-mid: #d1fae5; }
#practice { --accent: #d97706; --accent-light: #fffbeb; --accent-mid: #fef3c7; }
#consistency { --accent: #dc2626; --accent-light: #fef2f2; --accent-mid: #fecaca; }
#extra { --accent: #7c3aed; --accent-light: #f5f3ff; --accent-mid: #ede9fe; }

.journal-guide {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 12px;
}

/* H1 */
.journal-h1 {
  text-align: center;
  margin: 24px 0 20px;
  font-size: 28px;
  line-height: 1.35;
  color: #111827;
}

/* Intro text */
.journal-intro-text {
  margin: 0 auto 32px;
  padding: 20px 24px;
  font-size: 17px;
  line-height: 1.7;
  color: #374151;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
  border-left: 4px solid #2563eb;
  border-radius: 0 12px 12px 0;
}
.journal-intro-text p { margin: 0; }

/* ---- Anchor Navigation ---- */
.journal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 16px 0;
  margin-bottom: 40px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  z-index: 100;
}

.journal-nav.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.journal-nav a {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

/* Nav pill colors per position */
.journal-nav a:nth-child(1) { color: #2563eb; background: #eff6ff; }
.journal-nav a:nth-child(2) { color: #059669; background: #ecfdf5; }
.journal-nav a:nth-child(3) { color: #d97706; background: #fffbeb; }
.journal-nav a:nth-child(4) { color: #dc2626; background: #fef2f2; }
.journal-nav a:nth-child(5) { color: #7c3aed; background: #f5f3ff; }
.journal-nav a:nth-child(6) { color: #0891b2; background: #ecfeff; }

.journal-nav a:nth-child(1):hover { background: #2563eb; color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,0.3); }
.journal-nav a:nth-child(2):hover { background: #059669; color: #fff; box-shadow: 0 2px 8px rgba(5,150,105,0.3); }
.journal-nav a:nth-child(3):hover { background: #d97706; color: #fff; box-shadow: 0 2px 8px rgba(217,119,6,0.3); }
.journal-nav a:nth-child(4):hover { background: #dc2626; color: #fff; box-shadow: 0 2px 8px rgba(220,38,38,0.3); }
.journal-nav a:nth-child(5):hover { background: #7c3aed; color: #fff; box-shadow: 0 2px 8px rgba(124,58,237,0.3); }
.journal-nav a:nth-child(6):hover { background: #0891b2; color: #fff; box-shadow: 0 2px 8px rgba(8,145,178,0.3); }

/* ---- Sections ---- */
.journal-section {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
  padding-left: 20px;
  border-left: 4px solid var(--accent, #e5e7eb);
}

.journal-section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-mid, #e5e7eb);
}

/* Number badge */
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent, #2563eb);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.section-intro {
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 16px;
}

/* ---- Article Lists ---- */
.journal-articles {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

ol.journal-articles { counter-reset: jarticle; }

ol.journal-articles li::before {
  counter-increment: jarticle;
  content: counter(jarticle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-light, #eff6ff);
  color: var(--accent, #2563eb);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 12px;
  transition: background 0.15s, color 0.15s;
}

ul.journal-articles li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #7c3aed);
  flex-shrink: 0;
  margin-right: 14px;
  margin-top: 1px;
}

.journal-articles li {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.15s;
}

.journal-articles li:hover {
  background: var(--accent-light, #f9fafb);
}

.journal-articles li:hover::before {
  background: var(--accent, #2563eb);
  color: #fff;
}

.journal-articles a {
  color: var(--accent, #2563eb);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.journal-articles a::after {
  content: "\2009\2192";
  opacity: 0.4;
  color: var(--accent, #2563eb);
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}

.journal-articles li:hover a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.journal-articles li:hover a::after {
  opacity: 1;
}

/* ---- Resources / Site Sections ---- */
.journal-resources {
  --accent: #0891b2;
  --accent-light: #ecfeff;
  --accent-mid: #cffafe;
  border-top: 2px solid #e5e7eb;
  padding-top: 32px;
}

.resource-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.resource-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  transition: background 0.15s, border-color 0.2s, box-shadow 0.2s;
}

.resource-item:hover {
  background: #f8fafc;
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
}

.resource-icon {
  font-size: 12px;
  line-height: 24px;
  flex-shrink: 0;
}

.resource-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}

.resource-desc {
  display: block;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin-top: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .journal-guide {
    padding: 0 2px;
  }
  .journal-nav {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    margin-bottom: 28px;
    counter-reset: jnav;
  }
  .journal-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
  }
  .journal-nav a::before {
    counter-increment: jnav;
    content: counter(jnav) ".";
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
  }
  .journal-intro-text {
    font-size: 16px;
    padding: 16px 18px;
  }
  .journal-h1 {
    font-size: 22px;
  }
  .journal-section {
    padding-left: 14px;
  }
  .journal-section h2 {
    font-size: 19px;
    gap: 10px;
  }
  .section-num {
    min-width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .resource-list {
    grid-template-columns: 1fr;
  }
  ol.journal-articles li::before {
    min-width: 22px;
    height: 22px;
    font-size: 12px;
    margin-right: 10px;
  }
}
