@charset "utf-8";

.mj-blog-skin,
.mj-blog-view,
.mj-blog-write-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 80px 0;
	color: #111827;
}

.mj-blog-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 34px;
}

.mj-blog-kicker {
	display: inline-flex;
	margin-bottom: 10px;
	color: #2563eb;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: .4px;
}

.mj-blog-head h2,
.mj-view-head h1 {
	font-size: 38px;
	line-height: 1.18;
	font-weight: 900;
	letter-spacing: -1.2px;
}

.mj-blog-head p {
	margin-top: 12px;
	color: #64748b;
	font-size: 17px;
	line-height: 1.7;
	font-weight: 700;
}

.mj-blog-write,
.mj-view-toolbar a,
.mj-write-actions a,
.mj-write-actions button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 15px;
	font-weight: 900;
	text-decoration: none;
	cursor: pointer;
}

.mj-blog-category {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.mj-blog-category a {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	background: #eef4ff;
	color: #2563eb;
	font-size: 14px;
	font-weight: 900;
	text-decoration: none;
}

.mj-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.mj-blog-card {
	position: relative;
	border: 1px solid #e5e7eb;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
	overflow: hidden;
}

.mj-blog-thumb {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, #eff6ff, #f8fafc);
	overflow: hidden;
	text-decoration: none;
}

.mj-blog-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .25s ease;
}

.mj-blog-card:hover .mj-blog-thumb img {
	transform: scale(1.04);
}

.mj-blog-thumb em {
	position: absolute;
	left: 16px;
	top: 16px;
	height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	background: rgba(17, 24, 39, .86);
	color: #fff;
	font-size: 13px;
	line-height: 30px;
	font-style: normal;
	font-weight: 900;
}

.mj-blog-noimg {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #2563eb;
	font-size: 28px;
	line-height: 1.1;
	font-weight: 900;
	text-align: center;
}

.mj-blog-card-body {
	padding: 24px;
}

.mj-blog-title {
	display: block;
	color: #111827;
	font-size: 21px;
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: -0.5px;
	text-decoration: none;
}

.mj-blog-card-body p {
	margin-top: 12px;
	color: #64748b;
	font-size: 15px;
	line-height: 1.65;
	font-weight: 500;
}

.mj-blog-meta,
.mj-view-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: 18px;
	color: #94a3b8;
	font-size: 14px;
	font-weight: 800;
}

.mj-blog-check {
	position: absolute;
	right: 14px;
	top: 14px;
	z-index: 2;
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 7px 10px;
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 900;
}

.mj-blog-empty {
	padding: 70px 24px;
	border: 1px solid #e5e7eb;
	border-radius: 24px;
	background: #fff;
	text-align: center;
}

.mj-blog-empty strong {
	display: block;
	font-size: 24px;
	font-weight: 900;
}

.mj-blog-empty p {
	margin-top: 8px;
	color: #64748b;
	font-size: 15px;
	font-weight: 700;
}

.mj-blog-bottom {
	margin-top: 34px;
	text-align: center;
}

.mj-blog-search {
	margin-top: 28px;
	padding: 24px;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	background: #f8fafc;
}

.mj-blog-search legend {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.mj-blog-search form {
	display: flex;
	gap: 8px;
}

.mj-blog-search select,
.mj-blog-search input,
.mj-write-form input,
.mj-write-form select,
.mj-write-form textarea {
	width: 100%;
	height: 48px;
	border: 1px solid #dbe2eb;
	border-radius: 14px;
	background: #fff;
	padding: 0 14px;
	color: #111827;
	font-size: 15px;
	font-weight: 700;
}

.mj-blog-search select {
	width: 140px;
	flex: 0 0 auto;
}

.mj-blog-search button {
	width: 92px;
	border: 0;
	border-radius: 14px;
	background: #2563eb;
	color: #fff;
	font-weight: 900;
}

.mj-blog-admin {
	display: flex;
	gap: 8px;
	margin-top: 18px;
}

.mj-blog-admin button {
	height: 40px;
	border: 0;
	border-radius: 12px;
	background: #111827;
	color: #fff;
	font-weight: 900;
}

.mj-view-head {
	padding-bottom: 30px;
	border-bottom: 1px solid #e5e7eb;
}

.mj-view-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	margin: 20px 0 34px;
}

.mj-view-toolbar .is-primary {
	background: #2563eb;
}

.mj-view-content {
	color: #1f2937;
	font-size: 18px;
	line-height: 1.85;
}

.mj-view-content img {
	max-width: 100%;
	height: auto;
	border-radius: 20px;
}

.mj-view-files {
	display: grid;
	gap: 8px;
	margin-bottom: 28px;
}

.mj-view-files a {
	padding: 14px 16px;
	border-radius: 14px;
	background: #f1f5f9;
	color: #111827;
	font-weight: 800;
	text-decoration: none;
}

.mj-view-files span {
	margin-left: 8px;
	color: #64748b;
	font-size: 13px;
}

.mj-view-vote {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 38px;
}

.mj-view-vote a {
	display: inline-flex;
	align-items: center;
	height: 42px;
	padding: 0 16px;
	border-radius: 999px;
	background: #eff6ff;
	color: #2563eb;
	font-weight: 900;
	text-decoration: none;
}

.mj-view-nav {
	display: grid;
	gap: 10px;
	margin-top: 40px;
}

.mj-view-nav a {
	display: block;
	padding: 18px 20px;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	color: #111827;
	text-decoration: none;
}

.mj-view-nav span {
	display: block;
	margin-bottom: 5px;
	color: #64748b;
	font-size: 13px;
	font-weight: 900;
}

.mj-view-nav strong {
	font-size: 16px;
	font-weight: 900;
}

.mj-write-form {
	display: grid;
	gap: 18px;
	padding: 32px;
	border: 1px solid #e5e7eb;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
}

.mj-write-form label {
	display: grid;
	gap: 8px;
}

.mj-write-form label > span {
	color: #475569;
	font-size: 14px;
	font-weight: 900;
}

.mj-write-form textarea {
	min-height: 280px;
	padding: 14px;
	line-height: 1.7;
	resize: vertical;
}

.mj-write-form em {
	color: #64748b;
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
}

.mj-write-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 20px;
}

.mj-write-actions button {
	background: #2563eb;
}

@media (max-width: 980px) {
	.mj-blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.mj-blog-skin,
	.mj-blog-view,
	.mj-blog-write-wrap {
		padding: 58px 20px;
	}

	.mj-blog-head {
		display: block;
	}

	.mj-blog-write {
		margin-top: 18px;
	}

	.mj-blog-head h2,
	.mj-view-head h1 {
		font-size: 30px;
	}

	.mj-blog-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.mj-blog-search form {
		display: grid;
	}

	.mj-blog-search select,
	.mj-blog-search button {
		width: 100%;
	}

	.mj-write-form {
		padding: 22px;
		border-radius: 20px;
	}
}
.mj-blog-actions {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 24px;
}

/* 블로그 임시저장 */
.mj-write-draft-tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 20px;
	border: 1px solid #dbeafe;
	border-radius: 16px;
	background: #f8fbff;
}

.mj-write-draft-copy {
	min-width: 0;
}

.mj-write-draft-copy strong {
	display: block;
	color: #1e3a8a;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 900;
}

.sp-board-draft-status {
	margin: 4px 0 0;
	color: #64748b;
	font-size: 13px;
	line-height: 1.5;
	font-weight: 700;
}

.sp-board-draft-status.is-error {
	color: #dc2626;
}

.mj-write-draft-copy small {
	display: block;
	margin-top: 3px;
	color: #94a3b8;
	font-size: 12px;
	line-height: 1.5;
	font-weight: 700;
}

.mj-write-draft-buttons {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
}

.mj-write-draft-buttons button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding: 0 15px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 900;
	cursor: pointer;
}

.mj-write-draft-buttons .sp-board-draft-list-button,
.mj-write-draft-buttons .sp-board-draft-save-button {
	position: relative;
	border: 1px solid #dbe2eb;
	background: #fff;
	color: #111827 !important;
	-webkit-text-fill-color: #111827 !important;
}

.mj-write-draft-buttons .sp-board-draft-save-button {
	border-color: #2563eb;
	background: #2563eb;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

.mj-write-draft-buttons .sp-board-draft-list-button span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	margin-left: 7px;
	padding: 0 6px;
	border-radius: 999px;
	background: #eef4ff;
	color: #2563eb;
	font-size: 12px;
	line-height: 1;
	box-sizing: border-box;
}

.mj-write-draft-buttons button:disabled,
.mj-write-actions button:disabled {
	opacity: .58;
	cursor: wait;
}

/* 이미지 첨부 */
.mj-write-file-field {
	display: grid;
	gap: 8px;
}

.mj-write-file-title {
	color: #475569;
	font-size: 14px;
	font-weight: 900;
}

.mj-write-file-control {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 7px;
	border: 1px solid #dbe2eb;
	border-radius: 14px;
	background: #f8fafc;
	box-sizing: border-box;
}

.mj-write-form .mj-write-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	border: 0;
	opacity: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.mj-write-file-button,
.mj-write-file-clear {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: auto !important;
	height: 38px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1;
	font-weight: 900;
	cursor: pointer;
	box-sizing: border-box;
}

.mj-write-file-button {
	background: #2563eb;
	color: #fff;
}

.mj-write-file-clear {
	background: #eef2f7;
	color: #475569;
}

.mj-write-file-clear[hidden] {
	display: none !important;
}

.mj-write-file-name {
	min-width: 0;
	flex: 1 1 auto;
	color: #64748b;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.mj-write-file-preview[hidden] {
	display: none;
}

.mj-write-file-preview {
	position: relative;
	width: min(360px, 100%);
	aspect-ratio: 16 / 10;
	padding: 8px;
	border: 1px solid #dbe2eb;
	border-radius: 16px;
	background: #f8fafc;
	box-sizing: border-box;
	overflow: hidden;
}

.mj-write-file-preview img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 10px;
	object-fit: contain;
	background: #fff;
}

.mj-write-file-delete {
	display: inline-flex !important;
	grid-template-columns: none !important;
	align-items: center;
	width: fit-content;
	color: #64748b;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.mj-write-form .mj-write-file-delete input {
	width: 16px;
	height: 16px;
	padding: 0;
	margin: 0;
	accent-color: #dc2626;
}

.sp-board-draft-modal[hidden] {
	display: none;
}

.sp-board-draft-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px;
	box-sizing: border-box;
}

.sp-board-draft-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .58);
	backdrop-filter: blur(3px);
}

.sp-board-draft-dialog {
	position: relative;
	z-index: 1;
	width: min(680px, 100%);
	max-height: min(760px, calc(100vh - 48px));
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
	overflow: hidden;
}

.sp-board-draft-dialog > header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 26px 28px 22px;
	border-bottom: 1px solid #e5e7eb;
}

.sp-board-draft-dialog h3 {
	margin: 0;
	color: #111827;
	font-size: 23px;
	line-height: 1.25;
	font-weight: 900;
}

.sp-board-draft-dialog header p {
	margin: 7px 0 0;
	color: #64748b;
	font-size: 14px;
	line-height: 1.55;
	font-weight: 700;
}

.sp-board-draft-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #f1f5f9;
	color: #111827;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.sp-board-draft-list {
	max-height: min(600px, calc(100vh - 190px));
	padding: 10px 28px 28px;
	overflow-y: auto;
}

.sp-board-draft-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
	border-bottom: 1px solid #eef1f5;
}

.sp-board-draft-item > div:first-child {
	min-width: 0;
}

.sp-board-draft-item strong {
	display: block;
	color: #111827;
	font-size: 16px;
	line-height: 1.45;
	font-weight: 900;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.sp-board-draft-item p {
	margin: 6px 0 0;
	color: #94a3b8;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 700;
}

.sp-board-draft-item > div:last-child {
	display: flex;
	flex: 0 0 auto;
	gap: 6px;
}

.sp-board-draft-item button {
	height: 38px;
	padding: 0 13px;
	border: 0;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 900;
	cursor: pointer;
}

.sp-board-draft-item .is-load {
	background: #111827;
	color: #fff;
}

.sp-board-draft-item .is-delete {
	background: #fff1f1;
	color: #dc2626;
}

.sp-board-draft-empty,
.sp-board-draft-loading {
	padding: 60px 20px 42px;
	color: #64748b;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
}

.sp-board-draft-empty strong {
	display: block;
	margin-bottom: 8px;
	color: #111827;
	font-size: 18px;
	font-weight: 900;
}

.sp-board-draft-empty p {
	margin: 0;
	line-height: 1.6;
}

.sp-board-draft-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 100001;
	max-width: calc(100% - 40px);
	padding: 13px 18px;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	box-shadow: 0 16px 40px rgba(15, 23, 42, .24);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 12px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.sp-board-draft-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.sp-board-draft-toast.is-error {
	background: #dc2626;
}

body.sp-draft-modal-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.mj-write-draft-tools {
		display: grid;
		gap: 14px;
		padding: 16px;
	}

	.mj-write-draft-buttons {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mj-write-draft-buttons button {
		width: 100%;
		padding: 0 12px;
	}

	.mj-write-file-control {
		display: grid;
		grid-template-columns: 1fr auto;
	}

	.mj-write-file-button {
		width: 100% !important;
	}

	.mj-write-file-name {
		grid-column: 1 / -1;
		grid-row: 2;
		padding: 2px 5px;
	}

	.mj-write-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mj-write-actions a,
	.mj-write-actions button {
		width: 100%;
		padding: 0 12px;
	}

	.sp-board-draft-modal {
		align-items: end;
		padding: 0;
	}

	.sp-board-draft-dialog {
		width: 100%;
		max-height: 88svh;
		border-radius: 24px 24px 0 0;
	}

	.sp-board-draft-dialog > header {
		padding: 22px 20px 18px;
	}

	.sp-board-draft-dialog h3 {
		font-size: 21px;
	}

	.sp-board-draft-list {
		max-height: calc(88svh - 118px);
		padding: 8px 20px 24px;
	}

	.sp-board-draft-item {
		align-items: flex-start;
		gap: 12px;
	}

	.sp-board-draft-item > div:last-child {
		flex-direction: column;
	}
}
