/* Theatre Members — Public Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --tm-crimson: #8b1a1a;
  --tm-gold:    #c9a227;
  --tm-green:   #16a34a;
  --tm-amber:   #d97706;
  --tm-red:     #dc2626;
}

/* ── Members directory ───────────────────────────────────────────────────── */
.tm-pub-members {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.tm-pub-member-card {
  background: #fff;
  border: 1px solid #e5e0d8;
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow .15s;
}
.tm-pub-member-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.tm-pub-avatar-img {
  width: 80px; height: 80px;
  border-radius: 50%; object-fit: cover;
  display: block; margin: 0 auto 1rem;
}
.tm-pub-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6b1515, #8b1a1a);
  color: #fff; font-size: 1.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.tm-pub-member-card h3 { margin: 0 0 .3rem; font-size: 1.05rem; font-family: 'Playfair Display', serif; }
.tm-pub-roles  { color: #6b7280; font-size: .85rem; margin: 0 0 .4rem; }
.tm-pub-since  { color: #9ca3af; font-size: .78rem; margin: 0; }

/* ── Productions ─────────────────────────────────────────────────────────── */
.tm-pub-productions { margin: 1.5rem 0; display: flex; flex-direction: column; gap: .75rem; }
.tm-pub-production {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid #6b7280;
  background: #f9f8f7;
  border-radius: 0 8px 8px 0;
}
.tm-pub-prod-body { flex: 1; }
.tm-pub-prod-body h3 { margin: 0 0 .25rem; font-family: 'Playfair Display', serif; font-size: 1.05rem; }
.tm-pub-prod-body p  { margin: 0 0 .2rem; font-size: .85rem; color: #6b7280; }
.tm-pub-status {
  display: inline-block; padding: .2rem .65rem;
  border-radius: 999px; font-size: .73rem; font-weight: 600;
  color: #fff; flex-shrink: 0; align-self: flex-start;
}

/* ── Rehearsal schedule ──────────────────────────────────────────────────── */
.tm-pub-schedule { margin: 1.5rem 0; }
.tm-pub-schedule-month {
  font-family: 'Playfair Display', serif;
  color: var(--tm-crimson);
  font-size: 1.15rem;
  margin: 1.5rem 0 .6rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--tm-gold);
}
.tm-pub-schedule-month:first-child { margin-top: 0; }

.tm-pub-reh-row {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid #e5e0d8;
  border-radius: 8px;
  margin-bottom: .5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  position: relative;
}
.tm-pub-cancelled { opacity: .6; }
.tm-pub-cancelled::after {
  content: 'CANCELLED';
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  color: var(--tm-red); background: #fee2e2;
  padding: .2rem .5rem; border-radius: 4px;
}

.tm-pub-reh-date {
  display: flex; flex-direction: column; align-items: center;
  min-width: 40px;
  padding-right: 1rem;
  border-right: 1px solid #e5e0d8;
}
.tm-pub-reh-date span   { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tm-crimson); font-weight: 700; }
.tm-pub-reh-date strong { font-size: 1.5rem; font-weight: 700; line-height: 1; }

.tm-pub-reh-body { flex: 1; }
.tm-pub-reh-title {
  font-weight: 600; font-size: .95rem;
  margin-bottom: .2rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.tm-pub-reh-type {
  font-size: .72rem; background: #ede9fe; color: #5b21b6;
  padding: .15rem .5rem; border-radius: 999px; font-weight: 500;
}
.tm-pub-reh-cancelled {
  font-size: .72rem; background: #fee2e2; color: var(--tm-red);
  padding: .15rem .5rem; border-radius: 999px; font-weight: 600;
}
.tm-pub-reh-meta { font-size: .82rem; color: #6b7280; margin-bottom: .2rem; }
.tm-pub-reh-notes {
  font-size: .8rem; color: #6b7280; font-style: italic;
  border-left: 3px solid #e5e0d8; padding-left: .5rem; margin-top: .3rem;
}
.tm-pub-empty { color: #9ca3af; font-style: italic; }

/* ── Availability form ───────────────────────────────────────────────────── */
.tm-avail-wrap {
  font-family: 'Inter', sans-serif;
  max-width: 540px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  overflow: hidden;
}

.tm-avail-header {
  background: linear-gradient(135deg, #6b1515, #8b1a1a);
  color: #fff;
  padding: 1.75rem 2rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.tm-avail-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; flex-shrink: 0;
}
.tm-avail-header h2 { margin: 0 0 .2rem; font-family: 'Playfair Display', serif; font-size: 1.4rem; }
.tm-avail-header p  { margin: 0; opacity: .85; font-size: .88rem; }

.tm-avail-card {
  display: flex; gap: 1rem; align-items: flex-start;
  margin: 1.5rem 2rem;
  padding: 1rem 1.25rem;
  background: #faf9f7;
  border: 1px solid #e5e0d8;
  border-left: 4px solid var(--tm-gold);
  border-radius: 8px;
}
.tm-avail-card-icon { font-size: 1.75rem; margin-top: .1rem; flex-shrink: 0; }
.tm-avail-card h3   { margin: 0 0 .3rem; font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--tm-crimson); }
.tm-avail-card p    { margin: 0 0 .2rem; font-size: .85rem; color: #555; }
.tm-avail-card-notes { font-style: italic; color: #6b7280 !important; margin-top: .3rem !important; }

.tm-avail-form { padding: 0 2rem 2rem; }

/* Three big choice buttons */
.tm-avail-choices { display: flex; gap: .75rem; margin-bottom: 1.25rem; }
.tm-avail-choice {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 1rem .5rem;
  border: 2px solid #e5e0d8;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  font-size: .82rem; font-weight: 600; color: #555;
  background: #faf9f7;
  transition: all .15s;
  user-select: none;
}
.tm-avail-choice input { display: none; }
.tm-avail-choice:hover { border-color: #d4c5a9; background: #f3ede3; }
.tm-avail-choice-icon { font-size: 1.5rem; font-weight: 700; }

.tm-avail-choice-available .tm-avail-choice-icon  { color: var(--tm-green); }
.tm-avail-choice-maybe .tm-avail-choice-icon       { color: var(--tm-amber); }
.tm-avail-choice-unavailable .tm-avail-choice-icon { color: var(--tm-red);   }

.tm-avail-choice-available.is-selected   { border-color: var(--tm-green); background: #f0fdf4; }
.tm-avail-choice-maybe.is-selected        { border-color: var(--tm-amber); background: #fffbeb; }
.tm-avail-choice-unavailable.is-selected  { border-color: var(--tm-red);   background: #fef2f2; }

.tm-avail-notes-row { margin-bottom: 1.25rem; }
.tm-avail-notes-row label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; }
.tm-avail-notes-row em    { font-weight: 400; color: #9ca3af; }
.tm-avail-notes-row textarea {
  width: 100%; box-sizing: border-box;
  padding: .55rem .75rem;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-family: 'Inter', sans-serif; font-size: .875rem;
  resize: vertical;
}
.tm-avail-notes-row textarea:focus { outline: none; border-color: var(--tm-crimson); box-shadow: 0 0 0 3px rgba(139,26,26,.1); }

.tm-avail-submit {
  display: block; width: 100%;
  padding: .8rem; background: var(--tm-crimson);
  color: #fff; border: none; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.tm-avail-submit:hover { background: #6b1515; }

.tm-avail-success {
  margin: 0 2rem 1.5rem;
  padding: 1.25rem; text-align: center;
  background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 8px;
}
.tm-avail-success-icon { font-size: 2rem; font-weight: 700; color: var(--tm-green); }
.tm-avail-success h3   { margin: .25rem 0 .4rem; font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.tm-avail-success p    { margin: 0; font-size: .88rem; color: #555; }

.tm-avail-info, .tm-avail-error { padding: 1.5rem 2rem; }
.tm-avail-error { background: #fef2f2; color: #991b1b; border-radius: 8px; }

/* Radio → button selection via JS */
.tm-avail-choice.is-selected { /* applied by JS below */ }
