/* ================= /chisiamo — page-specific styles =================
   Everything else comes from /style.css. Only tokens defined there
   (--ink, --ink-deep, --ink-lift, --cream, --cream-dim, --accent,
   --olive, --rule) are used here — no new colours.
   ==================================================================== */

/* ---------- mission rhythm ---------- */

.guide h2 + p { margin-top: 0; }

.guide section > ul.checks { margin-top: 1.1rem; }

/* ---------- candidates ---------- */

.candidates .note {
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.cand-grid {
  display: grid;
  gap: clamp(1.25rem, 4vw, 1.75rem);
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
}

/* On desktop the whole page widens to the four-card grid: the
   prose column and the candidates share one width. */
@media (min-width: 64rem) {
  .page .guide { max-width: min(82rem, calc(100vw - 3rem)); }

  /* release the reading-measure caps that /style.css applies to prose */
  .guide p,
  .guide .checks li,
  .guide .lede { max-width: none; }

  .cand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .cand-photo { max-width: 12rem; }
}

.cand {
  min-width: 0;
  padding: 1.25rem 1.25rem 1.4rem;
  border: 1px solid rgba(214, 175, 77, 0.22);
  border-radius: 12px;
  background: rgba(18, 67, 44, 0.32);
}

/* portrait — square, cropped, works for both the inline SVG
   placeholder and a real <img> dropped in later */
.cand-photo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 11rem;
  margin: 0 auto 1rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: var(--ink-lift);
  box-shadow: 0 0 0 1px rgba(214, 175, 77, 0.28);
}

.cand h3 {
  margin: 0 0 0.5rem;
  font-family: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--cream);
  overflow-wrap: break-word;
}

.cand h3::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin: 0.6rem auto 0;
  background: var(--rule);
}

.cand-bio {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--cream-dim);
  text-wrap: pretty;
  overflow-wrap: break-word;
}

/* ---------- very small screens ---------- */

@media (max-width: 22.5rem) {
  .cand { padding: 1rem 1rem 1.15rem; }
  .cand-photo { max-width: 9rem; }
}

/* slot for a candidate not yet announced */
.cand.is-pending {
  border-style: dashed;
  border-color: rgba(244, 237, 226, 0.16);
  background: rgba(18, 67, 44, 0.16);
}

.cand.is-pending h3,
.cand.is-pending .cand-bio { opacity: 0.6; }

/* familiar / stage name, on its own line under the legal name */
.cand h3 .alias {
  display: block;
  margin-top: 0.15rem;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--cream-dim);
}
