/* WordPress classic-theme integration and member page cleanup */
html, body { margin: 0; min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1 0 auto; width: 100%; min-width: 0; }
.site-footer { flex-shrink: 0; }
/* Restore the theme navigation/footer on Member Access pages. Member Access v1.1.0 hides generic header/footer tags on auth pages. */
body.r16-auth-page .site-header, body.r16-auth-page .site-footer, body.r16-portal-page .site-header, body.r16-portal-page .site-footer { display: block !important; visibility: visible !important; opacity: 1 !important; }
body.r16-auth-page .topline, body.r16-portal-page .topline { display: block !important; visibility: visible !important; }
.r16-default-content { padding-top: 34px; padding-bottom: 42px; }
.r16-content-card { background: #fff; border: 1px solid #e7eaf1; border-radius: 18px; padding: 28px; margin: 0 0 24px; overflow-wrap: anywhere; }
.r16-content-card .entry-title { margin-top: 0; }
/* The member portal plugin used to inject its own header/footer. Use the theme's shared header/footer instead. */
.r16-site-top, .r16-site-header, .r16-site-footer { display: none !important; }
/* Remove block-theme layout assumptions if content contains Gutenberg blocks */
.entry-content, .wp-block-post-content, .wp-block-group { max-width: none; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
/* member forms and dashboard content remain centered inside the theme layout */
.r16-portal-main { padding: 0 0 8px !important; width: 100%; box-sizing: border-box; }
.r16-portal-main > .r16-container { width: min(1200px, calc(100% - 44px)); margin: 0 auto; }
.r16-auth-wrap { margin: 30px auto; }
@media (max-width: 720px) {
  .r16-default-content { padding-top: 22px; padding-bottom: 28px; }
  .r16-content-card { padding: 20px; }
}

.r16-more{position:relative}.r16-more-menu{display:none;position:absolute;top:100%;right:0;min-width:245px;background:#fff;padding:10px;border:1px solid #e7eaf1;border-radius:10px;box-shadow:0 12px 28px #10294720;z-index:1001}.r16-more:hover .r16-more-menu,.r16-more:focus-within .r16-more-menu{display:block}.r16-more-menu a{display:block;padding:8px 10px;white-space:nowrap}
