/* Connect Music Events v18: shared ticket columns and mobile readability.
   No brand colours, text content, logo artwork or event links are changed. */
@media screen {
  /* Every ticket row uses the same tracks, independent of button-label length. */
  body[data-page="tickets.html"] .tickets-list .ticket-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    min-width: 0;
  }
  body[data-page="tickets.html"] .tickets-list .ticket-status p { margin: 0; }
  body[data-page="tickets.html"] .tickets-list .ticket-status .badge { max-width: 100%; }
  body[data-page="tickets.html"] .ticket-actions { min-width: 0; }
  /* Old poster-sized lettering was clipped inside ticket thumbnails. */
  body[data-page="tickets.html"] .ticket-thumb .poster:not(.poster-brasa) .poster-title {
    font-size: 12px;
    font-size: clamp(9px,12cqw,18px);
    left: 8%; right: 8%; bottom: 13%; top: auto;
    line-height: 1.05; max-width: none;
  }
  body[data-page="tickets.html"] .ticket-thumb .poster .poster-title small { display: none; }
}
@media screen and (min-width: 1151px) {
  body[data-page="tickets.html"] .tickets-list .ticket-row {
    grid-template-columns: 120px minmax(0,1.8fr) minmax(0,1fr) clamp(210px,17vw,280px);
  }
  body[data-page="tickets.html"] .tickets-list .ticket-actions .btn { width: 100%; }
}
@media screen and (max-width: 900px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .header-inner, .nav, .detail-copy, .detail-main > *, .intro-grid > *,
  .contact-grid > *, .footer-grid > *, .facts-strip > *, .ticket-row > * { min-width: 0; }
  .menu-toggle { flex-shrink: 0; touch-action: manipulation; }
  .js .header .nav.is-open {
    flex-wrap: nowrap;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(24px,env(safe-area-inset-bottom));
    box-sizing: border-box;
  }
  .header .nav > a, .header .nav > .dropdown { flex-shrink: 0; }
  .header .nav .dropdown-panel a { min-height: 44px; display: flex; align-items: center; }
  .header .nav > .btn { margin-bottom: 0; min-height: 48px; }
  .header .nav a, .header .nav summary { overflow-wrap: anywhere; }
  .no-js .header .nav { width: 100%; }
  .no-js .header .nav > a:not(.btn) { padding-block: 10px; }
  .detail-main { grid-template-columns: minmax(0,1fr); }
  .detail-aside { grid-row: 1; }
  .booking-box { position: static; }
  .related .event-card:last-child { display: flex; }
  .contact-grid { grid-template-columns: minmax(0,1fr); }
  .field input, .field select, .field textarea { font-size: 16px; }
  .field label { font-size: 13px; }
  .btn, .filter-btn, .text-link { touch-action: manipulation; }
  .footer-grid, .form-grid, .admin-grid { min-width: 0; }
}
@media screen and (max-width: 640px) {
  :root { --pad: max(18px,5vw,env(safe-area-inset-left),env(safe-area-inset-right)); }
  body { font-size: 16px; }
  .section { padding-block: 46px; }
  .eyebrow { font-size: 11px; line-height: 1.6; }
  .eyebrow::before { flex-shrink: 0; }
  .topbar { font-size: 9px; line-height: 1.6; padding-inline: var(--pad); }
  .topbar > span { text-align: center; white-space: normal; }
  .breadcrumb { font-size: 12px; line-height: 1.6; flex-wrap: wrap; }
  .page-top { padding-block: 30px 34px; }
  .page-top h1 { font-size: clamp(32px,9vw,43px); overflow-wrap: anywhere; }
  .section-top h2, .article-copy h2, .luxury-copy h2 {
    font-size: clamp(28px,8vw,36px); overflow-wrap: break-word;
  }
  .hero-copy .lead, .detail-copy .lead, .page-top p,
  .article-copy p, .prose p, .prose li, .faq-answer,
  .contact-info > p, .contact-form > p, .registration-card p,
  .value-card p, .intro-copy p, .join-card p, .step p,
  .luxury-copy p, .booking-box p, .section-top p {
    font-size: 15px; line-height: 1.8;
  }
  .detail-copy .eyebrow, .hero-copy .eyebrow { font-size: 11px; }
  .detail-copy h1 { overflow-wrap: break-word; }
  .home-page .home-hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .home-page .hero-content { padding-top: 36px; padding-bottom: 28px; }
  .home-page .hero-copy { width: 100%; }
  .home-page .hero-copy .lead { max-width: none; }
  .home-page .hero-bottom {
    position: relative; left: auto; right: auto; bottom: auto;
    margin-inline: var(--pad); padding-block: 20px; min-height: 0;
  }
  .home-page .next-event { display: grid; grid-template-columns: auto minmax(0,1fr) 44px; gap: 12px; }
  .home-page .next-event .date { font-size: 24px; white-space: nowrap; }
  .home-page .next-event .date > .small { display: block; }
  .home-page .next-event .small { font-size: 11px; line-height: 1.5; }
  .home-page .next-event strong { font-size: 12px; line-height: 1.5; }
  .home-page .next-event a { width: 44px; height: 44px; margin: 0; }
  .hero-luxe-card { max-width: 100%; }
  .hero-luxe-list li { font-size: 14px; }
  .hero-luxe-list strong { font-size: 12px; }
  .hero-copy .button-row, .detail-copy .button-row, .article-copy .button-row {
    display: grid; grid-template-columns: minmax(0,1fr); gap: 12px;
  }
  .btn, .btn-small, .hero-copy .btn, .detail-copy .btn, .booking-box .btn,
  .ticket-actions .btn, .cta-band .btn, .intro-copy .btn {
    min-height: 48px; font-size: 14px; line-height: 1.5;
    padding: 12px 16px; gap: 12px; max-width: 100%;
  }
  .button-row > .btn { width: 100%; }
  .btn > span { min-width: 0; }
  .btn .icon { flex-shrink: 0; }
  .text-link { min-height: 44px; font-size: 13px; }
  .filter-row { gap: 8px; }
  .filter-btn { min-height: 44px; padding: 10px 12px; font-size: 12px; }
  .filter-count { font-size: 12px; }
  .card-body { padding: 22px; }
  .card-body h3 { font-size: 25px; overflow-wrap: break-word; }
  .card-body p { font-size: 15px; line-height: 1.75; }
  .card-body .category { font-size: 11px; line-height: 1.6; }
  .card-info { font-size: 12px; line-height: 1.65; }
  .card-footer { flex-direction: column; align-items: stretch; gap: 6px; }
  .card-footer a { font-size: 13px; line-height: 1.5; min-height: 44px; justify-content: space-between; }
  .badge { font-size: 11px; line-height: 1.5; }
  .card-art .art-tags { left: 16px; right: 16px; top: 16px; }
  body .card-art .poster:not(.poster-brasa) .poster-title {
    font-size: clamp(26px,11vw,55px);
    font-size: clamp(26px,13cqw,60px);
    line-height: 1; left: 24px; right: 20px; max-width: none;
  }
  body .card-art .poster:not(.poster-brasa) .poster-title small {
    font-size: 11px; line-height: 1.4; letter-spacing: .1em;
  }
  .detail-art .poster:not(.poster-brasa) .poster-title {
    font-size: clamp(32px,11vw,64px);
    font-size: clamp(32px,12cqw,70px);
  }
  .facts-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 8px; }
  .fact { padding-inline: 8px; gap: 8px; }
  .fact small { font-size: 11px; }
  .fact strong { font-size: 12px; overflow-wrap: anywhere; }
  .fact .icon { width: 18px; height: 18px; }
  .booking-box { padding: 24px; }
  .booking-box .eyebrow { font-size: 11px; }
  .booking-box .info-row { display: flex; font-size: 12px; }
  .booking-notice, .aside-secondary, .notice, .source-note { font-size: 12px; line-height: 1.8; }
  .article-copy .source-note, .source-note { font-size: 12px !important; }
  .topic { grid-template-columns: 24px minmax(0,1fr); }
  .topic h3 { font-size: 20px; }
  .topic p { font-size: 14px; }
  .topic .text-link { font-size: 13px; }
  .faq-item > summary { min-height: 48px; font-size: 14px; line-height: 1.7; }
  .faq-answer { overflow-wrap: anywhere; }
  /* Consistent stacked status/admission labels and full-width actions. */
  body[data-page="tickets.html"] .ticket-row {
    grid-template-columns: 78px minmax(0,1fr);
    grid-template-areas: 'image title' 'status status' 'actions actions';
    gap: 18px 16px; padding: 18px;
  }
  body[data-page="tickets.html"] .ticket-thumb { grid-area: image; height: 88px; min-width: 0; }
  body[data-page="tickets.html"] .ticket-title { grid-area: title; }
  body[data-page="tickets.html"] .ticket-title h2 { font-size: 20px; line-height: 1.25; }
  body[data-page="tickets.html"] .ticket-title p { font-size: 12px; line-height: 1.65; }
  body[data-page="tickets.html"] .ticket-status { grid-area: status; }
  body[data-page="tickets.html"] .ticket-status .badge { font-size: 12px; }
  body[data-page="tickets.html"] .ticket-status p { font-size: 12px; line-height: 1.65; }
  body[data-page="tickets.html"] .ticket-actions { grid-area: actions; display: grid; gap: 6px; }
  body[data-page="tickets.html"] .ticket-actions .text-link { font-size: 13px; min-height: 44px; }
  .registration-card { padding: 24px; }
  .contact-form { padding: 24px 20px; }
  .field input, .field select, .field textarea { font-size: 16px; min-height: 48px; }
  .check-field { font-size: 13px; }
  .check-field input { min-width: 20px; min-height: 20px; }
  .form-help, .form-result p, .copy-status { font-size: 12px; line-height: 1.7; }
  .contact-route h3 { font-size: 18px; }
  .contact-route a { font-size: 14px; }
  .contact-route p { font-size: 12px; }
  .form-result { padding: 18px; }
  .footer { padding-bottom: env(safe-area-inset-bottom); }
  .footer-grid { gap: 30px; }
  .footer h3 { font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
  .footer-about p { font-size: 14px; line-height: 1.8; }
  .footer-links { font-size: 13px; gap: 4px; }
  .footer-links a { min-height: 40px; display: flex; align-items: center; }
  .footer-contact { font-size: 14px; }
  .footer-contact .text-link { font-size: 13px; }
  .footer-bottom { font-size: 12px; line-height: 1.7; }
  .footer-legal { gap: 12px 20px; }
  .footer-legal a { display: inline-flex; align-items: center; min-height: 40px; }
  .admin-grid { grid-template-columns: minmax(0,1fr); }
}
@media screen and (max-width: 479px) {
  .footer-grid { grid-template-columns: minmax(0,1fr); }
  .footer-about, .footer-contact { grid-column: auto; }
}
@media screen and (max-width: 360px) {
  .brand img { width: 172px; }
  .header-inner { gap: 16px; }
  body[data-page="tickets.html"] .ticket-row { grid-template-columns: 64px minmax(0,1fr); gap: 16px 12px; padding: 16px; }
  body[data-page="tickets.html"] .ticket-title h2 { font-size: 18px; }
  .card-body { padding: 18px; }
}
@media screen and (max-width: 900px) and (max-height: 500px) {
  .header-inner { height: 65px; }
  .brand img { width: 180px; max-height: 54px; }
  .js .header .nav.is-open { padding-top: 12px; }
  .header .nav > a:not(.btn), .header .dropdown > summary { padding-block: 10px; }
}
@media (hover: none) {
  .event-card:hover, .btn:hover { transform: none; }
}
