@charset "utf-8";

/* 러닝계산기 PC 스킨 - 체크리스트와 통일된 디자인 */
.ctt_calculator .sound_only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,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_admin { text-align: right; }
#ctt_con { }
#ctt_con img { max-width: 100%; height: auto; }
.ctt_img { text-align: center; }

/* 탭 - 세그먼트 스타일 (체크리스트와 동일) */
.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-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);
}
.calc-content-wrap select {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #e2e8f0;
	border-radius: 5px;
	font-size: 1rem;
	color: #334155;
	background: #fff;
	box-sizing: border-box;
}
.calc-content-wrap select:focus {
	outline: none;
	border-color: #3180ff;
}

/* 버튼 (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 .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;
}

/* 시·분·초 행 - 각 칸 안에 단위 표시 */
.rows {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	gap: 0.5rem;
}
.rows .row-item {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
	border: 1px solid #e2e8f0;
	border-radius: 5px;
	background: #fff;
	padding-left: 0.5rem;
	padding-right: 0.35rem;
	gap: 0.25rem;
	box-sizing: border-box;
}
.rows .row-item input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	padding: 0.5rem 0;
	box-shadow: none;
	text-align: center;
}
.rows .row-item input:focus {
	outline: none;
	border: none;
	box-shadow: none;
}
.rows .row-item:focus-within {
	border-color: #3180ff;
	box-shadow: 0 0 0 2px rgba(49, 128, 255, 0.2);
}
.rows .row-item .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;
}
.small-text { font-size: 0.9rem; font-weight: normal; color: #64748b; }

/* 결과 박스 (pace-result) - 결과값 중간 정렬. 완주시간/페이스 포함 왼쪽 파란 세로선 없음 */
.pace-result {
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	padding: 1.5rem;
	margin-top: 1.5rem;
	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 {
	font-size: 1.5rem;
	font-weight: 700;
	color: #3180ff;
	margin: 0;
	letter-spacing: -0.02em;
}
.pace-result p.small-text { font-size: 0.9rem; font-weight: normal; color: #64748b; margin-top: 0.25rem; }
.pace-result p.placeholder { color: #94a3b8; font-weight: 500; }
.pace-result p.guide { font-weight: normal; font-size: 0.9rem; color: #64748b; margin-top: 0.75rem; margin-bottom: 0; }

/* 심박수 구간 테이블 */
.tb-zone {
	width: 100%;
	border-spacing: 0;
	border-collapse: collapse;
	margin-top: 1.5rem;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.tb-zone thead th {
	padding: 0.6rem 1rem;
	font-size: 0.95rem;
	font-weight: 700;
	background: #3180ff;
	color: #fff;
	text-align: center;
	border-bottom: 1px solid #e2e8f0;
}
.tb-zone td {
	padding: 0.6rem 1rem;
	font-size: 0.95rem;
	border-bottom: 1px solid #e2e8f0;
	text-align: center;
}
.tb-zone tbody tr:last-child td { border-bottom: none; }
.tb-zone .z1 { background: #f8fafc; color: #334155; }
.tb-zone .z2 { background: #e0f0ff; color: #334155; }
.tb-zone .z3 { background: #e0f2f0; color: #334155; }
.tb-zone .z4 { background: #fff0eb; color: #334155; }
.tb-zone .z5 { background: #ffe4e4; color: #334155; }

/* VO2max / VDOT / 트레드밀 테이블 */
.tb-vo2max {
	width: 100%;
	border-spacing: 0;
	border-collapse: collapse;
	margin-top: 1.5rem;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.tb-vo2max thead th {
	padding: 0.6rem 1rem;
	font-size: 0.95rem;
	font-weight: 700;
	background: #3180ff;
	color: #fff;
	text-align: center;
	border-bottom: 1px solid #e2e8f0;
}
.tb-vo2max tbody td {
	padding: 0.6rem 1rem;
	font-size: 0.95rem;
	color: #334155;
	border-bottom: 1px solid #e2e8f0;
	text-align: center;
}
.tb-vo2max tbody tr:last-child td { border-bottom: none; }
.tb-vo2max tbody tr:nth-child(even) { background: #f8fafc; }

/* VDOT 결과 카드 (계산 전에도 노출) */
.vdot-result-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.25rem;
	margin-top: 0.5rem;
}
.vdot-result-card .vdot-value { font-size: 2rem; font-weight: 700; color: #3180ff; margin: 0; letter-spacing: -0.02em; word-break: break-word; }
.vdot-result-card .vdot-value-placeholder { color: #94a3b8; font-weight: 500; }
.vdot-result-card .vdot-paces-table { margin-top: 1rem; }
.vdot-result-card .vdot-predicted-times { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #cbd5e1; }
.vdot-result-card .vdot-predicted-times-title { font-size: 1rem; font-weight: 700; color: #000; margin: 0 0 0.5rem 0; padding: 0; }
.vdot-result-card .vdot-predicted-table tbody tr.vdot-predicted-row-full { background: #eff6ff; }
.vdot-result-card .vdot-predicted-table td.vdot-predicted-placeholder { color: #94a3b8; font-weight: normal; }
.vdot-result-card .vdot-predicted-times-disclaimer { font-size: 0.85rem; font-weight: normal; color: #64748b; margin: 0.75rem 0 0 0; line-height: 1.5; text-align: center; }
.vdot-result-card .vdot-ref-source { font-size: 0.85rem; font-weight: normal; color: #64748b; margin: 0.5rem 0 0 0; text-align: center; }

/* ===== VO2max 전용 (PC) - 성별 탭은 다이어트 BMR과 동일 세그먼트 스타일 ===== */
.vo2max .vo2max-gender-row { padding-bottom: 1.25rem; }
.vo2max .vo2max-gender-label { display: block; margin-bottom: 0.35rem; font-weight: 600; color: #334155; }
.vo2max .vo2max-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);
}
.vo2max .vo2max-gender-opt {
	flex: 1;
	min-width: 0;
}
.vo2max .vo2max-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;
}
.vo2max .vo2max-gender-opt:last-of-type label { border-right: none; }
.vo2max .vo2max-gender-opt label:hover {
	background: #f1f5f9;
	color: #1e293b;
}
.vo2max .vo2max-gender-opt.on label {
	background: #3180ff;
	color: #fff;
	font-weight: 500;
	border-right-color: #3180ff;
}
.vo2max .vo2max-gender-opt.on label:hover { background: #2670e8; color: #fff; }
.vo2max .vo2max-gender-opt input.sound_only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }

.vo2max .vo2max-input-tip {
	font-size: 0.85rem;
	color: #64748b;
	margin: 0.5rem 0 0 0;
	line-height: 1.4;
}
.vo2max .vo2max-form-note { margin-top: 0.75rem; }

/* 결과 카드 내부 */
.vo2max-result-card .vo2max-bpm-warning {
	font-size: 0.85rem;
	color: #b45309;
	background: #fffbeb;
	padding: 0.5rem 0.75rem;
	border-radius: 5px;
	margin: 0 0 0.5rem 0;
	line-height: 1.4;
}
/* 결과 카드 톤: 옅은 배경·모서리·테두리 */
.vo2max-result-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.25rem;
	margin-top: 0.5rem;
}
.vo2max-result-card .vo2max-value {
	font-size: 2rem;
	font-weight: 700;
	color: #3180ff;
	margin: 0;
	letter-spacing: -0.02em;
	word-break: break-word;
}
.vo2max-result-card .vo2max-value .vo2max-unit { font-size: 0.75em; font-weight: 500; color: #64748b; margin-left: 0.2rem; }
.vo2max-result-card .vo2max-value-placeholder { color: #94a3b8; }

/* 반원형 게이지 (가민 스타일) - 5단계 호 + 바늘 + 경계값 표시 */
.vo2max-gauge-semi-wrap {
	position: relative;
	margin: 1.25rem auto 1.25rem;
	max-width: 100%;
	text-align: center;
}
.vo2max-gauge-semi {
	width: 100%;
	max-width: 280px;
	height: auto;
	display: block;
	margin: 0 auto;
}
.vo2max-gauge-semi .vo2max-arc-seg { transition: stroke 0.2s ease; }
.vo2max-gauge-semi .vo2max-arc-seg-top { filter: drop-shadow(0 0 3px rgba(139,92,246,0.5)); }
.vo2max-gauge-semi .vo2max-gauge-needle-group {
	transform-origin: 110px 110px;
	transform: rotate(var(--vo2max-needle-deg, -90deg));
}
.vo2max-gauge-semi-wrap.vo2max-has-value .vo2max-gauge-needle-group.vo2max-needle-animate {
	animation: vo2max-needle-in 0.8s ease-out forwards;
}
@keyframes vo2max-needle-in {
	from { transform: rotate(-180deg); }
	to { transform: rotate(var(--vo2max-needle-deg, 0deg)); }
}
.vo2max-gauge-semi .vo2max-gauge-tick {
	font-family: inherit;
	font-weight: 500;
	font-size: 9px;
}
.vo2max-gauge-grade-line {
	margin: 0.25rem 0 0 0;
	line-height: 1.4;
	font-size: 0.95rem;
}
.vo2max-gauge-grade-line .vo2max-gauge-grade-label {
	font-weight: 700;
	color: #3180ff;
}
.vo2max-gauge-grade-line .vo2max-next-level-inline {
	color: #475569;
	font-weight: 500;
}
.vo2max-gauge-grade-line .vo2max-next-level-inline strong { color: #1e40af; }
.vo2max-gauge-grade-line .vo2max-next-level-inline.vo2max-at-top { color: #7c3aed; font-weight: 600; }

/* 결과 해석 문구 - 검은색, 보조 정보(백분위)는 회색·작게 */
.vo2max-result-card p.vo2max-interpret,
.vo2max-result-card .vo2max-interpret {
	font-size: 1.1rem;
	font-weight: 500;
	color: #000;
	margin: 1rem 0 0 0;
	line-height: 1.6;
	word-break: break-word;
	text-align: center;
}
/* 상위 XX% (동일 연령·성별 기준) — 배지 스타일로 눈에 띄게 (padding으로 여백 확보, margin 상쇄 방지) */
.vo2max-result-card .vo2max-percentile-wrap {
	text-align: center;
	padding-bottom: 1rem;
}
.vo2max-result-card p.vo2max-percentile {
	font-size: 0.95rem;
	font-weight: 600;
	color: #1e293b;
	margin: 0.5rem 0 0 0;
	padding: 0.4rem 0.75rem;
	line-height: 1.5;
	text-align: center;
	display: inline-block;
	background: #cbd5e1;
	border-radius: 4px;
	box-sizing: border-box;
}

/* 참고표: 성별 선택에 따라 하나만 표시 (탭 전환), 위·아래 회색선으로 결과 블록 구분 */
.vo2max-ref-tables-wrap {
	margin-top: 0;
	padding-top: 0.5rem;
	padding-bottom: 1rem;
	border-top: 1px solid #cbd5e1;
	border-bottom: 1px solid #cbd5e1;
	width: 100%;
}
.vo2max-ref-tables-wrap.vo2max-show-M .vo2max-table-female { display: none; }
.vo2max-ref-tables-wrap.vo2max-show-F .vo2max-table-male { display: none; }
.vo2max-ref-table {
	width: 100%;
	min-width: 0;
	table-layout: fixed;
}
/* 해당 등급×연령 한 칸만 강조 (Cooper 5단계 표) */
.vo2max-ref-table tbody td.vo2max-cell-you {
	background: #bae6fd !important;
	font-weight: 700;
	box-shadow: inset 0 0 0 2px #3180ff;
}
.vo2max-table-female tbody td.vo2max-cell-you {
	background: #fbcfe8 !important;
	box-shadow: inset 0 0 0 2px #db2777;
}

/* 추정 VO2max 기준 예상 완주 시간 (VO2max 결과 카드 내) */
.vo2max-result-card .vo2max-predicted-times {
	margin-top: 1.5rem;
}
.vo2max-result-card .vo2max-predicted-times-title {
	font-size: 1rem;
	font-weight: 700;
	color: #000;
	margin: 0 0 0.25rem 0;
	padding: 0;
}
.vo2max-result-card .vo2max-predicted-table { margin-top: 0; }
.vo2max-result-card .vo2max-predicted-table th,
.vo2max-result-card .vo2max-predicted-table td { text-align: center; }
.vo2max-result-card .vo2max-predicted-table tbody tr.vo2max-predicted-row-full {
	background: #eff6ff;
}
.vo2max-result-card .vo2max-predicted-table td.vo2max-predicted-placeholder {
	color: #94a3b8;
	font-weight: normal;
}
.vo2max-result-card .vo2max-predicted-times-disclaimer {
	font-size: 0.85rem;
	font-weight: normal;
	color: #64748b;
	margin: 0.75rem 0 0 0;
	line-height: 1.5;
	text-align: center;
}

/* Next Step·훈련 가이드 - 위 회색선으로 결과 블록 구분 */
.vo2max-result-card .vo2max-next-step {
	margin-top: 1.5rem;
	padding: 1.5rem 1.25rem 1rem 1.25rem;
	border-top: 1px solid #cbd5e1;
	text-align: left;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 5px;
}
.vo2max-result-card .vo2max-next-step-title {
	font-size: 1rem;
	font-weight: 700;
	color: #000;
	margin: 0 0 0.5rem 0;
	padding: 0;
}
.vo2max-result-card .vo2max-guide-list {
	margin: 0;
	padding-left: 0;
	list-style: none;
	line-height: 1.5;
	font-size: 1rem;
	font-weight: 400;
	color: #000;
}
.vo2max-result-card .vo2max-guide-list li {
	display: flex;
	align-items: flex-start;
	margin-bottom: 0.2rem;
}
.vo2max-result-card .vo2max-guide-icon {
	flex-shrink: 0;
	width: 1.4em;
	text-align: center;
	margin-right: 0.35rem;
	line-height: 1.4;
}
.vo2max-result-card .vo2max-guide-list li:last-child { margin-bottom: 0; }
.vo2max-result-card p.vo2max-guide-placeholder { font-size: 1rem; font-weight: 500; color: #000; margin: 0; }

/* 법적 문구·공식 문단 - 입력란 하단 "Uth–Sørensen·Tanaka 공식 기반..."과 동일 (0.9rem, #64748b) */
.vo2max-result-card p.vo2max-legal,
.vo2max-result-card .vo2max-legal {
	margin-top: 1.25rem;
	font-size: 0.9rem;
	font-weight: normal;
	color: #64748b;
	line-height: 1.5;
	text-align: center;
}
.vo2max-result-card .vo2max-formula-bottom {
	font-size: 0.9rem;
	font-weight: normal;
	color: #64748b;
	margin: 0.5rem 0 0 0;
	text-align: center;
}
.vo2max-result-card .vo2max-ref-source {
	font-size: 0.9rem;
	font-weight: normal;
	color: #64748b;
	margin: 0.35rem 0 0 0;
	text-align: center;
}
