/* ============================================================
   YEON Living — 헤더 · 푸터 · 상담 챗봇

   이 파일은 어느 페이지에 넣어도 기존 스타일과 부딪히지 않습니다.
   클래스 이름이 전부 .yl- / .yc- 로 시작하고, 색과 글꼴도
   이 안에서만 쓰이도록 가둬두었기 때문입니다.

   그래서 SK매직·LG 페이지처럼 자기 CSS를 이미 갖고 있는 곳에도
   이 파일 한 줄만 넣으면 됩니다.
   ============================================================ */

@font-face{
  font-family:"Pretendard";
  src:url("/assets/pretendard-400.woff2") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"Pretendard";
  src:url("/assets/pretendard-600.woff2") format("woff2");
  font-weight:600;font-style:normal;font-display:swap;
}

/* 색·글꼴을 이 컴포넌트들 안에만 정의합니다 (페이지 :root 를 건드리지 않습니다) */
.yl-header,.yl-sheet,.yl-footer,.yc{
  --paper:#ffffff;
  --paper-2:#f5f3ed;
  --ink:#4b544c;
  --ink-strong:#374238;
  --ink-soft:#8a8b7e;
  --thread:#b08e71;
  --thread-2:#87a077;
  --line:rgba(55,66,56,.15);
  --line-2:rgba(55,66,56,.09);
  --shadow:0 18px 44px rgba(55,66,56,.12);
  --shadow-sm:0 6px 18px rgba(55,66,56,.08);
  --serif:ui-serif,"Noto Serif KR","Nanum Myeongjo",Batangche,Georgia,"Times New Roman",serif;
  --sans:"Pretendard",-apple-system,system-ui,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif;
  --wrap:1080px;
  font-family:var(--sans);
}
.yl-header *,.yl-sheet *,.yl-footer *,.yc *{box-sizing:border-box}
/* 이 파일만 단독으로 쓰는 페이지에서도 hidden 이 먹도록 */
.yl-header [hidden],.yl-sheet [hidden],.yl-footer [hidden],.yc [hidden],.yc-panel[hidden]{display:none!important}
.yl-header h4,.yl-footer h4{margin:0}
.yl-footer p,.yc p{margin:0}

/* ============================================================
   헤더 · 글로벌 네비게이션
   ============================================================ */
.yl-header{
  position:sticky;top:0;z-index:60;backdrop-filter:blur(10px) saturate(160%);
  background:color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom:1px solid var(--line);
}
.yl-nav{
  display:flex;align-items:center;gap:18px;height:66px;
  max-width:var(--wrap);margin:0 auto;padding:0 24px;
}
.yl-logo{display:flex;align-items:center;gap:11px;text-decoration:none;flex:none}
.yl-logo svg{width:34px;height:34px;flex:none;overflow:visible}
.yl-wm{font-size:17px;letter-spacing:.06em;font-weight:600;white-space:nowrap}
.yl-wm .a{color:var(--ink-strong);letter-spacing:.12em}
.yl-wm .b{color:var(--thread);letter-spacing:.04em}
.yl-badge{
  margin-left:2px;font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--thread);border:1px solid var(--line);border-radius:999px;padding:3px 8px;
}

.yl-menu{display:none;align-items:center;gap:2px;margin-left:8px}
@media(min-width:1000px){.yl-menu{display:flex}}
.yl-menu > a,.yl-menu > .yl-drop > button{
  font-family:var(--sans);font-size:13.5px;font-weight:600;color:var(--ink);
  text-decoration:none;padding:9px 12px;border-radius:10px;border:0;background:transparent;
  cursor:pointer;white-space:nowrap;transition:background .15s,color .15s;
  display:inline-flex;align-items:center;gap:5px;
}
.yl-menu > a:hover,.yl-menu > .yl-drop > button:hover{background:var(--paper-2);color:var(--ink-strong)}
.yl-menu > a[aria-current="page"],.yl-menu > .yl-drop.on > button{color:var(--ink-strong);background:var(--paper-2)}
.yl-menu > a[aria-current="page"]{box-shadow:inset 0 -2px 0 var(--thread)}

.yl-drop{position:relative}
.yl-drop > button svg{transition:transform .2s}
.yl-drop[data-open="1"] > button svg{transform:rotate(180deg)}
.yl-drop-panel{
  position:absolute;top:calc(100% + 8px);left:0;min-width:190px;
  background:var(--paper);border:1px solid var(--line);border-radius:14px;
  box-shadow:var(--shadow);padding:7px;display:grid;gap:2px;
}
.yl-drop-panel[hidden]{display:none}
.yl-drop-panel a{
  display:block;padding:9px 12px;border-radius:9px;text-decoration:none;
  font-size:13.5px;font-weight:600;color:var(--ink);transition:background .15s
}
.yl-drop-panel a:hover{background:var(--paper-2);color:var(--ink-strong)}
.yl-drop-panel a small{display:block;font-weight:500;font-size:11.5px;color:var(--ink-soft);margin-top:1px}

.yl-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.yl-lang{display:flex;border:1px solid var(--line);border-radius:999px;overflow:hidden;font-size:11.5px;font-weight:700;flex:none}
.yl-lang button{border:0;background:transparent;color:var(--ink-soft);padding:6px 11px;cursor:pointer;font-family:inherit}
.yl-lang button.on{background:var(--ink-strong);color:var(--paper)}
.yl-burger{
  display:grid;place-items:center;width:40px;height:40px;border-radius:11px;
  border:1px solid var(--line);background:var(--paper);color:var(--ink-strong);cursor:pointer;flex:none;
}
@media(min-width:1000px){.yl-burger{display:none}}

/* 모바일 서랍 */
.yl-sheet{
  position:fixed;inset:0;z-index:70;background:rgba(35,42,36,.45);
  backdrop-filter:blur(2px);display:flex;justify-content:flex-end;
}
.yl-sheet[hidden]{display:none}
.yl-sheet-panel{
  width:min(320px,86vw);background:var(--paper);height:100%;overflow-y:auto;
  padding:20px 18px 40px;box-shadow:-14px 0 40px rgba(35,42,36,.2);
  animation:yl-slide .24s cubic-bezier(.2,.9,.3,1);
}
@keyframes yl-slide{from{transform:translateX(24px);opacity:.4}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.yl-sheet-panel{animation:none}}
.yl-sheet-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.yl-sheet-panel a{
  display:block;padding:13px 12px;border-radius:11px;text-decoration:none;
  font-size:15.5px;font-weight:600;color:var(--ink-strong);
}
.yl-sheet-panel a:hover{background:var(--paper-2)}
.yl-sheet-panel a[aria-current="page"]{background:var(--paper-2);box-shadow:inset 2px 0 0 var(--thread)}
.yl-sheet-panel .grp{
  margin-top:14px;padding-top:12px;border-top:1px solid var(--line);
  font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-soft);padding-left:12px;
}
.yl-sheet-panel .sub{padding-left:22px;font-size:14.5px;font-weight:500}


/* ============================================================
   푸터
   ============================================================ */
.yl-footer{padding:64px 0 56px;border-top:1px solid var(--line);background:var(--paper)}
.yl-footer-grid{
  max-width:var(--wrap);margin:0 auto;padding:0 24px;
  display:grid;gap:34px;grid-template-columns:1fr;
}
@media(min-width:820px){.yl-footer-grid{grid-template-columns:1.4fr 1fr 1fr;gap:40px}}
.yl-footer .lockup{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.yl-footer .lockup svg{width:52px;height:52px;overflow:visible}
.yl-footer .tag{
  font-family:var(--sans);font-size:10.5px;font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;color:var(--ink-soft);
}
.yl-footer h4{
  font-family:var(--sans);font-size:11.5px;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-soft);margin-bottom:14px;
}
.yl-footer nav{display:grid;gap:9px}
.yl-footer nav a{font-size:14px;color:var(--ink);text-decoration:none}
.yl-footer nav a:hover{color:var(--thread)}
.yl-footer-base{
  max-width:var(--wrap);margin:34px auto 0;padding:24px 24px 0;border-top:1px solid var(--line-2);
  display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;
  font-size:12.5px;color:var(--ink-soft);
}
.yl-social{display:flex;gap:10px}
.yl-social a{
  display:grid;place-items:center;width:36px;height:36px;border-radius:50%;
  border:1px solid var(--line);color:var(--ink-soft);transition:color .18s,border-color .18s;
}
.yl-social a:hover{color:var(--thread);border-color:var(--thread)}
.yl-social svg{width:17px;height:17px}

/* ============================================================
   상담 챗봇 (오른쪽 아래)
   ============================================================ */
.yc{position:fixed;right:18px;bottom:18px;z-index:85;display:flex;flex-direction:column;
  align-items:flex-end;gap:12px;font-family:var(--sans)}
@media(max-width:640px){.yc{right:12px;bottom:12px;gap:10px}}

.yc-panel{
  width:min(370px,calc(100vw - 32px));height:min(560px,calc(100vh - 130px));
  display:flex;flex-direction:column;overflow:hidden;
  background:var(--paper);border:1px solid var(--line);border-radius:20px;
  box-shadow:0 22px 56px rgba(34,42,36,.24),0 2px 8px rgba(34,42,36,.08);
  animation:yc-pop .26s cubic-bezier(.2,.9,.3,1);
}
@keyframes yc-pop{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.yc-panel{animation:none}}

.yc-head{display:flex;align-items:center;gap:11px;padding:15px 16px;background:var(--ink-strong);color:#fff;flex:none}
.yc-avatar{
  flex:none;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;
  background:rgba(255,255,255,.13);font-family:var(--serif);font-size:18px;color:#fff;
}
.yc-headtxt{min-width:0;flex:1}
.yc-name{display:block;font-size:14.5px;font-weight:700;letter-spacing:.01em}
.yc-status{display:block;font-style:normal;font-size:11.5px;opacity:.72;margin-top:2px}
.yc-x{margin-left:auto;flex:none;background:transparent;border:0;color:#fff;opacity:.7;cursor:pointer;
  padding:4px;line-height:0;border-radius:8px}
.yc-x:hover{opacity:1;background:rgba(255,255,255,.14)}

.yc-log{flex:1;overflow-y:auto;padding:18px 16px 6px;display:flex;flex-direction:column;gap:14px;
  background:var(--paper-2)}
.yc-msg{display:flex;flex-direction:column;gap:8px;max-width:88%}
.yc-msg--bot{align-self:flex-start}
.yc-msg--me{align-self:flex-end;align-items:flex-end}
.yc-bubble{
  padding:12px 15px;border-radius:16px;font-size:14px;line-height:1.7;
  background:var(--paper);color:var(--ink);border:1px solid var(--line);
  border-bottom-left-radius:5px;word-break:keep-all;overflow-wrap:break-word;
}
.yc-bubble b{color:var(--ink-strong);font-weight:700}
.yc-msg--me .yc-bubble{
  background:var(--ink-strong);color:#fff;border-color:var(--ink-strong);
  border-bottom-left-radius:16px;border-bottom-right-radius:5px;
}
.yc-cta{display:flex;flex-wrap:wrap;gap:7px}
.yc-b{
  display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;
  text-decoration:none;padding:8px 13px;border-radius:999px;
  background:var(--paper);color:var(--ink-strong);border:1px solid var(--line);transition:all .16s;
}
.yc-b:hover{border-color:var(--thread);color:var(--thread)}
.yc-b--wa{background:#1a9c4d;border-color:#1a9c4d;color:#fff}
.yc-b--wa:hover{background:#158340;border-color:#158340;color:#fff}
.yc-b--kakao{background:#fae100;border-color:#fae100;color:#3b2b00}
.yc-b--kakao:hover{color:#3b2b00;border-color:#e5cf00;background:#e5cf00}

.yc-typing{display:inline-flex;gap:4px;align-items:center;padding:2px 0}
.yc-typing i{width:6px;height:6px;border-radius:50%;background:var(--ink-soft);opacity:.5;
  animation:yc-blink 1.1s infinite}
.yc-typing i:nth-child(2){animation-delay:.16s}
.yc-typing i:nth-child(3){animation-delay:.32s}
@keyframes yc-blink{0%,60%,100%{opacity:.28;transform:translateY(0)}30%{opacity:.9;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.yc-typing i{animation:none}}

.yc-chips{display:flex;flex-wrap:wrap;gap:6px;padding:12px 16px 4px;background:var(--paper-2);flex:none}
.yc-chip{
  font-family:inherit;font-size:12.5px;font-weight:600;color:var(--ink-strong);cursor:pointer;
  background:var(--paper);border:1px solid var(--line);border-radius:999px;padding:8px 13px;
  transition:all .16s;text-align:left;
}
.yc-chip:hover{border-color:var(--thread);color:var(--thread)}

.yc-input{display:flex;gap:8px;padding:12px 14px;border-top:1px solid var(--line);background:var(--paper);flex:none}
.yc-input input{
  flex:1;min-width:0;font-family:inherit;font-size:14px;color:var(--ink-strong);
  background:var(--paper-2);border:1px solid var(--line);border-radius:999px;padding:11px 16px;
}
.yc-input input:focus{outline:none;border-color:var(--thread);background:var(--paper)}
.yc-input button{
  flex:none;width:40px;height:40px;border-radius:50%;border:0;cursor:pointer;
  background:var(--ink-strong);color:#fff;display:grid;place-items:center;transition:background .16s;
}
.yc-input button:hover{background:#2c352d}
.yc-foot{
  padding:0 16px 12px;font-size:11px;color:var(--ink-soft);text-align:center;
  background:var(--paper);flex:none;
}

.yc-btn{
  position:relative;width:56px;height:56px;border-radius:50%;border:0;cursor:pointer;
  background:var(--ink-strong);color:#fff;display:grid;place-items:center;font-family:inherit;
  box-shadow:0 8px 22px rgba(34,42,36,.30);transition:transform .18s,box-shadow .18s;
}
.yc-btn:hover{transform:scale(1.05);box-shadow:0 10px 26px rgba(34,42,36,.36)}
.yc-btn svg{position:absolute;width:24px;height:24px;transition:opacity .18s,transform .18s}
.yc-btn .i-close{opacity:0;transform:rotate(-40deg) scale(.7)}
.yc[data-open="1"] .yc-btn .i-chat{opacity:0;transform:rotate(40deg) scale(.7)}
.yc[data-open="1"] .yc-btn .i-close{opacity:1;transform:none}
.yc-dot{position:absolute;top:1px;right:1px;width:13px;height:13px;border-radius:50%;
  background:var(--thread);border:2.5px solid var(--paper)}
.yc[data-open="1"] .yc-dot,.yc[data-seen="1"] .yc-dot{display:none}
@media(prefers-reduced-motion:reduce){.yc-btn,.yc-btn svg{transition:none}}

/* ============================================================
   프로모션 팝업
   ============================================================ */
.yp{
  --paper:#ffffff; --paper-2:#f5f3ed; --ink:#4b544c; --ink-strong:#374238;
  --ink-soft:#8a8b7e; --thread:#b08e71; --thread-2:#87a077;
  --line:rgba(55,66,56,.15);
  --serif:ui-serif,"Noto Serif KR","Nanum Myeongjo",Batangche,Georgia,serif;
  --sans:"Pretendard",-apple-system,system-ui,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif;
  position:fixed;inset:0;z-index:95;font-family:var(--sans);
  background:rgba(30,37,31,.55);backdrop-filter:blur(4px);
  display:flex;align-items:center;justify-content:center;padding:20px 16px;overflow-y:auto;
  animation:yp-fade .22s ease;
}
.yp *{box-sizing:border-box}
.yp.is-out{animation:yp-fade .2s ease reverse forwards}
@keyframes yp-fade{from{opacity:0}to{opacity:1}}

.yp-card{
  position:relative;width:min(420px,100%);margin:auto;background:var(--paper);
  border-radius:22px;overflow:hidden;box-shadow:0 30px 70px rgba(30,37,31,.34);
  animation:yp-rise .3s cubic-bezier(.2,.9,.3,1);
}
@keyframes yp-rise{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .yp,.yp.is-out,.yp-card{animation:none}
}
.yp-x{
  position:absolute;top:12px;right:12px;z-index:2;width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;cursor:pointer;border:0;
  background:rgba(255,255,255,.86);color:var(--ink-strong);backdrop-filter:blur(6px);
  box-shadow:0 2px 8px rgba(30,37,31,.14);
}
.yp-x:hover{background:#fff}
.yp-shot{background:var(--paper-2);aspect-ratio:4/5;overflow:hidden}
.yp-shot img{width:100%;height:100%;object-fit:cover;display:block}

.yp-body{padding:30px 28px 22px;text-align:center;display:flex;flex-direction:column;gap:0}
.yp-eyebrow{
  font-size:11.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;
  color:var(--thread);margin-bottom:14px;
}
.yp-title{
  margin:0;font-family:var(--serif);font-weight:600;font-size:26px;line-height:1.34;
  color:var(--ink-strong);letter-spacing:-.01em;
}
.yp-title b{font-weight:700;color:var(--thread)}
.yp-period{
  margin:14px auto 0;display:inline-block;font-size:12.5px;font-weight:700;letter-spacing:.02em;
  color:var(--ink-strong);background:var(--paper-2);border-radius:999px;padding:7px 15px;
}
.yp-text{margin:16px 0 0;font-size:13.8px;line-height:1.72;color:var(--ink-soft)}
.yp-ticks{
  list-style:none;margin:18px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:7px;justify-content:center;
}
.yp-ticks li{
  display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:650;
  color:var(--ink);background:var(--paper-2);border-radius:999px;padding:6px 12px;
}
.yp-ticks svg{width:12px;height:12px;color:var(--thread-2);flex:none}
.yp-acts{display:flex;flex-direction:column;gap:9px;margin-top:24px}
.yp-btn{
  display:block;text-align:center;text-decoration:none;font-size:14.5px;font-weight:700;
  padding:14px 20px;border-radius:12px;border:1px solid var(--line);
  color:var(--ink-strong);background:var(--paper);transition:all .16s;
}
.yp-btn:hover{border-color:var(--thread);color:var(--thread)}
.yp-btn--go{background:var(--ink-strong);border-color:var(--ink-strong);color:#fff}
.yp-btn--go:hover{background:#2c352d;border-color:#2c352d;color:#fff}
.yp-limited{margin:16px 0 0;font-size:11.5px;line-height:1.6;color:var(--ink-soft)}

.yp-foot{display:flex;border-top:1px solid var(--line)}
.yp-foot button{
  flex:none;background:transparent;border:0;cursor:pointer;font-family:inherit;
  font-size:13px;font-weight:700;color:var(--ink-strong);padding:15px 22px;
  border-left:1px solid var(--line);
}
.yp-foot button:hover{background:var(--paper-2)}
/* 오늘 하루 보지 않기 체크박스 */
.yp-chk{
  flex:1;display:flex;align-items:center;gap:9px;cursor:pointer;
  padding:15px 16px;font-size:12.5px;font-weight:600;color:var(--ink-soft);user-select:none;
}
.yp-chk:hover{background:var(--paper-2);color:var(--ink-strong)}
.yp-chk input{
  width:17px;height:17px;flex:none;margin:0;cursor:pointer;accent-color:var(--ink-strong);
}

@media(max-width:420px){
  .yp-body{padding:26px 22px 20px}
  .yp-title{font-size:23px}
}

/* 포스터가 들어간 팝업 */
.yp-card--poster{width:min(460px,100%)}
.yp-card--poster .yp-shot{aspect-ratio:auto;display:block;background:var(--paper-2)}
.yp-card--poster .yp-shot img{width:100%;height:auto;object-fit:contain}
.yp-card--poster .yp-body{padding:18px 20px 16px}
.yp-card--poster .yp-acts{margin-top:0}
.yp-card--poster .yp-limited{margin-top:13px}
.yp .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
