:root{
  --ai-nb-top: 12px;
}

.ai-newsboard{
  box-sizing: border-box;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 120rem;
  width: calc(100% - 24px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 9999px;
  background: rgba(2, 8, 23, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.25;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000000;
}

.ai-newsboard__title{
  white-space: nowrap;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(14, 165, 233, 0.22);
  color: #a5e3ff;
}

.ai-newsboard__content{
  flex: 1;
  min-width: 0;
  color: rgba(226, 232, 240, 0.96);
}

.ai-newsboard__content p{
  margin: 0;
}

.ai-newsboard__cta{
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.85);
  color: #001018;
}

.ai-newsboard__cta:hover{
  filter: brightness(1.05);
}

.ai-newsboard__close{
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: rgba(226, 232, 240, 0.95);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.ai-newsboard__close:hover{
  background: rgba(15, 23, 42, 0.8);
}

/* Modes */
.ai-newsboard--inline{
  position: relative;
  top: auto;
  margin-top: 12px;
}

.ai-newsboard--sticky{
  position: sticky !important;
  top: var(--ai-nb-top);
}

.ai-newsboard--fixed{
  position: fixed !important;
  top: var(--ai-nb-top);
}

/* Tiny screens: stack nicely */
@media (max-width: 560px){
  .ai-newsboard{
    border-radius: 18px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .ai-newsboard__title{ order: 1; }
  .ai-newsboard__content{ order: 2; flex-basis: 100%; }
  .ai-newsboard__cta{ order: 3; }
  .ai-newsboard__close{ order: 4; margin-left: auto; }
}
