/* Demo Guide Mode — HRDe LMS style */
:root{
  --guide-amber:#ffb800;
  --guide-amber-dark:#e5a500;
  --guide-amber-soft:rgba(255,184,0,.12);
  --guide-muted:#c5cad3;
  --guide-muted-mark:#b8bec8;
  --guide-muted-soft:rgba(197,202,211,.1);
}

/* ── Header control (beside logo) ── */
.header #wrap .guide-brand,
.top_header #wrap .guide-brand,
.Header .guide-brand{
  position:relative;
  display:flex;
  align-items:center;
  flex-shrink:0;
  margin-left:14px;
  overflow:visible;
  z-index:12;
}

.Header .guide-brand{
  display:inline-flex;
  vertical-align:middle;
  margin-left:12px;
}
.Header .guide-brand__inner{
  padding:5px 10px;
  gap:8px;
}
.Header .guide-brand__label{
  font-size:12px;
}
.Header .guide-brand__hint{
  display:none;
}

.guide-brand__inner{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px 12px;
  background:#fff;
  border-radius:8px;
  border:1px solid #e8ecf2;
  box-shadow:0 1px 6px rgba(15,23,42,.06);
}

.guide-brand__label{
  font:700 13px/1.2 'Malgun Gothic',sans-serif;
  color:#1f2937;
  white-space:nowrap;
}

.guide-brand__hint{
  font:11px/1.3 'Malgun Gothic',sans-serif;
  color:#9ca3af;
  white-space:nowrap;
}

.top_header #wrap .guide-brand{
  margin-left:12px;
}
.top_header #wrap .guide-brand__inner{
  padding:5px 10px;
  gap:8px;
}
.top_header #wrap .guide-brand__label{
  font-size:12px;
}
.top_header #wrap .guide-brand__hint{
  display:none;
}

/* Toggle switch */
.guide-switch{
  position:relative;
  flex-shrink:0;
  width:42px;
  height:24px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
}

.guide-switch__track{
  display:block;
  width:100%;
  height:100%;
  border-radius:999px;
  background:#d1d5db;
  transition:background .2s ease;
}

.guide-switch__thumb{
  position:absolute;
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 4px rgba(0,0,0,.18);
  transition:transform .2s ease;
}

.guide-switch[aria-checked="true"] .guide-switch__track{
  background:var(--guide-amber);
}

.guide-switch[aria-checked="true"] .guide-switch__thumb{
  transform:translateX(18px);
}

@media (max-width: 1000px){
  .guide-brand__hint{
    display:none;
  }
  .guide-brand__inner{
    padding:5px 10px;
    gap:8px;
  }
  .guide-brand__label{
    font-size:12px;
  }
}

@media (max-width: 640px){
  .header #wrap .guide-brand,
  .top_header #wrap .guide-brand{
    margin-left:8px;
  }
  .guide-brand__label{
    display:none;
  }
  .guide-brand__inner{
    padding:4px 8px;
    box-shadow:none;
    border-color:#eef1f5;
  }
}

/* ── Highlight ring (pseudo-element, not outline) ── */
body.guide-on .guide-target{
  cursor:help;
}

body.guide-on .guide-target-host{
  position:relative !important;
  z-index:1;
  overflow:visible !important;
}

body.guide-on .guide-target-host::before,
body.guide-on .guide-target-ring::before{
  content:'';
  position:absolute;
  inset:0;
  border:2px dashed var(--guide-muted);
  border-radius:6px;
  pointer-events:none;
  z-index:2;
  box-sizing:border-box;
  background:transparent;
  box-shadow:none;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

body.guide-on .guide-target--active::before,
body.guide-on .guide-target-host:hover::before,
body.guide-on .guide-target-ring:hover::before,
body.guide-on .guide-target-ring.guide-target--active::before{
  border-color:var(--guide-amber);
  background:var(--guide-amber-soft);
  box-shadow:0 0 0 1px rgba(255,184,0,.18), 0 0 12px rgba(255,184,0,.24);
}

.guide-mark{
  position:absolute;
  top:4px;
  right:4px;
  z-index:4;
  width:20px;
  height:20px;
  border-radius:50%;
  background:var(--guide-muted-mark);
  color:#fff;
  font:700 12px/20px 'Malgun Gothic',sans-serif;
  text-align:center;
  pointer-events:none;
  box-shadow:none;
  opacity:.85;
  transition:background .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease;
}

body.guide-on .guide-target-host:hover > .guide-mark,
body.guide-on .guide-target-host.guide-target--active > .guide-mark,
body.guide-on .guide-target-ring:hover > .guide-mark,
body.guide-on .guide-target-ring.guide-target--active > .guide-mark,
body.guide-on .guide-target:hover > .guide-mark,
body.guide-on .guide-target.guide-target--active > .guide-mark{
  background:var(--guide-amber);
  box-shadow:0 1px 6px rgba(229,165,0,.45);
  opacity:1;
  transform:scale(1.05);
}

/* Nav */
body.guide-on .header,
body.guide-on .header #wrap,
body.guide-on .gnb,
body.guide-on .gnb ul{
  overflow:visible !important;
}

.gnb li.menu.guide-target-host::before{
  border-radius:6px;
  inset:2px;
}

.gnb li.menu .guide-mark{
  top:0;
  right:0;
}

/* Page header tabs */
body.guide-on .page-header-tabs,
body.guide-on .page-header-tabs ul{
  overflow:visible !important;
}

body.guide-on .page-header-tabs li.guide-target-host{
  overflow:visible !important;
}

body.guide-on .page-header-tabs li.guide-target-host > a{
  position:relative;
  z-index:1;
}

.page-header-tabs li.guide-target-host::before{
  inset:4px 2px;
  border-radius:4px;
}

.page-header-tabs li.guide-target-host .guide-mark{
  top:8px;
  right:8px;
}

/* Admin (hrd_manager) */
body.guide-on .Header,
body.guide-on .mainMenu,
body.guide-on .subMenu,
body.guide-on .subMenu .area,
body.guide-on .contentBody{
  overflow:visible !important;
}

.mainMenu .area > li.guide-target-host::before,
.subMenu .area > li.guide-target-host::before{
  inset:2px 0;
  border-radius:4px;
}

.mainMenu .area > li .guide-mark,
.subMenu .area > li .guide-mark{
  top:6px;
  right:6px;
}

.neoSearch.guide-target-host::before,
table.list_ty01.guide-target-host::before{
  border-radius:8px;
  inset:3px;
}

/* 본인인증 모달 (회원관리) */
body.guide-on .memberinfo_auth_modal_backdrop,
body.guide-on .memberinfo_auth_modal,
body.guide-on .memberinfo_auth_modal_body{
  overflow:visible !important;
}

.memberinfo_auth_modal .guide-target-host::before,
.memberinfo_auth_btn_primary.guide-target-host::before,
.memberinfo_auth_btn_alt.guide-target-host::before{
  border-radius:10px;
}

.memberinfo_auth_modal_close.guide-target-host .guide-mark,
.memberinfo_auth_btn_primary.guide-target-host .guide-mark,
.memberinfo_auth_btn_alt.guide-target-host .guide-mark,
.memberinfo_auth_btn_primary.guide-target-ring .guide-mark,
.memberinfo_auth_btn_alt.guide-target-ring .guide-mark{
  top:4px;
  right:4px;
}

/* Fixed chatbot */
body.guide-on #ruby-toggle.guide-target,
body.guide-on #kobe-trigger.guide-target{
  position:fixed !important;
  overflow:visible !important;
}

body.guide-on #ruby-toggle.guide-target::before,
body.guide-on #kobe-trigger.guide-target::before{
  content:'';
  position:absolute;
  inset:-4px;
  border:2px dashed var(--guide-muted);
  border-radius:50%;
  pointer-events:none;
  z-index:2;
  box-sizing:border-box;
  background:transparent;
  box-shadow:none;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

body.guide-on #ruby-toggle.guide-target:hover::before,
body.guide-on #ruby-toggle.guide-target.guide-target--active::before,
body.guide-on #kobe-trigger.guide-target:hover::before,
body.guide-on #kobe-trigger.guide-target.guide-target--active::before{
  border-color:var(--guide-amber);
  background:var(--guide-amber-soft);
  box-shadow:0 0 0 1px rgba(255,184,0,.18), 0 0 12px rgba(255,184,0,.24);
}

#ruby-toggle .guide-mark,
#kobe-trigger .guide-mark{
  top:2px;
  right:2px;
}

/* Cards / blocks */
.course_card.guide-target-host::before,
.ai_feature_card.guide-target-host::before,
.why_ainex_card.guide-target-host::before,
.support_box.guide-target-host::before{
  border-radius:10px;
}

/* ── Tooltip ── */
#guideTip,
.guide-tip{
  position:fixed;
  z-index:100100;
  display:none;
  width:min(280px, calc(100vw - 24px));
  pointer-events:none;
  filter:drop-shadow(0 8px 24px rgba(15,23,42,.14));
  animation:guideTipIn .18s ease-out;
}

.guide-tip--compact{
  width:min(252px, calc(100vw - 24px));
}

@keyframes guideTipIn{
  from{ opacity:0; transform:translateY(4px); }
  to{ opacity:1; transform:translateY(0); }
}

.guide-tip__card{
  width:100%;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(255,184,0,.35);
}

.guide-tip__head{
  padding:10px 14px 8px;
  background:var(--guide-amber);
  color:#fff;
  font:700 13px/1.35 'Malgun Gothic',sans-serif;
}

.guide-tip__body{
  margin:0;
  padding:10px 14px 12px;
  font:12.5px/1.6 'Malgun Gothic',sans-serif;
  color:#4b5563;
  word-break:keep-all;
}

.guide-tip--compact .guide-tip__head{
  padding:9px 12px 7px;
  font-size:12.5px;
}
.guide-tip--compact .guide-tip__body{
  padding:8px 12px 10px;
  font-size:12px;
}

.guide-tip__arrow{
  position:absolute;
  width:10px;
  height:10px;
  background:#fff;
  border:1px solid rgba(255,184,0,.35);
  z-index:1;
}

.guide-tip--below{
  flex-direction:column;
  padding-top:5px;
}
.guide-tip--below .guide-tip__arrow{
  top:0;
  left:var(--guide-arrow-x, 24px);
  transform:rotate(225deg);
  border-bottom:none;
  border-right:none;
}

.guide-tip--above{
  flex-direction:column-reverse;
  padding-bottom:5px;
}
.guide-tip--above .guide-tip__arrow{
  bottom:0;
  left:var(--guide-arrow-x, 24px);
  transform:rotate(45deg);
  border-top:none;
  border-left:none;
}

.guide-tip--right{
  flex-direction:row;
  padding-left:5px;
}
.guide-tip--right .guide-tip__arrow{
  left:0;
  top:var(--guide-arrow-y, 24px);
  transform:rotate(135deg);
  border-bottom:none;
  border-left:none;
}

.guide-tip--left{
  flex-direction:row-reverse;
  padding-right:5px;
}
.guide-tip--left .guide-tip__arrow{
  right:0;
  top:var(--guide-arrow-y, 24px);
  transform:rotate(-45deg);
  border-bottom:none;
  border-right:none;
}
