/* Member notification inbox */
.member-notifications-page {
  max-width: 1180px;
}

.member-notification-list {
  display: grid;
  gap: 14px;
}

.member-notification-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16,24,40,.05);
}

.member-notification-card.is-unread {
  border-color: rgba(28,124,84,.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(28,124,84,.09), transparent 32%),
    #fff;
}

.notification-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #ecfdf3;
  color: #0f7f55;
  font-weight: 1000;
}

.notification-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.notification-card-head strong {
  font-size: 1.08rem;
}

.notification-card-head small {
  color: #64748b;
  font-weight: 800;
  white-space: nowrap;
}

.member-notification-card p {
  margin: 8px 0 12px;
  color: #334155;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .notification-card-head {
    display: grid;
  }

  .notification-card-head small {
    white-space: normal;
  }
}


.member-notification-card[data-notification-card] {
  cursor: pointer;
}

.member-notification-card[data-notification-card]:hover,
.member-notification-card[data-notification-card]:focus {
  outline: 3px solid rgba(15,127,85,.14);
  transform: translateY(-1px);
}


.notification-rich-body {
  margin: 8px 0 12px;
  color: #334155;
  line-height: 1.58;
}

.notification-rich-body p {
  margin: 0 0 10px;
}

.notification-rich-body h3,
.notification-rich-body h4 {
  margin: 0 0 10px;
  color: #0f172a;
  line-height: 1.25;
}

.notification-rich-body ul,
.notification-rich-body ol {
  margin: 8px 0 12px 22px;
}

.notification-rich-body blockquote {
  margin: 10px 0;
  padding: 10px 13px;
  border-left: 4px solid #0f7f55;
  border-radius: 12px;
  background: #ecfdf3;
  color: #14532d;
  font-weight: 800;
}

.notification-rich-body a {
  color: #0f7f55;
  font-weight: 900;
  text-decoration: underline;
}


.member-notification-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.member-notification-attachments a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.10);
  font-weight: 900;
  text-decoration: none;
}

.notification-message :is(p, ul, ol, blockquote, h3, h4) {
  margin-top: 0;
}

.notification-actions-pro{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:12px;
}
.member-notification-card .pill-green{
  background:#dcfce7;
  color:#0f7f55;
}
.member-notification-card.is-unread .notification-icon{
  background:#dcfce7;
  box-shadow:0 0 0 6px rgba(15,127,85,.08);
}
@media (max-width:640px){
  .member-notification-card{
    grid-template-columns:38px minmax(0,1fr);
    padding:14px;
    border-radius:20px;
  }
  .notification-icon{width:38px;height:38px;border-radius:14px;}
  .notification-actions-pro .btn{width:auto;min-height:38px;}
}

/* Native member app: compact accordion inbox. Desktop/web cards remain unchanged. */
body.mobile-notifications-app .mobile-notification-controls{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
body.mobile-notifications-app .mobile-notification-controls button{
  min-height:42px;
  border:1px solid #dcebe4;
  border-radius:14px;
  background:#fff;
  color:#087f5b;
  font-size:.72rem;
  font-weight:950;
}
body.mobile-notifications-app .mobile-notification-inbox{
  display:grid;
  gap:10px;
}
body.mobile-notifications-app .member-notification-list{
  gap:9px;
}
body.mobile-notifications-app .mobile-notification-accordion{
  display:block;
  padding:0;
  border-radius:19px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(16,32,51,.045);
}
body.mobile-notifications-app .mobile-notification-summary{
  width:100%;
  min-height:70px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto auto;
  gap:9px;
  align-items:center;
  padding:12px;
  border:0;
  background:transparent;
  color:#102033;
  text-align:left;
}
body.mobile-notifications-app .mobile-notification-summary-copy{
  min-width:0;
}
body.mobile-notifications-app .mobile-notification-summary-copy strong,
body.mobile-notifications-app .mobile-notification-summary-copy small{
  display:block;
}
body.mobile-notifications-app .mobile-notification-summary-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.82rem;
}
body.mobile-notifications-app .mobile-notification-summary-copy small{
  margin-top:4px;
  color:#66758a;
  font-size:.62rem;
  font-weight:800;
}
body.mobile-notifications-app .mobile-notification-state{
  padding:5px 7px;
  border-radius:999px;
  background:#f1f5f9;
  color:#64748b;
  font-size:.57rem;
  font-weight:950;
}
body.mobile-notifications-app .is-unread .mobile-notification-state{
  background:#dcfce7;
  color:#067647;
}
body.mobile-notifications-app .mobile-notification-chevron{
  color:#087f5b;
  font-size:1rem;
  transition:transform .18s ease;
}
body.mobile-notifications-app .is-open .mobile-notification-chevron{
  transform:rotate(180deg);
}
body.mobile-notifications-app .mobile-notification-detail{
  padding:0 13px 13px 60px;
  border-top:1px solid #eef3f0;
}
body.mobile-notifications-app .mobile-notification-detail .notification-rich-body{
  margin:12px 0 8px;
  font-size:.77rem;
  line-height:1.52;
}
body.mobile-notifications-app .mobile-notification-detail .notification-actions-pro{
  margin-top:8px;
}
body.mobile-notifications-app .mobile-notification-detail .btn{
  min-height:36px;
  padding:0 10px;
  border-radius:12px;
  font-size:.66rem;
}
@media(max-width:380px){
  body.mobile-notifications-app .mobile-notification-summary{
    grid-template-columns:34px minmax(0,1fr) auto;
  }
  body.mobile-notifications-app .mobile-notification-state{display:none}
  body.mobile-notifications-app .mobile-notification-detail{padding-left:12px}
}
