/* Changes 5: readable navigation, wellness guidance and member communications. */
@media (max-width: 1180px) {
  .site-header .nav-toggle { display: block; }
  .site-header .main-nav,
  .home-index-v54 .site-header .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    z-index: 110;
    display: none;
    margin: 0;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    max-height: var(--public-nav-max-height, 65vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff !important;
    opacity: 1;
    border: 1px solid #d5deea !important;
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .2) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .site-header .main-nav.is-open,
  .home-index-v54 .site-header .main-nav.is-open { display: flex; }
  .site-header .main-nav > a:not(.button) { padding: 12px; }
  .site-header .main-nav .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 8px 0 0;
  }
}
@media (max-width: 420px) {
  .site-header .main-nav .nav-actions { grid-template-columns: 1fr; }
}

.wellness-disclaimer {
  margin: 0 20px 20px;
  padding: 16px 18px;
  background: #f3f6fa;
  border: 1px solid #d8e2ee;
  border-left: 4px solid #b8121a;
  border-radius: 12px;
  color: #344158;
  min-width: 0;
}
.wellness-disclaimer strong { display: block; color: #172033; font-size: 14px; }
.wellness-disclaimer p { margin: 6px 0 0; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }

.portal-communications-link { position: relative; overflow: visible; }
.portal-message-count {
  position: absolute;
  top: -5px;
  right: -7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  min-height: 21px;
  padding: 2px 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #b8121a;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.member-communications {
  margin: 0 0 20px;
  border: 1px solid #cbd8e8;
  border-top: 4px solid #b8121a;
  box-shadow: 0 8px 24px rgba(30, 41, 59, .05);
}
.member-communications .portal-panel-head { align-items: center; flex-wrap: wrap; gap: 12px; }
.member-communications .portal-panel-head h2 { font-size: 18px; }
.member-communications-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.member-communications-grid > div { min-width: 0; }
.member-communications-grid h3 { margin: 0 0 12px; font-size: 13px; color: #475569; }
.member-communications .portal-notice { display: block; margin-bottom: 10px; }
.member-communications .portal-notice strong { font-size: 14px; }
.member-communications .portal-notice p { font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.member-communications .portal-notice a { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.member-message-preview { display: block; padding: 13px 0; border-top: 1px solid #e2e8f0; }
.member-message-preview:first-of-type { border-top: 0; padding-top: 0; }
.member-message-preview strong { display: block; font-size: 14px; line-height: 1.4; color: #172033; }
.member-message-preview p { margin: 5px 0; color: #475569; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.member-message-preview time { font-size: 11px; color: #64748b; }
.member-message-preview:hover strong { color: #a91120; text-decoration: underline; }
.member-communications-empty { margin: 0; color: #64748b; font-size: 13px; }
.member-message-item { padding: 18px 20px; border-top: 1px solid #e2e8f0; scroll-margin-top: 100px; }
.member-message-item:first-child { border-top: 0; }
.member-message-item h3 { margin: 0 0 7px; font-size: 16px; line-height: 1.4; color: #172033; }
.member-message-item p { margin: 10px 0 0; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.member-message-meta { color: #64748b; font-size: 12px; }
.member-message-item:target, .member-club-notice:target { outline: 3px solid #d8a832; outline-offset: -3px; background: #fffbed; }
.member-club-notice { display: block; scroll-margin-top: 100px; }
.member-club-notice p { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.member-club-notice strong { font-size: 15px; }
.member-club-notice time { display: block; margin-top: 10px; font-size: 11px; color: #64748b; }
@media (max-width: 760px) {
  .member-communications-grid { grid-template-columns: 1fr; gap: 18px; }
  .member-communications .portal-panel-head .portal-btn { width: 100%; }
  .wellness-disclaimer { margin: 0 14px 16px; padding: 14px; }
}
