/* styles/events.css — Events page
   Designed to match styles.css (parchment + warm brown + soft white cards)
*/

/* Keep links from defaulting to blue inside events */
.rt-events a {
  color: inherit;
}

/* Layout */
.rt-events {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0 0;
}

.rt-events__header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.rt-events__titlewrap h1 {
  margin: 0 0 6px;
}

.rt-events__subtitle {
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
  max-width: 70ch;
}

/* Toggle */
.rt-events__viewtoggle {
  display: inline-flex;
  background: #ffffffcc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
}

.rt-events__togglebtn {
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  color: #2c1a10;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.15s ease, transform 0.1s ease;
}

.rt-events__togglebtn:last-child {
  border-right: none;
}

.rt-events__togglebtn:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.rt-events__togglebtn.is-active {
  background: rgba(139, 75, 43, 0.10);
  font-weight: 600;
}

/* Panel (match section-card feel) */
.rt-events__panel {
  background: #ffffffcc;
  backdrop-filter: blur(3px);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.rt-events__panelhead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rt-events__panelhead--calendar {
  align-items: center;
}

.rt-events__paneltitle {
  margin: 0;
  font-size: 1.2rem;
}

.rt-events__panelmeta {
  opacity: 0.75;
  font-size: 0.9rem;
}

/* Month nav (uses your .btn styles) */
.rt-events__monthnav {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

/* List cards */
.rt-events__list {
  display: grid;
  gap: 14px;
}

.rt-eventcard {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* =========================================================
   UPDATED CARD LAYOUT
   Big image left (full-height), content right
   ========================================================= */

.rt-eventcard__top {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  padding: 14px;
  align-items: stretch;
}

.rt-eventcard__media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
  background: rgba(248, 244, 236, 0.9);
  height: 100%;
  min-height: 220px;
}

.rt-eventcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Header row inside the content column (date + title/meta) */
.rt-eventcard__headerrow {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 8px;
}

/* Date box now lives on the right side with the text */
.rt-eventcard__datebox {
  background: rgba(248, 244, 236, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.rt-eventcard__day {
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.rt-eventcard__md {
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 2px;
}

.rt-eventcard__yr {
  margin-top: 2px;
  font-size: 0.8rem;
  opacity: 0.75;
}

.rt-eventcard__headline .rt-eventcard__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.rt-eventcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.rt-eventcard__timerange {
  opacity: 0.85;
  font-size: 0.95rem;
}

/* Warm "pill" tag */
.rt-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6f3a21;
  background: rgba(139, 75, 43, 0.12);
  border: 1px solid rgba(139, 75, 43, 0.25);
}

.rt-label {
  opacity: 0.75;
  margin-right: 6px;
}

.rt-eventcard__where {
  margin-bottom: 8px;
  opacity: 0.95;
}

.rt-eventcard__desc {
  margin: 0 0 12px;
  opacity: 0.9;
  line-height: 1.5;
  max-width: 85ch;
}

.rt-eventcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Calendar */
.rt-calendar {
  margin-top: 12px;
}

.rt-calendar__dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.rt-calendar__dowcell {
  opacity: 0.75;
  font-size: 0.85rem;
  padding: 6px 8px;
}

.rt-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.rt-calendar__cell {
  min-height: 120px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rt-calendar__cell.is-outside {
  opacity: 0.45;
}

.rt-calendar__daynum {
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 8px;
}

/* Calendar events link should NOT look like default blue */
.rt-calendar__event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #2c1a10;
  background: rgba(248, 244, 236, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.1s ease, background 0.15s ease;
}

.rt-calendar__event:hover {
  background: rgba(248, 244, 236, 1);
  transform: translateY(-1px);
}

.rt-calendar__eventtime {
  font-size: 0.82rem;
  opacity: 0.8;
  white-space: nowrap;
}

.rt-calendar__eventtitle {
  font-size: 0.86rem;
  line-height: 1.2;
  opacity: 0.95;
}

/* Mobile */
@media (max-width: 820px) {
  .rt-events__header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Stack image on top for mobile */
  .rt-eventcard__top {
    grid-template-columns: 1fr;
  }

  .rt-eventcard__media {
    min-height: 200px;
  }

  /* Keep date as a small box next to the title */
  .rt-eventcard__headerrow {
    grid-template-columns: 84px 1fr;
  }

  .rt-calendar__grid {
    gap: 8px;
  }

  .rt-calendar__cell {
    min-height: 96px;
  }

  .rt-calendar__event {
    grid-template-columns: 1fr;
  }
}

.rt-eventcard { position: relative; }
.rt-eventcard__tap {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}
.rt-eventcard__actions,
.rt-eventcard__actions a,
.rt-eventcard__actions button {
  position: relative;
  z-index: 2; /* keeps buttons above the overlay */
}

/* =========================================================
   REMOVED/REPLACED
   - .rt-eventcard__side
   - .rt-eventcard__thumb
   Those were for the old "date + small square image" stack.
   You can delete them safely.
   ========================================================= */
