.nest-community-wrap {
	max-width: 980px;
	margin: 0 auto;
	color: #1f2933;
}

.nest-community-wrap *,
.nest-community-wrap *::before,
.nest-community-wrap *::after {
	box-sizing: border-box;
}

.nest-community-wrap a {
	color: #2563eb;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.nest-community-context-name {
	margin: 0 0 1rem;
	color: #697386;
	font-size: 0.95rem;
}

.nest-community-search,
.nest-community-form {
	display: grid;
	gap: 0.75rem;
	margin: 1rem 0 1.25rem;
	padding: 1rem;
	border: 1px solid #dfe5ee;
	border-radius: 6px;
	background: #fff;
}

.nest-community-create-panel {
	margin: 1rem 0 1.25rem;
	border: 1px solid #dfe5ee;
	border-radius: 6px;
	background: #f8fafc;
	overflow: hidden;
}

.nest-community-create-panel summary {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	color: #1f2933;
	font-weight: 700;
	cursor: pointer;
}

.nest-community-create-panel summary small {
	color: #697386;
	font-size: 0.8rem;
	font-weight: 500;
}

.nest-community-create-panel[open] summary {
	border-bottom: 1px solid #dfe5ee;
	background: #fff;
}

.nest-community-create-panel .nest-community-form {
	margin: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
}

.nest-community-search {
	grid-template-columns: minmax(180px, 1fr) auto;
	align-items: end;
	padding: 0.85rem;
	background: #f8fafc;
}

.nest-community-form label,
.nest-community-search label {
	display: grid;
	gap: 0.35rem;
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1f2933;
}

.nest-community-form input[type="text"],
.nest-community-form input[type="search"],
.nest-community-form textarea,
.nest-community-search input[type="search"],
.nest-community-edit input[type="text"],
.nest-community-edit textarea {
	width: 100%;
	max-width: 100%;
	min-height: 38px;
	border: 1px solid #cfd8e3;
	border-radius: 4px;
	padding: 0.5rem 0.65rem;
	background: #fff;
	color: #1f2933;
	font: inherit;
}

.nest-community-form textarea,
.nest-community-edit textarea {
	min-height: 92px;
}

.nest-community-wrap button,
.nest-community-wrap input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 34px;
	border: 1px solid #2563eb;
	border-radius: 5px;
	padding: 0.45rem 0.8rem;
	background: #2563eb;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.nest-community-wrap button:hover,
.nest-community-wrap input[type="submit"]:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
}

.nest-community-boards,
.nest-community-topics {
	display: grid;
	gap: 0.85rem;
	margin-top: 1rem;
}

.nest-community-board,
.nest-community-topic,
.nest-community-reply {
	border: 1px solid #dfe5ee;
	border-radius: 6px;
	background: #fff;
	padding: 1rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.nest-community-board h2,
.nest-community-topic h3,
.nest-community-topic-full h2 {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	line-height: 1.3;
}

.nest-community-board h2 a,
.nest-community-topic h3 a {
	color: #111827;
	text-decoration: none;
}

.nest-community-board h2 a:hover,
.nest-community-topic h3 a:hover {
	color: #2563eb;
	text-decoration: underline;
}

.nest-community-board p,
.nest-community-topic p,
.nest-community-reply p {
	margin: 0.4rem 0;
	color: #4b5563;
}

.nest-community-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	margin-top: 0.75rem;
	color: #697386;
	font-size: 0.82rem;
}

.nest-community-meta span {
	display: inline-flex;
	align-items: center;
}

.nest-community-board-title {
	margin: 1rem 0 0.35rem;
	font-size: 1.35rem;
}

.nest-community-topic-full {
	margin-top: 1rem;
}

.nest-community-content {
	margin-top: 0.85rem;
	line-height: 1.6;
}

.nest-community-content ul,
.nest-community-content ol {
	padding-left: 1.35rem;
}

.nest-community-content img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.nest-community-edit {
	margin-top: 0.85rem;
	border-top: 1px solid #edf2f7;
	padding-top: 0.75rem;
}

.nest-community-edit summary {
	width: fit-content;
	color: #2563eb;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.nest-community-edit form {
	display: grid;
	gap: 0.75rem;
	margin-top: 0.75rem;
}

.nest-community-edit form + form {
	margin-top: 0.5rem;
}

.nest-community-edit form + form button {
	border-color: #c2410c;
	background: #c2410c;
}

.nest-community-edit form + form button:hover {
	border-color: #9a3412;
	background: #9a3412;
}

.nest-community-wrap .wp-editor-wrap {
	max-width: 100%;
	width: 100%;
}

.nest-community-wrap .wp-editor-container {
	width: 100%;
	max-width: 100%;
	border: 1px solid #cfd8e3;
	border-radius: 4px;
	overflow: hidden;
}

.nest-community-wrap .mce-toolbar .mce-btn button,
.nest-community-wrap .quicktags-toolbar input {
	min-height: 0;
	border: 0;
	background: transparent;
	color: inherit;
	padding: 2px 3px;
}

@media (max-width: 700px) {
	.nest-community-search {
		grid-template-columns: 1fr;
	}

	.nest-community-wrap {
		max-width: 100%;
	}
}
