/* Conference content uses the full shared GIIA container without sidebar spacing. */
.single-conference .conference-body {
  display: block;
  min-height: 0;
}

.single-conference .conference-body > .entry-content {
  box-sizing: border-box;
  width: 100%;
  padding-right: 0;
}

.single-conference .conference-editor-content {
  overflow-wrap: anywhere;
}

.single-conference .conference-article .excerpt {
  margin-inline: auto;
}

/* Limit ordinary prose while leaving composed blocks the full content width. */
.single-conference .conference-article .excerpt,
.single-conference :is(.conference-editor-content, .conference-editor-content > .vgblk-rw-wrapper) > :is(p, h2, h3, h4, h5, h6, ul, ol, blockquote, pre) {
  max-width: 72ch;
}

.single-conference .conference-image .content-feature-image {
  aspect-ratio: auto;
  margin-bottom: 48px;
}

.single-conference .conference-image .content-feature-image img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.single-conference .conference-image .conference-hero--fixed img {
  height: var(--conference-hero-height, 400px);
  object-fit: cover;
}

@media (max-width: 1024px) {
  .single-conference .conference-image .conference-hero--fixed img {
    height: min(var(--conference-hero-height, 400px), 320px);
  }
}

@media (max-width: 767.98px) {
  .single-conference .conference-image .content-feature-image {
    margin-bottom: 32px;
  }

  .single-conference .conference-image .conference-hero--fixed img {
    height: min(var(--conference-hero-height, 400px), 240px);
  }
}

.single-conference .conference-editor-content {
  padding-bottom: 80px;
}

/* The same named blocks appear in the Conference editor preview. */
:is(.single-conference .conference-editor-content, .editor-styles-wrapper) :is(
  .conference-information-heading,
  .conference-programme-heading,
  .conference-speakers-heading,
  .conference-sponsorship-heading,
  .conference-content-image-heading,
  .conference-cta-heading
) {
  margin: 0 0 24px;
  color: #0b273b;
  font-family: "Albert Sans", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

/* Major blocks get a section pause regardless of their Gutenberg order. */
.single-conference :is(.conference-editor-content, .conference-editor-content > .vgblk-rw-wrapper) > :is(
  .conference-information,
  .conference-programme,
  .conference-speakers,
  .conference-sponsorship,
  .conference-content-image,
  .conference-cta,
  .conference-highlight
) {
  margin-block: 48px 0;
}

.single-conference :is(.conference-editor-content, .conference-editor-content > .vgblk-rw-wrapper) > :is(
  .conference-information,
  .conference-programme,
  .conference-speakers,
  .conference-sponsorship,
  .conference-content-image,
  .conference-cta,
  .conference-highlight
):first-child {
  margin-block-start: 0;
}

.single-conference :is(.conference-editor-content, .conference-editor-content > .vgblk-rw-wrapper) > :is(
  .conference-information,
  .conference-programme,
  .conference-speakers,
  .conference-sponsorship,
  .conference-content-image,
  .conference-cta,
  .conference-highlight
) + * {
  margin-block-start: 48px;
}

/* Conference actions share the Events registration button's size and colour. */
:is(.single-conference, .editor-styles-wrapper) :is(
  .conference-content-image-cta,
  .conference-cta-button,
  .conference-information-register
) {
  box-sizing: border-box;
  border: 2px solid transparent !important;
  border-radius: 4px !important;
  padding: 14px 24px !important;
  background: #bf5542 !important;
  color: #fff !important;
  font-family: "Albert Sans", sans-serif !important;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

:is(.single-conference, .editor-styles-wrapper) :is(
  .conference-content-image-cta,
  .conference-cta-button--primary,
  .conference-information-register
):hover {
  background: #0b273b !important;
  color: #fff !important;
}

:is(.single-conference, .editor-styles-wrapper) .conference-cta-button--secondary {
  border-color: #0b273b !important;
  background: transparent !important;
  color: #0b273b !important;
  box-shadow: none !important;
}

:is(.single-conference, .editor-styles-wrapper) .conference-cta-button--secondary:hover {
  background: #0b273b !important;
  color: #fff !important;
}

:is(.single-conference, .editor-styles-wrapper) :is(
  .conference-content-image-cta,
  .conference-cta-button,
  .conference-information-register
):focus-visible {
  outline: 3px solid #0b273b !important;
  outline-offset: 3px;
}

@media (max-width: 767.98px) {
  .single-conference .conference-editor-content {
    padding-bottom: 56px;
  }

  :is(.single-conference .conference-editor-content, .editor-styles-wrapper) :is(
    .conference-information-heading,
    .conference-programme-heading,
    .conference-speakers-heading,
    .conference-sponsorship-heading,
    .conference-content-image-heading,
    .conference-cta-heading
  ) {
    margin-bottom: 20px;
    font-size: 1.75rem;
  }

  .single-conference :is(.conference-editor-content, .conference-editor-content > .vgblk-rw-wrapper) > :is(
    .conference-information,
    .conference-programme,
    .conference-speakers,
    .conference-sponsorship,
    .conference-content-image,
    .conference-cta,
    .conference-highlight
  ) {
    margin-block-start: 32px;
  }

  .single-conference :is(.conference-editor-content, .conference-editor-content > .vgblk-rw-wrapper) > :is(
    .conference-information,
    .conference-programme,
    .conference-speakers,
    .conference-sponsorship,
    .conference-content-image,
    .conference-cta,
    .conference-highlight
  ) + * {
    margin-block-start: 32px;
  }

  .single-conference :is(.conference-editor-content, .conference-editor-content > .vgblk-rw-wrapper) > :is(
    .conference-information,
    .conference-programme,
    .conference-speakers,
    .conference-sponsorship,
    .conference-content-image,
    .conference-cta,
    .conference-highlight
  ):first-child {
    margin-block-start: 0;
  }
}

.single-conference :is(.conference-programme-day-heading, .conference-sponsorship-tier) {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .single-conference :is(.conference-programme-day-heading, .conference-sponsorship-tier) {
    font-size: 1.25rem;
  }
}
