@charset "utf-8";

/* ==========================================================================
   Tiger 공통 스타일: 토큰, 폰트, 리셋, 접근성 유틸, 공용 컴포넌트
   ========================================================================== */

:root {
	--tg-blue: #2077cf;
	--tg-blue-dark: #1a6abb;
	--tg-line: #d8e1ea;
	--tg-orange: #ff5400;
	--tg-orange-2: #ff5500;
	--tg-sand: #c7bead;
	--tg-cream: #f4efe6;
	--tg-ink: #242424;
	--tg-text: #777;
	--tg-poll-bg: #fffbf3;
	--tg-danger: #cf0000;
	--tg-white: #fff;
	--tg-black: #000;
}

@font-face {
	font-family: 'nbg';
	font-weight: normal;
	font-style: normal;
	font-display: swap;
	src: url('/tigerCom/fonts/NanumBarunGothic.woff') format('woff');
}

/* 리셋 */
html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: 'nbg', sans-serif;
	font-size: 12px;
	line-height: 18px;
	color: var(--tg-text);
	-webkit-overflow-scrolling: touch;
}

p, h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dt, dd, table, th, td, form, fieldset, legend, input, textarea, button, select, img {
	margin: 0;
	padding: 0;
}

ul, ol, li {
	list-style: none;
}

img {
	border: 0;
	vertical-align: top;
}

table {
	border-collapse: collapse;
}

a,
a:link,
a:active,
a:visited {
	color: var(--tg-text);
	text-decoration: none;
	cursor: pointer;
	background: none;
}

a:hover {
	color: var(--tg-text);
	text-decoration: underline;
}

em, address {
	font-style: normal;
}

input, textarea, select, button {
	font-family: 'nbg', sans-serif;
}

input {
	vertical-align: middle;
	border: none;
	border-radius: 0;
	outline-style: none;
}

textarea {
	outline-style: none;
}

button {
	box-sizing: content-box;
	border: 0;
	background: none;
	color: var(--tg-text);
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-align: center;
	cursor: pointer;
}

button:hover {
	text-decoration: underline;
}

label {
	cursor: pointer;
}

::placeholder {
	color: #666;
	opacity: 1;
}

[hidden] {
	display: none !important;
}

.tg-clear {
	clear: both;
}

/* 접근성: 스크린리더 전용 텍스트, 건너뛰기 링크, 키보드 포커스 */
.tg-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tg-skip {
	position: absolute;
	top: -100px;
	left: 8px;
	z-index: 2000;
	padding: 8px 14px;
	background: var(--tg-blue);
	color: var(--tg-white);
	border-radius: 0 0 6px 6px;
}

.tg-skip:focus {
	top: 0;
}

a.tg-skip:link,
a.tg-skip:visited {
	color: var(--tg-white);
}

.tg-noscript {
	padding: 10px;
	background: #fff4d6;
	color: var(--tg-ink);
	text-align: center;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--tg-orange);
	outline-offset: 2px;
}

.tg-input:focus-visible,
.tg-input--comment:focus-visible,
.tg-input--connect:focus-visible,
.tg-field:focus-visible,
.tg-pollform__con input:focus-visible,
.tg-pollform__con textarea:focus-visible {
	outline: 2px solid var(--tg-orange);
	outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* 상태 색 */
.tg-like,
a.tg-like:link,
a.tg-like:active,
a.tg-like:visited,
button.tg-like {
	color: var(--tg-blue);
}

.tg-danger,
a.tg-danger:link,
a.tg-danger:active,
a.tg-danger:visited,
button.tg-danger {
	color: var(--tg-danger);
}

/* 입력 */
.tg-input {
	height: 39px;
	line-height: 41px;
	border: none;
	font-size: 13px;
	color: var(--tg-text);
}

.tg-input--pw {
	line-height: 39px;
}

.tg-input--comment {
	padding: 0 0 0 33px;
	height: 28px;
	line-height: 28px;
	border: 1px solid #087bc4;
	font-size: 13px;
	color: var(--tg-ink);
	background: url('/tigerCom/images/bg_input_2.webp') no-repeat 0 0;
}

.tg-input--comment::placeholder {
	color: var(--tg-sand);
}

.tg-input--comment:focus,
.tg-input--comment:not(:placeholder-shown) {
	background: url('/tigerCom/images/bg_input_1.webp') no-repeat 0 0;
}

.tg-input--title {
	padding: 0 10px 0 60px;
	height: 49px;
	line-height: 49px;
	font-size: 18px;
	color: var(--tg-black);
	background: url('/tigerCom/images/title_bg.webp') no-repeat 0 0;
}

.tg-input--tag {
	padding: 0 10px 0 100px;
	height: 29px;
	line-height: 29px;
	font-size: 13px;
	color: #333;
	background: url('/tigerCom/images/tag_bg.webp') no-repeat 0 100%;
}

.tg-input--tag:focus,
.tg-input--tag:not(:placeholder-shown) {
	color: var(--tg-blue);
}

.tg-input--connect {
	padding: 0 10px;
	width: 582px;
	height: 29px;
	line-height: 29px;
	font-size: 13px;
	color: #333;
	border: 1px solid var(--tg-line);
}

/* 파일 첨부 버튼: 실제 input[type=file] 을 버튼 모양 위에 투명하게 겹친다. */
.tg-upload,
.tg-upload-sm {
	position: relative;
	overflow: hidden;
}

.tg-upload {
	width: 42px;
	height: 43px;
}

.tg-upload-sm {
	width: 48px;
	height: 32px;
}

.tg-upload__btn,
.tg-upload-sm__btn {
	position: absolute;
	top: 0;
	left: 0;
	background: no-repeat 0 0;
}

.tg-upload__btn {
	width: 42px;
	height: 43px;
	background-image: url('/tigerCom/images/btn_upload_1.webp');
}

.tg-upload-sm__btn {
	width: 48px;
	height: 32px;
	background-image: url('/tigerCom/images/btn_img_add_2.webp');
}

.tg-upload__input,
.tg-upload-sm__input {
	position: absolute;
	top: 0;
	right: 0;
	opacity: 0;
	cursor: pointer;
}

.tg-upload__input {
	width: 42px;
	height: 43px;
}

.tg-upload-sm__input {
	width: 48px;
	height: 32px;
}

.tg-upload:focus-within,
.tg-upload-sm:focus-within {
	outline: 2px solid var(--tg-orange);
	outline-offset: 2px;
}

/* 본문 서식: 새 에디터(Tiptap)가 만든 것. 위 리셋이 지우는 기울임, 목록 기호, 표 선을 이 클래스에만 되살린다. */
.tg-em {font-style: italic;}
ul.tg-list {padding-left: 1.6em;}
ul.tg-list > li {list-style: disc;}
ol.tg-list {padding-left: 1.8em;}
ol.tg-list > li {list-style: decimal;}
table.tg-table {border-collapse: collapse;}
table.tg-table td,
table.tg-table th {padding: 4px 8px; border: 1px solid #c9d3de; vertical-align: top; text-align: left;}
table.tg-table th {background: #f1f5f9; font-weight: bold;}
