/* Towne Hall Public Event Detail Page */

.thp-event-public {
  --thp-event-public-text: #1d2327;
  --thp-event-public-muted: #6f7378;
  --thp-event-public-border: #e3e5e8;
  --thp-event-public-soft: #f7f8f9;
  --thp-event-public-accent: #8a78b9;
  --thp-event-public-accent-soft: #f0ecf8;
  padding: 56px 24px 80px;
  color: var(--thp-event-public-text);
  font-family: inherit;
  background: #fff;
}

.thp-event-public *,
.thp-event-public *::before,
.thp-event-public *::after { box-sizing: border-box; }

.thp-event-public-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.thp-event-public-hero {
  display: grid;
  grid-template-columns: minmax(320px, 46%) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--thp-ed-hero-radius, 20px) !important;
  background: #24212c;
  box-shadow: 0 18px 50px rgba(29,35,39,.12);
}

.thp-event-public-hero-media {
  min-height: 480px;
  background: #1d1e23;
}

.thp-event-public-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.thp-event-public-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  color: #797d86;
}

.thp-event-public-image-placeholder .dashicons {
  width: 48px;
  height: 48px;
  font-size: 48px;
}

.thp-event-public-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--thp-ed-hero-padding, 50px);
  color: #fff;
  background: var(
    --thp-ed-hero-background,
    linear-gradient(145deg,#302b3a 0%,#24212c 70%)
  );
}

.thp-event-public-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--thp-ed-eyebrow-color, #c8bddf);
  font-family: var(--thp-ed-eyebrow-family, inherit);
  font-size: var(--thp-ed-eyebrow-size, 11px);
  font-weight: var(--thp-ed-eyebrow-weight, 700);
  line-height: var(--thp-ed-eyebrow-line-height, 1.3);
  letter-spacing: var(--thp-ed-eyebrow-letter-spacing, .12em);
  text-transform: uppercase;
}

.thp-event-public-hero h1 {
  margin: 0;
  color: var(--thp-ed-title-color, #fff) !important;
  font-family: var(--thp-ed-title-family, inherit) !important;
  font-size: var(--thp-ed-title-size, 48px) !important;
  font-weight: var(--thp-ed-title-weight, 600) !important;
  line-height: var(--thp-ed-title-line-height, 1.05) !important;
  letter-spacing: var(--thp-ed-title-letter-spacing, -.03em) !important;
}

.thp-event-public-subtitle {
  margin: 16px 0 0;
  color: var(--thp-ed-subtitle-color, #d7d2df);
  font-family: var(--thp-ed-subtitle-family, inherit);
  font-size: var(--thp-ed-subtitle-size, 18px);
  font-weight: var(--thp-ed-subtitle-weight, 400);
  line-height: var(--thp-ed-subtitle-line-height, 1.5);
  letter-spacing: var(--thp-ed-subtitle-letter-spacing, 0);
}

.thp-event-public-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
}

.thp-event-public-facts > div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--thp-ed-meta-color, #e4e0e8);
  font-family: var(--thp-ed-meta-family, inherit);
  font-size: var(--thp-ed-meta-size, 13px);
  font-weight: var(--thp-ed-meta-weight, 500);
  line-height: var(--thp-ed-meta-line-height, 1.4);
  letter-spacing: var(--thp-ed-meta-letter-spacing, 0);
}

.thp-event-public-facts .dashicons {
  color: var(--thp-ed-meta-icon-color, #afa0cd);
}

.thp-event-public-facts strong {
  font: inherit;
  color: inherit;
}

.thp-event-public-primary-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 32px;
}

.thp-event-public-ticket-button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--thp-ed-cta-radius, 999px);
  color: var(--thp-ed-cta-color, #332c40);
  font-family: var(--thp-ed-cta-family, inherit);
  font-size: var(--thp-ed-cta-size, 16px);
  font-weight: var(--thp-ed-cta-weight, 700);
  line-height: var(--thp-ed-cta-line-height, 1);
  letter-spacing: var(--thp-ed-cta-letter-spacing, 0);
  background: var(--thp-ed-cta-background, #d9cfeb);
  cursor: not-allowed;
}

.thp-event-public-primary-action > span {
  color: var(--thp-ed-helper-color, #a9a2b2);
  font-family: var(--thp-ed-helper-family, inherit);
  font-size: var(--thp-ed-helper-size, 11px);
  font-weight: var(--thp-ed-helper-weight, 400);
  line-height: var(--thp-ed-helper-line-height, 1.4);
  letter-spacing: var(--thp-ed-helper-letter-spacing, 0);
}

.thp-event-public-content-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 340px;
  gap: 52px;
  padding: 56px 0 0;
}

.thp-event-public-summary {
  margin: 0 0 38px;
  color: var(--thp-ed-summary-color, #1d2327);
  font-family: var(--thp-ed-summary-family, inherit);
  font-size: var(--thp-ed-summary-size, 24px);
  font-weight: var(--thp-ed-summary-weight, 400);
  line-height: var(--thp-ed-summary-line-height, 1.5);
  letter-spacing: var(--thp-ed-summary-letter-spacing, -.015em);
}

.thp-event-public-section {
  padding: 34px 0;
  border-top: 1px solid var(--thp-event-public-border);
}

.thp-event-public-section h2 {
  margin: 0 0 16px;
  color: var(--thp-ed-section-title-color, var(--thp-event-public-text));
  font-family: var(--thp-ed-section-title-family, inherit);
  font-size: var(--thp-ed-section-title-size, 24px);
  font-weight: var(--thp-ed-section-title-weight, 600);
  line-height: var(--thp-ed-section-title-line-height, 1.25);
  letter-spacing: var(--thp-ed-section-title-letter-spacing, 0);
}

.thp-event-public-copy {
  color: var(--thp-ed-body-color, #464b50);
  font-family: var(--thp-ed-body-family, inherit);
  font-size: var(--thp-ed-body-size, 16px);
  font-weight: var(--thp-ed-body-weight, 400);
  line-height: var(--thp-ed-body-line-height, 1.75);
  letter-spacing: var(--thp-ed-body-letter-spacing, 0);
}

.thp-event-public-copy p:first-child { margin-top: 0; }
.thp-event-public-copy p:last-child { margin-bottom: 0; }

.thp-event-public-occurrences {
  display: grid;
  gap: 10px;
}

.thp-event-public-occurrence {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid var(--thp-event-public-border);
  border-radius: 12px;
  background: var(--thp-event-public-soft);
}

.thp-event-public-occurrence > .dashicons { color: var(--thp-event-public-accent); }

.thp-event-public-occurrence strong,
.thp-event-public-occurrence span { display: block; }

.thp-event-public-occurrence span {
  margin-top: 2px;
  color: var(--thp-event-public-muted);
  font-size: 12px;
}

.thp-event-public-aside {
  display: grid;
  align-content: start;
  gap: 16px;
}

.thp-event-public-info-card,
.thp-event-public-calendar-card {
  border: 1px solid var(--thp-event-public-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(29,35,39,.04);
}

.thp-event-public-info-card { padding: 20px; }

.thp-event-public-info-card h3 {
  margin: 0 0 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
}

.thp-event-public-info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--thp-event-public-border);
}

.thp-event-public-info-row span {
  color: var(--thp-event-public-muted);
  font-size: 12px;
}

.thp-event-public-info-row strong {
  text-align: right;
  font-size: 12px;
}

.thp-event-public-calendar-card {
  display: flex;
  gap: 13px;
  padding: 18px;
  background: var(--thp-event-public-accent-soft);
}

.thp-event-public-calendar-card > .dashicons { color: var(--thp-event-public-accent); }

.thp-event-public-calendar-card strong,
.thp-event-public-calendar-card span { display: block; }

.thp-event-public-calendar-card span {
  margin-top: 3px;
  color: var(--thp-event-public-muted);
  font-size: 11px;
  line-height: 1.45;
}

@media screen and (max-width: 960px) {
  .thp-event-public-hero { grid-template-columns: 1fr; }
  .thp-event-public-hero-media,
  .thp-event-public-image,
  .thp-event-public-image-placeholder {
    min-height: 360px;
    max-height: 520px;
  }
  .thp-event-public-content-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 640px) {
  .thp-event-public { padding: 24px 16px 56px; }
  .thp-event-public-hero { border-radius: var(--thp-ed-hero-radius, 15px) !important; }
  .thp-event-public-hero-media,
  .thp-event-public-image,
  .thp-event-public-image-placeholder { min-height: 280px; }
  .thp-event-public-hero-content { padding: 30px 24px 34px; }
  .thp-event-public-content-grid {
    gap: 24px;
    padding-top: 36px;
  }
  .thp-event-public-facts { display: grid; }
}

/* ==========================================================
   Public Event Ticket Purchase
========================================================== */

.thp-event-public-ticket-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.thp-event-public-ticketing {
  scroll-margin-top: 120px;
}

.thp-event-public-ticket-notice {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
}

.thp-event-public-ticket-notice.is-success {
  background: #edf7f1;
  color: #2f6849;
}

.thp-event-public-ticket-notice.is-error {
  background: #fff3e6;
  color: #8a5b14;
}

.thp-ticket-purchase-form {
  display: grid;
  gap: 20px;
}

.thp-ticket-date-selector {
  display: grid;
  gap: 8px;
}

.thp-ticket-date-selector h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.thp-ticket-date-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--thp-event-public-border);
  border-radius: 10px;
  cursor: pointer;
}

.thp-ticket-date-option:has(input:checked) {
  border-color: var(--thp-event-public-accent);
  background: var(--thp-event-public-accent-soft);
}

.thp-ticket-type-list {
  display: grid;
  gap: 10px;
}

.thp-ticket-type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--thp-event-public-border);
  border-radius: 12px;
  background: #fff;
}

.thp-ticket-type.is-unavailable {
  opacity: .56;
  background: #fafafa;
}

.thp-ticket-type-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.thp-ticket-type-content h3 {
  margin: 0;
  font-size: 16px;
}

.thp-ticket-type-content p {
  margin: 5px 0 0;
  color: var(--thp-event-public-muted);
  font-size: 12px;
}

.thp-ticket-type-price {
  white-space: nowrap;
  font-size: 18px;
}

.thp-ticket-type-purchase {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.thp-ticket-availability-label {
  color: var(--thp-event-public-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.thp-ticket-quantity {
  display: grid;
  grid-template-columns: 36px 50px 36px;
  overflow: hidden;
  border: 1px solid var(--thp-event-public-border);
  border-radius: 999px;
}

.thp-ticket-quantity button,
.thp-ticket-quantity input {
  min-height: 36px;
  border: 0;
  background: #fff;
  text-align: center;
}

.thp-ticket-quantity button {
  cursor: pointer;
  font-size: 18px;
}

.thp-ticket-quantity input {
  width: 50px;
  padding: 0;
  appearance: textfield;
}

.thp-ticket-quantity input::-webkit-inner-spin-button,
.thp-ticket-quantity input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.thp-ticket-purchase-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.thp-ticket-action-button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.thp-ticket-action-button.is-primary {
  border: 1px solid #322b40;
  color: #fff;
  background: #322b40;
}

.thp-ticket-action-button.is-secondary {
  border: 1px solid var(--thp-event-public-border);
  color: var(--thp-event-public-text);
  background: #fff;
}

@media screen and (max-width: 640px) {
  .thp-ticket-type {
    grid-template-columns: 1fr;
  }

  .thp-ticket-type-purchase {
    justify-items: start;
  }

  .thp-ticket-purchase-actions {
    display: grid;
  }

  .thp-ticket-action-button {
    width: 100%;
  }
}

/* ==========================================================
   Public Ticket Purchase Pass 8b
   POFO compatibility: occurrence selector + smooth target
========================================================== */

.thp-ticket-date-selector {
  width: 100%;
}

.thp-ticket-date-option {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 48px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 13px 14px !important;
  overflow: visible !important;
  float: none !important;
  text-align: left !important;
  line-height: 1.35 !important;
}

.thp-ticket-date-option input[type="radio"] {
  position: static !important;
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  transform: none !important;
}

.thp-ticket-date-option .thp-ticket-date-text {
  position: static !important;
  display: block !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  color: var(--thp-event-public-text) !important;
  font: inherit !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  text-align: left !important;
  text-indent: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  writing-mode: horizontal-tb !important;
  transform: none !important;
}

.thp-ticket-date-option:has(input:checked) .thp-ticket-date-text {
  color: var(--thp-event-public-text) !important;
}

#tickets {
  scroll-margin-top: 110px;
}



/* ==========================================================
   Public Event Ticket Rail — Pass 17
========================================================== */

.thp-event-public-content-grid {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 44px;
  align-items: start;
}

.thp-event-public-aside {
  min-width: 0;
}

.thp-event-public-ticket-sticky {
  position: sticky;
  top: 110px;
  z-index: 2;
}

.thp-event-public-ticket-rail {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--thp-event-public-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(29,35,39,.08);
  scroll-margin-top: 110px;
}

.thp-ticket-rail-heading {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--thp-event-public-border);
  background: linear-gradient(145deg, #302b3a 0%, #24212c 100%);
  color: #fff;
}

.thp-ticket-rail-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #c8bddf;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.thp-ticket-rail-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 23px;
  font-weight: 650;
}

.thp-ticket-rail-heading p {
  margin: 5px 0 0;
  color: #d7d2df;
  font-size: 12px;
}

.thp-event-public-ticket-rail .thp-ticket-purchase-form {
  gap: 14px;
  padding: 18px;
}

.thp-event-public-ticket-rail .thp-ticket-date-selector h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.thp-event-public-ticket-rail .thp-ticket-date-option {
  padding: 11px 12px !important;
  min-height: 44px !important;
  font-size: 12px !important;
}

.thp-event-public-ticket-rail .thp-ticket-type {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
}

.thp-event-public-ticket-rail .thp-ticket-type-content {
  gap: 12px;
}

.thp-event-public-ticket-rail .thp-ticket-type-content h3 {
  font-size: 14px;
}

.thp-event-public-ticket-rail .thp-ticket-type-price {
  font-size: 16px;
}

.thp-event-public-ticket-rail .thp-ticket-type-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.thp-event-public-ticket-rail .thp-ticket-quantity {
  grid-template-columns: 34px 42px 34px;
}

.thp-event-public-ticket-rail .thp-ticket-quantity input {
  width: 42px;
}

.thp-ticket-rail-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 4px;
  color: var(--thp-event-public-muted);
  font-size: 12px;
}

.thp-ticket-rail-summary > strong {
  color: var(--thp-event-public-text);
  font-size: 17px;
}

.thp-event-public-ticket-rail .thp-ticket-purchase-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.thp-event-public-ticket-rail .thp-ticket-action-button {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
}

.thp-event-public-ticket-sticky + .thp-event-public-info-card {
  margin-top: 16px;
}

@media screen and (max-width: 960px) {
  .thp-event-public-content-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .thp-event-public-aside {
    order: -1;
  }

  .thp-event-public-ticket-sticky {
    position: static;
  }

  .thp-event-public-ticket-sticky + .thp-event-public-info-card {
    margin-top: 0;
  }
}

@media screen and (max-width: 640px) {
  .thp-event-public-primary-action {
    margin-top: 24px;
  }

  .thp-event-public-ticket-button {
    width: 100%;
  }

  .thp-event-public-ticket-rail .thp-ticket-purchase-actions {
    grid-template-columns: 1fr;
  }

  .thp-event-public-ticket-rail .thp-ticket-type-purchase {
    align-items: flex-end;
  }
}


/* ==========================================================
   Public Event Ticket Rail — Pass 18 Compact Polish
========================================================== */

.thp-event-public-ticket-rail .thp-ticket-purchase-form {
  gap: 10px;
  padding: 14px;
}

.thp-event-public-ticket-rail .thp-ticket-date-selector {
  gap: 7px;
}

.thp-event-public-ticket-rail .thp-ticket-date-selector h3 {
  margin-bottom: 5px;
}

.thp-event-public-ticket-rail .thp-ticket-date-option {
  min-height: 40px !important;
  padding: 9px 10px !important;
}

.thp-event-public-ticket-rail .thp-ticket-types {
  gap: 8px;
}

.thp-event-public-ticket-rail .thp-ticket-type {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 11px 12px;
}

.thp-event-public-ticket-rail .thp-ticket-type-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.thp-event-public-ticket-rail .thp-ticket-type-content h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}

.thp-event-public-ticket-rail .thp-ticket-type-price {
  align-self: center;
  margin: 0;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.thp-event-public-ticket-rail .thp-ticket-type-purchase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.thp-event-public-ticket-rail .thp-ticket-availability {
  margin: 0;
  align-self: center;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .06em;
}

.thp-event-public-ticket-rail .thp-ticket-quantity {
  display: grid;
  grid-template-columns: 32px 38px 32px;
  align-items: stretch;
  width: auto;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--thp-event-public-border);
  border-radius: 999px;
  background: #fff;
}

.thp-event-public-ticket-rail .thp-ticket-quantity button,
.thp-event-public-ticket-rail .thp-ticket-quantity input {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--thp-event-public-text);
  font: inherit;
  font-size: 12px;
  line-height: 36px;
  text-align: center;
}

.thp-event-public-ticket-rail .thp-ticket-quantity button {
  cursor: pointer;
}

.thp-event-public-ticket-rail .thp-ticket-quantity input {
  width: 38px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.thp-event-public-ticket-rail .thp-ticket-quantity input::-webkit-outer-spin-button,
.thp-event-public-ticket-rail .thp-ticket-quantity input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.thp-event-public-ticket-rail .thp-ticket-rail-summary {
  padding-top: 0;
  margin-top: 0;
}

.thp-event-public-ticket-rail .thp-ticket-purchase-actions {
  gap: 7px;
}

.thp-event-public-ticket-rail .thp-ticket-action-button {
  min-height: 40px;
}

.thp-ticket-rail-heading {
  padding-top: 16px;
  padding-bottom: 13px;
}

.thp-ticket-rail-heading h2 {
  font-size: 21px;
}

.thp-ticket-rail-heading p {
  margin-top: 4px;
}

@media screen and (max-width: 640px) {
  .thp-event-public-ticket-rail .thp-ticket-type {
    padding: 12px;
  }

  .thp-event-public-ticket-rail .thp-ticket-quantity {
    grid-template-columns: 36px 42px 36px;
    height: 40px;
  }

  .thp-event-public-ticket-rail .thp-ticket-quantity button,
  .thp-event-public-ticket-rail .thp-ticket-quantity input {
    height: 40px;
    line-height: 40px;
  }

  .thp-event-public-ticket-rail .thp-ticket-quantity input {
    width: 42px;
  }
}


/* ==========================================================
   Public Event Ticket Rail — Pass 20 Structural Recovery
   Built on the known-good Pass 18 layout.
========================================================== */

/* Keep the ticket purchase module as the only sticky item. */
.thp-event-public-content-grid {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 44px;
  align-items: start;
}

.thp-event-public-aside {
  min-width: 0;
}

.thp-event-public-ticket-sticky {
  position: sticky;
  top: 110px;
  z-index: 3;
}

/* Clean single-line rail header. */
.thp-ticket-rail-heading {
  padding: 17px 18px;
}

.thp-ticket-rail-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.thp-ticket-rail-eyebrow,
.thp-ticket-rail-heading p {
  display: none !important;
}

/* Ticket name + availability belong together on the left. */
.thp-event-public-ticket-rail .thp-ticket-type-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.thp-event-public-ticket-rail .thp-ticket-type-meta {
  min-width: 0;
}

.thp-event-public-ticket-rail .thp-ticket-type-meta h3 {
  margin: 0;
}

.thp-event-public-ticket-rail .thp-ticket-type-meta p {
  margin-top: 4px;
  margin-bottom: 0;
}

.thp-event-public-ticket-rail .thp-ticket-availability-label {
  display: block;
  margin-top: 7px;
  padding: 0;
  text-align: left;
  color: var(--thp-event-public-muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.thp-event-public-ticket-rail .thp-ticket-type-price {
  align-self: start;
}

/* Quantity remains right-aligned on the second row. */
.thp-event-public-ticket-rail .thp-ticket-type-purchase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.thp-event-public-ticket-rail .thp-ticket-purchase-spacer {
  display: block;
}

/* Always keep the same date selection treatment, even for one occurrence. */
.thp-event-public-ticket-rail .thp-ticket-date-selector {
  display: grid;
}

/* Supporting rail cards remain structurally outside the sticky wrapper,
   exactly as they were in Pass 18. */
.thp-event-public-ticket-sticky + .thp-event-public-info-card {
  margin-top: 16px;
}

@media screen and (max-width: 960px) {
  .thp-event-public-content-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .thp-event-public-aside {
    order: -1;
  }

  .thp-event-public-ticket-sticky {
    position: static;
  }
}


/* ==========================================================
   Public Event Ticket Rail — Pass 21 Cleanup
========================================================== */

/* The right rail is now one clean stack: ticket purchase + Add to Calendar.
   Keeping the stack sticky prevents supporting content from sliding behind it. */
.thp-event-public-aside {
  position: sticky;
  top: 110px;
  z-index: 3;
  align-self: start;
  overflow: visible;
}

.thp-event-public-ticket-sticky {
  position: static;
  top: auto;
  z-index: auto;
}

.thp-event-public-ticket-sticky + .thp-event-public-calendar-card {
  position: relative;
  z-index: 1;
  margin-top: 14px;
}

/* Slightly tighter ticket rows. */
.thp-event-public-ticket-rail .thp-ticket-type {
  gap: 5px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.thp-event-public-ticket-rail .thp-ticket-type-meta .thp-ticket-availability-label {
  margin-top: 4px;
}

.thp-event-public-ticket-rail .thp-ticket-type-purchase {
  min-height: 28px;
}

.thp-event-public-ticket-rail .thp-ticket-quantity {
  height: 34px;
}

.thp-event-public-ticket-rail .thp-ticket-quantity button,
.thp-event-public-ticket-rail .thp-ticket-quantity input {
  height: 34px;
  line-height: 34px;
}

/* Keep the date selector visually consistent for one or many dates. */
.thp-event-public-ticket-rail .thp-ticket-date-selector {
  display: grid;
}

@media screen and (max-width: 960px) {
  .thp-event-public-aside {
    position: static;
    top: auto;
  }
}

@media screen and (max-width: 640px) {
  .thp-event-public-ticket-rail .thp-ticket-type {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .thp-event-public-ticket-rail .thp-ticket-quantity {
    height: 40px;
  }

  .thp-event-public-ticket-rail .thp-ticket-quantity button,
  .thp-event-public-ticket-rail .thp-ticket-quantity input {
    height: 40px;
    line-height: 40px;
  }
}


/* ==========================================================
   Public Event Ticket Rail — Pass 22 Spacing Polish
========================================================== */

/* Tighten the gap between "Select a Date" and the first occurrence option. */
.thp-event-public-ticket-rail .thp-ticket-date-selector h3 {
  margin-bottom: 0;
}

.thp-event-public-ticket-rail .thp-ticket-date-selector {
  row-gap: 6px;
}

/* Give the quantity selector just a little more breathing room
   from the bottom edge of each ticket card. */
.thp-event-public-ticket-rail .thp-ticket-type-purchase {
  padding-bottom: 5px;
}


/* ==========================================================
   Event Detail Design — Pass 68
========================================================== */

/* Guarantee all four hero corners use the same configured radius. */
.thp-event-public-hero,
.thp-event-public-hero-media,
.thp-event-public-hero-content {
  overflow: hidden;
}

.thp-event-public-hero-media {
  border-top-left-radius: var(--thp-ed-hero-radius, 20px);
  border-bottom-left-radius: var(--thp-ed-hero-radius, 20px);
}

.thp-event-public-hero-content {
  border-top-right-radius: var(--thp-ed-hero-radius, 20px);
  border-bottom-right-radius: var(--thp-ed-hero-radius, 20px);
}

.thp-event-public a.thp-event-public-ticket-button,
.thp-event-public button.thp-event-public-ticket-button {
  color: var(--thp-ed-cta-color, #332c40) !important;
  font-family: var(--thp-ed-cta-family, inherit) !important;
  font-size: var(--thp-ed-cta-size, 16px) !important;
  font-weight: var(--thp-ed-cta-weight, 700) !important;
  line-height: var(--thp-ed-cta-line-height, 1) !important;
  letter-spacing: var(--thp-ed-cta-letter-spacing, 0) !important;
  border-radius: var(--thp-ed-cta-radius, 999px) !important;
  background: var(--thp-ed-cta-background, #d9cfeb) !important;
}

@media screen and (max-width: 960px) {
  .thp-event-public-hero-media {
    border-radius:
      var(--thp-ed-hero-radius, 20px)
      var(--thp-ed-hero-radius, 20px)
      0
      0;
  }

  .thp-event-public-hero-content {
    border-radius:
      0
      0
      var(--thp-ed-hero-radius, 20px)
      var(--thp-ed-hero-radius, 20px);
  }
}


/* ==========================================================
   Event Detail Top Spacing — Pass 69
========================================================== */

/*
 * POFO's site navigation overlays page content. Add configurable
 * space above the Event Detail experience so the hero clears the
 * header without changing the global site-navigation behavior.
 */
.thp-event-public {
  padding-top: var(--thp-ed-page-top-spacing, 36px);
}


/* ==========================================================
   Public Event Add to Calendar — Pass 70
========================================================== */

.thp-event-public-calendar-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.thp-event-calendar-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.thp-event-calendar-heading > .dashicons {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--thp-event-public-accent);
}

.thp-event-calendar-heading strong {
  display: block;
  color: var(--thp-event-public-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.thp-event-calendar-heading span[data-calendar-selected-label] {
  display: block;
  margin-top: 4px;
  color: var(--thp-event-public-muted);
  font-size: 11px;
  line-height: 1.4;
}

.thp-event-calendar-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.thp-event-calendar-action {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--thp-event-public-border);
  border-radius: 10px;
  color: var(--thp-event-public-text) !important;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none !important;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.thp-event-calendar-action:hover,
.thp-event-calendar-action:focus {
  border-color: var(--thp-event-public-accent);
  background: #faf8fd;
  color: var(--thp-event-public-text) !important;
  text-decoration: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .thp-event-calendar-action:hover {
    transform: translateY(-1px);
  }
}

.thp-event-calendar-action:focus-visible {
  outline: 2px solid var(--thp-event-public-accent);
  outline-offset: 2px;
}

.thp-event-calendar-action .dashicons {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--thp-event-public-accent);
  font-size: 17px;
  line-height: 17px;
}

.thp-event-calendar-help {
  margin: 0;
  color: var(--thp-event-public-muted);
  font-size: 10px;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .thp-event-calendar-action {
    transition: none;
  }

  .thp-event-calendar-action:hover {
    transform: none;
  }
}


/* ==========================================================
   Event Detail Browser Polish — Pass 72
========================================================== */

/* Active hero CTA is clickable; only disabled states use not-allowed. */
.thp-event-public-cta[href] {
  cursor: pointer !important;
}

.thp-event-public-cta:not([href]),
.thp-event-public-cta[aria-disabled="true"],
.thp-event-public-cta.is-disabled {
  cursor: not-allowed !important;
}

/*
 * Explicitly restore the WordPress Dashicons face inside Event Detail
 * components. This prevents Chrome from inheriting the surrounding
 * editorial font and rendering an empty glyph.
 */
.thp-event-public-facts .dashicons,
.thp-event-public-calendar-card .dashicons {
  font-family: "dashicons" !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  speak: never;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keep icon sizing scoped to the Event Detail metadata row. */
.thp-event-public-facts .dashicons {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 20px;
}


/* ==========================================================
   Event Detail Browser Source Fix — Pass 73
========================================================== */

.thp-event-public a.thp-event-public-ticket-button[href],
.thp-event-public a.thp-event-public-ticket-button[href]:hover,
.thp-event-public a.thp-event-public-ticket-button[href]:focus {
  cursor: pointer !important;
}

.thp-event-public button.thp-event-public-ticket-button:disabled {
  cursor: not-allowed !important;
}

.thp-event-public .thp-event-public-facts .dashicons {
  font-family: "dashicons" !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  line-height: 1 !important;
  speak: never;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
