:root {
  --ink: #0e0d0b;
  --parchment: #f5f0e8;
  --blood: #8b1a1a;
  --blood-light: #c0392b;
  --fog: #e8e2d6;
  --mist: #d0c8b8;
  --shadow: #2a2620;
  --ash: #6b6458;
  --ig-purple: #6B3FA0;
  --ig-purple-bg: #f0e8fa;
  --tt-red: #8b1a1a;
  --tt-red-bg: #fde8e8;
  --story-amber: #7a5500;
  --story-amber-bg: #fdf3dc;
  --both-teal: #1a5c4a;
  --both-teal-bg: #e0f5ee;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--parchment);
  color: var(--ink);
  min-height: 100vh;
}

/* ── HEADER ── */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--blood);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 900;
  color: var(--parchment);
  letter-spacing: -0.01em;
  line-height: 1;
  flex-shrink: 0;
}

.logo span { color: var(--blood-light); font-style: italic; }

.legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.leg {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── HERO ── */
.hero-band {
  background: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #3a342e;
}

.hero-band h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 900;
  color: var(--parchment);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-band h1 em { color: var(--blood-light); font-style: italic; }

.hero-sub {
  font-size: clamp(13px, 2vw, 15px);
  color: var(--mist);
  margin-top: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* ── MONTH NAV ── */
.month-nav-wrap {
  background: var(--fog);
  border-bottom: 1px solid var(--mist);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.month-nav {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.mnav {
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--ash);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mnav:hover { color: var(--ink); background: rgba(0,0,0,0.04); }

.mnav.active {
  color: var(--blood);
  border-bottom-color: var(--blood);
}

/* ── MAIN ── */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── MONTH HEADER ── */
.month-title-block {
  margin-bottom: 1.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.month-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}

.month-label {
  font-family: 'Playfair Display', serif;
  font-size: clamp(14px, 2.5vw, 18px);
  font-style: italic;
  color: var(--blood);
  margin-top: 4px;
}

.month-theme {
  font-size: 13px;
  color: var(--ash);
  margin-top: 8px;
  max-width: 480px;
  line-height: 1.5;
}

.focus-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-top: 4px;
}

.fbadge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--parchment);
}

/* ── WEEK SECTION ── */
.week-section { margin-bottom: 1.75rem; }

.week-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--mist);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* ── POST CARD ── */
.post-card {
  background: white;
  border: 1px solid var(--mist);
  border-radius: 12px;
  padding: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.post-card:hover {
  box-shadow: 0 4px 20px rgba(14,13,11,0.10);
  transform: translateY(-2px);
}

.post-card.story-card {
  border-left: 3px solid var(--story-amber);
  background: #fffdf6;
}

.post-card.is-archived {
  opacity: 0.55;
  background: var(--fog);
}

.post-card.is-archived .ptitle {
  text-decoration: line-through;
  color: var(--ash);
}

/* ── CARD TOP ROW ── */
.card-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── CHECK BUTTON ── */
.check-btn {
  margin-left: auto;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--mist);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  padding: 0;
}

.check-btn:hover {
  border-color: var(--both-teal);
  background: var(--both-teal-bg);
}

.check-btn.checked {
  background: var(--both-teal);
  border-color: var(--both-teal);
}

.check-icon {
  font-size: 11px;
  color: white;
  font-weight: 700;
  line-height: 1;
}

/* ── POSTED LABEL ── */
.posted-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--both-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ── ARCHIVED SECTION ── */
.archived-section {
  margin-top: 2.5rem;
  border: 1px solid var(--mist);
  border-radius: 12px;
  overflow: hidden;
}

.archived-header {
  width: 100%;
  background: var(--fog);
  border: none;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}

.archived-header:hover { background: var(--mist); }

.archived-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.archived-count {
  background: var(--both-teal);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.archived-chevron {
  font-size: 10px;
  color: var(--ash);
  transition: transform 0.2s;
  display: inline-block;
}

.archived-chevron.open { transform: rotate(180deg); }

.archived-body {
  display: none;
  padding: 14px;
  background: white;
}

.archived-body.open { display: block; }

.pday {
  font-size: 10px;
  font-weight: 500;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.pbadge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.ig  { background: var(--ig-purple-bg);    color: var(--ig-purple);    }
.tt  { background: var(--tt-red-bg);       color: var(--tt-red);       }
.story { background: var(--story-amber-bg); color: var(--story-amber);  }
.both  { background: var(--both-teal-bg);  color: var(--both-teal);    }

.ptitle {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.pdesc {
  font-size: 12px;
  color: var(--ash);
  line-height: 1.5;
  flex: 1;
}

.story-tip {
  font-size: 11px;
  color: var(--story-amber);
  font-style: italic;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px dashed #e8d8a0;
}

/* ── STORIES DIVIDER ── */
.stories-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1.25rem 0 0.75rem;
}

.stories-label span {
  font-size: 11px;
  font-weight: 500;
  color: var(--story-amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.stories-label::before,
.stories-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8d8a0;
}

/* ── CTA BAR ── */
.cta-bar {
  background: var(--shadow);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cta-label {
  font-size: 13px;
  color: var(--mist);
  flex: 1;
  min-width: 160px;
}

.cta-btn {
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid rgba(245,240,232,0.2);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--parchment);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.cta-btn:hover { background: rgba(245,240,232,0.1); }
.cta-btn.primary { background: var(--blood); border-color: var(--blood); }
.cta-btn.primary:hover { background: var(--blood-light); border-color: var(--blood-light); }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  padding: 1.5rem;
  text-align: center;
  border-top: 3px solid var(--blood);
}

.site-footer p {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  color: var(--ash);
  font-style: italic;
}

/* ── VIEW NAV ── */
.view-nav-wrap {
  background: var(--ink);
  border-bottom: 1px solid #3a342e;
}

.view-nav {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  gap: 2px;
}

.vnav {
  padding: 11px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.vnav:hover  { color: var(--parchment); }
.vnav.active { color: var(--blood-light); border-bottom-color: var(--blood-light); }

/* ── CARD TOP ROW ── */
.card-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── CHECKLIST BUTTON ── */
.check-btn {
  margin-left: auto;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--mist);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  padding: 0;
}
.check-btn:hover         { border-color: var(--both-teal); background: var(--both-teal-bg); }
.check-btn.checked       { background: var(--both-teal); border-color: var(--both-teal); }
.check-icon              { font-size: 11px; color: white; font-weight: 700; line-height: 1; }

/* ── ARCHIVED STATE ── */
.post-card.is-archived           { opacity: 0.5; background: var(--fog); }
.post-card.is-archived .ptitle   { text-decoration: line-through; color: var(--ash); }
.posted-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--both-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ── ARCHIVED SECTION ── */
.archived-section {
  margin-top: 2.5rem;
  border: 1px solid var(--mist);
  border-radius: 12px;
  overflow: hidden;
}
.archived-header {
  width: 100%;
  background: var(--fog);
  border: none;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.archived-header:hover { background: var(--mist); }
.archived-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.archived-count {
  background: var(--both-teal);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}
.archived-chevron { font-size: 10px; color: var(--ash); transition: transform 0.2s; display: inline-block; }
.archived-chevron.open { transform: rotate(180deg); }
.archived-body       { display: none; padding: 14px; background: white; }
.archived-body.open  { display: block; }

/* ── SOCIAL HANDLES ── */
.social-handles {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.social-handle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--mist);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.social-handle:hover { color: var(--parchment); }
.sh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── BOOK TRACKING ── */
.book-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--fog);
}
.book-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; min-height: 0; }
.book-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 3px 8px 3px 9px;
  background: var(--shadow);
  color: var(--parchment);
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.chip-author { color: #a09080; font-style: italic; }
.chip-x {
  background: transparent;
  border: none;
  color: var(--mist);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
}
.chip-x:hover { color: white; }
.book-inputs { display: flex; flex-direction: column; gap: 4px; }
.book-author-row { display: flex; gap: 5px; }
.book-input {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  padding: 5px 8px;
  border: 1px solid var(--mist);
  border-radius: 6px;
  background: var(--parchment);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.book-input:focus { border-color: var(--ash); }
.book-input::placeholder { color: var(--mist); }
.book-author-input { font-style: italic; }
.book-add-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--shadow);
  color: var(--parchment);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.book-add-btn:hover { background: var(--blood); }

/* ── BOOKS VIEW ── */
.books-view, .resources-view {
  max-width: 1000px;
  margin: 0 auto;
}
.view-header { margin-bottom: 1.5rem; }
.view-header-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}
.view-header-sub {
  font-size: 13px;
  color: var(--ash);
  margin-top: 6px;
}

/* ── AUTHOR FILTER ── */
.books-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.5rem;
}
.author-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 20px;
  background: var(--fog);
  border: 1px solid var(--mist);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--ash);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.author-pill:hover { background: var(--mist); color: var(--ink); }
.author-pill.active { background: var(--ink); color: var(--parchment); border-color: var(--ink); }
.pill-count {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  background: var(--mist);
  color: var(--ash);
}
.author-pill.active .pill-count { background: rgba(255,255,255,0.18); color: var(--parchment); }

/* ── BOOKS GRID ── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.book-card {
  background: white;
  border: 1px solid var(--mist);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.book-card:hover {
  box-shadow: 0 4px 18px rgba(14,13,11,0.10);
  transform: translateY(-2px);
}
.book-card-initial {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--blood);
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.book-card-body { flex: 1; min-width: 0; }
.book-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.book-card-author {
  font-size: 11px;
  color: var(--ash);
  margin-top: 3px;
  font-style: italic;
}
.book-card-months {
  font-size: 10px;
  color: var(--ash);
  margin-top: 6px;
  letter-spacing: 0.02em;
  opacity: 0.75;
}
.book-card-count {
  font-size: 10px;
  font-weight: 600;
  color: var(--blood);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ash);
}
.empty-dash   { font-size: 40px; margin-bottom: 0.75rem; opacity: 0.3; }
.empty-title  { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
.empty-desc   { font-size: 13px; line-height: 1.6; max-width: 360px; margin: 0 auto; }

/* ── RESOURCES VIEW ── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.resource-card {
  background: var(--shadow);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #3a342e;
  transition: transform 0.2s, box-shadow 0.2s;
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(14,13,11,0.25);
}
.resource-category {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blood-light);
}
.resource-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--parchment);
  line-height: 1.2;
}
.resource-desc {
  font-size: 12px;
  color: #9a9080;
  line-height: 1.55;
  flex: 1;
}
.resource-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(245,240,232,0.2);
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--parchment);
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  align-self: flex-start;
}
.resource-btn:hover { background: var(--blood); border-color: var(--blood); }

/* ── CUSTOM RESOURCE CARD ── */
.resource-card--custom { border-color: #4a3f38; position: relative; }
.resource-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #5a5048;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.resource-delete:hover { color: var(--blood-light); }

/* ── ADD RESOURCE PANEL ── */
.add-resource-panel {
  margin-top: 2rem;
}
.add-resource-toggle {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ash);
  background: transparent;
  border: 1px dashed var(--mist);
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.add-resource-toggle:hover { color: var(--ink); border-color: var(--ash); }

.add-resource-form {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  background: var(--shadow);
  border: 1px solid #3a342e;
  border-radius: 12px;
  padding: 20px;
}
.add-resource-form.open { display: flex; }

.rl-row { display: flex; gap: 10px; }
.rl-row .rl-input { flex: 1; }

.rl-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  color: var(--parchment);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.rl-input:focus         { border-color: rgba(255,255,255,0.3); }
.rl-input::placeholder  { color: #5a5048; }
.rl-full    { width: 100%; }
.rl-textarea { resize: vertical; min-height: 56px; }

.rl-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.rl-error {
  font-size: 11px;
  color: var(--blood-light);
  flex: 1;
}
.rl-save {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 9px 20px;
  background: var(--blood);
  color: var(--parchment);
  border: none;
  border-radius: 7px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s;
  white-space: nowrap;
}
.rl-save:hover { background: var(--blood-light); }

/* ── RESPONSIVE ── */

/* Prevent iOS tap flash on interactive elements */
button, a { -webkit-tap-highlight-color: transparent; }

/* ── iPad Pro landscape / 1024px ── */
@media (max-width: 1024px) {
  .posts-grid       { grid-template-columns: repeat(3, 1fr); }
  .resources-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* ── iPad portrait / 820px ── */
@media (max-width: 820px) {
  .posts-grid       { grid-template-columns: repeat(2, 1fr); }
  .resources-grid   { grid-template-columns: repeat(2, 1fr); }
  .books-grid       { grid-template-columns: repeat(2, 1fr); }

  .header-inner {
    padding: 0.875rem 1.25rem;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-height: auto;
  }
  .legend { justify-content: flex-start; flex-wrap: wrap; }

  .month-title-block { flex-direction: column; }
  .hero-band         { padding: 1.5rem 1.25rem; }
  .main              { padding: 1.5rem 1.25rem 3rem; }

  .view-nav          { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .month-nav-wrap    { -webkit-overflow-scrolling: touch; }

  .cta-bar           { flex-direction: column; align-items: stretch; }
  .cta-btn           { text-align: center; padding: 12px 18px; }
}

/* ── Large phones landscape / small tablets / 600px ── */
@media (max-width: 600px) {
  .resources-grid { grid-template-columns: 1fr; }
  .rl-row         { flex-direction: column; }
}

/* ── iPhone portrait / 480px ── */
@media (max-width: 480px) {
  .posts-grid { grid-template-columns: 1fr; gap: 10px; }
  .books-grid { grid-template-columns: 1fr; }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    gap: 0.4rem;
  }
  .logo { font-size: 18px; }

  .hero-band       { padding: 1.25rem 1rem; }
  .main            { padding: 1rem 1rem 3rem; }

  /* Larger touch targets */
  .check-btn            { width: 32px; height: 32px; }
  .book-add-btn         { width: 36px; height: 36px; font-size: 18px; }
  .book-input           { font-size: 13px; padding: 8px 10px; }
  .books-filter-bar     { gap: 5px; }
  .author-pill          { font-size: 11px; padding: 6px 11px; }
  .mnav            { padding: 12px 14px; font-size: 12px; }
  .vnav            { padding: 12px 14px; font-size: 11px; }

  /* Card readability */
  .post-card       { padding: 14px; }
  .ptitle          { font-size: 14px; }
  .pdesc           { font-size: 12px; line-height: 1.6; }
  .pbadge          { font-size: 10px; padding: 3px 9px; }

  /* Month header */
  .month-title     { font-size: 26px; }
  .focus-badges    { display: none; }

  /* Books & resources views */
  .view-header-title { font-size: 26px; }
  .book-row          { padding: 12px 14px; }
  .book-row-title    { font-size: 14px; }

  /* Resource cards */
  .resource-card  { padding: 18px 16px; }
  .resource-title { font-size: 15px; }

  /* Add resource form */
  .add-resource-toggle { width: 100%; }
}

/* ── iPhone SE / very small phones / 375px ── */
@media (max-width: 375px) {
  .main         { padding: 0.875rem 0.875rem 3rem; }
  .header-inner { padding: 0.75rem 0.875rem; }
  .hero-band    { padding: 1rem 0.875rem; }
  .ptitle       { font-size: 13px; }
  .pdesc        { font-size: 11px; }
  .vnav         { padding: 10px 12px; }
}


/* ── READING JOURNAL ─────────────────────────────────────────────── */
.journal-view { max-width: 860px; margin: 0 auto; }

/* ── add panel ── */
.jnl-add-panel {
  background: var(--shadow);
  border: 1px solid #3a342e;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 1.5rem;
}
.jnl-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: 16px;
}
.jnl-form { display: flex; flex-direction: column; gap: 12px; }
.jnl-row  { display: flex; gap: 10px; }

.jnl-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  color: var(--parchment);
  outline: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.jnl-input:focus        { border-color: rgba(255,255,255,0.32); }
.jnl-input::placeholder { color: #5a5048; }
.jnl-date-fld { flex-shrink: 0; width: 155px; color-scheme: dark; }
.jnl-ta       { resize: vertical; min-height: 100px; }

/* rating row */
.jnl-rating-row  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jnl-label       { font-size: 12px; color: var(--ash); font-weight: 500; white-space: nowrap; }
.jnl-rating-hint { font-size: 12px; color: #e8a000; font-weight: 600; min-width: 36px; }

/* half-star picker */
.jnl-star-picker { display: flex; gap: 2px; cursor: pointer; }
.star-slot {
  font-size: 26px;
  line-height: 1;
  user-select: none;
  color: #3a342e;
  transition: transform 0.1s;
}
.star-slot:hover { transform: scale(1.15); }
.star-slot[data-fill="full"]  { color: #e8a000; }
.star-slot[data-fill="empty"] { color: #3a342e; }
.star-slot[data-fill="half"] {
  background: linear-gradient(to right, #e8a000 50%, #3a342e 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* saga row */
.jnl-saga-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.jnl-saga-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ash);
  cursor: pointer;
  white-space: nowrap;
}
.jnl-saga-label input[type="checkbox"] { accent-color: var(--blood); width: 14px; height: 14px; cursor: pointer; }
.jnl-saga-label span { transition: color 0.15s; }
.jnl-saga-label:hover span { color: var(--parchment); }
#jnl-saga-name, #edit-saga-name { flex: 1; min-width: 180px; }

.jnl-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.jnl-hint        { font-size: 11px; color: #5a5048; line-height: 1.5; flex: 1; }
.jnl-hint strong { color: #8a7468; }

.jnl-save-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 22px;
  background: var(--blood);
  color: var(--parchment);
  border: none;
  border-radius: 7px;
  cursor: pointer;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.15s;
}
.jnl-save-btn:hover { background: var(--blood-light); }

/* ── author filter bar ── */
.jnl-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1rem;
}
.jnl-filter-section {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.jnl-filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ash);
  padding-top: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.jnl-author-pills,
.jnl-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
/* Two-class selector beats .jnl-apill's single-class display:inline-flex */
.jnl-author-pills .jnl-pill-extra         { display: none; }
.jnl-author-pills.expanded .jnl-pill-extra { display: inline-flex; }

.jnl-apill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 20px;
  background: var(--fog);
  border: 1px solid var(--mist);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--ash);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.jnl-apill:hover  { background: var(--mist); color: var(--ink); }
.jnl-apill.active { background: var(--ink); color: var(--parchment); border-color: var(--ink); }
.jnl-apill.active .pill-count { background: rgba(255,255,255,0.18); color: var(--parchment); }

.jnl-pill-toggle {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  background: none;
  border: 1px dashed var(--mist);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ash);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.jnl-pill-toggle:hover { border-color: var(--ash); color: var(--ink); }

/* ── toolbar ── */
.jnl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
  gap: 8px;
}
.jnl-count      { font-size: 12px; color: var(--ash); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.jnl-sort-group { display: flex; gap: 4px; }
.jnl-sort-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 20px;
  background: var(--fog);
  border: 1px solid var(--mist);
  color: var(--ash);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.jnl-sort-btn:hover  { background: var(--mist); color: var(--ink); }
.jnl-sort-btn.active { background: var(--ink); color: var(--parchment); border-color: var(--ink); }

/* ── single-column list ── */
.jnl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── standalone entry ── */
.jnl-entry {
  background: white;
  border: 1px solid var(--mist);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.18s;
}
.jnl-entry:hover { box-shadow: 0 2px 14px rgba(14,13,11,0.08); }

.jnl-entry-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s;
}
.jnl-entry-hd:hover { background: rgba(0,0,0,0.018); }

.jnl-initial {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blood);
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.jnl-entry-info { flex: 1; min-width: 0; }

.jnl-entry-title {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jnl-entry-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.jnl-entry-author {
  font-size: 11px;
  color: var(--ash);
  font-style: italic;
  cursor: pointer;
  transition: color 0.15s;
}
.jnl-entry-author:hover { color: var(--blood); text-decoration: underline; text-underline-offset: 2px; }
.jnl-meta-sep { font-size: 10px; color: var(--mist); }
.jnl-entry-date { font-size: 10px; color: var(--ash); opacity: 0.7; }

/* Saga order number badge on journal entries */
.jnl-saga-num {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--blood);
  background: #fde8e8;
  border: 1px solid #f5c0c0;
  border-radius: 6px;
  padding: 1px 5px;
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* Library tags mirrored into journal entries */
.jnl-lib-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.jnl-lib-tag {
  pointer-events: none;
  font-size: 9px;
  padding: 1px 6px;
  opacity: 0.9;
}

/* inline star display */
.jnl-stars-inline { display: flex; gap: 1px; }
.jnl-star      { font-size: 11px; }
.jnl-star.full  { color: #e8a000; }
.jnl-star.empty { color: var(--mist); }
.jnl-star.half {
  background: linear-gradient(to right, #e8a000 50%, var(--mist) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* always-visible action icons */
.jnl-entry-acts {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.jnl-act-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--fog);
  color: var(--mist);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
  line-height: 1;
}
.jnl-act-btn:hover        { background: var(--fog); color: var(--ash); border-color: var(--mist); }
.jnl-act-btn.danger:hover { background: #fde8e8; color: var(--blood-light); border-color: #f5c6c6; }

/* expand caret */
.jnl-caret {
  font-size: 16px;
  color: var(--mist);
  transition: transform 0.2s, color 0.15s;
  flex-shrink: 0;
  margin-left: 2px;
  line-height: 1;
}
.jnl-entry.open .jnl-caret { transform: rotate(90deg); color: var(--ash); }
.jnl-saga-group.open .saga-caret { transform: rotate(90deg); }

/* expanded body */
.jnl-entry-body {
  display: none;
  padding: 0 16px 14px;
  border-top: 1px solid var(--fog);
}
.jnl-entry.open .jnl-entry-body { display: block; }

.jnl-thoughts {
  font-size: 13px;
  color: var(--ash);
  line-height: 1.75;
  word-break: break-word;
  padding-top: 12px;
  margin-bottom: 12px;
}
.jnl-entry-footer { display: flex; justify-content: flex-end; }

/* ── saga group ── */
.jnl-saga-group {
  position: relative;
  border: 1px solid var(--mist);
  border-radius: 12px;
  background: white;
  overflow: visible;
}

/* stacked paper shadows */
.jnl-saga-group::before {
  content: '';
  position: absolute;
  inset: 5px -5px -7px 5px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  background: #ece8df;
  z-index: -1;
}
.jnl-saga-group.stack2::after,
.jnl-saga-group.stack3::after {
  content: '';
  position: absolute;
  inset: 9px -9px -12px 9px;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 12px;
  background: #e2ddd4;
  z-index: -2;
}

.jnl-saga-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--shadow);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.jnl-saga-group.open .jnl-saga-hd {
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--mist);
}
.jnl-saga-hd:hover { background: #3a3530; }

.jnl-entry-drag-handle {
  cursor: grab;
  color: var(--mist);
  font-size: 13px;
  flex-shrink: 0;
  user-select: none;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s;
  margin-right: 2px;
}
.jnl-entry-hd:hover .jnl-entry-drag-handle { opacity: 0.8; }
.jnl-entry-drag-handle:active { cursor: grabbing; }
.jnl-entry.jnl-entry-dragging { opacity: 0.4; }
@media (hover: none) { .jnl-entry-drag-handle { opacity: 0.55; } }
.jnl-entry.jnl-entry-over {
  outline: 2px dashed var(--blood);
  outline-offset: -2px;
  border-radius: 8px;
}

.saga-initial {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--blood);
  color: var(--parchment);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jnl-saga-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--parchment);
  flex: 1;
}
.jnl-saga-cnt {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(245,240,232,0.15);
  color: var(--fog);
}
.saga-caret { margin-left: 4px; color: var(--fog); }

/* books inside the saga */
.jnl-saga-books { display: none; }
.jnl-saga-group.open .jnl-saga-books { display: flex; flex-direction: column; }

/* saga entries share no outer border — they're inside the group */
.jnl-saga-books .jnl-entry {
  border: none;
  border-radius: 0;
  border-top: 1px solid var(--fog);
  box-shadow: none !important;
}
.jnl-saga-books .jnl-entry:last-child {
  border-radius: 0 0 11px 11px;
}
.jnl-saga-books .jnl-entry:hover { background: rgba(0,0,0,0.02); }

/* ── Journal pagination ── */
.jnl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0 8px;
  flex-wrap: wrap;
}
.jpag-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--mist);
  background: white;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jpag-btn:hover:not(:disabled) { background: var(--fog); border-color: var(--ash); }
.jpag-btn.active { background: var(--shadow); color: var(--parchment); border-color: var(--shadow); }
.jpag-btn:disabled { opacity: 0.35; cursor: default; }
.jpag-ellipsis {
  color: var(--ash);
  font-size: 14px;
  padding: 0 4px;
  line-height: 34px;
}

/* ── Claude button ── */
.claude-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: linear-gradient(135deg, #3d1270, #5c2ba8);
  color: #dcc8ff;
  border: 1px solid #6B3FA0;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.claude-btn:hover {
  background: linear-gradient(135deg, #4d1e84, #6c3bb8);
  box-shadow: 0 0 12px rgba(107,63,160,0.5);
  color: #eedcff;
}
.claude-btn--series {
  background: none;
  border: 1.5px solid #6B3FA0;
  color: #8b5fcf;
}
.claude-btn--series:hover {
  background: linear-gradient(135deg, #3d1270, #5c2ba8);
  color: #dcc8ff;
  box-shadow: 0 0 12px rgba(107,63,160,0.4);
}
.claude-icon { font-size: 12px; }

.jnl-saga-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--fog);
  background: rgba(107,63,160,0.03);
  display: flex;
  justify-content: flex-end;
}

/* ── modals (shared) ── */
.jnl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.jnl-modal {
  background: var(--shadow);
  border: 1px solid #3a342e;
  border-radius: 14px;
  padding: 24px;
  max-width: 580px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.jnl-edit-modal { max-width: 640px; }
.jnl-modal-hd {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--parchment);
}
.jnl-modal-ta {
  width: 100%;
  min-height: 200px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--parchment);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  line-height: 1.6;
  padding: 12px;
  resize: vertical;
  outline: none;
}
.jnl-modal-ft { display: flex; gap: 10px; justify-content: flex-end; }
.jnl-modal-save {
  padding: 9px 20px;
  background: var(--blood);
  color: var(--parchment);
  border: none;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.jnl-modal-save:hover { background: var(--blood-light); }
.jnl-modal-close {
  padding: 9px 18px;
  background: transparent;
  color: var(--ash);
  border: 1px solid #3a342e;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.15s;
}
.jnl-modal-close:hover { color: var(--parchment); }

/* ── toast ── */
.jnl-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink);
  color: var(--parchment);
  padding: 12px 22px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}
.jnl-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── journal responsive ── */
@media (max-width: 820px) {
  .jnl-row      { flex-wrap: wrap; }
  .jnl-date-fld { width: 100%; }
}
@media (max-width: 480px) {
  .jnl-add-panel    { padding: 18px 16px; }
  .jnl-form-footer  { flex-direction: column; align-items: stretch; }
  .jnl-save-btn     { text-align: center; }
  .jnl-entry-hd     { padding: 11px 12px; gap: 10px; }
  .jnl-entry-title  { font-size: 13px; }
  .jnl-thoughts     { font-size: 12px; }
  .jnl-act-btn      { width: 26px; height: 26px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════
   HAMBURGER & SIDE DRAWER
═══════════════════════════════════════════════════════════ */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--parchment);
  border-radius: 2px;
  transition: opacity 0.2s;
}
.hamburger-btn:hover span { opacity: 0.7; }

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.drawer-overlay.open { display: block; }

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--shadow);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  padding: 20px 0 40px;
  box-shadow: 4px 0 24px rgba(0,0,0,0.35);
}
.side-drawer.open { transform: translateX(0); }

.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--ash);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s;
}
.drawer-close:hover { color: var(--parchment); }

.drawer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--fog);
  padding: 0 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.drawer-logo span { color: var(--blood); }

.drawer-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.drawer-nav button {
  padding: 13px 24px;
  text-align: left;
  background: none;
  border: none;
  color: var(--ash);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}
.drawer-nav button:hover {
  background: rgba(255,255,255,0.06);
  color: var(--parchment);
  border-left-color: var(--blood);
}

/* ═══════════════════════════════════════════════════════════
   MY LIBRARY
═══════════════════════════════════════════════════════════ */
.library-view { display: flex; flex-direction: column; gap: 0; }

/* ── Add panel ── */
.lib-add-panel {
  background: var(--shadow);
  border: 1px solid #3a342e;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 16px;
}
.lib-add-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.lib-add-form .jnl-input { flex: 1; min-width: 140px; }
.lib-add-form-row2 { margin-top: 8px; }
.lib-select {
  flex: 0 0 110px !important;
  min-width: 0 !important;
  cursor: pointer;
  color-scheme: dark;
}
.lib-select option { color: initial; background: #2a2620; }
.lib-order-fld { flex: 0 0 80px !important; min-width: 0 !important; }
.lib-read-chk-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ash);
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}
.lib-read-chk { cursor: pointer; accent-color: var(--blood); width: 15px; height: 15px; }

/* ── Filter bar ── */
.lib-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--fog);
  border-radius: 12px;
}
.lib-search {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--fog);
  border-radius: 8px;
  background: var(--parchment);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.lib-search:focus { border-color: var(--ash); }
.lib-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
}
.lib-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.lib-filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.lib-fpill {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--mist);
  background: white;
  color: var(--ash);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.lib-fpill:hover  { border-color: var(--ash); color: var(--ink); }
.lib-fpill.active { background: var(--shadow); border-color: var(--shadow); color: var(--parchment); }
.lib-author-select {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--mist);
  background: white;
  color: var(--ash);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}
.lib-author-select:focus { border-color: var(--ash); }
.lib-tag-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.lib-tag-fpill.active { background: transparent !important; }

/* ── Count ── */
.lib-count {
  font-size: 12px;
  color: var(--ash);
  margin-bottom: 12px;
  font-weight: 500;
}

/* ── Split layout ── */
.lib-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.lib-panel { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lib-panel-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}
.lib-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
}
.lib-panel-count {
  font-size: 11px;
  color: var(--ash);
  white-space: nowrap;
}
.lib-panel-empty {
  font-size: 12px;
  color: var(--ash);
  font-style: italic;
  padding: 20px 0;
  text-align: center;
}

/* ── Table ── */
.lib-table {
  width: 100%;
  border: 1px solid var(--fog);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}
.lib-table--sagas { --lib-cols: 16px 26px minmax(0,2fr) 88px 76px 28px; }
.lib-table--books { --lib-cols: minmax(0,2fr) minmax(0,1fr) 88px 76px 28px; }

.lib-table-head {
  display: grid;
  grid-template-columns: var(--lib-cols);
  gap: 0 10px;
  padding: 8px 12px;
  background: var(--parchment);
  border-bottom: 1px solid var(--fog);
}
.lib-th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ash);
}

/* ── Row ── */
.lib-row {
  display: grid;
  grid-template-columns: var(--lib-cols);
  gap: 0 10px;
  padding: 9px 12px;
  align-items: center;
  border-bottom: 1px solid var(--fog);
  transition: background 0.1s;
}
.lib-row:last-child { border-bottom: none; }
.lib-row:hover { background: #faf8f5; }
.lib-row--saga { background: #f9f6f2; }
.lib-row--saga:hover { background: #f4efe8; }

.lib-cell { min-width: 0; }
.lib-cell-num { display: flex; justify-content: center; }
.lib-cell-title { display: flex; flex-direction: column; gap: 3px; }
.lib-cell-format { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.lib-cell-status { display: flex; align-items: center; }
.lib-cell-del { display: flex; justify-content: center; }

/* ── Inputs (table context) ── */
.lib-title-in {
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  padding: 0;
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.lib-title-in:focus {
  background: var(--parchment);
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
  text-overflow: clip;
}
.lib-author-in {
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--ash);
  background: transparent;
  padding: 0;
  width: 100%;
}
.lib-author-in:focus {
  background: var(--parchment);
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
}
.lib-saga-in--row {
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--mist);
  background: transparent;
  padding: 0;
  width: 100%;
  font-style: italic;
}
.lib-saga-in--row:focus,
.lib-saga-in--row:not(:placeholder-shown) { color: var(--ash); }
.lib-saga-in--row:focus {
  background: var(--parchment);
  border-radius: 3px;
  padding: 2px 4px;
  margin: -2px -4px;
}
.lib-order-in {
  width: 100%;
  max-width: 36px;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--ash);
  background: transparent;
  padding: 0;
  text-align: center;
}
.lib-order-in:focus {
  background: var(--parchment);
  border-radius: 3px;
  padding: 2px 4px;
}
.lib-order-in::-webkit-outer-spin-button,
.lib-order-in::-webkit-inner-spin-button { -webkit-appearance: none; }
.lib-order-in[type=number] { -moz-appearance: textfield; }

.lib-del-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--mist);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.lib-del-btn:hover { background: #fde8e8; color: var(--blood); }

/* ── Badges ── */
.lib-fmt-badge,
.lib-read-badge {
  padding: 3px 9px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.lib-fmt-badge[data-fmt="physical"] { background: var(--fog); color: var(--shadow); border-color: var(--mist); }
.lib-fmt-badge[data-fmt="ebook"]    { background: #fde8e8; color: var(--blood); border-color: #f5c0c0; }
.lib-fmt-badge:hover { filter: brightness(0.93); }
.lib-read-badge[data-read="true"]  { background: #e8f4e8; color: #2d6a2d; border-color: #b0d4b0; }
.lib-read-badge[data-read="false"] { background: var(--story-amber-bg); color: var(--story-amber); border-color: #e8d090; }
.lib-read-badge:hover { filter: brightness(0.93); }

/* ── Tags ── */
.lib-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px 2px 8px;
  border-radius: 10px;
  border: 1px solid;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.lib-tag-del {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 1px;
  font-size: 12px;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.lib-tag-del:hover { opacity: 1; }
.lib-tag-add {
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px dashed var(--mist);
  background: none;
  color: var(--mist);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.5;
  white-space: nowrap;
}
.lib-tag-add:hover { border-color: var(--ash); color: var(--ash); }
.lib-tag-inp {
  width: 80px;
  border: 1px solid var(--mist);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  background: var(--parchment);
  color: var(--ink);
}
.lib-tag-inp:focus { border-color: var(--ash); }

/* ── Saga group (table section) ── */
.lib-saga-group { border-bottom: 1px solid var(--fog); }
.lib-saga-group:last-of-type { border-bottom: none; }

.lib-saga-hdr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--shadow);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.lib-saga-hdr-row:hover { background: #3a342e; }
.lib-saga-hdr-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.lib-saga-hdr-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Stack visual */
.lib-saga-stk-vis {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.lib-stk-sq {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  left: 7px;
  top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lib-stk-sq--3 {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.18);
  transform: rotate(14deg) translate(5px, -5px);
  z-index: 1;
}
.lib-stk-sq--2 {
  background: rgba(255,255,255,0.13);
  border: 1.5px solid rgba(255,255,255,0.28);
  transform: rotate(6deg) translate(2px, -2px);
  z-index: 2;
}
.lib-stk-sq--1 {
  background: var(--blood);
  border: 1.5px solid rgba(255,255,255,0.3);
  z-index: 3;
}
.lib-stk-initial {
  font-size: 8px;
  font-weight: 800;
  color: var(--parchment);
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1;
  pointer-events: none;
}

.lib-saga-hdr-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.lib-saga-hdr-name {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  color: var(--parchment);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-saga-hdr-meta {
  font-size: 11px;
  color: var(--ash);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-saga-hdr-count {
  font-size: 10px;
  font-weight: 600;
  color: var(--ash);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 2px 8px;
  white-space: nowrap;
}
.lib-saga-chevron {
  color: var(--ash);
  font-size: 12px;
  display: inline-block;
  transition: transform 0.35s ease;
}
.lib-saga-group.open .lib-saga-chevron { transform: rotate(180deg); }

.lib-cell-drag {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lib-row-drag-handle {
  cursor: grab;
  color: var(--mist);
  font-size: 13px;
  line-height: 1;
  user-select: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.lib-row--saga:hover .lib-row-drag-handle { opacity: 1; }
.lib-row-drag-handle:active { cursor: grabbing; }
.lib-row--saga.lib-row-dragging { opacity: 0.4; }
@media (hover: none) { .lib-row-drag-handle { opacity: 0.55; } }
.lib-row--saga.lib-row-over {
  outline: 2px dashed var(--blood);
  outline-offset: -2px;
}

.lib-saga-rows {
  overflow: hidden;
  transition: height 0.35s ease;
}

.lib-grid-wrap { padding-bottom: 8px; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .lib-split { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .lib-table--sagas { --lib-cols: 16px 22px minmax(0,1fr) 76px 28px; }
  .lib-table--sagas .lib-cell-format,
  .lib-table--sagas .lib-th:nth-child(3) { display: none; }
  .lib-table--books { --lib-cols: minmax(0,1fr) 76px 76px 28px; }
  .lib-table--books .lib-cell-author,
  .lib-table--books .lib-th:nth-child(2) { display: none; }
  .lib-add-form, .lib-add-form-row2 { flex-direction: column; }
  .lib-select, .lib-order-fld { flex: 1 !important; }
  .lib-read-chk-label { width: 100%; }
  .lib-filter-row { flex-direction: column; align-items: flex-start; }

  /* Journal filter bar */
  .jnl-filter-section { flex-direction: column; gap: 6px; }
  .jnl-filter-label   { padding-top: 0; }
  .jnl-author-pills,
  .jnl-tag-pills      { gap: 5px; }
  .jnl-apill          { font-size: 11px; padding: 4px 10px; }
  .jnl-pill-toggle    { font-size: 11px; padding: 4px 10px; }
}

/* ═══════════════════════════════════════════════════════════
   LAUNCH CHECKLIST / TODOS
═══════════════════════════════════════════════════════════ */
.todos-view { display: flex; flex-direction: column; gap: 0; }

/* Progress panel */
.todo-progress-panel {
  background: var(--shadow);
  border: 1px solid #3a342e;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 16px;
}
.todo-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}
.todo-progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--parchment);
}
.todo-countdown {
  font-size: 12px;
  color: var(--ash);
  font-weight: 500;
}
.todo-progress-track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.todo-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--blood), #c0392b);
  border-radius: 3px;
  transition: width 0.4s ease;
  min-width: 4px;
}

/* Add form */
.td-add-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.td-add-form .jnl-input { flex: 1; min-width: 140px; }
.td-cat-in { flex: 0 0 150px !important; }

/* Groups */
.todo-groups { display: flex; flex-direction: column; gap: 14px; }

.todo-group {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--fog);
  overflow: hidden;
}
.todo-group--launch {
  border-color: #c0392b;
  box-shadow: 0 0 0 1px rgba(192,57,43,0.15);
}

.todo-group-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--parchment);
  border-bottom: 1px solid var(--fog);
}
.todo-group--launch .todo-group-hd {
  background: #fff5f5;
  border-bottom-color: rgba(192,57,43,0.15);
}
.todo-group-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.todo-group-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink);
  flex: 1;
}
.todo-group-count {
  font-size: 11px;
  color: var(--ash);
  font-weight: 500;
}

/* Items */
.todo-items { display: flex; flex-direction: column; }

.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--fog);
  transition: background 0.12s;
}
.todo-item:last-child { border-bottom: none; }
.todo-item:hover { background: #fafaf8; }
.todo-item.todo-done { background: #f9f9f7; }
.todo-item.todo-overdue { background: #fff8f8; }

.todo-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--mist);
  background: white;
  color: white;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0;
}
.todo-check.checked {
  background: var(--blood);
  border-color: var(--blood);
}
.todo-check:hover:not(.checked) { border-color: var(--ash); }

.todo-text {
  flex: 1;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.12s;
}
.todo-item.todo-done .todo-text {
  color: var(--ash);
  text-decoration: line-through;
  text-decoration-color: var(--mist);
}
.todo-text:hover { color: var(--blood); }

.todo-edit-in {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--blood);
  border-radius: 5px;
  padding: 3px 8px;
  outline: none;
  background: #fffdf9;
}

.todo-date {
  font-size: 11px;
  color: var(--ash);
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 8px;
  background: var(--fog);
}
.todo-date.overdue {
  background: #fde8e8;
  color: var(--blood);
  font-weight: 600;
}
.todo-item.todo-done .todo-date {
  background: #e8f4e8;
  color: #2d6a2d;
}

.todo-del {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--mist);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  opacity: 0;
}
.todo-item:hover .todo-del { opacity: 1; }
.todo-del:hover { background: #fde8e8; color: var(--blood); }

/* Launch day special */
.todo-group--launch .todo-item { background: #fffdf9; }
.todo-group--launch .todo-item:hover { background: #fff8f0; }
.todo-group--launch .todo-text { font-weight: 600; }

@media (max-width: 600px) {
  .td-add-form { flex-direction: column; }
  .td-cat-in   { flex: 1 !important; }
  .todo-item   { padding: 10px 12px; gap: 8px; }
  .todo-date   { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   SPRINT PLAYBOOK  (dark-themed section)
═══════════════════════════════════════════════════════════ */

/* Break out of .main padding so dark bg fills edge-to-edge */
.sprint-view {
  margin: -2rem -1.5rem -4rem;
  background: #0e0d0c;
  color: #ece7df;
  min-height: 60vh;
  font-family: 'DM Sans', sans-serif;
}

/* Hero */
.sprint-hero {
  padding: 3rem 2rem 2.5rem;
  border-bottom: 1px solid #2a2622;
  text-align: center;
}

.sprint-eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 14px;
}

.sprint-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 6vw, 52px);
  font-weight: 700;
  color: #ece7df;
  line-height: 1.15;
  margin-bottom: 18px;
}
.sprint-hero-title em { color: #c9a96e; font-style: italic; }

.sprint-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #7a736a;
  flex-wrap: wrap;
}
.sp-sep { color: #3a342e; }

/* ── Inner tab bar ── */
.sprint-tab-bar {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid #2a2622;
  padding: 0 1.5rem;
  gap: 0;
  background: #0e0d0c;
  position: sticky;
  top: 64px; /* below site header */
  z-index: 10;
}
.sprint-tab-bar::-webkit-scrollbar { display: none; }

.sp-tab {
  flex-shrink: 0;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #7a736a;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.02em;
}
.sp-tab:hover  { color: #ece7df; }
.sp-tab.active { color: #c0392b; border-bottom-color: #c0392b; }

/* ── Content area ── */
.sprint-content {
  padding: 2.5rem 2rem;
  max-width: 860px;
  margin: 0 auto;
}

/* ── Typography ── */
.sp-h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  color: #ece7df;
  margin: 32px 0 12px;
  line-height: 1.2;
}
.sp-h3:first-child { margin-top: 0; }
.sp-h3 em { color: #c9a96e; font-style: italic; }

.sp-h4 {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c0392b;
  margin: 24px 0 8px;
  font-weight: 500;
}

.sp-p {
  color: #b8b1a4;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 72ch;
}
.sp-p strong { color: #ece7df; }
.sp-p em     { color: #c9a96e; }

.sp-pull {
  border-left: 2px solid #c0392b;
  padding: 8px 0 8px 20px;
  margin: 24px 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 2.5vw, 20px);
  font-style: italic;
  color: #ece7df;
  line-height: 1.45;
}

.sp-bullets {
  list-style: none;
  margin: 8px 0 18px;
  padding: 0;
}
.sp-bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: #b8b1a4;
  font-size: 14px;
  line-height: 1.65;
}
.sp-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 10px; height: 1px;
  background: #c0392b;
}
.sp-bullets li strong { color: #ece7df; }

/* ── Milestone grid ── */
.sp-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 20px 0 28px;
}

.sp-stat-card {
  background: #161412;
  border: 1px solid #2a2622;
  border-radius: 8px;
  padding: 18px 16px;
}
.sp-stat-card--goal { border-color: #8b2a20; }

.sp-stat-day {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 6px;
}
.sp-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #ece7df;
  margin-bottom: 2px;
  line-height: 1;
}
.sp-stat-num.sp-gold { color: #c9a96e; }

.sp-stat-unit {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4a4440;
  margin-bottom: 8px;
}
.sp-stat-note {
  font-size: 12px;
  color: #7a736a;
  line-height: 1.55;
}

/* ── Table ── */
.sp-table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid #2a2622; border-radius: 6px; }
.sp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 520px;
}
.sp-table th {
  background: #161412;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5a534a;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid #2a2622;
  white-space: nowrap;
}
.sp-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #1f1c19;
  color: #b8b1a4;
  vertical-align: top;
  line-height: 1.5;
}
.sp-table tr:last-child td { border-bottom: none; }
.sp-table td strong { color: #ece7df; }

/* ── Week sub-tabs ── */
.sp-week-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.sp-wtab {
  padding: 7px 15px;
  border: 1px solid #2a2622;
  border-radius: 20px;
  background: transparent;
  color: #7a736a;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.sp-wtab:hover  { color: #ece7df; border-color: #3a342e; }
.sp-wtab.active { background: #c0392b; border-color: #c0392b; color: #fff; }

/* ── Week meta banner ── */
.sp-week-meta {
  background: #161412;
  border: 1px solid #2a2622;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.sp-week-goal-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 4px;
}
.sp-week-goal-val {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #ece7df;
  margin-bottom: 4px;
}
.sp-week-goal-sub {
  font-size: 13px;
  color: #7a736a;
  font-style: italic;
}

/* ── Day cards ── */
.sp-day {
  background: #161412;
  border: 1px solid #2a2622;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}
.sp-day:hover { border-color: #3a342e; }
.sp-day--viral {
  border-left: 3px solid #c0392b;
  background: linear-gradient(90deg, rgba(192,57,43,0.08) 0%, transparent 55%), #161412;
}

.sp-day-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.sp-day-num {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a4440;
  flex-shrink: 0;
}
.sp-day-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: #ece7df;
  flex: 1;
  min-width: 180px;
  line-height: 1.3;
}
.sp-badge {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  background: #c0392b;
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
}
.sp-badge--pin { background: #7a5500; }

.sp-day-row {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 5px 10px;
  margin-bottom: 5px;
  align-items: baseline;
}
.sp-day-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4a4440;
  padding-top: 3px;
}
.sp-day-val {
  font-size: 13px;
  color: #b8b1a4;
  line-height: 1.55;
}
.sp-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #ece7df;
  font-size: 14px;
}

/* ── Ops blocks ── */
.sp-ops-block {
  background: #161412;
  border: 1px solid #2a2622;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.sp-ops-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c0392b;
  font-weight: 500;
  margin-bottom: 10px;
}

/* ── Hooks ── */
.sp-hook {
  border-left: 1px solid #2a2622;
  padding: 7px 0 7px 16px;
  margin: 6px 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #ece7df;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.15s, padding-left 0.15s, color 0.15s;
  user-select: none;
}
.sp-hook:hover  { border-left-color: #c0392b; padding-left: 20px; }
.sp-hook.sp-copied { color: #c9a96e; border-left-color: #c9a96e; }

/* ── Hashtag sets ── */
.sp-hashtag-set {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  line-height: 1.9;
  color: #ece7df;
  background: #161412;
  border: 1px solid #2a2622;
  border-radius: 6px;
  padding: 12px 14px;
  cursor: pointer;
  word-break: break-word;
  margin-bottom: 4px;
  transition: border-color 0.15s, color 0.15s;
  user-select: none;
}
.sp-hashtag-set:hover   { border-color: #3a342e; }
.sp-hashtag-set.sp-copied { color: #c9a96e; border-color: #c9a96e; }

/* ── Sprint nav button glow ── */
#vnav-sprint.active { color: #c0392b; border-bottom-color: #c0392b; }

/* ── Responsive ── */
@media (max-width: 680px) {
  .sprint-hero  { padding: 2rem 1.25rem 1.75rem; }
  .sprint-tab-bar { padding: 0 1rem; }
  .sprint-content { padding: 1.75rem 1.25rem; }
  .sp-day-row   { grid-template-columns: 1fr; gap: 2px; }
  .sp-day-label { padding-top: 0; }
  .sp-week-tabs { gap: 5px; }
  .sp-wtab      { padding: 6px 12px; font-size: 11px; }
  .sp-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .sprint-tab-bar { top: 56px; }
  .sp-stat-grid   { grid-template-columns: 1fr 1fr; }
  .sprint-hero-stats { font-size: 11px; gap: 5px; }
}
