/* ========== 버튼 ========== */
.yd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px; border-radius: var(--yd-r-pill);
	font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center;
	border: 1.5px solid transparent; background: transparent; color: var(--yd-ink);
	transition: background-color .15s, color .15s, border-color .15s;
}
.yd-btn--primary { background: var(--yd-accent); color: var(--yd-on-accent); }
.yd-btn--primary:hover { color: var(--yd-on-accent); filter: brightness(.94); }
.yd-btn--outline { border-color: var(--yd-ink); background: #fff; }
.yd-btn--dark { background: var(--yd-ink); color: #fff; }
.yd-btn--dark:hover { color: #fff; }
.yd-btn--soft { background: var(--yd-muted); font-weight: 600; }
.yd-btn--white { background: #fff; color: var(--yd-ink); }
.yd-btn--ghost-white { border-color: rgba(255,255,255,.8); color: #fff; }
.yd-btn--ghost-white:hover { color: #fff; background: rgba(255,255,255,.08); }
.yd-btn--lg { min-height: 54px; font-size: 17px; padding: 0 32px; }
.yd-btn--sm { min-height: 44px; font-size: 15px; padding: 0 20px; }
.yd-btn--block { display: flex; width: 100%; }
.yd-btn[disabled], .yd-btn[aria-disabled="true"] { background: var(--yd-line); color: #6B6B6B; border-color: transparent; cursor: not-allowed; filter: none; }
.yd-link-more { font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }

/* 한 화면에 빨강 주 버튼은 하나만(DESIGN.md) */

/* ========== 칩·세그먼트·배지 ========== */
.yd-chip {
	display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
	min-height: 44px; padding: 0 18px; border-radius: var(--yd-r-pill);
	border: 1px solid var(--yd-line-strong); background: #fff; color: var(--yd-ink);
	font-size: 15px; font-weight: 600;
}
.yd-chip--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.yd-chip[aria-pressed="true"], .yd-chip.is-on, .yd-chip:has(input:checked) { background: var(--yd-ink); border-color: var(--yd-ink); color: #fff; }
.yd-chip input { position: absolute; opacity: 0; pointer-events: none; }
.yd-chip:has(input:focus-visible) { outline: 3px solid var(--yd-ink); outline-offset: 2px; }
.yd-chip--removable { background: var(--yd-brand); border: 0; min-height: 36px; padding: 0 10px 0 14px; font-size: 14px; }
.yd-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* 한 줄로 둔다. 화면보다 길면 두 줄로 꺾이는 대신 옆으로 밀어서 본다 */
.yd-seg { display: inline-flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 4px; padding: 4px; background: var(--yd-muted); border-radius: var(--yd-r-pill); align-self: flex-start; }
.yd-seg::-webkit-scrollbar { display: none; }
.yd-seg__item { min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--yd-r-pill); background: transparent; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; white-space: nowrap; }
.yd-seg__item small { font-weight: 500; color: var(--yd-text-sub); font-size: inherit; }
.yd-seg__item[aria-pressed="true"], .yd-seg__item[aria-current="page"], .yd-seg__item.is-on { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.yd-seg--sm .yd-seg__item { min-height: 38px; padding: 0 16px; font-size: 14px; font-weight: 600; }
@media (max-width: 480px) {
	.yd-seg__item { padding: 0 14px; }
	.yd-seg--sm .yd-seg__item { padding: 0 12px; }
	/* 칸 수가 정해진 탭(시공사례 유형): 화면 폭을 똑같이 나눠 쓰고, 건수는 이름 아래로 내린다 */
	.yd-seg--fill { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; align-self: stretch; border-radius: 18px; overflow: visible; }
	.yd-seg--fill .yd-seg__item { flex-direction: column; justify-content: center; gap: 1px; min-height: 50px; padding: 6px 2px; font-size: 14px; line-height: 1.2; border-radius: 14px; }
	.yd-seg--fill .yd-seg__item small { font-size: 12px; }
}

.yd-badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: var(--yd-r-pill); font-size: 12px; font-weight: 700; line-height: 1; background: var(--yd-brand); color: var(--yd-ink); }
.yd-badge--dark { background: rgba(26,26,26,.8); color: #fff; }
.yd-badge--white { background: #fff; }
.yd-badge--accent { background: var(--yd-accent); color: #fff; }
.yd-badge--muted { background: #666; color: #fff; }
.yd-badge--on-photo { position: absolute; left: 12px; top: 12px; }

/* ========== 헤더 ========== */
.yd-banner { background: var(--yd-dark); color: #fff; font-size: 14px; }
.yd-banner__in { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; padding: 10px 56px; }
.yd-banner__in strong { font-weight: 600; }
.yd-banner__in span { color: #BDBDBD; }
.yd-banner__in a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.yd-banner__close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; }

.yd-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--yd-line); }
.yd-header__in { height: var(--yd-header-h); display: flex; align-items: center; gap: 32px; }
.yd-header__logo img { height: 30px; width: auto; }
.yd-nav { display: flex; flex: 1; gap: 28px; align-items: stretch; height: 100%; font-size: 16px; font-weight: 600; }
.yd-nav a { display: inline-flex; align-items: center; }
.yd-nav a[aria-current="page"], .yd-nav .current-menu-item > a, .yd-nav .current-menu-ancestor > a { color: var(--yd-accent); box-shadow: inset 0 -2px 0 var(--yd-accent); }
.yd-nav ul { display: flex; gap: 28px; }
.yd-nav a, .yd-nav__drop-btn { white-space: nowrap; }
.yd-nav > * { flex-shrink: 0; }
/* 회사소개 옆 SNS: 마우스를 올리면 아래로 열린다(터치는 눌러서, main.js가 .is-open). */
.yd-nav__drop { position: relative; display: flex; align-items: stretch; }
.yd-nav__drop-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.yd-nav__drop-btn svg { transition: transform .15s; }
.yd-nav .yd-nav__menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 200px; flex-direction: column; gap: 0; padding: 8px; margin: 0; list-style: none; background: #fff; border: 1px solid var(--yd-line); border-radius: var(--yd-r-card); box-shadow: 0 12px 32px rgba(0,0,0,.12); z-index: 45; }
.yd-nav__drop:hover .yd-nav__menu, .yd-nav__drop:focus-within .yd-nav__menu, .yd-nav__drop.is-open .yd-nav__menu { display: flex; }
.yd-nav__drop:hover .yd-nav__drop-btn, .yd-nav__drop.is-open .yd-nav__drop-btn { color: var(--yd-accent); }
.yd-nav__drop:hover .yd-nav__drop-btn svg, .yd-nav__drop.is-open .yd-nav__drop-btn svg { transform: rotate(180deg); }
.yd-nav__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--yd-r-input); font-size: 15px; white-space: nowrap; }
.yd-nav__menu a span { flex: 1; }
.yd-nav__menu a svg:last-child { color: var(--yd-text-sub, #888); }
.yd-nav__menu a:hover, .yd-nav__menu a:focus-visible { background: var(--yd-brand); color: var(--yd-ink); }
.yd-header__actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.yd-header__tel { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.yd-hamb { display: none; width: 44px; height: 44px; border: 1px solid var(--yd-line); border-radius: 12px; background: #fff; align-items: center; justify-content: center; }
/* (기본 머리글 규칙 뒤에 둬야 덮어쓴다) 좁은 PC(961~1180px): 메뉴 7개가 한 줄에 들어가게 간격·글자를 줄이고 머리글 전화번호는 숨긴다(상단 띠·상담 버튼에 있음) */
@media (min-width: 961px) and (max-width: 1180px) {
	.yd-header__in { gap: 24px; }
	.yd-nav { gap: 20px; font-size: 15px; }
	.yd-header__tel { display: none; }
}

/* 전체 메뉴(모바일) */
.yd-drawer { position: fixed; inset: 0; z-index: 60; background: #fff; display: flex; flex-direction: column; }
.yd-drawer__head { height: 60px; padding: 0 8px 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--yd-line); }
.yd-drawer__head img { height: 24px; width: auto; }
.yd-drawer__nav { padding: 8px 20px; overflow-y: auto; }
.yd-drawer__nav a { min-height: 56px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #F0F0F0; font-size: 20px; font-weight: 700; }
.yd-drawer__nav a[aria-current="page"] { color: var(--yd-accent); font-weight: 800; }
.yd-drawer__sns { padding: 16px 20px 20px; display: flex; align-items: center; gap: 16px; }
.yd-drawer__sns strong { font-size: 15px; }
.yd-drawer__sns ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.yd-drawer__sns a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--yd-line); border-radius: var(--yd-r-pill); font-size: 14px; font-weight: 600; }
.yd-drawer__foot { margin-top: auto; padding: 20px 20px 28px; background: var(--yd-brand); display: flex; flex-direction: column; gap: 10px; }

.yd-icon-btn { width: 44px; height: 44px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--yd-ink); border-radius: var(--yd-r-pill); }

@media (max-width: 960px) {
	.yd-nav { display: none; }
	.yd-hamb { display: inline-flex; }
	.yd-header__tel { display: none; }
}
/* 태블릿·폴더블 펼친 화면(600px 이상): 전체 메뉴를 화면 가득 대신 오른쪽 패널로. 왼쪽 어두운 면을 누르면 닫힌다(main.js) */
@media (min-width: 600px) {
	.yd-drawer { left: auto; width: min(400px, 100%); box-shadow: -12px 0 40px rgba(0,0,0,.18); }
	.yd-drawer::before { content: ''; position: fixed; top: 0; bottom: 0; left: 0; right: min(400px, 100%); background: rgba(0,0,0,.45); }
}
@media (max-width: 720px) {
	.yd-header__in { gap: 4px; }
	.yd-header__logo img { height: 24px; }
	.yd-header__cta { display: none; }
	.yd-hamb { border: 0; }
	.yd-banner__in { justify-content: flex-start; padding: 6px 48px 6px 16px; font-size: 13px; gap: 6px; }
	.yd-banner__in span { display: none; }
}

/* 낮은 화면(폰 가로 모드): 띠 배너를 접고, 전체 메뉴는 아래 버튼 영역을 고정하지 않고 통째로 스크롤한다 */
@media (max-height: 500px) and (orientation: landscape) {
	.yd-banner { display: none; }
	.yd-header__logo img { height: 24px; }
	.yd-drawer { overflow-y: auto; }
	.yd-drawer__head { height: 52px; flex-shrink: 0; }
	.yd-drawer__nav { overflow: visible; flex-shrink: 0; padding-top: 0; padding-bottom: 0; }
	.yd-drawer__nav a { min-height: 48px; font-size: 17px; }
	.yd-drawer__foot { margin-top: 0; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 20px 18px; }
	.yd-drawer__foot .yd-small { flex-basis: 100%; }
	.yd-drawer__foot .yd-btn { flex: 1; }
}

/* ========== 푸터·고정 요소 ========== */
.yd-footer { margin-top: var(--yd-section); background: var(--yd-dark); color: var(--yd-on-dark); padding: 56px 0 64px; font-size: 14px; } /* 아래 120px는 모바일 하단 띠용(아래 미디어 쿼리) */
.yd-footer a { color: #fff; }
.yd-footer__branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.yd-footer__branches strong { color: #fff; font-size: 16px; display: block; margin-bottom: 6px; }
.yd-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid #333; padding-top: 24px; margin-top: 32px; }
.yd-footer__nav .spacer { flex: 1; }
/* SNS 버튼: 하단 메뉴 오른쪽 끝. 그림만으로는 구분이 어려워 이름을 함께 적은 알약 모양 */
.yd-footer__sns { display: flex; flex-wrap: wrap; gap: 8px; margin: -9px 0; padding: 0; list-style: none; }
.yd-footer__nav .yd-footer__sns a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0; padding: 0 14px 0 12px; border: 1px solid #3A3A3A; border-radius: var(--yd-r-pill); color: var(--yd-on-dark); font-size: 13px; font-weight: 600; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.yd-footer__nav .yd-footer__sns a:hover, .yd-footer__nav .yd-footer__sns a:focus-visible { background: #2A2A2A; border-color: #5A5A5A; color: #fff; }
.yd-footer__sns svg { flex-shrink: 0; }
@media (max-width: 999px), (pointer: coarse) {
	.yd-footer__sns { flex-basis: 100%; margin: 12px 0 0; }
	.yd-footer__nav .yd-footer__sns a { min-height: 44px; }
}
.yd-footer__legal { margin-top: 24px; font-size: 13px; line-height: 1.8; color: var(--yd-on-dark-sub); }
.yd-footer__legal a { color: inherit; text-decoration: none; }
.yd-footer__legal a:hover { text-decoration: underline; }
.yd-footer--slim { padding: 40px 0; }

/* 플로팅 상담 버튼: 예당 레드 원 + 흰 말풍선(2026-11-24, 예전에는 검정 원 + 선 말풍선). 열리면 닫기(✕)로 바뀐다 */
.yd-float { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 60px; height: 60px; border-radius: var(--yd-r-pill); background: var(--yd-accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(206,29,45,.28); border: 0; transition: transform .15s ease; }
.yd-float:hover { color: #fff; transform: translateY(-2px); }
.yd-float__close { display: none; }
.yd-float[aria-expanded="true"] .yd-float__chat { display: none; }
.yd-float[aria-expanded="true"] .yd-float__close { display: flex; }
@media (prefers-reduced-motion: reduce) { .yd-float { transition: none; } .yd-float:hover { transform: none; } }
.yd-float-menu { position: fixed; right: 24px; bottom: 96px; z-index: 31; background: #fff; border: 1px solid var(--yd-line); border-radius: var(--yd-r-panel); box-shadow: var(--yd-shadow-float); padding: 8px; display: flex; flex-direction: column; min-width: 220px; }
.yd-float-menu a { padding: 12px 14px; border-radius: 12px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.yd-float-menu a:hover { background: var(--yd-muted); }

.yd-mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--yd-line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 8px; box-shadow: var(--yd-shadow-bar); }
.yd-mbar .yd-btn { flex: 1; min-height: 50px; }
.yd-mbar .yd-btn--narrow { flex: 0 0 110px; }
/* 톡톡 칸이 있는 띠(mobile-bar.php): 톡톡·전화는 글자 폭만큼만, 남는 폭은 주 버튼이 쓴다 */
.yd-mbar .yd-mbar__talk { flex: 0 0 auto; padding: 0 14px; border-color: var(--yd-line-strong); background: #fff; gap: 6px; }
.yd-mbar--talk .yd-btn--outline, .yd-mbar--talk .yd-btn--narrow { flex: 0 0 auto; padding-left: 16px; padding-right: 16px; }
.yd-mbar--talk .yd-btn--primary, .yd-mbar--talk .yd-btn--dark { padding-left: 12px; padding-right: 12px; }
/* 좁은 폰(380px 이하): 톡톡은 아이콘만 남겨 주 버튼 글자가 한 줄에 들어가게 한다 */
@media (max-width: 380px) {
	.yd-mbar__talk-label { display: none; }
	.yd-mbar .yd-mbar__talk { padding: 0 13px; }
	.yd-mbar--talk .yd-btn--outline, .yd-mbar--talk .yd-btn--narrow { padding-left: 12px; padding-right: 12px; }
}

/* 쿠키 동의 창(플러그인 google.php의 yd_cookie_banner). 플로팅 버튼보다 위, 전체 메뉴보다 아래. */
.yd-cookie { position: fixed; left: 24px; bottom: 24px; z-index: 50; width: min(420px, calc(100vw - 48px)); background: #fff; color: var(--yd-ink); border: 1px solid var(--yd-line); border-radius: var(--yd-r-panel); box-shadow: var(--yd-shadow-float); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.55; }
.yd-cookie[hidden] { display: none; }
.yd-cookie__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.yd-cookie__title { font-size: 16px; font-weight: 700; }
.yd-cookie__desc { margin: 0; color: var(--yd-text-body); }
.yd-cookie__desc a { text-decoration: underline; white-space: nowrap; }
.yd-cookie__actions { display: flex; gap: 8px; }
.yd-cookie__actions .yd-btn { flex: 1; }
/* 메타 픽셀을 켜면 항목을 나눠 고른다(방문 통계 / 맞춤 광고). 체크 칸은 글 앞에 붙이고, 버튼 셋은 같은 크기. */
.yd-cookie__opt { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--yd-text-body); cursor: pointer; }
.yd-cookie__opt input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--yd-ink); cursor: pointer; }
.yd-cookie__opt strong { color: var(--yd-ink); margin-right: 4px; }
.yd-cookie--multi .yd-cookie__actions .yd-btn { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.yd-footer__nav button.yd-linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
/* 낮은 화면(폰 가로 모드 등): 글과 버튼을 옆으로 나란히 놓아 높이를 줄인다 */
@media (max-height: 520px) and (min-width: 560px) {
	.yd-cookie { right: 24px; width: auto; max-width: 880px; margin: 0 auto; flex-direction: row; align-items: center; gap: 16px; padding: 12px 16px; font-size: 13px; line-height: 1.5; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; }
	.yd-cookie__text { flex: 1; gap: 2px; }
	.yd-cookie__title { font-size: 14px; }
	.yd-cookie__actions { flex-direction: column; flex-shrink: 0; width: 128px; }
}
@media (max-width: 720px) {
	.yd-cookie { left: 12px; right: 12px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); padding: 14px 16px; gap: 10px; font-size: 13px; line-height: 1.5; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); overflow-y: auto; }
	.yd-cookie__title { font-size: 15px; }
	body.has-cookie-banner .yd-float { display: none; }
}
@media (max-width: 720px) {
	.yd-mbar { display: flex; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
	/* 하단 띠에 홈 표시줄 여백이 붙는 만큼 떠 있는 버튼도 올린다(안 그러면 아이폰에서 띠와 겹친다) */
	.yd-float { bottom: calc(84px + env(safe-area-inset-bottom)); right: 16px; width: 52px; height: 52px; }
	.yd-float-menu { bottom: calc(148px + env(safe-area-inset-bottom)); right: 16px; }
	/* 하단 띠가 있는 화면에서는 떠 있는 상담 버튼을 숨긴다. 톡톡·전화·견적이 띠에 다 있고, 버튼이 본문을 가린다(footer.php에서 띠가 먼저 나온다) */
	.yd-mbar ~ .yd-float, .yd-mbar ~ .yd-float-menu { display: none; }
	.yd-footer { padding: 36px 0 120px; }
}
/* 폴더블 펼친 화면(600~720px): 하단 버튼이 화면 끝까지 늘어나지 않게 가운데 560px로 */
@media (min-width: 600px) and (max-width: 720px) {
	.yd-mbar { padding-left: max(16px, calc((100vw - 560px) / 2)); padding-right: max(16px, calc((100vw - 560px) / 2)); }
}
/* 좌우 노치(폰 가로 모드)를 피한다 */
@media (min-width: 721px) {
	.yd-float { right: max(24px, calc(env(safe-area-inset-right) + 8px)); }
	.yd-float-menu { right: max(24px, calc(env(safe-area-inset-right) + 8px)); }
}

/* 손가락으로 누르는 화면(태블릿 세로 이하 또는 터치 기기): 누르는 곳을 44px 이상으로.
   글자 링크는 위아래 여백으로 누르는 면만 키우고 같은 만큼 바깥 여백을 빼서 글자 자리는 그대로 둔다. */
@media (max-width: 999px), (pointer: coarse) {
	.yd-chip--sm { min-height: 44px; }
	.yd-seg--sm .yd-seg__item { min-height: 44px; }
	.yd-banner__close { width: 44px; height: 44px; }
	.yd-footer__nav { row-gap: 0; }
	/* 두 글자짜리(채용 등)는 폭도 좌우 10px씩 키운다 */
	.yd-footer__nav a, .yd-footer__nav button.yd-linklike { min-height: 44px; display: inline-flex; align-items: center; padding-left: 10px; padding-right: 10px; margin-left: -10px; margin-right: -10px; }
	.yd-footer__branches a, .yd-footer__legal a, .yd-banner__in a, .yd-header__logo, .yd-branch-card__body > a, .yd-link-more, main a[href^="tel:"]:not(.yd-btn) { padding-top: 13px; padding-bottom: 13px; margin-top: -13px; margin-bottom: -13px; }
	.yd-footer__legal a { padding-top: 15px; padding-bottom: 15px; }
	nav.yd-meta a { padding: 11px 10px; margin: -11px -10px; }
	.yd-branch-card__body > a { align-self: flex-start; }
}

/* ========== 카드 ========== */
.yd-photo { position: relative; aspect-ratio: var(--ratio, 3 / 2); border-radius: var(--yd-r-card); overflow: hidden; background: var(--yd-ph); color: var(--yd-ph-ink); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; }
.yd-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yd-photo--r20 { border-radius: var(--yd-r-panel); }

.yd-card { display: flex; flex-direction: column; gap: 14px; }
.yd-card__body { display: flex; flex-direction: column; gap: 6px; }
.yd-card__title { font-size: 18px; font-weight: 700; line-height: 1.4; }
.yd-card:hover .yd-card__title { text-decoration: underline; text-underline-offset: 3px; }

.yd-box { border: 1px solid var(--yd-line); border-radius: var(--yd-r-panel); padding: 24px; }
.yd-box--lg { border-radius: 24px; padding: 28px; }
.yd-box--muted { background: var(--yd-muted); border: 0; }
.yd-panel { background: var(--yd-brand); border-radius: var(--yd-r-hero); padding: 56px; }
.yd-panel--dark { background: var(--yd-dark); color: #fff; }
.yd-cta-band { background: var(--yd-brand); border-radius: var(--yd-r-hero); padding: 40px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.yd-cta-band strong { font-size: 24px; letter-spacing: -0.02em; display: block; margin-bottom: 8px; }

.yd-branch-card { border: 1px solid var(--yd-line); border-radius: var(--yd-r-panel); overflow: hidden; display: flex; flex-direction: column; }
.yd-branch-card .yd-photo { border-radius: 0; --ratio: 16 / 10; }
.yd-branch-card .yd-photo > img { transition: transform .4s ease; }
.yd-branch-card .yd-photo:hover > img { transform: scale(1.03); }
.yd-branch-card .yd-h3 a { color: inherit; text-decoration: none; }
.yd-branch-card .yd-h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .yd-branch-card .yd-photo > img { transition: none; } }
.yd-branch-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.yd-branch-card__actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
/* 홈 지점 카드 3장: 840px부터 한 줄에 3장(칸 최소 240px). 600~839px은 2열로 고정하고, 홀로 남는 마지막 카드를 한 줄 전체로 펴서 사진·글을 옆으로 놓는다 */
.yd-branch-grid { --min: 240px; }
@media (min-width: 600px) and (max-width: 839px) {
	.yd-branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yd-branch-grid > .yd-branch-card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
	.yd-branch-grid > .yd-branch-card:last-child:nth-child(odd) .yd-photo { flex: 0 0 46%; aspect-ratio: auto; min-height: 200px; }
}
@media (min-width: 840px) and (max-width: 999px) {
	.yd-branch-grid .yd-branch-card__body { padding: 18px; }
}
/* 홈 쇼룸·지점(탭 모양, front-page.php의 $showroom_tabs · template-parts/showroom/home-panel.php)
   위에 지점 알약 탭. 그 아래 왼쪽은 글(지점명 · 주소와 전화 · 층 목록 · 버튼), 오른쪽은 고른 층의 사진.
   사진은 한쪽에만 둔다(왼쪽에 지점 사진 카드를 뒀을 때는 같은 지점이 다른 비율로 두 번 나와 어긋나 보였다, 2026-11-26).
   글의 윗선은 큰 사진 윗선에, 버튼은 작은 사진 줄 아랫선에 맞는다. 전화는 주소 옆에 둔다(아래 버튼 위에 두면 층이 적은 지점에서 너무 멀어진다). 층 목록이 곧 층 고르기 탭이다.
   899px 이하는 한 줄로 쌓는다: 층 줄(옆으로 미는 알약) → 사진 → 지점명 → 주소 → 전화 → 버튼. */
.yd-home-showroom__in { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 40px; align-items: stretch; }
.yd-home-showroom__info { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.yd-home-showroom__head { display: flex; flex-direction: column; gap: 8px; }
.yd-home-showroom__head .yd-h3 { font-size: 24px; }
.yd-home-showroom__head .yd-h3 a { color: inherit; text-decoration: none; }
.yd-home-showroom__head .yd-h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.yd-home-showroom__head p { font-size: 15px; color: var(--yd-text-body); }
.yd-home-showroom__addr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.yd-home-showroom__tel { color: var(--yd-ink); font-weight: 700; white-space: nowrap; }
.yd-home-floors { display: flex; flex-direction: column; gap: 2px; margin: 0 -12px; }
.yd-home-floor { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 12px; background: none; color: var(--yd-text-body); font-size: 15px; text-align: left; word-break: keep-all; }
.yd-home-floor b { flex: 0 0 40px; color: var(--yd-accent); font-size: 16px; font-weight: 800; }
.yd-home-floor:hover { background: var(--yd-muted); }
.yd-home-floor[aria-pressed="true"] { background: var(--yd-muted); color: var(--yd-ink); font-weight: 700; }
.yd-home-showroom__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.yd-home-showroom__photos { min-width: 0; }
.yd-home-showroom .yd-viewer__stage { --ratio: 16 / 10; }
@media (max-width: 899px) {
	.yd-home-showroom__in { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.yd-home-showroom__info { display: contents; }
	.yd-home-floors { order: 1; flex-direction: row; gap: 8px; margin: 0 calc(var(--yd-gutter) * -1); padding: 0 var(--yd-gutter); overflow-x: auto; scrollbar-width: none; }
	.yd-home-floors::-webkit-scrollbar { display: none; }
	.yd-home-floor { flex-shrink: 0; gap: 6px; padding: 0 14px; border: 1px solid var(--yd-line-strong); border-radius: var(--yd-r-pill); background: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
	.yd-home-floor b { flex: none; font-size: 14px; }
	.yd-home-floor[aria-pressed="true"] { background: var(--yd-ink); border-color: var(--yd-ink); color: #fff; }
	.yd-home-floor[aria-pressed="true"] b { color: inherit; }
	.yd-home-showroom__photos { order: 2; }
	.yd-home-showroom__head { order: 3; margin-top: 6px; }
	.yd-home-showroom__addr { flex-direction: column; gap: 6px; }
	.yd-home-showroom__tel { align-self: flex-start; font-size: 18px; }
	.yd-home-showroom__actions { order: 4; margin-top: 0; }
}

.yd-news-item { border-top: 2px solid var(--yd-ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 720px) {
	.yd-panel { padding: 28px 20px; }
	.yd-cta-band { padding: 26px 20px; flex-direction: column; align-items: stretch; }
	.yd-cta-band strong { font-size: 20px; }
}

/* ========== 정보 목록·타임라인 ========== */
.yd-dl { display: grid; grid-template-columns: 88px 1fr; gap: 12px 8px; font-size: 15px; }
.yd-dl dt { color: var(--yd-text-sub); }
.yd-dl dd { font-weight: 600; }
.yd-dl--compact { grid-template-columns: 64px 1fr; }
.yd-steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); counter-reset: s; }
@media (min-width: 600px) and (max-width: 999px) { .yd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.yd-step-num { width: 36px; height: 36px; border-radius: var(--yd-r-pill); background: var(--yd-ink); color: #fff; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.yd-timeline { border-left: 2px solid var(--yd-line); padding-left: 18px; display: flex; flex-direction: column; gap: 20px; }
.yd-track li { display: flex; gap: 14px; align-items: flex-start; }
.yd-track__dot { width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--yd-line-strong); background: #fff; }
.yd-track li.is-done .yd-track__dot { background: var(--yd-ink); border-color: var(--yd-ink); }
.yd-track li.is-now .yd-track__dot { background: var(--yd-accent); border-color: var(--yd-accent); }

/* ========== 아코디언(FAQ)·공지 ========== */
.yd-accordion { border-top: 2px solid var(--yd-ink); }
.yd-accordion details { border-bottom: 1px solid var(--yd-line); }
.yd-accordion summary { list-style: none; cursor: pointer; padding: 22px 4px; font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.yd-accordion summary::-webkit-details-marker { display: none; }
.yd-accordion summary::after { content: '+'; font-weight: 400; font-size: 22px; color: var(--yd-text-sub); }
.yd-accordion details[open] summary::after { content: '−'; }
.yd-accordion summary .q { color: var(--yd-accent); margin-right: 10px; }
/* 견적 화면 '이름과 연락처만 남기기': 버튼을 누르면 그 자리에서 폼이 펼쳐진다(2026-12-02). 펼친 뒤에는 버튼이 작은 '접기'로 바뀌어 폼 아래로 간다 */
.yd-quick { display: flex; flex-direction: column; }
.yd-quick > summary { list-style: none; cursor: pointer; gap: 8px; }
.yd-quick > summary::-webkit-details-marker { display: none; }
.yd-quick > summary::after { content: ''; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.yd-quick__close { display: none; }
.yd-quick[open] > summary { order: 2; align-self: center; width: auto; min-height: 36px; margin-top: 10px; padding: 0 12px; border-color: transparent; background: none; color: var(--yd-text-sub); font-size: 14px; font-weight: 600; }
.yd-quick[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.yd-quick[open] .yd-quick__open { display: none; }
.yd-quick[open] .yd-quick__close { display: inline; }
.yd-accordion .a { padding: 0 4px 22px 30px; color: var(--yd-text-body); line-height: 1.7; }
.yd-list { border-top: 2px solid var(--yd-ink); }
.yd-list li { border-bottom: 1px solid var(--yd-line); }
.yd-list a { display: flex; justify-content: space-between; gap: 16px; padding: 20px 4px; }
/* 이전·다음 글: '이전 글' 칸은 한 줄로 고정하고 가운데 높이에, 제목은 왼쪽 정렬(두 줄이 돼도) */
.yd-list--adjacent a { justify-content: flex-start; align-items: center; gap: 24px; }
.yd-list--adjacent a > :first-child { flex: 0 0 auto; min-width: 4.5em; white-space: nowrap; }
.yd-list--adjacent a > :last-child { flex: 1 1 auto; min-width: 0; text-align: left; }
.yd-pager { display: flex; justify-content: center; gap: 4px; padding-top: 24px; }
.yd-pager .page-numbers { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.yd-pager .current { background: var(--yd-ink); color: #fff; font-weight: 700; }
@media (max-width: 999px), (pointer: coarse) { .yd-pager .page-numbers { width: 44px; height: 44px; } }
@media (max-width: 720px) {
	.yd-accordion summary { font-size: 15px; padding: 16px 2px; }
	.yd-list a { flex-direction: column; gap: 4px; padding: 14px 2px; }
	.yd-list--adjacent a { flex-direction: row; gap: 16px; }
}

/* ========== 폼 ========== */
.yd-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.yd-field small { font-weight: 400; color: var(--yd-text-sub); }
.yd-input, .yd-select, .yd-textarea {
	width: 100%; min-width: 0; min-height: 52px; padding: 0 14px;
	border: 1px solid var(--yd-line-input); border-radius: var(--yd-r-input); background: #fff;
	font-size: 16px; font-weight: 400; color: var(--yd-ink);
}
.yd-textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.yd-input:focus, .yd-select:focus, .yd-textarea:focus { outline: none; border-color: var(--yd-ink); box-shadow: 0 0 0 3px rgba(26,26,26,.12); }
.yd-field.has-error .yd-input, .yd-field.has-error .yd-textarea { border-color: var(--yd-error); }
.yd-field__error { color: var(--yd-error); font-size: 13px; font-weight: 600; display: flex; gap: 4px; align-items: center; }
.yd-search { display: flex; align-items: center; gap: 12px; max-width: 720px; height: 60px; padding: 0 8px 0 22px; border: 1.5px solid var(--yd-ink); border-radius: var(--yd-r-pill); background: #fff; }
.yd-search input { flex: 1; min-width: 0; border: 0; font-size: 17px; background: transparent; }
.yd-search input:focus { outline: none; }
.yd-consent { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: var(--yd-r-input); background: var(--yd-muted); font-size: 14px; line-height: 1.5; }
.yd-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--yd-ink); flex-shrink: 0; }
.yd-consent span span { color: var(--yd-text-sub); }
/* 동의에 체크하지 않고 보내려 했을 때: 칸 전체를 붉게 두르고 한 번 흔들어 놓치지 않게 한다(2026-12-02). 체크하면 바로 풀린다 */
.yd-field.has-error .yd-consent { background: var(--yd-error-bg); box-shadow: inset 0 0 0 2px var(--yd-error); animation: yd-consent-nudge .4s ease 1; }
.yd-field.has-error .yd-consent input { outline: 2px solid var(--yd-error); outline-offset: 2px; }
.yd-field.has-error .yd-consent + .yd-field__error { margin-top: 8px; font-size: 15px; }
@keyframes yd-consent-nudge { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .yd-field.has-error .yd-consent { animation: none; } }
.yd-check-card { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--yd-brand); font-size: 15px; line-height: 1.5; cursor: pointer; }
.yd-check-card input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--yd-ink); }
.yd-radio-card { text-align: left; padding: 20px; border-radius: 18px; background: #fff; border: 2px solid var(--yd-line); display: flex; flex-direction: column; gap: 6px; cursor: pointer; position: relative; }
.yd-radio-card input { position: absolute; opacity: 0; }
.yd-radio-card:has(input:checked) { border-color: var(--yd-ink); background: var(--yd-selected); }
.yd-radio-card:has(input:focus-visible) { outline: 3px solid var(--yd-ink); outline-offset: 2px; }
.yd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.yd-upload { min-height: 88px; border: 1.5px dashed var(--yd-line-input); border-radius: 14px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px; cursor: pointer; text-align: center; }
.yd-upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.yd-thumbs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.yd-thumb { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--yd-ph); }
.yd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yd-thumb__x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 999px; border: 0; background: rgba(26,26,26,.7); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.yd-thumb.is-failed { background: var(--yd-error-bg); outline: 1.5px solid var(--yd-error); }

/* 달력 */
.yd-cal { border: 1px solid var(--yd-line); border-radius: 18px; padding: 18px; }
.yd-cal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.yd-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.yd-cal__dow { font-size: 13px; color: var(--yd-text-sub); }
.yd-cal__day { height: 44px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 15px; }
.yd-cal__day:disabled { color: var(--yd-line-input); cursor: default; }
.yd-cal__day.is-sun { color: var(--yd-error); }
.yd-cal__day[aria-pressed="true"] { background: var(--yd-ink); color: #fff; }
.yd-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.yd-times .yd-chip { border-radius: 12px; justify-content: center; }

/* 단계형 진행 */
.yd-flow { background: #fff; border-radius: var(--yd-r-hero); overflow: hidden; display: flex; flex-direction: column; min-height: 640px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.yd-flow__top { padding: 0 8px; }
.yd-flow__bar { height: 56px; display: flex; align-items: center; gap: 4px; }
.yd-flow__title { flex: 1; font-weight: 700; }
.yd-flow__title small { font-weight: 500; color: var(--yd-text-sub); font-size: 14px; margin-left: 4px; }
.yd-progress { margin: 0 12px; height: 4px; border-radius: 999px; background: var(--yd-line); overflow: hidden; }
.yd-progress > span { display: block; height: 100%; background: var(--yd-accent); transition: width .2s; }
.yd-flow__body { flex: 1; overflow-y: auto; padding: 24px 20px; }
.yd-flow__body h2 { font-size: 24px; line-height: 1.35; font-weight: 800; letter-spacing: var(--yd-tracking-tight); margin-bottom: 20px; }
.yd-flow__foot { padding: 10px 16px 18px; border-top: 1px solid var(--yd-line); }
.yd-step-head { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.yd-step-head .n { width: 30px; height: 30px; border-radius: 999px; background: var(--yd-ink); color: #fff; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.yd-done-mark { width: 64px; height: 64px; border-radius: 999px; background: var(--yd-brand); display: flex; align-items: center; justify-content: center; color: var(--yd-accent); }
.yd-receipt { border-radius: var(--yd-r-panel); background: var(--yd-dark); color: #fff; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; }
.yd-receipt strong { font-size: 26px; letter-spacing: .02em; }

/* 라이트박스 */
.yd-lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(10,10,10,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.yd-lightbox img { max-width: min(1100px, 100%); max-height: 80vh; border-radius: 12px; object-fit: contain; }
.yd-lightbox__close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.yd-lightbox__nav { display: flex; align-items: center; gap: 12px; color: #fff; }
.yd-lightbox__nav button { width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
/* 쇼룸 사진 크게 보기(2026-12-02): 층 줄을 사진 바로 위에 붙인다. 지금 보는 층은 이름까지 펼쳐지고, 오른쪽에 그 층 안의 번호가 나온다.
   PC는 사진 틀을 3:2로 고정해 사진이 바뀌어도 층 줄과 넘김 버튼이 움직이지 않는다. 세로 사진은 틀 가운데에 선다. */
.yd-lightbox--groups { padding: 24px 76px; }
.yd-lightbox__frame { display: flex; flex-direction: column; gap: 12px; width: min(1100px, 100%, calc((100vh - 150px) * 1.5)); }
.yd-lightbox__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.yd-lightbox__groups { position: relative; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; scrollbar-width: none; }
.yd-lightbox__groups::-webkit-scrollbar { display: none; }
.yd-lightbox__groups button { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff; font-size: 14px; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.yd-lightbox__groups button b { font-weight: 800; letter-spacing: .02em; }
.yd-lightbox__groups button span { display: none; font-weight: 600; }
.yd-lightbox__groups button:hover { border-color: #fff; }
.yd-lightbox__groups button[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--yd-ink); padding: 0 16px; }
.yd-lightbox__groups button[aria-pressed="true"] b { color: var(--yd-accent); }
.yd-lightbox__groups button[aria-pressed="true"] span { display: inline; }
.yd-lightbox__count { flex-shrink: 0; padding-bottom: 9px; color: rgba(255,255,255,.78); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yd-lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.05); }
.yd-lightbox__stage img { width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; object-fit: contain; }
.yd-lightbox__stage [data-lb] { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 999px; border: 0; background: rgba(10,10,10,.55); color: #fff; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; }
.yd-lightbox__stage [data-lb]:hover { background: rgba(10,10,10,.8); }
.yd-lightbox__stage [data-lb="-1"] { left: 12px; }
.yd-lightbox__stage [data-lb="1"] { right: 12px; }
.yd-lightbox [data-lb][hidden] { display: none; }
@media (max-width: 720px) {
	.yd-lightbox--groups { padding: 16px; }
	.yd-lightbox__frame { width: 100%; gap: 10px; }
	.yd-lightbox__groups { flex-wrap: nowrap; overflow-x: auto; }
	.yd-lightbox__count { padding-bottom: 10px; }
	/* 휴대폰: 틀 높이를 사진에 맞춘다(세로 사진이 작아지지 않게) */
	.yd-lightbox__stage { aspect-ratio: auto; }
	.yd-lightbox__stage img { height: auto; max-height: 64vh; }
	.yd-lightbox__stage [data-lb] { width: 40px; height: 40px; }
	.yd-lightbox__stage [data-lb="-1"] { left: 8px; }
	.yd-lightbox__stage [data-lb="1"] { right: 8px; }
	.yd-lightbox--groups .yd-lightbox__close { top: 12px; right: 12px; }
}

/* 하단 시트(모바일 필터) */
.yd-sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; }

/* 결과 없음 */
.yd-empty { border: 1px dashed var(--yd-line-strong); border-radius: var(--yd-r-panel); padding: 56px 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }

/* 토스트 */
.yd-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--yd-ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 90; }

/* 모바일에서만 보이는 요소 (헤더 전화 아이콘 등) */
.yd-mobile-only { display: none !important; }
@media (max-width: 720px) { .yd-mobile-only { display: inline-flex !important; } }

/* ---------- 폼 보조 ---------- */
.yd-btn--narrow { flex: 0 0 auto; padding-left: 22px; padding-right: 22px; }
.yd-req { color: var(--yd-accent); font-weight: 800; }
.yd-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.yd-choices legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.yd-choices > small { margin: -4px 0 8px; display: block; }
.yd-step { gap: 18px; }
.yd-step > legend { margin-bottom: 18px; padding: 0; }
.yd-step-nav { position: sticky; bottom: 0; padding: 14px 0 4px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%); z-index: 2; }
.yd-form:not(.is-stepped) .yd-step-nav { position: static; background: none; }
.yd-form__alert { padding: 14px 16px; border-radius: var(--yd-r-input); background: var(--yd-error-bg); color: var(--yd-error); font-weight: 600; font-size: 15px; }
.yd-flow--card { min-height: 0; border: 1px solid var(--yd-line); box-shadow: none; }
.yd-flow--card .yd-flow__body { padding: 28px 32px 24px; overflow: visible; }
.yd-done:focus { outline: none; }
@media (max-width: 720px) {
	.yd-flow--card { border: 0; border-radius: 0; margin: 0 calc(var(--yd-gutter) * -1); }
	.yd-flow--card .yd-flow__body { padding: 20px; }
	/* 단계 버튼이 하단 고정 바 자리를 대신한다 */
	.yd-form.is-stepped .yd-step-nav { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--yd-line); }
	.yd-form.is-stepped { padding-bottom: 84px; }
}

/* 홈 큰 사진 넘김 버튼: 모바일에선 글 아래 왼쪽으로, 조금 작게 */
@media (max-width: 720px) {
	.yd-hero__ctrl { align-self: flex-start; }
	.yd-hero__ctrl button { width: 32px; height: 32px; }
}
@media (max-width: 720px) { .yd-flow--card .yd-flow__top { padding: 0 12px; } }

/* 고객지원 A/S 전화 칸: 지점 이름 위, 번호 아래. 번호가 둘이면 세로선으로 나눠 나란히(page-support.php) */
.yd-as-tel { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 20px 11px; background: #fff; border-radius: 28px; }
.yd-as-tel__label { font-size: 14px; font-weight: 600; color: var(--yd-text-sub); }
.yd-as-tel__nums { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 17px; }
.yd-as-tel__nums a { position: relative; padding: 2px 0; font-size: 17px; font-weight: 700; color: var(--yd-ink); }
.yd-as-tel__nums a:hover { color: var(--yd-accent); }
.yd-as-tel__nums a + a::before { content: ""; position: absolute; left: -9px; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: var(--yd-line-strong, #ccc); }
