/* ============================================================
   Community — "Forkful" warm editorial theme layer
   Loaded LAST on community.html so it refines the existing
   structure without touching the layout classes or the JS.
   Inspired by template-forkful-recipe.bolt.host: warm cream bg,
   Fraunces serif with a terracotta accent, rounded image-forward
   cards with category chips, section eyebrows, generous spacing.
   Scoped under .community-body so nothing else is affected.
   ============================================================ */

.community-body {
  --fk-accent: var(--color-gold);            /* terracotta/rust */
  --fk-ink: var(--color-text);
  --fk-muted: var(--color-text-muted);
  --fk-card: var(--color-surface);
  --fk-line: var(--color-border);
  --fk-radius: 18px;
  --fk-radius-lg: 22px;
  background: var(--color-bg);
}

/* ── Channel bar → real underline tab bar (Instagram/YouTube feel) ── */
.community-body .channel-bar {
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  border-bottom: 1px solid var(--fk-line);
  padding: 0;
  gap: 0;
  justify-content: center;
  box-shadow: 0 1px 0 rgba(26,30,36,0.02);
}
.community-body .channel-tab {
  position: relative;
  border: none !important;
  background: transparent !important;
  border-radius: 0;
  padding: 0.95rem 1.15rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--fk-muted);
  min-height: 52px;
  box-shadow: none !important;
}
.community-body .channel-tab::after {
  content: '';
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0;
  height: 2.5px;
  border-radius: 3px 3px 0 0;
  background: var(--fk-accent);
  transform: scaleX(0);
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1);
}
.community-body .channel-tab:hover {
  color: var(--fk-ink);
  background: transparent !important;
}
.community-body .channel-tab.is-active {
  color: var(--fk-accent);
  background: transparent !important;
}
.community-body .channel-tab.is-active::after { transform: scaleX(1); }
.community-body .channel-tab__icon { font-size: 1.05rem; }
/* On desktop, dock the tab bar just under the header for an app-like feel */
@media (min-width: 1024px) {
  .community-body .channel-bar { justify-content: flex-start; padding-left: max(2rem, calc((100vw - 1240px) / 2 + 2rem)); }
}

/* ── Section header cards → editorial eyebrow + serif title ── */
.community-body .section-header-card {
  border-left: none;
  border-radius: var(--fk-radius-lg);
  padding: 1.4rem 1.6rem;
  background: var(--fk-card);
}
.community-body .section-header-card::before {
  content: 'The Community';
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fk-accent);
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.community-body .section-title {
  font-size: 1.6rem !important;
  letter-spacing: -0.02em !important;
}

/* ── Feed post cards → rounded, warm, image-forward ───────── */
.community-body .post-card {
  border-radius: var(--fk-radius-lg);
  border: 1px solid var(--fk-line);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2,0,0,1), box-shadow 0.25s;
}
.community-body .post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(26,30,36,0.10);
}
.community-body .post-card__media {
  margin: 0 -1.25rem 0.85rem;     /* full-bleed image inside the card */
  border-radius: 0;
}
.community-body .post-card__media img { max-height: 460px; }
.community-body .post-card__type {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.community-body .post-card__author { font-family: var(--font-serif); font-weight: 600; }
.community-body .post-card__avatar {
  background: linear-gradient(135deg, var(--color-olive), #3a5f4e);
  color: #fff; font-weight: 700;
}
/* Social-style action bar: bigger tap targets, accent on active like */
.community-body .post-card__action { font-weight: 600; }
.community-body .post-card__action.is-liked { color: var(--fk-accent); }
.community-body .post-card__action.is-liked svg { fill: var(--fk-accent); stroke: var(--fk-accent); }

/* ── Compose box → warm rounded ──────────────────────────── */
.community-body .compose-box {
  border-radius: var(--fk-radius-lg);
  border: 1px solid var(--fk-line);
}
.community-body .compose-box__post-btn { border-radius: 999px; }

/* ── Sidebar cards → warm, softer ────────────────────────── */
.community-body .sidebar-card,
.community-body .sidebar-cta {
  border-radius: var(--fk-radius);
  border: 1px solid var(--fk-line);
}
.community-body .sidebar-card__title { color: var(--fk-accent); }

/* ── Friends catalog cards → image-forward Forkful cards ──── */
.community-body .friends-topic-pill.is-active {
  background: var(--fk-accent);
  border-color: var(--fk-accent);
  box-shadow: 0 4px 16px rgba(217,119,54,0.25);
}
/* Listen (channel/podcast) cards */
.community-body .friends-section .listen-card {
  border-radius: var(--fk-radius);
  border: 1px solid var(--fk-line);
  background: var(--fk-card);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26,30,36,0.05);
  transition: transform 0.25s cubic-bezier(0.2,0,0,1), box-shadow 0.25s;
}
.community-body .friends-section .listen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(26,30,36,0.12);
}
.community-body .friends-section .listen-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  /* Default background is the branded gradient — the fallback tile. */
  background: linear-gradient(135deg, var(--color-olive), #3a5f4e);
  display: flex; align-items: center; justify-content: center;
}
.community-body .friends-section .listen-card__thumb img.listen-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
/* The initial-letter tile sits UNDER the image; if the image fails to load
   (JS adds .is-fallback / hides the img) it shows through cleanly. */
.community-body .friends-section .listen-card__initial {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  z-index: 0;
}
.community-body .friends-section .listen-card__thumb--initial {
  background: linear-gradient(135deg, var(--color-olive), #3a5f4e);
}
/* YouTube-style play affordance on hover */
.community-body .friends-section .listen-card__thumb::before {
  content: '▶';
  position: absolute; z-index: 2;
  top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.6);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none;
  padding-left: 3px;
}
.community-body .friends-section .listen-card:hover .listen-card__thumb::before {
  opacity: 1; transform: translate(-50%,-50%) scale(1);
}
/* A subtle duration-style corner chip reinforcing the media feel */
.community-body .friends-section .listen-card__thumb .listen-card__pill { display: none; }
.community-body .friends-section .listen-card__info { padding: 0.85rem 0.9rem 1rem; }
.community-body .friends-section .listen-card__name {
  font-family: var(--font-serif); font-size: 0.95rem; font-weight: 600; line-height: 1.25;
}
.community-body .friends-section .listen-card__pill {
  border-radius: 999px; font-size: 0.6rem; font-weight: 800; padding: 0.12rem 0.5rem;
}
.community-body .friends-section .listen-card__pill--youtube { background: rgba(255,0,0,0.1); color: #c4302b; }
.community-body .friends-section .listen-card__pill--spotify { background: rgba(29,185,84,0.12); color: #1a9e4b; }
/* wider cards on desktop so images breathe */
@media (min-width: 1024px) {
  .community-body .friends-section .listen-card { min-width: 210px; max-width: 240px; }
}
/* Partner cards */
.community-body .friends-section .store-card {
  border-radius: var(--fk-radius-lg);
  border: 1px solid var(--fk-line);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26,30,36,0.05);
  transition: transform 0.25s cubic-bezier(0.2,0,0,1), box-shadow 0.25s;
}
.community-body .friends-section .store-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(26,30,36,0.12);
}
.community-body .friends-section .store-card__image {
  position: relative;
  aspect-ratio: 16 / 10; height: auto;
  background: linear-gradient(135deg, var(--color-olive), #3a5f4e);
  display: flex; align-items: center; justify-content: center;
}
.community-body .friends-section .store-card__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.community-body .friends-section .store-card__image-fallback { font-size: 2.4rem; z-index: 0; }
.community-body .friends-section .store-card__title { font-family: var(--font-serif); font-weight: 600; }
.community-body .friends-section .listen-shelf__title { font-size: 1.15rem; }

/* ── Discovery sections (Forkful hero + category tiles) ──── */
.fk-hero {
  background: linear-gradient(135deg, rgba(217,119,54,0.06), rgba(44,74,62,0.05));
  border: 1px solid var(--fk-line);
  border-radius: var(--fk-radius-lg);
  padding: 1.75rem 1.6rem;
  margin-bottom: 1.25rem;
}
.fk-hero__eyebrow {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fk-accent); font-weight: 700;
}
.fk-hero__title {
  font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600;
  line-height: 1.1; letter-spacing: -0.02em; color: var(--fk-ink); margin: 0.4rem 0 0.5rem;
}
.fk-hero__title em { color: var(--fk-accent); font-style: italic; }
.fk-hero__sub { font-size: 0.9rem; color: var(--fk-muted); line-height: 1.55; margin: 0 0 1rem; max-width: 46ch; }
.fk-hero__stats { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.fk-hero__stat-num { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--fk-ink); }
.fk-hero__stat-label { font-size: 0.68rem; color: var(--fk-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.fk-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 700px) { .fk-tiles { grid-template-columns: repeat(4, 1fr); } }
.fk-tile {
  position: relative; border: none; cursor: pointer; text-align: left;
  border-radius: var(--fk-radius); overflow: hidden; aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--color-olive), #3a5f4e);
  color: #fff; padding: 0; font-family: inherit;
  transition: transform 0.25s cubic-bezier(0.2,0,0,1), box-shadow 0.25s;
}
.fk-tile:nth-child(2){ background: linear-gradient(135deg, var(--fk-accent), #b8551f); }
.fk-tile:nth-child(3){ background: linear-gradient(135deg, #6b7a52, #4a5638); }
.fk-tile:nth-child(4){ background: linear-gradient(135deg, #8a6d3b, #6b5228); }
.fk-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(26,30,36,0.16); }
/* Real photo layer (drop JPGs into assets/img/community/). Falls back to the
   gradient above if the image is missing (onerror hides the <img>). */
.fk-tile__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; transition: transform 0.4s cubic-bezier(0.2,0,0,1);
}
.fk-tile:hover .fk-tile__img { transform: scale(1.06); }
.fk-tile__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(20,24,20,0.78) 0%, rgba(20,24,20,0.30) 45%, rgba(20,24,20,0.10) 100%);
}
.fk-tile__icon, .fk-tile__label, .fk-tile__meta { z-index: 2; }
.fk-tile__label { text-shadow: 0 1px 4px rgba(0,0,0,0.35); }
.fk-tile__label {
  position: absolute; left: 0.85rem; bottom: 0.75rem; right: 0.85rem;
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; line-height: 1.15;
}
.fk-tile__icon { position: absolute; top: 0.7rem; left: 0.85rem; font-size: 1.5rem; }
.fk-tile__meta { position: absolute; left: 0.85rem; bottom: 0.4rem; font-size: 0.68rem; opacity: 0.85; }
.fk-tile__label { bottom: 1.5rem; }

.fk-eyebrow-row { display: flex; align-items: baseline; justify-content: space-between; margin: 0.5rem 0 0.75rem; }
.fk-eyebrow { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fk-accent); font-weight: 700; }
.fk-eyebrow-row h2 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; margin: 0.15rem 0 0; letter-spacing: -0.01em; }

/* Dark mode friendliness for discovery + fallbacks */
[data-theme="dark"] .fk-hero { background: linear-gradient(135deg, rgba(232,152,80,0.08), rgba(74,138,114,0.06)); }
[data-theme="dark"] .community-body .friends-section .listen-card__thumb,
[data-theme="dark"] .community-body .friends-section .store-card__image { background: linear-gradient(135deg, #2a2f37, #22272e); }

/* ── Today's Reading band (Home hero) ────────────────────── */
.reading-band {
  border: 1px solid var(--fk-line);
  border-radius: var(--fk-radius-lg);
  background: linear-gradient(135deg, rgba(44,74,62,0.05), rgba(217,119,54,0.04));
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.reading-band__head {
  width: 100%; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.95rem 1.1rem; background: none; border: none; cursor: pointer;
  font-family: inherit; text-align: left;
}
.reading-band__eyebrow {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fk-accent); font-weight: 700; flex-shrink: 0;
}
.reading-band__today {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600;
  color: var(--fk-ink); flex: 1; min-width: 0;
}
.reading-band__chev {
  color: var(--fk-muted); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); flex-shrink: 0;
}
.reading-band.is-open .reading-band__chev { transform: rotate(180deg); }
.reading-band__body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.reading-band__inner { padding: 0 1.1rem 1.1rem; }
.reading-band__foot {
  text-align: center; margin: 1rem 0 0; font-size: 0.8rem; color: var(--fk-muted);
}
.reading-band__foot a, .reading-band__jump {
  color: var(--fk-accent); font-weight: 600; text-decoration: none;
  background: none; border: none; cursor: pointer; font-family: inherit; font-size: inherit;
}
.reading-band__jump:hover, .reading-band__foot a:hover { text-decoration: underline; }

/* ── Prayer & Thanksgiving — Telegram-style dashboard ────── */
.community-body #prayer-filter {
  position: relative;
  display: inline-flex;
  background: var(--color-bg-subtle);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 1.25rem;
}
.community-body .prayer-filter__slider {
  position: absolute; top: 3px; left: 0;
  height: calc(100% - 6px);
  background: var(--color-olive);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(44,74,62,0.3);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), width 0.32s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}
.community-body .prayer-filter__btn {
  position: relative; z-index: 1;
  background: transparent !important;
  transition: color 0.2s;
}
.community-body .prayer-filter__btn.is-active { background: transparent !important; color: #fff !important; }
/* Telegram-style chat feed container */
.community-body #prayer-posts-feed {
  background: var(--fk-card);
  border: 1px solid var(--fk-line);
  border-radius: var(--fk-radius-lg);
  padding: 1rem;
  min-height: 280px;
  max-height: 640px;
  overflow-y: auto;
  box-shadow: var(--sp-shadow, 0 1px 3px rgba(26,30,36,0.05));
  scrollbar-width: thin;
}
/* Prayer/thanksgiving posts read as chat bubbles, tighter than feed cards */
.community-body #prayer-posts-feed .post-card {
  border: none;
  border-radius: 14px;
  background: var(--color-bg-subtle);
  margin-bottom: 0.6rem;
  box-shadow: none;
}
.community-body #prayer-posts-feed .post-card:hover { transform: none; box-shadow: none; }
.community-body #prayer-posts-feed .post-card__media { margin-left: 0; margin-right: 0; }

/* ── Composer textarea fix (was glitchy: resize handle + clipped) ── */
.community-body .compose-box__input,
.community-body #prayer-compose-input {
  box-sizing: border-box !important;
  width: 100% !important;
  resize: none !important;               /* kill the drag handle */
  min-height: 56px;
  line-height: 1.45;
  overflow: hidden;                       /* no inner scrollbar arrows */
  border-radius: 14px;
}
.community-body .compose-box__header { align-items: stretch; }
.community-body .compose-box { border-radius: var(--fk-radius-lg); }

/* ── Rich composer: photo attach, preview, @mention ──────── */
.community-body .compose-box__photo-btn {
  background: var(--color-bg-subtle); border: 1px solid var(--fk-line);
  border-radius: 999px; padding: 0.45rem 0.85rem; font-size: 0.78rem; font-weight: 600;
  color: var(--fk-ink2, var(--color-text)); cursor: pointer; font-family: var(--font-sans);
}
.community-body .compose-box__photo-btn:hover { border-color: var(--fk-accent); color: var(--fk-accent); }
.community-body .compose-attach[hidden], .community-body .mention-menu[hidden] { display: none !important; }
.community-body .compose-attach {
  position: relative; margin: 0.6rem 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--fk-line); max-width: 280px;
}
.community-body .compose-attach img { width: 100%; display: block; max-height: 220px; object-fit: cover; }
.community-body .compose-attach__remove {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.6); color: #fff; font-size: 1rem; cursor: pointer; line-height: 1;
}
/* @mention autocomplete dropdown */
.community-body .mention-menu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40; margin-top: 4px;
  background: var(--fk-card); border: 1px solid var(--fk-line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.14); overflow: hidden; max-height: 220px; overflow-y: auto;
}
.community-body .mention-menu__item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 0.55rem 0.85rem; font-size: 0.84rem; color: var(--fk-ink); cursor: pointer; font-family: var(--font-sans);
}
.community-body .mention-menu__item:hover { background: var(--fk-accent-soft, rgba(217,119,54,0.1)); color: var(--fk-accent); }
/* @mention token rendered in a post/comment */
.community-body .mention-tag {
  color: var(--fk-accent); font-weight: 700; background: rgba(217,119,54,0.08);
  padding: 0 0.2rem; border-radius: 4px;
}

/* ── Messages: floating launcher + slide-in drawer ───────── */
.msg-fab {
  position: fixed; right: 1.25rem; bottom: 1.5rem; z-index: 300;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--fk-accent), #b8551f); color: #fff;
  font-size: 1.5rem; box-shadow: 0 8px 24px rgba(217,119,54,0.4);
  display: flex; align-items: center; justify-content: center; transition: transform 0.2s;
}
.msg-fab:hover { transform: translateY(-2px) scale(1.05); }
.msg-fab[hidden] { display: none !important; }
@media (max-width: 1023px) { .msg-fab { bottom: 5rem; } }  /* clear the bottom nav */
.msg-fab__dot { position: absolute; top: 10px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: #e74c3c; border: 2px solid #fff; }

.msg-drawer { position: fixed; inset: 0; z-index: 400; background: rgba(15,18,24,0.35); display: flex; justify-content: flex-end; }
.msg-drawer[hidden] { display: none !important; }
.msg-drawer__panel {
  width: 100%; max-width: 400px; height: 100%; background: var(--fk-card);
  display: flex; flex-direction: column; box-shadow: -8px 0 40px rgba(15,23,42,0.25);
  animation: msgSlide 0.25s cubic-bezier(0.2,0,0,1);
}
@keyframes msgSlide { from { transform: translateX(100%); } to { transform: translateX(0); } }
.msg-drawer__head { display: flex; align-items: center; gap: 0.6rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--fk-line); }
.msg-drawer__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; flex: 1; }
.msg-drawer__back, .msg-drawer__close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--fk-muted); line-height: 1; }
.msg-drawer__back[hidden] { display: none; }
.msg-drawer__body { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
#msg-contacts { overflow-y: auto; padding: 0.5rem; }
.msg-empty { color: var(--fk-muted); font-size: 0.85rem; text-align: center; padding: 2rem 1rem; }
.msg-contact { display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left; background: none; border: none; padding: 0.7rem; border-radius: 12px; cursor: pointer; font-family: var(--font-sans); }
.msg-contact:hover { background: var(--color-bg-subtle); }
.msg-contact__av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--color-olive), #3a5f4e); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
.msg-contact__info { display: flex; flex-direction: column; min-width: 0; }
.msg-contact__name { font-weight: 700; font-size: 0.88rem; color: var(--fk-ink); }
.msg-contact__last { font-size: 0.76rem; color: var(--fk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#msg-thread { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.msg-thread__scroll { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.msg-bubble { max-width: 78%; align-self: flex-start; background: var(--color-bg-subtle); padding: 0.55rem 0.8rem; border-radius: 14px; font-size: 0.86rem; color: var(--fk-ink); position: relative; }
.msg-bubble--mine { align-self: flex-end; background: var(--color-olive); color: #fff; }
.msg-bubble__time { display: block; font-size: 0.62rem; opacity: 0.65; margin-top: 0.2rem; }
.msg-thread__compose { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--fk-line); }
.msg-thread__compose input { flex: 1; border: 1px solid var(--fk-line); border-radius: 999px; padding: 0.6rem 0.9rem; font-size: 0.88rem; font-family: var(--font-sans); background: var(--color-bg-subtle); color: var(--fk-ink); }
.msg-thread__compose input:focus { outline: none; border-color: var(--fk-accent); }
.msg-thread__compose button { background: var(--fk-accent); color: #fff; border: none; border-radius: 999px; padding: 0 1.1rem; font-weight: 700; font-size: 0.82rem; cursor: pointer; }

/* ── Partner social chips (Instagram etc.) ───────────────── */
.community-body .social-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.community-body .social-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 700; text-decoration: none;
  padding: 0.3rem 0.65rem; border-radius: 999px;
  border: 1px solid var(--fk-line); color: var(--fk-ink2, var(--color-text));
  transition: transform 0.15s, border-color 0.15s;
}
.community-body .social-chip:hover { transform: translateY(-1px); }
.community-body .social-chip--instagram { background: linear-gradient(135deg, rgba(228,64,95,0.12), rgba(193,53,132,0.12)); border-color: rgba(228,64,95,0.3); color: #c13584; }
.community-body .social-chip--spotify { background: rgba(29,185,84,0.12); border-color: rgba(29,185,84,0.3); color: #1a9e4b; }
.community-body .social-chip--youtube { background: rgba(255,0,0,0.1); border-color: rgba(255,0,0,0.25); color: #c4302b; }
.community-body .social-chip__ico { font-size: 0.85rem; }

/* ── Stories rail (Instagram-style) ──────────────────────── */
.stories-rail { display: flex; gap: 0.9rem; overflow-x: auto; padding: 0.25rem 0.1rem 1rem; margin-bottom: 0.5rem; scrollbar-width: none; }
.stories-rail::-webkit-scrollbar { display: none; }
.story-bubble { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; background: none; border: none; cursor: pointer; width: 68px; position: relative; font-family: var(--font-sans); }
.story-bubble__ring { width: 62px; height: 62px; border-radius: 50%; padding: 2.5px; display: flex; align-items: center; justify-content: center; background: var(--fk-line); }
.story-bubble__ring--live { background: linear-gradient(135deg, var(--fk-accent), #b8551f, var(--color-olive)); }
/* Seen (already viewed) — muted gray ring, like Instagram. */
.story-bubble__ring--seen { background: var(--color-border, #d9d4cd); }
.story-bubble__img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--fk-card); }
/* Multi-story count badge on the bubble (e.g. "3"). */
.story-bubble__ring { position: relative; }
.story-bubble__count { position: absolute; bottom: -1px; right: -1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--fk-accent, #D97736); color: #fff; font-size: 0.6rem; font-weight: 800; line-height: 16px; text-align: center; border: 2px solid var(--fk-card, #fff); box-sizing: content-box; }
.story-bubble__av { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, var(--color-olive), #3a5f4e); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; border: 2px solid var(--fk-card); }
.story-bubble__plus { position: absolute; top: 40px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--fk-accent); color: #fff; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; border: 2px solid var(--fk-card); }
.story-bubble__label { font-size: 0.68rem; color: var(--fk-muted); max-width: 66px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.story-viewer { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; }
.story-viewer[hidden] { display: none !important; }
.story-viewer__inner { position: relative; width: 100%; max-width: 420px; height: 100%; max-height: 90vh; display: flex; flex-direction: column; }
/* Instagram-style segmented progress bar (one segment per story). */
.story-viewer__bar { margin: 0.75rem 1rem 0; }
.story-viewer__progress { display: flex; gap: 4px; }
.story-seg { flex: 1; height: 3px; background: rgba(255,255,255,0.3); border-radius: 3px; overflow: hidden; }
.story-seg__fill { display: block; height: 100%; background: #fff; width: 0; }
.story-seg.is-done .story-seg__fill { width: 100%; }
.story-seg.is-active .story-seg__fill { width: 0; }
@keyframes storyFill { from { width: 0; } to { width: 100%; } }
.story-viewer__head { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; color: #fff; }
.story-viewer__av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--color-olive), #3a5f4e); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.72rem; }
.story-viewer__author { font-size: 0.85rem; font-weight: 600; flex: 1; }
.story-viewer__close { background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.story-viewer__img { flex: 1 1 auto; width: 100%; height: auto; max-height: 78vh; object-fit: contain; min-height: 200px; background: #000; display: block; }
.story-viewer__caption { color: #fff; text-align: center; padding: 0.75rem 1.25rem; font-size: 0.9rem; }
.story-viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.story-viewer__nav--prev { left: 0.5rem; }
.story-viewer__nav--next { right: 0.5rem; }

/* ── Instagram-style feed post polish ────────────────────── */
.community-body #posts-feed .post-card,
.community-body #scripture-posts-feed .post-card {
  padding: 0; overflow: hidden;
}
.community-body #posts-feed .post-card__header,
.community-body #scripture-posts-feed .post-card__header {
  padding: 0.85rem 1rem; margin: 0; align-items: center; gap: 0.65rem;
}
.community-body #posts-feed .post-card__avatar,
.community-body #scripture-posts-feed .post-card__avatar {
  width: 38px; height: 38px; font-size: 0.8rem;
}
.community-body #posts-feed .post-card__author,
.community-body #scripture-posts-feed .post-card__author { font-size: 0.9rem; }
.community-body #posts-feed .post-card__time,
.community-body #scripture-posts-feed .post-card__time { font-size: 0.72rem; color: var(--fk-muted); }
/* full-bleed media between header and body, like IG */
.community-body #posts-feed .post-card__media,
.community-body #scripture-posts-feed .post-card__media { margin: 0 0 0; border-radius: 0; }
.community-body #posts-feed .post-card__body,
.community-body #scripture-posts-feed .post-card__body { padding: 0.5rem 1rem 0; font-size: 0.92rem; line-height: 1.5; }
.community-body #posts-feed .post-card__stats,
.community-body #scripture-posts-feed .post-card__stats { padding: 0.4rem 1rem 0; font-size: 0.76rem; color: var(--fk-muted); }
/* action bar: evenly spread, bigger tap targets */
.community-body #posts-feed .post-card__actions,
.community-body #scripture-posts-feed .post-card__actions {
  display: flex; gap: 0.25rem; padding: 0.35rem 0.6rem; margin-top: 0.4rem;
  border-top: 1px solid var(--fk-line);
}
.community-body #posts-feed .post-card__action,
.community-body #scripture-posts-feed .post-card__action {
  flex: 1; justify-content: center; gap: 0.4rem; padding: 0.6rem 0.4rem; border-radius: 10px;
  min-height: 44px; font-size: 0.8rem;
}
.community-body #posts-feed .post-card__action:hover,
.community-body #scripture-posts-feed .post-card__action:hover { background: var(--color-bg-subtle); }
.community-body #posts-feed .post-card__action svg,
.community-body #scripture-posts-feed .post-card__action svg { width: 20px; height: 20px; }
.community-body #posts-feed .post-card__comments,
.community-body #scripture-posts-feed .post-card__comments { padding: 0 1rem 0.85rem; margin-top: 0; }
/* menu button sits neatly in the header */
.community-body #posts-feed .post-card__menu,
.community-body #scripture-posts-feed .post-card__menu { align-self: flex-start; }

/* ── Scripture study reader ──────────────────────────────── */
.reader-card { background: var(--fk-card); border: 1px solid var(--fk-line); border-radius: var(--fk-radius-lg); padding: 1.25rem 1.4rem; margin-bottom: 1rem; box-shadow: var(--sp-shadow, 0 1px 3px rgba(26,30,36,0.05)); }
.reader-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.reader-card__eyebrow { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fk-accent); font-weight: 700; }
.reader-card__ref { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; margin: 0.15rem 0 0; }
.reader-card__yv { font-size: 0.78rem; font-weight: 700; color: var(--fk-accent); text-decoration: none; white-space: nowrap; }
.reader-card__yv:hover { text-decoration: underline; }
.reader-card__verses { font-size: 1.02rem; line-height: 1.85; color: var(--fk-ink); }
.reader-loading { color: var(--fk-muted); font-size: 0.9rem; }
.reader-card__trans { font-size: 0.72rem; color: var(--fk-muted); margin: 1rem 0 0; font-style: italic; }
.verse { cursor: pointer; border-radius: 4px; padding: 0 1px; transition: background 0.15s; }
.verse:hover { background: rgba(217,119,54,0.06); }
.verse__num { font-size: 0.66rem; font-weight: 700; color: var(--fk-muted); margin-right: 2px; vertical-align: super; }
.verse--selected { outline: 2px solid var(--fk-accent); outline-offset: 1px; }
.verse--hl-yellow { background: rgba(255,214,0,0.35); }
.verse--hl-green { background: rgba(52,199,89,0.28); }
.verse--hl-blue { background: rgba(0,122,255,0.22); }
.verse--hl-pink { background: rgba(255,45,146,0.22); }
[data-theme="dark"] .verse--hl-yellow { background: rgba(255,214,0,0.25); }
.verse__note-dot { font-size: 0.7rem; margin-left: 2px; }

/* Verse action bar */
.verse-actions { position: sticky; bottom: 0.5rem; z-index: 30; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; background: var(--fk-card); border: 1px solid var(--fk-line); border-radius: 999px; padding: 0.5rem 0.9rem; box-shadow: 0 6px 20px rgba(15,23,42,0.14); margin-bottom: 1rem; }
.verse-actions[hidden] { display: none !important; }
.verse-actions__ref { font-weight: 700; font-size: 0.82rem; color: var(--fk-ink); }
.verse-actions__swatches { display: flex; gap: 0.35rem; }
.hl-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--fk-card); box-shadow: 0 0 0 1px var(--fk-line); cursor: pointer; padding: 0; font-size: 0.8rem; }
.hl-swatch--yellow { background: #ffd600; }
.hl-swatch--green { background: #34c759; }
.hl-swatch--blue { background: #007aff; }
.hl-swatch--pink { background: #ff2d92; }
.hl-swatch--clear { background: var(--color-bg-subtle); color: var(--fk-muted); }
.verse-actions__note { margin-left: auto; background: var(--fk-accent); color: #fff; border: none; border-radius: 999px; padding: 0.45rem 0.9rem; font-size: 0.78rem; font-weight: 700; cursor: pointer; }

/* Note modal */
.note-modal { position: fixed; inset: 0; z-index: 500; background: rgba(15,18,24,0.45); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.note-modal[hidden] { display: none !important; }
.note-modal__sheet { background: var(--fk-card); border-radius: 16px; width: 100%; max-width: 440px; padding: 1.25rem; box-shadow: 0 20px 60px rgba(15,23,42,0.3); }
.note-modal__title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; margin: 0 0 0.35rem; }
.note-modal__verse { font-size: 0.85rem; color: var(--fk-muted); font-style: italic; margin: 0 0 0.75rem; max-height: 4.5em; overflow: auto; }
.note-modal__sheet textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--fk-line); border-radius: 10px; padding: 0.7rem; font-family: var(--font-sans); font-size: 0.9rem; resize: vertical; background: var(--color-bg-subtle); color: var(--fk-ink); }
.note-modal__actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.85rem; }
.note-modal__btn { border: 1px solid var(--fk-line); background: var(--fk-card); border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.82rem; font-weight: 700; cursor: pointer; color: var(--fk-ink); }
.note-modal__btn--save { background: var(--fk-accent); color: #fff; border-color: var(--fk-accent); }
.scripture-disc__head { margin: 1.25rem 0 0.75rem; }
.scripture-disc__head h3 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; margin: 0; }

/* ── Reader book/chapter picker ──────────────────────────── */
.reader-nav { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.reader-nav__btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--fk-line); background: var(--fk-card); color: var(--fk-ink); font-size: 1.2rem; line-height: 1; cursor: pointer; flex-shrink: 0; }
.reader-nav__btn:hover { border-color: var(--fk-accent); color: var(--fk-accent); }
.reader-nav__book, .reader-nav__ch { border: 1px solid var(--fk-line); border-radius: 10px; padding: 0.45rem 0.6rem; font-family: var(--font-sans); font-size: 0.82rem; background: var(--color-bg-subtle); color: var(--fk-ink); cursor: pointer; }
.reader-nav__book { flex: 1; min-width: 120px; }
.reader-nav__book:focus, .reader-nav__ch:focus { outline: none; border-color: var(--fk-accent); }
.reader-nav__today { margin-left: auto; background: var(--fk-accent-soft, rgba(217,119,54,0.1)); color: var(--fk-accent); border: none; border-radius: 999px; padding: 0.45rem 0.8rem; font-size: 0.76rem; font-weight: 700; cursor: pointer; white-space: nowrap; }

/* ── Compose passage picker + scripture chip ─────────────── */
.community-body .compose-ref { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin: 0 0 0.6rem; padding: 0.5rem 0.6rem; background: var(--fk-accent-soft, rgba(217,119,54,0.08)); border-radius: 10px; }
.community-body .compose-ref[hidden] { display: none !important; }
.community-body .compose-ref__label { font-size: 0.72rem; font-weight: 700; color: var(--fk-accent); }
.community-body .compose-ref__book, .community-body .compose-ref__ch, .community-body .compose-ref__v { border: 1px solid var(--fk-line); border-radius: 8px; padding: 0.35rem 0.5rem; font-size: 0.78rem; font-family: var(--font-sans); background: var(--fk-card); color: var(--fk-ink); }
.community-body .compose-ref__v { width: 78px; }
.community-body .scripture-chip { display: inline-block; background: var(--fk-accent-soft, rgba(217,119,54,0.1)); color: var(--fk-accent); font-weight: 700; font-size: 0.74rem; padding: 0.1rem 0.5rem; border-radius: 999px; margin-right: 0.35rem; border: none; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.community-body .scripture-chip:hover { background: var(--fk-accent, #c4622d); color: #fff; }
.community-body .compose-ref__mine { border: 1px solid var(--fk-line); border-radius: 8px; padding: 0.35rem 0.5rem; font-size: 0.78rem; font-family: var(--font-sans); background: var(--fk-card); color: var(--fk-ink); max-width: 200px; }

/* ── Channel bar: mobile polish + snappy animation + shimmer ── */
.community-body .channel-bar { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.community-body .channel-tab { scroll-snap-align: center; transition: color 0.2s ease; -webkit-tap-highlight-color: transparent; }
/* animated underline already exists; add a soft shimmer sweep on the active tab */
.community-body .channel-tab.is-active::after {
  background: linear-gradient(90deg, var(--fk-accent), #f0b070, var(--fk-accent));
  background-size: 200% 100%;
  animation: chanShimmer 2.4s linear infinite;
}
@keyframes chanShimmer { from { background-position: 0% 0; } to { background-position: 200% 0; } }
.community-body .channel-tab.is-active .channel-tab__icon { animation: chanPop 0.3s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes chanPop { 0% { transform: scale(0.8); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* Smooth channel section entrance */
.community-body .channel-section.is-active { animation: sectionIn 0.32s cubic-bezier(0.2,0,0,1); }
@keyframes sectionIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1023px) {
  .community-body .channel-bar { padding: 0.35rem 0.5rem; gap: 0.15rem; justify-content: flex-start; }
  .community-body .channel-tab { padding: 0.8rem 0.9rem; font-size: 0.8rem; min-height: 48px; }
  .community-body .channel-tab__badge { top: 2px; right: 2px; }
  /* fade edges to hint horizontal scroll */
  .community-body .channel-bar { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .community-body .channel-tab.is-active::after { animation: none; }
  .community-body .channel-section.is-active { animation: none; }
}


/* ── Community group chats / forum topics ─────────────────────────────── */
.groups-block { background: var(--fk-card, #fff); border: 1px solid var(--fk-border, #e6e0d8); border-radius: var(--fk-radius, 14px); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.groups-block__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.groups-block__eyebrow { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fk-muted, #8a8178); font-weight: 700; }
.groups-block__title { font-family: var(--font-serif); font-size: 1.15rem; margin: 0.1rem 0 0; }
.groups-block__hint { font-size: 0.8rem; color: var(--fk-muted, #8a8178); margin: 0.5rem 0 0.8rem; line-height: 1.45; }
.groups-block__new { border: none; background: linear-gradient(135deg, var(--fk-accent, #c4622d), #b8551f); color: #fff; font-weight: 600; font-size: 0.82rem; padding: 0.5rem 0.85rem; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: transform 0.15s, box-shadow 0.15s; }
.groups-block__new:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(196,98,45,0.3); }
.groups-list { display: flex; flex-direction: column; gap: 0.5rem; }
.groups-list__loading, .groups-list__empty { font-size: 0.82rem; color: var(--fk-muted, #8a8178); text-align: center; padding: 1rem; }
.group-card { display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left; border: 1px solid var(--fk-border, #e6e0d8); background: var(--fk-bg-subtle, #faf7f2); border-radius: 12px; padding: 0.7rem 0.85rem; cursor: pointer; font-family: inherit; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.group-card:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(26,30,36,0.08); border-color: var(--fk-accent, #c4622d); }
.group-card__icon { font-size: 1.4rem; flex-shrink: 0; }
.group-card__info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.group-card__name { font-weight: 600; font-size: 0.95rem; color: var(--fk-text, #2b2823); }
.group-card__desc { font-size: 0.78rem; color: var(--fk-muted, #8a8178); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-card__meta { font-size: 0.7rem; color: var(--fk-muted, #8a8178); }
.group-card__chev { font-size: 1.3rem; color: var(--fk-muted, #b7af9f); flex-shrink: 0; }

.group-room__bar { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--fk-border, #e6e0d8); }
.group-room__back { border: none; background: none; color: var(--fk-accent, #c4622d); font-weight: 600; font-size: 0.85rem; cursor: pointer; padding: 0.3rem 0.2rem; white-space: nowrap; }
.group-room__titles { flex: 1; min-width: 0; }
.group-room__name { font-family: var(--font-serif); font-size: 1.1rem; margin: 0; }
.group-room__desc { display: block; font-size: 0.76rem; color: var(--fk-muted, #8a8178); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-room__menu { border: none; background: none; font-size: 1.2rem; color: var(--fk-muted, #8a8178); cursor: pointer; padding: 0.2rem 0.4rem; border-radius: 8px; }
.group-room__menu:hover { background: var(--fk-bg-subtle, #f0ece5); }
.group-room__feed { display: flex; flex-direction: column; gap: 0.75rem; max-height: 60vh; overflow-y: auto; scroll-behavior: smooth; padding-right: 0.2rem; }


/* ── Home hero: Today's Reading leads, soft activity summary below ────── */
.fk-hero--reading { display: flex; flex-direction: column; }
/* Big tappable reading reference that goes to Discuss Scripture. */
.hero-reading__ref-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem;
  background: none; border: none; padding: 0; margin: 0.3rem 0 0.15rem; cursor: pointer; text-align: left; width: 100%;
}
.hero-reading__ref {
  font-family: var(--font-serif); font-size: 2.1rem; font-weight: 600; line-height: 1.08;
  letter-spacing: -0.02em; color: var(--fk-ink);
}
.hero-reading__go {
  font-size: 0.82rem; font-weight: 600; color: var(--fk-accent);
  transition: transform 0.18s ease; will-change: transform;
}
.hero-reading__ref-btn:hover .hero-reading__ref { color: var(--fk-accent); }
.hero-reading__ref-btn:hover .hero-reading__go { transform: translateX(3px); }
/* Action chips under the hero reading (clear, separated from the sentence). */
.hero-reading__links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.15rem; }
.hero-chip {
  display: inline-flex; align-items: center; font-size: 0.78rem; font-weight: 600;
  padding: 0.42rem 0.85rem; border-radius: 999px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--fk-line); background: var(--fk-card, #fff); color: var(--fk-ink);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.hero-chip:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(26,30,36,0.1); }
.hero-chip--primary { background: linear-gradient(135deg, var(--fk-accent), #b8551f); color: #fff; border-color: transparent; }

/* Soft activity summary — quiet stacked rows, hairline dividers, no hard cards. */
.hero-dash {
  margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--fk-line);
  display: grid; grid-template-columns: 1fr; gap: 1.1rem 2rem;
}
@media (min-width: 640px) { .hero-dash { grid-template-columns: repeat(2, 1fr); } }
.hd-sec { min-width: 0; }
.hd-sec__label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fk-muted); font-weight: 700; margin-bottom: 0.5rem;
  padding-bottom: 0.35rem; border-bottom: 1px solid var(--fk-line);
}
.hd-sec__more { text-transform: none; letter-spacing: 0; flex-shrink: 0; }
.hd-sec__rows { display: flex; flex-direction: column; gap: 0.55rem; }
/* Rows stack the reference/name over the detail so nothing gets cramped. */
.hd-row {
  display: flex; flex-direction: column; gap: 0.1rem; min-width: 0;
  font-size: 0.8rem; line-height: 1.4; color: var(--fk-ink);
  background: none; border: none; padding: 0; text-align: left; width: 100%; font-family: inherit;
}
.hd-row--btn { cursor: pointer; }
.hd-row--btn:hover .hd-row__key { text-decoration: underline; }
.hd-row__key { font-weight: 700; color: var(--fk-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-row--btn .hd-row__key { color: var(--fk-accent); }
.hd-row__val { color: var(--fk-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hd-link-btn { background: none; border: none; padding: 0; font: inherit; font-size: 0.66rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--fk-accent); cursor: pointer; white-space: nowrap; }
.hd-link-btn:hover { text-decoration: underline; }
/* Group chat quick-link chips span the full width. */
.hd-sec--chips { grid-column: 1 / -1; }
.hd-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hd-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(217,119,54,0.08); border: 1px solid var(--fk-line); color: var(--fk-ink);
  font-size: 0.76rem; font-weight: 500; padding: 0.32rem 0.7rem; border-radius: 999px; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.hd-chip:hover { background: rgba(217,119,54,0.16); transform: translateY(-1px); }
.hd-chip__n { font-size: 0.68rem; color: var(--fk-muted); background: var(--fk-card, #fff); border-radius: 999px; padding: 0 0.35rem; }

/* ── My Scripture Notes list ─────────────────────────────────────────── */
.mynotes { background: var(--fk-card, #fff); border: 1px solid var(--fk-border, #e6e0d8); border-radius: 12px; padding: 0.85rem 1rem; margin: 0.75rem 0; }
.mynotes__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.mynotes__title { font-family: var(--font-serif); font-size: 1rem; margin: 0; }
.mynotes__toggle { border: 1px solid var(--fk-border, #e6e0d8); background: var(--fk-bg-subtle, #faf7f2); font-size: 0.74rem; font-weight: 600; padding: 0.35rem 0.7rem; border-radius: 999px; cursor: pointer; color: var(--fk-accent, #c4622d); white-space: nowrap; }
.mynotes__toggle:hover { background: var(--fk-card, #fff); }
.mynotes__hint { font-size: 0.74rem; color: var(--fk-muted, #8a8178); margin: 0.35rem 0 0.6rem; }
.mynotes__list { display: flex; flex-direction: column; gap: 0.5rem; }
.mynotes__empty { font-size: 0.8rem; color: var(--fk-muted, #8a8178); font-style: italic; padding: 0.35rem 0; }
.mynote { display: flex; align-items: flex-start; gap: 0.5rem; border: 1px solid var(--fk-border, #e6e0d8); background: var(--fk-bg-subtle, #faf7f2); border-radius: 10px; padding: 0.5rem 0.65rem; }
.mynote__body { flex: 1; min-width: 0; }
.mynote__ref { background: none; border: none; padding: 0; font: inherit; font-weight: 700; font-size: 0.8rem; color: var(--fk-accent, #c4622d); cursor: pointer; }
.mynote__ref:hover { text-decoration: underline; }
.mynote__text { font-size: 0.82rem; line-height: 1.4; margin: 0.15rem 0 0; color: var(--fk-text, #2b2823); overflow-wrap: anywhere; }
.mynote__actions { display: flex; gap: 0.15rem; flex-shrink: 0; }
.mynote__edit, .mynote__del { background: none; border: none; cursor: pointer; font-size: 0.85rem; padding: 0.2rem 0.3rem; border-radius: 6px; opacity: 0.7; }
.mynote__edit:hover, .mynote__del:hover { opacity: 1; background: var(--fk-card, #fff); }


/* Read-only cards (announcements + Connect prayer-wall posts). */
.post-card__actions--readonly { justify-content: space-between; gap: 0.75rem; }
.post-card__source { font-size: 0.72rem; color: var(--fk-muted, #8a8178); font-style: italic; align-self: center; }
