
/* Mancini Training Core - Frontend */

.mtc-schedule { display:grid; gap:14px; max-width:1200px; margin:0 auto; }
.mtc-event-card { border:1px solid rgba(0,0,0,.08); border-radius:16px; padding:16px; background:#fff; }
.mtc-event-date { font-weight:700; letter-spacing:.02em; margin-bottom:6px; }
.mtc-event-title { margin:0 0 6px; font-size:20px; line-height:1.2; }
.mtc-event-title a { text-decoration:none; }
.mtc-event-row { margin:6px 0; }
.mtc-chips { margin-top:8px; display:flex; flex-wrap:wrap; gap:6px; }
.mtc-chip { font-size:12px; padding:4px 10px; border-radius:999px; background:rgba(0,0,0,.06); }
.mtc-event-actions { margin-top:12px; display:flex; flex-wrap:wrap; gap:10px; }
.mtc-btn { display:inline-block; padding:10px 14px; border-radius:12px; background:#8b1a1a; color:#fff; text-decoration:none; font-weight:700; }
.mtc-btn.secondary { background:rgba(0,0,0,.08); color:#111; }

/* Compact schedule */
.mtc-schedule.mtc-schedule-compact { gap:10px; }
.mtc-compact-event { border:1px solid rgba(0,0,0,.08); border-radius:14px; background:#fff; overflow:hidden; }
.mtc-compact-event > summary { list-style:none; cursor:pointer; display:grid !important; grid-template-columns: minmax(210px, 260px) minmax(0, 1fr) minmax(160px, 240px) 18px; column-gap:14px; align-items:center; padding:14px 16px; }
.mtc-compact-event summary::-webkit-details-marker { display:none; }
.mtc-compact-date { font-weight:700; white-space:nowrap; }
.mtc-compact-title { font-weight:800; line-height:1.15; }
.mtc-compact-title a { text-decoration:none; }
.mtc-compact-location { color:rgba(0,0,0,.72); text-align:right; }
.mtc-compact-chevron { font-weight:900; opacity:.65; text-align:center; }
.mtc-compact-details { padding:0 14px 14px; border-top:1px solid rgba(0,0,0,.06); }
.mtc-compact-details .mtc-event-actions { margin-top:10px; }
.mtc-compact-details .mtc-event-notes { margin-top:10px; color:rgba(0,0,0,.82); }

@media (max-width: 900px){
  .mtc-compact-event summary { grid-template-columns: 1fr 24px; grid-template-rows:auto auto; }
  .mtc-compact-date { grid-column:1/2; }
  .mtc-compact-title { grid-column:1/2; }
  .mtc-compact-location { grid-column:1/2; text-align:left; }
  .mtc-compact-chevron { grid-column:2/3; grid-row:1/3; }
}

/* Ensure theme styles don't break the compact grid */
.mtc-compact-event > summary::-webkit-details-marker { display:none; }
.mtc-compact-event > summary::marker { content:''; }

.mtc-compact-date { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mtc-compact-title { min-width:0; }
.mtc-compact-title a { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mtc-compact-location { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

@media (max-width: 820px) {
  .mtc-compact-event > summary { grid-template-columns: 1fr 18px; grid-template-rows:auto auto auto; row-gap:6px; }
  .mtc-compact-date { grid-column:1; grid-row:1; }
  .mtc-compact-title { grid-column:1; grid-row:2; }
  .mtc-compact-location { grid-column:1; grid-row:3; text-align:left; }
  .mtc-compact-chevron { grid-column:2; grid-row:1 / span 3; }
}
