/* ccm-stories.css — Club Stories: public listing/detail (ccm-stories.html),
   the submit form (ccm-story-submit.html) and the story look reused by the
   admin review screen. Shared styles live in ccm.css. */

.st-head { padding: 48px 48px 36px; border-bottom: 1px solid var(--border); }
.st-head-inner { max-width: 860px; margin: 0 auto; }
.st-stand {
  font-size: var(--text-base); font-weight: 300; line-height: 1.8;
  color: var(--text-secondary); max-width: 640px; margin-top: 18px;
}
.st-stand a { color: var(--red); }
.st-note {
  max-width: 640px; margin-top: 20px; padding: 12px 16px;
  background: var(--surface2); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  font-size: var(--text-base); line-height: 1.6; color: var(--text-secondary);
}
.st-cta {
  display: inline-block; margin-top: 24px;
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  background: var(--red); color: var(--on-accent); padding: 12px 18px; border-radius: 4px;
}
.st-cta:hover { opacity: 0.85; }

.st-wrap { max-width: 860px; margin: 0 auto; padding: 32px 48px 96px; }
.st-empty, .st-loading { color: var(--muted); font-size: var(--text-md); padding: 24px 0; }

/* ── Listing cards: one style for every story ── */
.st-list { display: flex; flex-direction: column; }
.st-card {
  display: grid; grid-template-columns: 1fr 160px; gap: 24px; align-items: start;
  padding: 28px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.st-card:first-child { padding-top: 8px; }
.st-card.no-photo { grid-template-columns: 1fr; }
.st-card:hover .st-card-title { color: var(--red); }
.st-card-title {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl);
  text-transform: uppercase; line-height: 1.1; color: var(--text); margin: 6px 0 8px;
  transition: color 0.15s;
}
.st-card-excerpt { font-size: var(--text-md); font-weight: 300; line-height: 1.7; color: var(--text-secondary); margin-top: 8px; }
.st-card-img { width: 160px; height: 120px; object-fit: cover; border-radius: 2px; background: var(--surface); }

/* ── The story itself ── */
.st-label {
  display: inline-block; font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
  background: var(--surface2); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  padding: 3px 8px;
}
.st-title {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 5vw, 52px);
  line-height: 0.98; text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--text); margin: 14px 0 12px;
}
.st-byline, .st-card-byline {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red);
}
.st-years, .st-date { color: var(--muted); }
.st-trophy { margin-top: 8px; font-size: var(--text-base); color: var(--text-secondary); }
.st-trophy a { color: var(--red); }
.st-body { margin-top: 28px; max-width: 660px; }
.st-body p {
  font-size: var(--text-md); font-weight: 300; line-height: 1.8;
  color: var(--text); margin: 0 0 1.1em;
}
.st-photos { margin-top: 32px; display: flex; flex-direction: column; gap: 28px; max-width: 720px; }
.st-photo { margin: 0; }
.st-photo img { display: block; max-width: 100%; max-height: 720px; border-radius: 2px; background: var(--surface); }
.st-photo figcaption { margin-top: 8px; font-size: var(--text-sm); color: var(--muted); line-height: 1.5; }
.st-back {
  display: inline-block; margin-bottom: 24px;
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red); text-decoration: none;
}
.st-disclaimer {
  margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: var(--text-sm); color: var(--muted); line-height: 1.6; max-width: 660px;
}
.st-disclaimer a { color: var(--red); }

/* ── Submit form ── */
.st-form { max-width: 660px; }
.st-panel {
  border: 1px solid var(--border); border-radius: 4px; padding: 20px 22px;
  background: var(--surface2); margin-bottom: 28px;
}
.st-panel h2 {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg);
  text-transform: uppercase; margin: 0 0 8px; color: var(--text);
}
.st-panel p { font-size: var(--text-base); line-height: 1.6; color: var(--text-secondary); margin: 0 0 12px; }
.st-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.st-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.st-lbl {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.st-hint { font-size: var(--text-sm); color: var(--muted); line-height: 1.5; }
.st-input {
  font-family: var(--font-body); font-size: var(--text-md);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 10px 12px; color: var(--text); background: var(--bg); width: 100%; box-sizing: border-box;
}
.st-input:focus { border-color: var(--red); outline: none; }
textarea.st-input { resize: vertical; line-height: 1.6; }
textarea.st-body-input { min-height: 360px; }
.st-count { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); text-align: right; }
.st-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-base); line-height: 1.5; color: var(--text); margin-bottom: 20px; }
.st-check input { margin-top: 4px; }

.st-photo-list { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.st-photo-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: start; }
.st-photo-item img { width: 96px; height: 72px; object-fit: cover; border-radius: 2px; background: var(--surface); }
.st-photo-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: var(--text-lg); line-height: 1; padding: 4px; }
.st-photo-remove:hover { color: var(--red); }

.st-btn {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em;
  text-transform: uppercase; background: var(--red); border: 1px solid var(--red); color: var(--on-accent);
  display: inline-block; text-decoration: none;
  padding: 12px 18px; border-radius: 4px; cursor: pointer; transition: opacity 0.15s;
}
.st-btn:hover { opacity: 0.85; }
.st-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.st-btn-quiet { background: none; border-color: var(--border); color: var(--text-secondary); }
.st-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.st-error {
  display: none; margin-top: 14px; padding: 10px 12px; border-radius: 4px;
  font-size: var(--text-base); color: var(--red); background: #fff5f5; border: 1px solid #ffd0d0;
}
.st-error.visible { display: block; }
.st-preview { border: 1px dashed var(--border); border-radius: 4px; padding: 24px; margin-bottom: 24px; }
.st-progress { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; color: var(--muted); margin-top: 12px; }

@media (max-width: 860px) {
  .st-head { padding: 32px 16px 28px; }
  .st-wrap { padding: 24px 16px 72px; }
  .st-card { grid-template-columns: 1fr 96px; gap: 16px; }
  .st-card-img { width: 96px; height: 72px; }
  .st-field-row { grid-template-columns: 1fr; gap: 0; }
  .st-photo-item { grid-template-columns: 72px 1fr auto; }
  .st-photo-item img { width: 72px; height: 54px; }
}
