/* Colorado Connection Collective — Ticket Tailor calendar widget.
   All rules are namespaced under .ttc-root (or the .ttc-modal-* overlay,
   which lives outside .ttc-root so it can cover the whole page). Override
   colors by setting the listed CSS variables from Squarespace Custom CSS. */

.ttc-root {
  --ttc-accent: #222;
  --ttc-accent-text: #fff;
  --ttc-border: rgba(0, 0, 0, 0.12);
  --ttc-muted: rgba(0, 0, 0, 0.6);
  --ttc-surface: rgba(0, 0, 0, 0.03);
  --ttc-surface-hover: rgba(0, 0, 0, 0.06);
  --ttc-radius: 12px;

  font-family: inherit;
  color: inherit;
  max-width: 1100px;
  margin: 0 auto;
}
.ttc-root *,
.ttc-root *::before,
.ttc-root *::after {
  box-sizing: border-box;
}

.ttc-loading,
.ttc-error,
.ttc-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  opacity: 0.75;
  font-size: 0.95rem;
}
.ttc-error a {
  color: inherit;
  text-decoration: underline;
}

.ttc-list,
.ttc-calendar {
  margin-bottom: 3rem;
}
.ttc-list-heading,
.ttc-calendar-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.2;
}

/* ---------- List view: horizontal row cards ---------- */

.ttc-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ttc-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--ttc-border);
  border-radius: var(--ttc-radius);
  overflow: hidden;
  background: var(--ttc-surface);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.ttc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.ttc-card:focus-visible {
  outline: 2px solid var(--ttc-accent);
  outline-offset: 2px;
}

.ttc-card-image {
  flex: 0 0 340px;
  width: 340px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.ttc-card-body {
  padding: 1.1rem 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.ttc-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.4rem;
}

.ttc-card-meta {
  font-size: 0.85rem;
  color: var(--ttc-muted);
  margin-bottom: 0.7rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}
.ttc-card-dot {
  opacity: 0.5;
}

.ttc-card-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1.1rem;
  color: var(--ttc-muted);
  flex: 1;
}

.ttc-card-cta {
  display: inline-block;
  align-self: flex-start;
  padding: 0.55rem 1.1rem;
  background: var(--ttc-accent);
  color: var(--ttc-accent-text);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: auto;
}
.ttc-card:hover .ttc-card-cta {
  opacity: 0.9;
}
.ttc-card-cta-disabled {
  opacity: 0.5;
}

@media (max-width: 640px) {
  .ttc-card {
    flex-direction: column;
  }
  .ttc-card-image {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 3 / 2;
  }
}

/* ---------- Calendar view ---------- */

.ttc-month {
  border: 1px solid var(--ttc-border);
  border-radius: var(--ttc-radius);
  overflow: hidden;
}
.ttc-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--ttc-border);
  font-weight: 600;
  font-size: 1.05rem;
}
.ttc-month-title {
  flex: 1;
  text-align: center;
}
.ttc-month-nav {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  color: inherit;
  font-family: inherit;
}
.ttc-month-nav:hover {
  background: var(--ttc-surface-hover);
}

.ttc-month-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ttc-muted);
}
.ttc-month-dow-cell {
  padding: 0.55rem 0;
  text-align: center;
}

.ttc-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.ttc-day {
  min-height: 7rem;
  padding: 0.4rem 0.45rem;
  border-top: 1px solid var(--ttc-border);
  border-right: 1px solid var(--ttc-border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}
.ttc-day:nth-child(7n) {
  border-right: none;
}
.ttc-day-off {
  background: var(--ttc-surface);
  opacity: 0.5;
}
.ttc-day-num {
  font-size: 0.82rem;
  font-weight: 500;
}
.ttc-day-today .ttc-day-num {
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  align-items: center;
  justify-content: center;
  background: var(--ttc-accent);
  color: var(--ttc-accent-text);
  border-radius: 999px;
}

.ttc-day-events {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
}
.ttc-day-event {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  padding: 0.25rem;
  border-radius: 6px;
  background: var(--ttc-surface);
  transition: background 120ms ease;
  min-width: 0;
}
.ttc-day-event:hover {
  background: var(--ttc-surface-hover);
}
.ttc-day-event-thumb {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.ttc-day-event-title {
  font-size: 0.72rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-width: 0;
}
.ttc-day-event-more {
  font-size: 0.7rem;
  color: var(--ttc-muted);
  padding-left: 0.25rem;
}

/* Single-event day: fill the cell with the event image. */
.ttc-day-single {
  padding: 0;
  overflow: hidden;
}
.ttc-day-single-link {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
}
.ttc-day-single-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ttc-day-single .ttc-day-num {
  position: absolute;
  top: 0.35rem;
  left: 0.45rem;
  z-index: 2;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.ttc-day-single.ttc-day-today .ttc-day-num {
  background: var(--ttc-accent);
  color: var(--ttc-accent-text);
  text-shadow: none;
}

@media (max-width: 700px) {
  .ttc-day {
    min-height: 5rem;
    padding: 0.3rem 0.2rem;
    gap: 0.2rem;
  }
  .ttc-day-num {
    font-size: 0.75rem;
  }
  .ttc-day-event {
    padding: 0.15rem;
    gap: 0.25rem;
  }
  .ttc-day-event-thumb {
    width: 1.5rem;
    height: 1.5rem;
  }
  .ttc-day-event-title {
    display: none;
  }
  .ttc-month-dow-cell {
    font-size: 0.6rem;
    padding: 0.45rem 0;
  }
}

/* ---------- Checkout modal (lives outside .ttc-root) ---------- */

.ttc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
  animation: ttc-modal-fade 140ms ease-out;
}
@keyframes ttc-modal-fade {
  from { background: rgba(0, 0, 0, 0); }
  to   { background: rgba(0, 0, 0, 0.72); }
}

.ttc-modal-frame {
  position: relative;
  width: 100%;
  max-width: 820px;
  height: 100%;
  max-height: 92vh;
  box-sizing: border-box;
}

.ttc-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 14px;
  background: white;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: block;
}


.ttc-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.ttc-modal-close:hover {
  background: #222;
}

@media (max-width: 640px) {
  .ttc-modal-backdrop {
    padding: 0;
  }
  .ttc-modal-frame {
    max-width: 100%;
    max-height: 100%;
  }
  .ttc-modal-iframe {
    border-radius: 0;
  }
  .ttc-modal-close {
    top: 0.6rem;
    right: 0.6rem;
  }
}
