/* LinKnote Works Tools: submission forms, confirmation, and review. */

/* Submission page guide and four-tab navigation. */


.linknote-submit-tab-buttons {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	margin-bottom: 24px;
	border-bottom: 1px solid #ddd;
	-webkit-overflow-scrolling: touch;
}

.linknote-submit-tab-button {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	color: #555;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.linknote-submit-tab-button:hover {
	background: #f7f7f7;
	color: #111;
	text-decoration: none;
}

.linknote-submit-tab-button.is-active {
	border-bottom-color: #111;
	background: #fff;
	color: #111;
}

/* WPUF form labels and image-upload buttons. */
body .wpuf-form .wpuf-label,
body .wpuf-form .wpuf-label label,
body .wpuf-form .wpuf-label span,
body .wpuf-form label,
body .wpuf-edit-form .wpuf-label,
body .wpuf-edit-form .wpuf-label label,
body .wpuf-edit-form .wpuf-label span,
body .wpuf-edit-form label,
body .wpuf-form .wpuf-featured-image,
body .wpuf-form .wpuf-image-wrap,
body .wpuf-form .wpuf-attachment-area,
body .wpuf-form .wpuf-attachment-upload-filelist,
body .wpuf-edit-form .wpuf-featured-image,
body .wpuf-edit-form .wpuf-image-wrap,
body .wpuf-edit-form .wpuf-attachment-area,
body .wpuf-edit-form .wpuf-attachment-upload-filelist {
	color: #222 !important;
	text-shadow: none !important;
}


/* Cover-source search field injected into the WPUF Works form. */


.linknote-cover-source-field > label {
	display: block;
	margin-bottom: 0.45rem;
	font-weight: 700;
}


.linknote-cover-source-results {
	position: absolute;
	z-index: 30;
	right: 0;
	left: 0;
	max-height: 260px;
	overflow-y: auto;
	margin-top: 0.25rem;
	border: 1px solid #d0d0d0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}


/* Draft confirmation page. */


.linknote-submission-confirm-preview {
	padding: 24px;
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	background: #fff;
}


.linknote-submission-confirm-video iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}


.linknote-submission-confirm-meta dt {
	background: #fafafa;
	font-weight: 700;
}


.linknote-submission-confirm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.linknote-submission-confirm-send,
.linknote-submission-confirm-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 18px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}


.linknote-submission-message {
	margin: 0 0 1rem;
	padding: 0.9rem 1rem;
	border-radius: 8px;
	font-weight: 700;
}

.linknote-submission-message.is-error {
	border: 1px solid #f0c9c9;
	background: #fff5f5;
	color: #8a2f2f;
}

/* Missing-page destination. */


.linknote-create-missing-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid #222;
	border-radius: 8px;
	color: #222;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}


/* Administrator submission review. */
.ln-submission-review {
	max-width: 1100px;
	margin: 0 auto;
	padding: 1.5rem 1rem;
}

.ln-submission-review h1 {
	margin: 0 0 1.5rem;
}

.ln-review-notice {
	margin: 0 0 1.2rem;
	padding: 0.9rem 1rem;
	border-radius: 8px;
	line-height: 1.7;
}

.ln-review-notice.is-success {
	background: #eef8ee;
	color: #216b2a;
}

.ln-review-notice.is-error {
	background: #fff0f0;
	color: #a11;
}

.ln-review-card,
.ln-review-list {
	padding: 1.25rem;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	background: #fff;
}

.ln-review-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.ln-review-card-header h2 {
	margin: 0;
}

.ln-review-type {
	margin: 0 0 0.25rem;
	color: #666;
	font-size: 0.9rem;
}

.ln-review-subinfo {
	margin: 0.4rem 0 0;
	color: #666;
	font-size: 0.85rem;
}

.ln-review-status {
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
	background: #fff3cd;
	color: #735c0f;
	font-size: 0.8rem;
	font-weight: 700;
}

.ln-review-edit-section {
	margin-top: 1rem;
}

.ln-edit-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.9rem;
}

.ln-edit-field {
	margin: 0 0 1rem;
}

.ln-edit-field label,
.ln-edit-label {
	display: block;
	margin: 0 0 0.35rem;
	font-size: 0.85rem;
	font-weight: 700;
}

.ln-edit-field input,
.ln-edit-field textarea,
.ln-edit-field select {
	width: 100%;
	padding: 0.55rem 0.65rem;
	border: 1px solid #ccc;
	border-radius: 7px;
	background: #fff;
	box-sizing: border-box;
	font: inherit;
}

.ln-edit-field textarea {
	line-height: 1.7;
}

.ln-submission-review .description {
	margin: 0.35rem 0 0;
	color: #666;
	font-size: 0.78rem;
	line-height: 1.5;
}

.ln-review-image {
	margin: 1rem 0;
}

.ln-review-credit-builder {
	margin-top: 1.5rem;
	padding-top: 1.2rem;
	border-top: 1px solid #eee;
}

.ln-submission-credit-row {
	display: grid;
	grid-template-columns: 1.25fr 1fr 1fr 0.8fr 1fr auto;
	gap: 0.75rem;
	align-items: start;
	margin-top: 0.9rem;
	padding: 0.9rem;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	background: #fafafa;
}

.ln-credit-field label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.82rem;
	font-weight: 700;
}

.ln-credit-field input,
.ln-credit-field select {
	width: 100%;
	box-sizing: border-box;
}

.ln-credit-person-search-wrap,
.ln-cover-source-search-wrap {
	position: relative;
}

.ln-credit-search-results,
.ln-cover-search-results {
	display: none;
	position: absolute;
	z-index: 40;
	right: 0;
	left: 0;
	max-height: 220px;
	overflow: auto;
	margin-top: 0.25rem;
	border: 1px solid #ccc;
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.ln-credit-search-results.is-active,
.ln-cover-search-results.is-active {
	display: block;
}

.ln-credit-search-result {
	display: block;
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 0;
	border-bottom: 1px solid #eee;
	background: #fff;
	color: #222;
	text-align: left;
	cursor: pointer;
}

.ln-credit-search-result:hover {
	background: #f5f5f5;
}

.ln-credit-search-empty {
	padding: 0.55rem 0.7rem;
	color: #666;
	font-size: 0.85rem;
}

.ln-review-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.5rem;
	padding-top: 1.2rem;
	border-top: 1px solid #eee;
}

.ln-review-actions .ln-publish-main-button {
	border-color: #1f9d55 !important;
	background: #1f9d55 !important;
	color: #fff !important;
	font-weight: 700;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.ln-review-actions .ln-publish-main-button:hover {
	border-color: #178246 !important;
	background: #178246 !important;
	color: #fff !important;
}


.ln-danger-button {
	border-color: #e2b4b4 !important;
	color: #a11 !important;
}

.ln-review-list-table-wrap {
	overflow-x: auto;
}

.ln-review-list-table {
	width: 100%;
	min-width: 680px;
	border-collapse: collapse;
}

.ln-review-list-table th,
.ln-review-list-table td {
	padding: 0.7rem 0.8rem;
	border: 1px solid #e5e5e5;
	text-align: left;
}

.ln-review-list-table th {
	background: #f7f7f7;
}

/* Review-list action link: deliberately avoids the theme .button class. */
.ln-submission-review .ln-review-list-table a.ln-review-open-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 2.25rem !important;
	padding: 0.35rem 0.85rem !important;
	border: 1px solid #a8bfdc !important;
	border-radius: 7px !important;
	background: #edf5ff !important;
	color: #1f4f86 !important;
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.ln-submission-review .ln-review-list-table a.ln-review-open-button:hover,
.ln-submission-review .ln-review-list-table a.ln-review-open-button:focus {
	border-color: #7898bf !important;
	background: #dfeeff !important;
	color: #163d69 !important;
	text-decoration: none !important;
}

@media (max-width: 900px){
	.ln-edit-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ln-submission-credit-row {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px){
	.linknote-submit-tab-button {
		padding: 10px 14px;
		font-size: 14px;
	}

	

	

	

	

	.ln-review-card-header {
		display: block;
	}

	.ln-edit-grid,
	.ln-submission-credit-row {
		grid-template-columns: 1fr;
	}

	.ln-review-actions .button,
	.ln-review-actions button {
		width: 100%;
		text-align: center;
	}
}
