/*
  show-main.css
  The show page: title card with photo and actions, contact form, about text, map, previous/next, and the right rail.
  The card shell (.fm-card, .fm-media), .fm-panel and .fm-more-link are in css/base.css.
  Needs css/base.css and ad-slot.css.
*/


.fm-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout: main column | right rail ---------- */
.fm-show-page { display: grid; gap: var(--fm-gap); align-items: start; padding-block: 0.75rem calc(var(--fm-section) * 0.6); }
.fm-show-page__main { display: grid; gap: var(--fm-gap); min-width: 0; }
.fm-show-page__rail { display: grid; gap: var(--fm-gap); min-width: 0; }
.fm-show-page__rail .fm-ad--mpu { margin-top: 0; }
@media (min-width: 62rem) { .fm-show-page { grid-template-columns: minmax(0, 1fr) 320px; } }
/* Tablet: rail drops under the main column, boxes two across */
@media (min-width: 48rem) and (max-width: 61.99rem) {
  .fm-show-page__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-show-page__rail .fm-ad { grid-column: 1 / -1; }
}

.fm-show-page h2 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 0.75rem; }

/* ---------- Title card ---------- */
.fm-show-hero .fm-media { position: relative; }
.fm-show-hero .fm-media img { aspect-ratio: 16 / 7; }
.fm-show-hero .fm-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.fm-show-hero h1 { font-size: clamp(1.9rem, 1.4rem + 1.7vw, 2.6rem); line-height: 1.1; color: var(--fm-blue); }
.fm-show__badge { position: absolute; left: 0.9rem; bottom: 0.9rem; padding: 0.3rem 0.85rem; border: 1px solid var(--fm-blue); border-radius: 999px; background: #fff; font-size: 0.8125rem; font-weight: 700; color: var(--fm-blue); }
.fm-show__badge.is-soon { background: var(--fm-blue); color: #fff; }
.fm-show__badge.is-past { border-color: #6b7a86; background: #6b7a86; color: #fff; }

.fm-show-meta { display: grid; gap: 0.35rem; margin-top: 0.9rem; font-size: var(--fm-t-sm); color: var(--fm-muted); }
.fm-show-meta b { color: var(--fm-ink); font-weight: 600; }
.fm-show-meta__k { display: inline-block; min-width: 3.4rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.fm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.6rem; padding: 0.5rem 1.1rem;
  font: inherit; font-size: var(--fm-t-sm); font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  color: var(--fm-blue); background: #fff; border: 1px solid var(--fm-blue); border-radius: 999px;
}
.fm-btn:hover { background: var(--fm-blue-tint); }
.fm-btn--primary { color: #fff; background: var(--fm-blue); }
.fm-btn--primary:hover { background: var(--fm-blue-deep); }
.fm-btn--plain { border-color: transparent; }

.fm-show-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }

/* Dropdown menus (Add to calendar, Share): open and close with the button, no framework */
.fm-dd { position: relative; }
.fm-dd__menu { position: absolute; z-index: 20; top: calc(100% + 0.35rem); left: 0; min-width: 13rem; overflow: hidden; border: 1px solid var(--fm-rule); border-radius: var(--fm-radius); background: #fff; box-shadow: 0 10px 24px rgb(0 20 40 / 0.14); }
.fm-dd__menu[hidden] { display: none; }
.fm-dd__menu a { display: block; padding: 0.65rem 0.9rem; font-size: var(--fm-t-sm); }
.fm-dd__menu a:hover { background: var(--fm-blue-tint); color: var(--fm-blue); }

/* ---------- Contact form ---------- */
.fm-contact[hidden] { display: none; }
.fm-contact form { display: grid; gap: 0.4rem; max-width: 30rem; }
.fm-contact label { margin-top: 0.4rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fm-muted); }
.fm-contact :where(input, textarea), .fm-show-dir input {
  width: 100%; padding: 0.55rem 0.8rem; font: inherit; font-size: var(--fm-t-sm); color: var(--fm-ink);
  border: 1px solid var(--fm-rule); border-radius: 8px; background: #fff;
}
.fm-contact :where(input, textarea):focus-visible, .fm-show-dir input:focus-visible { outline: none; border-color: var(--fm-blue); box-shadow: inset 0 0 0 1px var(--fm-blue); }

/* ---------- About text ---------- */
.fm-prose { font-size: 1.0625rem; line-height: 1.7; }
.fm-prose > * + * { margin-top: 1rem; }
.fm-prose a { color: var(--fm-blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Map and directions ---------- */
.fm-show-map { height: 21rem; overflow: hidden; border-radius: var(--fm-radius); background: var(--fm-blue-tint); }
.fm-show-dir { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.9rem; }
.fm-show-dir input { width: 9.5rem; text-transform: uppercase; }
.fm-show-dist { min-height: 1.4rem; margin-top: 0.8rem; font-size: var(--fm-t-sm); color: var(--fm-muted); }
.fm-show-dist b { color: var(--fm-ink); }
.fm-show-dist a { color: var(--fm-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fm-show-fine { margin-top: 0.7rem; font-size: var(--fm-t-xs); line-height: 1.5; color: var(--fm-muted); }

/* ---------- Previous / next: full-width band on the page wash, two halves ---------- */
.fm-show-prevnext { background: var(--fm-wash); }
.fm-show-prevnext__inner { display: grid; }
.fm-show-prevnext a { position: relative; display: block; padding-block: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.fm-show-prevnext a + a { border-top: 1px solid var(--fm-rule); }
.fm-show-prevnext small { display: block; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fm-muted); }
.fm-show-prevnext strong { display: block; margin-top: 0.85rem; font-family: var(--fm-serif); font-size: clamp(1.6rem, 1.2rem + 1.1vw, 2.125rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.fm-show-prevnext span { display: block; margin-top: 0.85rem; font-size: 1.0625rem; color: var(--fm-muted); }
.fm-show-prevnext a:hover strong { color: var(--fm-blue); }
/* Arrows drawn with borders, pointing out toward the other show */
.fm-show-prevnext small::before, .fm-show-prevnext small::after { display: inline-block; width: 0.6rem; height: 0.6rem; border: solid var(--fm-blue); border-width: 0 0 2px 2px; }
.fm-show-prevnext__prev small::before { content: ""; margin-right: 0.65rem; transform: rotate(45deg); }
.fm-show-prevnext__next small::after { content: ""; margin-left: 0.65rem; transform: rotate(-135deg); }
@media (min-width: 48rem) {
  .fm-show-prevnext__inner { grid-template-columns: 1fr 1fr; }
  .fm-show-prevnext a + a { border-top: 0; border-left: 1px solid var(--fm-rule); padding-left: clamp(1.5rem, 1rem + 2vw, 3rem); }
  .fm-show-prevnext a:first-child { padding-right: clamp(1.5rem, 1rem + 2vw, 3rem); }
  .fm-show-prevnext__next { text-align: right; padding-left: 0; padding-right: 0; }
}

/* ---------- Right rail ---------- */
.fm-show-count { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.fm-show-count[hidden] { display: none; }
.fm-show-count div { flex: 1; padding: 0.6rem 0; border-radius: 8px; background: var(--fm-blue-tint); text-align: center; }
.fm-show-count b { display: block; font-family: var(--fm-serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; color: var(--fm-blue); }
.fm-show-count small { font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fm-muted); }

.fm-show-facts dl { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.55rem 0.75rem; margin: 0; font-size: var(--fm-t-sm); }
.fm-show-facts dt { color: var(--fm-muted); }
.fm-show-facts dd { margin: 0; overflow-wrap: anywhere; }
.fm-show-facts dd a { color: var(--fm-blue); font-weight: 600; }

.fm-show-also ul { display: grid; }
.fm-show-also li + li { border-top: 1px solid var(--fm-rule); }
.fm-show-also a { display: flex; align-items: center; gap: 0.8rem; padding-block: 0.7rem; font-size: var(--fm-t-sm); font-weight: 600; line-height: 1.3; }
.fm-show-also li:first-child a { padding-top: 0.2rem; }
.fm-show-also a:hover { color: var(--fm-blue); }
.fm-show-also small { display: block; margin-top: 0.15rem; font-size: var(--fm-t-xs); font-weight: 400; color: var(--fm-muted); }
.fm-show-chip { flex: 0 0 2.9rem; padding: 0.35rem 0 0.3rem; border-radius: 8px; background: var(--fm-blue-tint); text-align: center; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1; color: var(--fm-blue); }
.fm-show-chip b { display: block; margin-top: 0.15rem; font-family: var(--fm-sans); font-size: 1.1875rem; font-weight: 700; letter-spacing: 0; line-height: 1.1; color: var(--fm-ink); }

.fm-show-more p { font-size: var(--fm-t-sm); line-height: 1.5; color: var(--fm-muted); }
.fm-show-more .fm-more-link { margin-top: 0.7rem; }
.fm-promo { background: var(--fm-blue-tint); }
.fm-promo p { margin-bottom: 1rem; font-size: var(--fm-t-sm); line-height: 1.5; color: var(--fm-muted); }

/* ---------- Print: just the show, no site furniture ---------- */
@media print {
  .fm-topbar, .fm-header, .fm-newsletter, .fm-footer, .fm-show-actions, .fm-show-page__rail .fm-ad, .fm-promo, .fm-show-prevnext, .fm-contact, .fm-show-dir { display: none !important; }
  .fm-show-page { grid-template-columns: 1fr; }
  .fm-show-map { height: 14rem; }
}
