#buddypress {
	margin-top: 0;
	padding-top: 1em;
}

#buddypress h2,
#buddypress h3,
#buddypress h4,
body.settings.general label[for="email"],
#group-settings-form legend,
.group-create-privacy legend,
.group-create-invitations legend {
	font-size: var(--size-h5-desktop);
	font-weight: bold;
}

#buddypress th {
	padding-right: .5em;
}

body.change-avatar #buddypress .cac-container,
body.messages #buddypress .cac-container,
body.invites #buddypress .cac-container,
body.groups.single-topic-edit #buddypress .cac-container,
body.groups.group-admin.admin.events #buddypress .cac-container {
	max-width: 1000px;
}

body.change-avatar #buddypress .cac-container,
body.profile-edit #buddypress .cac-container,
body.messages #buddypress .cac-container,
body.notifications #buddypress .cac-container,
body.invites #buddypress .cac-container,
body.events.manage #buddypress .cac-container {
	padding: 2em 0;
}

#item-body {
	padding-bottom: 2em;
}

body.groups.single-item.admin:not(.membership-requests) #item-body,
body.groups.single-item.forum:not(.admin, :has(.bbp-topics,.no-topics,.search-results-header)) #item-body,
body.settings #item-body,
body.change-avatar #item-body,
body.profile-edit #item-body,
body.messages #item-body,
body.notifications #item-body,
body.invites #item-body,
body.events.manage #item-body {
	background: #fff;
	padding: 2em 4em;
	position: relative;
}

body.profile-edit #item-body {
	padding: 2em 9em;
}

body.messages:has(#item-body #message) #item-body,
body.bp-user.notifications:has(#item-body #message) #item-body {
	background: var(--lt-grey);
}

body.settings.data #item-body,
body.settings.profile #item-body,
#two-factor-options,
#bp-upload-ui div.drag-drop-inside,
#eo_occurrence_picker_row,
.eo-label {
	font-family: var(--sans-serif);
}

tr.hide,
span.no-count {
	display: none;
}

/* breadcrumb */

ol.breadcrumb {
	padding-left: 0;
}

ol.breadcrumb li[itemtype] {
	display: inline-block;
	font-family: var(--sans-serif);
	vertical-align: top;
}

ol.breadcrumb a {
	text-decoration: none;
}

ol.breadcrumb li.selected {
	font-weight: bold;
}

ol.breadcrumb li span span {
	display: none;
}

ol.breadcrumb li:not(:last-child)[itemtype]:after {
	padding: 0 5px;
	content: "/";
}

/* header */

#item-header {
	display: grid;
	grid-template-columns: 200px 1fr;
	margin-bottom: 4em;
	margin-top: 2em;
}

hgroup h1,
#item-header h2 {
	display: inline-block;
	line-height: 1;
	margin-bottom: 0;
	margin-top: 0;
	position: relative;
}

span.gender-pronouns {
	font-size: .4em;
}

#item-header a.add-icon {
	height: 18px;
	right: -2rem;
	top: 0;
}

#item-header a.add-icon span {
	font-size: 16px;
	height: 16px;
	width: 16px;
}

#item-header h3 {
	font-size: var(--size-h4-desktop);
}

#item-header .contact-info {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	padding-left: 0;
}

#item-header .contact-info li {
	list-style: none;
}

#item-header .contact-info svg {
	height: 16px;
	width: 16px;
}

#item-header #item-buttons {
	display: flex;
	flex-direction: row;
	gap: 20px;
}

#public-cv.new-cv-cta {
	margin-left: 1.5em;
	position: relative;
}

#public-cv.new-cv-cta a {
	padding-left: 2.25rem;
}

#public-cv.new-cv-cta a:before {
	background-image: url(../img/new.png);
	background-repeat: no-repeat;
	background-size: cover;
	content: '';
	display: inline-block;
	height: 51px;
	left: -26px;
	position: absolute;
	top: -5px;
	width: 52px;
}

/* nav */

#main-nav {
	border-bottom: 2px solid #e6e6e6;
	margin-bottom: 2em;
}

#main-nav ul {
	column-gap: 2.4em;
	position: relative;
	row-gap: 1.5em;
	top: 3px;
}

#item-nav ul,
#subnav ul {
	gap: 1.5em;
}

#item-nav li span {
	display: none;
}

.directory-nav-tabs li.selected {
	font-weight: 600;
}

/* template notices */

#message {
	background: var(--message-error-bgcolor);
	border: 1px solid var(--message-error-border-color);
	border-radius: 6px;
	color: inherit;
	font-family: var(--sans-serif);
	margin-bottom: 1em;
	padding-left: 3.25em;
	padding-right: 1em;
	position: relative;
}

#template-notices #message {
	margin: -2em 0 2em;
}

#template-notices #message.updated {
	background: var(--message-updated-bgcolor);
	border-color: var(--message-updated-border-color);
}

#item-body #message {
	margin-top: 2em;
}

#message p:first-child:before {
	content: "\f14c";
	display: block;
	font-family: dashicons;
	font-size: 1.5em;
	left: 15px;
	position: absolute;
	top: auto;
}

body.settings #template-notices #message.error p:first-child:before {
	top: .75em;
}

/* misc pages */

#activity-stream {
	padding-bottom: 0;
}

.item-card .item-details {
	padding-bottom: 0;
}

.no-events {
	padding-top: .5em;
}

body.events:not(.manage) #item-body {
	position: relative;
}

body.events.manage #item-body {
	position: initial;
}

body.events #manage-personal-li {
	display: block;
	right: 0;
	position: absolute;
	top: -80px;
}

#manage-events {
	margin-bottom: 2.5em;
}

body.events.manage input[readonly] {
	margin-bottom: .5em;
}

body.events #item-body h2 {
	padding-top: 1.5em;
}

body.events #titlediv {
	margin-bottom: 1em;
}

body.events #mm,
body.events .ui-datepicker select.ui-datepicker-month,
body.events .ui-datepicker select.ui-datepicker-year {
	height: auto;
	padding: .5em;
}

body.events #mm,
body.events .ui-datepicker select.ui-datepicker-year {
	background-position: 90%;
	padding-right: 1.5em;
}

body.events #item-body .ui-datepicker-title select.ui-datepicker-month {
	width: 49%;
}

#eo_occurrence_picker_row > div,
.eo-label {
	font-size: 15px;
}

#buddypress #bpeo-ical-download {
	background: #fff;
	border-radius: 6px;
	margin-top: 2em;
}

#members-list a.friendship-button {
	border: 0;
}

body.my-account.invites #item-body {
	font-family: var(--sans-serif);
	padding: 1em;
}

#subnav #cacoinvites-order-select {
	padding-top: 0;
}

.cacoinvites th.caco-actions {
	width: 18em;
}

.cacoinvites th.caco-date {
	width: 12em;
}

#buddypress .cacoinvites td {
	vertical-align: middle;
}

#send_message_form {
	padding-left: 4em;
	padding-right: 4em;
}

body.messages.compose #item-body h2.bp-screen-reader-text {
	clip-path: none;
	height: auto;
	margin-bottom: 1em;
	position: initial;
	width: auto;
}

body.messages.compose ul.acfb-holder li {
	margin-bottom: 0;
}

body.messages.compose input[type="text"],
body.messages.compose textarea,
#bpma-attachments {
	font-family: var(--sans-serif);
	margin-bottom: 1.5rem;
}

#item-body select,
#messages_search {
	font-size: 12px;
	height: auto;
	width: fit-content;
}

/* settings */

body.settings #buddypress .cac-container {
	max-width: 800px;
	padding: 2em 0;
}

body.change-avatar #buddypress h2,
#cancel-avatar-upload {
	display: none;
}

body.settings #buddypress h2 {
	margin-top: 0;
}

#bp-upload-ui p.drag-drop-info,
#bp-upload-ui p.drag-drop-info + p {
	color: #000;
	font-weight: 600;
}

#pass1 {
	width: calc(100% - 159px);
}

label[for="pass1"] {
	display: block;
	margin-top: 1em;
}

#buddypress .wp-pwd button {
	padding: 16px;
	vertical-align: top;
}

body.buddypress .wp-hide-pw .dashicons {
	font-size: 15px;
	height: 15px;
	width: 15px;
}

body.buddypress #pass1-text,
body.buddypress .pw-weak,
body.buddypress #pass-strength-result {
	display: none;
}

body.buddypress .show-password #pass1-text {
	display: inline-block;
	margin-bottom: inherit;
}

body.buddypress .show-password #pass1 {
	display: none;
}

body.buddypress #pass-strength-result {
	background-color: #eee;
	border-color: #ddd;
	border-style: solid;
	border-width: 1px;
	display: none;
	font-weight: 700;
	margin: 10px 0 10px 0;
	padding: 0.5em;
	text-align: center;
}

body.buddypress #pass-strength-result.show {
	display: block;
}

body.buddypress #pass-strength-result.mismatch {
	background-color: #333;
	border-color: transparent;
	color: #fff;
}

body.buddypress #pass-strength-result.error,
body.buddypress #pass-strength-result.bad {
	background-color: #ffb78c;
	border-color: #ff853c;
	color: #333;
}

body.buddypress #pass-strength-result.short {
	background-color: #ffa0a0;
	border-color: #f04040;
	color: #333;
}

body.buddypress #pass-strength-result.good {
	background-color: #ffec8b;
	border-color: #fc0;
	color: #333;
}

body.buddypress #pass-strength-result.strong {
	background-color: #66d66e;
	border-color: #438c48;
	color: #333;
}

body.bp-user.settings #your-profile #submit:disabled {
	color: #767676;
	opacity: 0.4;
}

body.bp-user.settings.js .wp-pwd,
body.bp-user.settings.js .user-pass2-wrap,
body.bp-user.settings.no-js .wp-generate-pw,
body.bp-user.settings.no-js .wp-cancel-pw,
body.bp-user.settings.no-js .wp-hide-pw {
	display: none;
}

#two-factor-options label {
	font-size: 17px;
	font-weight: normal;
}

#two-factor-options td div,
#two-factor-options td p {
	font-size: 14px;
	line-height: normal;
}

#two-factor-options th {
	padding: 1em .5em 1em;
}

#two-factor-options td {
	padding: .6em 1em 0 .5em;
}

#two-factor-options td input {
	margin-bottom: 1em;
}

#settings-form button.code-loading::before {
	margin: 3px 5px 0 -9px;
}

.reset-totp-key {
	margin-top: 1em;
}

#delete-account-understand,
#profile-edit-form p {
	margin-bottom: 2em;
}

#profile-edit-form .editfield {
	display: block;
}

#profile-edit-form fieldset {
	align-items: center;
	border: 0;
	display: grid;
	grid-template-columns: 174px minmax(auto,30vw) 217px;
	margin-bottom: .5em;
	padding-inline: 0;
	justify-content: space-between;
}

@media screen and (min-width: 1000px) and (max-width: 1600px) {
	#profile-edit-form fieldset {
		grid-template-columns: 174px minmax(auto,36vw) 217px;
	}
}

#profile-edit-form legend {
	display: contents;
	font-weight: bold;
}

#profile-edit-form .bp-required-field-label {
	display: none;
}

#profile-edit-form .editfield input {
	order: unset;
}

#profile-edit-form .field-visibility-selector {
	display: grid;
	grid-template-columns: 25px 1fr;
}

#profile-edit-form select {
	margin-bottom: 0;
	width: 192px;
}

#profile-edit-form select:focus-visible {
	border-color: #101010;
	border-width: 2px;
	position: relative;
	top: -3px;
}

@-moz-document url-prefix() {
	#profile-edit-form select:focus-visible {
		border-color: #0060DF;
	}
}

#profile-edit-form input[type="text"],
#profile-edit-form input[type="tel"],
#profile-edit-form input[type="email"],
#profile-edit-form input[type="url"],
#profile-edit-form select {
	border-color: lightgray;
}

#profile-edit-form input[type="email"],
#profile-edit-form input[type="url"] {
	border-style: solid;
	border-width: 1px;
}

#profile-edit-form input[type="text"],
#profile-edit-form input[type="tel"],
#profile-edit-form input[type="email"],
#profile-edit-form input[type="url"],
#profile-edit-form .field-visibility-settings-notoggle {
	font-size: 14px;
	padding: 6px 8px;
}

#profile-edit-form .field-visibility-settings-notoggle {
	padding-left: 0;
}

#profile-edit-form .field-visibility {
	align-self: center;
}

#profile-edit-form .field-visibility::before {
	font-family: dashicons;
	font-size: 20px;
	content: "\f177";
	padding-right: 5px;
}

#profile-edit-form .field-visibility.field-visibility-settings-notoggle::before {
	position: relative;
	top: 4px;
}

body.settings.notifications #settings-form p:first-child,
#settings-form .group-subscription-status-desc {
	display: none;
}

body.settings.notifications #buddypress h3 {
	font-size: var(--size-h6);
}

#settings-form .group-notifications {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	margin: 1.25em 0;
}

#settings-form .group-notifications .row {
	margin-bottom: 1.25em;
}

#settings-form .group-subscription-div {
	display: block;
}

#settings-form .group-email-tooltip a {
	color: var(--deep-blue);
	text-decoration: underline;
}

#settings-form .group-email-tooltip a:hover {
	color: inherit;
}

#settings-form .gemail_icon {
	background: none !important;
	font-weight: normal;
	margin-left: 0;
	padding-left: 0 !important;
}

#settings-form .group-subscription-status {
	font-weight: bold;
}

#settings-form .group-email-container button {
	font-size: 14px;
	padding: 4px 12px;
}

#settings-form dialog button {
	background: #fff;
	border: 0;
	font-size: 16px;
	margin: -.5em -.25em 0 0 !important;
}

#settings-form .modal-close__text {
	display: none;
}

#settings-form #js-tooltip-close:hover {
	cursor: pointer;
}

#settings-form #js-tooltip-close:after {
	content: "\2573";
}

#settings-form .group-email-tooltip :focus {
	box-shadow: none;
}

#settings-form label[for="thread_display"],
#settings-form label[for="per_page"] {
	display: block;
}

#xprofile-settings-profile td {
	padding: .5em 0;
}

#xprofile-settings-profile select {
	margin-bottom: 0;
}

/* messages */

body.messages.compose #buddypress .cac-container {
	max-width: 790px;
}

body.messages #buddypress .cac-container {
	padding-top: 5em;
}

body.messages #item-body {
	padding: 0;
}

body.messages.compose #item-body {
	padding: 2em;
}

body.messages #message-threads {
	margin-top: -1em;
}

body.messages input[type='text'] {
	padding-bottom: 9.5px;
	padding-top: 9.5px;
}

body.messages.inbox #compose-personal-li {
	display: block;
	right: 0;
	position: absolute;
	top: -65px;
}

body.messages:not(.inbox) #compose-personal-li {
	display: none;
}

a#compose,
a#manage {
	padding-bottom: 5.5px;
	padding-top: 5.5px;
}

body.messages.compose #item-body #subnav,
body.messages.view #item-body #subnav {
	left: -2em;
	position: absolute;
	top: -4.5em;
}

body.messages.compose #item-body a#inbox:before,
body.messages.view #item-body a#inbox:before {
	content: '< Back to ';
	font-family: var(--sans-serif);
	position: relative;
}

#inbox-personal-li {
	font-family: var(--sans-serif);
	list-style: none;
}

#search-message-form {
	display: grid;
	grid-template-columns: 1fr 38px;
}

#messages_search,
#messages_search_submit,
#members_search,
#members_search_submit,
#bbp_search,
#bbp_search_submit
 {
	border: 1px solid var(--med-dark-grey);
}

#messages_search:focus,
#messages_search_submit:focus,
#messages_search:focus + input,
#members_search:focus,
#members_search_submit:focus,
#search-members-form:focus-within #members_search_submit,
#bbp_search:focus,
#bbp_search_submit:focus,
#bbp_search:focus + input {
	border: 1px solid var(--dark-grey);
	outline: 0;
}

#messages_search,
#members_search,
#bbp-search-form #bbp_search {
	border-right: 0;
	margin-bottom: 0;
}

#messages_search_submit,
#members_search_submit,
#bbp_search_submit {
	background: #fff url(../img/search-icon.svg) no-repeat left 6px center;
	border-left: 0;
	text-indent: -999em;
	margin-left: -4px;
	margin-top: 0;
	padding: 6px 8px 6px 26px !important;
}

@-moz-document url-prefix() {
	#messages_search_submit,
	#members_search_submit,
	#bbp_search_submit {
		padding-bottom: 7px !important;
		top: 1px;
	}
}

#messages_search_submit:hover,
#members_search_submit:hover,
#bbp_search_submit:hover {
	cursor: pointer;
}

#messages_search:focus + input,
#members_search:focus + input,
#bbp_search:focus + input {
	border-left: 0;
	margin-left: -5px;
}

#message-threads {
	border-collapse: collapse;
	border-top: 1px solid var(--med-dark-grey);
	font-family: var(--sans-serif);
}

#message-threads tr {
	border-bottom: 1px solid var(--med-dark-grey);
}

body.messages td.bulk-select-check {
	padding-left: .5em;
}

body.messages tr.unread {
	font-weight: 600;
}

body.messages tr.Xread {
	background: #F2F6FC;
}

body.messages span.thread-count,
body.messages p.thread-excerpt,
body.messages td.thread-date {
	color: var(--dark-grey);
}

body.messages tr.unread td.thread-date {
	color: var(--black);
}

body.messages td.thread-date {
	padding-right: .7em;
	text-align: right;
	width: 255px;
}

body.messages span.thread-count,
body.messages p.thread-excerpt {
	font-weight: normal;
}

#message-threads td img.avatar {
	border-radius: 25px;
	margin-right: 4px;
	vertical-align: middle;
}

body.messages td.thread-info p:first-child {
	margin-bottom: .25em;
}

body.messages td.thread-info p.thread-excerpt {
	margin-top: 0;
}

body.messages td span.thread-count {
	font-size: .85em;
}

/* message thread */

body.messages #message-thread {
	padding: 2em;
}

body.messages #message-thread .message-box {
	margin: 3em 0;
}

body.messages #message-recipients a.button {
	float: right;
	margin-left: .5em;
	margin-top: -.5em;
}

body.messages .message-metadata {
	display: grid;
	font-family: var(--sans-serif);
	grid-template-columns: 0 38px 1fr 220px;
}

body.messages .message-metadata img.avatar {
	border-radius: 30px;
	margin-right: 8px;
	vertical-align: bottom;
}

body.messages .message-metadata strong,
body.messages .message-metadata span.activity {
	align-self: center;
}

body.messages .message-metadata span.activity {
	color: var(--dark-grey);
	justify-self: end;
	text-align: right;
}

#buddypress #message-thread .message-attachments {
	font-family: var(--sans-serif);
	margin-left: 0;
}

#buddypress #message-thread .message-attachments ul {
	padding-left: .5em;
}

#buddypress #message-thread .message-attachments img {
	vertical-align: text-bottom;
}

body.messages #send-reply {
	border-top: 30px solid #f5f5f5;
	margin: 0 -2em -2em;
}

body.messages #send-reply .message-box {
	margin: 2em 0;
	padding: 0 2em;
}

#send-reply .message-metadata {
	display: inline;
}

#send-reply .message-metadata .avatar-box img.avatar {
	display: none;
}

body.messages label[for="bpma-attachments"] {
	display: block;
}

#send-reply label[for="bpma-attachments"] {
	font-weight: bold;
}

body.messages.compose .ac_results {
	width: 295px !important;
}

body.messages.compose .ac_results li {
	font-family: var(--sans-serif);
	padding: 1em;
}

body.messages.compose ul.acfb-holder li.friend-tab {
	background: #FEF6E7;
	border-color: #F9E2B9;
	font-family: var(--sans-serif);
	margin-top: 9px;
}

li.friend-tab img.avatar {
	margin-right: .5em;
}

body.messages span.from,
body.messages #user-pag,
body.messages .acfb-holder + p,
body.messages #item-body label[for="send-notice"] {
	display: none;
}

body.messages .message-search,
body.notifications #subnav li.last {
	display: block;
	left: 0;
	margin-top: 0;
	padding-top: 0;
	position: absolute;
	top: -4.2em;
}

#messages-select,
#notification-select {
	margin-bottom: 1em;
}

body.messages #pag-bottom,
body.notifications #pag-bottom {
	font-size: .8em;
}

body.messages #pag-bottom .pag-count,
body.notifications #pag-bottom .pag-count {
	margin-bottom: 0;
}

body.messages.inbox #item-body,
body.messages.sentbox #item-body,
body.notifications.unread #item-body,
body.notifications.read #item-body {
	margin-bottom: 5.5em;
}

#messages-bulk-manage,
#notification-bulk-manage {
	display: none;
}

body.no-js #messages-bulk-manage:disabled,
body.js #messages-bulk-manage:not(:disabled),
body.no-js #notification-bulk-manage:disabled,
body.js #notification-bulk-manage:not(:disabled) {
	display: inline-block;
}

/* notifications */

body.notifications:not(.settings,.groups) #item-body {
	margin-top: 3.5em;
	padding: 0em;
}

body.notifications #item-body ul {
	margin-top: 0;
}

body.notifications #subnav li.last {
	left: 0;
}

body.notifications #subnav li.last form {
	margin-top: 0;
}

body.notifications.action-center .invite-block {
	position: absolute;
	right: 0;
	top: -4em;
}

table.notifications .bulk-select-check {
	width: 20px;
}

table.notifications td {
	border-bottom: 1px solid #e6e6e6;
	padding: 1em .5em;
}

table.notifications td.notification-avatar {
	width: 40px;
}

td.notification-avatar img {
	border-radius: 20px;
}

span.notification-new-dot {
    background: var(--cuny-blue);
    border-radius: 20px;
    display: inline-block;
    height: 12px;
    margin-right: 4px;
	width: 12px;
}

td.notification-description a {
	font-weight: bold;
	text-decoration: underline;
}

th.actions,
table.notifications td.notification-actions {
	padding-right: 1.5em;
	text-align: right;
	width: 120px;
}

table.notifications:has(.generic-button) th.actions,
table.notifications:has(.generic-button) td.notification-actions {
	width: 258px;
}

td.notification-actions .generic-button {
	display: inline-block;
	margin-left: 1em;
}

body.notifications #pag-top {
	display: none;
}

.messages-options-nav,
.notifications-options-nav,
body.messages .pagination,
body.notifications .pagination {
	padding: 1em;
}

.messages-options-nav,
.notifications-options-nav {
	bottom: -7em;
	padding-left: .5em;
	position: absolute;
}

.bp-change-avatar {
	display: flex;
	gap: 48px;
}

.bp-avatar-nav {
	display: none;
}

#buddypress .bp-avatar-status p.warning {
	background-color: transparent;
	border: none;
	color: var(--black);
	font-size: 1em;
	padding: 0;
}

label.select-all {
	margin-right: 1em;
}

label.select-all:hover {
	cursor: pointer;
}


/* temp */
body.messages:not(.compose,.view) #buddypress #inbox-personal-li,
#buddypress #sentbox-personal-li {
	display: none;
}

body:not(.bp-user.events,.groups.single-item.events,.docs,.compose,.view,.inbox,.sentbox) #buddypress #subnav li:not(.feed,.last,.groups-members-search) {
	display: none;
}

div.item-list-tabs#subnav {
	background: none;
	border-bottom: none;
}

/* Responsive profile nav */

@media screen and (max-width: 754px) {
	#main-nav ul {
		column-gap: 1.5em;
	}
}

@media screen and (max-width: 714px) {
	body.my-account #main-nav,
	body.change-avatar #subnav,
	body.profile-edit #subnav,
	body.settings #subnav {
		margin-left: -20px;
		margin-right: -20px;
	}

	body.my-account #main-nav ul,
	body.change-avatar #main-nav + #subnav ul,
	body.profile-edit #main-nav + #subnav ul,
	body.settings #main-nav + #subnav ul {
		flex-wrap: nowrap;
		overflow-x: scroll;
		overflow-y: hidden;
		padding-left: 20px;
		padding-right: 10px;
		scrollbar-width: thin;
		scrollbar-color: var(--navbar-thumb-color);
	}

	#main-nav ul::-webkit-scrollbar,
	#item-nav ul::-webkit-scrollbar,
	#subnav ul::-webkit-scrollbar {
		width: 10px;
	}

	#main-nav ul::-webkit-scrollbar-track,
	#item-nav ul::-webkit-scrollbar-track,
	#subnav ul::-webkit-scrollbar-track {
		background: var(--navbar-track-color);
	}

	#main-nav ul::-webkit-scrollbar-thumb,
	#item-nav ul::-webkit-scrollbar-thumb,
	#subnav ul::-webkit-scrollbar-thumb {
		background-color: var(--navbar-thumb-color);
		border-radius: 0 6px 6px 0;
	}
}

@media screen and (max-width: 554px) {
	#object-nav:has(#events-personal-li):has(#user-papers-personal-li),
	body.invites #subnav {
		margin-left: -20px;
		margin-right: -20px;
	}

	body.bp-user #object-nav:has(#events-personal-li):has(#user-papers-personal-li) ul,
	body.invites #main-nav + #subnav ul {
		flex-wrap: nowrap;
		overflow-x: scroll;
		overflow-y: hidden;
		padding-left: 20px;
		padding-right: 10px;
		scrollbar-width: thin;
		scrollbar-color: var(--navbar-thumb-color);
	}
}

@media screen and (max-width: 466px) {
	#object-nav:has(#events-personal-li,#user-papers-personal-li) {
		margin-left: -20px;
		margin-right: -20px;
	}

	body.bp-user #object-nav:has(#events-personal-li,#user-papers-personal-li) ul {
		flex-wrap: nowrap;
		overflow-x: scroll;
		overflow-y: hidden;
		padding-left: 20px;
		padding-right: 10px;
		scrollbar-width: thin;
		scrollbar-color: var(--navbar-thumb-color);
	}
}

@media screen and (max-width: 375px) {
	#object-nav {
		margin-left: -20px;
		margin-right: -20px;
	}

	body.bp-user #object-nav ul {
		flex-wrap: nowrap;
		overflow-x: scroll;
		overflow-y: hidden;
		padding-left: 20px;
		padding-right: 10px;
		scrollbar-width: thin;
		scrollbar-color: var(--navbar-thumb-color);
	}
}


/* Responsive */

@media screen and (max-width: 1316px) {
	body.notifications #subnav li.last {
		left: 1.7em;
	}

	body.notifications.action-center .invite-block {
		right: 1.7em;
	}

	body.messages #item-body #message,
	body.bp-user.notifications #item-body #message {
		margin-left: 1.7em;
		margin-right: 1.7em;
	}

	body.profile-edit #item-body {
		padding-left: 4em;
		padding-right: 4em;
	}
}

@media screen and (max-width: 1000px) {
	body.messages .message-search {
		margin-left: 1.7em;
	}

	body.messages.inbox #compose-personal-li {
		right: 28px;
	}
}

@media screen and (max-width: 900px) {
	#message-recipients .highlight:after {
		clear: both;
		content: '';
		display: table;
	}

	body.messages #message-recipients a.button {
		float: none;
		margin: 1em 0 0;
	}
}

@media screen and (max-width: 800px) {
	body.events #manage-personal-li {
		position: relative;
		text-align: right;
		top: 0;
	}

	body.messages td.thread-date {
		padding-right: .75em;
	}

	table.notifications:has(.generic-button) th.actions,
	table.notifications:has(.generic-button) td.notification-actions {
		width: 100px;
	}

	td.notification-actions .generic-button {
		margin-left: 0;
	}

	td.notification-actions .generic-button:last-child {
		margin-top: .5em;
	}

	td.notification-actions .cac-button {
		width: 58px;
	}

	#profile-edit-form fieldset {
		gap: 2em;
		grid-template-columns: auto 217px;
		justify-content: normal;
	}

	#profile-edit-form legend {
		display: block;
	}
}

@media screen and (max-width: 700px) {
	#message-threads tr {
		display: grid;
		grid-template-columns: 40px 1fr;
		padding: 1em 0;
	}

	#message-threads .thread-info,
	#message-threads .thread-date {
		grid-column: 1 / -1;
		padding-left: 40px;
	}

	#message-threads .thread-date {
		width: auto;
	}

	#message-threads .bp-tooltip {
		font-size: 1.2em;
	}
}

@media screen and (max-width: 600px) {
	#item-header {
		display: block;
		margin-bottom: 2.5em;
		margin-top: 2.25em;
	}

	#item-header h2 {
		font-weight: 600;
	}

	#item-header h3 {
		clear: both;
		font-size: 1.3em;
		font-weight: normal;
		margin-bottom: 1.5em;
	}

	#item-header-avatar img {
		float: left;
		height: 100px;
		padding: 0 1em 1.25em 0;
		width: 100px;
	}

	#item-header-content {
		margin-top: 1em;
	}

	#item-header-content .gender-pronouns {
		display: block;
		font-size: .6em;
		margin-top: .8em;
	}

	#item-header #item-buttons {
		flex-direction: column;
	}

	#main-nav ul,
	#subnav ul {
		row-gap: 1.25em;
	}

	.directory-nav-tabs ul a {
		padding-bottom: 4px;
	}

	body.settings #item-body,
	body.change-avatar #item-body,
	body.profile-edit #item-body,
	body.notifications #item-body,
	body.invites #item-body,
	body.events.manage #item-body {
		padding: 2em;
	}

	body.messages #buddypress .cac-container,
	body.settings #buddypress .cac-container,
	body.profile-edit #buddypress .cac-container {
		margin: 0;
	}

	td.notification-avatar {
		display: none;
	}

	th.actions, table.notifications td.notification-actions {
		width: 135px;
	}

	td.notification-actions .generic-button:last-child {
		margin-top: .5em;
	}

	body.messages .message-search {
		margin-left: 1.5em;
		top: -4.3em;
	}

	body.notifications #item-body #message {
		margin-left: 0;
		margin-right: 0;
	}

	body.notifications #subnav li.last {
		left: 0;
	}

	body.notifications.action-center .invite-block {
		right: 0;
	}

	body.messages.inbox #compose-personal-li {
		top: -58px;
	}

	body.notifications.action-center .invite-block {
		top: -3.5em;
	}

	.invite-block .blue-link {
		position: relative;
		right: -1.7em;
	}

	.bp-change-avatar {
		display: inline-block;
	}

	.bp-change-avatar-existing-avatar,
	#delete-profile-photo-button {
		text-align: center;
	}
}

@media screen and (max-width: 500px) {
	#two-factor-options {
		width: 100%:
	}

	#two-factor-options th {
		text-align: center;
		width: auto;
	}

	#two-factor-options th.col-name {
		display: none;
	}

	table.two-factor-methods-table tr {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	#two-factor-options thead th,
	#two-factor-options td {
		border-bottom: 3px solid var(--ally-grey);
	}

	#two-factor-options td {
		grid-column: 1 / -1;
		padding: 0 1em 1em 1em;
		text-align: center;
	}

	#profile-edit-form fieldset {
		gap: 1em;
		grid-template-columns: auto;
	}

	#profile-edit-form .field-visibility-settings-notoggle,
	#profile-edit-form .field-visibility-selector {
		justify-self: end;
	}

	#profile-edit-form .field-visibility-settings-notoggle {
		margin-top: -.5em;
		padding-top: 0;
	}

	#profile-edit-form select {
		width: auto;
	}

	#profile-edit-form .field_pronouns select {
		width: 273px;
	}

	body.messages #buddypress:has(#item-body #message) .cac-container {
		padding-top: 4em;
	}

	body.messages .message-search {
		width: calc(100% - 3em);
	}

	#messages_search {
		width: calc(100% - 25px);
	}

	body.messages.inbox #compose-personal-li {
		right: 1.7em;
		top: -9.5em;
	}

	#notifications-bulk-management tr {
		display: grid;
		grid-template-columns: 40px 1fr;
	}

	#notifications-bulk-management table.notifications td.notification-actions {
		border-bottom-width: 5px;
		grid-column: 1 / -1;
		width: auto;
	}

	td.notification-actions .generic-button {
		margin-left: 1em;
	}

	#nav-invite-anyone-groups-li {
		font-size: .9em;
	}
}

@media screen and (max-width: 405px) {
	body.notifications.unread #item-body,
	body.notifications.read #item-body {
		margin-bottom: 7em;
	}

	.notifications-options-nav {
		bottom: -8em;
	}

	body.js:has(#notification-bulk-manage:not(:disabled)) #item-body {
		margin-bottom: 9em;
	}

	body.js:has(#notification-bulk-manage:not(:disabled)) .notifications-options-nav {
		bottom: -10em;
	}
}

@media screen and (max-width: 370px) {
	#profile-edit-form .field_pronouns select {
		width: 192px;
	}

	body.messages.inbox #item-body,
	body.messages.sentbox #item-body {
		margin-bottom: 7em;
	}

	.messages-options-nav {
		bottom: -8em;
	}

	body.js:has(#messages-bulk-manage:not(:disabled)) #item-body {
		margin-bottom: 9em;
	}

	body.js:has(#messages-bulk-manage:not(:disabled)) .messages-options-nav {
		bottom: -10em;
	}
}
