#nemcc-alerts {
  --navy: #071f42;
  --red: #b50920;
  --blue: #0864ac;
  --gold: #b78920;
  --gray: #667085;
  --line: #d8dde4;

  font-family: Arial, Helvetica, sans-serif;
  color: #152238;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

#nemcc-alerts *,
#nemcc-alerts *::before,
#nemcc-alerts *::after {
  box-sizing: border-box;
}

#nemcc-alerts .ta-heading {
  margin-bottom: 24px;
}

#nemcc-alerts h1 {
  font-size: clamp(30px, 3.5vw, 44px);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 700;
}

#nemcc-alerts .ta-heading p {
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

#nemcc-alerts .ta-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 14px;
}

#nemcc-alerts .ta-counts,
#nemcc-alerts .ta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

#nemcc-alerts .ta-count {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
}

#nemcc-alerts .emergency-count {
  color: var(--red);
}

#nemcc-alerts .notification-count {
  color: var(--navy);
}

#nemcc-alerts .ta-count > span {
  font-size: 25px;
  line-height: 1;
}

#nemcc-alerts .ta-actions {
  gap: 12px;
}

#nemcc-alerts .ta-actions button,
#nemcc-alerts .ta-actions a {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: 7px;
  padding: 11px 18px;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.35;
}

#nemcc-alerts #ta-refresh {
  background: #fff;
  color: var(--navy);
  border: 1px solid #aeb6c2;
}

#nemcc-alerts #ta-refresh:hover {
  background: #f1f4f8;
}

#nemcc-alerts #ta-refresh:disabled {
  opacity: .6;
  cursor: wait;
}

#nemcc-alerts #ta-manage {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
}

#nemcc-alerts #ta-manage:hover {
  background: #143b6a;
}

#nemcc-alerts .ta-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f5f9fd;
  border: 1px solid #d6e5f4;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

#nemcc-alerts .ta-info > span:first-child {
  color: var(--blue);
  font-size: 21px;
  line-height: 1;
}

#nemcc-alerts #ta-status {
  font-size: 14px;
  color: var(--gray);
  margin: 0 0 12px;
}

#nemcc-alerts #ta-status:empty {
  display: none;
}

#nemcc-alerts .ta-message {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}

#nemcc-alerts .ta-message.emergency {
  border-left-color: var(--red);
}

#nemcc-alerts .ta-message.weather {
  border-left-color: var(--gold);
}

#nemcc-alerts .ta-message.notification {
  border-left-color: var(--blue);
}

#nemcc-alerts .ta-message.update {
  border-left-color: var(--gray);
}

#nemcc-alerts .ta-message-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

#nemcc-alerts .ta-message-title {
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.3;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}

#nemcc-alerts .emergency .ta-message-title {
  color: #8d0c19;
}

#nemcc-alerts .ta-date {
  color: #596579;
  font-size: 13px;
}

#nemcc-alerts .ta-pill {
  display: inline-block;
  white-space: nowrap;
  padding: 6px 13px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

#nemcc-alerts .ta-pill.emergency {
  background: #b50920;
  color: #fff;
}

#nemcc-alerts .ta-pill.weather {
  background: #fff5d9;
  color: #76530c;
  border-color: #e9d29a;
}

#nemcc-alerts .ta-pill.notification {
  background: #eaf3fc;
  color: #084779;
  border-color: #bdd8f0;
}

#nemcc-alerts .ta-pill.update {
  background: #f1f3f5;
  color: #475467;
  border-color: #d8dde4;
}

#nemcc-alerts .ta-body {
  font-size: 16px;
  line-height: 1.65;
  color: #202b3a;
  white-space: normal;
  overflow-wrap: anywhere;
}

#nemcc-alerts .ta-body p {
  margin: 0 0 12px;
}

#nemcc-alerts .ta-body p:last-child {
  margin-bottom: 0;
}

#nemcc-alerts .ta-body a {
  color: #075ba6;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

#nemcc-alerts .ta-empty {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 38px 20px;
}

#nemcc-alerts .ta-empty h2 {
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 8px;
}

#nemcc-alerts .ta-empty p {
  color: #586579;
  margin: 0;
}

#nemcc-alerts .ta-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #667085;
  font-size: 12px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #e5e8ec;
}

@media (max-width: 700px) {
  #nemcc-alerts .ta-toolbar {
    padding: 14px;
  }

  #nemcc-alerts .ta-actions {
    width: 100%;
  }

  #nemcc-alerts .ta-actions a {
    flex: 1;
    text-align: center;
  }

  #nemcc-alerts .ta-message {
    padding: 17px 16px;
  }

  #nemcc-alerts .ta-message-head {
    gap: 8px;
  }

  #nemcc-alerts .ta-count {
    font-size: 15px;
  }
}

/* ==========================================
   NEMCC TIGER ALERTS - VISUAL REFINEMENTS
   ========================================== */

/* Slightly tighten the content spacing */
#nemcc-alerts {
  padding-top: 20px;
  padding-bottom: 40px;
}

/* Remove global heading decorations */
#nemcc-alerts .ta-message-title {
  margin: 0 0 6px !important;
  padding: 0 !important;
  border: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

#nemcc-alerts .ta-message-title::before,
#nemcc-alerts .ta-message-title::after {
  content: none !important;
  display: none !important;
}

/* Improve message readability */
#nemcc-alerts .ta-body {
  font-size: 16px;
  line-height: 1.5;
}

#nemcc-alerts .ta-body p {
  margin: 0 0 10px;
  line-height: 1.5;
}

#nemcc-alerts .ta-body p:last-child {
  margin-bottom: 0;
}

/* Keep Manage Alerts button white on navy */
#nemcc-alerts #ta-manage,
#nemcc-alerts #ta-manage:link,
#nemcc-alerts #ta-manage:visited {
  color: #ffffff !important;
  text-decoration: none !important;
}

#nemcc-alerts #ta-manage:hover {
  color: #ffffff !important;
  background: #143b6a;
}

/* Reduce excess space within alert cards */
#nemcc-alerts .ta-message {
  padding: 20px 26px;
}

#nemcc-alerts .ta-message-head {
  margin-bottom: 12px;
}

/* Mobile spacing */
@media (max-width: 700px) {
  #nemcc-alerts {
    padding: 16px 16px 32px;
  }

  #nemcc-alerts .ta-message {
    padding: 16px;
  }
}


/* Reduce space above Tiger Alerts toolbar */
#nemcc-alerts {
  padding-top: 0 !important;
  margin-top: 24px !important;
}


/* Move Tiger Alerts closer to page description */
#nemcc-alerts {
  padding-top: 0 !important;
  margin-top: -20px !important;
}

#nemcc-alerts .ta-toolbar {
  margin-top: 0 !important;
}

@media (max-width: 700px) {
  #nemcc-alerts {
    margin-top: 0 !important;
  }
}

/* Black Manage My Tiger Alerts button */
#nemcc-alerts #ta-manage,
#nemcc-alerts #ta-manage:link,
#nemcc-alerts #ta-manage:visited {
  background: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
}

#nemcc-alerts #ta-manage:hover {
  background: #252525 !important;
  border-color: #252525 !important;
  color: #ffffff !important;
}

/* Thicker colored border on alert cards */
#nemcc-alerts .ta-message {
  border-left-width: 9px;
}


/* Mobile layout - prevent edge clipping */
@media screen and (max-width: 767px) {
  #nemcc-alerts {
    box-sizing: border-box;
    width: calc(100% + 32px);
    max-width: none;
    margin-left: -16px;
    margin-right: -18px;
  }

  #nemcc-alerts .ta-message,
  #nemcc-alerts .ta-toolbar,
  #nemcc-alerts .ta-info,
  #nemcc-alerts .ta-empty {
    box-sizing: border-box;
    max-width: 100%;
  }
}
