/* Bell Brief (home): three official releases before the NYSE open and after the close.
   Linked from inside the block (so only the home page loads it, without blocking the content above it); uses the
   theme tokens and --spring from app.css. Static HTML from scripts/build-coin-pages.mjs; assets/bell.js adds the
   countdown, live BTC and the motion.
   Motion only moves things (no fades: content stays readable for contrast checks and crawlers) and runs once. */
.bell-box { position: relative; margin: 18px 0 12px; padding: 16px 16px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-secondary); box-shadow: var(--card-edge); overflow: hidden; isolation: isolate; }
.bell-box::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--brand-line); }
.bell-box::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--accent) 10%, transparent) 50%, transparent 70%); }
.bell-box.ring::after { animation: bell-sweep 1.4s ease-out 1; }
@keyframes bell-sweep { to { transform: translateX(100%); } }
.bell-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 16px; }
.bell-head h2 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bell-icon { display: inline-block; transform-origin: 50% 8%; }
@media (min-width: 641px) { .bell-ed::before { content: "· "; } }
@media (max-width: 640px) { .bell-ed { flex-basis: 100%; font-size: 14px; } }
.bell-box.ring .bell-icon { animation: bell-ring 1.2s var(--spring) 1; }
@keyframes bell-ring { 0% { transform: rotate(0); } 15% { transform: rotate(18deg); } 30% { transform: rotate(-15deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
.bell-clock { margin: 2px 0 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 13px; color: var(--text-secondary); min-height: 2.6em; text-align: right; }
/* The countdown text is replaced by bell.js: reserve its final size (2 lines on phones) so nothing below moves. */
#bellNext { display: block; min-width: min(30em, 100%); min-height: 1.45em; }
.bell-bar { display: block; width: min(220px, 100%); height: 4px; border-radius: 4px; background: var(--bg-tertiary); overflow: hidden; }
.bell-bar > span { display: block; height: 100%; background: var(--brand-ring); transform-origin: left center; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.bell-lede { margin: 6px 0 0; font-size: 14px; color: var(--text-secondary); max-width: 72ch; }
.bell-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.bell-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-primary);
  transition: transform .6s var(--spring), border-color .2s ease, box-shadow .2s ease; transition-delay: calc(var(--i, 0) * 90ms), 0s, 0s; }
.bell-item:hover { border-color: transparent; box-shadow: var(--card-glow); }
.bell-box.js-bell:not(.is-in) .bell-item { transform: translateY(14px) scale(.985); }
.bell-rank { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; font: 800 14px var(--font-mono); color: var(--text-primary);
  background: linear-gradient(var(--bg-tertiary), var(--bg-tertiary)) padding-box, var(--brand-ring) border-box; }
.bell-body { min-width: 0; }
.bell-title { display: block; color: var(--text-primary); font-weight: 700; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.bell-title:hover, .bell-title:focus-visible { color: var(--accent); text-decoration: underline; }
.bell-meta { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-muted); }
.bell-move { white-space: nowrap; font-size: 12px; }
.bell-quiet { padding: 10px 12px; border: 1px dashed var(--border); border-radius: 12px; color: var(--text-muted); font-size: 14px; }
.bell-live { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 2px 16px; font: 13px var(--font-mono); color: var(--text-muted); }
/* "Since then" is filled live: its own line on phones, wide enough for the final text everywhere (no shift). */
.bell-live > span:last-child { min-width: 23ch; white-space: nowrap; }
.bell-how { margin-top: 8px; font-size: 13.5px; color: var(--text-secondary); }
.bell-how summary { cursor: pointer; color: var(--accent); min-height: 24px; }
.bell-how p { margin: 6px 0 2px; max-width: 80ch; line-height: 1.55; }
@media (max-width: 640px) {
  .bell-item { grid-template-columns: 28px minmax(0, 1fr); gap: 4px 10px; }
  .bell-rank { width: 28px; height: 28px; font-size: 13px; }
  .bell-move { grid-column: 2; justify-self: start; }
  .bell-clock { align-items: flex-start; text-align: left; width: 100%; min-height: 0; }
  #bellNext { min-width: 0; min-height: calc(2 * 1.45em); }
}
@media (prefers-reduced-motion: reduce) { .bell-box.js-bell:not(.is-in) .bell-item { transform: none; } }
