/* A quiet, dismissible latest-post row beneath the existing top navigation. */
.midnight .site-header.has-news {
  height: auto;
  min-height: 110px;
  grid-template-rows: 68px auto;
  row-gap: 0;
  padding-bottom: 8px;
}
.midnight .site-header.has-news > .site-brand,
.midnight .site-header.has-news > .menu-toggle,
.midnight .site-header.has-news > .site-nav,
.midnight .site-header.has-news > .motion-toggle {
  grid-row: 1;
}
.midnight .sua-newsbar {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(672px, 100%);
  min-width: 0;
  min-height: 34px;
  padding: 1px 4px 1px 10px;
  border: 1px solid #eedfe7;
  border-radius: 12px;
  background: linear-gradient(110deg, #fff6fa, #fffafc 72%, #fff);
  color: #785d6c;
  font-family: var(--sans, "Geist", sans-serif);
  letter-spacing: -0.02em;
}
.midnight .sua-newsbar[hidden] {
  display: none !important;
}
.midnight .sua-news-link {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 30px;
  color: inherit;
  text-decoration: none;
  border-radius: 7px;
}
.midnight .sua-news-badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 5px;
  color: #90536d;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 600;
  white-space: nowrap;
}
.midnight .sua-news-badge::before {
  content: "";
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #bd809c;
  box-shadow: 0 0 0 3px #efdce644;
}
.midnight .sua-news-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 400;
}
.midnight .sua-news-arrow {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: #b0879b;
  font-size: 13px;
  transition:
    translate 200ms ease,
    color 180ms ease;
}
.midnight .sua-news-arrow svg {
  width: 12px;
  height: 12px;
}
.midnight .sua-news-actions {
  display: flex;
  align-items: center;
  flex: none;
  gap: 1px;
}
.midnight .sua-news-today,
.midnight .sua-news-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 30px;
  margin: 0;
  padding: 5px 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a28594;
  font: 400 10px/1.4 var(--sans, "Geist", sans-serif);
  letter-spacing: -0.02em;
  white-space: nowrap;
  cursor: pointer;
}
.midnight .sua-news-close {
  width: 30px;
  padding: 7px;
  color: #957183;
}
.midnight .sua-news-close svg {
  width: 13px;
  height: 13px;
  pointer-events: none;
}
.midnight .sua-news-today:hover,
.midnight .sua-news-close:hover {
  background: #f7e9ef;
  color: #714c61;
}
.midnight .sua-news-link:hover {
  color: #714c61;
}
.midnight .sua-news-link:hover .sua-news-title {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #d5b4c4;
}
.midnight .site-header.has-news ~ main :is(section[id], [id].mini-section) {
  scroll-margin-top: 146px;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not(.sua-motion-off) .midnight .sua-news-link:hover .sua-news-arrow {
    translate: 2px 0;
    color: #90536d;
  }
}
@media (max-width: 767px) {
  .midnight .site-header.has-news {
    min-height: 110px;
    grid-template-rows: 68px auto;
    padding-bottom: 8px;
  }
  .midnight .sua-newsbar {
    gap: 5px;
    padding-left: 9px;
    border-radius: 11px;
  }
  .midnight .sua-news-link {
    gap: 7px;
  }
  .midnight .sua-news-badge {
    font-size: 9px;
    gap: 5px;
  }
  .midnight .sua-news-title {
    font-size: 10px;
  }
  .midnight .sua-news-today {
    font-size: 9px;
    padding-inline: 5px;
  }
  .midnight .sua-news-close {
    width: 30px;
  }
  .midnight .site-header.has-news .site-nav {
    top: calc(100% + 7px);
  }
}
@media (max-width: 360px) {
  .midnight .sua-newsbar {
    gap: 2px;
    padding-left: 7px;
  }
  .midnight .sua-news-link {
    gap: 5px;
  }
  .midnight .sua-news-arrow {
    display: none;
  }
  .midnight .sua-news-today {
    padding-inline: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .midnight .sua-news-arrow {
    transition: none;
  }
}
@media print {
  .midnight .sua-newsbar {
    display: none !important;
  }
  .midnight .site-header.has-news {
    min-height: 68px;
    padding-bottom: 0;
    grid-template-rows: 68px;
  }
}
