/* ==========================================================================
   Public / member notification bell
   Uses the site's existing green, gold and cream palette.
   ========================================================================== */
.notif-bell {
  position: relative;
}

.notif-bell > summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(247, 245, 238, 0.35);
  border-radius: 999px;
  color: var(--cream);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.notif-bell > summary::-webkit-details-marker {
  display: none;
}

.notif-bell > summary:hover,
.notif-bell[open] > summary {
  border-color: var(--gold);
  background: rgba(210, 162, 78, 0.14);
  color: var(--gold);
}

.notif-bell > summary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notif-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--green);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
}

.notif-bell-badge[hidden] {
  display: none !important;
}

.notif-bell-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  z-index: 90;
  width: min(370px, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid rgba(0, 47, 43, 0.12);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(0, 31, 28, 0.22);
  color: var(--ink);
  text-align: left;
}

.notif-bell-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(0, 47, 43, 0.1);
  background: var(--green);
  color: var(--white);
  font-family: var(--serif);
  font-size: 0.98rem;
}

.notif-bell-head-note {
  color: rgba(247, 245, 238, 0.65);
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.notif-bell-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 0.35rem;
}

.notif-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
}

.notif-item:hover,
.notif-item:focus-within {
  background: rgba(210, 162, 78, 0.12);
}

.notif-item-link {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  color: var(--ink);
  text-decoration: none;
}

.notif-item-link:hover {
  text-decoration: none;
}

.notif-item-title {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

.notif-item-desc {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notif-item-date {
  color: var(--gold-2);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.notif-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.notif-item-action {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-2);
  font: inherit;
  font-size: 0.7rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.notif-item-action:hover {
  color: var(--gold-2);
}

.notif-item-action:disabled {
  opacity: 0.5;
  cursor: wait;
}

.notif-item.tone-attention .notif-item-title {
  color: var(--gold-2);
}

.notif-item.tone-warning .notif-item-title {
  color: #a33a3a;
}

.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.7rem 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
}

.notif-empty svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notif-bell-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(0, 47, 43, 0.1);
  background: var(--cream);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

.notif-bell-foot:hover {
  color: var(--gold-2);
  text-decoration: none;
}

.notif-bell-foot svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  .notif-bell-menu {
    position: fixed;
    top: 4.9rem;
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}
