.pill_schedule_container {
  font-family: var(--pp-pill-schedule_font, inherit);
}
/* Force all descendants to inherit the schedule font so theme rules on
   bare elements (h2, h3, p, etc.) cannot override it. */
.pill_schedule_container * {
  font-family: inherit;
}

.home {
  color: var(--pp-pill-home_tab_text);
  background-color: var(--pp-pill-home_tab_bg);
}
.game_month_title,
.btn_header_wrap,
.header_btn {
  color: var(--pp-pill-month_text);
}
.game_date,
.op_nickname,
.op_name,
.game_time,
.arena,
.Chevron,
.promotion,
.promo_dropdown_header,
.promotion_text {
  color: var(--pp-pill-text);
}
.game_container,
.accordion-content {
  background-color: var(--pp-pill-container_bg);
}

.game_container {
  height: 80px;
  border-radius: 0.25rem;
  width: 100%;
  box-shadow:
    0 1px 3px 0 rgb(0 0 0 / 10%),
    0 1px 2px 0 rgb(0 0 0 / 6%);
  position: relative;
  margin-top: 1rem;
  display: flex;
}

.btn_header_wrap {
  padding-bottom: 0.75rem;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0.75rem;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  border-top: none;
  border-right: none;
  border-left: none;
  border-bottom: 2px solid;
}

#past_games_btn {
  opacity: 0.5;
}

.header_btn {
  margin-right: 0.75rem;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  cursor: pointer;
  border-style: none;
  padding: 0 5px;
}

.game_month_title {
  margin-top: 1.5rem;
  margin-bottom: -0.5rem;
  text-transform: uppercase;
  font-size: 28px;
  font-weight: 500;
}

.home_away_container {
  width: 3rem;
  padding-right: 0.5rem;
  margin-right: 1rem;
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
  height: 80px;
}
.home_away_text {
  transform: translateY(100%) rotate(-90deg);
  transform-origin: 20% 0%;
  font-weight: 700;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
  font-size: 18px;
}
.home_away_text:before {
  content: "";
  float: left;
  margin-top: 100%;
}

.away {
  background-color: #f3f3f3;
  color: #888888;
}
.date_time_location {
  display: flex;
  align-items: center;
}
.date_time_container {
  min-width: 120px;
}
.game_date {
  text-transform: uppercase;
  /* color: #000000; */
  font-weight: 700;
}
.game_time {
  font-size: 16px;
}
.op_logo_name {
  justify-content: flex-start;
  align-items: center;
  display: flex;
  min-width: 400px;
}
.op_logo {
  height: 4rem;
  margin-right: 1rem;
  width: auto;
}
.op_name_nickname {
  min-width: 80px;
}
.op_name {
  font-size: 18px;
}
.op_nickname {
  font-size: 18px;
  font-weight: 700;
}
.arena {
  margin-top: auto;
  margin-bottom: auto;
  margin-right: 1.5rem;
  width: auto;
  display: flex;
  max-width: 200px;
}

.promotion {
  width: auto;
  display: flex;
}
.results {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  margin-bottom: auto;
  margin-left: auto;
  width: auto;
}
.results_wrap {
  display: block;
  min-width: 110px;
  text-align: center;
}
.results_text_wrap {
  display: inline;
}
.results_text_WL {
  text-transform: uppercase;
  font-weight: 700;
  color: rgb(12 104 15);
  font-size: 22px;
}
.win_or_loss_W {
  color: rgb(12 104 15);
}
.win_or_loss_L,
.win_or_loss_SOL {
  color: rgb(211 3 15);
}
.results_text_score {
  font-size: 20px;
  color: var(--pp-pill-text);
}

.pill_right_actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0.75rem;
  padding-right: 0.75rem;
}
.pill_ticket_btn {
  display: inline-block;
  background: var(--pp-pill-home_tab_bg);
  color: var(--pp-pill-home_tab_text);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
  white-space: nowrap;
}
.pill_ticket_btn:hover {
  opacity: 0.85;
  color: var(--pp-pill-home_tab_text);
}

.pill_recap_wrap {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
}
.pill-recap-btn {
  display: inline-block;
  border: 1.5px solid var(--pp-pill-text);
  color: var(--pp-pill-text) !important;
  background: transparent;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.pill-recap-btn:hover {
  background: var(--pp-pill-text);
  color: var(--pp-pill-container_bg) !important;
}

.promotion,
.promo_dropdown_header {
  text-transform: uppercase;
  font-weight: bold;
}

.arrow_wrap {
  text-align: center;
  padding: 0.25rem;
  margin-right: 2.25rem;
  margin-left: auto;
  margin-top: auto;
  margin-bottom: auto;
  height: 1.5rem;
}

.Chevron {
  position: relative;
  display: block;
}
.Chevron:after {
  position: absolute;
  display: block;
  content: "❯";
  font-size: 30px;
  transform: rotate(90deg);
}

.game_container.is-open .arrow_wrap .Chevron:after {
  transform: rotate(-90deg);
}

.pill_accordion {
  cursor: pointer;
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-in-out;
  box-shadow:
    0 1px 3px 0 rgb(0 0 0 / 10%),
    0 1px 2px 0 rgb(0 0 0 / 6%);
  border-radius: 0.25rem;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
}

.promo_group {
  padding: 10px;
  margin-bottom: 10px;
  flex: 50%;
}

.promo_dropdown_header {
  font-size: 18px;
  font-weight: 700;
}

.game_promotion_image {
  flex: 1 1 30%;
  max-width: 30%;
  height: auto;
  object-fit: cover;
}

.game_promotion_image img {
  width: 100%; /* Makes image fit the div */
  height: auto; /* Maintains aspect ratio */
  display: block;
}

/* .promotion_text {
  
  } */

@media screen and (max-width: 980px) {
  .arena,
  .op_name {
    display: none;
  }
  .op_logo_name {
    align-items: center;
    min-width: 100px;
  }
}
@media screen and (max-width: 730px) {
  .promotion {
    display: none;
  }
}
@media screen and (max-width: 500px) {
  .op_nickname {
    display: none;
  }
  .home_away_container {
    width: 2rem;
    margin-right: 0.5rem;
  }
  .home_away_text {
    font-size: 12px;
    transform-origin: 30% 15%;
  }
  .game_date,
  .game_time {
    font-size: 12px;
  }
  .date_time_container {
    min-width: 80px;
  }
  .results_wrap {
    text-align: left;
  }
  .accordion-content {
    flex-direction: column;
  }
}

/* ── Mobile card layout (placed after 500px block so it wins on small screens) ── */
@media screen and (max-width: 640px) {

  /* Card becomes a vertical column */
  .game_container {
    flex-direction: column;
    height: auto;
    padding: 0 14px 16px 42px;
    align-items: stretch;
  }

  /* Full-height home/away strip pinned to the left edge */
  .home_away_container {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 36px;
    height: auto;
    border-radius: 0.25rem 0 0 0.25rem;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .home_away_text {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    transform-origin: center center;
    font-size: 13px;
    display: block;
  }

  /* 1. Date + time — centered, combined onto one line */
  .date_time_location {
    order: 1;
    justify-content: center;
    padding-top: 14px;
  }
  .date_time_container {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: unset;
    text-align: center;
  }
  .game_date,
  .game_time {
    font-size: 14px;
    font-weight: 700;
  }
  .game_time::before {
    content: " \00B7 ";
    font-weight: 400;
  }

  /* 2. Venue — restore and center (hidden by the 980px rule) */
  .arena {
    display: block !important;
    order: 2;
    text-align: center;
    margin: 6px 0 10px;
    max-width: unset;
    font-size: 13px;
    margin-right: 0;
  }

  /* 3. Opponent logo + name — stack vertically, centered */
  .op_logo_name {
    order: 3;
    flex-direction: column;
    align-items: center;
    min-width: unset;
    width: 100%;
    justify-content: center;
    margin-bottom: 14px;
  }
  .op_logo {
    height: 90px;
    width: auto;
    margin-right: 0;
    margin-bottom: 10px;
  }
  .op_name_nickname {
    text-align: center;
    min-width: unset;
  }
  .op_name {
    display: block !important;
    font-size: 20px;
    font-weight: 700;
  }
  .op_nickname {
    display: none !important;
  }

  /* 4. Results (past games) — centered */
  .results {
    order: 4;
    margin-left: 0;
    justify-content: center;
    margin-bottom: 12px;
  }
  .results_wrap {
    text-align: center;
    min-width: unset;
  }

  /* 5. Ticket button + chevron row — ticket grows, chevron stays right */
  .pill_right_actions {
    order: 5;
    width: 100%;
    margin-left: 0;
    padding: 0;
    justify-content: flex-end;
    align-items: center;
  }
  .pill_ticket_btn {
    flex: 1;
    display: block;
    text-align: center;
    padding: 14px 12px;
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 1.5px;
  }

  /* Chevron stays right-aligned whether or not a ticket button is present */
  .arrow_wrap {
    flex-shrink: 0;
    margin-left: 0;
    margin-right: 0.75rem;
  }

  /* Past game summary — order 5, centered */
  .pill_recap_wrap {
    order: 5;
    width: 100%;
    padding: 0;
    justify-content: center;
  }
  .pill-recap-btn {
    flex: 1;
    display: block;
    background: var(--pp-pill-home_tab_bg);
    color: var(--pp-pill-home_tab_text) !important;
    border: none;
    text-align: center;
    padding: 14px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
  }
}
