/* ============================================================
   Gospel Circle — shared styles
   ============================================================ */

:root {
  --paper:        #F6F1E7;
  --paper-soft:   #FBF7EE;
  --paper-deep:   #EFE8D8;
  --ink:          #1C1B19;
  --ink-soft:     #4A4842;
  --ink-mute:     #8B8779;
  --gold:         #A57B2D;
  --gold-soft:    #C9A862;
  --rose:         #B5455A;
  --rose-soft:    #D78897;
  --rule:         rgba(28, 27, 25, 0.10);
  --rule-strong:  rgba(28, 27, 25, 0.20);
  --accent-glow:  rgba(165, 123, 45, 0.12);

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans:  'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 168, 98, 0.06), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(165, 123, 45, 0.04), transparent 70%),
    var(--paper);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.11   0 0 0 0 0.10   0 0 0 0 0.09   0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: multiply;
}

a { color: inherit; }

.link-gold {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
}
.link-gold:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 10;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  background: rgba(246, 241, 231, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  gap: 24px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
  user-select: none;
}

.brand-mark {
  width: 28px; height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.brand-mark::after {
  content: '';
  width: 8px; height: 8px;
  background: var(--gold); border-radius: 50%;
}

.brand-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "wght" 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand-name em {
  font-style: italic;
  font-variation-settings: "opsz" 24, "wght" 400;
  color: var(--ink-soft);
}

.nav {
  display: flex; gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-divider {
  width: 1px; height: 18px;
  background: var(--rule-strong);
  margin: 0 8px;
}

.nav-item {
  text-decoration: none;
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: all 0.25s ease;
  display: inline-flex; align-items: center; gap: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-item:hover { color: var(--ink); }
.nav-item.active { color: var(--ink); background: var(--paper-deep); }

.nav-cta {
  background: var(--ink);
  color: var(--paper);
}
.nav-cta:hover { background: var(--ink-soft); color: var(--paper); }
.nav-cta.active { background: var(--ink); color: var(--paper); }

.nav-logout {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  padding: 8px 10px;
}

.nav-user { padding-left: 8px; padding-right: 14px; }
.nav-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  background: var(--paper-deep);
}
.nav-avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "wght" 500;
  font-size: 12px;
  color: var(--ink);
  background: var(--gold-soft);
}

/* ---------- Main ---------- */
main {
  position: relative; z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Flash messages ---------- */
.flash {
  max-width: 680px;
  margin: 0 auto 24px;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 14px;
  border: 1px solid var(--rule-strong);
}
.flash-center { text-align: center; }
.flash-ok    { background: rgba(165,123,45,0.06); border-color: var(--gold-soft); color: var(--ink); }
.flash-error { background: rgba(181,69,90,0.06); border-color: var(--rose-soft); color: var(--ink); }

.alert {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-left: 3px solid var(--rose);
  background: rgba(181,69,90,0.05);
  color: var(--ink);
  font-size: 14px;
  border-radius: 2px;
}
.alert div + div { margin-top: 4px; }

/* ---------- Home View ---------- */
.home-view {
  padding: 80px 0 120px;
  display: grid; grid-template-columns: 1fr;
  gap: 80px;
  animation: fadeIn 0.5s ease;
}

.verse-section {
  display: grid; grid-template-columns: 1fr;
  justify-items: center; text-align: center;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: ''; width: 28px; height: 1px; background: var(--rule-strong);
}

.verse-text {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 30;
  font-size: clamp(1.85rem, 4.2vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 920px;
  margin: 0 0 36px;
  min-height: 1.5em;
}
.verse-text .first-letter {
  font-variation-settings: "opsz" 144, "wght" 500, "SOFT" 30;
  color: var(--gold);
}
.verse-text.loading {
  color: var(--ink-mute);
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 300, "SOFT" 100;
}

.verse-ref {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.verse-ref .pipe { margin: 0 12px; color: var(--ink-mute); }

.another-btn {
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  padding: 12px 28px;
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex; align-items: center; gap: 10px;
}
.another-btn:hover {
  border-color: var(--ink);
  background: var(--paper-soft);
  transform: translateY(-1px);
}
.another-btn svg { width: 14px; height: 14px; transition: transform 0.5s ease; }
.another-btn:hover svg { transform: rotate(180deg); }

/* ---------- Welcome panel ---------- */
.welcome {
  max-width: 720px; margin: 0 auto;
  text-align: center;
  padding-top: 60px;
  border-top: 1px solid var(--rule);
}
.welcome h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "wght" 400, "SOFT" 50;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-style: italic;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.welcome p {
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "wght" 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Bible View ---------- */
.bible-view {
  padding: 60px 0 120px;
  animation: fadeIn 0.5s ease;
}

.bible-header {
  text-align: center;
  margin-bottom: 48px;
}
.bible-header h1 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "wght" 400, "SOFT" 30;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.bible-header p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
  letter-spacing: 0.02em;
}

.search-box {
  max-width: 680px;
  margin: 0 auto 48px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 22px 28px 22px 60px;
  font-family: var(--serif);
  font-variation-settings: "opsz" 18, "wght" 400;
  font-size: 19px;
  background: var(--paper-soft);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  color: var(--ink);
  outline: none;
  transition: all 0.25s ease;
  letter-spacing: -0.005em;
}
.search-input:focus {
  border-color: var(--gold);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.search-input::placeholder { color: var(--ink-mute); font-style: italic; }

.search-icon {
  position: absolute; left: 22px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--ink-mute);
  pointer-events: none;
}

.search-hint {
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 14px;
  letter-spacing: 0.04em;
}
.search-hint code {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  background: var(--paper-deep);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  color: var(--ink-soft);
  margin: 0 2px;
}

/* ---------- Search Results ---------- */
.results {
  max-width: 820px;
  margin: 0 auto;
  scroll-margin-top: 24px;
}

.results-meta {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}

.result-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.result-item:last-child { border-bottom: none; }

.result-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.result-ref {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  display: block;
}

.result-text {
  font-family: var(--serif);
  font-variation-settings: "opsz" 20, "wght" 400;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}
.result-text mark {
  background: transparent;
  color: var(--gold);
  font-variation-settings: "opsz" 20, "wght" 600;
  border-bottom: 1px solid var(--gold-soft);
}

.passage-block { padding: 32px 0; }
.passage-ref {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px; text-align: center;
}
.passage-text {
  font-family: var(--serif);
  font-variation-settings: "opsz" 22, "wght" 400;
  font-size: 21px;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.passage-text .vnum {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  vertical-align: super;
  color: var(--gold);
  margin-right: 4px; margin-left: 6px;
}
.passage-text .verse-inline:first-child .vnum { margin-left: 0; }
.verse-inline { position: relative; }

/* ---------- Heart button ---------- */
.heart-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink-mute);
  padding: 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  vertical-align: middle;
}
.heart-btn svg {
  width: 18px; height: 18px;
  transition: transform 0.2s ease;
}
.heart-btn:hover { color: var(--rose); background: rgba(181,69,90,0.06); }
.heart-btn:hover svg { transform: scale(1.1); }
.heart-btn.filled { color: var(--rose); }
.heart-btn:disabled { opacity: 0.5; cursor: default; }

.passage-text .heart-btn { padding: 2px; vertical-align: middle; }
.passage-text .heart-btn svg { width: 14px; height: 14px; }

.empty-state {
  text-align: center;
  padding: 80px 0;
  color: var(--ink-mute);
}
.empty-state .ornament {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "wght" 300;
  font-size: 40px;
  color: var(--gold-soft);
  margin-bottom: 16px;
  letter-spacing: 0.4em;
}
.empty-state p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  margin: 0;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 4px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.page-btn {
  min-width: 38px; height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.page-btn:hover:not(:disabled):not(.active) { background: var(--paper-deep); color: var(--ink); }
.page-btn.active { background: var(--ink); color: var(--paper); cursor: default; }
.page-btn:disabled { opacity: 0.3; cursor: default; }
.page-btn svg { width: 14px; height: 14px; }
.page-arrow { gap: 6px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.page-ellipsis {
  color: var(--ink-mute); padding: 0 6px;
  font-size: 13px; user-select: none;
}

/* ---------- Forms ---------- */
.auth-view {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 0 100px;
  animation: fadeIn 0.5s ease;
}
.auth-card {
  width: 100%; max-width: 460px;
  padding: 48px 40px;
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(28,27,25,0.02), 0 30px 60px -30px rgba(28,27,25,0.15);
}
.auth-eyebrow {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.auth-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "wght" 400, "SOFT" 30;
  font-size: 2.2rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.auth-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.auth-foot {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.form { display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  background: #FFFFFF;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  color: var(--ink);
  outline: none;
  transition: all 0.2s ease;
}
.field-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field-textarea {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  resize: vertical;
  min-height: 80px;
}
.field-hint {
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--sans);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}
.btn-sm { padding: 10px 22px; font-size: 11px; }
.text-btn {
  background: none; border: none;
  color: var(--ink-mute);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s ease;
}
.text-btn:hover { color: var(--rose); }
.inline-form { display: inline; }

/* ---------- Profile ---------- */
.profile-view {
  padding: 40px 0 120px;
  animation: fadeIn 0.5s ease;
  max-width: 820px;
  margin: 0 auto;
}

.profile-head {
  display: flex; gap: 24px;
  align-items: center;
  padding: 16px 0 32px;
  border-bottom: 1px solid var(--rule);
}

.profile-avatar-wrap { flex-shrink: 0; }
.profile-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
}
.profile-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "wght" 500, "SOFT" 30;
  font-size: 42px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-soft), var(--paper-deep));
}

.profile-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "wght" 500, "SOFT" 30;
  font-size: 2rem;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.profile-bio {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.profile-bio-empty { color: var(--ink-mute); }
.profile-joined {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mute);
  margin: 0;
  letter-spacing: 0.04em;
}

.profile-tabs, .prayers-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--rule);
  margin: 24px 0 32px;
}
.profile-tab, .prayers-tab {
  text-decoration: none;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
}
.profile-tab:hover, .prayers-tab:hover { color: var(--ink); }
.profile-tab.active, .prayers-tab.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* Status composer */
.status-composer {
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 18px;
  margin-bottom: 32px;
}
.status-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  min-height: 70px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}
.status-textarea::placeholder { color: var(--ink-mute); font-style: italic; }
.status-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.status-count {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}

/* Feed items */
.feed { display: flex; flex-direction: column; }
.feed-item, .fav-item, .prayer-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.feed-item:last-child, .fav-item:last-child, .prayer-item:last-child {
  border-bottom: none;
}

.feed-meta, .fav-meta, .prayer-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
}

.feed-text {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}

.fav-ref {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.fav-text {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 8px;
}
.fav-remove { margin-top: 4px; }

/* Edit profile */
.edit-section {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.edit-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "wght" 400, "SOFT" 30;
  font-size: 1.4rem;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

/* ---------- Prayer journal ---------- */
.prayers-view {
  padding: 60px 0 120px;
  max-width: 820px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease;
}

.prayer-composer {
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 40px;
  display: flex; flex-direction: column; gap: 12px;
}
.prayer-title {
  background: transparent;
  border: none; border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 8px 0;
  font-family: var(--serif);
  font-size: 18px;
  font-variation-settings: "opsz" 24, "wght" 500, "SOFT" 30;
}
.prayer-title:focus { box-shadow: none; border-bottom-color: var(--gold); }
.prayer-textarea {
  background: transparent;
  border: none;
  padding: 8px 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  min-height: 120px;
  resize: vertical;
}
.prayer-textarea:focus { box-shadow: none; }
.prayer-actions {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}

/* Public/Private toggle */
.visibility-toggle { cursor: pointer; user-select: none; }
.visibility-toggle input { display: none; }
.visibility-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--paper-deep);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.visibility-pill .dot {
  width: 8px; height: 8px;
  background: var(--ink-mute);
  border-radius: 50%;
  transition: background 0.2s ease;
}
.visibility-pill .lbl-public { display: none; }
.visibility-toggle input:checked + .visibility-pill {
  background: rgba(165,123,45,0.12);
  color: var(--gold);
}
.visibility-toggle input:checked + .visibility-pill .dot { background: var(--gold); }
.visibility-toggle input:checked + .visibility-pill .lbl-private { display: none; }
.visibility-toggle input:checked + .visibility-pill .lbl-public  { display: inline; }

/* Prayer items */
.prayer-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge-public  { background: rgba(165,123,45,0.12); color: var(--gold); }
.badge-private { background: var(--paper-deep);    color: var(--ink-mute); }

.prayer-title-display {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "wght" 500, "SOFT" 30;
  font-size: 1.3rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.prayer-text {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}
.prayer-author {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.prayer-author:hover { color: var(--ink); }

.empty-page {
  text-align: center;
  padding: 100px 0;
}
.empty-page h1 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "wght" 400, "SOFT" 30;
  font-size: 2.4rem;
  margin: 0 0 12px;
}

/* ---------- Loader ---------- */
.shimmer {
  display: inline-block;
  background: linear-gradient(90deg, var(--ink-mute) 0%, var(--ink) 50%, var(--ink-mute) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 1;
  padding: 40px 48px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.site-footer em {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14, "wght" 400;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .site-header {
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
  }
  .nav { justify-content: center; }
  .nav-divider { display: none; }
  main { padding: 0 20px; }
  .home-view { padding: 48px 0 80px; gap: 56px; }
  .bible-view { padding: 32px 0 80px; }
  .verse-text { font-size: clamp(1.4rem, 7vw, 2.2rem); }
  .eyebrow::before, .eyebrow::after { width: 18px; }
  .welcome { padding-top: 40px; }
  .search-input { font-size: 17px; padding: 18px 20px 18px 52px; }
  .search-icon { left: 18px; }
  .result-text, .passage-text { font-size: 18px; }
  .pagination { gap: 2px; margin-top: 40px; }
  .page-btn { min-width: 34px; height: 34px; padding: 0 8px; font-size: 12px; }
  .page-arrow span { display: none; }

  .auth-card { padding: 32px 24px; }
  .profile-head { gap: 16px; }
  .profile-avatar { width: 72px; height: 72px; }
  .profile-avatar-fallback { font-size: 32px; }
  .profile-name { font-size: 1.6rem; }
}

/* ============================================================
   V2 — Bible study + community
   ============================================================ */

/* ---------- Highlight color tokens ---------- */
:root {
  --hl-yellow:   #F2E29A;
  --hl-peach:    #F2C7A3;
  --hl-rose:     #ECBABF;
  --hl-mint:     #C2DEB6;
  --hl-lavender: #C8B9DC;

  --hl-yellow-soft:   #F8EFC0;
  --hl-peach-soft:    #F8DDC4;
  --hl-rose-soft:     #F4D6D9;
  --hl-mint-soft:     #D8EBCF;
  --hl-lavender-soft: #DDD2EC;
}

/* ---------- Mentions ---------- */
.mention {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.mention:hover { border-bottom-color: var(--gold); }

/* ---------- Generic link-mute ---------- */
.link-mute {
  color: var(--ink-mute);
  text-decoration: none;
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.link-mute:hover { color: var(--gold); }

/* ---------- bible.php passage chapter-link ---------- */
.passage-ref-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.passage-chapter-link {
  flex-shrink: 0;
}
.passage-block .passage-ref { margin-bottom: 0; }

.result-ref {
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.result-ref:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ============================================================
   Chapter view
   ============================================================ */
.chapter-view {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.chapter-head {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.chapter-eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.chapter-title {
  font-family: var(--serif);
  font-size: 3.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
}
.chapter-num {
  font-family: var(--sans);
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.chapter-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
}
.chapter-nav-top    { margin-top: 0; }
.chapter-nav-bottom { margin-bottom: 0; padding-top: 32px; border-top: 1px solid var(--rule); }
.chap-nav-spacer { flex: 1; }
.chap-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: .9rem;
  letter-spacing: .02em;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  min-width: 120px;
}
.chap-nav-btn:hover {
  background: var(--paper-soft);
  border-color: var(--gold);
  color: var(--gold);
}
.chap-nav-btn.align-end { justify-content: flex-end; }
.chap-nav-btn svg { width: 16px; height: 16px; }
.chap-nav-btn.disabled {
  visibility: hidden;
  min-width: 120px;
}

/* ---------- Chapter body & verses ---------- */
.chapter-body { font-family: var(--serif); }

.vrow {
  display: grid;
  grid-template-columns: 42px 1fr 32px;
  gap: 12px;
  padding: 10px 6px;
  margin: 2px -6px;
  border-radius: 4px;
  position: relative;
  transition: background .18s ease;
}
.vrow:hover { background: var(--paper-soft); }
.vrow:hover .vmenu-btn,
.vrow:focus-within .vmenu-btn { opacity: 1; }

.vrow.hl-yellow   { background: var(--hl-yellow-soft); }
.vrow.hl-peach    { background: var(--hl-peach-soft); }
.vrow.hl-rose     { background: var(--hl-rose-soft); }
.vrow.hl-mint     { background: var(--hl-mint-soft); }
.vrow.hl-lavender { background: var(--hl-lavender-soft); }

.vnum-anchor {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-mute);
  text-decoration: none;
  text-align: right;
  padding-top: 6px;
  user-select: none;
  letter-spacing: .02em;
}
.vnum-anchor:hover { color: var(--gold); }

.vbody { min-width: 0; }
.vtext {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

.vnote {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--paper);
  border-left: 2px solid var(--gold);
  border-radius: 2px;
}
.vnote-label {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.vnote-text {
  font-family: var(--sans);
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.vmenu-btn {
  background: transparent;
  border: 0;
  padding: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s ease, background .15s ease;
  color: var(--ink-mute);
  align-self: start;
  margin-top: 3px;
}
.vmenu-btn:hover { background: rgba(0,0,0,0.06); color: var(--ink); }
.vmenu-btn svg { width: 18px; height: 18px; display: block; }

/* always-visible on touch */
@media (hover: none) { .vmenu-btn { opacity: 1; } }

/* ---------- Verse popover menu ---------- */
.vmenu {
  position: absolute;
  z-index: 60;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(28,27,25,0.18);
  padding: 12px;
  min-width: 240px;
}
.vmenu-section { padding: 0; }
.vmenu-label {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.vmenu-colors {
  display: flex;
  gap: 6px;
  align-items: center;
}
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, border-color .15s ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: var(--ink); }
.swatch-yellow   { background: var(--hl-yellow); }
.swatch-peach    { background: var(--hl-peach); }
.swatch-rose     { background: var(--hl-rose); }
.swatch-mint     { background: var(--hl-mint); }
.swatch-lavender { background: var(--hl-lavender); }
.swatch-clear {
  background: transparent;
  border: 1.5px dashed var(--ink-mute);
  color: var(--ink-mute);
}
.swatch-clear svg { width: 13px; height: 13px; }
.swatch-clear:hover { border-color: var(--ink); color: var(--ink); }

.vmenu-divider {
  height: 1px;
  background: var(--rule);
  margin: 12px -12px;
}
.vmenu-actions { display: flex; flex-direction: column; gap: 2px; }
.vmenu-action {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 8px 6px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: .92rem;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background .15s ease;
}
.vmenu-action:hover { background: var(--paper-soft); }
.vmenu-action svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-mute); }
.vmenu-action .lbl-edit { display: none; }
.vmenu-action.is-on .lbl-add { display: none; }
.vmenu-action.is-on .lbl-edit { display: inline; }
.vmenu-action.is-on svg { color: var(--gold); }

/* ---------- Note modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(28,27,25,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--paper);
  border-radius: 10px;
  border: 1px solid var(--rule);
  padding: 28px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.modal-eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.modal-eyebrow span { color: var(--ink); font-weight: 500; }
.modal-verse {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.modal-actions-spacer { flex: 1; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* ============================================================
   Reading Plans
   ============================================================ */
.plans-view { max-width: 980px; margin: 0 auto; padding: 56px 24px 80px; }
.plan-view  { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }

.section-label {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 28px 0 14px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.plan-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.plan-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(28,27,25,0.06);
}
.plan-card-active {
  background: linear-gradient(180deg, var(--paper-soft), var(--paper));
  border-color: var(--gold);
}
.plan-eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.plan-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
}
.plan-desc {
  font-family: var(--sans);
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink-mute);
  margin: 0 0 10px;
}
.plan-cta {
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--gold);
  letter-spacing: .02em;
}

/* Progress bar */
.plan-progress { margin-top: 10px; }
.plan-progress-lg { margin: 22px 0 18px; }
.plan-bar {
  width: 100%;
  height: 6px;
  background: rgba(28,27,25,0.1);
  border-radius: 999px;
  overflow: hidden;
}
.plan-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
  transition: width .3s ease;
}
.plan-progress-text {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--ink-mute);
  letter-spacing: .02em;
}

/* Single plan view */
.plan-head { text-align: center; padding-bottom: 32px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.plan-title {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
}
.plan-tagline { color: var(--ink-mute); font-size: 1rem; margin: 0 auto 18px; max-width: 480px; }
.plan-head-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}
.plan-signin { margin: 18px 0 0; color: var(--ink-mute); }
.plan-start-form { margin: 20px 0 0; }

.plan-days { display: flex; flex-direction: column; gap: 2px; }
.plan-day {
  display: grid;
  grid-template-columns: 76px 1fr 44px;
  gap: 14px;
  align-items: center;
  padding: 14px 12px;
  border-radius: 6px;
  transition: background .15s ease;
}
.plan-day:nth-child(even) { background: rgba(28,27,25,0.02); }
.plan-day:hover { background: var(--paper-soft); }
.plan-day.done { opacity: 0.65; }
.plan-day-num {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.plan-day-label { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.plan-day-label .chap-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.plan-day-label .chap-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
.plan-day-label .sep { color: var(--ink-mute); }
.plan-day.done .plan-day-label .chap-link { color: var(--ink-mute); }

.day-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  padding: 0;
}
.day-check:hover { border-color: var(--gold); }
.day-check.done {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper);
}
.day-check svg { width: 16px; height: 16px; }

/* ============================================================
   Profile additions — stats, follow, plans, tabs
   ============================================================ */
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.profile-bio-empty { color: var(--ink-mute); font-style: italic; }
.profile-stats {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: .92rem;
  color: var(--ink-mute);
}
.profile-stats strong { color: var(--ink); font-weight: 600; }

.profile-plans {
  margin: 28px 0;
}
.profile-plans-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.profile-plan {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease;
}
.profile-plan:hover { border-color: var(--gold); }
.profile-plan-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.profile-plan-meta {
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--ink-mute);
  margin-top: 6px;
}

/* Profile tabs — extended to 4 */
.profile-tabs { flex-wrap: wrap; }

/* ---------- Follow button ---------- */
.btn-following {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-following .follow-label-follow { display: none; }
.btn-following .follow-label-following { display: inline; }
.btn-following .follow-label-unfollow { display: none; }
.btn-following:hover {
  border-color: #c04848;
  color: #c04848;
}
.btn-following:hover .follow-label-following { display: none; }
.btn-following:hover .follow-label-unfollow { display: inline; }
.btn-primary .follow-label-follow { display: inline; }
.btn-primary .follow-label-following,
.btn-primary .follow-label-unfollow { display: none; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   Comments
   ============================================================ */
.comments-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.comments-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.comments-list:empty { margin-bottom: 0; }
.comment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  transition: opacity .2s ease;
}
.comment-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-family: var(--sans);
  font-size: .78rem;
  gap: 2px;
}
.comment-author .nav-avatar { width: 32px; height: 32px; }
.comment-author span { color: var(--ink-mute); display: none; }
.comment-body {
  background: var(--paper-soft);
  padding: 10px 14px;
  border-radius: 12px 12px 12px 4px;
  min-width: 0;
}
.comment-text {
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink);
  word-wrap: break-word;
}
.comment-text .mention { color: var(--gold); }
.comment-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: .76rem;
  color: var(--ink-mute);
}

.comment-composer {
  display: flex;
  gap: 8px;
  align-items: center;
}
.comment-input {
  flex: 1;
  margin: 0;
  padding: 9px 14px;
  font-size: .92rem;
  border-radius: 999px;
}
.comments-signin { font-size: .85rem; color: var(--ink-mute); margin: 0; }

/* ============================================================
   Feed view
   ============================================================ */
.feed-view { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }

.feed-item-card {
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  margin-bottom: 16px;
  transition: border-color .18s ease;
}
.feed-item-card:hover { border-color: rgba(165,123,45,0.5); }
.feed-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}
.feed-author {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.feed-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feed-avatar-fallback {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.1rem;
}
.feed-author-name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink);
}
.feed-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--ink-mute);
}

/* Suggested users */
.suggest-block { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); }
.suggest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.suggest-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
  background: var(--paper);
}
.suggest-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.suggest-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.suggest-avatar-fallback {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.5rem;
}
.suggest-name {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.suggest-bio {
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--ink-mute);
  line-height: 1.4;
}

/* ============================================================
   Profile highlight / note cards
   ============================================================ */
.hl-card { position: relative; }
.hl-card.hl-yellow   { border-left: 4px solid var(--hl-yellow); }
.hl-card.hl-peach    { border-left: 4px solid var(--hl-peach); }
.hl-card.hl-rose     { border-left: 4px solid var(--hl-rose); }
.hl-card.hl-mint     { border-left: 4px solid var(--hl-mint); }
.hl-card.hl-lavender { border-left: 4px solid var(--hl-lavender); }

.hl-mark {
  background: rgba(255,255,255,0);
  padding: 0 4px;
  border-radius: 2px;
}
.hl-mark.hl-yellow   { background: var(--hl-yellow-soft); }
.hl-mark.hl-peach    { background: var(--hl-peach-soft); }
.hl-mark.hl-rose     { background: var(--hl-rose-soft); }
.hl-mark.hl-mint     { background: var(--hl-mint-soft); }
.hl-mark.hl-lavender { background: var(--hl-lavender-soft); }

.note-card {
  padding: 18px 22px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  margin-bottom: 12px;
}
.note-verse {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  margin: 10px 0 14px;
  font-size: 1.02rem;
}
.note-content {
  font-family: var(--sans);
  font-size: .98rem;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .chapter-view { padding: 32px 16px 60px; }
  .chapter-title { font-size: 2.6rem; }
  .vrow { grid-template-columns: 28px 1fr 28px; gap: 8px; }
  .vtext { font-size: 1.08rem; }
  .vmenu-btn { opacity: 1; width: 26px; height: 26px; }
  .vmenu-btn svg { width: 16px; height: 16px; }
  .chap-nav-btn { min-width: auto; padding: 8px 12px; font-size: .85rem; }
  .chap-nav-btn.disabled { display: none; }

  .plans-view, .plan-view, .feed-view { padding: 32px 16px 60px; }
  .plan-title { font-size: 2.2rem; }
  .plan-day { grid-template-columns: 64px 1fr 36px; gap: 10px; padding: 12px 8px; }
  .plan-day-label { font-size: .98rem; }
  .plan-head-actions { flex-direction: column; gap: 10px; }

  .profile-stats { gap: 14px; font-size: .85rem; }
  .profile-name-row { gap: 10px; }

  .comment-author span { display: none; }
  .comment-author .nav-avatar { width: 28px; height: 28px; }
  .comment-body { padding: 8px 12px; }
  .comment-text { font-size: .9rem; }

  .feed-item-card { padding: 16px 16px; }
  .feed-avatar { width: 32px; height: 32px; }

  .modal { padding: 16px; }
  .modal-card { padding: 22px 18px; }

  .passage-ref-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
