/* Upcoming productions — what the dynamic version adds.
 *
 * The CARD itself is styled by the ported front.css: .current-production and its
 * children came from the live site and are deliberately left alone. This file holds
 * only the two things the dynamic version needs.
 */

/* The whole card opens the production. Absolutely positioned, so the card's own box
 * and the table layout inside it are untouched. The label is moved off-screen rather
 * than set to display:none, so the link still has an accessible name. */
.current-production-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  text-indent: -9999px;
  overflow: hidden;
}

/* THE BUY TICKETS BUTTON.
 *
 * front.css positions `.current-production .slide-ticket`, but the markup has always
 * used the class `current-production-ticket`, so that rule never matched and the
 * <img> rendered 0x0 — measured on the live page, not guessed. The h2 beside it
 * reserves padding-right:150px for a button that was not being drawn, which is what
 * makes this a class-name slip rather than a design decision.
 *
 * DELIBERATE DEVIATION from the live page: it is restored here, because an editor can
 * now set the ticket link and a button nobody can see would make that field a lie.
 * z-index keeps it above the card's cover link so it stays separately clickable.
 */
.current-production-ticket {
  width: 130px;
  height: auto;
  position: absolute;
  top: 25px;
  right: 30px;
  z-index: 6;
}
@media all and (max-width: 800px) {
  .current-production-ticket { width: 150px; top: 190px; right: auto; left: 15px; }
}

/* Nothing on at the moment. */
.production-empty { max-width: 1200px; margin: 35px auto 40px; text-align: center; }

/* A production's own page: the description only — the card's facts (dates, venue,
 * credits, booking) are rendered into the header band by production_header_details().
 * The band's own text is styled by front.css .page-title-inner p; only the link needs
 * a colour, and it takes the site's yellow-on-dark link treatment (as .production-back),
 * because the inherited red is unreadable on the stripecode band. */
.production-body { padding-top: 10px; }
.production-body .entry-content { max-width: 900px; }
.production-back { margin-top: 30px; }
.production-back a { color: #fdcb01; }
.production-back a:hover { color: #fff; }

.page-title-inner .production-header-summary a { color: #fdcb01; }
.page-title-inner .production-header-summary a:hover { color: #fff; }
.page-title-inner .production-header-summary strong { font-weight: 600; }
.page-title-inner .production-header-summary .production-header-ticket { font-weight: 600; }

/* --- the admin's card-picture control -------------------------------------- */

.production-image-preview {
  width: 220px;
  height: 150px;
  margin: 6px 0 10px;
  border: 1px solid #e4e4e8;
  border-radius: 6px;
  background-color: #111;
  background-size: cover;
  background-position: center center;
}

.production-image-remove {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: #666;
}
