@charset "utf-8";

.hrb { font-family: var(--hr-font); color: var(--hr-ink); }
.hrb-blind { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.hrb-last-by { margin-left: 5px; font-size: 12px; color: var(--hr-muted); }

.hrb .hrb-notices { margin: 0 0 26px; padding: 0; list-style: none; border-radius: var(--hr-radius-sm); overflow: hidden; }
.hrb .hrb-notices > li + li { border-top: 1px solid var(--hr-line-soft); }
.hrb-notices a { display: flex; align-items: center; gap: 8px; padding: 11px 6px; font-size: 14px; background: var(--hr-brand-soft); }
.hrb-notices a:hover .hrb-notices-title { color: var(--hr-brand); text-decoration: underline; text-underline-offset: 3px; }
.hrb-notices-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrb-notices-meta { display: flex; gap: 10px; margin-left: auto; flex: none; font-size: 12px; color: var(--hr-muted); }

.hrb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--hr-line); }
.hrb-bar-actions { display: flex; gap: 6px; margin-left: auto; }
.hrb-division { margin: 16px 0 0; text-align: center; }

/* =========================================================
   1. 메인 레이아웃 (PC: 좌측 메인 / 우측 태그 사이드바)
   ========================================================= */
.hrb-container {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.hrb-read-wrapper {
	width: 100%;
	margin-bottom: 24px;
	overflow: hidden;
}

@media (min-width: 768px) {
	.hrb-container {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 20px;
	}
	.hrb-main-column {
		flex: 1;
		min-width: 0; /* flex 자식 요소의 넘침 방지 */
	}
	.hrb-side-column {
		width: 260px;
		flex-shrink: 0;
		position: sticky;
		top: 20px;
	}
}

/* =========================================================
   2. 인기글 위젯 스타일
   ========================================================= */
.hrb-popular-box {
	background: #d8e3db;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 14px 16px;
	box-sizing: border-box;
	margin-bottom: 16px;
}

.hrb-pop-tabs {
	display: flex;
	gap: 6px;
	border-bottom: 1px solid #f1f3f5;
	padding-bottom: 10px;
	margin-bottom: 10px;
}
.hrb-tab-btn {
	background: none;
	border: none;
	font-size: 15px;
	font-weight: 700;
	color: #a0a6b1;
	cursor: pointer;
	padding: 6px 12px;
	border-radius: 20px;
	transition: all 0.2s;
}
.hrb-tab-btn.active {
	color: #0e6341;
	background: #e6f4ed;
}

.hrb-pop-list {
	display: none !important;
	list-style: none;
	margin: 0;
	padding: 0;
}
.hrb-pop-list.active {
	display: flex !important;
	flex-direction: column;
	gap: 6px;
}
.hrb-pop-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 5px 2px;
	font-size: 13.5px;
}
.hrb-pop-list li.is-empty {
	color: #adb5bd;
	font-size: 13px;
	padding: 10px 0;
	text-align: center;
}

.hrb-rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 800;
	background: #f1f3f5;
	color: #495057;
	flex-shrink: 0;
}
.hrb-rank.rank-1 { background: #0e6341; color: #fff; }
.hrb-rank.rank-2 { background: #56917a; color: #fff; }
.hrb-rank.rank-3 { background: #9ec0b3; color: #fff; }

.hrb-pop-title {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 16px;
	color: #212529;
	text-decoration: none;
	flex: 1;
	min-width: 0;
}
.hrb-pop-title .txt {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hrb-pop-cmt {
	font-size: 11px;
	font-weight: 700;
	color: #0e6341;
	flex-shrink: 0;
}
.hrb-pop-views {
	font-size: 11.5px;
	color: #868e96;
	white-space: nowrap;
	flex-shrink: 0;
}

/* 새글(N) 아이콘 - 배경색 강조 */
.hrb-icon-new {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #0e6341;
	color: #ffffff !important;
	font-size: 10px;
	font-weight: 800;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	margin-left: 4px;
	vertical-align: middle;
	line-height: 1;
}

/* =========================================================
   3. 태그 박스 (사이드바)
   ========================================================= */
.hrb-tag-box {
	background-color: #fbfaf6;
	border-radius: 12px;
	padding: 16px;
	border: 1px solid #e9ecef;
	box-sizing: border-box;
}
.hrb-tag-title {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 20px 0 !important;
	padding-bottom: 10px; 
	border-bottom: 1px solid #e5e7eb; 
	color: #333333;
}
.hrb-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hrb-tag-item {
	display: inline-block;
	background-color: #f2faf5;
	border: 1px solid #dee2e6;
	border-radius: 20px;
	padding: 5px 12px;
	font-size: 12px;
	color: #495057;
	text-decoration: none;
}

/* =========================================================
   4. 게시글 리스트 영역
   ========================================================= */
.hrb-list-container { width: 100%; }

.hrb-tablecard {
	background: #fbfaf6;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	overflow: hidden;
}
.hr-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}
.hr-table th {
	background: #fbfaf6;
	color: #495057;
	font-size: 13px;
	font-weight: 600;
	padding: 12px 14px;
	border-bottom: 1px solid #e9ecef;
}
.hr-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #f1f3f5;
	font-size: 14px;
	color: #333;
}
.hr-table tr:last-child td { border-bottom: none; }

.hrb-title-link { color: #212529; text-decoration: none; font-weight: 500; }
.hrb-col-author { font-size: 13px; color: #495057; }
.hrb-col-date, .hrb-col-num, .hrb-col-vote { font-size: 13px; color: #868e96; text-align: center; }

/* =========================================================
   5. [모바일 전용 스타일] 전체 통합 카드 형태 + 하단 구분선
   ========================================================= */
@media (max-width: 767px) {
	.hrb-tablecard { 
		border: 1px solid #e9ecef !important; 
		background: #fbfaf6 !important; 
		border-radius: 12px !important;
		overflow: hidden !important;
	}
	.hr-table, .hr-table tbody { 
		display: flex !important; 
		flex-direction: column !important; 
		width: 100% !important; 
	}
	.hr-table thead { display: none !important; }
	
	.hr-table tbody { gap: 0 !important; }
	.hr-table tr {
		display: flex !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		padding: 14px 16px !important;
		background: transparent !important;
		border: none !important;
		border-bottom: 1px solid #f1f3f5 !important;
		border-radius: 0 !important;
		box-sizing: border-box !important;
	}
	.hr-table tr:last-child {
		border-bottom: none !important;
	}
	
	.hrb-col-title {
		display: block !important;
		width: 100% !important;
		padding: 0 0 6px 0 !important;
		line-height: 1.45 !important;
	}
	.hrb-col-title .hrb-title-link {
		font-size: 16px !important;
		font-weight: 500 !important;
		color: #111111 !important;
		text-decoration: none !important;
		word-break: break-all;
	}

	.hrb-col-author, .hrb-col-date, .hrb-col-num, .hrb-col-vote {
		display: inline-flex !important;
		align-items: center !important;
		padding: 0 !important;
		font-size: 12px !important;
		font-weight: 400 !important;
		color: #868e96 !important;
		width: auto !important;
		border: none !important;
	}
	.hrb-col-author .hrb-nick {
		color: #495057 !important;
		font-weight: 600 !important;
	}
	.hrb-col-author::after, .hrb-col-date::after, .hrb-col-num::after {
		content: "·";
		margin: 0 5px !important;
		color: #ced4da !important;
	}
	.hrb-col-num::before { content: "조회 "; margin-right: 2px; }
	.hrb-col-vote::before { content: "추천 "; margin-right: 2px; }
	.hrb-col-vote { color: #0e6341 !important; font-weight: 600 !important; }
}

/* =========================================================
   6. 하단 전체 넓이 글쓰기 버튼 (페이징 위)
   ========================================================= */
.hrb-custom-toolbar-bottom {
	margin-top: 16px;
	margin-bottom: 20px;
	width: 100%;
}
.hrb-write-btn-full {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: #fbfaf6;	
	color: #111111 !important;
	font-size: 16px;
	font-weight: 700;
	padding: 13px 0;
	border-radius: 30px;
	text-decoration: none;
	box-sizing: border-box;
	transition: all 0.2s ease;
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
}
.hrb-write-btn-full:hover {
	background: #fcfbf5;
}
.hrb-write-btn-full:active {
	transform: scale(0.99);
}

/* =========================================================
   7. 완벽 다크모드 (Dark Mode)
   ========================================================= */
html[data-color-scheme="dark"],
html[data-theme="dark"],
body.color_scheme_dark,
body.dark {
	background-color: #121212;
}

html[data-color-scheme="dark"] .hrb-popular-box,
html[data-theme="dark"] .hrb-popular-box,
body.color_scheme_dark .hrb-popular-box,
body.dark .hrb-popular-box {
	background: #222b26;
	border-color: #2c3036;
}
html[data-color-scheme="dark"] .hrb-pop-tabs,
html[data-theme="dark"] .hrb-pop-tabs,
body.color_scheme_dark .hrb-pop-tabs,
body.dark .hrb-pop-tabs { border-bottom-color: #2c3036; }

html[data-color-scheme="dark"] .hrb-tab-btn,
html[data-theme="dark"] .hrb-tab-btn,
body.color_scheme_dark .hrb-tab-btn,
body.dark .hrb-tab-btn { color: #868e96; }

html[data-color-scheme="dark"] .hrb-tab-btn.active,
html[data-theme="dark"] .hrb-tab-btn.active,
body.color_scheme_dark .hrb-tab-btn.active,
body.dark .hrb-tab-btn.active { color: #5fbf90; background: #19382b; }

html[data-color-scheme="dark"] .hrb-pop-title,
html[data-theme="dark"] .hrb-pop-title,
body.color_scheme_dark .hrb-pop-title,
body.dark .hrb-pop-title { color: #e8eaed; }

html[data-color-scheme="dark"] .hrb-pop-views,
html[data-theme="dark"] .hrb-pop-views,
body.color_scheme_dark .hrb-pop-views,
body.dark .hrb-pop-views { color: #9aa0a6; }

html[data-color-scheme="dark"] .hrb-tag-box,
html[data-theme="dark"] .hrb-tag-box,
body.color_scheme_dark .hrb-tag-box,
body.dark .hrb-tag-box {
	background-color: #131917;
	border-color: #2c3036;
}
html[data-color-scheme="dark"] .hrb-tag-title,
html[data-theme="dark"] .hrb-tag-title,
body.color_scheme_dark .hrb-tag-title,
body.dark .hrb-tag-title { color: #e8eaed; }

html[data-color-scheme="dark"] .hrb-tag-item,
html[data-theme="dark"] .hrb-tag-item,
body.color_scheme_dark .hrb-tag-item,
body.dark .hrb-tag-item {
	background-color: #2a2d34;
	border-color: #3a3f47;
	color: #c5c9d0;
}

html[data-color-scheme="dark"] .hrb-write-btn-full,
html[data-theme="dark"] .hrb-write-btn-full,
body.color_scheme_dark .hrb-write-btn-full,
body.dark .hrb-write-btn-full {
	background-color: #1e2024;
	border-color: #2c3036;
	color: #ffffff !important;
}

html[data-color-scheme="dark"] .hrb-tablecard,
html[data-theme="dark"] .hrb-tablecard,
body.color_scheme_dark .hrb-tablecard,
body.dark .hrb-tablecard {
	background: #131917 !important;
	border: 1px solid #2c3036 !important;
	border-color: #2c3036 !important;
}

html[data-color-scheme="dark"] .hr-table th,
html[data-theme="dark"] .hr-table th,
body.color_scheme_dark .hr-table th,
body.dark .hr-table th {
	background: #25282e;
	color: #9aa0a6;
	border-bottom-color: #2c3036;
}

html[data-color-scheme="dark"] .hr-table td,
html[data-theme="dark"] .hr-table td,
body.color_scheme_dark .hr-table td,
body.dark .hr-table td {
	border-bottom-color: #2a2d34;
	color: #e8eaed;
}

html[data-color-scheme="dark"] .hrb-title-link,
html[data-theme="dark"] .hrb-title-link,
body.color_scheme_dark .hrb-title-link,
body.dark .hrb-title-link {
	color: #e8eaed;
}

html[data-color-scheme="dark"] .hrb-col-author,
html[data-theme="dark"] .hrb-col-author,
body.color_scheme_dark .hrb-col-author,
body.dark .hrb-col-author {
	color: #9aa0a6;
}

@media (max-width: 767px) {
	html[data-color-scheme="dark"] .hr-table tr,
	html[data-theme="dark"] .hr-table tr,
	body.color_scheme_dark .hr-table tr,
	body.dark .hr-table tr {
		background: transparent !important;
		border: none !important;
		border-bottom: 1px solid #2c3036 !important;
	}
	html[data-color-scheme="dark"] .hrb-col-title .hrb-title-link,
	html[data-theme="dark"] .hrb-col-title .hrb-title-link,
	body.color_scheme_dark .hrb-col-title .hrb-title-link,
	body.dark .hrb-title-link {
		color: #e8eaed !important;
	}
	html[data-color-scheme="dark"] .hrb-col-author .hrb-nick,
	html[data-theme="dark"] .hrb-col-author .hrb-nick,
	body.color_scheme_dark .hrb-col-author .hrb-nick,
	body.dark .hrb-col-author .hrb-nick {
		color: #bdc1c6 !important;
	}
}

.hrb-read { padding-bottom: 26px; border-bottom: 1px solid var(--hr-line); }
.hrb-read-head { padding: 0; border-bottom: 0; }
.hrb-read-title {
	margin: 0;
	padding: 6px 2px 0;
	background: transparent;
	color: var(--hr-ink);
	font-size: clamp(20px, 2.6vw, 27px);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.4;
}
.hrb-read-title a { color: inherit; }
.hrb-read-title .hrb-read-badge,
.hrb-read-title a.hrb-read-badge {
	display: inline-block;
	margin-right: 8px;
	padding: 4px 11px;
	border-radius: var(--hr-radius-pill);
	background: var(--hr-brand);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	vertical-align: 4px;
}
.hrb-read-title .hrb-read-badge.is-cat { background: var(--hr-brand-soft); color: var(--hr-brand); }
.hrb-read-title a.hrb-read-badge:hover { background: var(--hr-brand-dark); color: #fff; }
.hrb-read-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-top: 14px;
	padding: 12px 2px;
	background: transparent;
	border-top: 0;
	border-bottom: 1px solid var(--hr-line);
	font-size: 12.5px;
	color: var(--hr-muted);
}
.hrb-read-author { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--hr-ink-sub); }

.hrb-photo {
	width: 20px;
	height: 20px;
	border: 1px solid var(--hr-line);
	border-radius: 4px;
	object-fit: cover;
	vertical-align: -5px;
	margin-right: 4px;
}
.hrb-read-author .hrb-photo { width: 22px; height: 22px; margin-right: 0; }

.hrb-sign {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 0 0 20px;
	padding: 16px 18px;
	border: 1px solid var(--hr-line);
	border-radius: var(--hr-radius-sm);
	background: var(--hr-surface);
}
.hrb-sign-photo {
	flex: none;
	width: 48px;
	height: 48px;
	border: 1px solid var(--hr-line);
	border-radius: 6px;
	object-fit: cover;
}
.hrb-sign-body { min-width: 0; flex: 1; padding-left: 14px; border-left: 1px dotted var(--hr-line); }
.hrb-sign:not(:has(.hrb-sign-photo)) .hrb-sign-body { padding-left: 0; border-left: 0; }
.hrb-sign-name { display: block; margin-bottom: 4px; font-size: 13.5px; }
.hrb-sign-text { font-size: 13px; line-height: 1.6; color: var(--hr-ink-sub); }
.hrb-sign-text img { max-width: 100%; height: auto; }
.hrb-read-more { margin-left: auto; font-size: 18px; line-height: 1; color: var(--hr-muted); }
.hrb-read-more:hover { color: var(--hr-brand); }

.hrb-content { padding: 28px 0; font-size: 16px; line-height: 1.8; }
.hrb-content img { max-width: 100%; height: auto; }
/* 테마가 .hr a 로 링크 색을 모두 죽인다. 글쓴이가 넣은 본문 링크만 되살린다 */
.hrb-content a[href] { color: var(--hr-brand); text-decoration: underline; text-underline-offset: 2px; }
.hrb-content a[href]:hover { text-decoration-thickness: 2px; }
/* 사진이나 파일을 감싼 링크에는 밑줄을 긋지 않는다 */
.hrb-content a[href]:has(img) { text-decoration: none; }

.hrb-extras { margin: 0 0 20px; border-top: 1px solid var(--hr-line-soft); }
.hrb-extra-row { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--hr-line-soft); font-size: 14px; }
.hrb-extra-row dt { flex: none; width: 120px; color: var(--hr-muted); font-weight: 600; }
.hrb-extra-row dd { margin: 0; }

/* =========================================================
   현재 읽고 있는 게시글 Highlight (라이트모드 & 다크모드)
   ========================================================= */
/* 라이트모드 */
.hr-table tr.is-active,
.hrb-webzine li.is-active {
	background-color: #e6f4ed !important; /* 원하시는 배경색으로 변경 가능 */
}
.hr-table tr.is-active .hrb-title-link,
.hrb-webzine li.is-active .hrb-wz-title {
	font-weight: 700 !important;
	color: #0e6341 !important; /* 현재글 제목 색상 강조 */
}

/* 다크모드 */
html[data-color-scheme="dark"] .hr-table tr.is-active,
html[data-theme="dark"] .hr-table tr.is-active,
body.color_scheme_dark .hr-table tr.is-active,
body.dark .hr-table tr.is-active,
html[data-color-scheme="dark"] .hrb-webzine li.is-active,
html[data-theme="dark"] .hrb-webzine li.is-active,
body.color_scheme_dark .hrb-webzine li.is-active,
body.dark .hrb-webzine li.is-active {
	background-color: #19382b !important; /* 다크모드용 진한 배경색 */
}
html[data-color-scheme="dark"] .hr-table tr.is-active .hrb-title-link,
html[data-theme="dark"] .hr-table tr.is-active .hrb-title-link,
body.color_scheme_dark .hr-table tr.is-active .hrb-title-link,
body.dark .hr-table tr.is-active .hrb-title-link,
html[data-color-scheme="dark"] .hrb-webzine li.is-active .hrb-wz-title,
html[data-theme="dark"] .hrb-webzine li.is-active .hrb-wz-title,
body.color_scheme_dark .hrb-webzine li.is-active .hrb-wz-title,
body.dark .hrb-webzine li.is-active .hrb-wz-title {
	color: #2bbd7e !important;
}


.hrb-files { margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--hr-line); border-radius: var(--hr-radius-sm); background: var(--hr-surface); font-size: 14px; }
.hrb-files strong em { font-style: normal; color: var(--hr-brand); }
.hrb-files ul { margin-top: 8px; }
.hrb-files li { padding: 4px 0; }
.hrb-files a:hover { color: var(--hr-brand); text-decoration: underline; }
.hrb-file-size { margin-left: 8px; font-size: 12px; color: var(--hr-muted); }

.hrb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }

.hrb-vote { display: flex; justify-content: center; gap: 10px; margin: 4px 0 26px; }
.hrb-vote-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 40px;
	padding: 0 20px;
	border: 1px solid var(--hr-line);
	border-radius: 999px;
	background: var(--hr-bg);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--hr-ink-sub);
	cursor: pointer;
	transition: border-color .15s, color .15s, background-color .15s;
}
.hrb-vote-btn svg { width: 16px; height: 16px; }
.hrb-vote-btn b { font-size: 14.5px; font-weight: 800; }
.hrb-vote-btn.is-up b { color: var(--hr-brand); }
.hrb-vote-btn.is-up:hover { border-color: var(--hr-brand); color: var(--hr-brand); background: var(--hr-brand-soft); }
.hrb-vote-btn.is-down:hover { border-color: var(--hr-danger); color: var(--hr-danger); }
.hrb-vote-btn.is-down:hover b { color: var(--hr-danger); }
.hrb-vote-btn.is-up.is-voted {
	border-color: var(--hr-brand-dark);
	background: linear-gradient(var(--hr-brand-light), var(--hr-brand));
	color: #fff;
}
.hrb-vote-btn.is-up.is-voted b { color: #fff; }
.hrb-vote-btn.is-down.is-voted { border-color: var(--hr-danger); background: var(--hr-danger); color: #fff; }
.hrb-vote-btn.is-down.is-voted b { color: #fff; }

.hrb-read-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hrb-read-actions-right { display: flex; gap: 6px; margin-left: auto; }

.hrb-cmts { --hrb-cmt-point: var(--hr-brand); margin: 26px 0 36px; border: 1px solid var(--hr-line); border-radius: var(--hr-radius-sm); overflow: hidden; }

.hrb-cmts-title {
	margin: 0;
	padding: 11px 16px;
	border-bottom: 1px solid var(--hr-line);
	background: var(--hr-surface);
	font-size: 14px;
	font-weight: 700;
}
.hrb-cmts-title em { font-style: normal; color: var(--hrb-cmt-point); text-decoration: underline; }

.hrb .hrb-cmt-list, .hrb ul.hrb-cmt-list { margin: 0; padding: 0 22px; }
.hrb-cmt-item { padding: 16px 0; border-bottom: 1px dashed var(--hr-line); }
.hrb-cmt-item:last-child { border-bottom: 0; }
.hrb-cmt-item.is-reply { padding-left: 20px; }
.hrb-cmt-item.d2 { padding-left: 40px; }
.hrb-cmt-item.d3 { padding-left: 60px; }
.hrb-cmt-item.d4 { padding-left: 80px; }
.hrb-cmt-item.is-reply { position: relative; }
.hrb-cmt-item.is-reply::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 20px;
	width: 6px;
	height: 6px;
	border-left: 1px solid var(--hr-muted);
	border-bottom: 1px solid var(--hr-muted);
}

.hrb-cmt-head { display: flex; align-items: center; gap: 8px; }
/* 프로필 이미지 기본 및 대체 텍스트 공통 */
.hrb-cmt-photo {
    flex: none;
    width: 28px;
    height: 28px;
    border: 1px solid var(--hr-line);
    border-radius: 50%; /* 동그랗게 설정 (원할 경우 3px 등으로 변경 가능) */
    object-fit: cover;
}

/* 이미지가 없을 때 첫 글자 스타일 */
.hrb-cmt-photo.is-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;            /* 글자 색상 (흰색) */
    font-size: 12px;           /* 글자 크기 */
    font-weight: 700;          /* 글자 두께 */
    line-height: 1;
    user-select: none;
}
.hrb-cmt-name { font-size: 13.5px; font-weight: 700; }
.hrb-cmt-date { font-size: 11.5px; color: var(--hr-muted); }

.hrb-cmt-body { margin: 8px 0 0; padding-left: 36px; font-size: 14px; line-height: 1.7; }
.hrb-cmt-body a[href] { color: var(--hr-brand); text-decoration: underline; text-underline-offset: 2px; }
.hrb-cmt-body.is-deleted { color: var(--hr-muted); }
.hrb-cmt-files { margin-top: 8px; padding-left: 36px; font-size: 12.5px; }
.hrb-cmt-files span { color: var(--hr-muted); font-size: 11.5px; margin-left: 6px; }
.hrb-cmt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-left: 36px; font-size: 12px; color: var(--hr-muted); }
.hrb-cmt-actions a { display: inline-flex; align-items: center; padding: 4px 11px; border: 1px solid var(--hr-line); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--hr-muted); line-height: 1.5; }
.hrb-cmt-actions a:hover { border-color: var(--hrb-cmt-point); background: var(--hr-surface); color: var(--hrb-cmt-point); text-decoration: none; }
.hrb-cmt-vote { color: var(--hrb-cmt-point); font-weight: 600; }
.hrb-cmts .hr-pages { margin: 10px 0; }

.hrb-cmt-form { margin: 0; padding: 16px; border-top: 1px solid var(--hr-line); background: var(--hr-surface); }
.hrb-cmt-form .hrb-cmt-form-foot { margin-top: 10px; }
.hrb-cmt-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.hrb-cmt-form-fields { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hrb-cmt-form-fields input[type="text"], .hrb-cmt-form-fields input[type="password"] { width: 140px; }
.hrb-captcha { margin-top: 12px; }

.hrb .hrb-write-head { display: flex; align-items: stretch; gap: 8px; margin-bottom: 14px; }
.hrb .hrb-write-head select.hrb-write-cat,
.hrb .hrb-write-head select.hrb-write-notice {
	width: auto;
	min-width: 130px;
	max-width: 200px;
	flex: 0 0 auto;
	height: 44px;
}
.hrb .hrb-write-head input.hrb-write-title {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: 44px;
	font-size: 16px;
	font-weight: 600;
}
.hrb-write-extras { margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--hr-line); border-radius: var(--hr-radius-sm); background: var(--hr-surface); }
.hrb-write-extras .hr-field:last-child { margin-bottom: 0; }
.hrb-write-editor { margin-bottom: 16px; }
.hrb-write-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.hrb-write-author { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hrb-write-author input { width: 160px; }
.hrb-write-tags { flex: 1 1 260px; }
.hrb-write-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--hr-line); }
.hrb-write-actions-right { display: flex; gap: 6px; margin-left: auto; }

.hrb-confirm { max-width: 520px; margin: 40px auto; text-align: center; }
.hrb-confirm-target { margin-bottom: 20px; padding: 16px 18px; border: 1px solid var(--hr-line); border-radius: var(--hr-radius-sm); background: var(--hr-surface); text-align: left; }
.hrb-confirm-target h3 { font-size: 15px; }
.hrb-confirm-target p { margin: 6px 0 0; font-size: 13px; color: var(--hr-muted); }
.hrb-confirm-msg { margin: 0 0 18px; font-size: 16px; font-weight: 700; line-height: 1.6; }
.hrb-confirm-actions { display: flex; justify-content: center; gap: 8px; }
.hrb-secret { padding: 40px 20px; text-align: center; color: var(--hr-ink-sub); }
.hrb-secret-row { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.hrb-secret-row input { width: 200px; }

.hrb-tag-cloud { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 24px 0; }
.hrb-tag { color: var(--hr-ink-sub); font-weight: 600; }
.hrb-tag:hover { color: var(--hr-brand); }
.hrb-tag.r1 { font-size: 26px; }
.hrb-tag.r2 { font-size: 22px; }
.hrb-tag.r3 { font-size: 18px; }
.hrb-tag.r4 { font-size: 15px; }
.hrb-tag.r5 { font-size: 13px; color: var(--hr-muted); }
.hrb-tag-foot { padding-top: 16px; border-top: 1px solid var(--hr-line); }

.hrb .hr-pages { gap: 5px; }
.hrb .hr-pages a, .hrb .hr-pages strong {
	width: auto;
	min-width: 34px;
	height: 34px;
	padding: 0 6px;
	border: 0;
	border-radius: var(--hr-radius-btn);
	font: 600 13.5px/34px var(--hr-font);
	color: var(--hr-ink-sub);
	background: transparent;
	text-align: center;
}
.hrb .hr-pages a:hover { background: var(--hr-surface); color: var(--hr-ink); }
.hrb .hr-pages strong {
	color: var(--hr-bg);
	font-weight: 800;
	background: var(--hr-ink);
}

.hrb .hr-btn,
.hrb a.hr-btn,
.hrb button.hr-btn,
.hrb input.hr-btn {
	box-sizing: border-box;
	height: 36px;
	padding: 0 17px;
	border-radius: var(--hr-radius-btn);
	border: 1px solid var(--hr-btn-line);
	background: var(--hr-btn-face);
	color: var(--hr-ink-sub);
	font-size: 13px;
	font-weight: 600;
	line-height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: border-color .15s, color .15s, background-color .15s;
}
.hrb .hr-btn:hover { border-color: var(--hr-brand); color: var(--hr-brand); background: var(--hr-bg); }
.hrb .hr-btn-primary,
.hrb a.hr-btn-primary,
.hrb button.hr-btn-primary,
.hrb input.hr-btn-primary {
	background: var(--hr-btn-strong);
	border-color: var(--hr-btn-strong);
	color: #fff;
	font-weight: 700;
}
.hrb .hr-btn-primary:hover,
.hrb a.hr-btn-primary:hover,
.hrb button.hr-btn-primary:hover,
.hrb input.hr-btn-primary:hover {
	background: var(--hr-btn-strong-hover);
	border-color: var(--hr-btn-strong-hover);
	color: #fff;
}
[data-theme="dark"] .hrb .hr-btn-primary { color: #fff; }
[data-theme="dark"] .hrb-confirm-target,
[data-theme="dark"] .hrb-notice-text { border-top-color: #3d4557; }
@media (max-width: 768px) {
	[data-theme="dark"] .hrb-table { border-top: 1px solid #3d4557; }
}

.hrb-confirm-target,
.hrb-notice-text {
	border: 0;
	border-top: 2px solid var(--hr-ink-sub);
	border-bottom: 1px solid var(--hr-line);
	border-radius: 0;
	background: var(--hr-surface);
}

@media (max-width: 768px) {
	
	.hrb-cards { grid-template-columns: 1fr; gap: 16px; }
	.hrb-card-thumb { aspect-ratio: 16 / 9; }
	.hrb-webzine > li > a { gap: 12px; padding: 14px 4px; }
	.hrb-wz-thumb { flex-basis: 108px; }
	.hrb-wz-title { font-size: 14.5px; }
	.hrb-wz-summary { font-size: 12.5px; -webkit-line-clamp: 2; }
	.hrb-notices-meta { display: none; }
	.hrb-card-body { padding: 12px 16px 16px; }
	.hrb-card-title { font-size: 15px; }
	/* 제목 글자만 두 줄로 줄인다. 댓글수·N 은 마지막 줄 뒤에 그대로 붙는다 */
	.hrb-card-titletext {
		display: -webkit-inline-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		max-width: 100%;
		vertical-align: bottom;
	}
	.hrb-card-meta { margin-top: 8px; }

	.hrb-bar { flex-direction: column; align-items: stretch; }

	.hrb-bar-actions { margin-left: 0; width: 100%; }
	.hrb-bar-actions .hr-btn-primary { margin-left: auto; }

	.hrb-write-head { flex-wrap: wrap; }
	.hrb .hrb-write-head input.hrb-write-title { flex-basis: 100%; }
	.hrb-cmt-item.is-reply, .hrb-cmt-item.d2, .hrb-cmt-item.d3, .hrb-cmt-item.d4 { padding-left: 16px; }
}

/* 모바일 본문 및 에디터 내부 태그 글자 크기 강제 적용 */
@media (max-width: 768px) {
	.hrb-content,
	.hrb-content *,
	.hrb-content p,
	.hrb-content span,
	.hrb-content div { 
		font-size: 18px !important; 
		line-height: 1.75 !important;
	}
}