/* =========================================
   Notice Banner (Reusable)
   ========================================= */

.notice-banner {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;

  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;

  background: #f4f8fb;
  border: 1px solid rgba(15, 42, 61, 0.12);
  border-radius: 16px;

  align-items: start;
  overflow: hidden; /* for accent stripe + rounding */
}

/* Accent stripe (like EPC callout) */
.notice-banner::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  transform: translateX(-1px); /* tuck under border */
  background: rgba(17, 93, 171, 0.75); /* default (info) */
}

/* Icon badge */
.notice-banner__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;

  background: rgba(17, 93, 171, 0.12);
  color: rgba(17, 93, 171, 1);

  box-shadow: 0 6px 18px rgba(11, 18, 32, 0.06);
}

/* Title + text */
.notice-banner__title {
  margin: 0 0 0.35rem 0;
  font-size: 1.12rem;
  color: #0f2a3d;
  line-height: 1.25;
}

.notice-banner__text {
  margin: 0 0 0.9rem 0;
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.55;
  max-width: 72ch;
}

/* Actions */
.notice-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.notice-banner__actions a:not(.btn) {
  color: #115dab;
  font-weight: 600;
  text-decoration: underline;
}

.notice-banner__actions a:not(.btn):hover {
  text-decoration: none;
}

/* -----------------------------------------
   Tones
   ----------------------------------------- */

/* Info (default) */
.notice-banner--info::before {
  background: rgba(17, 93, 171, 0.75);
}
.notice-banner--info .notice-banner__icon {
  background: rgba(17, 93, 171, 0.12);
  color: rgba(17, 93, 171, 1);
}

/* Warning */
.notice-banner--warning {
  background: rgba(214, 180, 108, 0.1);
  border-color: rgba(214, 180, 108, 0.35);
}
.notice-banner--warning::before {
  background: rgba(214, 180, 108, 0.95);
}
.notice-banner--warning .notice-banner__icon {
  background: rgba(214, 180, 108, 0.18);
  color: rgba(140, 104, 28, 1);
}

/* Success */
.notice-banner--success {
  background: rgba(11, 122, 75, 0.06);
  border-color: rgba(11, 122, 75, 0.22);
}
.notice-banner--success::before {
  background: rgba(11, 122, 75, 0.85);
}
.notice-banner--success .notice-banner__icon {
  background: rgba(11, 122, 75, 0.14);
  color: rgba(11, 122, 75, 1);
}

/* Neutral */
.notice-banner--neutral {
  background: #f9fafb;
  border-color: rgba(15, 42, 61, 0.1);
}
.notice-banner--neutral::before {
  background: rgba(15, 42, 61, 0.45);
}
.notice-banner--neutral .notice-banner__icon {
  background: rgba(15, 42, 61, 0.08);
  color: rgba(15, 42, 61, 0.85);
}

/* Mobile */
@media (max-width: 768px) {
  .notice-banner {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1.15rem 1.25rem;
  }

  .notice-banner__icon {
    width: 42px;
    height: 42px;
  }

  .notice-banner__actions {
    justify-content: flex-start;
  }
}
