/* Circles guides: figures, evidence cards, pull quotes and the call to
   action that points readers to /circles/. Colors come from the site tokens
   so every figure follows light and dark mode. */

.cg-quote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--d-social);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--ink);
}
.cg-quote p { margin: 0 0 6px; }
.cg-quote cite { display: block; font-family: var(--sans); font-size: 0.85rem; font-style: normal; color: var(--ink-subtle); }

/* Figures: an inline SVG on a card, with a caption that says what it shows. */
.cg-figure {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
}
.cg-figure svg { display: block; width: 100%; height: auto; }
.cg-figure figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--ink-subtle); }
.cg-figure__title { margin: 0 0 12px; font-weight: 600; font-size: 0.95rem; color: var(--ink); }

/* SVG parts */
.cg-svg-text { fill: var(--ink-soft); font-family: var(--sans); font-size: 13px; }
.cg-svg-text--strong { fill: var(--ink); font-weight: 600; }
.cg-svg-text--small { font-size: 11px; }
.cg-svg-rule { stroke: var(--line); stroke-width: 1; }
.cg-svg-grid { stroke: var(--grid-line); stroke-width: 1; }
.cg-svg-water { fill: color-mix(in srgb, var(--d-security) 16%, var(--card)); }
.cg-svg-water-line { fill: none; stroke: var(--d-security); stroke-width: 2.5; }
.cg-svg-water--low { fill: color-mix(in srgb, var(--d-security) 7%, var(--card)); }
.cg-svg-water-line--low { fill: none; stroke: var(--ink-faint); stroke-width: 1.5; stroke-dasharray: 5 4; }
.cg-svg-boat { fill: var(--d-social); }
.cg-svg-sail { fill: color-mix(in srgb, var(--d-social) 30%, var(--card)); stroke: var(--d-social); stroke-width: 1.5; }
.cg-svg-mast { stroke: var(--d-social); stroke-width: 2; }
.cg-svg-bar { fill: var(--d-social); }
.cg-svg-bar--muted { fill: var(--ink-faint); }
.cg-svg-step { fill: var(--card); stroke: var(--d-social); stroke-width: 2; }
.cg-svg-step--fill { fill: var(--d-social); }
.cg-svg-step-num { fill: var(--on-accent); font-family: var(--sans); font-size: 13px; font-weight: 700; }
.cg-svg-track { stroke: var(--line); stroke-width: 4; stroke-linecap: round; }
.cg-svg-track--done { stroke: var(--d-social); }
.cg-svg-ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.cg-svg-ring--accent { stroke: var(--d-social); stroke-width: 2; }
.cg-svg-dot { stroke: var(--card); stroke-width: 2; }
.cg-svg-dot--financial { fill: var(--d-financial); }
.cg-svg-dot--retirement { fill: var(--d-retirement); }
.cg-svg-dot--security { fill: var(--d-security); }
.cg-svg-dot--medical { fill: var(--d-medical); }
.cg-svg-dot--physical { fill: var(--d-physical); }
.cg-svg-dot--mental { fill: var(--d-mental); }
.cg-svg-dot--social { fill: var(--d-social); }
.cg-svg-dot--time { fill: var(--d-time); }

/* Evidence cards: one number, what it measured, and where it came from. */
.cg-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.cg-stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--d-social);
  border-radius: var(--r-sm);
  background: var(--card);
}
.cg-stat__num { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--ink); }
.cg-stat__what { display: block; margin-top: 8px; font-size: 0.9rem; color: var(--ink-soft); }
.cg-stat__src { display: block; margin-top: 10px; font-size: 0.8rem; color: var(--ink-subtle); }

/* Feature cards: what a circle adds. */
.cg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.cg-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.cg-card h3 { margin: 0 0 6px; font-size: 1rem; }
.cg-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.cg-card__icon { display: block; width: 28px; height: 28px; margin-bottom: 10px; color: var(--d-social); }

/* Example text a reader can copy, such as an invite message. */
.cg-sample {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px dashed var(--ink-faint);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 0.95rem;
}
.cg-sample p:last-child { margin-bottom: 0; }
.cg-sample__label { margin: 0 0 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-subtle); }

/* Call to action: start a circle. */
.cg-cta {
  --dim: var(--d-social);
  margin: 32px 0;
  padding: 24px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--d-social) 9%, var(--card));
  border: 1px solid color-mix(in srgb, var(--d-social) 30%, var(--card));
}
.cg-cta .cg-cta__title { margin: 0 0 8px; font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; color: var(--ink); }
.cg-cta p { margin: 0 0 16px; color: var(--ink-soft); }
.cg-cta__actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.cg-cta .cg-cta__note { margin: 12px 0 0; font-size: 0.82rem; color: var(--ink-subtle); }
.cg-cta .btn { text-decoration: none; }

@media (max-width: 560px) {
  .cg-figure, .cg-cta { padding: 16px; }
  .cg-quote { font-size: 1.2rem; }
}
