.notice-slot {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.sidebar-notice-slot {
  margin-top: auto;
  padding: 12px;
  box-shadow: none;
}

.sidebar-notice-slot + .sidebar-actions {
  margin-top: 0;
}

.footer-notice-slot {
  display: none;
  margin-top: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.notice-slot-heading {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.notice-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-link {
  display: grid;
  gap: 5px;
  min-width: 0;
  border-radius: 8px;
  padding: 8px;
  color: inherit;
  text-decoration: none;
}

.notice-link:hover,
.notice-link:focus-visible {
  background: #f4f8fa;
}

.notice-title {
  color: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.notice-description {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.notice-label {
  justify-self: start;
  border: 1px solid #c9d9e2;
  border-radius: 999px;
  padding: 2px 7px;
  background: #edf6fb;
  color: var(--blue-dark);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.4;
}

.notice-label-sponsored {
  border-color: #f0c36a;
  background: #fff8e8;
  color: #7a4d00;
}

@media (max-width: 1040px) {
  .sidebar-notice-slot {
    display: none;
  }

  .footer-notice-slot:not(.is-hidden) {
    display: block;
  }
}

@media (max-width: 700px) {
  .footer-notice-slot {
    margin-top: 16px;
    padding: 12px;
  }

  .notice-list {
    gap: 6px;
  }
}
