@charset "utf-8";

/* 다이어트 계산기 PC 스킨 - 러닝계산기와 통일된 디자인 */
.ctt_diet .sound_only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }

/* 래퍼 */
.calc-wrap {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 0 2rem 0;
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
	border-radius: 5px;
}

/* 내용관리 공통 */
#ctt { }
#ctt_con { }
#ctt_con img { max-width: 100%; height: auto; }

/* 탭 - 세그먼트 스타일 */
.calc-tap-wrap {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	margin-bottom: 1.5rem;
	border: 1px solid #e2e8f0;
	border-radius: 5px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.calc-tap {
	flex: 1;
	min-width: 0;
}
.calc-tap a {
	display: block;
	padding: 0.6rem 0.5rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: #334155;
	background: #fff;
	border: none;
	border-right: 1px solid #e2e8f0;
	text-align: center;
	text-decoration: none;
	transition: background .2s, color .2s;
	cursor: pointer;
}
.calc-tap:last-child a { border-right: none; }
.calc-tap a:hover {
	background: #f1f5f9;
	color: #1e293b;
}
.calc-tap.on a {
	background: #3180ff;
	color: #fff;
	font-weight: 500;
	border-right-color: #3180ff;
}
.calc-tap.on a:hover { background: #2670e8; color: #fff; }
.calc-tap a:focus-visible { outline: 2px solid #3180ff; outline-offset: 2px; }

/* 콘텐츠 영역 */
.calc-content-wrap {
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	padding: 1.5rem;
	border: 1px solid #e2e8f0;
}
.calc-content-wrap ul { list-style: none; padding: 0; margin: 0; }
.calc-content-wrap ul li { padding: 0 0 1.25rem 0; margin: 0; }
.calc-content-wrap ul li:last-of-type { padding-bottom: 0; }
.calc-content-wrap label {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 0.35rem;
}
.calc-content-wrap .full { width: 100%; box-sizing: border-box; }
.calc-content-wrap input[type="text"],
.calc-content-wrap input[type="number"] {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #e2e8f0;
	border-radius: 5px;
	font-size: 1rem;
	color: #334155;
	box-sizing: border-box;
	text-align: center;
}
.calc-content-wrap input:focus {
	outline: none;
	border-color: #3180ff;
	box-shadow: 0 0 0 2px rgba(49, 128, 255, 0.2);
}

/* 버튼 (submit) */
.calc-content-wrap button.submit {
	display: block;
	width: 100%;
	padding: 0.65rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff;
	background: #3180ff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background .2s, color .2s, transform .2s, box-shadow .2s;
	box-shadow: 0 4px 14px rgba(49, 128, 255, 0.35);
}
.calc-content-wrap button.submit:hover {
	background: #2670e8;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(49, 128, 255, 0.4);
}
.calc-content-wrap button.submit:active { transform: translateY(0); }
.calc-content-wrap button.submit:focus-visible { outline: 2px solid #1e293b; outline-offset: 2px; }

/* 단위를 입력칸 안에 표시 */
.calc-content-wrap .input-with-unit {
	display: flex;
	align-items: center;
	border: 1px solid #e2e8f0;
	border-radius: 5px;
	background: #fff;
	padding-left: 0.75rem;
	padding-right: 0.5rem;
	gap: 0.25rem;
	box-sizing: border-box;
}
.calc-content-wrap .input-with-unit input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	padding: 0.5rem 0;
	box-shadow: none;
	text-align: center;
}
.calc-content-wrap .input-with-unit input:focus {
	outline: none;
	border: none;
	box-shadow: none;
}
.calc-content-wrap .input-with-unit:focus-within {
	border-color: #3180ff;
	box-shadow: 0 0 0 2px rgba(49, 128, 255, 0.2);
}
.calc-content-wrap .input-with-unit .unit {
	flex-shrink: 0;
	font-size: 0.95rem;
	color: #64748b;
	font-weight: 500;
}

/* 가이드 문구 */
.calc-content-wrap .guide {
	font-size: 0.9rem;
	color: #64748b;
	margin-top: 1rem;
	margin-bottom: 0;
	text-align: center;
}

/* 결과 박스 공통 */
.pace-result {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	padding: 1.5rem;
	margin-top: 1.5rem;
	border-left: 2px solid #3180ff;
	text-align: center;
}
.pace-result h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.5rem 0;
	padding: 0;
	color: #334155;
}
.pace-result p.result-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: #3180ff;
	margin: 0;
	letter-spacing: -0.02em;
}
.pace-result p.result-category {
	font-size: 1.1rem;
	font-weight: 600;
	color: #334155;
	margin: 0.25rem 0 0 0;
}
.pace-result p.guide { font-weight: normal; font-size: 0.9rem; color: #64748b; margin-top: 0.75rem; margin-bottom: 0; }

/* ===== BMI 결과 (2020 대한비만학회 6단계) ===== */
.bmi-result {
	text-align: center;
	padding: 1.75rem 1.5rem;
}
.bmi-result .bmi-result-value {
	margin: 0.5rem 0 0.75rem 0;
}
.bmi-result .bmi-num {
	display: inline-block;
	font-size: 2.5rem;
	font-weight: 800;
	color: #1e40af;
	letter-spacing: -0.03em;
	line-height: 1.2;
}
.bmi-result .bmi-unit {
	font-size: 1.1rem;
	font-weight: 600;
	color: #64748b;
	margin-left: 0.25rem;
	vertical-align: 0.15em;
}
.bmi-result-badge {
	display: inline-block;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.bmi-result-badge.bmi-cat-1 { background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%); color: #0c4a6e; }
.bmi-result-badge.bmi-cat-2 { background: linear-gradient(135deg, #86efac 0%, #22c55e 100%); color: #14532d; }
.bmi-result-badge.bmi-cat-3 { background: linear-gradient(135deg, #fde047 0%, #eab308 100%); color: #422006; }
.bmi-result-badge.bmi-cat-4 { background: linear-gradient(135deg, #fdba74 0%, #f97316 100%); color: #431407; }
.bmi-result-badge.bmi-cat-5 { background: linear-gradient(135deg, #f87171 0%, #dc2626 100%); color: #fff; }
.bmi-result-badge.bmi-cat-6 { background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%); color: #fff; }

/* BMI 스케일 막대 (6구간) */
.bmi-scale {
	display: flex;
	width: 100%;
	margin-top: 1.25rem;
	border-radius: 6px;
	overflow: hidden;
	height: 28px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}
.bmi-scale-seg {
	flex: 1;
	min-width: 0;
	transition: flex .2s, box-shadow .2s;
}
.bmi-scale-seg.current {
	flex: 1.6;
	min-width: 0;
	z-index: 1;
	box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.2);
}
.bmi-scale-seg.bmi-cat-1 { background: #7dd3fc; }
.bmi-scale-seg.bmi-cat-2 { background: #86efac; }
.bmi-scale-seg.bmi-cat-3 { background: #fde047; }
.bmi-scale-seg.bmi-cat-4 { background: #fdba74; }
.bmi-scale-seg.bmi-cat-5 { background: #f87171; }
.bmi-scale-seg.bmi-cat-6 { background: #b91c1c; }
.bmi-scale-seg.current.bmi-cat-1 { box-shadow: inset 0 0 0 3px #0ea5e9, 0 2px 6px rgba(0, 0, 0, 0.2); }
.bmi-scale-seg.current.bmi-cat-2 { box-shadow: inset 0 0 0 3px #16a34a, 0 2px 6px rgba(0, 0, 0, 0.2); }
.bmi-scale-seg.current.bmi-cat-3 { box-shadow: inset 0 0 0 3px #ca8a04, 0 2px 6px rgba(0, 0, 0, 0.2); }
.bmi-scale-seg.current.bmi-cat-4 { box-shadow: inset 0 0 0 3px #ea580c, 0 2px 6px rgba(0, 0, 0, 0.2); }
.bmi-scale-seg.current.bmi-cat-5 { box-shadow: inset 0 0 0 3px #dc2626, 0 2px 6px rgba(0, 0, 0, 0.2); }
.bmi-scale-seg.current.bmi-cat-6 { box-shadow: inset 0 0 0 3px #991b1b, 0 2px 6px rgba(0, 0, 0, 0.2); }

/* BMI 구간 참고 목록 */
.bmi-ref-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem 1rem;
	max-width: 480px;
	margin: 1.25rem auto 0;
	padding: 0;
	list-style: none;
	text-align: center;
}
.bmi-ref-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	padding: 0.5rem 0.5rem;
	border-radius: 6px;
	font-size: 0.85rem;
	text-align: center;
}
.bmi-ref-item dt { margin: 0; font-weight: 700; color: #334155; }
.bmi-ref-item dd { margin: 0; color: #64748b; font-size: 0.8rem; }
.bmi-ref-item.bmi-cat-1 { background: #f0f9ff; }
.bmi-ref-item.bmi-cat-2 { background: #f0fdf4; }
.bmi-ref-item.bmi-cat-3 { background: #fefce8; }
.bmi-ref-item.bmi-cat-4 { background: #fff7ed; }
.bmi-ref-item.bmi-cat-5 { background: #fef2f2; }
.bmi-ref-item.bmi-cat-6 { background: #fef2f2; }
.bmi-ref-item.current {
	border: 2px solid #1e3a8a;
	box-shadow: 0 0 0 1px #1e40af;
	font-weight: 600;
}
.bmi-ref-item.current dt { color: #1e40af; }
.bmi-ref-item.current dd { color: #1e3a8a; }

/* 계산 전 표시 */
.bmi-result-value .bmi-num.bmi-before,
.bmi-result-badge.bmi-before {
	color: #3180ff;
	font-weight: 600;
}
.bmi-result-badge.bmi-before {
	background: #eff6ff;
	color: #3180ff;
	box-shadow: none;
}

.bmi-ref-footer {
	font-size: 0.8rem;
	color: #94a3b8;
	margin: 1rem 0 0 0;
	text-align: center;
}

/* ===== 정상체중 결과 (스케일 바 + 정상 범위) ===== */
.weight-result {
	text-align: center;
	padding: 1.75rem 1.5rem;
}
.weight-result .weight-result-value {
	margin: 0.5rem 0 0.75rem 0;
}
.weight-result .weight-num {
	display: inline-block;
	font-size: 2.5rem;
	font-weight: 800;
	color: #1e40af;
	letter-spacing: -0.03em;
	line-height: 1.2;
}
.weight-result .weight-unit {
	font-size: 1.1rem;
	font-weight: 600;
	color: #64748b;
	margin-left: 0.25rem;
	vertical-align: 0.15em;
}
.weight-result .weight-range-text {
	font-size: 0.95rem;
	color: #334155;
	margin: 0.5rem 0 0.25rem 0;
}
.weight-scale {
	position: relative;
	width: 100%;
	margin-top: 1rem;
}
.weight-scale-bar {
	display: flex;
	width: 100%;
	height: 28px;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}
.weight-scale-seg {
	flex-shrink: 0;
	height: 100%;
}
.weight-scale-seg.under { background: #7dd3fc; }
.weight-scale-seg.normal { background: #86efac; }
.weight-scale-seg.over { background: #fdba74; }
.weight-scale-marker {
	position: absolute;
	top: 0;
	height: 28px;
	width: 4px;
	margin-left: -2px;
	background: #1e3a8a;
	border-radius: 2px;
	box-shadow: 0 0 0 1px #fff;
	pointer-events: none;
	z-index: 2;
}
.weight-scale-legend {
	font-size: 0.75rem;
	color: #64748b;
	margin: 0.4rem 0 0 0;
	text-align: center;
}
.weight-ref-footer {
	font-size: 0.8rem;
	color: #94a3b8;
	margin: 1rem 0 0 0;
	text-align: center;
}
.weight-result .weight-num.weight-before {
	color: #3180ff;
	font-weight: 600;
}

/* ===== 기초대사량(BMR) 입력·결과 ===== */
.calc-content-wrap ul li.bmr-gender-row { padding-bottom: 1.25rem; }
.bmr-label { display: block; margin-bottom: 0.35rem; }
/* 성별 세그먼트 - 상단 탭(calc-tap-wrap)과 동일 구조·스타일 */
.bmr-gender-seg {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	border: 1px solid #e2e8f0;
	border-radius: 5px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.bmr-gender-opt {
	flex: 1;
	min-width: 0;
}
.bmr-gender-opt label {
	display: block;
	margin: 0;
	padding: 0.6rem 0.5rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: #334155;
	background: #fff;
	border: none;
	border-right: 1px solid #e2e8f0;
	text-align: center;
	text-decoration: none;
	transition: background .2s, color .2s;
	cursor: pointer;
}
.bmr-gender-opt:last-of-type label { border-right: none; }
.bmr-gender-opt label:hover {
	background: #f1f5f9;
	color: #1e293b;
}
.bmr-gender-opt.on label {
	background: #3180ff;
	color: #fff;
	font-weight: 500;
	border-right-color: #3180ff;
}
.bmr-gender-opt.on label:hover { background: #2670e8; color: #fff; }
.bmr-gender-opt label:focus-within { outline: none; }
.bmr-gender-opt input.sound_only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }

.bmr-input-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	padding-bottom: 1.25rem;
}
.bmr-input-col {
	min-width: 0;
}
.bmr-input-col label {
	display: block;
	margin-bottom: 0.35rem;
}
@media (max-width: 640px) {
	.bmr-input-row { grid-template-columns: 1fr; }
}

.bmr-result {
	text-align: center;
	padding: 1.75rem 1.5rem;
}
.bmr-result .bmr-result-value { margin: 0.5rem 0 0.75rem 0; }
.bmr-result .bmr-num {
	display: inline-block;
	font-size: 2.5rem;
	font-weight: 800;
	color: #1e40af;
	letter-spacing: -0.03em;
	line-height: 1.2;
}
.bmr-result .bmr-unit {
	font-size: 1.1rem;
	font-weight: 600;
	color: #64748b;
	margin-left: 0.25rem;
	vertical-align: 0.15em;
}
.bmr-result .bmr-ref-text {
	font-size: 0.85rem;
	color: #64748b;
	margin: 0.5rem 0 1rem 0;
}
.bmr-scale {
	position: relative;
	width: 100%;
	margin-top: 0.5rem;
}
.bmr-scale-bar {
	display: flex;
	width: 100%;
	height: 28px;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}
.bmr-scale-seg { flex-shrink: 0; height: 100%; }
.bmr-scale-seg.low { background: #7dd3fc; }
.bmr-scale-seg.mid { background: #bae6fd; }
.bmr-scale-seg.normal { background: #86efac; }
.bmr-scale-seg.high { background: #fdba74; }
.bmr-scale-marker {
	position: absolute;
	top: 0;
	height: 28px;
	width: 4px;
	margin-left: -2px;
	background: #1e3a8a;
	border-radius: 2px;
	box-shadow: 0 0 0 1px #fff;
	pointer-events: none;
	z-index: 2;
}
.bmr-scale-legend {
	font-size: 0.75rem;
	color: #64748b;
	margin: 0.4rem 0 0 0;
	text-align: center;
}
.bmr-ref-footer {
	font-size: 0.8rem;
	color: #94a3b8;
	margin: 1rem 0 0 0;
	text-align: center;
}
.bmr-result .bmr-num.bmr-before {
	color: #3180ff;
	font-weight: 600;
}
