.event-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1031;
  display: flex;
  align-items: center;
  height: 52px;
  padding-left: 16px;
  background: #00338a;
  color: #ffffff;
  overflow: hidden;
}
.event-bar__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  flex: 1;
  min-width: 0;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  line-height: 17px;
  color: #ffffff !important;
  text-decoration: none !important;
}
.event-bar__title {
  grid-column: 1;
  overflow: hidden;
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.event-bar__date {
  grid-column: 1;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.event-bar__deadline {
  display: none;
  color: #ff7933;
  font-weight: 500;
  white-space: nowrap;
}
.event-bar__more {
  grid-column: 2;
  grid-row: 1/span 2;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease-in-out;
}
.event-bar__more svg {
  width: 16px;
  height: 16px;
}
.event-bar__more-text {
  display: none;
}
.event-bar__link:hover .event-bar__more, .event-bar__link:focus-visible .event-bar__more {
  color: #ff7933;
}
.event-bar__close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}
.event-bar__close svg {
  width: 16px;
  height: 16px;
}
.event-bar__close:hover, .event-bar__close:focus-visible {
  color: #ffffff;
}
@media (min-width: 992px) {
  .event-bar {
    justify-content: center;
    height: 40px;
    padding-left: 44px;
  }
  .event-bar__link {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    line-height: 20px;
  }
  .event-bar__title {
    font-size: 14px;
    line-height: 20px;
  }
  .event-bar__deadline {
    display: inline;
  }
  .event-bar__more-text {
    display: inline;
  }
}

body:has(.event-bar) .site-header {
  top: 52px;
}
@media (min-width: 992px) {
  body:has(.event-bar) .site-header {
    top: 40px;
  }
}

body:has(.event-bar) .site-main {
  margin-top: 52px;
}
@media (min-width: 992px) {
  body:has(.event-bar) .site-main {
    margin-top: 40px;
  }
}
