:root {
  color-scheme: light;
  background: #fff;
  --forum-red: #cc0001;
  --page-gutter: clamp(16px, 4vw, 40px);
  --content-width: 1160px;
}

.header,
.header *,
.footer,
.footer *,
.page-main { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
}

.header img {
  display: block;
  max-width: 100%;
  height: auto;
}

.header a, .footer a { color: inherit; }
.header button { font: inherit; }

.header :where(a, button):focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--forum-red);
  outline-offset: 4px;
}

.header, .footer { font-family: Arial, Helvetica, sans-serif; }

.header {
  flex: none;
  min-height: 173px;
  color: #fff;
  background: var(--forum-red);
}

.header-inner,
.footer-inner {
  width: min(var(--content-width), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 173px;
  gap: 32px;
}

.header-branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 1 926.38px;
  min-width: 0;
  gap: clamp(24px, 4.8363vw, 69.64px);
}

.forum-logo { width: min(231px, 24.8993%); }
.organizers-logo { width: min(456px, 49.188%); }
.venue-logo { width: min(101px, 10.8775%); }
.header-actions { flex: none; }

.header-actions:not(:has(.btn-exit:not(.disable))) { display: none; }
.header-inner:not(:has(.btn-exit:not(.disable))) { justify-content: center; }

.btn-exit {
  display: grid;
  place-items: center;
  width: 108px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: #fff;
  color: var(--forum-red);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.btn-exit:hover { background: #fff0f0; }
.header :focus-visible, .footer :focus-visible { outline-color: #fff; }

.page-main {
  display: block;
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

.footer {
  flex: none;
  min-height: 160px;
  color: #fff;
  background: var(--forum-red) url('../img/patriot-footer-bg.svg') center / auto 100% no-repeat;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding-block: 24px;
}

.contact { text-align: center; }

.contact-label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
  text-transform: uppercase;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 2px solid #fff;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.contact-link:hover { background: rgb(255 255 255 / 12%); }
.header .disable { display: none !important; }

@media (max-width: 1100px) {
  .header-inner { gap: 24px; }
  .header-branding { gap: 24px; }
}

@media (max-width: 767px) {
  .header, .header-inner { min-height: 0; }
  .header-inner {
    position: relative;
    align-items: flex-start;
    padding-block: 24px;
  }

  .header-branding {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1fr) minmax(64px, 90px);
    align-items: center;
    gap: 24px;
    padding-bottom: 56px;
  }

  .header-inner:not(:has(.btn-exit:not(.disable))) .header-branding { padding-bottom: 0; }

  .forum-logo { width: min(231px, 100%); }
  .venue-logo { grid-column: 2; grid-row: 1; width: 100%; }
  .organizers-logo {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(456px, 80%);
  }
  .header-actions { position: absolute; right: 0; bottom: 24px; }
  .btn-exit { min-height: 40px; width: 100px; font-size: 14px; }
  .footer-inner { padding-block: 32px; }
}

@media (max-width: 374px) {
  .header-branding { column-gap: 16px; grid-template-columns: minmax(0, 1fr) 64px; }
}

#exit {
  cursor: pointer;
}

.disable {
    display: none !important;
}

.MuiCircularProgress-root {
    color: var(--forum-red) !important;
}
.CircularContainer svg circle {
    stroke: var(--forum-red);
}
