/* CareTok 리뉴얼 헤더·푸터(_v3.Header · _v3.Footer) — _v3.Layout · _v3.SkinLayout 공용.
   ★ 스타일만 화면(SkinLayout)에서는 bootstrap · crzl styles/default · v2.Layout · v2.Header CSS 가 함께 실리므로
     요소 선택자(a · h · p · ul · footer · button · input)의 기존 규칙을 여기서 클래스 선택자로 모두 되돌린다.
   ★ 글자 크기는 --pm-font-size-* · --pm-button-* 를 쓰지 않는다(새 화면 18/16 토큰이 스킨 헤더 크기를 바꾸지 않게) — 고정 rem.
   ★ 미디어 쿼리 안에서는 CSS 변수를 쓸 수 없어 폭만 숫자(768px). */

/* 글꼴 — IBM Plex Sans KR 라틴 글자(fontsource 5.2.5, OFL) 자체 호스팅 4굵기. 한글은 레이아웃의 Google Fonts 링크(--pm-font-family 다음 글꼴) */
@font-face { font-family: "CT Plex Latin"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex-kr-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "CT Plex Latin"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plex-kr-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "CT Plex Latin"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plex-kr-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "CT Plex Latin"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("../fonts/plex-kr-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.ctf-header,
.ctf-footer {
    font-family: var(--pm-font-family);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--wd-text);
    text-align: left;
}
.ctf-header *,
.ctf-footer * { box-sizing: border-box; }
.ctf-header ul,
.ctf-footer ul { margin: 0; padding: 0; list-style: none; }
.ctf-header p,
.ctf-footer p { margin: 0; }
.ctf-header a,
.ctf-footer a { text-decoration: none; transition: none; }
.ctf-header a:hover,
.ctf-footer a:hover { text-decoration: underline; }
.ctf-header :focus-visible,
.ctf-footer :focus-visible { outline: 2px solid var(--pm-color-focus); outline-offset: 2px; }

.ctf-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.ctf-only-mobile { display: none !important; }

/* 버튼 — 알약, 높이 48px 이상(원드림). Figma 468:2636: 21px 굵게 · 위아래 15 · 좌우 26. accent = 노랑(주 버튼), outline-green = 흰 바탕 초록 2px 테두리 */
.ctf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.9375rem 1.625rem;
    font-family: var(--pm-font-family);
    font-size: 1.3125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--wd-text);
    text-align: center;
    background: var(--wd-white);
    border: 1px solid var(--wd-border);
    border-radius: var(--pm-radius-round);
    cursor: pointer;
}
a.ctf-button,
a.ctf-button:hover,
a.ctf-button:focus { text-decoration: none; }
.ctf-button.ctf-button-accent,
a.ctf-button.ctf-button-accent:hover { color: var(--pm-color-accent-text); background: var(--wd-accent); border-color: var(--wd-accent); }
.ctf-button.ctf-button-green,
a.ctf-button.ctf-button-green:hover { color: var(--pm-color-on-dark); background: var(--wd-green); border-color: var(--wd-green); }
.ctf-button.ctf-button-outline,
a.ctf-button.ctf-button-outline:hover { color: var(--wd-text); background: var(--wd-white); border-color: var(--wd-border); }
.ctf-button.ctf-button-outline-green,
a.ctf-button.ctf-button-outline-green:hover { color: var(--wd-green); background: var(--wd-white); border: 2px solid var(--wd-green); }
/* 헤더 오른쪽 노란 버튼 — Figma 30:26(Sign up 22px), 위아래 15 · 좌우 28. 홈도 같은 버튼(11.17 통일) */
.ctf-header .ctf-button { white-space: nowrap; }
.ctf-header .ctf-button-head { padding: 0.9375rem 1.75rem; font-size: 1.375rem; line-height: 1.35; white-space: nowrap; }

/* 상단 띠 — Figma 468:42(홈: 노란 점 · 18px) · 공통/헤더 30:4(하위: 점 없음 · 20px) · 모바일 468:748(짧은 문구 19px) */
.ctf-notice { color: var(--pm-color-on-dark); background: var(--wd-green); }
.ctf-notice-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 77rem;   /* 안쪽 1200(Figma) + 좌우 여백 16 */
    margin: 0 auto;
    padding: 0.75rem 1rem;
    line-height: 1.6;
}
.ctf-notice-text { display: inline-flex; align-items: center; gap: 0.625rem; font-size: 1.25rem; font-weight: 500; }
.ctf-notice-home .ctf-notice-text { font-size: 1.125rem; font-weight: 400; }
.ctf-notice-dot { display: block; flex: none; }
.ctf-header a.ctf-notice-link,
.ctf-header button.ctf-notice-link { padding: 0; font-family: inherit; font-size: 1.25rem; font-weight: 700; line-height: 1.6; color: var(--wd-accent); white-space: nowrap; background: none; border: 0; cursor: pointer; }

/* 메뉴 줄 — Figma 468:47: 연초록 바탕 · 로고 132×52 · 메뉴 21px 굵게 · 오른쪽 전화 · 언어 · 노란 버튼 */
.ctf-bar { background: var(--wd-header-bg); border-bottom: 1px solid var(--wd-header-line); }
.ctf-bar-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 77rem;
    margin: 0 auto;
    padding: 0.875rem 1rem;
}
.ctf-header a.ctf-logo { display: block; flex: none; line-height: 0; }
.ctf-logo img { display: block; width: 8.25rem; height: 3.25rem; object-fit: contain; mix-blend-mode: multiply; }   /* Figma 로고 레이어가 multiply — 흰 바탕이 연초록에 섞여 사라짐 */
.ctf-nav { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; min-width: 0; }
.ctf-nav-head { display: none; }
.ctf-nav-list { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.25rem 1rem; margin: 0 auto; }
.ctf-nav-right { display: flex; align-items: center; gap: 0.5rem; }
.ctf-header a.ctf-nav-link,
.ctf-header .ctf-drop-button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 2.75rem;
    padding: 0;
    font-family: inherit;
    font-size: 1.3125rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--wd-text);
    white-space: nowrap;
    background: none;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}
.ctf-header .ctf-drop-button::after { content: "▾"; font-size: 0.75rem; }
/* 현재 메뉴 — Figma 공통/헤더(30:10) 초록 글자 */
.ctf-header a.ctf-nav-link.is-current,
.ctf-header .ctf-drop-button.is-current { color: var(--wd-green); }
.ctf-header a.ctf-nav-link:hover,
.ctf-header .ctf-drop-button:hover { color: var(--wd-green); text-decoration: none; }

/* 펼침 메뉴 판 — Figma 468:1635(매니지먼트 두 카드) · 468:1690/1704/1721(머리 제목 + 항목) — 누르면 열림(front.js 가 is-open), 데스크톱은 마우스를 올려도 열림 */
.ctf-drop { position: relative; }
.ctf-drop-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1010;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    width: 23.75rem;
    padding: 1rem;
    line-height: 1.45;
    background: var(--wd-white);
    border: 1px solid var(--wd-border);
    border-radius: 1rem;
    box-shadow: var(--wd-pop-shadow-soft);
}
.ctf-drop.is-open > .ctf-drop-panel { display: flex; }
.ctf-drop-panel-wide { gap: 0.625rem; width: auto; box-shadow: var(--wd-pop-shadow); }
.ctf-drop-panel-small { width: auto; min-width: 12rem; }
.ctf-drop-head { font-size: 0.9375rem; font-weight: 700; color: var(--wd-green); }
.ctf-drop-cards { display: flex; gap: 0.75rem; }
.ctf-header a.ctf-drop-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 18.75rem;
    padding: 1rem 1.125rem;
    color: var(--wd-text);
    background: var(--wd-gray-card);
    border-radius: 0.75rem;
}
.ctf-header a.ctf-drop-card-full { background: var(--wd-green-light); }
.ctf-header a.ctf-drop-card:hover { text-decoration: none; box-shadow: inset 0 0 0 2px var(--wd-green); }
.ctf-drop-card .ctf-drop-lead { font-size: 1.125rem; font-weight: 700; color: var(--wd-green); white-space: pre-wrap; }
.ctf-drop-card b { font-size: 1.5rem; font-weight: 700; }
.ctf-drop-card-full b { color: var(--wd-green-dark); }
.ctf-drop-card .ctf-drop-desc { font-size: 1.1875rem; font-weight: 500; color: var(--wd-text-strong); }
.ctf-drop-card .ctf-drop-fee { font-size: 1.125rem; font-weight: 500; color: var(--wd-text-2); }
.ctf-header a.ctf-drop-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.625rem 0.75rem;
    color: var(--wd-text);
    border-radius: 0.625rem;
}
/* Figma 는 각 판의 첫 항목을 연초록으로 그림 — 마우스·포커스 · 지금 보는 화면 표시로 씀 */
.ctf-header a.ctf-drop-item:hover,
.ctf-header a.ctf-drop-item:focus-visible,
.ctf-header a.ctf-drop-item[aria-current="page"] { text-decoration: none; background: var(--wd-green-light); }
.ctf-header a.ctf-drop-item:hover b,
.ctf-header a.ctf-drop-item[aria-current="page"] b { color: var(--wd-green-dark); }
.ctf-drop-item b { font-size: 1.1875rem; font-weight: 700; }
.ctf-drop-item span { font-size: 1rem; font-weight: 500; color: var(--wd-text-2); }
.ctf-header a.ctf-drop-foot { font-size: 1.1875rem; font-weight: 500; color: var(--wd-green); }
@media (hover: hover) and (min-width: 1025px) {
    .ctf-drop:hover > .ctf-drop-panel { display: flex; }
}

/* 전화 — 띠 "상담하기" 왼쪽(범님 26.11.17, Figma 468:56 메뉴 줄에서 옮김). 글자 크기는 Figma 그대로 "Call" 17 · 번호 20 굵게, 색만 초록 바탕용 흰 글자 */
.ctf-notice-end { display: inline-flex; flex: none; align-items: center; gap: 1.5rem; }
.ctf-header a.ctf-notice-phone { display: inline-flex; align-items: center; gap: 0.375rem; line-height: 1.6; color: var(--pm-color-on-dark); white-space: nowrap; }
.ctf-notice-phone span { font-size: 1.0625rem; font-weight: 500; }
.ctf-notice-phone b { font-size: 1.25rem; font-weight: 700; }

/* 언어 — 접힌 단추(details) · 열면 아래 상자. Figma 484:2320(단추 48px · 지구 20) · 482:2723(상자 · 고른 언어 ✓) */
.ctf-lang { position: relative; }
.ctf-lang-current {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 3rem;
    padding: 0 0.875rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--wd-text);
    white-space: nowrap;
    list-style: none;
    background: var(--wd-white);
    border: 1px solid var(--wd-lang-border);
    border-radius: var(--pm-radius-round);
    cursor: pointer;
}
.ctf-lang-current::-webkit-details-marker { display: none; }
.ctf-lang-current img { display: block; flex: none; }
.ctf-lang-current::after { content: "▾"; font-size: 0.75rem; font-weight: 700; }
.ctf-lang-panel {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1010;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    width: 16.25rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--wd-white);
    border: 1px solid var(--wd-pop-border);
    border-radius: 0.875rem;
    box-shadow: var(--wd-pop-shadow);
}
.ctf-header .ctf-lang-panel button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: normal;
    color: var(--wd-text);
    text-align: left;
    background: none;
    border: 0;
    border-radius: 0.625rem;
    cursor: pointer;
}
.ctf-header .ctf-lang-panel button:hover { background: var(--wd-gray-card); }
.ctf-header .ctf-lang-panel button[aria-pressed="true"] { font-weight: 700; color: var(--wd-green); background: var(--wd-green-light); }
.ctf-header .ctf-lang-panel button[aria-pressed="true"]::after { content: "✓"; font-weight: 700; }
.ctf-lang-note { padding: 0.25rem 0.875rem 0.375rem; font-size: 0.8125rem; font-weight: 500; color: var(--wd-text-2); }   /* Figma 13px */

.ctf-account { display: flex; align-items: center; gap: 0.5rem; }
.ctf-header a.ctf-account-link { font-size: 1.3125rem; font-weight: 700; line-height: 1.6; color: var(--wd-text); white-space: nowrap; }

/* 로그인 후 내 메뉴 줄(웹) */
.ctf-mine { background: var(--wd-bg); border-bottom: 1px solid var(--wd-border); }
.ctf-header .ctf-mine-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; max-width: 75rem; margin: 0 auto; padding: 0.25rem 1rem; }
.ctf-header .ctf-mine-list > li > a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; color: var(--wd-text-2); }
.ctf-header .ctf-mine-list .ctf-drop-button { font-size: 1rem; font-weight: 600; line-height: 1.2; color: var(--wd-text-2); }   /* 상단 메뉴 21px 를 물려받지 않게 */
.ctf-header .ctf-mine-list a.ctf-drop-item { font-weight: 600; }
.ctf-mine-end { margin-left: auto; }

/* 모바일 ☰ — Figma 468:761(44px · 테두리 · 줄 세 개 아이콘) */
.ctf-header .ctf-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: none;
    border: 1px solid var(--wd-border);
    border-radius: 0.75rem;
    cursor: pointer;
}
.ctf-menu-toggle img { display: block; }
.ctf-mobile-tools { display: none; align-items: center; gap: 0.5rem; }
.ctf-mine-mobile { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.75rem; }
.ctf-mine-group { display: flex; flex-direction: column; gap: 0.25rem; }
.ctf-mine-title { font-size: 1rem; font-weight: 700; color: var(--wd-text-3); }
.ctf-header .ctf-mine-group a { padding: 0.375rem 0; font-size: 1.125rem; font-weight: 600; color: var(--wd-text); }
.ctf-nav-foot { flex-direction: column; gap: 1rem; padding-top: 0.25rem; }

/* 데스크톱 간격 — Figma 공통/헤더 30:7: 로고 · 메뉴 · 오른쪽 묶음 사이 2.5, 오른쪽 묶음 안 6 */
@media (min-width: 1025px) {
    .ctf-bar-inner { gap: 0.125rem; }
    .ctf-nav { column-gap: 0.125rem; }
    .ctf-nav-right,
    .ctf-account { gap: 0.375rem; }
    .ctf-header .ctf-drop-button { gap: 0.25rem; }
}

/* 좁은 데스크톱 — 1440 Figma 폭에 못 미치면 띠 전화를 빼고(영문 띠 문구가 두 줄로 접힘) 메뉴를 조금 줄인다 */
@media (max-width: 1240px) {
    .ctf-header a.ctf-notice-phone { display: none; }
    .ctf-header a.ctf-nav-link,
    .ctf-header .ctf-drop-button { font-size: 1.125rem; }
    .ctf-header .ctf-button-head { padding: 0.75rem 1.25rem; font-size: 1.1875rem; }
}

/* 모바일 — Figma 468:747 상단(로고 112×44 · 언어 · ☰) · 468:1649 전체 메뉴(머리 "Menu" ✕ · 줄 21px · 노란 버튼 둘) */
@media (max-width: 1024px) {
    .ctf-only-desktop { display: none !important; }
    .ctf-only-mobile { display: flex !important; }
    .ctf-notice-inner { padding: 0.625rem 1rem; }
    .ctf-notice-text,
    .ctf-notice-home .ctf-notice-text { font-size: 1.1875rem; font-weight: 500; }
    .ctf-header a.ctf-notice-link,
    .ctf-header button.ctf-notice-link { font-size: 1.1875rem; }
    .ctf-bar-inner { padding: 0.75rem 1rem; }
    .ctf-logo img { width: 7rem; height: 2.75rem; }
    .ctf-mobile-tools { display: flex; }
    .ctf-mobile-tools .ctf-lang-current { height: 2.75rem; font-size: 1rem; }
    .ctf-header .ctf-menu-toggle { display: inline-flex; }
    .ctf-nav {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1020;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.25rem;
        overflow-y: auto;
        padding: 1.25rem;
        background: var(--wd-white);
    }
    .ctf-nav.is-open { display: flex; }
    .ctf-nav-head { display: flex; align-items: center; justify-content: space-between; font-size: 1.5rem; font-weight: 700; line-height: 1.45; }
    .ctf-header .ctf-nav-close { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; font-family: inherit; font-size: 1.5rem; font-weight: 700; color: var(--wd-text); background: none; border: 0; cursor: pointer; }
    .ctf-nav-list { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; margin: 0; }
    .ctf-nav-right { flex-direction: column; align-items: stretch; }
    .ctf-header a.ctf-nav-link,
    .ctf-header .ctf-drop-button { justify-content: space-between; width: 100%; padding: 1rem 0.25rem; font-size: 1.3125rem; line-height: 1.45; border-bottom: 1px solid var(--wd-border); }
    .ctf-header .ctf-drop-button::after { color: var(--wd-green); }
    .ctf-header .ctf-drop.is-open > .ctf-drop-button { color: var(--wd-green); }
    .ctf-header .ctf-drop.is-open > .ctf-drop-button::after { content: "▴"; }
    .ctf-header a.ctf-nav-link::after { content: "›"; font-size: 1.3125rem; color: var(--wd-green); }
    .ctf-drop-panel { position: static; width: auto; padding: 0.5rem 0; background: none; border: 0; box-shadow: none; }
    .ctf-drop-panel-wide { box-shadow: none; }
    .ctf-drop-head,
    .ctf-drop-panel-wide .ctf-drop-fee,
    .ctf-header a.ctf-drop-foot { display: none; }
    .ctf-drop-cards { flex-direction: column; gap: 0.5rem; }
    .ctf-header a.ctf-drop-card { width: auto; gap: 0.125rem; padding: 0.875rem 1rem; }
    .ctf-drop-card .ctf-drop-lead { font-size: 1.0625rem; }
    .ctf-drop-card b { font-size: 1.375rem; }
    .ctf-drop-card .ctf-drop-desc { font-size: 1.125rem; }
    .ctf-account { justify-content: flex-start; flex-wrap: wrap; padding-top: 0.5rem; }
    /* 모바일 맨 아래 노란 버튼 둘 — Figma 468:1677(전화 · 진초록 19px) · 468:1680(무료 상담 20px), 모서리 12 */
    .ctf-nav-foot .ctf-button { min-height: 3.625rem; padding: 1rem; font-size: 1.1875rem; line-height: 1.45; border-radius: 0.75rem; }
    .ctf-nav-foot .ctf-button-phone { color: var(--wd-green-dark); }
    .ctf-nav-foot .ctf-button + .ctf-button { font-size: 1.25rem; }
    .ctf-button { font-size: 1.1875rem; }
}

/* 푸터 — Figma 490:42 PM 스타일: 흰 바탕 · 위 구분선 · 링크 15px(첫 링크 진초록) · 세로 구분선 · 회사 정보 14px 회색 */
footer.ctf-footer { padding: 2.75rem 1rem; color: var(--wd-footer-text); background: var(--wd-white); border-top: 1px solid var(--wd-border); }
.ctf-footer-inner { display: flex; flex-direction: column; gap: 0.75rem; max-width: 57.5rem; margin: 0 auto; line-height: 1.5; }
.ctf-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem 1.125rem; }
.ctf-footer-links li { display: flex; align-items: center; gap: 1.125rem; }
.ctf-footer-links li + li::before { content: ""; width: 1px; height: 1rem; background: var(--wd-divider); }
.ctf-footer .ctf-footer-links a { font-size: 0.9375rem; color: var(--wd-text); }   /* .front a(초록) 보다 우선 */
.ctf-footer a.ctf-footer-strong { font-weight: 600; color: var(--wd-footer-strong); }
.ctf-footer-company { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.375rem 0; font-size: 0.875rem; }
.ctf-footer-ack { padding: 0.375rem 0; font-size: 0.875rem; }
