/* NH Important Notes (frontend)
   Variables: --nh-green, --nh-forest, --nh-mint, --nh-offwhite, --nh-charcoal
*/

/* ── Outer section ─────────────────────────────────────────── */
.nh-important-notes {
  margin-top: 18px;
  margin-bottom: 8px;
  padding: 16px 18px;
  border-radius: 4px;
  background: var(--nh-offwhite, #FAF7F2);
  border: 1px solid var(--nh-mint, #C3E8C6);
  border-left: 4px solid var(--nh-green, #00704A);
}

/* ── Header row ────────────────────────────────────────────── */
.nh-in-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(195, 232, 198, 0.6);
}

.nh-in-head-ico {
  font-size: 15px;
  width: 15px;
  height: 15px;
  color: var(--nh-green, #00704A);
  flex: 0 0 auto;
  opacity: 0.9;
}

/* Force override Astra's H2 styles */
h2.nh-in-title,
.nh-in-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  color: var(--nh-forest, #1E3932) !important;
  line-height: 1 !important;
  border: none !important;
  background: none !important;
}

/* Also kill any ::after pseudo added by theme H2 styles */
h2.nh-in-title::after,
.nh-in-title::after {
  display: none !important;
}

/* ── List ──────────────────────────────────────────────────── */
.nh-in-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ── Each note row ─────────────────────────────────────────── */
.nh-in-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid rgba(195, 232, 198, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  will-change: transform;
}

.nh-in-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  border-color: var(--nh-mint, #C3E8C6);
}

/* ── Icon badge ────────────────────────────────────────────── */
.nh-in-ico-wrap {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--nh-offwhite, #FAF7F2);
  border: 1px solid rgba(195, 232, 198, 0.35);
  margin-top: 1px;
}

.nh-in-ico {
  font-size: 15px;
  width: 15px;
  height: 15px;
  color: var(--nh-forest, #1E3932);
  opacity: 0.7;
  display: block;
}

/* ── Text ──────────────────────────────────────────────────── */
.nh-in-txt {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(44, 42, 41, 0.82);
  line-height: 1.5;
  font-size: 0.93em;
}

.nh-in-txt strong {
  color: var(--nh-charcoal, #2C2A29);
  font-weight: 700;
}

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .nh-important-notes {
    padding: 12px 14px;
  }
  .nh-in-item {
    padding: 9px 10px;
    gap: 10px;
  }
  .nh-in-ico-wrap {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
  }
  .nh-in-item:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ── Dark mode ─────────────────────────────────────────────── */
body.dark-mode .nh-important-notes {
  background: var(--dm-surface, #343530);
  border-color: var(--dm-border, #3E5F50);
  border-left-color: var(--dm-primary, #36B47A);
}

body.dark-mode .nh-in-head {
  border-bottom-color: rgba(62, 95, 80, 0.6);
}

body.dark-mode .nh-in-head-ico {
  color: var(--dm-primary, #36B47A);
}

body.dark-mode h2.nh-in-title,
body.dark-mode .nh-in-title {
  color: var(--dm-text, #ECEAE6) !important;
}

body.dark-mode .nh-in-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--dm-border, #3E5F50);
}

body.dark-mode .nh-in-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  border-color: var(--dm-primary, #36B47A);
}

body.dark-mode .nh-in-ico-wrap {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(62, 95, 80, 0.5);
}

body.dark-mode .nh-in-ico {
  color: var(--dm-text, #ECEAE6);
  opacity: 0.65;
}

body.dark-mode .nh-in-txt {
  color: rgba(236, 234, 230, 0.82);
}

body.dark-mode .nh-in-txt strong {
  color: var(--dm-text, #ECEAE6);
}
