/* The Ward Bulletin (10/21): views/bulletin.js. A printed ward program, on our colors: a serif masthead between
   double rules, the Opening Hymn as the pinned card, then plain flat lists per section (doing things = flat lists).
   Gold only on the first Listen button and Accept (actions). New = halo ink, never gold. */
.wb-page { padding-bottom: 24px; }
.wb-mast { text-align: center; padding: 6px 0 14px; margin-bottom: 16px; border-bottom: 3px double var(--line); }
.wb-kick { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.wb-title { margin: 4px 0 2px; font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 2rem; letter-spacing: -.01em; line-height: 1.1; }
.wb-sub { margin: 6px auto 0; max-width: 34ch; color: var(--ink-soft); font-size: .92rem; text-wrap: balance; }

/* The Opening Hymn (10/22: collapsed by default): one compact row = the toggle (label, title, artist, chevron) and the
   listen logos; it wraps under 420px so the logos get their own line. Opened: number, year, why, story, Read more. */
.wb-hymn { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 18px;
  background: var(--surface); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--line); }
.wb-hymn-row { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.wb-hymn-toggle { flex: 1 1 200px; min-width: 0; min-height: 44px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'k c' 't c' 'a c';
  align-items: center; text-align: left; padding: 6px 4px; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; border-radius: 10px; }
.wb-hymn-toggle:hover { background: var(--halo-faint); }
.wb-hymn-toggle:focus-visible { outline: 2px solid var(--halo); outline-offset: 2px; }
.wb-hymn-toggle .wb-kick { grid-area: k; color: var(--halo-ink); }
.wb-hymn-title { grid-area: t; margin: 2px 0 0; font-family: Georgia, serif; font-size: 1.12rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.wb-hymn-artist { grid-area: a; font-size: .84rem; color: var(--ink-soft); font-weight: 600; }
.wb-chev { grid-area: c; width: 20px; height: 20px; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
[aria-expanded="true"] > .wb-chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .wb-chev { transition: none; } }
.wb-hymn-more { padding: 2px 4px 6px; }
.wb-no { font-family: Georgia, serif; font-style: italic; color: var(--ink-soft); }
.wb-hymn-by { margin: 10px 0 0; color: var(--ink-soft); font-size: .86rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.wb-tag { font-size: .7rem; }
.wb-tag-exmo { background: none; border: 1px solid var(--halo); color: var(--halo-ink); }
.wb-why { margin: 8px 0 0; line-height: 1.5; font-family: Georgia, serif; font-size: 1.02rem; }
.wb-story { margin: 10px 0 0; line-height: 1.55; font-size: .92rem; color: var(--ink); }
.wb-source { margin: 8px 0 0; }
.wb-note { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; font-size: .9rem;
  background: var(--surface-2); color: var(--ink); }
.wb-hymn > .wb-note { margin: 4px 0 0; }
.wb-caution svg { width: 18px; height: 18px; display: block; margin-top: 1px; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; }
/* A crisis week (ward-bulletin.js HYMN_CRISIS): calm teal, like every crisis line in the app. No jokes on this card. */
.wb-crisis { margin-top: 10px; padding: 10px 12px; border: 2px solid var(--care); border-radius: 12px; }
.wb-crisis p { margin: 0; }
.wb-crisis-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px !important; }
.wb-listen { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-listen .btn { font-size: .9rem; padding: 0 14px; }
.wb-hymn-foot { margin: 8px 0 0; }
.wb-suggest { margin: 12px 0 0; } /* Hymn requests (10/24): the Suggest button inside the opened hymn */

/* Sections (10/22: every one folds): the program's headings, small caps between rules, as a 44px toggle with the count. */
.wb-sec { margin-top: 10px; }
.wb-sec-h { margin: 0; font-size: inherit; }
.wb-sec-toggle { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 4px; border: 0; background: none; color: var(--ink); cursor: pointer;
  font-family: Georgia, serif; font-size: 1.05rem; font-variant: small-caps; letter-spacing: .06em; font-weight: 700; border-radius: 10px; text-align: left; }
.wb-sec-toggle:hover { background: var(--halo-faint); }
.wb-sec-toggle:focus-visible { outline: 2px solid var(--halo); outline-offset: 2px; }
.wb-sec-toggle::after { content: ''; flex: 1; order: 2; border-top: 1px solid var(--line); }
.wb-sec-name { order: 1; }
.wb-sec-count { order: 3; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-variant: normal; font-variant-numeric: tabular-nums; letter-spacing: 0; font-size: .78rem; font-weight: 700; color: var(--ink-soft);
  padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); }
.wb-sec.has-new .wb-sec-count { color: var(--halo-ink); border-color: var(--halo); }
.wb-sec-toggle .wb-chev { order: 4; }
.wb-sec-sub { margin: 0 0 6px; padding: 0 4px; font-size: .84rem; color: var(--ink-soft); }
.wb-list { list-style: none; margin: 0; padding: 0; }
.wb-more { min-height: 44px; padding: 0 4px; font-weight: 600; }
.wb-item { border-bottom: 1px solid var(--line); }
.wb-item:last-child { border-bottom: 0; }
/* 11/23 a row's "..." (Mark as read, hide this kind): the row link takes the width, the button sits at its right. */
.wb-item.has-more { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: start; }
.wb-item.has-more > :not(.wb-row):not(.wb-dots) { grid-column: 1 / -1; }
.wb-dots { width: 44px; height: 44px; margin-top: 6px; color: var(--ink-soft); }
.wb-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 4px; color: var(--ink); text-decoration: none; border-radius: 10px; }
.wb-row:hover { background: var(--halo-faint); }
.wb-row:focus-visible { outline: 2px solid var(--halo); outline-offset: 2px; }
.wb-av { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.wb-ico { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--halo-ink); background: var(--halo-faint); border: 1px solid var(--line); }
.wb-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wb-ico .sus-fill { fill: currentColor; opacity: .25; }
.wb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wb-t { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.wb-s { font-size: .86rem; color: var(--ink-soft); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.wb-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .78rem; color: var(--ink-soft); }
.wb-new { font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--halo-ink); }
.wb-item.is-new .wb-t::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--halo-fill); margin-right: 6px; vertical-align: .1em; }
.wb-acts { display: flex; gap: 8px; padding: 0 4px 12px 56px; }
.wb-done { margin: 0; padding: 4px 0; color: var(--ink-soft); }
.wb-foot { text-align: center; margin-top: 18px; } /* r223: holds the Show older button when there is more */
.wb-older { min-height: 44px; padding: 0 12px; }
.wb-loading { text-align: center; padding: 24px 0; }
.wb-empty { text-align: center; padding: 28px 8px; }
.wb-empty-t { margin: 0 0 6px; font-family: Georgia, serif; font-size: 1.15rem; font-style: italic; }

/* Landing on one thing (land.js): a halo light that fades. Reduce Motion: it just sits there a few seconds. */
.land-hi { animation: land-glow 2.2s ease-out; border-radius: 12px; scroll-margin-top: 96px; scroll-margin-bottom: 120px; }
.land-hi:focus { outline: none; }
.land-hi.land-calm { animation: none; box-shadow: 0 0 0 2px var(--halo); }
.land-hi.land-calm:not(.bubble) { background: color-mix(in srgb, var(--halo) 18%, transparent); }
@keyframes land-glow {
  0%, 35% { background: color-mix(in srgb, var(--halo) 22%, transparent); box-shadow: 0 0 0 2px var(--halo); }
  100% { background: transparent; box-shadow: 0 0 0 2px transparent; }
}
@media (prefers-reduced-motion: reduce) { .land-hi { animation: none; } }

/* The header holds four buttons now (Messages, the bell, Settings, You): a little tighter on small phones. */
@media (max-width: 380px) { .top-actions { gap: 6px; } .topbar { padding-left: 12px; padding-right: 12px; } .wordmark { font-size: 1.18rem; } }
/* A message bubble keeps its own color: only the ring lights. */
.bubble.land-hi { animation-name: land-ring; }
.bubble.land-hi.land-calm { box-shadow: 0 0 0 3px var(--halo); }
@keyframes land-ring { 0%, 35% { box-shadow: 0 0 0 3px var(--halo), 0 0 16px var(--halo-soft); } 100% { box-shadow: 0 0 0 3px transparent; } }
/* Admin > Tools: the Opening Hymn picker (views/admin.js hymnPicker). */
.admin-hymns { border: 0; margin: 10px 0 0; padding: 0; }
.admin-hymn { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.admin-hymn input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--halo-fill); }
.admin-hymn span { display: flex; flex-direction: column; }
/* Listen: each service's own mark, logo only (ward-bulletin.js BRAND_MARKS says where each came from and the rules).
   A 48px round chip, PURE white in light and PURE black in dark (Spotify's green icon is allowed only on those),
   24px mark = 12px clear space all round. The words are the aria-label and the tooltip. */
.wb-listen-h { margin: 14px 0 6px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.wb-listen { margin-top: 0; gap: 12px; }
.wb-mark { --chip: #ffffff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--chip);
  border: 1px solid var(--line); text-decoration: none; transition: transform .12s; }
.wb-mark .brand-mark { display: block; }
.wb-mark:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.wb-mark:active { transform: scale(.94); }
.wb-mark:focus-visible { outline: 3px solid var(--halo); outline-offset: 3px; }
:root[data-theme="dark"] .wb-mark { --chip: #000000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wb-mark { --chip: #000000; } }
@media (prefers-reduced-motion: reduce) { .wb-mark, .wb-mark:hover, .wb-mark:active { transition: none; transform: none; } }

/* 10/26 Leader's Desk: join requests answered right in the row */
.wb-asks { list-style: none; margin: 0; padding: 0 4px 10px 56px; display: grid; gap: 6px; }
.wb-ask { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.wb-ask-n { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.wb-ask .wb-acts { padding: 0; }

/* The Opening Hymn share (11/05): one round halo button after the listen logos, same 48px as they are. Never gold. */
.wb-share { width: 48px; height: 48px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--halo-ink); flex: 0 0 auto; }
.wb-share svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.wb-share:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.wb-share:focus-visible { outline: 3px solid var(--halo); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .wb-share:hover { transform: none; } }

/* 11/23 Most active discussion: one small card on top of the bulletin and Discuss > This week, the whole card a link (active-card.js). Halo, never gold. */
.wb-active { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--line);
  border-left: 3px solid var(--halo); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; }
.wb-active:hover, .wb-active:focus-visible { border-color: var(--halo); }
.wb-active:focus-visible { outline: 2px solid var(--halo); outline-offset: 2px; }
.wb-active-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wb-active-title { font-weight: 600; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.wb-active-meta { font-size: .8125rem; color: var(--ink-soft); }

/* 11/13 This week in the news (views/bulletin.js newsWeekHtml): a folded program section under Thread of the Week, always
   closed on arrival. Rows = a small-caps kicker (outlet · day), the publisher's headline, the counts. */
.wb-nw { margin: -4px 0 14px; }
.wb-nw-list { list-style: none; }
.wb-nw-row { align-items: flex-start; }
.wb-nw-kick { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.wb-nw-hl { display: block; margin-top: 2px; line-height: 1.35; overflow-wrap: anywhere; }

/* r226 Discuss > Floors: an ongoing live thread as a pinned card over Hot this week (live.js livePinsHtml). Red edge = live. */
.live-pin { border-left-color: var(--danger-fill); }
.live-pin:hover, .live-pin:focus-visible { border-color: var(--danger-fill); }
.live-pin-ico { background: color-mix(in srgb, var(--danger-fill) 12%, var(--bg)); }
