.uka-dashboard,
.uka-auth-shell {
	--uka-ink: #17211c;
	--uka-muted: #5f6c65;
	--uka-line: #d8dfda;
	--uka-surface: #ffffff;
	--uka-soft: #f4f7f5;
	--uka-accent: #2d684e;
	--uka-danger: #9f2d2d;
	color: var(--uka-ink);
}

/*
 * Public submissions and private previews use WordPress's standard alignment
 * classes. Define them here because the active theme's content rules otherwise
 * override the margins chosen in the frontend editor.
 */
body.single-post .aligncenter {
	clear: both;
	display: block;
	margin-right: auto !important;
	margin-left: auto !important;
}

body.single-post figure.aligncenter,
body.single-post .wp-caption.aligncenter {
	width: fit-content;
	max-width: 100%;
}

body.single-post .alignleft {
	float: left;
	margin: .35rem 1.5rem 1rem 0 !important;
}

body.single-post .alignright {
	float: right;
	margin: .35rem 0 1rem 1.5rem !important;
}

body.single-post img.aligncenter,
body.single-post img.alignleft,
body.single-post img.alignright,
body.single-post figure.aligncenter img,
body.single-post figure.alignleft img,
body.single-post figure.alignright img,
body.single-post .wp-caption img {
	max-width: 100%;
	height: auto;
}

body.single-post .wp-caption {
	max-width: 100%;
}

.single-post .uka-public-edit-submission {
	margin: 0 0 1rem;
	font-size: 0.82rem;
	line-height: 1.4;
}

.single-post .uka-public-edit-submission a {
	color: #8b2f2f;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.single-post .uka-public-edit-submission a:hover,
.single-post .uka-public-edit-submission a:focus-visible {
	color: #5f1f1f;
	text-decoration-thickness: 2px;
}

@media (max-width: 600px) {
	body.single-post .alignleft,
	body.single-post .alignright {
		float: none;
		display: block;
		margin-right: auto !important;
		margin-left: auto !important;
	}
}

.uka-dashboard {
	width: 100%;
	max-width: 1280px;
	margin: 2rem auto;
}

.uka-dashboard-header,
.uka-list-item,
.uka-actions,
.uka-comment-controls {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.uka-dashboard-header {
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.uka-dashboard-header h2,
.uka-list-item h3 {
	margin: 0;
}

.uka-eyebrow,
.uka-status {
	margin: 0 0 .25rem;
	color: var(--uka-muted);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.uka-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1rem;
}

.uka-list-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: .75rem;
	margin-bottom: 1rem;
	padding: .85rem;
	border-radius: 10px;
	background: var(--uka-soft);
}

.uka-list-controls label {
	display: grid;
	gap: .25rem;
	font-size: .9rem;
	font-weight: 700;
}

.uka-list-controls select {
	min-width: 160px;
	padding: .55rem;
	border: 1px solid var(--uka-line);
	border-radius: 8px;
	background: #fff;
	color: var(--uka-ink);
}

.uka-results-summary {
	color: var(--uka-muted);
	font-size: .9rem;
}

.uka-subtabs {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--uka-line);
}

.uka-tab {
	padding: .65rem 1rem;
	border: 1px solid var(--uka-line);
	border-radius: 999px;
	text-decoration: none;
}

.uka-tab.is-active {
	border-color: var(--uka-accent);
	background: var(--uka-accent);
	color: #fff;
}

.uka-panel,
.uka-card {
	padding: clamp(1rem, 3vw, 2rem);
	border: 1px solid var(--uka-line);
	border-radius: 18px;
	background: var(--uka-surface);
	box-shadow: 0 12px 30px rgb(25 45 34 / 7%);
}

.uka-auth-shell {
	max-width: 520px;
	margin: 3rem auto;
}

.uka-list {
	display: grid;
	gap: .75rem;
}

.uka-list-item {
	justify-content: space-between;
	padding: 1rem;
	border: 1px solid var(--uka-line);
	border-radius: 12px;
	background: var(--uka-soft);
}

.uka-list-item > div:first-child {
	min-width: 0;
	flex: 1;
}

.uka-submission-title,
.uka-dashboard-comment-title {
	margin: 0;
	color: #000;
	font-size: clamp(1.2rem, 1rem + .45vw, 1.55rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: normal;
	text-transform: none;
	overflow-wrap: anywhere;
}

.uka-comment-item--author-reply .uka-comment-excerpt {
	color: var(--uka-danger);
}

.uka-submission-updated {
	margin: .3rem 0 0;
	color: var(--uka-muted);
	font-size: .82rem;
	line-height: 1.4;
}

.uka-comment-content {
	min-width: 0;
	color: var(--uka-text);
	font-size: 1rem;
	font-weight: 400;
}

.uka-comment-excerpt {
	margin: .65rem 0 .4rem;
	font-size: .92rem;
	font-weight: 400;
	line-height: 1.55;
}

.uka-comment-meta {
	margin: 0;
}

.uka-submission-stats {
	display: grid;
	grid-template-columns: repeat(6, minmax(85px, 1fr));
	gap: 1px;
	margin-top: .9rem;
	overflow: hidden;
	border: 1px solid var(--uka-line);
	border-radius: 10px;
	background: var(--uka-line);
}

.uka-submission-stat {
	display: grid;
	align-content: start;
	gap: .2rem;
	min-width: 0;
	padding: .6rem;
	background: var(--uka-surface);
}

.uka-submission-stat span {
	color: var(--uka-muted);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.uka-submission-stat strong {
	overflow-wrap: anywhere;
	font-size: .9rem;
}

.uka-submission-details {
	display: grid;
	grid-template-columns: repeat(5, minmax(100px, 1fr));
	gap: .5rem;
	margin-top: .65rem;
}

.uka-submission-detail {
	display: grid;
	gap: .15rem;
	min-width: 0;
	padding: .45rem .55rem;
	border-radius: 8px;
	background: rgb(45 104 78 / 7%);
}

.uka-submission-detail span {
	color: var(--uka-muted);
	font-size: .65rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.uka-submission-detail strong {
	overflow-wrap: anywhere;
	font-size: .82rem;
}

.uka-post-reading-time {
	margin: 0 0 1.25rem;
	padding: .45rem .75rem;
	border-left: 4px solid #2d684e;
	background: #f4f7f5;
	color: #5f6c65;
	font-size: .9rem;
	font-weight: 700;
}

/* Public single-post comments. */
.single-post #comments,
.single-post .comments-area {
	--uka-comments-ink: #172b35;
	--uka-comments-muted: #5f6863;
	--uka-comments-line: #d5d7cf;
	--uka-comments-surface: #fffdf8;
	--uka-comments-soft: #f7f5ef;
	--uka-comments-accent: #8f2f3f;
	box-sizing: border-box;
	width: 100%;
	max-width: 920px;
	margin: clamp(2.5rem, 6vw, 5rem) auto 0;
	color: var(--uka-comments-ink);
}

.single-post #comments .comments-title,
.single-post #comments > h2,
.single-post #comments > h3,
.single-post .comments-area .comments-title {
	margin: 0 0 1.5rem;
	font-size: clamp(1.55rem, 3vw, 2.15rem);
	line-height: 1.2;
}

.single-post #comments .comment-list,
.single-post .comments-area .comment-list {
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}

.single-post #comments .comment-list .children,
.single-post .comments-area .comment-list .children {
	margin: 1rem 0 0 clamp(1rem, 5vw, 3.5rem);
	padding: 0;
	list-style: none;
}

.single-post #comments .comment-body,
.single-post .comments-area .comment-body {
	position: relative;
	box-sizing: border-box;
	margin-bottom: 1rem;
	padding: clamp(1.1rem, 3vw, 1.6rem);
	border: 1px solid var(--uka-comments-line);
	border-radius: 12px;
	background: var(--uka-comments-surface);
	box-shadow: 0 8px 24px rgb(23 43 53 / 6%);
}

.single-post #comments .comment-meta,
.single-post .comments-area .comment-meta {
	margin-bottom: 1rem;
}

.single-post #comments .comment-author,
.single-post .comments-area .comment-author {
	display: flex;
	align-items: center;
	gap: .8rem;
	font-weight: 700;
}

.single-post #comments .comment-author .avatar,
.single-post .comments-area .comment-author .avatar {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	margin: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #e8e9e4;
	box-shadow: 0 0 0 1px var(--uka-comments-line);
	object-fit: cover;
}

.single-post #comments .comment-author .says,
.single-post .comments-area .comment-author .says {
	color: var(--uka-comments-muted);
	font-weight: 400;
}

.single-post #comments .comment-metadata,
.single-post .comments-area .comment-metadata {
	margin: .25rem 0 0 3.8rem;
	color: var(--uka-comments-muted);
	font-size: .9rem;
}

.single-post #comments .comment-metadata a,
.single-post .comments-area .comment-metadata a {
	color: inherit;
}

.single-post #comments .comment-content,
.single-post .comments-area .comment-content {
	font-size: 1.05rem;
	line-height: 1.7;
}

.single-post #comments .comment-content > :last-child,
.single-post .comments-area .comment-content > :last-child {
	margin-bottom: 0;
}

.single-post #comments .reply,
.single-post .comments-area .reply {
	margin-top: 1rem;
}

.single-post #comments .comment-reply-link,
.single-post #comments .comment-edit-link,
.single-post .comments-area .comment-reply-link,
.single-post .comments-area .comment-edit-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	margin: .25rem .4rem .25rem 0;
	padding: .4rem .75rem;
	border: 1px solid var(--uka-comments-accent);
	border-radius: 6px;
	background: transparent;
	color: var(--uka-comments-accent) !important;
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
}

.single-post #comments .comment-reply-link:hover,
.single-post #comments .comment-reply-link:focus-visible,
.single-post #comments .comment-edit-link:hover,
.single-post #comments .comment-edit-link:focus-visible,
.single-post .comments-area .comment-reply-link:hover,
.single-post .comments-area .comment-reply-link:focus-visible,
.single-post .comments-area .comment-edit-link:hover,
.single-post .comments-area .comment-edit-link:focus-visible {
	background: var(--uka-comments-accent);
	color: #fff !important;
}

.single-post #respond,
.single-post .comment-respond {
	box-sizing: border-box;
	margin-top: 2rem;
	padding: clamp(1.25rem, 4vw, 2rem);
	border: 1px solid var(--uka-comments-line);
	border-radius: 14px;
	background: var(--uka-comments-soft);
}

.single-post #respond .comment-reply-title,
.single-post .comment-respond .comment-reply-title {
	margin: 0 0 1rem;
	font-size: clamp(1.4rem, 2.5vw, 1.85rem);
	line-height: 1.25;
}

.single-post #respond .logged-in-as,
.single-post .comment-respond .logged-in-as {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem .65rem;
	margin: 0 0 1.25rem;
	padding: .75rem 1rem;
	border-left: 4px solid var(--uka-comments-accent);
	border-radius: 5px;
	background: #fff;
	color: var(--uka-comments-muted);
	font-size: .92rem;
	line-height: 1.5;
}

.single-post #respond .logged-in-as a,
.single-post .comment-respond .logged-in-as a {
	color: var(--uka-comments-accent) !important;
	font-weight: 700;
}

.single-post #respond .required-field-message,
.single-post .comment-respond .required-field-message {
	display: block;
	width: 100%;
	color: var(--uka-comments-muted);
	font-size: .88rem;
}

.single-post #respond .comment-form-comment,
.single-post .comment-respond .comment-form-comment {
	display: grid;
	gap: .5rem;
	margin: 0 0 1rem;
}

.single-post #respond .comment-form-comment label,
.single-post .comment-respond .comment-form-comment label {
	display: block;
	font-weight: 700;
}

.single-post #respond textarea,
.single-post .comment-respond textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 180px;
	padding: .85rem 1rem;
	border: 1px solid #aeb5b0;
	border-radius: 8px;
	background: #fff;
	color: var(--uka-comments-ink);
	font: inherit;
	line-height: 1.55;
	resize: vertical;
}

.single-post #respond textarea:focus,
.single-post .comment-respond textarea:focus {
	border-color: var(--uka-comments-accent);
	outline: 3px solid rgb(143 47 63 / 18%);
	outline-offset: 1px;
}

.single-post #respond .form-submit,
.single-post .comment-respond .form-submit {
	margin: 0;
}

.single-post #respond .submit,
.single-post .comment-respond .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: .7rem 1.15rem;
	border: 2px solid var(--uka-comments-accent) !important;
	border-radius: 6px;
	background: var(--uka-comments-accent) !important;
	color: #fff !important;
	font-family: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.single-post #respond .submit:hover,
.single-post #respond .submit:focus-visible,
.single-post .comment-respond .submit:hover,
.single-post .comment-respond .submit:focus-visible {
	border-color: var(--uka-comments-ink) !important;
	background: var(--uka-comments-ink) !important;
	color: #fff !important;
}

.single-post #respond #cancel-comment-reply-link,
.single-post .comment-respond #cancel-comment-reply-link {
	margin-left: .65rem;
	color: var(--uka-comments-accent);
	font-size: .9rem;
	font-weight: 700;
}

.uka-actions,
.uka-comment-controls {
	flex-wrap: wrap;
	justify-content: flex-end;
}

.uka-button,
.uka-auth-shell input[type="submit"] {
	display: inline-block;
	padding: .7rem 1rem;
	border: 0;
	border-radius: 8px;
	background: var(--uka-accent);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.uka-button-small {
	padding: .5rem .75rem;
	font-size: .9rem;
}

.uka-editor-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 1.25rem;
}

.uka-editor-actions .uka-button {
	margin: 0;
}

.uka-editor-form .wp-media-buttons .insert-media {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	min-height: 42px;
	padding: .65rem 1rem;
	border: 2px solid #2d684e !important;
	border-radius: 8px;
	background: transparent !important;
	box-shadow: none !important;
	color: #243b32 !important;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
}

.uka-editor-form .wp-media-buttons .insert-media:hover,
.uka-editor-form .wp-media-buttons .insert-media:focus-visible {
	border-color: #214f3b !important;
	background: #eef1eb !important;
	color: #172820 !important;
}

.uka-editor-form .wp-media-buttons .insert-media .wp-media-buttons-icon::before {
	color: currentColor;
}

.uka-link-button {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--uka-danger);
	text-decoration: underline;
	cursor: pointer;
}

.uka-inline-form {
	display: inline;
	margin: 0;
}

.uka-editor-form {
	display: grid;
	gap: .85rem;
}

.uka-editor-form label,
.uka-editor-form legend {
	font-weight: 700;
}

.uka-editor-form input[type="text"],
.uka-editor-form input[type="email"],
.uka-editor-form input[type="url"],
.uka-editor-form input[type="password"],
.uka-editor-form input[type="file"],
.uka-editor-form textarea,
.uka-comment-controls textarea,
.uka-auth-shell input[type="text"],
.uka-auth-shell input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	padding: .7rem;
	border: 1px solid var(--uka-line);
	border-radius: 8px;
	background: #fff;
	color: var(--uka-ink);
}

.uka-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: .5rem;
}

.uka-checkbox-grid label {
	font-weight: 400;
}

.uka-current-image img {
	max-width: 240px;
	height: auto;
	border-radius: 8px;
}

.uka-featured-image-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
}

.uka-featured-image-actions .uka-button,
.uka-featured-image-actions .uka-link-button {
	margin: 0;
}

.uka-notice {
	margin: 1rem 0;
	padding: .8rem 1rem;
	border-left: 4px solid var(--uka-accent);
	border-radius: 6px;
	background: #eef8f2;
}

.uka-notice-error {
	border-color: var(--uka-danger);
	background: #fff0f0;
}

.uka-lock,
.uka-help {
	color: var(--uka-muted);
	font-size: .9rem;
}

.uka-request-shell {
	max-width: 760px;
	margin-inline: auto;
}

.uka-checkbox {
	display: flex !important;
	align-items: flex-start;
	gap: .65rem;
	font-weight: 400 !important;
}

.uka-checkbox input {
	flex: 0 0 auto;
	margin-top: .3rem;
}

.uka-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.uka-comment-byline {
	margin: .35rem 0 0;
	color: var(--uka-muted);
	font-size: .9rem;
	font-weight: 700;
}

.uka-comment-controls details {
	min-width: min(420px, 80vw);
}

.uka-comment-controls details[open] {
	width: 100%;
	padding: .75rem;
	border: 1px solid var(--uka-line);
	border-radius: 10px;
	background: #fff;
}

.uka-account-grid {
	display: grid;
	gap: 1.25rem;
}

.uka-account-section {
	padding: clamp(1rem, 2vw, 1.5rem);
	border: 1px solid var(--uka-line);
	border-radius: 14px;
	background: var(--uka-soft);
}

.uka-account-section h3 {
	margin-top: 0;
}

.uka-profile-photo {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.uka-profile-photo img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
}

.uka-field-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
}

.uka-field-pair label {
	display: grid;
	gap: .35rem;
}

.uka-plain-label {
	font-weight: 400 !important;
}

.uka-account-facts {
	display: grid;
	gap: .75rem;
}

.uka-account-facts div {
	display: grid;
	grid-template-columns: minmax(110px, 1fr) 2fr;
	gap: .75rem;
	padding-bottom: .75rem;
	border-bottom: 1px solid var(--uka-line);
}

.uka-account-facts dt {
	font-weight: 700;
}

.uka-account-facts dd {
	margin: 0;
}

.uka-media-upload {
	margin-bottom: 1.5rem;
	padding: 1rem;
	border: 1px solid var(--uka-line);
	border-radius: 12px;
	background: var(--uka-soft);
}

.uka-media-upload h3 {
	margin-top: 0;
}

.uka-media-upload-form {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(240px, 2fr) auto;
	align-items: end;
	gap: .75rem;
}

.uka-media-upload-form label {
	display: grid;
	gap: .3rem;
	font-weight: 700;
}

.uka-media-upload-form input {
	box-sizing: border-box;
	width: 100%;
	padding: .65rem;
	border: 1px solid var(--uka-line);
	border-radius: 8px;
	background: #fff;
}

.uka-media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.uka-media-card {
	overflow: hidden;
	border: 1px solid var(--uka-line);
	border-radius: 12px;
	background: var(--uka-soft);
}

.uka-media-preview {
	display: block;
	aspect-ratio: 4 / 3;
	background: #e8ece9;
}

.uka-media-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.uka-media-details {
	padding: .85rem;
}

.uka-media-details h3 {
	margin: 0;
	font-size: 1rem;
	overflow-wrap: anywhere;
}

.uka-media-details details {
	margin-top: .75rem;
}

.uka-media-edit-form {
	margin-top: .75rem;
}

.uka-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.25rem;
}

/* Keep the writer pages comfortably wide in the UK Authors Literary theme. */
body.uka-writer-dashboard-page .standard-page-article,
body.uka-writer-login-page .standard-page-article {
	box-sizing: border-box;
	width: min(94%, 1440px) !important;
	max-width: 1440px !important;
	margin-right: auto !important;
	margin-left: auto !important;
}

body.uka-writer-dashboard-page .standard-page-content,
body.uka-writer-login-page .standard-page-content {
	width: 100% !important;
	max-width: none !important;
}

/* Use a stable, readable navigation layout instead of theme-dependent pills. */
body.uka-writer-dashboard-page .uka-tabs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: .65rem;
}

body.uka-writer-dashboard-page .uka-subtabs {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 620px;
}

body.uka-writer-dashboard-page .uka-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: .7rem .85rem;
	border-color: var(--uka-line) !important;
	border-radius: 8px;
	background: #fff !important;
	color: #8f2028 !important;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
}

body.uka-writer-dashboard-page .uka-tab:hover,
body.uka-writer-dashboard-page .uka-tab:focus-visible {
	border-color: #8f2028 !important;
	background: #fff7f7 !important;
	color: #741820 !important;
}

body.uka-writer-dashboard-page .uka-tab.is-active {
	border-color: #2d684e !important;
	background: #2d684e !important;
	color: #fff !important;
}

body.uka-writer-dashboard-page .uka-list-item {
	display: block;
	padding: 1.25rem;
}

/*
 * Keep dashboard comment typography deterministic. Earlier theme-side
 * workarounds could place title styling on a whole card; these rules reset the
 * card and then style only the dedicated plugin elements.
 */
body.uka-writer-dashboard-page .uka-comments-list .uka-comment-item,
body.uka-writer-dashboard-page .uka-comments-list .uka-comment-content {
	color: var(--uka-text) !important;
	font-size: 1rem !important;
	font-weight: 400 !important;
	line-height: 1.55 !important;
	text-transform: none !important;
}

body.uka-writer-dashboard-page .uka-comments-list .uka-dashboard-comment-title {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #000 !important;
	font-size: clamp(1.2rem, 1rem + .45vw, 1.55rem) !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

body.uka-writer-dashboard-page .uka-comments-list .uka-comment-excerpt {
	margin: .65rem 0 .4rem !important;
	color: var(--uka-text) !important;
	font-size: .92rem !important;
	font-weight: 400 !important;
	line-height: 1.55 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

body.uka-writer-dashboard-page .uka-comments-list .uka-author-reply-text,
body.uka-writer-dashboard-page .uka-comments-list .uka-comment-item--author-reply .uka-author-reply-text {
	color: #b4232f !important;
}

body.uka-writer-dashboard-page .uka-comments-list .uka-comment-byline,
body.uka-writer-dashboard-page .uka-comments-list .uka-comment-meta {
	font-weight: 400 !important;
}

body.uka-writer-dashboard-page .uka-submission-stats {
	grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
}

body.uka-writer-dashboard-page .uka-submission-details {
	grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

body.uka-writer-dashboard-page .uka-actions,
body.uka-writer-dashboard-page .uka-comment-controls {
	justify-content: flex-start;
	margin-top: 1rem;
}

/* High-contrast buttons that cannot inherit pale theme link colours. */
body .uka-dashboard .uka-button,
body .uka-dashboard button.uka-button,
body .uka-auth-shell .uka-button,
body .uka-auth-shell input[type="submit"],
body.uka-writer-dashboard-page .uka-card .uka-button,
body.uka-writer-login-page .uka-card .uka-button {
	border: 1px solid #2d684e !important;
	background: #2d684e !important;
	color: #fff !important;
	text-decoration: none !important;
}

body .uka-dashboard .uka-button:hover,
body .uka-dashboard .uka-button:focus-visible,
body .uka-auth-shell .uka-button:hover,
body .uka-auth-shell .uka-button:focus-visible,
body .uka-auth-shell input[type="submit"]:hover,
body .uka-auth-shell input[type="submit"]:focus-visible {
	border-color: #214f3b !important;
	background: #214f3b !important;
	color: #fff !important;
}

body .uka-dashboard .uka-button-secondary {
	border: 2px solid #2d684e !important;
	background: transparent !important;
	color: #243b32 !important;
}

body .uka-dashboard .uka-button-secondary:hover,
body .uka-dashboard .uka-button-secondary:focus-visible {
	background: #eef1eb !important;
	color: #172820 !important;
}

body .uka-dashboard .uka-editor-actions .uka-button-publish {
	border-color: #a5252d !important;
	background: #a5252d !important;
	color: #fff !important;
}

body .uka-dashboard .uka-editor-actions .uka-button-publish:hover,
body .uka-dashboard .uka-editor-actions .uka-button-publish:focus-visible {
	border-color: #741820 !important;
	background: #741820 !important;
	color: #fff !important;
}

body.uka-writer-dashboard-page .uka-dashboard-header > a,
body.uka-writer-dashboard-page .uka-actions > a,
body.uka-writer-dashboard-page .uka-comment-controls > a,
body.uka-writer-dashboard-page .uka-pagination > a,
body.uka-writer-dashboard-page .uka-comment-controls summary,
body.uka-writer-dashboard-page .uka-media-details summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: .45rem .8rem;
	border: 1px solid #8f2028 !important;
	border-radius: 7px;
	background: #fff !important;
	color: #8f2028 !important;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
}

body.uka-writer-dashboard-page .uka-dashboard-header > a:hover,
body.uka-writer-dashboard-page .uka-actions > a:hover,
body.uka-writer-dashboard-page .uka-comment-controls > a:hover,
body.uka-writer-dashboard-page .uka-pagination > a:hover,
body.uka-writer-dashboard-page .uka-comment-controls summary:hover,
body.uka-writer-dashboard-page .uka-media-details summary:hover {
	background: #8f2028 !important;
	color: #fff !important;
}

body.uka-writer-dashboard-page .uka-link-button {
	min-height: 40px;
	padding: .45rem .8rem;
	border: 1px solid #9f2d2d !important;
	border-radius: 7px;
	background: #fff !important;
	color: #9f2d2d !important;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

body.uka-writer-dashboard-page .uka-link-button:hover,
body.uka-writer-dashboard-page .uka-link-button:focus-visible {
	background: #9f2d2d !important;
	color: #fff !important;
}

body.uka-writer-dashboard-page .uka-list-controls {
	padding: 1rem;
}

body.uka-writer-dashboard-page .uka-list-controls select {
	min-height: 48px;
}

/*
 * UK Authors Literary theme compatibility and refined editorial treatment.
 * These selectors intentionally cover both the theme wrapper and WordPress
 * core comment classes while remaining limited to individual post pages.
 */
.single-post .comments-section,
.single-post .post-comments,
.single-post .comments-wrapper,
.single-post #comments.comments-area,
.single-post #comments {
	position: relative;
	box-sizing: border-box;
	width: min(100%, 960px) !important;
	max-width: 960px !important;
	margin: clamp(3rem, 7vw, 6rem) auto 0 !important;
	padding: clamp(1.35rem, 4vw, 2.75rem) !important;
	overflow: hidden;
	border: 1px solid #d0c8b9 !important;
	border-top: 5px solid #8f2f3f !important;
	border-radius: 16px !important;
	background:
		linear-gradient(135deg, rgb(255 253 248 / 98%), rgb(247 242 232 / 98%)) !important;
	box-shadow: 0 18px 45px rgb(23 43 53 / 10%) !important;
}

.single-post .comments-section::before,
.single-post .post-comments::before,
.single-post .comments-wrapper::before,
.single-post #comments::before {
	position: absolute;
	top: 1rem;
	right: 1.4rem;
	color: rgb(143 47 63 / 8%);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(4rem, 11vw, 8rem);
	line-height: 1;
	content: "\201C";
	pointer-events: none;
}

.single-post .comments-title,
.single-post .comment-title,
.single-post #comments > h2,
.single-post #comments > h3 {
	position: relative;
	margin: 0 0 1.75rem !important;
	padding-bottom: .9rem;
	border-bottom: 1px solid #d8d0c2;
	color: #172b35 !important;
	font-size: clamp(1.55rem, 3vw, 2.1rem) !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
}

.single-post ol.comment-list,
.single-post ul.comment-list,
.single-post .comment-list {
	position: relative;
	margin: 0 0 2rem !important;
	padding: 0 !important;
	list-style: none !important;
}

.single-post .comment-list li.comment,
.single-post .comment-list article.comment,
.single-post article.comment {
	margin: 0 0 1rem !important;
	list-style: none !important;
}

.single-post .comment-list .comment-body,
.single-post li.comment > .comment-body,
.single-post article.comment > .comment-body,
.single-post .comment-body {
	position: relative;
	box-sizing: border-box;
	margin: 0 0 1rem !important;
	padding: clamp(1rem, 3vw, 1.5rem) !important;
	border: 1px solid #d7d1c5 !important;
	border-left: 4px solid #b68a4a !important;
	border-radius: 10px !important;
	background: #fff !important;
	box-shadow: 0 7px 18px rgb(23 43 53 / 7%) !important;
}

.single-post .comment-author {
	display: flex !important;
	align-items: center !important;
	gap: .75rem !important;
	color: #172b35 !important;
	font-weight: 700 !important;
}

.single-post .comment-author img.avatar,
.single-post img.avatar {
	flex: 0 0 52px;
	width: 52px !important;
	height: 52px !important;
	margin: 0 !important;
	border: 3px solid #fff !important;
	border-radius: 50% !important;
	background: #eee9df;
	box-shadow: 0 0 0 1px #c8bead !important;
	object-fit: cover;
}

.single-post .comment-author .fn,
.single-post .comment-author .fn a {
	color: #172b35 !important;
	font-style: normal !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}

.single-post .comment-metadata,
.single-post .comment-meta {
	color: #66716b !important;
	font-size: .88rem !important;
	line-height: 1.5 !important;
}

.single-post .comment-metadata {
	margin-top: .25rem !important;
}

.single-post .comment-content {
	margin-top: 1rem !important;
	color: #26383f !important;
	font-size: 1.02rem !important;
	line-height: 1.7 !important;
}

.single-post .comment-content p {
	margin: 0 0 .8rem !important;
}

.single-post .comment-content p:last-child {
	margin-bottom: 0 !important;
}

.single-post .reply {
	margin-top: 1rem !important;
}

.single-post .comment-reply-link,
.single-post .comment-edit-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	margin: .25rem .4rem .25rem 0 !important;
	padding: .42rem .8rem !important;
	border: 1px solid #8f2f3f !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: #8f2f3f !important;
	font-size: .86rem !important;
	font-weight: 700 !important;
	letter-spacing: .025em;
	line-height: 1.2 !important;
	text-decoration: none !important;
}

.single-post .comment-reply-link:hover,
.single-post .comment-reply-link:focus-visible,
.single-post .comment-edit-link:hover,
.single-post .comment-edit-link:focus-visible {
	background: #8f2f3f !important;
	color: #fff !important;
}

.single-post #respond,
.single-post .comment-respond {
	position: relative;
	box-sizing: border-box;
	margin: 2rem 0 0 !important;
	padding: clamp(1.15rem, 3.5vw, 2rem) !important;
	border: 1px solid #cbc2b2 !important;
	border-radius: 12px !important;
	background: rgb(255 255 255 / 82%) !important;
	box-shadow: inset 0 1px 0 #fff, 0 8px 24px rgb(23 43 53 / 6%) !important;
}

.single-post #respond .comment-reply-title,
.single-post .comment-respond .comment-reply-title {
	margin: 0 0 1rem !important;
	color: #172b35 !important;
	font-size: clamp(1.45rem, 3vw, 2rem) !important;
}

.single-post #respond .logged-in-as,
.single-post .comment-respond .logged-in-as {
	margin-bottom: 1.25rem !important;
	border: 1px solid #e0d9cc !important;
	border-left: 4px solid #b68a4a !important;
	background: #fffdf8 !important;
	box-shadow: none !important;
}

.single-post #respond .comment-form-comment,
.single-post .comment-respond .comment-form-comment {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: .55rem !important;
	margin: 0 0 1rem !important;
}

.single-post #respond .comment-form-comment label,
.single-post .comment-respond .comment-form-comment label {
	display: block !important;
	width: auto !important;
	margin: 0 !important;
	color: #172b35 !important;
	font-weight: 700 !important;
}

.single-post #respond textarea,
.single-post .comment-respond textarea {
	display: block !important;
	box-sizing: border-box !important;
	width: 100% !important;
	min-height: 190px !important;
	margin: 0 !important;
	padding: .9rem 1rem !important;
	border: 1px solid #a9b0aa !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #172b35 !important;
}

.single-post #respond .form-submit,
.single-post .comment-respond .form-submit {
	margin: 1rem 0 0 !important;
}

.single-post #respond input#submit,
.single-post #respond .submit,
.single-post .comment-respond input#submit,
.single-post .comment-respond .submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 46px !important;
	padding: .72rem 1.2rem !important;
	border: 2px solid #8f2f3f !important;
	border-radius: 6px !important;
	background: #8f2f3f !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-family: inherit !important;
	font-size: .95rem !important;
	font-weight: 700 !important;
	letter-spacing: .04em;
	line-height: 1.2 !important;
	opacity: 1 !important;
	text-decoration: none !important;
	text-shadow: none !important;
	cursor: pointer;
}

.single-post #respond input#submit:hover,
.single-post #respond input#submit:focus-visible,
.single-post #respond .submit:hover,
.single-post #respond .submit:focus-visible,
.single-post .comment-respond input#submit:hover,
.single-post .comment-respond input#submit:focus-visible {
	border-color: #172b35 !important;
	background: #172b35 !important;
	color: #fff !important;
}

/* Separate the author biography from the discussion without a large dead zone. */
.single-post .author-bio,
.single-post .author-box,
.single-post .post-author-box,
.single-post .single-author-box,
.single-post .author-card {
	position: relative;
	box-sizing: border-box;
	width: min(100%, 960px) !important;
	max-width: 960px !important;
	height: auto !important;
	min-height: 0 !important;
	margin: clamp(2rem, 5vw, 4rem) auto 2rem !important;
	padding: clamp(1.2rem, 3.5vw, 2rem) !important;
	border: 1px solid #d0c8b9 !important;
	border-left: 5px solid #b68a4a !important;
	border-radius: 12px !important;
	background: rgb(255 253 248 / 82%) !important;
	box-shadow: 0 10px 28px rgb(23 43 53 / 7%) !important;
}

.single-post .author-bio > :first-child,
.single-post .author-box > :first-child,
.single-post .post-author-box > :first-child,
.single-post .single-author-box > :first-child,
.single-post .author-card > :first-child {
	margin-top: 0 !important;
}

.single-post .author-bio > :last-child,
.single-post .author-box > :last-child,
.single-post .post-author-box > :last-child,
.single-post .single-author-box > :last-child,
.single-post .author-card > :last-child {
	margin-bottom: 0 !important;
}

/* The literary theme places its response heading and comment list separately. */
.single-post .comments-section,
.single-post .post-comments,
.single-post .comments-wrapper,
.single-post #comments.comments-area,
.single-post #comments {
	margin-top: 2rem !important;
}

.single-post .comments-section {
	margin-bottom: 1.25rem !important;
}

.single-post .comments-section + .comment-list,
.single-post .comments-section + ol,
.single-post .comments-section + ul,
.single-post .comments-wrapper + .comment-list,
.single-post .comments-wrapper + ol,
.single-post .comments-wrapper + ul {
	margin-top: 1.25rem !important;
}

/* Exact structural selectors used by the UK Authors Literary theme. */
.single-post .article-footer {
	box-sizing: border-box;
	width: min(100%, 960px) !important;
	max-width: 960px !important;
	min-height: 0 !important;
	margin: clamp(2rem, 5vw, 4rem) auto 2rem !important;
	padding: clamp(1.2rem, 3.5vw, 2rem) !important;
	border: 1px solid #d0c8b9 !important;
	border-left: 5px solid #b68a4a !important;
	border-radius: 12px !important;
	background: rgb(255 253 248 / 82%) !important;
	box-shadow: 0 10px 28px rgb(23 43 53 / 7%) !important;
}

.single-post .article-footer > p:first-child {
	margin: 0 0 1rem !important;
	color: #8f2f3f !important;
	font-size: .78rem !important;
	font-weight: 700 !important;
	letter-spacing: .14em !important;
	text-transform: uppercase;
}

.single-post .article-footer .author-panel {
	display: flex !important;
	align-items: center !important;
	gap: 1.25rem !important;
	margin: 0 !important;
	padding: 0 !important;
}

.single-post .article-footer .author-panel img.avatar {
	flex: 0 0 76px;
	width: 76px !important;
	height: 76px !important;
	margin: 0 !important;
	border: 3px solid #fff !important;
	border-radius: 50% !important;
	box-shadow: 0 0 0 1px #c8bead !important;
	object-fit: cover;
}

.single-post .article-footer .author-panel h2 {
	margin: 0 0 .35rem !important;
	color: #172b35 !important;
	font-size: clamp(1.45rem, 3vw, 2rem) !important;
	line-height: 1.2 !important;
}

.single-post .article-footer .author-panel p {
	margin: 0 0 .55rem !important;
	color: #68747a !important;
}

.single-post .article-footer .author-panel a {
	color: #8f2f3f !important;
	font-size: .82rem !important;
	font-weight: 700 !important;
	letter-spacing: .08em;
	text-decoration: none !important;
	text-transform: uppercase;
}

.single-post .comments-shell {
	position: relative;
	box-sizing: border-box;
	width: min(100%, 960px) !important;
	max-width: 960px !important;
	margin: 2rem auto 0 !important;
	padding: clamp(1.35rem, 4vw, 2.75rem) !important;
	overflow: hidden;
	border: 1px solid #d0c8b9 !important;
	border-top: 5px solid #8f2f3f !important;
	border-radius: 16px !important;
	background: linear-gradient(135deg, rgb(255 253 248 / 98%), rgb(247 242 232 / 98%)) !important;
	box-shadow: 0 18px 45px rgb(23 43 53 / 10%) !important;
}

.single-post .comments-shell::before {
	position: absolute;
	top: 1rem;
	right: 1.4rem;
	color: rgb(143 47 63 / 8%);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(4rem, 11vw, 8rem);
	line-height: 1;
	content: "\201C";
	pointer-events: none;
}

/* In this theme, #comments is the heading rather than the outer container. */
.single-post .comments-shell h3#comments {
	position: relative;
	box-sizing: border-box;
	width: auto !important;
	max-width: none !important;
	min-height: 0 !important;
	margin: 0 0 1.5rem !important;
	padding: 0 0 1rem !important;
	overflow: visible;
	border: 0 !important;
	border-bottom: 1px solid #d8d0c2 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #172b35 !important;
	font-size: clamp(1.45rem, 3vw, 2rem) !important;
	line-height: 1.25 !important;
}

.single-post .comments-shell h3#comments::before {
	display: none !important;
	content: none !important;
}

.single-post .comments-shell ol.commentlist {
	position: relative;
	margin: 0 0 2rem !important;
	padding: 0 !important;
	list-style: none !important;
}

.single-post .comments-shell ol.commentlist > li.comment {
	margin: 0 0 1.25rem !important;
	list-style: none !important;
}

.single-post .comments-shell ol.commentlist .comment-body {
	margin: 0 !important;
	padding: clamp(1rem, 3vw, 1.5rem) !important;
	border: 1px solid #d7d1c5 !important;
	border-left: 4px solid #b68a4a !important;
	border-radius: 10px !important;
	background: #fff !important;
	box-shadow: 0 7px 18px rgb(23 43 53 / 7%) !important;
}

.single-post .comments-shell .comment-reply-login {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: .42rem .8rem !important;
	border: 1px solid #8f2f3f !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: #8f2f3f !important;
	font-size: .86rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
}

.single-post .comments-shell .comment-reply-login:hover,
.single-post .comments-shell .comment-reply-login:focus-visible {
	background: #8f2f3f !important;
	color: #fff !important;
}

@media (max-width: 700px) {
	.single-post .article-footer,
	.single-post .comments-shell {
		width: 100% !important;
		margin-top: 1.5rem !important;
		padding: 1rem !important;
		border-radius: 10px !important;
	}

	.single-post .article-footer .author-panel {
		align-items: flex-start !important;
		flex-direction: column;
	}

	.single-post .comments-shell::before {
		display: none;
	}

	.single-post .author-bio,
	.single-post .author-box,
	.single-post .post-author-box,
	.single-post .single-author-box,
	.single-post .author-card {
		margin: 1.5rem auto !important;
		padding: 1rem !important;
		border-radius: 10px !important;
	}

	.single-post .comments-section,
	.single-post .post-comments,
	.single-post .comments-wrapper,
	.single-post #comments {
		width: 100% !important;
		padding: 1rem !important;
		border-radius: 10px !important;
	}

	.single-post .comments-section::before,
	.single-post .post-comments::before,
	.single-post .comments-wrapper::before,
	.single-post #comments::before {
		display: none;
	}

	.single-post #comments,
	.single-post .comments-area {
		margin-top: 2.5rem;
	}

	.single-post #comments .comment-list .children,
	.single-post .comments-area .comment-list .children {
		margin-left: .75rem;
	}

	.single-post #comments .comment-metadata,
	.single-post .comments-area .comment-metadata {
		margin-left: 0;
	}

	.single-post #respond,
	.single-post .comment-respond {
		padding: 1rem;
	}

	.uka-dashboard-header,
	.uka-list-item {
		align-items: flex-start;
		flex-direction: column;
	}

	.uka-actions,
	.uka-comment-controls {
		justify-content: flex-start;
	}

	.uka-list-controls,
	.uka-list-controls label,
	.uka-list-controls select {
		width: 100%;
	}

	.uka-pagination {
		justify-content: space-between;
	}

	.uka-profile-photo,
	.uka-field-pair {
		align-items: flex-start;
		grid-template-columns: 1fr;
		flex-direction: column;
	}

	.uka-media-upload-form {
		grid-template-columns: 1fr;
	}

	.uka-submission-stats {
		width: 100%;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.uka-submission-details {
		width: 100%;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.uka-writer-dashboard-page .uka-tabs,
	body.uka-writer-dashboard-page .uka-subtabs {
		grid-template-columns: 1fr;
		max-width: none;
	}

	body.uka-writer-dashboard-page .uka-panel {
		padding: 1rem;
	}
}
