/* Custom Blog — comment section (entry CPTs only) */

.custom-blog-comments-wrap {
	margin: 2rem 0;
	padding: 0;
}

.custom-blog-comments-title {
	margin: 0 0 0.5rem;
	padding-top: 0.75rem;
	border-top: 2px solid #c5c5c5;
	font-size: 1rem;
	font-weight: 600;
	color: #2c3e50;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-family: inherit;
}

.custom-blog-comments-divider {
	border: 0;
	border-top: 1px dotted #bbb;
	margin: 0 0 1.25rem;
}

.custom-blog-comments-inner {
	display: grid;
	grid-template-columns: 1fr minmax(220px, 320px);
	gap: 1.75rem 2rem;
	align-items: start;
	background: #ececec;
	padding: 1.25rem 1.25rem 1.5rem;
	box-sizing: border-box;
}

@media (max-width: 640px) {
	.custom-blog-comments-inner {
		grid-template-columns: 1fr;
	}
}

.custom-blog-comments-main {
	min-width: 0;
}

.custom-blog-comments-sidebar {
	min-width: 0;
}

.custom-blog-normas-heading {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.custom-blog-normas-body {
	font-size: 0.8rem;
	line-height: 1.45;
	color: #666;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.custom-blog-normas-body p {
	margin: 0 0 0.65em;
}

.custom-blog-normas-body p:last-child {
	margin-bottom: 0;
}

/* Hide default reply title when empty */
#reply-title:empty,
.comment-reply-title:empty {
	display: none !important;
}

.custom-blog-comment-form {
	margin: 0;
}

.custom-blog-comment-form .logged-in-as {
	display: none;
}

.custom-blog-comment-prompt {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1rem;
	color: #222;
	margin: 0 0 0.65rem;
}

.custom-blog-logged-in-as {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: #555;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.custom-blog-logged-in-as strong {
	font-weight: 700;
	color: #222;
}

.custom-blog-logout-link {
	color: #888;
	text-decoration: none;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.custom-blog-logout-link:hover,
.custom-blog-logout-link:focus {
	text-decoration: underline;
	color: #555;
}

.custom-blog-comment-form textarea#comment {
	width: 100%;
	max-width: 100%;
	min-height: 140px;
	box-sizing: border-box;
	padding: 0.65rem;
	border: 1px solid #ccc;
	background: #fff;
	font-size: 0.95rem;
}

.custom-blog-terms-row {
	margin: 1rem 0 1rem;
}

.custom-blog-terms-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.68rem;
	line-height: 1.35;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	cursor: pointer;
}

.custom-blog-terms-label input[type="checkbox"] {
	margin-top: 0.15rem;
	flex-shrink: 0;
}

.custom-blog-submit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 0 auto;
	padding: 0.65rem 1.75rem;
	background: #2d8a54;
	border: none;
	border-radius: 2px;
	color: #fff !important;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.custom-blog-submit-button:hover,
.custom-blog-submit-button:focus {
	background: #257347;
	color: #fff !important;
}

.custom-blog-submit-button .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 1;
}

.custom-blog-comment-form .form-submit {
	text-align: center;
	margin-top: 0.5rem;
}

.custom-blog-submit-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.custom-blog-comment-list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.custom-blog-comments-closed {
	margin: 0;
	color: #666;
}

/* —— Guest gate (login + register) —— */

.custom-blog-guest-gate {
	margin: 0;
}

.custom-blog-guest-gate-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem 2rem;
	align-items: start;
}

@media (max-width: 640px) {
	.custom-blog-guest-gate-cols {
		grid-template-columns: 1fr;
	}
}

.custom-blog-guest-heading {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 700;
	color: #222;
	font-family: Georgia, "Times New Roman", serif;
}

.custom-blog-guest-login-col .login-username label,
.custom-blog-guest-login-col .login-password label {
	display: block;
	font-size: 0.65rem;
	font-weight: 600;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.35rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.custom-blog-guest-login-col .login-username input,
.custom-blog-guest-login-col .login-password input {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 0.6rem;
	border: 1px solid #ccc;
	background: #fff;
	font-size: 0.95rem;
}

.custom-blog-guest-login-col .login-username {
	margin-bottom: 0.85rem;
}

.custom-blog-guest-login-col .login-submit {
	margin: 1rem 0 0;
	text-align: right;
}

.custom-blog-guest-login-col #custom-blog-gate-submit,
.custom-blog-guest-login-col input[type="submit"]#custom-blog-gate-submit {
	display: inline-block;
	padding: 0.55rem 1.4rem;
	background: #2d8a54 !important;
	border: none !important;
	border-radius: 4px;
	color: #fff !important;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.custom-blog-guest-login-col #custom-blog-gate-submit:hover,
.custom-blog-guest-login-col input[type="submit"]#custom-blog-gate-submit:hover {
	background: #257347 !important;
}

.custom-blog-guest-register-col {
	text-align: right;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.custom-blog-guest-register-intro {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #444;
	text-align: right;
}

.custom-blog-guest-register-actions {
	margin: 0;
	text-align: right;
}

.custom-blog-btn.custom-blog-btn--register {
	display: inline-block;
	padding: 0.55rem 1.25rem;
	background: #2d8a54;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	max-width: 100%;
	box-sizing: border-box;
}

.custom-blog-btn.custom-blog-btn--register:hover,
.custom-blog-btn.custom-blog-btn--register:focus {
	background: #257347;
	color: #fff !important;
}
