@charset "utf-8";

/* 러닝계산기 모바일 스킨 - PC/체크리스트와 통일, 터치 최적화 */
.ctt_calculator .sound_only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }

/* 래퍼 - 분류 탭 위 여백 없음(체크리스트처럼) */
.calc-wrap {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 0.75rem 1.5rem;
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
	border-radius: 5px;
	box-sizing: border-box;
}

/* 내용관리 공통 */
#ctt { }
.ctt_admin { text-align: right; }
#ctt_con { padding: 0; box-sizing: border-box; }
#ctt_con img { max-width: 100%; height: auto; }
.ctt_img { text-align: center; }

/* 탭 - 한 줄 3개씩 2줄 (체크리스트 거리 탭과 동일) */
.calc-tap-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-bottom: 1.25rem;
	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: 0 0 33.333%;
	min-width: 0;
	box-sizing: border-box;
}
.calc-tap a {
	display: block;
	padding: 0.65rem 0.25rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #334155;
	background: #fff;
	border: none;
	border-right: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	text-align: center;
	text-decoration: none;
	transition: background .2s, color .2s;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.calc-tap:nth-child(3n) a { border-right: none; }
.calc-tap:nth-child(-n+3) a { border-bottom: 1px solid #e2e8f0; }
.calc-tap:nth-child(n+4) a { border-bottom: none; }
.calc-tap:last-child a { border-right: none; }
.calc-tap a:active {
	background: #f1f5f9;
	color: #1e293b;
}
.calc-tap.on a {
	background: #3180ff;
	color: #fff;
	font-weight: 600;
	border-right-color: #3180ff;
}
.calc-tap.on a:active { 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.25rem;
	box-sizing: border-box;
}
.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;
	box-shadow: 0 4px 14px rgba(49, 128, 255, 0.35);
	-webkit-tap-highlight-color: transparent;
}
.calc-content-wrap button.submit:active {
	background: #2670e8;
}

/* 시안: 단위를 입력칸 안(같은 박스)에 표시 - 모바일에서 단위가 칸 오른쪽에 붙도록 */
.calc-content-wrap .input-with-unit {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	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;
	min-width: 0;
}
.calc-content-wrap .input-with-unit input {
	flex: 1 1 auto;
	min-width: 0;
	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: 0 0 auto;
	white-space: nowrap;
	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;
	flex-direction: row;
	flex-wrap: nowrap;
	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 1 auto;
	min-width: 0;
	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: 0 0 auto;
	white-space: nowrap;
	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.25rem;
	margin-top: 1.25rem;
	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.4rem;
	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.25rem;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.tb-zone thead th {
	padding: 0.55rem 0.5rem;
	font-size: 0.9rem;
	font-weight: 700;
	background: #3180ff;
	color: #fff;
	text-align: center;
	border-bottom: 1px solid #e2e8f0;
}
.tb-zone td {
	padding: 0.55rem 0.5rem;
	font-size: 0.9rem;
	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.25rem;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.tb-vo2max thead th {
	padding: 0.55rem 0.5rem;
	font-size: 0.9rem;
	font-weight: 700;
	background: #3180ff;
	color: #fff;
	text-align: center;
	border-bottom: 1px solid #e2e8f0;
}
.tb-vo2max tbody td {
	padding: 0.55rem 0.5rem;
	font-size: 0.9rem;
	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; }

/* ===== VO2max 전용 (모바일) - 터치·작은 화면 최적화 ===== */
.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.7rem 0.5rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: #334155;
	background: #fff;
	border: none;
	border-right: 1px solid #e2e8f0;
	text-align: center;
	transition: background .2s, color .2s;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.vo2max .vo2max-gender-opt:last-of-type label { border-right: none; }
.vo2max .vo2max-gender-opt.on label {
	background: #3180ff;
	color: #fff;
	font-weight: 500;
	border-right-color: #3180ff;
}
.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: 1.75rem;
	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; }

.vo2max-gauge-semi-wrap {
	position: relative;
	margin: 1rem auto 1rem;
	max-width: 100%;
	text-align: center;
}
.vo2max-gauge-semi {
	width: 100%;
	max-width: 260px;
	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: 8px;
}
.vo2max-gauge-grade-line {
	margin: 0.25rem 0 0 0;
	line-height: 1.35;
	font-size: 0.8rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.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; font-size: 0.75em; }
.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: 1rem;
	font-weight: 500;
	color: #000;
	margin: 1rem 0 0 0;
	line-height: 1.6;
	word-break: break-word;
	text-align: center;
}
.vo2max-result-card .vo2max-percentile-wrap { text-align: center; padding-bottom: 1rem; }
.vo2max-result-card p.vo2max-percentile {
	font-size: 0.9rem;
	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;
}

/* 결과 카드 패딩에서 빠져 나와 표 영역 넓게 사용. Cooper·예상 완주: margin -1.25rem, width calc(100%+2.5rem). 훈련 가이드: margin -1.05rem, width calc(100%+2.1rem), 좌우 0.2rem 여백 */
/* Cooper 참고표 - overflow-x: scroll 때문에 스크롤바가 생기면 우측 공간이 줄어들어 보일 수 있음 */
.vo2max-ref-tables-wrap {
	margin-top: 0;
	margin-left: -1.25rem;
	margin-right: -1.25rem;
	width: calc(100% + 2.5rem);
	padding: 0.5rem 0.2rem 1rem 0.2rem;
	border-top: 1px solid #cbd5e1;
	border-bottom: 1px solid #cbd5e1;
	box-sizing: border-box;
	overflow-x: scroll;
	-webkit-overflow-scrolling: touch;
}
.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: 360px;
	table-layout: fixed;
	font-size: 0.75rem;
}
.vo2max-ref-table thead th {
	font-size: 0.7rem;
	line-height: 1.25;
	padding: 0.35rem 0.2rem;
	white-space: normal;
	word-break: keep-all;
}
.vo2max-ref-table tbody td { padding: 0.35rem 0.2rem; }
.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·VDOT 공통 */
.vo2max-result-card .vo2max-predicted-times,
.vdot-result-card .vo2max-predicted-times {
	margin-top: 1.25rem;
	margin-left: -1.25rem;
	margin-right: -1.25rem;
	width: calc(100% + 2.5rem);
	padding: 0 0.2rem;
	box-sizing: border-box;
	text-align: left;
}
.vo2max-result-card .vo2max-predicted-times-title,
.vdot-result-card .vo2max-predicted-times-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #000;
	margin: 0 0 0.5rem 0;
	padding: 0 0.2rem;
	text-align: center;
}
.vo2max-result-card .vo2max-predicted-table,
.vdot-result-card .vo2max-predicted-table { margin-top: 0; font-size: 0.9rem; }
.vo2max-result-card .vo2max-predicted-table th,
.vo2max-result-card .vo2max-predicted-table td,
.vdot-result-card .vo2max-predicted-table th,
.vdot-result-card .vo2max-predicted-table td { text-align: center; }
.vo2max-result-card .vo2max-predicted-table tbody tr.vo2max-predicted-row-full,
.vdot-result-card .vo2max-predicted-table tbody tr.vo2max-predicted-row-full { background: #eff6ff; }
.vo2max-result-card .vo2max-predicted-table td.vo2max-predicted-placeholder,
.vdot-result-card .vo2max-predicted-table td.vo2max-predicted-placeholder { color: #94a3b8; font-weight: normal; }
.vo2max-result-card .vo2max-predicted-times-disclaimer,
.vdot-result-card .vo2max-predicted-times-disclaimer {
	font-size: 0.8rem;
	color: #64748b;
	margin: 0.75rem 0 0 0;
	line-height: 1.5;
	text-align: center;
}

/* 훈련 가이드: 표와 같은 좌우 여백(0.2rem). 좌우 테두리·모서리 라운드 적용 */
.vo2max-result-card .vo2max-next-step {
	margin-top: 1.25rem;
	margin-left: -1.05rem;
	margin-right: -1.05rem;
	width: calc(100% + 2.1rem);
	padding: 0.9rem 0.2rem 1rem 0.2rem;
	box-sizing: border-box;
	text-align: left;
	background: #eef2f7;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
}
.vo2max-result-card .vo2max-next-step-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #000;
	margin: 0 0 0.5rem 0;
	padding: 0 0.2rem;
}
.vo2max-result-card .vo2max-guide-list {
	margin: 0;
	padding-left: 0;
	list-style: none;
	line-height: 1.5;
	font-size: 0.95rem;
	font-weight: 400;
	color: #000;
}
.vo2max-result-card .vo2max-guide-list li {
	display: flex;
	align-items: flex-start;
	margin-bottom: 0.25rem;
}
.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: 0.95rem; font-weight: 500; color: #000; margin: 0; padding-left: 0.2rem; }

.vo2max-result-card p.vo2max-legal,
.vo2max-result-card .vo2max-legal {
	margin-top: 1rem;
	font-size: 0.85rem;
	font-weight: normal;
	color: #64748b;
	line-height: 1.5;
	text-align: center;
}
.vo2max-result-card .vo2max-formula-bottom {
	font-size: 0.85rem;
	font-weight: normal;
	color: #64748b;
	margin: 0.5rem 0 0 0;
	text-align: center;
	line-height: 1.5;
}
.vo2max-result-card .vo2max-ref-source {
	font-size: 0.85rem;
	font-weight: normal;
	color: #64748b;
	margin: 0.35rem 0 0 0;
	text-align: center;
	line-height: 1.5;
}

/* VDOT 결과 카드 (예상 완주 시간 표는 위 .vo2max-predicted-* 공통 스타일 사용) */
.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: 1.75rem;
	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 p.guide { text-align: center; line-height: 1.5; }
/* VDOT 훈련 페이스 표: 예상 완주 시간 표와 동일 너비(breakout, 좌우 0.2rem) */
.vdot-result-card .vdot-paces-wrap {
	margin-top: 1rem;
	margin-left: -1.25rem;
	margin-right: -1.25rem;
	width: calc(100% + 2.5rem);
	padding: 0 0.2rem;
	box-sizing: border-box;
}
.vdot-result-card .vdot-paces-table { margin-top: 0; font-size: 0.9rem; }
.vdot-result-card .vdot-paces-table th,
.vdot-result-card .vdot-paces-table td { text-align: center; }
.vdot-result-card .vdot-ref-source {
	font-size: 0.85rem;
	font-weight: normal;
	color: #64748b;
	margin: 0.35rem 0 0 0;
	text-align: center;
	line-height: 1.5;
}
