/* ---------- Progress ----------
   Page-only styles. Tokens only (see docs/DESIGN.md). */

/* Every ring on this page: accent (leaf) fill on a --surface-2 track;
   a finished group's ring turns gold, and the summary ring sits on a gold glow. */
.pg .ring { --ring-color: var(--accent); --ring-track: var(--surface-2); }
.pg .ring[style*="--ring-value: 100"] { --ring-color: var(--gold-press); }

/* Signed out */
.pg-out {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-7) var(--space-5);
  margin-top: var(--space-5);
}
.pg-out[hidden] { display: none; }
.pg-out .pg-out__title {
  font-family: var(--font-display);
  font-variation-settings: var(--heading-variation);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.pg-out__text { color: var(--muted); max-width: 26rem; font-size: var(--fs-body); line-height: var(--lh-body); }
.pg-out .pill { margin-top: var(--space-3); min-width: 160px; }

/* Summary */
.pg-summary { display: flex; justify-content: center; }
.pg-summary .ring::before {
  content: '';
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-soft) 85%, transparent), color-mix(in srgb, var(--glass-strong) 70%, transparent) 70%, transparent);
  box-shadow: 0 0 0 1px var(--glass-edge), 0 24px 48px -28px color-mix(in srgb, var(--gold) 70%, transparent);
}
.pg-summary .ring__label { font-size: var(--fs-h2); }
.pg-summary .ring__sub { font-size: var(--fs-caption); margin-top: 4px; }

/* Group cards (--surface via .card) */
.pg-group { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5) var(--space-4) var(--space-4) var(--space-5); }
.pg-group__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.pg-group__titles { min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.pg-group__title {
  font-family: var(--font-display);
  font-variation-settings: var(--heading-variation);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.5vw + 1.1rem, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-align: left;
  margin: 0;
}
.pg-sites { list-style: none; gap: 6px; }
.pg-site { min-height: 26px; padding: 0 10px; font-size: var(--fs-caption); }
/* Both-sites list: jesustools in leaf, theword in sunlight */
.pg-site--jesustools { --chip-bg: var(--accent-soft); --chip-ink: var(--accent-text); --chip-border: transparent; }
.pg-site--theword    { --chip-bg: var(--gold-soft);   --chip-ink: var(--gold-ink);   --chip-border: transparent; }
.pg-group__ring { --ring-size: 56px; --ring-width: 11; }
.pg-group__ring .ring__label { font-size: var(--fs-caption); }

.pg-list { list-style: none; }
.pg-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-3) 0;
}
.pg-item + .pg-item { border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent); }
.pg-item__badge { --badge-size: 32px; }
.pg-item__badge svg { width: 16px; height: 16px; }
/* Completed rows: a sage check disc */
.pg-item.is-done .pg-item__badge { background: var(--accent-soft); color: var(--accent-text); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 55%, transparent); }
.pg-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pg-item__title { font-weight: 600; font-size: var(--fs-body); line-height: 1.4; overflow-wrap: anywhere; }
.pg-item__text { font-size: var(--fs-small); color: var(--muted); }
.pg-item__date { font-size: var(--fs-caption); color: var(--subtle); display: flex; flex-wrap: wrap; gap: 0 var(--space-2); }
.pg-item__date:empty { display: none; }
.pg-item__site { font-style: italic; }
.pg-item__control { flex-shrink: 0; display: flex; align-items: center; }
.pg-toggle { gap: 0; min-height: 44px; min-width: 44px; justify-content: center; }

.pg-auto {
  min-height: 26px;
  padding: 0 10px;
  gap: 4px;
  font-size: var(--fs-caption);
  color: var(--subtle);
  cursor: default;
}
.pg-auto svg { width: 0; height: 12px; opacity: 0; transition: width var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.pg-auto:hover svg, .pg-auto:focus-visible svg, .pg-item:hover .pg-auto svg { width: 12px; opacity: 1; }
.pg-auto:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.pg-group__more { font-size: var(--fs-small); padding-top: var(--space-1); }
.pg-group__more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-text); font-weight: 600; text-decoration: none; }
.pg-group__more a:hover { text-decoration: underline; }
.pg-group__more a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }

@media (min-width: 560px) {
  .pg-group { padding: var(--space-5) var(--space-5) var(--space-4) var(--space-6); }
}

/* Components set display, so make [hidden] win on this page. */
.pg [hidden] { display: none !important; }
