.activitypub-settings {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
}

.settings_page_activitypub div:not(.wrap) > .notice {
	max-width: 800px;
	margin: 0 auto 30px;
}

.settings_page_activitypub div:not(.wrap) > .update-nag {
	margin: 25px 20px 15px 22px;
}

.settings_page_activitypub .wrap {
	padding-left: 22px;
}

.activitypub-settings p.interactions {
	margin-bottom: 1em;
}

.activitypub-settings-header {
	text-align: center;
	margin: 0 0 1rem;
	background: #fff;
	border-bottom: 1px solid #dcdcde;
}

.activitypub-settings-header h1 {
	display: inline-block;
	font-weight: 600;
	margin: 0 0.8rem 1rem;
	font-size: 23px;
	padding: 9px 0 4px;
	line-height: 1.3;
}

.activitypub-settings-title-section {
	display: flex;
	align-items: center;
	justify-content: center;
	clear: both;
	padding-top: 8px;
}

.settings_page_activitypub #wpcontent {
	padding-left: 0;
}

.activitypub-settings-tabs-scroller {
	overflow-x: auto;
	width: 100%;
	padding-top: 2px;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
}

.activitypub-settings-tabs-wrapper {
	display: inline-flex;
	vertical-align: top;
	flex-wrap: nowrap;
	gap: 0;
}

.activitypub-settings-tab.active {
	box-shadow: inset 0 -3px #3582c4;
	font-weight: 600;
}

.activitypub-settings-tab {
	display: block;
	text-decoration: none;
	color: inherit;
	padding: .5rem 1rem 1rem;
	margin: 0 1rem;
	transition: box-shadow .5s ease-in-out;
	white-space: nowrap;
}

.activitypub-settings .row {
	margin-bottom: 16px;
}

.activitypub-settings .row > div {
	max-width: calc(100% - 24px);
	display: inline-flex;
	flex-direction: column;
}

.activitypub-settings .row .description {
	margin-top: 0;
}

.wp-header-end {
	visibility: hidden;
	margin: -2px 0 0;
}

summary {
	cursor: pointer;
	text-decoration: underline;
	color: #2271b1;
}

.activitypub-settings-accordion {
	border: 1px solid #c3c4c7;
}

.activitypub-settings-accordion-heading {
	margin: 0;
	border-top: 1px solid #c3c4c7;
	font-size: inherit;
	line-height: inherit;
	font-weight: 600;
	color: inherit;
}

.activitypub-settings-accordion-heading:first-child {
	border-top: none;
}

.activitypub-settings-accordion-panel {
	margin: 0;
	padding: 1em 1.5em;
	background: #fff;
}

.activitypub-settings-accordion-trigger {
	background: #fff;
	border: 0;
	color: #2c3338;
	cursor: pointer;
	display: flex;
	font-weight: 400;
	margin: 0;
	padding: 1em 3.5em 1em 1.5em;
	min-height: 46px;
	position: relative;
	text-align: left;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	-webkit-user-select: auto;
	user-select: auto;
}

.activitypub-settings-accordion-trigger {
	color: #2c3338;
	cursor: pointer;
	font-weight: 400;
	text-align: left;
}

.activitypub-settings-accordion-trigger .title {
	pointer-events: none;
	font-weight: 600;
	flex-grow: 1;
}

.activitypub-settings-accordion-trigger .icon,
.activitypub-settings-accordion-viewed .icon {
	border: solid #50575e medium;
	border-width: 0 2px 2px 0;
	height: .5rem;
	pointer-events: none;
	position: absolute;
	right: 1.5em;
	top: 50%;
	transform: translateY(-70%) rotate(45deg);
	width: .5rem;
}

.activitypub-settings-accordion-trigger[aria-expanded="true"] .icon {
	transform: translateY(-30%) rotate(-135deg);
}

table.followings .dashicons {
	font-size: 1em;
	line-height: 1.7;
}

.activitypub-settings-accordion-trigger:active,
.activitypub-settings-accordion-trigger:hover {
	background: #f6f7f7;
}

.activitypub-settings-accordion-trigger:focus {
	color: #1d2327;
	border: none;
	box-shadow: none;
	outline-offset: -1px;
	outline: 2px solid #2271b1;
	background-color: #f6f7f7;
}

.activitypub-settings
input.blog-user-identifier {
	text-align: right;
}

.activitypub-settings
.header-image {
	width: 100%;
	height: 80px;
	position: relative;
	display: block;
	margin-bottom: 40px;
	background-image: rgb(168,165,175);
	background-image: linear-gradient(180deg, red, yellow);
	background-size: cover;
}

.activitypub-settings .logo {
	height: 80px;
	width: 80px;
	position: relative;
	top: 40px;
	left: 40px;
}

.settings_page_activitypub .plugin-recommendations {
	border-bottom: none;
	margin-bottom: 0;
}

#dashboard_right_now li a.activitypub-followers::before {
	content: "\f307";
	font-family: dashicons;
}

.repost .dashboard-comment-wrap,
.like .dashboard-comment-wrap {
	padding-inline-start: 63px;
}

.repost .dashboard-comment-wrap .comment-author,
.like .dashboard-comment-wrap .comment-author {
	margin-block: 0;
}

.extra-fields-nav a + a {
	margin-left: 8px;
}
.rtl .extra-fields-nav a + a {
	margin-left: auto;
	margin-right: 8px;
}

.contextual-help-tabs-wrap dt {
	font-weight: 600;
}
.contextual-help-tabs-wrap .activitypub-block-screenshot {
	margin: 10px 0;
}
.contextual-help-tabs-wrap .activitypub-block-screenshot img {
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	height: auto;
	max-width: 100%;
}
.contextual-help-tabs-wrap .activitypub-block-screenshot figcaption {
	color: #555;
	font-style: italic;
	font-size: 0.9em;
	margin-top: 5px;
}

/* Blockquote Styles */
.contextual-help-tabs-wrap blockquote {
	border-left: 4px solid #3582c4;
	background-color: #f6f7f7;
	padding: 16px 20px;
	margin: 0 0 20px;
}

.contextual-help-tabs-wrap blockquote p {
	margin: 0 0 10px;
	line-height: 1.5;
}

.contextual-help-tabs-wrap blockquote p:last-child {
	margin-bottom: 0;
}

.contextual-help-tabs-wrap blockquote cite {
	display: block;
	font-weight: 600;
	margin-top: 8px;
	font-size: 0.9em;
	color: #50575e;
}

.contextual-help-tabs-wrap blockquote cite:before {
	content: "—";
}

/* Plugin List Styles */
.plugin-list {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: stretch;
}

.plugin-list .plugin-card {
	flex: 1 1 300px;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	margin: 0;
}

.plugin-list .plugin-card .desc {
	flex: 1 1 auto;
}

.plugin-list .plugin-action-buttons li {
	margin: 0 0 10px 0;
}
.plugin-list .plugin-card .action-links {
	position: static;
	margin-left: 148px;
	width: auto;
}

.plugin-list .plugin-action-buttons {
	float: none;
	margin: 1em 0 0;
	text-align: left;
}

.plugin-list .plugin-action-buttons li {
	display: inline-block;
	vertical-align: middle;
}

.plugin-list .plugin-action-buttons li .button {
	margin-right: 20px;
}

.plugin-list .plugin-card h3 {
	margin-right: 24px;
}

.plugin-list .plugin-card .name,
.plugin-list .plugin-card .desc,
.plugin-card .desc > p {
	margin-right: 0;
}

.plugin-list .plugin-card .desc p:first-of-type {
	margin-top: 0;
}

/* RTL Support for blockquotes */
.rtl .contextual-help-tabs-wrap blockquote {
	border-left: none;
	border-right: 4px solid #3582c4;
	padding: 16px 20px;
}

#activitypub-follow-form .highlight {
	animation: highlight-fade 3s ease-in-out;
	border-color: #3582c4 !important;
	box-shadow: 0 0 0 1px #3582c4;
}

@keyframes highlight-fade {
	0% {
		background-color: #e7f3ff;
		border-color: #3582c4;
		box-shadow: 0 0 0 1px #3582c4;
	}
	100% {
		background-color: #fff;
		border-color: #8c8f94;
		box-shadow: none;
	}
}

@media screen and (max-width: 782px) {
	.activitypub-settings {
		margin: 0 22px;
	}

	.activitypub-settings .row > div {
		max-width: calc(100% - 36px);
		width: 100%;
	}
}
