/* Shared typography, containers and components for selected Tunerfest North pages. */

:is(.tf-north-content, .tf-car-clubs) {
  --clubs-accent: var(--color-primary, #fe5000);
  --clubs-space: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 2rem) 0;
  color: #262626;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.7;
  overflow-wrap: break-word;
}

:is(.tf-north-content, .tf-car-clubs) *,
:is(.tf-north-content, .tf-car-clubs) *::before,
:is(.tf-north-content, .tf-car-clubs) *::after {
  box-sizing: border-box;
}

:is(.tf-north-content, .tf-car-clubs) h2,
:is(.tf-north-content, .tf-car-clubs) h3 {
  margin: 0 0 1.1rem;
  color: #202020;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

:is(.tf-north-content, .tf-car-clubs) h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
}

:is(.tf-north-content, .tf-car-clubs) h3 {
  margin-top: 1.65rem;
  margin-bottom: 0.55rem;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
}

:is(.tf-north-content, .tf-car-clubs) p {
  max-width: 75ch;
  margin: 0 0 1.1rem;
  font-size: inherit;
  line-height: inherit;
}

:is(.tf-north-content, .tf-car-clubs) p:last-child,
:is(.tf-north-content, .tf-car-clubs) figure:last-child {
  margin-bottom: 0;
}

:is(.tf-north-content, .tf-car-clubs) .wp-block-columns {
  gap: clamp(1.5rem, 4vw, 3.75rem);
  margin-bottom: 0;
}

:is(.tf-north-content, .tf-car-clubs) .wp-block-column {
  min-width: 0;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-event, .tf-content-event) {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--clubs-accent);
  font-size: 0.95em;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-lead, .tf-content-lead) {
  font-size: 1.1em;
}

:is(.tf-north-content, .tf-car-clubs) figure {
  margin: 0;
}

:is(.tf-north-content, .tf-car-clubs) .wp-block-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-deadline, .tf-content-deadline) {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--clubs-accent);
  background: #f5f5f5;
  font-size: 0.95em;
}

:is(.tf-north-content, .tf-car-clubs) hr.wp-block-separator {
  width: 100%;
  max-width: none;
  margin: var(--clubs-space) 0;
  border: 0;
  border-top: 1px solid #dedede;
  opacity: 1;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-booking-card, .tf-content-card) {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid #dedede;
  border-top: 4px solid var(--clubs-accent);
  border-radius: 0.25rem;
  background: #fafafa;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-booking-card, .tf-content-card) h3:first-child {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-booking-card, .tf-content-card) p:has(> strong:only-child) {
  margin-bottom: 0.4rem;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-booking-card, .tf-content-card) .joinUsButtonWrapper {
  max-width: none;
  margin: auto 0 0;
  padding: 0;
  background: transparent;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-booking-card, .tf-content-card) .joinUsButton {
  margin: 1rem 0 1.25rem;
  min-height: 70px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-booking-card, .tf-content-card) .joinUsButton.hasLogo {
  grid-template-columns: minmax(85px, 0.8fr) minmax(0, 1.6fr);
  gap: 0;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-booking-card, .tf-content-card) .joinUsButton.hasLogo > div {
  padding: 0.8rem;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-booking-card, .tf-content-card) .smallClosingDateNotice {
  padding: 0.75rem;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-booking-card, .tf-content-card) .smallClosingDateNotice p {
  font-size: 0.9rem;
  line-height: 1.5;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-notice, .tf-content-notice) {
  max-width: none;
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--clubs-accent);
  background: #fff4ed;
  font-size: 0.95em;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-faq, .tf-content-faq) > h2 {
  margin-bottom: 1.75rem;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-faq, .tf-content-faq) .wp-block-ub-content-toggle-accordion {
  margin-bottom: 0.75rem;
  border: 1px solid #dedede;
  border-radius: 0.25rem;
  overflow: hidden;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-faq, .tf-content-faq) .wp-block-ub-content-toggle-accordion-title-wrap {
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: #f5f5f5 !important;
  color: #262626 !important;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-faq, .tf-content-faq) .wp-block-ub-content-toggle-accordion-title {
  max-width: none;
  margin: 0;
  color: inherit;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.5;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-faq, .tf-content-faq) .wp-block-ub-content-toggle-accordion-content-wrap {
  padding: 1.25rem;
  background: #fff;
}
:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-faq, .tf-content-faq) .wp-block-ub-content-toggle-accordion-content-wrap.ub-hiding {
  padding-top: 0;
  padding-bottom: 0;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-individual, .tf-content-cta) {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #f5f5f5;
  border-left: 4px solid var(--clubs-accent);
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-individual, .tf-content-cta) h2 {
  max-width: 30ch;
}

:is(.tf-north-content, .tf-car-clubs) .wp-block-button__link {
  padding: 0.85rem 1.5rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  background-color: var(--color-primary-dark-2, #ae3700) !important;
  color: #fff !important;
}

:is(.tf-north-content, .tf-car-clubs) :is(.tf-clubs-terms, .tf-content-terms) {
  margin-top: 1.5rem;
  font-size: 0.9em;
}

:is(.tf-north-content, .tf-car-clubs) a:focus-visible,
:is(.tf-north-content, .tf-car-clubs) [tabindex]:focus-visible {
  outline: 3px solid #262626;
  outline-offset: 4px;
}

@media (max-width: 899px) {
  :is(.tf-north-content, .tf-car-clubs) .wp-block-columns {
    flex-direction: column;
    flex-wrap: wrap !important;
  }

  :is(.tf-north-content, .tf-car-clubs) .wp-block-columns > .wp-block-column {
    flex-basis: 100% !important;
    width: 100%;
  }
}

/* Gutenberg's frontend group wrapper sits between the page and its sections. */
.tf-north-content .tf-content-section {
  margin-top: var(--clubs-space);
}

.tf-north-content .tf-content-section:first-child,
.tf-north-content .wp-block-separator + .tf-content-section {
  margin-top: 0;
}

.tf-north-content .tf-content-narrow {
  max-width: 78ch;
}

.tf-north-content .tf-content-followup {
  margin-top: 1.75rem;
}

.tf-north-content .tf-content-intro,
.tf-north-content .tf-content-story {
  align-items: center !important;
}

.tf-north-content .tf-content-pair {
  align-items: flex-start !important;
}

.tf-north-content .tf-content-story .wp-block-image,
.tf-north-content .tf-content-intro .wp-block-image {
  width: 100%;
  max-width: 100%;
}

.tf-north-content .wp-block-column > :last-child {
  margin-bottom: 0;
}

.tf-north-content .tf-content-logo,
.tf-north-content .tf-content-intro .tf-content-logo {
  width: min(100%, 300px);
  max-width: 300px;
  margin-bottom: 1.5rem;
}

.tf-north-content .tf-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}

/* Let the cards participate in the grid/flex layout through the saved wrapper. */
.tf-north-content .tf-content-grid > .wp-block-group__inner-container,
.tf-north-content .tf-content-card > .wp-block-group__inner-container {
  display: contents;
}

.tf-north-content .tf-content-card {
  min-width: 0;
  margin: 0;
}

.tf-north-content .tf-content-card h2 {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  margin-bottom: 1.5rem;
}

.tf-north-content .tf-content-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #f5f5f5;
}

.tf-north-content ul,
.tf-north-content ol {
  max-width: 75ch;
  margin-bottom: 1.5rem;
  padding-left: 1.3rem;
}

.tf-north-content li {
  padding-left: 0.25rem;
  margin-bottom: 0.65rem;
}

.tf-north-content li::marker {
  color: var(--clubs-accent);
}

.tf-north-content .tf-content-facts ul {
  display: grid;
  gap: 1rem 2rem;
  max-width: none;
  padding: 0;
  margin-top: 1.75rem;
  list-style: none;
}

.tf-north-content .tf-content-facts li {
  margin: 0;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid #dedede;
}

.tf-north-content .tf-content-registration .joinUsSection {
  display: block;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  margin: 0;
  border: 1px solid #dedede;
  border-top: 4px solid var(--clubs-accent);
  border-radius: 0.25rem;
  background: #fafafa;
  color: #262626;
  outline: 0;
  box-shadow: none;
}

.tf-north-content .tf-content-registration .joinUsLogo {
  width: 192px;
  max-width: 100%;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background-color: #141414;
  border-radius: 0.25rem;
}

.tf-north-content .tf-content-registration .joinUsLogo img {
  max-width: 100%;
  margin: 0;
}

.tf-north-content .tf-content-registration .joinUsText h2 {
  color: #202020;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
}

.tf-north-content .tf-content-registration .joinUsText p {
  color: inherit;
  font-weight: 400;
}

.tf-north-content .tf-content-registration .joinUsButton {
  max-width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.tf-north-content .tf-content-registration .smallClosingDateNotice {
  margin-top: 1.75rem;
  padding: 0.75rem;
  border-color: #dedede;
}

.tf-north-content .tf-content-registration .smallClosingDateNotice * {
  color: inherit;
}

.tf-north-content .tf-content-registration > p,
.tf-north-content .tf-content-registration > .wp-block-group__inner-container > p {
  margin: 1.25rem 0 0;
  font-size: 0.9em;
}

.tf-north-content .tf-content-faq-category {
  max-width: 960px;
  scroll-margin-top: 170px;
}

.tf-north-content .tf-content-faq-category h2 {
  margin-bottom: 1.5rem;
}

.tf-north-content .tf-content-topics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem 1.5rem;
  max-width: none;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  margin: 2rem 0 0;
  background: #f5f5f5;
  list-style: none;
}

.tf-north-content .tf-content-topics li {
  margin: 0;
  padding: 0;
  font-size: 0.95em;
  font-weight: 600;
}

.tf-north-content .tf-content-topics a {
  color: #262626;
  text-decoration: underline;
  text-decoration-color: var(--clubs-accent);
  text-underline-offset: 0.2em;
}

.tf-north-content .tf-content-resource {
  width: 100%;
  font-size: 1rem;
}

.tf-north-content .tf-content-resource .wp-block-file__embed {
  width: 100%;
  max-width: 100%;
  height: 400px !important;
}

.tf-north-content .tf-content-resource .wp-block-file__button,
.tf-north-content .ub-button-block-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 0.25rem !important;
  font-size: 1rem !important;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
  text-wrap: balance;
  background-color: var(--color-primary-dark-2, #ae3700) !important;
  color: #fff !important;
}

.tf-north-content .tf-content-cta .ub-buttons {
  justify-content: flex-start;
}

.tf-north-content .tf-content-ticket-banner {
  width: 100%;
  max-width: 100%;
  min-height: 300px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0.25rem !important;
  box-shadow: none;
}

.tf-north-content .tf-content-ticket-banner .wp-block-cover__background {
  background: #202020 !important;
  opacity: 0.7;
}

.tf-north-content .tf-content-ticket-banner .wp-block-group,
.tf-north-content .tf-content-ticket-banner .wp-block-columns {
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
}

.tf-north-content .tf-content-ticket-banner h2 {
  color: #fff;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem) !important;
}

.tf-north-content .tf-content-ticket-banner .wp-block-button__link {
  padding: 0.85rem 1.5rem !important;
}

.tf-north-content .tf-content-gallery .masonryGrid {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

@media (min-width: 600px) {
  .tf-north-content .tf-content-topics,
  .tf-north-content .tf-content-facts ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .tf-north-content .tf-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
