/*
Theme Name: 케이티중기 (Kadence 하위 테마)
Template: kadence
Description: 케이티중기 홈페이지 전용 하위 테마. 색상·서체·머리글·바닥글.
Version: 1.0.0
Text Domain: kthe-child
*/

/* ---------- 기본 값 ---------- */
:root {
	--kthe-blue: #1739B0;
	--kthe-blue-dark: #0F2A80;
	--kthe-navy: #0B1A44;
	--kthe-navy-line: #2B3B66;
	--kthe-green: #0A7D45;
	--kthe-green-light: #7FD6A6;
	--kthe-ink: #111827;
	--kthe-text: #374151;
	--kthe-muted: #4B5563;
	--kthe-line: #E2E6ED;
	--kthe-line-strong: #C9CED8;
	--kthe-gray-bg: #F4F5F7;
	--kthe-photo: #D9DEE8;
	--kthe-kakao: #FEE500;
	--kthe-radius: 3px;
	--kthe-font: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
	--kthe-num: 'Barlow Condensed', 'Noto Sans KR', sans-serif;
	--kthe-max: 1240px;
}

body {
	font-family: var(--kthe-font);
	color: var(--kthe-ink);
	background: #fff;
	word-break: keep-all;
}

a { color: var(--kthe-blue); }
a:hover { color: var(--kthe-blue-dark); }

.kthe-wrap {
	max-width: var(--kthe-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
	width: 100%;
}

.kthe-icon { flex: none; }

/* ---------- 상단 정보줄 ---------- */
.kthe-topbar { background: var(--kthe-navy); color: #C9D3EA; font-size: 13px; }
.kthe-topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 9px; padding-bottom: 9px; }
.kthe-topbar i { font-style: normal; opacity: .5; margin: 0 6px; }

/* ---------- 머리글 ---------- */
/* Kadence의 #masthead { position: relative }보다 우선하도록 id를 함께 쓴다 */
#masthead.kthe-header { background: #fff; border-bottom: 1px solid var(--kthe-line); position: sticky; top: 0; z-index: 50; }
.admin-bar #masthead.kthe-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #masthead.kthe-header { top: 46px; } }
/* 휴대폰에서도 관리 막대를 위에 고정해 헤더를 가리지 않게 한다 */
@media (max-width: 600px) { #wpadminbar { position: fixed; } }
.kthe-header__inner { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.kthe-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--kthe-ink); flex: none; }
.kthe-brand:hover { color: var(--kthe-ink); }
.kthe-brand__logo { height: 50px; width: auto; }
.kthe-brand__name { font-size: 25px; font-weight: 900; letter-spacing: -1px; }

.kthe-nav { display: flex; align-items: center; gap: 28px; flex: 1 1 auto; justify-content: flex-end; }
.kthe-nav__list { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.kthe-nav__list > li { position: relative; }
.kthe-nav__list a { color: var(--kthe-ink); text-decoration: none; font-weight: 700; font-size: 16px; display: block; padding: 30px 0; }
.kthe-nav__list a:hover, .kthe-nav__list .current-menu-item > a, .kthe-nav__list .current-menu-ancestor > a { color: var(--kthe-blue); }
.kthe-nav__list .sub-menu { display: none; position: absolute; left: -20px; top: 100%; min-width: 190px; background: #fff; border: 1px solid var(--kthe-line); border-top: 3px solid var(--kthe-blue); list-style: none; margin: 0; padding: 8px 0; box-shadow: 0 8px 20px rgba(17, 24, 39, .08); }
.kthe-nav__list li:hover > .sub-menu, .kthe-nav__list li:focus-within > .sub-menu { display: block; }
.kthe-nav__list .sub-menu a { padding: 10px 20px; font-weight: 500; font-size: 15px; }
.kthe-nav__quote { background: var(--kthe-green); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: var(--kthe-radius); }
.kthe-nav__quote:hover { background: #086638; }

.kthe-header__call { display: flex; flex-direction: column; text-decoration: none; color: var(--kthe-ink); border-left: 1px solid var(--kthe-line); padding-left: 24px; flex: none; }
.kthe-header__call-label { font-size: 12px; color: var(--kthe-muted); }
.kthe-header__call-number { font-family: var(--kthe-num); font-size: 30px; font-weight: 700; color: var(--kthe-blue); line-height: 1; }

.kthe-menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--kthe-ink); padding: 0; margin-left: auto; align-items: center; justify-content: center; cursor: pointer; }
.kthe-menu-toggle:hover, .kthe-menu-toggle:focus { background: transparent; color: var(--kthe-blue); }

@media (max-width: 1100px) {
	.kthe-header__call { display: none; }
}
@media (max-width: 960px) {
	.kthe-topbar { display: none; }
	.kthe-header__inner { min-height: 64px; gap: 12px; padding-right: 8px; }
	.kthe-brand__logo { height: 38px; }
	.kthe-brand__name { font-size: 20px; }
	.kthe-menu-toggle { display: flex; }
	/* 열린 메뉴는 화면에 고정: 헤더 아래(--kthe-nav-top, site.js에서 계산)부터 하단 상담 버튼 띠(56px) 위까지, 안에서 스크롤 */
	.kthe-nav { display: none; position: fixed; left: 0; right: 0; top: var(--kthe-nav-top, 64px); bottom: 56px; z-index: 55; background: #fff; border-top: 1px solid var(--kthe-line); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 8px 16px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
	html.kthe-menu-open { overflow: hidden; }
	.kthe-nav > * { flex-shrink: 0; }
	.kthe-nav.is-open { display: flex; }
	.kthe-nav__list { flex-direction: column; gap: 0; }
	.kthe-nav__list > li { border-bottom: 1px solid var(--kthe-line); }
	.kthe-nav__list a { padding: 14px 0; font-size: 17px; }
	.kthe-nav__list .sub-menu { display: flex; flex-wrap: wrap; position: static; border: 0; box-shadow: none; padding: 0 0 12px; gap: 4px 16px; }
	.kthe-nav__list .sub-menu a { padding: 4px 0; font-size: 14px; color: var(--kthe-muted); }
	.kthe-nav__quote { margin-top: 16px; text-align: center; padding: 15px; }
}

/* ---------- 바닥글 ---------- */
.kthe-footer { border-top: 1px solid var(--kthe-line); background: #fff; }
.kthe-footer__inner { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 44px; padding-bottom: 52px; }
.kthe-brand--footer .kthe-brand__logo { height: 44px; }
.kthe-brand--footer .kthe-brand__name { font-size: 21px; }
.kthe-footer__info { flex: 1 1 520px; min-width: 0; font-size: 14px; color: var(--kthe-text); line-height: 1.8; }
.kthe-footer__info p { margin: 0; }
.kthe-footer__info i { font-style: normal; color: var(--kthe-line-strong); margin: 0 6px; }
.kthe-footer__info a { color: inherit; text-decoration: none; }
.kthe-footer__copy { margin-top: 8px !important; font-size: 13px; color: #6B7280; }
.kthe-footer__menu { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0 0 10px; padding: 0; }
.kthe-footer__menu a { font-weight: 700; color: var(--kthe-ink); }

/* ---------- 고정 상담 버튼 ---------- */
.kthe-float { position: fixed; right: 0; bottom: 120px; z-index: 60; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(17, 24, 39, .18); }
.kthe-float__btn { width: 76px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; font-size: 12px; font-weight: 700; }
.kthe-float__btn--call { background: var(--kthe-green); color: #fff; }
.kthe-float__btn--kakao { background: var(--kthe-kakao); color: #191919; }
.kthe-float__btn--quote { background: var(--kthe-blue); color: #fff; }
.kthe-float__btn:hover { filter: brightness(.95); color: inherit; }
.kthe-float__btn--call:hover, .kthe-float__btn--quote:hover { color: #fff; }
@media (max-width: 960px) {
	body { padding-bottom: 56px; }
	.kthe-float { left: 0; right: 0; bottom: 0; flex-direction: row; box-shadow: 0 -2px 10px rgba(17, 24, 39, .12); }
	.kthe-float__btn { flex: 1; width: auto; height: 56px; flex-direction: row; gap: 6px; font-size: 15px; }
}

/* ---------- 서브 페이지 제목 띠 ---------- */
.kthe-page-head { background: var(--kthe-navy); color: #fff; }
.kthe-page-head .kthe-wrap { padding-top: 64px; padding-bottom: 56px; }
.kthe-page-head__crumb { margin: 0 0 10px; color: var(--kthe-green-light); font-weight: 700; font-size: 15px; }
.kthe-page-head__title { margin: 0; color: #fff; font-size: 44px; font-weight: 900; letter-spacing: -1.5px; line-height: 1.2; }
.kthe-page-head__desc { margin: 14px 0 0; color: #C9D3EA; font-size: 17px; line-height: 1.7; max-width: 720px; }
@media (max-width: 720px) {
	.kthe-page-head .kthe-wrap { padding-top: 40px; padding-bottom: 36px; }
	.kthe-page-head__title { font-size: 30px; }
	.kthe-page-head__desc { font-size: 15px; }
}

/* ---------- 섹션 공통 ---------- */
.kthe-section { padding: 96px 0; }
.kthe-section--gray { background: var(--kthe-gray-bg); }
.kthe-section--navy { background: var(--kthe-navy); color: #fff; }
.kthe-section--navy h2, .kthe-section--navy h3 { color: #fff; }
.kthe-section--navy p { color: #C9D3EA; }
.kthe-section--tight { padding: 56px 0; }
/* 제목 띠 바로 아래·상세 페이지는 위 여백을 줄인다 */
.kthe-page-head + .kthe-section, .kthe-section.kthe-detail { padding-top: 48px; }
@media (max-width: 720px) { .kthe-section { padding: 52px 0; } .kthe-page-head + .kthe-section, .kthe-section.kthe-detail { padding-top: 28px; } }

.kthe-page .wp-block-group.kthe-section,
.kthe-page .wp-block-cover { margin-top: 0; margin-bottom: 0; }
.kthe-page > * { margin-top: 0; margin-bottom: 0; }

.kthe-sechead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; border-bottom: 2px solid var(--kthe-ink); padding-bottom: 20px; margin-bottom: 40px !important; }
.kthe-section--navy .kthe-sechead { border-color: #fff; }
.kthe-sechead h2 { margin: 0; font-size: 40px; font-weight: 900; letter-spacing: -1.5px; line-height: 1.25; }
.kthe-sechead p { margin: 0; max-width: 560px; color: var(--kthe-muted); font-size: 16px; line-height: 1.7; }
@media (max-width: 720px) { .kthe-sechead h2 { font-size: 28px; } .kthe-sechead { margin-bottom: 24px !important; } }

.kthe-page h2 { font-weight: 900; letter-spacing: -1px; }
.kthe-page h3 { font-weight: 900; letter-spacing: -.5px; }
.kthe-page p { line-height: 1.8; }

.kthe-num { font-family: var(--kthe-num); font-weight: 700; color: var(--kthe-blue); }

/* 사진 자리 (이미지 교체 전 회색 면) */
.kthe-photo img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--kthe-photo); }
.kthe-photo { margin: 0 !important; background: var(--kthe-photo); }

/* ---------- 버튼 ---------- */
.kthe-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.kthe-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 16px; padding: 15px 22px; border-radius: var(--kthe-radius); border: 1px solid transparent; line-height: 1.2; }
.kthe-btn--green { background: var(--kthe-green); color: #fff; }
.kthe-btn--green:hover { background: #086638; color: #fff; }
.kthe-btn--blue { background: var(--kthe-blue); color: #fff; }
.kthe-btn--blue:hover { background: var(--kthe-blue-dark); color: #fff; }
.kthe-btn--kakao { background: var(--kthe-kakao); color: #191919; }
.kthe-btn--kakao:hover { color: #191919; filter: brightness(.96); }
.kthe-btn--white { background: #fff; color: var(--kthe-navy); }
.kthe-btn--white:hover { color: var(--kthe-blue); }
.kthe-btn--line { background: #fff; color: var(--kthe-ink); border-color: var(--kthe-ink); }
.kthe-btn--line:hover { background: var(--kthe-ink); color: #fff; }
.kthe-btn--lg { font-size: 18px; padding: 19px 30px; }

/* 블록 편집기 버튼에 같은 모양 적용: 버튼 블록 > 고급 > 추가 CSS 클래스 */
.wp-block-button.kthe-b-green .wp-block-button__link { background: var(--kthe-green); color: #fff; border-radius: var(--kthe-radius); font-weight: 700; padding: 17px 28px; }
.wp-block-button.kthe-b-blue .wp-block-button__link { background: var(--kthe-blue); color: #fff; border-radius: var(--kthe-radius); font-weight: 700; padding: 17px 28px; }
.wp-block-button.kthe-b-white .wp-block-button__link { background: #fff; color: var(--kthe-navy); border-radius: var(--kthe-radius); font-weight: 700; padding: 17px 28px; }
.wp-block-button.kthe-b-line .wp-block-button__link { background: transparent; color: var(--kthe-ink); border: 1px solid var(--kthe-ink); border-radius: var(--kthe-radius); font-weight: 700; padding: 15px 40px; }
.wp-block-button.kthe-b-kakao .wp-block-button__link { background: var(--kthe-kakao); color: #191919; border-radius: var(--kthe-radius); font-weight: 700; padding: 15px 22px; }

/* ---------- 메인: 첫 화면 ---------- */
.kthe-hero.wp-block-cover { min-height: 600px; padding: 0; align-items: center; }
.kthe-hero .wp-block-cover__inner-container { width: 100%; }
.kthe-hero__eyebrow { color: var(--kthe-green-light) !important; font-weight: 700; font-size: 17px; margin: 0 0 22px !important; }
.kthe-hero h1 { color: #fff; font-size: 64px; line-height: 1.15; font-weight: 900; letter-spacing: -2.5px; margin: 0 0 24px; max-width: 780px; }
.kthe-hero__lead { color: #D5DCEC !important; font-size: 19px; line-height: 1.7; max-width: 620px; margin: 0 !important; }
.kthe-hero .kthe-actions { margin-top: 36px; }
@media (max-width: 720px) {
	.kthe-hero.wp-block-cover { min-height: 520px; }
	.kthe-hero h1 { font-size: 36px; letter-spacing: -1.5px; }
	.kthe-hero__lead { font-size: 15px; }
	.kthe-hero .kthe-actions { flex-direction: column; }
	.kthe-hero .kthe-btn { width: 100%; }
}

/* 숫자 띠 */
.kthe-stats { background: var(--kthe-blue); color: #fff; }
.kthe-stats .wp-block-columns { gap: 0 !important; margin: 0 auto !important; }
.kthe-stats .wp-block-column { padding: 30px 24px; border-right: 1px solid #3557C7; }
.kthe-stats .wp-block-column:last-child { border-right: 0; }
@media (min-width: 782px) { .kthe-stats .wp-block-column:first-child { padding-left: 0; } }
.kthe-stats p { margin: 0; color: #D5DEF7; font-size: 15px; display: flex; flex-direction: column; gap: 8px; }
.kthe-stats strong { font-family: var(--kthe-num); font-size: 44px; font-weight: 700; color: #fff; line-height: 1; }
@media (max-width: 781px) {
	.kthe-stats .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; }
	.kthe-stats .wp-block-column { padding: 18px 16px; border-bottom: 1px solid #3557C7; }
	.kthe-stats .wp-block-column:nth-child(2n) { border-right: 0; }
	.kthe-stats strong { font-size: 30px; }
	.kthe-stats p { flex-direction: column; gap: 2px; font-size: 13px; }
}

/* 사업분야 타일 */
.kthe-tiles { gap: 24px !important; }
.kthe-tile .kthe-photo { aspect-ratio: 4 / 3; }
/* 서브 페이지 상단 사진: 가로로 긴 띠로 잘라서 보여준다 */
.kthe-photo--wide { aspect-ratio: 16 / 5; max-height: 460px; width: 100%; overflow: hidden; }
.kthe-photo--wide img { height: 100%; }
@media (max-width: 720px) { .kthe-photo--wide { aspect-ratio: 16 / 8; } }
.kthe-history-img { margin: 0 !important; }
.kthe-history-img img { width: 100%; height: auto; display: block; }
.kthe-tile .kthe-num { font-size: 20px; margin: 16px 0 6px; }
.kthe-tile h3 { font-size: 22px; margin: 0 0 8px; }
.kthe-tile h3 a { color: var(--kthe-ink); text-decoration: none; }
.kthe-tile h3 a:hover { color: var(--kthe-blue); }
.kthe-tile p { font-size: 15px; color: var(--kthe-muted); margin: 0; line-height: 1.65; }
@media (max-width: 781px) {
	.kthe-tiles { display: grid !important; grid-template-columns: 1fr 1fr; gap: 28px 14px !important; }
	.kthe-tile .kthe-num { font-size: 16px; margin: 10px 0 2px; }
	.kthe-tile h3 { font-size: 17px; }
	.kthe-tile p { font-size: 13px; }
}

/* 회사소개 표·연혁 */
.kthe-table-plain table, table.kthe-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.kthe-table-plain td, .kthe-table-plain th, table.kthe-table td, table.kthe-table th { border: 0; border-top: 1px solid var(--kthe-line-strong); padding: 14px 12px 14px 0; text-align: left; vertical-align: top; }
.kthe-table-plain tr:last-child td, table.kthe-table tr:last-child td, table.kthe-table tr:last-child th { border-bottom: 1px solid var(--kthe-line-strong); }
.kthe-table-plain td:first-child, table.kthe-table th { color: var(--kthe-muted); font-weight: 500; width: 140px; }
.kthe-table-plain td:last-child { font-weight: 700; }
.kthe-table-plain { margin: 8px 0 24px; }
.kthe-table-plain figcaption { display: none; }

.kthe-panel { background: #fff; padding: 40px; }
@media (max-width: 720px) { .kthe-panel { padding: 24px 20px; } }
.kthe-history { list-style: none; margin: 0; padding: 0; }
.kthe-history li { display: flex; gap: 20px; padding: 14px 0; border-top: 1px solid var(--kthe-line); font-size: 15px; line-height: 1.6; }
.kthe-history li:last-child { border-bottom: 1px solid var(--kthe-line); }
.kthe-history strong { font-family: var(--kthe-num); font-size: 22px; font-weight: 700; color: var(--kthe-blue); width: 56px; flex: none; line-height: 1.2; }

/* 연혁 (회사소개 페이지): 연도별로 묶은 목록 */
.kthe-history--lg { margin-top: 8px; border-top: 2px solid var(--kthe-ink); }
.kthe-history--lg li { gap: 32px; padding: 22px 0; font-size: 17px; line-height: 1.8; }
.kthe-history--lg li:first-child { border-top: 0; }
.kthe-history--lg strong { font-size: 30px; width: 80px; line-height: 1.3; }
@media (max-width: 720px) {
	.kthe-history--lg li { gap: 18px; padding: 16px 0; font-size: 15px; }
	.kthe-history--lg strong { font-size: 24px; width: 60px; }
}

/* 인사말 */
.kthe-greeting { border-left: 0 !important; padding: 0 !important; margin: 0 !important; }
.kthe-greeting p { font-size: 17px; line-height: 1.95; color: var(--kthe-text); }
.kthe-greeting cite, .kthe-sign { display: block; font-style: normal; font-weight: 900; font-size: 18px; color: var(--kthe-ink); margin-top: 24px; }

/* 렌탈 절차 */
.kthe-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.kthe-steps li { counter-increment: step; display: grid; grid-template-columns: 72px 1fr; padding: 22px 0; border-top: 1px solid var(--kthe-navy-line); color: #C9D3EA; font-size: 15px; line-height: 1.6; }
.kthe-steps li:last-child { border-bottom: 1px solid var(--kthe-navy-line); }
.kthe-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--kthe-num); font-size: 34px; font-weight: 700; color: #6F86C9; line-height: 1; grid-row: span 2; }
.kthe-steps li strong { display: block; color: #fff; font-size: 19px; margin-bottom: 6px; }
.kthe-steps li.is-key::before { color: var(--kthe-green-light); }
.kthe-steps--light li { border-color: var(--kthe-line); color: var(--kthe-muted); }
.kthe-steps--light li strong { color: var(--kthe-ink); }
.kthe-steps--light li::before { color: var(--kthe-blue); }
.kthe-steps--light li.is-key::before { color: var(--kthe-green); }
@media (max-width: 720px) { .kthe-steps li { grid-template-columns: 48px 1fr; } .kthe-steps li::before { font-size: 26px; } }

/* 신차 타일 */
.kthe-newtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .kthe-newtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kthe-newtiles { grid-template-columns: 1fr; } }
.kthe-newtile { display: flex; flex-direction: column; text-decoration: none; color: var(--kthe-ink); }
.kthe-newtile__media { aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--kthe-line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.kthe-newtile__media img { width: 100%; height: 100%; object-fit: contain; }
.kthe-newtile__media--photo img { object-fit: cover; }
.kthe-newtile__line { color: var(--kthe-blue); font-weight: 700; font-size: 14px; margin: 16px 0 6px; }
.kthe-newtile__line--green { color: var(--kthe-green); }
.kthe-newtile__title { font-size: 22px; font-weight: 900; letter-spacing: -.5px; }
.kthe-newtile__title span { font-weight: 500; color: var(--kthe-muted); font-size: 18px; }
.kthe-newtile:hover .kthe-newtile__title { color: var(--kthe-blue); }

/* 견적·상담 */
.kthe-bignum { font-family: var(--kthe-num); font-size: 64px; font-weight: 700; line-height: 1; margin: 6px 0 24px !important; }
.kthe-bignum a { color: var(--kthe-blue); text-decoration: none; }
.kthe-formbox { background: #fff; padding: 44px; border-top: 4px solid var(--kthe-blue); }
.kthe-formbox h3 { margin-top: 0; font-size: 22px; }
@media (max-width: 720px) { .kthe-formbox { padding: 24px 18px; } .kthe-bignum { font-size: 48px; } }
.kthe-info { margin: 40px 0 0; display: grid; grid-template-columns: 80px 1fr; gap: 12px 16px; font-size: 15px; }
.kthe-info dt { color: var(--kthe-muted); }
.kthe-info dd { margin: 0; line-height: 1.7; }

/* 지도 */
.kthe-map__frame { display: block; width: 100%; height: 380px; border: 0; background: var(--kthe-photo); }
.kthe-map__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 18px 0; border-bottom: 1px solid var(--kthe-line); font-size: 17px; }
.kthe-map__bar .kthe-actions { margin: 0; }
.kthe-map__bar .kthe-btn { font-size: 15px; padding: 11px 18px; }
@media (max-width: 720px) { .kthe-map__frame { height: 280px; } }

/* 2단 영역 간격 */
.kthe-about-cols, .kthe-rental-cols, .kthe-quote-cols { gap: 64px !important; margin-bottom: 0 !important; }
@media (max-width: 781px) { .kthe-about-cols, .kthe-rental-cols, .kthe-quote-cols { gap: 36px !important; } }
.kthe-rental-cols h2, .kthe-about-cols h2, .kthe-quote-cols h2 { font-size: 40px; line-height: 1.25; margin: 0 0 20px; }
@media (max-width: 720px) { .kthe-rental-cols h2, .kthe-about-cols h2, .kthe-quote-cols h2 { font-size: 28px; } }
.kthe-center { justify-content: center; margin-top: 40px !important; }
.kthe-quote-cols .kthe-bignum + * { margin-top: 0; }

/* 서비스 목록 (정비 페이지) */
.kthe-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--kthe-ink); }
.kthe-services li { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--kthe-line); font-size: 15px; color: var(--kthe-muted); line-height: 1.7; }
.kthe-services li strong { display: block; color: var(--kthe-ink); font-size: 20px; margin-bottom: 6px; }

/* ---------- 매물·신차 목록 ---------- */
.kthe-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--kthe-line); margin-bottom: 24px; }
.kthe-tabs__item { font-size: 17px; font-weight: 500; padding: 16px 22px; color: var(--kthe-muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.kthe-tabs__item:hover { color: var(--kthe-blue); }
.kthe-tabs__item.is-active { color: var(--kthe-blue); border-bottom-color: var(--kthe-blue); font-weight: 900; }
@media (max-width: 720px) {
	.kthe-tabs { flex-wrap: nowrap; overflow-x: auto; }
	.kthe-tabs__item { padding: 14px 14px; font-size: 15px; white-space: nowrap; }
}

.kthe-search { display: flex; flex-wrap: wrap; border: 1px solid var(--kthe-line-strong); margin: 0 0 36px; }
.kthe-search__field { flex: 1 1 170px; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-right: 1px solid var(--kthe-line-strong); font-size: 12px; font-weight: 700; color: var(--kthe-muted); }
.kthe-search__field { position: relative; cursor: pointer; transition: background-color .15s; }
.kthe-search__field:hover, .kthe-search__field:focus-within { background: var(--kthe-gray-bg); }
.kthe-search__field select { -webkit-appearance: none; appearance: none; width: 100%; font-family: inherit; font-size: 16px; font-weight: 500; border: 0; border-radius: 0; padding: 4px 28px 4px 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center; color: var(--kthe-ink); box-shadow: none; cursor: pointer; }
.kthe-search__field select:focus { outline: none; }
.kthe-search__field:focus-within { box-shadow: inset 0 -3px 0 var(--kthe-blue); }
.kthe-search__submit { flex: 0 0 140px; font-family: inherit; font-size: 17px; font-weight: 700; border: 0; border-radius: 0; background: var(--kthe-ink); color: #fff; cursor: pointer; min-height: 64px; }
.kthe-search__submit:hover { background: var(--kthe-blue); }
@media (max-width: 720px) {
	.kthe-search__field { flex: 1 1 45%; border-bottom: 1px solid var(--kthe-line-strong); }
	.kthe-search__submit { flex: 1 1 100%; min-height: 52px; }
}

.kthe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 32px 24px; }
.kthe-card__link, .kthe-pcard__link { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--kthe-ink); }
.kthe-card__link:hover .kthe-card__title, .kthe-pcard__link:hover .kthe-pcard__title { color: var(--kthe-blue); }
.kthe-card__media, .kthe-pcard__media { position: relative; aspect-ratio: 4 / 3; background: var(--kthe-photo); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.kthe-card__media img { width: 100%; height: 100%; object-fit: cover; }
.kthe-pcard__media { background: #fff; border: 1px solid var(--kthe-line); }
.kthe-pcard__media img { width: 100%; height: 100%; object-fit: contain; }
.kthe-card__noimg { color: var(--kthe-muted); font-size: 14px; }
.kthe-tag { position: absolute; top: 0; left: 0; color: #fff; font-size: 13px; font-weight: 700; padding: 6px 10px; }
.kthe-tag--sale { background: var(--kthe-green); }
.kthe-tag--reserved { background: var(--kthe-muted); }
.kthe-tag--sold { background: var(--kthe-ink); }
.kthe-card__badge { position: absolute; top: 0; right: 0; background: #fff; color: #B42318; font-size: 13px; font-weight: 700; padding: 6px 10px; }
.kthe-card--sold .kthe-card__media img { filter: grayscale(1); opacity: .6; }
.kthe-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kthe-card__title { font-size: 19px; letter-spacing: -.5px; }
.kthe-card__no { font-size: 13px; color: var(--kthe-muted); flex: none; }
.kthe-card__specs { margin: 0; display: grid; grid-template-columns: 44px 1fr; gap: 6px 10px; font-size: 14px; border-top: 1px solid var(--kthe-line); padding-top: 12px; }
.kthe-card__specs dt { color: var(--kthe-muted); }
.kthe-card__specs dd { margin: 0; }
.kthe-card__price { font-size: 18px; color: var(--kthe-blue); }
.kthe-pcard__line { font-size: 13px; font-weight: 700; color: var(--kthe-blue); }
.kthe-pcard__title { font-size: 20px; letter-spacing: -.5px; margin-top: -6px; }
.kthe-pcard__cap { font-size: 14px; color: var(--kthe-muted); margin-top: -6px; }

.kthe-empty { padding: 16px 0 24px; color: var(--kthe-text); }
.kthe-pager { margin-top: 48px; display: flex; gap: 6px; justify-content: center; }
.kthe-pager .page-numbers { padding: 8px 14px; border: 1px solid var(--kthe-line-strong); text-decoration: none; color: var(--kthe-ink); }
.kthe-pager .current { background: var(--kthe-ink); color: #fff; border-color: var(--kthe-ink); }
.kthe-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.kthe-detail .kthe-downloads { margin: 20px 0 0; }

/* ---------- 매물·신차 상세 ---------- */
.kthe-back { margin: 0 0 24px; font-size: 15px; }
.kthe-back a { color: var(--kthe-muted); text-decoration: none; }
.kthe-detail__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .kthe-detail__grid { grid-template-columns: 1fr; gap: 28px; } }
.kthe-gallery__main { position: relative; aspect-ratio: 4 / 3; background: var(--kthe-photo); display: flex; align-items: center; justify-content: center; }
.kthe-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.kthe-gallery__main--product { background: #fff; border: 1px solid var(--kthe-line); }
.kthe-gallery__main--product img { object-fit: contain; }
.kthe-gallery__thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.kthe-gallery__thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 0; }
.kthe-gallery__thumbs button.is-active, .kthe-gallery__thumbs button:hover { border-color: var(--kthe-blue); background: none; }
.kthe-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kthe-detail__line { margin: 0 0 8px; color: var(--kthe-blue); font-weight: 700; }
.kthe-detail__title { margin: 0 0 12px; font-size: 34px; font-weight: 900; letter-spacing: -1px; line-height: 1.25; }
.kthe-detail__badge { display: inline-block; margin: 0 0 12px; color: #B42318; font-weight: 700; }
.kthe-detail__price { margin: 0 0 20px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kthe-detail__price strong { font-size: 32px; color: var(--kthe-blue); }
.kthe-detail__price span { color: var(--kthe-muted); font-size: 14px; }
.kthe-detail__summary { font-size: 17px; color: var(--kthe-text); margin: 0 0 16px; }
.kthe-detail__hint { margin: 24px 0 0; font-size: 15px; color: var(--kthe-text); }
.kthe-features { margin: 0; padding: 0 0 0 18px; font-size: 15px; line-height: 1.8; color: var(--kthe-text); }
.kthe-detail .kthe-detail__specs, .kthe-detail .kthe-detail__body { margin-top: 64px; }
@media (max-width: 720px) { .kthe-detail .kthe-actions .kthe-btn { flex: 1 1 100%; } .kthe-detail .kthe-detail__specs, .kthe-detail .kthe-detail__body { margin-top: 44px; } }
.kthe-detail__specs h2, .kthe-detail__body h2 { font-size: 26px; font-weight: 900; border-bottom: 2px solid var(--kthe-ink); padding-bottom: 14px; margin: 0 0 8px; }
.kthe-table-scroll { overflow-x: auto; }
.kthe-table--specs th { width: 220px; }

/* ---------- 문의 폼 (Fluent Forms) ---------- */
.kthe-formbox .ff-btn-submit { background: var(--kthe-blue) !important; border-radius: var(--kthe-radius) !important; font-weight: 700 !important; font-size: 17px !important; padding: 16px 28px !important; width: 100%; }
.kthe-formbox .ff-el-form-control { border-radius: 2px !important; border-color: var(--kthe-line-strong) !important; font-size: 16px !important; padding: 12px 14px !important; }
.kthe-formbox .ff-el-input--label label { font-weight: 700; font-size: 14px; }

/* ---------- 일반 글 (공지사항·현장 사례) ---------- */
.single-post .entry-content, .blog .entry-summary { word-break: keep-all; }

/* ---------- 공지·현장 사례 사진 (관리 화면에서 올린 사진, 본문 아래) ---------- */
.kthe-post-photos { display: grid; gap: 16px; margin-top: 32px; }
.kthe-post-photo { margin: 0; }
.kthe-post-photo img { display: block; width: 100%; height: auto; }
