@charset "utf-8";
/* ===== bbs_katalk 글 보기 틀 — 뷰 상자·페이지 여백·배경·머리 배너·제목/정보·헤더 단추 줄·하단 이동·날짜 목차·시리즈 이동·이어읽기·단어 등급.
   글 보기 CSS 는 기능별 여섯 파일 — style.view.css(틀) → style.chat.css(말풍선) → style.comment.css(댓글) → style.search.css(검색)
   → style.settings.css(설정 패널) → style.edit.css(편집 모드). view.skin.php 가 이 순서로 style.base.css 뒤에 싣고(글쓰기도 말풍선
   미리보기 때문에 같은 순서로), 파일끼리 같은 요소를 같은 명시도로 겨루는 규칙은 이 순서로 이긴다. 2026-09-30 style.view.css 를 가름. ===== */
.bbs-tag-header {
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.board-viewer.bbs-box {
	display: block;
	position: relative;
	padding: 20px;
}

/* 코어(라공)의 #container_wr 위 여백(순정 30px · js1011 코어 폰 8px) — 뷰 페이지에선 hero-banner 가 카드 상단을 통째로 채우므로 그 위 공백 제거.
   :has(#bo_v_con) 로 GnuBoard 표준 view 컨테이너가 있는 페이지만 매치 (목록/작성/기타 페이지엔 #bo_v_con 없음 → 영향 없음). */
#container_wr:has(#bo_v_con):not(:has(#bo_w)) {   /* [CUSTOM(takemd)] 2026-09-29 글쓰기의 말풍선 미리보기(#bo_v_con)는 빼고 */
	padding-top: 0;
}

.board-viewer {
	position: relative;
	/* 상하단 동일 여백 — viewer 위/아래 30px 균형. */
	margin-top: 30px;
	margin-bottom: 30px;
}

/* === 헤더 배너 (썸네일 hero) ============================================ */
/* .board-viewer.bbs-box는 padding:20px + border-radius:20px. 배너는 박스의 상/좌/우 패딩까지
   넘겨 받아 카드 상단을 통째로 채운다. 상단 두 모서리만 박스 곡률과 동일하게 둥글림. */
.bbs-hero-banner {
	position: relative;
	width: auto;
	margin: -20px -20px 18px -20px;
	aspect-ratio: 16 / 5;
	min-height: 180px;
	max-height: 360px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
	color: #ffffff;
	isolation: isolate;
	border-radius: 20px 20px 0 0;
	/* 게시글별 폰트 (wr_2) 상속. .bbs-box 안이라 자동 상속되지만 명시적으로 한 번 더 보장. */
	font-family: inherit;
}

.bbs-hero-banner::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.05) 45%, rgba(0, 0, 0, 0.55) 100%);
	z-index: 1;
	pointer-events: none;
}

.bbs-hero-text {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 22px;
	z-index: 2;
	pointer-events: none;
	text-align: left;
	color: #ffffff;
	font-family: inherit;
}

.bbs-hero-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.2;
	font-weight: var(--bbs-fw-bold, 700);
	letter-spacing: 0.02em;
	color: #ffffff;
	font-family: inherit;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.55);
}

.bbs-hero-subtitle {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.3;
	color: #ffffff;
	opacity: 0.92;
	font-family: inherit;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* 배너가 있으면 기존 제목/부제목 텍스트 라인은 시각적으로 중복이라 숨김 (편집모드에서는 다시 보이게) */
.board-viewer.has-banner-image > .subject .subject-view {
	display: none;
}

.board-viewer.has-banner-image > .info {
	display: none;
}

/* 이미지 없는 케이스 — 데스크탑에선 hero-banner 숨기고 일반 .subject/.info 사용. */
.board-viewer.no-banner-image .bbs-hero-banner {
	display: none;
}

/* ⚠ 700px 이 아니라 1000px 이다. .board-viewer.bbs-box 의 background 가
   transparent 로 바뀌는 구간이 1000px 이하인데 이 폴백 배너는 700px 에서 끊겨 있어서,
   701~1000px 에서는 제목이 배경도 그림자도 없이 사진 위에 그대로 놓였다
   (실측 768px: .subject 색 rgb(71,85,105) / text-shadow none / viewer 배경 투명).
   두 구간을 같은 1000px 로 맞춘다. */
.board-viewer .subject {
	text-align: center;
}

.board-viewer .subject em {
	display: block;
	position: relative;
	font-size: 14px;
	line-height: 1.2em;
	padding-bottom: 10px;
}

.board-viewer .subject strong {
	display: block;
	position: relative;
	font-size: 22px;
	line-height: 1.2em;
}

.board-viewer .info {
	margin-top: 10px;
	text-align: center;
	font-size: 11px;
}

.board-viewer .info span {
	display: inline-block;
	opacity: .8;
}

.board-viewer .info span+span:before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 8px;
	vertical-align: middle;
	margin: 0 10px;
}

.board-viewer .contents {
	display: block;
	position: relative;
	margin: 20px 0;
	padding: 40px 15px;
	border-left-width: 0;
	border-right-width: 0;
}

/* 가리기(코어 module/bbs_cover) — 19금·스포일러 글은 대화 본문 칸(.contents)이 한 상자(view.skin.php). 긴 대화면 막이 수천 px 이라
   「눌러서 보기」 표가 화면 밖 한가운데에 뜨고 댓글까지 한참 내려가야 했다 — 닫혀 있는 동안은 한 화면 남짓으로 접는다(풀면 원래 길이) */
.board-viewer .contents:is([data-cover~="adult"], [data-cover~="spoiler"]):not([data-cover-open]) {
	max-height: var(--bbs-cover-peek);
	overflow: hidden;
}

#bo_v_bot {
	padding: 20px 0 0;
	overflow: hidden;   /* 옛 사본에서 옮김 */
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-start;
	justify-content: space-between;
}

.bo_v_nb {
	float: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.bo_v_com {
	float: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
	margin-left: auto;
}

/* [CUSTOM(takemd)] 모바일 전용 이전/다음글 버튼 — 데스크톱은 #bo_v_bot 이 담당하므로 숨김 */
.bbs-btn-header .navprevbtn, .bbs-btn-header .navnextbtn {
	display: none;
}

#bo_v_bot .ui-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: var(--bbs-ui-btn-h, 30px);
	padding: 0 12px;
	border-radius: var(--bbs-ui-radius, 10px);
	background: var(--bbs-ctrl-bg, var(--bbs-base2));
	color: var(--bbs-ui-fg-strong, var(--bbs-text));
}

#bo_v_bot .ui-btn:hover, #bo_v_bot .ui-btn:focus-visible {
	background: var(--bbs-ctrl-bg-hover, var(--bbs-point));
	color: var(--bbs-ui-fg-strong, var(--bbs-text));
}

.bbs_background {
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
	position: fixed;
	pointer-events: none;
	z-index: 0;
	opacity: 0;
	transition: opacity .35s ease;
}

html.opt-bg-blur .bbs_background {
	filter: blur(10px);
	transform: scale(1.02);
}

.bbs_background.is-loaded {
	opacity: 1;
}

html.opt-box-trans #pair_view_content {
	background: transparent !important;
	backdrop-filter: blur(6px);
}

html.opt-box-trans .board-viewer {
	background: color-mix(in srgb, var(--bbs-base) 75%, transparent);
}

html.opt-box-clear #pair_view_content {
	background: transparent !important;
	backdrop-filter: none !important;
}

html.opt-box-clear .board-viewer:not(#katalk-no-such-element) { background: transparent; }

.bbs-box {
	width: calc(100% - 80px);
	border-radius: 20px;
}

.bbs-btn-header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-direction: column;
	gap: 10px;
	z-index: var(--z-floating-header, 3000);
	/* sticky + height 0 트릭: normal flow 자리 안 차지(viewer 안 빈 공간 해소).
	   width:0/height:0 wrapper처럼 동작하면서 overflow:visible로 자식 버튼들이 보임.
	   margin-left: -80px로 viewer 왼쪽 외부에 위치.
	   모바일 미디어쿼리(≤1000px)에서 fixed 좌표로 !important 오버라이드. */
	position: sticky;
	top: 84px;
	width: 0;
	height: 0;
	overflow: visible;
	margin-left: -80px;
	margin-right: 0;
	margin-top: 0;
	margin-bottom: 0;
	padding: 0;
	left: auto;
	right: auto;
	bottom: auto;
	transform: none;
	translate: 0 0;
}

/* width/height 0인 부모 안에서 flex 자식들이 visible로 부모 박스 밖에 그려짐 */
.bbs-btn-header > .bbs-btn {
	flex-shrink: 0;
}

.bbs-btn {
	width: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0;
	text-align: center;
	display: inline-flex;
	justify-content: center;
	align-items: center;
}

.bbs-btn-header .bbs-btn:hover {
	transform: translateY(-1px);
}

.bbs-btn-toggle {
	display: none;
}

/* 편집·관리 접기 손잡이도 모바일 전용 — 데스크톱은 이 줄이 세로 sticky 라
   버튼이 많아도 본문을 덮지 않는다. (0,2,0) 이라 .bbs-btn 의 inline-flex 를 이긴다. */
.bbs-btn-header .bbs-btn-more {
	display: none;
}

.bbs-btn.incompletebtn {
	position: sticky;
	top: 12px;
	z-index: 5;
}

.bbs-btn.incompletebtn .fa-check {
	display: none;
}

.bbs-btn.incompletebtn .fa-flag {
	display: inline-block;
}

.bbs-btn.incompletebtn.active .fa-flag {
	display: none;
}

.bbs-btn.incompletebtn.active .fa-check {
	display: inline-block;
}

.subject .subject-view {
	display: inline;
}

.subject-right {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* .bbs-square 테마 규칙은 themes/square.css에서 단일 관리 */
.info.info-empty {
	display: none;
}

.board-viewer.theme-fade {
	transition: opacity .2s ease;
}

.board-viewer.theme-fade.theme-fading {
	opacity: 0.4;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* 모바일 글 관리 버튼은 데스크톱에선 숨김(#bo_v_bot 에 같은 링크가 있다).
   1000px 이하에선 위 접힘 규칙(0,4,0/0,5,0)이 이겨 렌치 뒤에 나온다. */
.bbs-btn-header .bbs-btn.bbs-admin-mobile {
	display: none;
}

.changeBackground:before {
	background: none !important; /* 줄임 속성이 그림도 none 으로 — 따로 있던 background-image 는 같은 무게라 늘 이것에 덮였다(2026-11-25 걷음) */
}

#chat-toc {
	position: fixed;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: var(--z-chat-toc, 2000);
	pointer-events: auto;
	align-items: flex-start;
}

#chat-toc .toc-dot {
	--chat-dot: 12px;
	position: relative;
	width: var(--chat-dot);
	height: var(--chat-dot);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	padding: 0;
	pointer-events: auto;
	outline: none;
	box-shadow: none;
}

#chat-toc .toc-dot::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--bbs-toc-dot-bg);
	border: 1px solid var(--bbs-toc-dot-bg);
	transform-origin: center center;
	will-change: box-shadow;
	transition: box-shadow var(--bbs-anim-base, .15s) ease, border-color var(--bbs-anim-base, .15s) ease, background var(--bbs-anim-base, .15s) ease;
}

#chat-toc .toc-dot::after {
	content: attr(aria-label);
	position: absolute;
	left: calc(100% + 6px);
	top: 50%;
	transform: translateY(-50%);
	white-space: nowrap;
	padding: 4px 8px;
	border-radius: 6px;
	background: var(--bbs-toc-tooltip-bg);
	color: var(--bbs-toc-tooltip-fg);
	font-size: 12px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	box-shadow: var(--bbs-ui-shadow);
}

#chat-toc .toc-dot[data-has-url="1"]::before, #chat-toc .toc-dot.active::before {
	background: var(--p-color-charaname, var(--bbs-point, #4a8cff));
	border-color: var(--p-color-charaname, var(--bbs-point, #4a8cff));
}

#chat-toc .toc-dot:hover::before, #chat-toc .toc-dot:focus-visible::before, #chat-toc .toc-dot:active::before {
	animation: pulseDotHover 1s cubic-bezier(.25, .1, .25, 1) infinite;
	background: var(--p-color-charaname, var(--bbs-point, #4a8cff));
	border-color: var(--p-color-charaname, var(--bbs-point, #4a8cff));
}

#chat-toc .toc-dot:hover::after, #chat-toc .toc-dot:focus-visible::after, #chat-toc .toc-dot:active::after {
	opacity: 1;
	visibility: visible;
}

.bbs-btn {
	height: var(--bbs-ui-btn-h);
	border-radius: var(--bbs-ui-radius);
	background: var(--bbs-ui-bg);
	color: var(--bbs-ui-fg);
	font-size: var(--bbs-ui-btn-fz);
	font-weight: var(--bbs-fw-semi, 600);
	line-height: 1;
	transition: background-color var(--bbs-anim-base, .15s) ease, color var(--bbs-anim-base, .15s) ease, border-color var(--bbs-anim-base, .15s) ease, transform var(--bbs-anim-fast, .12s) ease;
}

.bbs-btn.incompletebtn.active, .bbs-btn.favoritebtn.active {
	background: var(--bbs-ui-accent-bg);
	color: var(--bbs-ui-accent-fg);
	border-color: transparent;
}

.bbs-series-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 18px auto 6px;
	padding: 8px 12px;
}

.bbs-series-nav-btn {
	padding: 6px 14px;
	border-radius: 8px;
	background: var(--bbs-ctrl-bg, rgba(0, 0, 0, 0.05));
	color: var(--bbs-ui-fg-strong, inherit);
	border: 1px solid var(--bbs-ctrl-border, transparent);
	font-size: 13px;
	text-decoration: none;
	transition: background var(--bbs-anim-base, 0.15s), color var(--bbs-anim-base, 0.15s);
}

.bbs-series-nav-btn:hover {
	background: var(--bbs-ui-accent-bg, var(--accent-color, #1a73e8));
	color: var(--btn-accent-text, #fff);
}

.bbs-series-nav-btn.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.bbs-series-nav-label {
	font-size: 13px;
	color: var(--bbs-ui-fg-muted, #777);
}

.bbs-series-nav-label b {
	color: var(--bbs-ui-fg-strong, inherit);
}

/* ==================== 이어읽기 버튼 (view_resume.js) ==================== */
.resume-read-btn {
	position: fixed;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	z-index: var(--z-reaction-picker-host, 20);
	display: inline-flex;
	align-items: stretch;
	gap: 1px;
	border-radius: 999px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .28);
	background: var(--bbs-ui-accent-bg, #4a7cff);
	color: var(--bbs-ui-accent-fg, #fff);
	animation: resumeBtnIn .22s ease;
}

.resume-read-btn .resume-go, .resume-read-btn .resume-close {
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font-family: inherit;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.resume-read-btn .resume-go {
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
}

.resume-read-btn .resume-go:hover {
	background: rgba(255, 255, 255, .12);
}

.resume-read-btn .resume-close {
	padding: 0 13px;
	font-size: 13px;
	opacity: .75;
	border-left: 1px solid rgba(255, 255, 255, .28);
}

.resume-read-btn .resume-close:hover {
	opacity: 1;
	background: rgba(255, 255, 255, .12);
}

/* 점프 대상 말풍선 잠깐 강조 */
#bo_v_con .bubble-wrap.resume-flash .con_message {
	animation: resumeFlash 1.4s ease;
}

/* 특수 모드에선 이어읽기 버튼 숨김 (레이아웃 변형/오클릭 방지) */
body.chat-edit-on .resume-read-btn, body.chat-split-on .resume-read-btn, body.chat-export-on .resume-read-btn, body.chat-classify-on .resume-read-btn {
	display: none !important;
}

/* ===== 폰(≤1000px) ===== */
@media (max-width: 1000px) {
	.board-viewer {
		--viewer-pad: 0px;
	}

	/* 폰에선 아래 여백도 — 코어 모바일 블록이 #container_wr 아래를 30px 로 두는 건 목록의 페이저·푸터가 붙지 않게인데,
	   글 보기는 상자 하나뿐이라 상자 밑에 빈 띠만 남았다(사용자 2026-09-29 「하단에도 있네」). 상자 제 안쪽 여백(12px)은 그대로.
	   (이 설명은 style.base.css 에 규칙 없이 떨어져 있던 것을 규칙 옆으로 옮겼다 — 2026-11-21) */
	#container_wr:has(#bo_v_con):not(:has(#bo_w)) {
		padding-bottom: 0;
	}

	.bbs-hero-banner {
		/* 모바일에서는 .board-viewer.bbs-box의 padding이 0이므로 음수 마진도 0 */
		margin: 0 0 14px 0;
		aspect-ratio: 16 / 7;
		min-height: 150px;
		border-radius: 0;
	}

	.bbs-hero-text {
		left: 16px;
		right: 16px;
		bottom: 16px;
	}

	/* 모바일: 이미지 없어도 hero-banner 보이게 (fallback 배경) — 가시성 위해 강제.
	   테마 accent 색 + 어두운 베이스 합성 → 라이트/다크 테마 모두 흰 텍스트 contrast 유지하면서 톤이 테마 따라감.
	   --bbs-hero-fallback-tint 로 테마별 override 가능. */
	.board-viewer.no-banner-image .bbs-hero-banner {
		display: block;
		background-color: var(--p-color-sub, var(--bbs-base, #1a1a1a));
		background-image: linear-gradient(
			135deg,
			var(--bbs-hero-fallback-tint, color-mix(in srgb, var(--p-color-main, #1a1a1a) 55%, rgba(0,0,0,0.6))) 0%,
			color-mix(in srgb, var(--p-color-main, #000) 30%, rgba(0,0,0,0.85)) 100%
		);
		/* 비율(16/7)과 최소높이(150px)는 보여줄 그림이 있을 때 쓰는 값이다.
		   그림이 없는 이 경우엔 단색 블록이라, 375px 에서 164px(뷰포트의 20%)를
		   차지하면서 위쪽 100px 이 그냥 빈 칸이었다. 글자 높이에 맞춰 줄인다. */
		aspect-ratio: auto;
		min-height: 0;
		padding: 16px 16px 18px;
	}

	/* absolute 를 풀되 relative 로 — static 이면 z-index 가 죽어 위의 ::after
	   그라디언트가 글자 위로 올라온다. */
	.board-viewer.no-banner-image .bbs-hero-text {
		position: relative;
		left: auto;
		right: auto;
		bottom: auto;
	}

	/* hero-banner 보이니까 중복 표시 안 되게 일반 subject/info 숨김. */
	.board-viewer.no-banner-image > .subject .subject-view, .board-viewer.no-banner-image > .info {
		display: none;
	}

	.board-viewer .contents {
		padding: 0;
	}

	#chat-toc {
		right: 10px;
		gap: 8px;
	}

	.board-viewer, .board-viewer.bbs-box, .bbs-box {
		width: 100%;
		margin: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		padding: 0;
	}

	.board-viewer {
		max-width: 100% !important;
		width: 100%;
	}

	.bbs-btn-header {
		/* (자리 선언의 !important 아홉은 2026-09-29 코드 점검에서 뺐다 — 겨루는 건 위 데스크톱 .bbs-btn-header 뿐이고 같은 명시도라 순서로 이긴다)
		   좌하단 위젯 툴바와 같은 열에, 그 위로 쌓는다. 전엔 화면 왼쪽 '위'에서
		   아래로 흘러 대화를 세로로 가로질렀다.
		   .widget-toolbar 실측: left 10 / bottom 10 / 버튼 35px / column-reverse.
		   10(툴바 아래여백) + 35(툴바 버튼) + 10(간격) = 55px 위에서 시작한다. */
		position: fixed;
		translate: 0 0;
		left: 10px;
		top: auto;
		bottom: 55px;
		right: auto;
		/* ⚠ margin-left 를 반드시 되돌린다. 데스크톱 기본값이 -80px(뷰어 왼쪽 바깥에
		   박으려고 준 값)인데 여기서 안 끄면 left:8px 과 합쳐져 상자가 -72px 에 놓인다.
		   폭 0 짜리 상자라 자식 버튼(44px)이 통째로 화면 밖(-72~-28)으로 나가,
		   모바일에서 메뉴·검색·관심글·이전/다음글이 전부 눌리지 않았다.
		   #bo_v_bot 도 이 구간에선 숨기므로 목록으로 돌아갈 길이 아예 없었다. */
		margin-left: 0;
		margin-right: 0;
		transform: none;
		/* 아래에서 위로 쌓는다 — 손잡이가 툴바에 가장 가까운 자리에 오고 펼친 버튼이
		   위로 자란다. 한 열에 다 못 담기면 오른쪽 열로 넘긴다
		   (812px 는 16개가 한 열에 들어가고, 667px 에서 두 열이 된다). */
		display: flex;
		flex-flow: column-reverse wrap;
		align-content: flex-start;
		align-items: flex-start;
		gap: 10px;
		width: auto;
		height: auto;
		max-height: calc(100vh - 75px);
		/* iOS 의 vh 는 툴바 접힘 기준이라 주소창이 보일 땐 열 꼭대기가 화면 위로
		   나가 렌치 뒤 버튼 1~2개가 닿을 수 없었다. dvh 로 덮어쓴다(미지원은 위 폴백). */
		max-height: calc(100dvh - 75px);
		z-index: var(--z-floating-header, 3000);
	}

	/* 위젯 툴바가 펼쳐지면 자기 메뉴(.widget-toolbar-menu)가 같은 열을 위로 채워
	   실측 t=475~757 을 차지한다 — 이 열과 정확히 겹친다. 한 번에 하나만 보이게
	   그때는 이쪽을 비운다(둘 다 좌하단 한 열을 쓰는 메뉴라 동시에 열릴 이유가 없다). */
	body:has(.widget-toolbar-toggle.active) .bbs-btn-header {
		display: none;
	}

	/* 위젯 툴바 버튼과 같은 모양 — 35×35, 라운드 8px, 슬레이트 바탕에 흰 아이콘.
	   .widget-toolbar-toggle 의 실측값이다. 그 위젯은 이 스킨 소유가 아니라 쓸 토큰이
	   없어 값을 직접 맞춘다(툴바 모양이 바뀌면 여기도 같이 고쳐야 한다). */
	.bbs-btn-header .bbs-btn {
		width: 35px;
		height: 35px;
		min-height: 35px;
		border-radius: 8px;
		background: rgb(100, 116, 139);
		color: #fff;
		box-shadow: none;
	}

	.bbs-btn-header .bbs-btn i {
		font-size: 16.8px;
	}

	/* 아이콘 톤 맞추기 — 껍데기(35×35 / 라운드 8 / 같은 바탕색)는 이미 같은데,
	   손잡이 글리프만 밀도가 달랐다. 이웃은 fa-bars(굵은 3줄)·fa-grip(6점)이라
	   면적을 꽉 채우는데 fa-ellipsis 는 한 줄에 작은 점 3개라 눈에 띄게 가벼웠다.
	   같은 16.8px 로는 안 맞아 손잡이만 키운다.
	   ⚠ 바로 위 .bbs-btn-header .bbs-btn i 와 같은 명시도(0,3,0)라 순서로만 이긴다. */
	.bbs-btn-header .bbs-btn-toggle i {
		font-size: 20px;
	}

	.bbs-btn {
		margin: 0;
	}

	#chat-toc {
		display: none;
	}

	#chat-toc .toc-dot::after {
		display: none;
	}

	#bo_v_bot {
		display: none;
	}

	/* 하단 내비가 숨겨지는 구간이므로 헤더 토글 안에서 글 이동을 제공 */
	.bbs-btn-header .navprevbtn, .bbs-btn-header .navnextbtn {
		display: none;
	}

	.bbs-btn-header.is-open .navprevbtn, .bbs-btn-header.is-open .navnextbtn {
		display: inline-flex;
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	.bbs-btn-header .bbs-btn:not(.bbs-btn-toggle) {
		display: none;
		opacity: 0;
		pointer-events: none;
		transform: translateY(6px);
		transition: opacity .2s ease, transform .2s ease;
	}

	.bbs-btn-header.is-open .bbs-btn:not(.bbs-btn-toggle) {
		display: inline-flex;
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	/* 편집·관리 버튼은 메뉴를 열어도 접혀 있고, 렌치를 눌러야 나온다.
	   관리자로 열면 14개가 세로로 깔려 화면을 거의 덮었다 — 읽는 동안 쓰는 것만 남긴다.
	   📌 바로 위 규칙과 같은 (0,4,0) 이라 순서로 이긴다. 반드시 뒤에 둘 것. */
	.bbs-btn-header.is-open .bbs-btn.is-secondary {
		display: none;
	}

	.bbs-btn-header.is-open.is-more-open .bbs-btn.is-secondary {
		display: inline-flex;
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	/* 손잡이와 접힌 것들을 줄 맨 끝으로. 마크업 순서상 편집 버튼이 중간(관심글~검색 뒤)에
	   있어 그냥 두면 펼칠 때 목록이 가운데에서 늘어난다. */
	.bbs-btn-header .bbs-btn-more { order: 1; }

	.bbs-btn-header .bbs-btn.is-secondary { order: 2; }

	/* 모바일 글 관리 버튼(삭제·복사·이동·정보수정). 마크업은 view.skin.php —
	   기본은 아래 데스크톱 규칙이 숨기고, 이 구간에선 .is-secondary 접힘 규칙을
	   그대로 탄다(렌치를 열어야 나온다). 삭제만 위험색 틴트. */
	.bbs-btn-header .bbs-btn.bbs-admin-danger {
		color: var(--diff-fg-del, #f87171);
	}

	/* 펼쳐져 있음을 버튼 색으로 (box-shadow 는 전역 none !important 에 막힌다) */
	.bbs-btn-header .bbs-btn-more.active {
		background: var(--bbs-point, #137bea);
		color: #fff;
	}

	/* 다 펼치면 최대 17개(44px + 간격 8)라 한 줄로는 812px 화면을 넘어간다.
	   이 줄은 position:fixed 라 넘친 버튼은 스크롤로도 못 닿는다 — 방금 고친
	   "화면 밖 메뉴"와 같은 종류의 사고가 된다. 그래서 펼칠 때만 2열 격자로 흘린다.
	   폭·높이를 줘도 본문 배치엔 영향이 없고(fixed), 검색·백업 패널은 저희도
	   position:fixed 라 격자 항목이 되지 않는다. */
	/* (전엔 여기서 2열 격자로 바꿨는데, 이제 위 .bbs-btn-header 가 column-reverse wrap
	   + max-height 라 넘치면 알아서 옆 열로 넘어간다 — 상태별 display 전환이 필요 없다.) */
	.bbs-btn-toggle {
		display: inline-flex;
		order: 0;
		opacity: 1;
		pointer-events: auto;
	}

	/* 펼쳐져 있을 때만 손잡이를 포인트색으로 — 평소엔 툴바 버튼들과 같은 모양을 유지한다 */
	.bbs-btn-header.is-open .bbs-btn-toggle {
		background: var(--bbs-point);
	}

	.bbs-btn {
		/* 모바일 권장 터치 타깃 44×44px (Apple HIG / Android Material). 기존 36px → 44px. */
		width: 44px;
		height: 44px;
		min-height: 44px;
		border-radius: 999px;
	}
}

/* ===== 태블릿(701~1000px) 되돌리기 — 폰 블록은 375px 기준이라 이 구간은 데스크톱에 가깝게 되돌린다.
   ⚠ 폰 블록보다 뒤에 둘 것 — 같은 명시도라 순서로만 이긴다. ===== */
@media (max-width: 1000px) and (min-width: 701px) {
	/* 날짜 점 목차 복귀(폰에선 숨김) — 위쪽에 따로 있던 블록을 불변식(태블릿 블록은
	   파일 끝) 자리로 이동 */
	#chat-toc {
		display: flex;
	}
}

/* 스킨 색(--bbs-base·--bbs-text) 입히기 — 옛 style.css.php 에서 온 규칙이라 파일 끝(폰 블록 뒤)에 있고, 같은 명시도의 앞 규칙을 순서로 이긴다 */
.bbs-box {
	background: var(--bbs-base);
	color: var(--bbs-text);
}

.bbs-btn {
	background: var(--bbs-base);
	color: var(--bbs-text);
}

/* .single::before 강제 비활성화 규칙은 css/style.base.css 의 @media (max-width:1000px) 블록에서 단일 관리 */

/* 뷰: timethread 스킨과 동일 디자인(0.72rem / 1px 5px / radius 5px) + 라벨 직접 호버로 펼침 */
.view-word-grade .word_grade {
	font-size: 0.72rem;
	padding: 1px 5px;
	border-radius: 5px;
}

.view-word-grade .word_grade:hover::before { max-width: 7em; }

.view-word-grade .word_grade:hover { padding: 1px 7px; }
