.title-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 2px 2px 0;
}

.title-bar h1 { font-size: 22px; color: var(--ink); }
.title-bar h1 em { font-style: normal; color: var(--brand-text); }
.title-bar .tools { display: flex; gap: 7px; align-items: center; }

.search-form { display: flex; gap: 7px; }

.search-form input[type=search] {
	width: 190px;
	height: 38px;
	padding: 0 14px;
	border: 1px solid var(--line-hard);
	border-radius: var(--r1);
	background: var(--page);
	-webkit-appearance: none;
	transition: border-color .13s ease, box-shadow .13s ease;
}

.search-form input[type=search]:focus { outline: 0; border-color: var(--brand); box-shadow: var(--ring); }

.composer {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 10px 12px;
	background: var(--page);
	border: 1px solid var(--line);
	border-radius: var(--r2);
	box-shadow: var(--sh1);
}

.composer-ava {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, #fa0188, #f70126);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.composer-box {
	flex: 1 1 auto;
	min-width: 0;
	height: 38px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--face);
	font-size: 14px;
	transition: border-color .13s ease, background .13s ease, box-shadow .13s ease;
}

.composer-box::placeholder { color: var(--dim-soft); }
.composer-box:focus { outline: 0; border-color: var(--brand); background: var(--page); box-shadow: var(--ring); }
.composer .btn { height: 38px; }

.sorts {
	display: inline-flex;
	align-self: flex-start;
	gap: 2px;
	padding: 3px;
	border-radius: 10px;
	background: var(--face-2);
}

.sorts a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 32px;
	padding: 0 14px;
	border-radius: 7px;
	color: var(--dim);
	font-size: 13.5px;
	font-weight: 700;
	transition: background .13s ease, color .13s ease;
}

.sorts a:hover { color: var(--ink); }
.sorts a.on { background: var(--page); color: var(--ink); box-shadow: var(--sh1); }

.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }

.subtabs a {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--page);
	color: var(--dim);
	font-size: 12.5px;
	font-weight: 600;
	transition: background .13s ease, border-color .13s ease, color .13s ease;
}

.subtabs a:hover { border-color: var(--line-hard); background: var(--face); color: var(--ink); }
.subtabs a.on { border-color: var(--brand-line); background: var(--brand-tint); color: var(--brand-text); }

.feed {
	background: var(--page);
	border: 1px solid var(--line);
	border-radius: var(--r2);
	box-shadow: var(--sh1);
	overflow: hidden;
}

.feed .row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-bottom: 1px solid var(--line-soft);
	transition: background .12s ease;
}

.feed .row:last-child { border-bottom: 0; }
.feed .row:hover { background: var(--face); }

.feed .thumb {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	border-radius: 9px;
	overflow: hidden;
	background: var(--face-2);
	line-height: 0;
}

.feed .thumb img { width: 100%; height: 100%; object-fit: cover; }

.feed .main { flex: 1 1 auto; min-width: 0; }

.feed .head { display: flex; align-items: center; gap: 6px; min-width: 0; }

.feed .tit {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -.01em;
}

.feed .tit::after { content: ""; position: absolute; inset: 0; }
.feed .row:hover .tit { color: var(--brand-text); }

.feed .cate {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	color: var(--dim);
	font-size: 12.5px;
}

.feed a.cate:hover { color: var(--brand-text); }

.feed .cc {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	color: var(--brand-text);
	font-size: 12.5px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.feed .new {
	flex: 0 0 auto;
	padding: 1px 5px;
	border-radius: 4px;
	background: var(--good);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.5;
}

.feed .tag {
	flex: 0 0 auto;
	padding: 2px 7px;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.feed .tag-best { background: var(--brand); color: var(--on-brand); }
.feed .tag-notice { background: var(--ink); color: var(--on-ink); }

.feed .meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 3px;
	color: var(--dim);
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}

.feed .meta span + span::before { content: "·"; margin: 0 6px; color: var(--line-hard); }
.feed .meta .wr { color: var(--ink-soft); font-weight: 600; }

.feed .up {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	width: 52px;
	padding: 6px 0;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--page);
	color: var(--dim-soft);
	font: inherit;
	transition: border-color .12s ease, background .12s ease, color .12s ease;
}

.feed .up svg { display: block; }
.feed .up b { font-size: 13px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.feed .up:hover { border-color: var(--brand-line); background: var(--brand-tint); color: var(--brand-text); }
.feed .up:hover b { color: var(--brand-text); }
.feed .up.voted { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.feed .up.voted b { color: var(--on-brand); }

@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.feed .up.bump b { display: inline-block; animation: bump .28s ease; }

.feed .row.is-notice { background: var(--notice-tint); }
.feed .row.is-notice:hover { background: var(--notice-tint); filter: brightness(.985); }
.feed .row.is-notice .tit, .feed .row.is-best .tit { font-weight: 700; }

.feed .none { padding: 52px 16px; text-align: center; color: var(--dim); font-size: 14px; }

.feed-more { display: flex; justify-content: center; }
.feed-more .btn { min-width: 180px; }

.gall-act {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	padding: 12px 14px;
	background: var(--face);
	border: 1px solid var(--line);
	border-radius: var(--r2);
}

.gall-act .left { color: var(--dim); font-size: 13px; }
.gall-act .left b { color: var(--brand-text); font-weight: 700; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; padding: 8px 0 4px; }

.pager a, .pager strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 11px;
	border: 1px solid var(--line);
	border-radius: var(--r1);
	background: var(--page);
	font-size: 14px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.pager a:hover { border-color: var(--line-hard); background: var(--face); color: var(--ink); }
.pager strong { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }

.read {
	padding: 22px 24px 18px;
	background: var(--page);
	border: 1px solid var(--line);
	border-radius: var(--r2);
	box-shadow: var(--sh1);
}

.read-head { padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.read-head h1 { font-size: 24px; line-height: 1.4; color: var(--ink); }

.read-meta { display: flex; align-items: center; flex-wrap: wrap; margin-top: 12px; color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.read-meta span + span::before { content: "\B7"; margin: 0 7px; color: var(--line-hard); }
.read-meta .writer { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; }

.read-meta .writer .ava {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--face-2);
	color: var(--ink-soft);
	font-size: 12px;
	font-weight: 700;
}

.read-meta .hold { color: var(--brand-text); font-weight: 700; }

.read-body { max-width: 42em; padding: 24px 0 8px; min-height: 160px; font-size: 16.5px; line-height: 1.85; color: var(--ink-soft); }
.read-body p { margin: 0 0 18px; }
.read-body img { margin: 10px 0; border-radius: var(--r1); }

.read-act { display: flex; justify-content: center; gap: 10px; padding: 18px 0 20px; }

.vote {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-width: 92px;
	padding: 12px 8px;
	border: 1px solid var(--line);
	border-radius: var(--r2);
	background: var(--page);
	color: var(--dim);
	transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

.vote svg { display: block; color: var(--brand); }
.vote b { font-size: 20px; font-weight: 800; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.vote span { font-size: 12px; color: var(--dim); font-weight: 600; }
.vote:hover { border-color: var(--brand-line); background: var(--brand-tint); box-shadow: var(--sh2); }
.vote.voted { border-color: var(--brand); background: var(--brand-tint); }

.vote.down svg, .vote.down b { color: var(--dim); }
.vote.down:hover { border-color: var(--line-hard); background: var(--face); }
.vote.down.voted { border-color: var(--line-hard); background: var(--face-2); }

.read-tools { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-bottom: 4px; }
.read-tools div { display: flex; gap: 7px; }

.read-nav { margin-top: 16px; border-top: 1px solid var(--line-soft); }

.read-nav a {
	display: flex;
	gap: 12px;
	padding: 12px 8px;
	margin: 0 -8px;
	border-bottom: 1px solid var(--line-soft);
	border-radius: var(--r1);
	font-size: 14px;
}

.read-nav a:last-child { border-bottom: 0; }
.read-nav a:hover { background: var(--face); }
.read-nav a .k { flex: 0 0 48px; color: var(--dim-soft); font-weight: 600; }
.read-nav a .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cmt {
	padding: 18px 24px 20px;
	background: var(--page);
	border: 1px solid var(--line);
	border-radius: var(--r2);
	box-shadow: var(--sh1);
}

.cmt-head { padding: 0 0 12px; font-size: 16px; font-weight: 700; }
.cmt-head b { color: var(--brand-text); font-variant-numeric: tabular-nums; }

.cmt-row { padding: 13px 0; border-top: 1px solid var(--line-soft); }
.cmt-row.reply { margin-left: 22px; padding-left: 14px; border-left: 2px solid var(--line); }
.cmt-who { font-weight: 700; font-size: 14px; }
.cmt-when { margin-left: 8px; color: var(--dim-soft); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cmt-text { margin-top: 5px; white-space: pre-wrap; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.cmt-text.gone { color: var(--dim-soft); font-style: italic; }
.cmt-act { margin-top: 7px; display: flex; align-items: center; gap: 10px; font-size: 13px; }

.cmt-act button {
	border: 0;
	background: none;
	padding: 0;
	color: var(--dim);
	font-size: 13px;
	font-weight: 600;
}

.cmt-act button:hover { color: var(--ink); }
.cmt-act button[data-vote] { color: var(--ink-soft); }
.cmt-act button[data-vote]:hover, .cmt-act button[data-vote].voted { color: var(--brand-text); }
.cmt-act button[data-vote] b { font-variant-numeric: tabular-nums; }
.cmt-act button[data-report], .cmt-act button[data-remove] { color: var(--dim-soft); font-weight: 500; }

.cmt-form { padding: 16px 0 2px; }

.cmt-form textarea {
	width: 100%;
	min-height: 92px;
	padding: 13px 15px;
	border: 1px solid var(--line-hard);
	border-radius: var(--r2);
	background: var(--page);
	line-height: 1.7;
	resize: vertical;
	transition: border-color .13s ease, box-shadow .13s ease;
}

.cmt-form textarea:focus { outline: 0; border-color: var(--brand); box-shadow: var(--ring); }
.cmt-form .line { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }

.cmt-form input[type=text], .cmt-form input[type=password] {
	width: 150px;
	height: 38px;
	padding: 0 13px;
	border: 1px solid var(--line-hard);
	border-radius: var(--r1);
	background: var(--page);
	transition: border-color .13s ease, box-shadow .13s ease;
}

.cmt-form input:focus { outline: 0; border-color: var(--brand); box-shadow: var(--ring); }
.cmt-form .grow { flex: 1 1 auto; }

@media (max-width: 640px) {
	.title-bar h1 { font-size: 19px; }
	.title-bar .tools { width: 100%; }
	.search-form { flex: 1 1 auto; }
	.search-form input[type=search] { width: 100%; }

	.composer-box { font-size: 16px; }
	.sorts { display: flex; align-self: stretch; }
	.sorts a { flex: 1 1 0; justify-content: center; padding: 0 10px; }

	.feed .row { align-items: flex-start; gap: 11px; padding: 12px 13px; }
	.feed .thumb { width: 68px; height: 68px; }

	.feed .head {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		line-height: 1.45;
	}

	/* -webkit-box 안에서는 태그 사이 줄바꿈이 그대로 공백이 되므로 여백을 따로 주지 않는다 */
	.feed .tag, .feed .cate, .feed .cc, .feed .new { display: inline-block; margin: 0; }

	.feed .tit {
		display: inline;
		overflow: visible;
		white-space: normal;
		font-size: 14.5px;
	}

	.feed .up { width: 46px; padding: 5px 0; }
	.feed .up b { font-size: 12.5px; }
	.feed .meta { font-size: 12px; }

	.read { padding: 18px 15px 14px; }
	.read-head h1 { font-size: 20px; }
	.read-body { font-size: 16px; padding: 20px 0 6px; }
	.read-act { padding: 14px 0 16px; }
	.vote { min-width: 84px; }
	.cmt { padding: 16px 15px 18px; }
	.cmt-row.reply { margin-left: 10px; padding-left: 11px; }
	.gall-act { padding: 11px 13px; }
	.gall-act .left { font-size: 12.5px; }
}

@media (pointer: coarse) {
	.cmt-act { gap: 2px; }
	.cmt-act button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 9px; margin-left: -9px; }
	.cmt-act button + button { margin-left: 0; }
}

.force-mobile .feed .tit { white-space: normal; }
