/* "Mark it in Gospel Library" — button + 4-step guide on quote cards (lib/marks.js).
   Uses the tokens in site.css. State is always shown as text (○ To do / ✓ Done), never colour alone. */
.gl { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 2px; }
.gl .btn { margin-left: 0; }
.gl-open { gap: 10px; }
.gl-open svg { flex-shrink: 0; }

.gl-guide { width: 100%; max-width: 640px; border: 1px solid var(--hair); border-radius: var(--radius); background: rgba(10, 20, 48, .45); }
.gl-guide[open] { border-color: var(--line); }
.gl-guide > summary {
  list-style: none; cursor: pointer; min-height: 48px; padding: 10px 16px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 2px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.gl-guide > summary::-webkit-details-marker { display: none; }
.gl-guide > summary::before {
  content: ""; width: 8px; height: 8px; flex-shrink: 0; margin-right: 2px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg); transition: transform .2s;
}
.gl-guide[open] > summary::before { transform: rotate(45deg); }
.gl-sum { flex: 1 1 auto; }
.gl-sum-sub { font-weight: 500; color: var(--mist); }
.gl-progress { font-size: 13px; font-weight: 600; color: var(--mist); white-space: nowrap; }
.gl-guide > summary:hover .gl-sum { color: var(--ember); }

.gl-intro { padding: 0 16px; font-size: 15px; line-height: 1.5; color: var(--mist); }
.gl-steps { list-style: none; margin: 12px 0 0; padding: 0 12px; display: flex; flex-direction: column; gap: 10px; }
.gl-step { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 10px; background: var(--raise); }
.gl-step-head { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gl-step h3 { font-family: var(--f-body); font-size: 16px; font-weight: 700; color: var(--ink); }
.gl-state { font-size: 13px; font-weight: 600; color: var(--mist); white-space: nowrap; }
.gl-step.is-done .gl-state { color: var(--ember); }
.gl-step p, .gl-step label { font-size: 15px; line-height: 1.5; color: var(--mist); }
.gl-step strong, .gl-find strong { color: var(--ink); font-weight: 600; }
.gl-chip { display: inline-block; padding: 6px 14px; border: 1px solid var(--gold); border-radius: 999px; color: var(--ink) !important; font-weight: 600; user-select: all; -webkit-user-select: all; }
.gl-step textarea {
  width: 100%; min-height: 64px; resize: vertical; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--hair); background: var(--night); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.45;
}
.gl-step textarea::placeholder { color: var(--faint); }
.gl-step .btn { white-space: normal; text-align: center; }
.gl-small { font-size: 13px !important; }
.gl-find { padding: 14px 16px 16px; font-size: 14px; line-height: 1.5; color: var(--mist); }

/* Watch page: header that explains the quotes section (replaces "Quotes in this video"). */
.gl-head { margin: 8px 0 22px; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(90% 140% at 0% 0%, rgba(227, 180, 92, .12), transparent 60%), var(--deep);
  display: flex; flex-direction: column; gap: 12px; }
.gl-eyebrow { font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.gl-title { font-family: var(--f-display); font-size: var(--s2); line-height: 1.2; color: var(--ink); }
.gl-lede { font-size: 16px; line-height: 1.55; color: var(--mist); max-width: 62ch; }
.gl-lede strong { color: var(--ink); font-weight: 600; }
.gl-how { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.gl-how li { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--raise); font-size: 15px; font-weight: 600; color: var(--ink); }
.gl-num { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--night); font-size: 14px; font-weight: 800; }
.gl-private { font-size: 13px; color: var(--mist); }

/* Quote of the day: keep the button off the big italic type. */
.quote-xl .gl { margin-top: 6px; }

@media (max-width: 560px) {
  .gl-guide > summary { grid-template-columns: auto minmax(0, 1fr); }
  .gl-progress { grid-column: 2; }
  .gl-open { width: 100%; }
  .gl-step .btn { width: 100%; }
  .gl-steps { padding: 0 8px; }
  .gl-head { padding: 18px 16px; }
  .gl-how { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .gl-guide > summary::before { transition: none; } }
