/* ==========================================================================
   PRAYER WALL (community.html) — builds on the shared dy-* system in diary.css
   ========================================================================== */

.wall-page { background: transparent; }   /* site background + gutter pattern: theme.css */
.wall-page .app-wrapper {
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(50% 30% at 12% 100%, rgba(201,164,92,.12), transparent 70%),
    radial-gradient(40% 30% at 92% 55%, rgba(201,164,92,.06), transparent 70%),
    transparent;
}
.wall-page .top-bar { position: relative; z-index: 5; background: rgba(10,8,6,.72); }
.wall-page .site-footer { position: relative; background: rgba(8,6,4,.55); }   /* lets the gutter pattern show through */

/* ---------- Hero asides ---------- */
/* Right tagline: only where there is clear space to the right of the cross (cross right
   edge = 50vw + 784px at the 340px cap → hero-relative x 1402px); hidden otherwise. */
.wall-tagline--right { display: none; }
@media (min-width: 2260px) {
  .wall-tagline--right { display: block; width: max-content; left: 1402px !important; top: 300px !important; }
}
.wall-tagline--right .dy-tagline__poem { font-size: 17px; letter-spacing: .2em; }
.wall-aside-verse { margin: 0; font-size: 14.5px; line-height: 2; color: #d9ccb0; letter-spacing: .08em; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.wall-aside-verse__ref { display: block; margin-top: 8px; }

/* ---------- Composer ---------- */
.wall-publish { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.wall-publish .dy-note { flex: none; }
.wall-publish__hint { margin-left: auto; }
.wall-select { position: relative; flex: 1; max-width: 320px; }
.wall-select .ic { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--dy-gold); }
.wall-select__globe { left: 12px; width: 16px !important; height: 16px !important; }
.wall-select__chev { right: 12px; width: 16px !important; height: 16px !important; }
.wall-select .publish-select {
  width: 100%;
  min-height: 42px;
  padding: 8px 36px;
  border: 1px solid rgba(201,164,92,.38);
  border-radius: 10px;
  background: rgba(10,8,6,.55);
  color: #f1e4c6;
  font: 400 14px/1.4 var(--serif);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.wall-select .publish-select:focus { outline: 2px solid var(--dy-gold-2); outline-offset: 2px; }
.wall-select .publish-select option { background: #1a140d; color: #f1e4c6; }

.wall-groups { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; margin: 14px auto 0; font-size: 13px; color: var(--dy-mute); }
.wall-groups b { font-weight: 500; color: #f1e4c6; }
.wall-link { padding: 6px 2px; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--dy-gold); font: 400 13px/1.4 var(--serif); cursor: pointer; }
.wall-link:hover { border-bottom-color: var(--dy-gold); }

.wall-comfort { display: flex; align-items: flex-start; gap: 12px; max-width: 740px; margin: 16px auto 0; padding: 14px 18px; }
.wall-comfort[hidden] { display: none; }
.wall-comfort p { margin: 0; flex: 1; font-size: 14px; line-height: 1.9; color: #f1e4c6; }
.wall-comfort .comfort-dismiss { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--dy-mute); font-size: 20px; line-height: 1; cursor: pointer; }
.wall-comfort .comfort-dismiss:hover { color: var(--dy-gold); background: rgba(201,164,92,.12); }

/* ---------- 我刚刚发布的祷告 ---------- */
.wall-mine { max-width: 900px; margin: 36px auto 0; padding: 22px 24px 24px; border-color: rgba(224,196,138,.55); box-shadow: 0 0 40px rgba(201,164,92,.16), 0 18px 60px rgba(0,0,0,.45); }
.wall-mine[hidden] { display: none; }
.wall-mine__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.wall-mine__head h2 { margin: 0; font: 500 22px/1.3 var(--serif); color: #f5e9cf; letter-spacing: .06em; }
.wall-mine__head p { margin: 4px 0 0; font-size: 13px; color: var(--dy-mute); }
.wall-mine__star { width: 34px !important; height: 34px !important; color: #f3d88a; filter: drop-shadow(0 0 10px rgba(243,216,138,.7)); }
.wall-outline { margin-left: auto; flex: none; min-height: 38px; padding: 6px 18px; border: 1px solid rgba(224,196,138,.6); border-radius: 999px; background: transparent; color: #f1e4c6; font: 400 14px/1 var(--serif); cursor: pointer; }
.wall-outline[hidden] { display: none; }
.wall-outline:hover { background: rgba(201,164,92,.12); color: var(--dy-gold); }

#myPrayers { display: grid; gap: 14px; }
.wall-mine__card { display: grid; grid-template-columns: 120px 1fr 220px; gap: 22px; align-items: center; padding: 18px 22px; border: 1px solid rgba(201,164,92,.3); border-radius: 12px; background: rgba(12,9,6,.55); }
.wall-mine__card.is-answered { border-color: rgba(236,201,120,.75); }
.wall-mine__icon { display: grid; place-items: center; width: 100px; height: 100px; margin-inline: auto; border: 1px solid rgba(224,196,138,.5); border-radius: 50%; background: radial-gradient(circle, rgba(201,164,92,.18), transparent 70%); color: #f3d88a; }
.wall-mine__icon .ic { width: 48px; height: 48px; stroke-width: 1.2; }
.wall-mine__title { margin: 10px 0 0; font: 600 21px/1.45 var(--serif); color: #f7ecd2; letter-spacing: .04em; overflow-wrap: anywhere; }
.wall-mine__text { margin: 6px 0 0; font-size: 14.5px; line-height: 1.75; color: #cfc2a8; overflow-wrap: anywhere; }
.wall-mine__main .wall-who { margin-top: 12px; }
.wall-mine__side { display: flex; flex-direction: column; gap: 18px; text-align: center; }
.wall-mine__verse { margin: 0; font-size: 14px; line-height: 1.8; color: #e9dcc0; letter-spacing: .04em; }
.wall-mine__verse span { display: block; color: var(--dy-mute); font-size: 13px; }
.wall-mine__count { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 14px; color: #f1e4c6; }
.wall-mine__count .ic { width: 20px; height: 20px; color: var(--dy-gold); }

/* ---------- 大家的祷告 ---------- */
.wall-list { position: relative; margin-top: 44px; }   /* paint above the absolute backdrop */
.wall-sort { display: flex; gap: 22px; margin-left: auto; align-self: flex-end; }
.wall-sort__tab { padding: 6px 2px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--dy-mute); font: 400 15px/1.4 var(--serif); letter-spacing: .06em; cursor: pointer; }
.wall-sort__tab:hover { color: #f1e4c6; }
.wall-sort__tab.active { color: #f5e9cf; border-bottom-color: var(--dy-gold); }
.wall-filters { margin-bottom: 20px; }
.wall-filters .dy-pill { min-width: 80px; }

.wall-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 14px;
  border: 1px solid rgba(201,164,92,.26);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(30,23,15,.9), rgba(18,14,10,.94));
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
  transition: transform .3s, border-color .3s;
}
.wall-card:hover { transform: translateY(-2px); border-color: rgba(224,196,138,.5); }
.wall-card.is-answered { border-color: rgba(236,201,120,.85); box-shadow: 0 0 0 1px rgba(236,201,120,.2), 0 0 28px rgba(201,164,92,.25), 0 12px 36px rgba(0,0,0,.4); }
.wall-card.is-sample { opacity: .78; border-style: dashed; box-shadow: none; }
.wall-card.is-sample:hover { transform: none; }

.wall-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-height: 32px; font-size: 12.5px; color: var(--dy-mute); }
.wall-card__meta .dy-menu { margin-left: auto; }
.wall-card__meta .dy-menu__list { bottom: auto; top: 34px; }
.wall-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 12px; border-radius: 999px; font-size: 12px; line-height: 1.6; white-space: nowrap; background: rgba(201,164,92,.82); color: #24180a; }
.wall-tag .ic { width: 13px; height: 13px; }
.wall-tag--healing, .wall-tag--family { background: rgba(160,182,204,.85); color: #18222c; }
.wall-tag--other, .wall-tag--group { background: rgba(120,108,88,.5); color: #f1e4c6; }
.wall-tag--sample { padding: 1px 10px; border: 1px dashed rgba(201,164,92,.45); background: transparent; color: var(--dy-mute); font-size: 11px; letter-spacing: .1em; }
.wall-tag--answered { border: 1px solid rgba(236,201,120,.6); background: rgba(236,201,120,.12); color: var(--dy-gold); }
.translation-label { font-size: 11px; font-style: italic; color: var(--dy-mute); opacity: .8; }

.wall-card__title { margin: 8px 0 0; font: 600 19px/1.45 var(--serif); color: #f7ecd2; letter-spacing: .04em; overflow-wrap: anywhere; }
.wall-card__text {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: #cfc2a8;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.wall-card__foot { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 14px; font-size: 13px; color: #e9dcc0; }
.wall-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: #e9dcc0; }
.wall-avatar { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(233,220,192,.16); color: #e9dcc0; }
.wall-avatar .ic { width: 16px; height: 16px; }
.wall-avatar--brand { background: rgba(201,164,92,.2); color: #f3d88a; }
.wall-count { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.wall-count .ic { width: 16px; height: 16px; }
.wall-pray {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px;
  padding: 4px 14px;
  border: 1px solid rgba(224,196,138,.6);
  border-radius: 999px;
  background: transparent;
  color: #f1e4c6;
  font: 500 13px/1 var(--serif);
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.wall-pray .ic { width: 15px; height: 15px; }
.wall-pray:hover { background: rgba(201,164,92,.14); color: var(--dy-gold); }
.wall-pray.lit { background: rgba(201,164,92,.12); border-color: #e9cf8f; color: #f0d79f; }
.wall-pray.lit .ic { fill: currentColor; }
.wall-pray:disabled { cursor: default; }

/* ---------- 已蒙应允: testimony + owner controls ---------- */
.wall-testimony { margin: 12px 0 0; padding: 10px 14px; border-left: 2px solid var(--dy-gold-2); border-radius: 0 8px 8px 0; background: rgba(236,201,120,.08); font-size: 14px; line-height: 1.75; color: #f1e4c6; overflow-wrap: anywhere; }
.wall-testimony b { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--dy-gold); }
.wall-owner { margin-top: 12px; }
.wall-mark.btn-gold { --gold-button-height: 40px !important; font-size: 13px !important; gap: 6px !important; }
.wall-mark .ic { width: 15px; height: 15px; }
.wall-mark:hover { filter: brightness(1.08); }
.wall-mark:disabled, .wall-owner .wall-link:disabled { opacity: .6; cursor: default; }
.wall-owner-hint { margin: 12px 0 0; font-size: 12.5px; color: var(--dy-mute); }
.wall-answer { margin-top: 12px; padding: 12px; border: 1px solid rgba(224,196,138,.4); border-radius: 10px; background: rgba(10,8,6,.45); }
.wall-answer__label { display: block; margin-bottom: 6px; font-size: 13px; color: #f1e4c6; }
.wall-answer__field { position: relative; }
.wall-answer__input { display: block; width: 100%; min-height: 76px; padding: 10px 12px 24px; border: 1px solid rgba(201,164,92,.35); border-radius: 8px; background: linear-gradient(180deg, #f6eedd, #ece1c8); color: #2c1508; font: 400 14.5px/1.75 var(--serif); resize: vertical; }
.wall-answer__input:focus { outline: 2px solid var(--dy-gold-2); outline-offset: 2px; }
.wall-answer__count { position: absolute; right: 10px; bottom: 6px; font-size: 11.5px; color: #8f8068; font-variant-numeric: tabular-nums; }
.wall-answer__actions { display: flex; align-items: center; gap: 16px; margin-top: 10px; }

/* ---------- Group modals (moved from inline styles, dark theme) ---------- */
.group-list-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: background .2s, border-color .2s; }
.group-list-item:hover, .group-list-item.current { border-color: var(--gold); }
.group-list-item.current { pointer-events: none; }
.group-list-item-name { font-size: 14px; font-weight: 600; color: var(--ivory); }
.group-list-item-code { margin-top: 2px; font-size: 11px; color: var(--ivory-mute); }
.group-list-item-badge { padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.code-box { margin-top: 14px; padding: 14px; border-radius: 10px; text-align: center; font: 800 28px/1.2 "Courier New", monospace; letter-spacing: 6px; }
.code-hint { margin-top: 8px; font-size: 12px; text-align: center; color: var(--ivory-mute); }
.modal-section-label { margin: 14px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ivory-mute); }
.modal-divider { height: 1px; margin: 16px 0; background: var(--line); }
.modal-scroll { display: flex; flex-direction: column; gap: 8px; max-height: 220px; padding-right: 2px; overflow-y: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .wall-mine__card { grid-template-columns: 90px 1fr; }
  .wall-mine__icon { width: 80px; height: 80px; }
  .wall-mine__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
}
@media (max-width: 640px) {
  .wall-publish { flex-wrap: wrap; }
  .wall-select { max-width: none; flex-basis: calc(100% - 90px); }
  .wall-publish__hint { margin-left: 0; width: 100%; }
  .wall-mine { margin-top: 24px; padding: 18px 16px; }
  .wall-mine__head { flex-wrap: wrap; }
  .wall-mine__head > div { flex: 1; min-width: 0; }
  .wall-mine__head h2 { font-size: 19px; }
  .wall-outline { margin-left: 48px; }
  .wall-mine__card { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .wall-mine__icon { display: none; }
  .wall-mine__side { flex-direction: column; align-items: flex-start; gap: 10px; }
  .wall-list { margin-top: 36px; }
  .wall-list__head { flex-wrap: wrap; }
  .wall-sort { width: 100%; margin-left: 0; padding-left: 44px; }
  .wall-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; }
  .wall-filters::-webkit-scrollbar { display: none; }
  .wall-filters .dy-pill { flex: none; min-width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .wall-card, .wall-pray { transition: none; }
}
/* full text on tap */
.is-clampable { cursor: pointer; }
.dy-card__text.is-expanded, .wall-card__text.is-expanded { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; white-space: pre-line; }
.text-more { align-self: flex-start; margin: 6px 0 0; padding: 6px 0; border: 0; background: none; color: #e6c47a; font: 500 13.5px/1.4 var(--serif, serif); letter-spacing: .06em; cursor: pointer; touch-action: manipulation; }
.text-more:hover { text-decoration: underline; }

/* The existing inline detail view keeps a prominent share action inside it. */
.wall-card:has(.wall-card__text.is-expanded) .wall-card__foot .wall-card__share { min-height: 52px; padding: 14px 26px; font-size: 18px; }
.wall-card:has(.wall-card__text.is-expanded) .wall-card__share .share-icon { width: 28px; height: 28px; }
