/* ---------- question sidebar: the activity card ---------- */
.ac { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-2); overflow: hidden; }
.ac > * { padding-inline: 18px; }
.ac-load { padding-block: 14px; font-size: 0.84rem; color: var(--sub); }

/* 1. pulse bar */
.ac-top { display: flex; align-items: center; gap: 9px; padding-block: 11px; background: var(--pine-deep); color: #fff; }
.ac-top b { font: 600 0.8rem/1 var(--sans); letter-spacing: 0.02em; }
.ac-top > span:last-child { margin-left: auto; font-size: 0.72rem; color: #b9d6c9; }
.ac-live { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #8fa9a0; }
.ac-live.on { background: #5fe0a8; }
.ac-live.on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #5fe0a8; opacity: 0; animation: acPulse 1.8s var(--ease) infinite; }
@keyframes acPulse { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ac-live.on::after { animation: none; } }

/* 2. the goal */
.ac-goal { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; padding-block: 18px 12px; background: var(--pine-wash); }
.ac-ring { position: relative; width: 84px; height: 84px; }
.ac-ring-bg { fill: none; stroke: #fff; stroke-width: 9; }
.ac-ring-fg { fill: none; stroke: var(--pine); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ac-ring b { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; font: 600 1.55rem/1 var(--serif); color: var(--pine-deep); }
.ac-ring small { font-size: 0.8rem; }
.ac-goal-text { display: grid; gap: 3px; min-width: 0; }
.ac-goal-text small { font: 600 0.64rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-ink); }
.ac-goal-text b { font: 600 1.08rem/1.25 var(--serif); color: var(--ink); }
.ac-goal-text span { font-size: 0.76rem; line-height: 1.35; color: var(--ink-2); }

.ac-meter { display: grid; gap: 6px; padding-block: 0 14px; background: var(--pine-wash); }
.ac-meter-bar { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; }
.ac-meter-bar i { height: 12px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1px var(--pine-soft); }
.ac-meter-bar i.on { background: var(--brass); box-shadow: none; }
.ac-meter-key { display: flex; justify-content: space-between; gap: 8px; font-size: 0.7rem; color: var(--sub); }
.ac-meter-key span:first-child { font-weight: 600; color: var(--brass-ink); }

.ac-steps { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding-block: 12px 14px; border-bottom: 1px solid var(--line-2); position: relative; }
.ac-steps li { display: grid; justify-items: center; gap: 4px; text-align: center; position: relative; }
.ac-steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 600 0.7rem/1 var(--sans); color: var(--faint); background: #fff; border: 1.5px solid var(--line-strong); position: relative; z-index: 1; }
.ac-steps li.done span { color: #fff; background: var(--pine); border-color: var(--pine); }
.ac-steps li.now span { color: #fff; background: var(--brass); border-color: var(--brass); box-shadow: 0 0 0 4px var(--brass-soft); }
.ac-steps li:not(:last-child)::after { content: ""; position: absolute; top: 10px; left: calc(50% + 12px); right: calc(-50% + 12px); height: 2px; background: var(--line); }
.ac-steps li.done:not(:last-child)::after { background: var(--pine); }
.ac-steps small { font-size: 0.6rem; line-height: 1.2; color: var(--sub); }
.ac-steps li.now small { color: var(--brass-ink); font-weight: 600; }

/* 3. the one step */
.ac-do { display: grid; gap: 6px; padding-block: 14px; border-bottom: 1px solid var(--line-2); }
.ac-do b { font: 600 0.95rem/1.2 var(--serif); }
.ac-do p { margin: 0; font-size: 0.78rem; line-height: 1.45; color: var(--ink-2); }
.ac-do strong { color: var(--brass-ink); }
.ac-btn { margin-top: 6px; display: block; padding: 11px 14px; border-radius: 8px; text-align: center; font: 600 0.88rem/1 var(--sans); color: #fff; background: var(--pine); box-shadow: 0 2px 0 var(--pine-deep); transition: transform 0.15s var(--ease), background 0.15s var(--ease); }
.ac-btn:hover { text-decoration: none; background: var(--pine-deep); transform: translateY(-1px); }

/* 4. momentum */
.ac-mom { display: grid; gap: 8px; padding-block: 14px; border-bottom: 1px solid var(--line-2); }
.ac-mom-nums { display: grid; grid-template-columns: repeat(3, 1fr); }
.ac-mom-nums div { display: grid; gap: 2px; }
.ac-mom-nums div + div { padding-left: 10px; border-left: 1px solid var(--line-2); }
.ac-mom-nums b { font: 600 1.35rem/1 var(--serif); color: var(--pine-deep); font-variant-numeric: tabular-nums; }
.ac-mom-nums span { font-size: 0.68rem; color: var(--sub); }
.ac-bars { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.ac-bars i { flex: 1; border-radius: 2px 2px 0 0; background: var(--line-2); }
.ac-bars i.on { background: var(--pine-2); }
.ac-bars i.today { background: var(--brass); }
.ac-bars-key { display: flex; justify-content: space-between; font-size: 0.64rem; color: var(--faint); }

/* 5. team */
.ac-team, .ac-feed { display: grid; gap: 8px; padding-block: 14px; border-bottom: 1px solid var(--line-2); }
.ac-label { display: flex; justify-content: space-between; align-items: baseline; font: 600 0.64rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sub); }
.ac-label a { letter-spacing: 0; text-transform: none; font-size: 0.74rem; color: var(--pine); }
.ac-team ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ac-team li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 6px; font-size: 0.82rem; }
.ac-team li:first-child { background: #fdf9f0; }
.ac-team li a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); min-width: 0; }
.ac-team li a .glyph { border-radius: 3px; flex: none; }
.ac-rank { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 600 0.68rem/1 var(--sans); color: var(--sub); background: var(--line-2); }
.ac-rank.first { color: #fff; background: var(--brass); }
.ac-pts { display: grid; justify-items: end; font-size: 0.72rem; color: var(--ink-2); }
.ac-pts small { font-size: 0.66rem; color: var(--brass-ink); font-weight: 600; }
.ac-team li.ac-open { border: 1.5px dashed var(--line-strong); color: var(--sub); }
.ac-team li.ac-open .ac-rank { background: #fff; border: 1.5px dashed var(--pine-2); color: var(--pine); }

/* 6. feed */
.ac-feed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ac-feed li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 9px; }
.ac-dot { margin-top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--pine-2); box-shadow: 0 0 0 3px var(--pine-soft); }
.ac-feed p { margin: 0; font: 500 0.8rem/1.4 var(--serif-text); color: var(--ink); }
.ac-feed small { font-size: 0.7rem; color: var(--sub); }
.ac-ok { color: var(--pine); font-weight: 600; }

/* 7. waiting */
.ac-wait { display: flex; align-items: center; gap: 8px; padding-block: 12px; background: var(--brass-soft); font-size: 0.78rem; color: var(--brass-ink); }
.ac-wait b { font: 600 1.2rem/1 var(--serif); }
.ac-wait a { margin-left: auto; font-weight: 600; color: var(--brass-ink); white-space: nowrap; }

/* ---------- question hero: how far along it is, in one line ---------- */
.pb { --pb: var(--pine); --pb-ink: var(--pine-deep);
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 26px;
  padding-top: 22px; border-top: 1px solid var(--line-strong); min-height: 96px; }
.pb-rest, .pb-ready { --pb: var(--brass); --pb-ink: var(--brass-ink); }
.pb-loading { opacity: 0; }
.pb:not(.pb-loading) { animation: st-in 0.5s var(--ease) both; }

.pb-num { display: grid; justify-items: start; gap: 4px; }
.pb-num b { font: 500 3.6rem/0.9 var(--serif); letter-spacing: -0.02em; color: var(--pb); font-variant-numeric: tabular-nums; }
.pb-num b small { font-size: 0.45em; margin-left: 2px; color: var(--pb); opacity: 0.7; }
.pb-num span { font: 600 0.68rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sub); }

.pb-body { display: grid; gap: 12px; min-width: 0; }
.pb-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.pb-state { display: inline-flex; align-items: center; gap: 9px; font: 600 0.74rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--pb-ink); }
.pb-state i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--pb); }
.pb-hot .pb-state i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--pb); opacity: 0; animation: acPulse 2.2s var(--ease) infinite; }
.pb-meta { font-size: 0.8rem; color: var(--sub); }

.pb-bar { position: relative; height: 6px; border-radius: 999px; background: rgba(20, 40, 59, 0.08); }
.pb-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--pb); transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.pb-fill::after { content: ""; position: absolute; right: -5px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--pb); box-sizing: border-box; }

.pb-bottom { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.pb-bottom p { margin: 0; font: 500 1.06rem/1.4 var(--serif); color: var(--ink); }
.pb-bottom a { font: 600 0.88rem/1 var(--sans); color: var(--pb-ink); white-space: nowrap; }
@media (max-width: 640px) { .pb { grid-template-columns: minmax(0, 1fr); gap: 14px; } .pb-num { grid-auto-flow: column; align-items: baseline; justify-content: start; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .pb-hot .pb-state i::after { animation: none; } .pb-fill { transition: none; } }
/* this browser's person on the little board */
.ac-team li.ac-me { background: var(--pine-wash); box-shadow: inset 0 0 0 1px var(--pine-soft); }
.ac-you { margin-left: 2px; padding: 1px 6px; border-radius: 999px; font: 600 0.66rem/1.4 var(--sans); color: #fff; background: var(--pine); }

/* on a phone this card sits below everything: the goal, steps and "how you can help" are already shown above in
   the five steps and the panel, so it keeps the live part (who is on it, what just landed, momentum) */
@media (max-width: 760px) {
  .ac-goal, .ac-meter, .ac-steps, .ac-do { display: none; }
  /* the progress line under the title: its link becomes a clear button */
  .pb-bottom a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--pb); color: #fff; }
  .pb-bottom a:hover { color: #fff; text-decoration: none; }
}

/* a module has been built: the hero line and the side card say so, in pine with a tick */
.pb-module { --pb: var(--pine); --pb-ink: var(--pine-deep); }
.pb-module .pb-tick { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font: 700 1.9rem/1 var(--sans); color: #fff; background: var(--pine); letter-spacing: 0; }
.pb-module .pb-state i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--pb); opacity: 0; animation: acPulse 2.2s var(--ease) infinite; }
.pb-module .pb-bottom p b { color: var(--pine-deep); }
.ac-mod { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: start; padding-block: 16px; border-bottom: 1px solid var(--line-2); background: var(--pine-wash); }
.ac-mod-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 700 1.2rem/1 var(--sans); color: #fff; background: var(--pine); }
.ac-mod > div { display: grid; gap: 2px; min-width: 0; }
.ac-mod small { font: 600 0.7rem/1.3 var(--sans); color: var(--pine-deep); }
.ac-mod b { font: 600 1.04rem/1.3 var(--serif); color: var(--ink); }
.ac-mod span { font-size: 0.84rem; line-height: 1.45; color: var(--ink-2); }
.ac-mod > a { grid-column: 2; font: 600 0.86rem/1.3 var(--sans); color: var(--pine); }
@media (prefers-reduced-motion: reduce) { .pb-module .pb-state i::after { animation: none; } }

