/* ══════════════════════════════════════════════════════════════════════════
   capture.css — episode attribution strip, reach-out confirmation,
   vote-tracker form.

   Loaded before newsroom.css so the theme keeps the last word, and written
   against the shared tokens (--ink, --line, --orange, --sd-*) rather than
   literal colours, so the same markup survives a theme swap. The finder
   pieces use the --sd-* set because they live inside .tk, which scopes it.

   Corners are square throughout — no border-radius is declared anywhere in
   this file, and nothing in the base sheets rounds a .cap-* element, so the
   default of 0 stands on its own. The newsroom theme flattens its whole
   control inventory the same way, and the accent borders here (3px on one
   edge) are the lower-third idiom .related already uses.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1. episode attribution strip ─────────────────────────────────────── */

.cap-from {
  margin: 0 0 1.5rem;
  padding: .95rem 1.1rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  background: color-mix(in srgb, var(--card) 70%, transparent);
}

.cap-from__eyebrow {
  margin: 0 0 .3rem;
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
}

.cap-from__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.cap-from__q {
  margin: .35rem 0 0;
  font-family: var(--sans);
  font-size: .86rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-soft);
}

.cap-from__back {
  margin: .6rem 0 0;
  font-family: var(--sans);
  font-size: .76rem;
}

.cap-from__back a {
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.cap-from__back a:hover,
.cap-from__back a:focus-visible { color: var(--ink); border-bottom-color: currentColor; }

/* ── 2. episode ask inside the phone script ───────────────────────────── */

.cap-ask {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin: 0 0 .85rem;
  padding: .7rem .85rem;
  border: 1px dashed var(--sd-line, rgba(127, 214, 255, .3));
  background: color-mix(in srgb, var(--sd-orange, #4FA2F5) 10%, transparent);
}

.cap-ask__tag {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .28rem .45rem;
  background: var(--sd-orange, #4FA2F5);
  color: var(--sd-bg, #0A1430);
  white-space: nowrap;
}

.cap-ask__quote {
  font-family: var(--sans);
  font-size: .88rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--sd-ink, #F2F6FF);
}

/* ── 3. reach-out confirmation ────────────────────────────────────────── */

.cap-confirm {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid var(--sd-orange, #4FA2F5);
  background: var(--sd-card, rgba(16, 28, 60, .9));
}

.cap-confirm[hidden] { display: none; }

.cap-confirm__hd {
  margin: 0 0 .25rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sd-ink, #F2F6FF);
}

.cap-confirm__sub {
  margin: 0 0 .8rem;
  font-family: var(--sans);
  font-size: .82rem;
  line-height: 1.5;
  color: var(--sd-ink-soft, rgba(242, 246, 255, .82));
}

.cap-confirm__row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.cap-confirm__note {
  margin: .8rem 0 0;
  font-family: var(--sans);
  font-size: .7rem;
  line-height: 1.45;
  color: var(--sd-ink-mute, rgba(242, 246, 255, .66));
}

.cap-chip {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  padding: .5rem .8rem;
  border: 1px solid var(--sd-line, rgba(127, 214, 255, .3));
  background: transparent;
  color: var(--sd-ink, #F2F6FF);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.cap-chip:hover,
.cap-chip:focus-visible {
  background: var(--sd-orange, #4FA2F5);
  border-color: var(--sd-orange, #4FA2F5);
  color: var(--sd-bg, #0A1430);
}

.cap-chip--quiet { color: var(--sd-ink-mute, rgba(242, 246, 255, .66)); }

.cap-chip--go {
  background: var(--sd-orange, #4FA2F5);
  border-color: var(--sd-orange, #4FA2F5);
  color: var(--sd-bg, #0A1430);
}

.cap-chip--go:hover,
.cap-chip--go:focus-visible {
  background: var(--sd-orange-lit, #8FC8FF);
  border-color: var(--sd-orange-lit, #8FC8FF);
}

/* ── mobile ───────────────────────────────────────────────────────────── */

@media (max-width: 680px) {
  .cap-confirm__row { gap: .45rem; }
  .cap-chip { font-size: .74rem; padding: .48rem .7rem; }
  .cap-ask { flex-direction: column; gap: .45rem; }
  .cap-ask__tag { align-self: flex-start; }
}

/* ── reduced motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .cap-chip, .cap-from__back a { transition: none; }
}
