/* Presidium — notification bell + homepage "Just added" card.
   Self-contained: only .mp-n* / .mp-hn* classes, so it cannot clash with the
   existing site stylesheets. Brand colors below match Presidium's own
   maroon/red (#a5241c) used elsewhere on the site (e.g. the "PAY FEES" button). */

.mp-n-item,
.mp-n-wrap {
  box-sizing: border-box;
}

/* ---------- Bell in the navbar ---------- */

.mp-n-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  list-style: none;
}

/*
 * Desktop: the menu (ul#accordion) is actively centered inside the header
 * bar by the JS (see centerMenu() in mp-notifications.js), so it can land
 * anywhere left of where it used to sit — the bell can no longer live
 * inside that list and expect to stay put. Instead it is appended straight
 * into the full-width header bar (.container-fluid.nav-header-container,
 * already `position: relative` in style.css) and pinned to its right edge
 * here, completely independent of wherever the menu ends up centered.
 *
 * `right` gives it a small, deliberate padding from the edge of the bar;
 * `top: 50%` + `translateY(-50%)` keeps it vertically centered in the bar
 * regardless of the bar's height.
 */
@media (min-width: 768px) {
  .mp-n-wrap {
    position: absolute;
    top: 50%;
    right: 20px;
    left: auto;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    flex: none;
    z-index: 20;
  }
}

.mp-n-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.mp-n-bell:hover,
.mp-n-bell:focus {
  background: rgba(255, 255, 255, .30);
  outline: none;
}

.mp-n-bell svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Small ring animation when there is something unseen */
.mp-n-bell.has-unseen svg {
  transform-origin: 50% 15%;
  animation: mp-n-ring 2.2s ease-in-out 0s 3;
}

@keyframes mp-n-ring {
  0%, 72%, 100% { transform: rotate(0); }
  76% { transform: rotate(11deg); }
  80% { transform: rotate(-9deg); }
  84% { transform: rotate(7deg); }
  88% { transform: rotate(-5deg); }
  92% { transform: rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mp-n-bell.has-unseen svg { animation: none; }
}

.mp-n-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #d9a441;
  color: #3a2400;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .12);
  pointer-events: none;
}

/* ---------- Dropdown panel ---------- */

.mp-n-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(20, 10, 10, .28);
  overflow: hidden;
  z-index: 9999;
  display: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  text-align: left;
  color: #221f1f;
}

.mp-n-panel.is-open { display: block; }

.mp-n-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(90deg, #221f1f, #a5241c 65%, #7c1b15);
  color: #fff;
}

.mp-n-head strong {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}

.mp-n-head span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .72);
  display: block;
  font-weight: 400;
}

.mp-n-close {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, .8);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  border-radius: 6px;
  flex: 0 0 auto;
}

.mp-n-close:hover { color: #fff; background: rgba(255, 255, 255, .15); }
.mp-n-close svg { width: 16px; height: 16px; display: block; }

.mp-n-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 380px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mp-n-item { display: block; border-bottom: 1px solid #f1e9e8; }
.mp-n-item:last-child { border-bottom: 0; }

.mp-n-item > a {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  text-decoration: none;
  color: inherit;
  transition: background .12s ease;
}

.mp-n-item > a:hover,
.mp-n-item > a:focus { background: #fbf5f4; text-decoration: none; outline: none; }

.mp-n-ico {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.mp-n-ico svg { width: 17px; height: 17px; display: block; }
.mp-n-ico.is-video { background: linear-gradient(135deg, #e0574a, #a5241c); }
.mp-n-ico.is-pdf   { background: linear-gradient(135deg, #a5241c, #7c1b15); }

.mp-n-body { flex: 1 1 auto; min-width: 0; }

.mp-n-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 2px;
  color: #221f1f;
  word-break: break-word;
}

.mp-n-meta {
  display: block;
  font-size: 11.5px;
  color: #8b8b8b;
  line-height: 1.4;
}

.mp-n-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 20px;
  background: #d9a441;
  color: #3a2400;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  vertical-align: 1px;
}

.mp-n-empty {
  padding: 34px 20px;
  text-align: center;
  color: #8b8b8b;
  font-size: 13px;
}

.mp-n-foot {
  display: flex;
  border-top: 1px solid #f1e9e8;
  background: #fdfbfa;
}

.mp-n-foot a {
  flex: 1 1 0;
  padding: 11px 8px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #a5241c;
  text-decoration: none;
}

.mp-n-foot a + a { border-left: 1px solid #f1e9e8; }
.mp-n-foot a:hover { background: #faf0ef; text-decoration: none; }

/* Highlight pulse when arriving from a notification link */
.mp-n-target {
  animation: mp-n-flash 2.4s ease-out 1;
  border-radius: 12px;
}

@keyframes mp-n-flash {
  0%, 55% { box-shadow: 0 0 0 4px rgba(217, 164, 65, .85); }
  100%    { box-shadow: 0 0 0 4px rgba(217, 164, 65, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .mp-n-target { animation: none; }
}

/* ---------- Small screens ---------- */

@media (max-width: 767px) {
  /* The bell is moved next to the hamburger button on phones (see the JS),
     so this class is added to that button's container only while it is
     hosting the bell — it never touches the header otherwise.
     .accordion-menu is Presidium's own wrapper around the hamburger toggle
     and the collapsed menu (this theme uses bootsnav, not the reference
     theme's .navbar-header, hence the different selector). It always gets
     position:relative here so the bell has a reliable anchor regardless of
     what the theme's own stylesheet does with it elsewhere.
     Deliberately no `transform` on this host: a transformed ancestor becomes
     the containing block for position:fixed descendants, which would trap
     the dropdown panel inside this small button instead of letting it span
     the screen. */
  .accordion-menu.mp-n-host {
    position: relative;
  }
  .accordion-menu.mp-n-host .mp-n-wrap {
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 30;
  }

  .mp-n-wrap {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mp-n-bell {
    background: rgba(0, 0, 0, .08);
    color: #221f1f;
  }

  .mp-n-bell:hover,
  .mp-n-bell:focus { background: rgba(0, 0, 0, .16); }

  .mp-n-panel {
    position: fixed;
    top: 84px;
    left: 14px;
    right: 14px;
    width: auto;
    max-width: none;
  }

  .mp-n-list { max-height: 58vh; }
}

/* ================= Hero glass notification (homepage only) =================
   Self-contained, additive: only .mp-hn-* classes, separate from the bell
   dropdown above. To fully revert: delete this block, and the matching
   initHeroGlass()/call in mp-notifications.js — nothing else touched. */

/* The card is appended straight to <body> (see initHeroGlass() in
   mp-notifications.js), not inside .main-slider, so it always sits flush at
   the top-right of the page, directly under the site header -- independent
   of how tall/short the hero section happens to be. Its `top` is set
   inline by JS to the header's live height; right/margin stay flush here. */
.mp-hn-card {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  z-index: 40;
  width: 360px;
  max-width: calc(100% - 32px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(20, 10, 10, .38);
  border: 1px solid rgba(255, 255, 255, .35);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  text-align: left;
  animation: mp-hn-in .55s cubic-bezier(.2, .8, .2, 1) .35s both;
}

@keyframes mp-hn-in {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .mp-hn-card { animation: none; }
}

.mp-hn-card.is-closing { animation: mp-hn-out .25s ease forwards; }

@keyframes mp-hn-out {
  to { opacity: 0; transform: translateY(-10px); }
}

.mp-hn-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px 14px 18px;
  background: linear-gradient(135deg, rgba(34, 31, 31, .60), rgba(165, 36, 28, .55) 55%, rgba(124, 27, 21, .55));
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  color: #fff;
}

.mp-hn-badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 20px;
  background: #d9a441;
  color: #3a2400;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.mp-hn-head strong { font-size: 14.5px; font-weight: 700; }

.mp-hn-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, .16);
  border: 0;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.mp-hn-close:hover { background: rgba(255, 255, 255, .3); }
.mp-hn-close svg { width: 13px; height: 13px; display: block; }

.mp-hn-viewport {
  overflow: hidden;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.mp-hn-track {
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}

/* The rotation is driven entirely from JS (mp-notifications.js): it slides
   the track up by one row, then moves the top <li> to the bottom. Pausing on
   hover is handled there too — deliberately not CSS @keyframes/:hover. See
   the long comment in mp-notifications.js before changing this. */

.mp-hn-item { border-bottom: 1px solid rgba(34, 31, 31, .08); }
.mp-hn-item:last-child { border-bottom: 0; }

.mp-hn-item > a {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  transition: background .12s ease;
}

.mp-hn-item > a:hover,
.mp-hn-item > a:focus { background: rgba(255, 255, 255, .55); outline: none; text-decoration: none; }

.mp-hn-ico {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.mp-hn-ico svg { width: 16px; height: 16px; display: block; }
.mp-hn-ico.is-video { background: linear-gradient(135deg, #e0574a, #a5241c); }
.mp-hn-ico.is-pdf   { background: linear-gradient(135deg, #a5241c, #7c1b15); }

.mp-hn-body { flex: 1 1 auto; min-width: 0; }

.mp-hn-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 2px;
  color: #221f1f;
  word-break: break-word;
}

.mp-hn-meta { display: block; font-size: 11px; color: #6c6461; }

.mp-hn-foot {
  display: flex;
  background: rgba(255, 255, 255, .68);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.mp-hn-foot a {
  flex: 1 1 0;
  padding: 11px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #a5241c;
  text-decoration: none;
}

.mp-hn-foot a + a { border-left: 1px solid rgba(34, 31, 31, .08); }
.mp-hn-foot a:hover { background: rgba(255, 255, 255, .4); text-decoration: none; }

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .mp-hn-head { background: linear-gradient(135deg, #221f1f, #a5241c 65%, #7c1b15); }
  .mp-hn-list,
  .mp-hn-foot { background: #fff; }
}

@media (max-width: 767px) {
  .mp-hn-card { top: 0; right: 0; left: 16px; width: auto; max-width: none; }
}
