/* Layout and palette based on the supplied activity screen. */
.promotions-page {
  display: grid;
  grid-template-columns: minmax(88px, 27%) minmax(0, 1fr);
  align-content: start;
  align-items: start;
  column-gap: 12px;
  padding: 0 14px 20px;
  background: #171514;
  color: #f1edf0;
}
.promotions-page > .toolbar {
  grid-column: 1 / -1;
  margin: 0 -14px 14px;
  background: #171514;
  color: #f1edf0;
  border-color: #373132;
}
.promotions-page .promo-tabs {
  position: sticky;
  top: calc(68px + var(--safe-top));
  z-index: 2;
  height: auto;
  max-height: calc(100dvh - 150px - var(--safe-top) - var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  background: transparent;
}
.promotions-page .promo-tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  height: auto;
  padding: 9px 6px;
  border: 1px solid #454148;
  border-radius: 9px;
  background: #252326;
  color: #c2bdc5;
  font-weight: 600;
  text-align: center;
  overflow-wrap: anywhere;
}
.promotions-page .promo-tabs button.active {
  border-color: #e0b899;
  background: #deb697;
  color: #201814;
}
.promotions-page .promo-list { min-width: 0; padding: 0; gap: 14px; }
.promotions-page .promo-card {
  width: 100%;
  border: 1px solid #4d4240;
  border-radius: 12px;
  background: #272126;
  box-shadow: 0 3px 12px #0004;
}
.promotions-page .promo-image { background: #2b2627; }
.promotions-page .promo-image img { object-fit: contain; }
.promotions-page .promo-image .promo-fallback { display: grid; place-items: center; min-height: 90px; padding: 16px; color: #f2dfcf; font-size: 16px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.promotions-page .empty { color: #c2bdc5; }
.promotion-detail-page { min-height: 100vh; min-height: 100dvh; background: #171514; color: #f3f0f1; }
.promotion-detail-page > .toolbar { background: #171514; color: #f3f0f1; border-color: #383335; }
.promotion-detail-page .back-button { width: 44px; height: 44px; }
.promotion-detail-page .detail-body { padding: 12px 16px 24px; }
.promotion-detail-page .content-card {
  padding: 18px 16px;
  background: linear-gradient(150deg, #393839, #16171b 85%);
  border: 1px solid #5b585a;
  border-radius: 18px;
  box-shadow: 0 10px 24px #0005;
  color: #f3f0f1;
}
.promotion-detail-page .content-card h1 { margin-bottom: 14px; color: #f5f2f2; }
.promotion-detail-page .content-card .meta { padding-bottom: 16px; border-bottom: 1px solid #4b494c; color: #bdb9bf; }
.promotion-detail-page .rich-content { color: #d0cbd1; line-height: 1.75; }
.promotion-detail-page .detail-media { max-width: 100%; }
@media (max-width: 320px) {
  .promotions-page { grid-template-columns: minmax(72px, 28%) minmax(0, 1fr); column-gap: 8px; padding-left: 10px; padding-right: 10px; }
  .promotions-page > .toolbar { margin-left: -10px; margin-right: -10px; }
  .promotions-page .promo-tabs button { font-size: 12px; }
}
