/* 좋은 부모 배움터 · 사용자 페이지  (기본 스타일 — 디자인 가이드 반영 전 임시)  */
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

:root{
  --blue:#4657c4; --blue-d:#2b3686; --blue-l:#e7e9ff;  
  --dark:#292d3e;
  --ink:#1f2937; --ink-soft:#4b5563; --mut:#8a97a6;
  --line:#dedfe5; --line-soft:#eef2f7; --line-d:#222;  --line-box:rgba(0,0,0,0.05);
  --bg:#fafafa; --panel:#ffffff;
  --ok:#1f9d6b; --bad:#d6455d; --warn:#c9971a;
  --radius:12px;
  /* 레이아웃 기준 하나: 머리말 · 본문 · 푸터가 모두 같은 틀(--container + 좌우 --gutter)에 맞춘다 */
  --container:1200px;            /* 내용 폭 */
  --gutter:24px;                 /* 좌우 여백 (좁은 화면 16px) */
  --reading:820px;               /* 문항 · 체크리스트처럼 읽기 위주 블록의 폭(틀 안 가운데) */
  --topbar-h:76px;               /* 머리말 높이 (좁은 화면 64px) */
  --page-top:28px;               /* 머리말(또는 제목 띠 · 하위 탭) 아래 첫 내용까지 간격 */
  /* 틀 좌우 여백 = 화면이 넓으면 남는 폭의 절반, 좁으면 --gutter */
  --frame-pad:max(calc((100% - var(--container)) / 2), var(--gutter));
}
@media (max-width:1100px){:root{--topbar-h:64px}}
@media (max-width:560px){:root{--gutter:16px}}
*{box-sizing:border-box;}
html,body{margin:0;padding:0}
/* 세로 스크롤바 유무에 따른 레이아웃 좌우 흔들림 방지: 스크롤바 자리를 항상 예약 */
html{scrollbar-gutter:stable;scroll-padding-top:calc(var(--topbar-h) + 16px)}
/* 하위 탭(.mind-tabs)이 머리말 아래 붙는 화면은 탭 높이만큼 더 띄운다 */
html:has(.mind-tabs){scroll-padding-top:calc(var(--topbar-h) + 64px)}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}
body{/*font-family:"Malgun Gothic","맑은 고딕",system-ui,-apple-system,sans-serif; */     font-family: Pretendard, "Apple SD Gothic Neo", Arial, sans-serif;   font-size:15px;color:var(--ink);background:var(--bg);line-height:1.6}
a{color:var(--blue-d);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{margin:0;font-weight:700;color:var(--ink)}
img{max-width:100%}
[hidden]{display:none!important}

/* ---- topbar ---- */
.topbar{background:var(--panel);color:#222; border-bottom:1px solid var(--line); position: sticky;    top: 0;    z-index: 10; width:100%;}
/* 틀: 머리말 안쪽 · 푸터 안쪽 · 모든 화면 바깥 상자가 같은 폭과 좌우 여백을 쓴다 */
.topbar-in,.foot-in,.wrap,.sol-page,.mind-tabs-in{width:100%;max-width:calc(var(--container) + var(--gutter) * 2);margin-left:auto;margin-right:auto;padding-left:var(--gutter);padding-right:var(--gutter)}
.topbar-in{display:flex;align-items:center;justify-content:space-between;gap:16px;height:var(--topbar-h)}
.brand{display: flex;     align-items: center;    gap: 9px;    color: var(--ink);    font-size: 19px;    font-weight: 600;    text-decoration: none;    letter-spacing: -0.4px;}
.brand:hover{text-decoration:none}
.brand .logo{    width: 31px;    height: 31px;    display: grid;    place-items: center;    border-radius: 11px;    background: var(--blue);    color: #fff;    font-family: Georgia;    font-style: italic;    font-size: 23px;}
 
.topbar-right { display:flex;align-items:center;    justify-content: flex-end; gap:10px}
.topbar-right .me{display:flex;align-items:center;gap:8px;margin-right:4px}
.topbar-right .ava{width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.35);display:inline-block}
.topbar-right .me-t{display:flex;align-items:center; gap:6px;line-height:1.4; color:#292d3e;}
.topbar-right .me-t b{font-size:1em}
.topbar-right .me-t small{font-size:0.825em; font-weight:600;background: #ffdf72;    color: #5a4800; display:inline-block; padding:2px 10px; border-radius:20px;}
.tb-btn{border:1px solid var(--line);color:#222;border-radius:8px;padding:6px 12px;font-size:0.9em}
.tb-btn:hover{background:#fff; border-color:var(--linde-d); text-decoration:none}
.tb-btn.primary{background:#fff;color:var(--blue-d); font-weight:700}

/* ---- gnb ---- */
.gnb{display: flex;    gap: 37px;    } 
.gnb-link{color: #718077;     text-decoration: none;    font-size: 1.1em;    font-weight:700;    padding: 28px 1px 24px;    border-bottom: 2px solid transparent;}
.gnb-link:hover{color:#292d3e;text-decoration:none}
.gnb-link.on{color: #292d3e;    border-color: #ffbd0a;}

/* ---- layout ---- */
.wrap{padding-top:var(--page-top);padding-bottom:70px;min-height:calc(100vh - 370px)}
/* 첫 내용 블록의 위 여백은 --page-top 하나로 (블록 자체 margin-top 무시) */
.wrap > :first-child,.sol-page > :first-child,.search-col > :first-child,.authbox > :first-child{margin-top:0}
 
.site-foot{border-top:1px solid var(--line);background:var(--panel)}

/* ---- generic ---- */
.page-title{font-size:1.25em;margin-bottom:16px}
.section-title{ont-size:1.35em;text-align:center;margin:8px 0 18px}
.hint{color:var(--mut);font-size:0.95em;margin:6px 0 14px}
.muted{color:var(--mut)}
.small{font-size:12px}
.center{text-align:center}
.empty{text-align:center;color:var(--mut);padding:40px 10px; background:#eef1f5;border-radius: var(--radius);}
.mt{margin-top:24px}.mt2{margin-top:40px}
.bar{display:flex;align-items:center;gap:12px;margin:8px 0 16px}
.bar .spacer{margin-left:auto}

/* ---- buttons ---- */
.btn,button{font-family:inherit;font-size:1em;cursor:pointer;border:1px solid var(--blue);
  background:var(--blue);color:#fff;padding:10px 18px;border-radius:9px}
.btn:hover,button:hover{background:var(--blue-d);border-color:var(--blue-d);text-decoration:none}
.btn.lg{padding:14px 28px;font-size:1.05em;font-weight:700}
.btn.block{display:block;width:100%;text-align:center}
.btn.ghost{background:#fff;color:var(--blue-d)}
.btn.ghost:hover{background:var(--blue-l)}
.btn.gray{background:#eef1f5;color:var(--ink-soft);border-color:#e2e6ec}
.btn.gray:hover{background:#e4e8ee}
.btn:disabled,button:disabled{opacity:.5;cursor:not-allowed}
.mini{display:inline-block;font-size:0.9em;padding:6px 12px;border-radius:7px;background:var(--blue-l);
  color:var(--blue-d);border:1px solid transparent}
.mini:hover{background:var(--blue); text-decoration:none; color:#fff; opacity:0.6;}

/* ---- flash ---- */
.flash{padding:12px 15px;border-radius:0px;margin-bottom:16px;font-size:0.95em; font-weight:600; border:none; border-bottom:1px solid transparent;  text-align:center;}
.flash-ok{background:#e8f7f0;border-color:#b6e6d2;color:#15794f;  }
.flash-err{background:#fdecef;border-color:#f4c4ce;color:#b5304a; }

/* ---- forms ---- */
.form-row{margin-bottom:16px}
.form-row > label{display:block;font-size:0.925em;;font-weight:700;margin-bottom:6px;color:var(--ink-soft)}
input[type=text],input[type=password],input[type=tel],input[type=number],input[type=email],
input[type=url],select,textarea{
  width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;
  font-family:inherit;font-size:1em;background:#fff;color:var(--ink)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--blue)}
textarea{resize:vertical;min-height:90px}
.inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.inline > *{margin:0}

/* toggle 버튼 그룹 (성별, 자녀수 등) */
.toggle{display:inline-flex;gap:8px;flex-wrap:wrap}
.toggle button,.toggle .opt{background:#e9edf2;color:var(--ink-soft);border:1px solid #dde3ea;
  border-radius:8px;padding:9px 18px;font-size:0.95em;cursor:pointer}
.toggle .opt.on,.toggle button.on{background:var(--blue);color:#fff;border-color:var(--blue)}

/* ---- card / panel ---- */
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
/* 카드 목록: 폭에 맞춰 칸 수가 바뀌고, 카드 높이는 줄마다 같게(아래 단추 · 정보는 바닥에 붙음) */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:18px}
.card{display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.card > .body{flex:1;display:flex;flex-direction:column}
.card > .body > :last-child{margin-top:auto}
.card .thumb{position:relative;aspect-ratio:16/10;background:#efefef;display:block;background:url(../img/noimg.png) center center no-repeat; background-size:cover; }
.card .thumb img{width:100%;height:100%;object-fit:cover;display:block}
 
.card .thumb .play{position:absolute;right:12px;bottom:12px;background:var(--blue);color:#fff;
  padding:6px 14px;border-radius:7px;font-size:0.9em}
.card .body{padding:12px 14px}
.card .cat{font-size:0.95em; color: #a57300; font-weight:600;}
.card .tt{font-weight:700;margin:4px 0 8px;font-size:1.25em; color:var(--ink);}
.card .meta{display:flex;gap:14px;color:var(--mut);font-size:0.9em;}
.card .exp{ color:var(--mut);font-size:0.95em; margin:4px 0 14px;}

/* ---- chips ---- */
.chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:14px}
.chip{display:inline-block;padding:8px 18px;border:1px solid var(--line);border-radius:999px;
  background:#fff;color:var(--ink-soft);font-size:0.925em;;cursor:pointer}
.chip:hover{border-color:var(--blue);color:var(--blue-d);text-decoration:none}
.chip.on{background:var(--blue);border-color:var(--blue);color:#fff}

 



/* ---- hero ---- */
/* 제목 띠: 배경은 화면 끝까지, 글은 틀 왼쪽 선에 맞춘다. 높이는 모든 메뉴 같게 */
.hero{background:#eceeff;padding:0 var(--frame-pad);height:168px;overflow:hidden;position:relative;display:flex}
/*
.hero .ph{  aspect-ratio:16/10; background:transparent;border-radius:10px;display:flex;align-items:center;  justify-content:center;color:#9aa8b8}
.hero .ph img {max-width:none; width:auto; height:100%;}
*/
.hero .photo {     position: absolute;   inset: 0 0 0 64%;   overflow: hidden; display:flex;align-items:flex-end;    }
.hero .cont{display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column;padding:30px 0 0;position:relative;z-index:1;max-width:60%}
.hero .cont .btn{border-radius:30px;padding:10px 24px}
.hero h2{font-size:1.9em;line-height:1.35;letter-spacing:-1px}
.hero h2 span {color:#a57300;}
.hero .cont .desc{margin-top:8px;color:#707585;font-size:1.05em;max-width:560px}
.hero .cont .btn{margin-top:16px}
.article{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);    box-shadow: 0 6px 20px #34394f0d;
  padding:26px 30px;margin-top:12px}
.article h3{font-size:1.4em;margin-bottom:10px}
.article p{margin:10px 0; }


 .hero .mctopban .swiper-slide { padding:0px 80px; background:#eceeff; }
 .hero .mctopban .swiper-button-next, .hero .mctopban .swiper-button-prev { border:1px solid #dedfe5; background:#fff; color:#86878c;  font-size:1.2em;width:40px; height:40px; margin-top:-20px; border-radius:30px; display:flex;align-items:center;  justify-content:center;}
.hero .mctopban .swiper-button-next:hover, .hero .mctopban .swiper-button-prev:hover {border-color:#7480d2; color:var(--blue); box-shadow: 0 6px 20px #34394f0d;}
.hero.main {  height: 340px;   }
.hero.main .cont {padding:0px;}
.hero.main .photo {   inset: 0 0 0 56%;     }  
 .hero.main  h2 {color: var(--ink); opacity:1;}

/* 좋은 부모교육 이란? 상세 */
 
/*.about-body{max-width:820px} */
.about-body p {font-size:1.05em;}
.about-body .lead-p{font-size:1.15em; font-weight:500; color: var(--ink);}
.about-body .about-sec{padding:22px 0;border-top:1px solid var(--line);}
.about-body .about-sec:first-of-type{border-top:0}
.about-body .about-sec h3{display:flex;align-items:center;gap:10px;font-size:1.2em;  color:var(--dark);margin-bottom:14px;line-height:1.3; font-weight:700;}
.about-body .about-sec h3 .num{flex:0 0 24px;width:24px;height:24px;border-radius:50%;  background:var(--blue);color:#fff;display:inline-flex;align-items:center;justify-content:center;  font-size:0.8em; line-height:24px;font-weight:600; opacity:0.7;}
.about-body .lead{font-weight:700;color:var(--ink);margin:14px 0 6px}
.about-body ul{margin:6px 0 4px;padding-left:35px}
.about-body li{margin:6px 0;color:var(--ink-soft);line-height:1.7; list-style:none;}
.about-body li strong {color:#a57300; font-weight:600;}
.about-body .closing{margin-top:24px;padding:18px 20px;background:var(--blue-l);
  border-radius:10px;color:var(--ink)}
.about-body .about-h{font-size:1.2em;color:var(--dark);margin:26px 0 12px;  padding-top:20px;border-top:1px solid var(--line)}
.about-body .about-sub{margin:14px 0}
.about-body .about-sub h4{font-size:1em;color:var(--ink);margin-bottom:6px}
.article h3.title{font-size:1.5em; font-weight:700; margin-bottom:15px;}
.article h3.title span { display:inline-block; text-decoration: underline;    text-decoration-color: #ffdf8a;    -webkit-text-decoration-skip: ink;    text-decoration-skip-ink: auto;    -webkit-text-decoration-skip-ink: none;    text-decoration-skip-ink: none;    text-decoration-thickness: 8px;    text-underline-offset: -1px;}


.cmp-table{border-collapse:collapse;width:100%; }
.cmp-table th,.cmp-table td{border:1px solid var(--line);padding:10px 12px;vertical-align:top;text-align:left}
.cmp-table thead th{background:#8791d1; border-color:#6b77c7; color:#fff;text-align:center;white-space:nowrap}
.cmp-table tbody th{background:#fafafa;white-space:nowrap;width:90px;text-align:center}

.about-body .scontxt  .lead { padding-left:34px; color: #a57300;     font-weight:700; font-size:1.1em; margin:16px 0 0px;}
.about-body .scontxt  .exptt{ padding-left:34px;  letter-spacing:-0.5px;}
.about-body .scontxt  ul {margin:0px 0 6px;}
.about-body ul.plnone {padding-left:0px;}
.article h4.stit span{ display:inline-block; font-size:1.1em; font-weight:500;  background:#7d89d6; color:#fff; border-radius:5px; padding:2px 10px; margin-bottom:4px; }

/* 좌우 split (본문 + 서브탭) */
.split{display:grid;grid-template-columns:200px 1fr;gap:22px;align-items:start}
.subnav{display:flex;flex-direction:column;gap:8px}
.subnav a{display:block;background:#6a78cf;border:2px solid #6a78cf;color:#fff;text-align:center;padding:11px 6px;   border-radius:8px;font-weight:500;font-size:0.95em;  }
.subnav a:hover{background:var(--blue-d);border-color: var(--blue-d);  text-decoration:none}
.subnav a.on{background:#fff; border-color: var(--blue); color:var(--blue);  font-weight:800;}

/* ---- 학습하기 메인 좌측 자료실 rail ---- */
.learn-layout{display:grid;grid-template-columns:230px 1fr;gap:24px;align-items:start}
.rail{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.rail h4{background:var(--blue-l);color:var(--blue-d);font-size:0.925em;;padding:10px 14px;margin:0}
.rail a{display:flex;align-items:center;gap:10px;padding:11px 14px;color:var(--ink-soft);
  border-top:1px solid var(--line-soft);font-size:0.925em;}
.rail a:hover{background:var(--blue-l);text-decoration:none}
.rail a.disabled{color:var(--mut);pointer-events:none}
.rail .rail-ic{width:18px;height:18px;flex:0 0 18px;display:block;color:var(--ink-soft)}
.learn-main-wrap .rail a .rail-ic{color:#7a86b4}
.learn-main-wrap .rail a.disabled .rail-ic{color:var(--mut)}
.rail-sec + .rail-sec{margin-top:16px}

/* 학습하기 메인(검색): 자료실 rail 은 틀 왼쪽 선, 검색 · 목록은 오른쪽 칸을 다 쓴다 · rail 글자 확대 */
.learn-main-wrap .learn-layout{grid-template-columns:260px minmax(0,1fr);gap:32px}
.learn-main-wrap .learn-layout > aside .rail-inner{position:sticky;top:calc(var(--topbar-h) + var(--page-top))}
.learn-main-wrap .search-col{width:100%;min-width:0}
.learn-main-wrap .rail{border-radius:6px}
.learn-main-wrap .rail h4{font-size:15px}
.learn-main-wrap .rail a{font-size:1.05em;font-weight:700}
/* 이전 학습 항목: 학습자료실과 배경색 구분 + 세로 배치 (생애주기.분류 → 상황제목 → 진행바) */
.learn-main-wrap .rail-sec + .rail-sec{background:#f6f6f6}
.learn-main-wrap .prev-item{display:block;border-top-color:rgba(0,0,0,0.1);}
.learn-main-wrap .prev-item:hover {background:#fff;}
.learn-main-wrap .prev-item .pi-cat{display:block;font-size:0.85em;font-weight:500;line-height:1.35;margin-bottom:2px}
.learn-main-wrap .prev-item .pi-tt{font-size:0.925em;margin:2px 0 8px; letter-spacing:-0.5px;}
.learn-main-wrap .prev-item .pbar{display:block; background:rgba(0,0,0,0.15);}

/* 검색 입력창 · Gemini 스타일 (넓고 낮은 pill + 주변 은은한 그라데이션 글로우) */
.wrap.learn-main-wrap{overflow-x:clip}
.learn-main-wrap .search-col{position:relative}
.learn-main-wrap .section-title{font-size:26px;font-weight:600;margin:0 0 20px}
.learn-main-wrap .searchbox{width:100%;max-width:900px;margin:0 auto;min-height:62px;
  padding:6px 26px 6px 14px;border-radius:999px;border:1px solid #e4e5ec;background:#fff;
  box-shadow:0 2px 16px rgba(60,70,120,.09);display:flex;align-items:center}
.learn-main-wrap .searchbox textarea{flex:1 1 auto;width:100%;min-height:24px;max-height:150px;
  padding:0 4px 0 54px;line-height:1.6;font-size:16px;resize:none;overflow-y:auto;background:transparent}
.learn-main-wrap .searchbox .go{left:22px;right:auto;top:50%;bottom:auto;transform:translateY(-50%);
  width:auto;height:auto;min-width:0;padding:0;border:0;background:transparent;box-shadow:none;
  color:rgba(70,87,196,.45);font-size:36px;line-height:1}
.learn-main-wrap .searchbox .go:hover{background:transparent;color:var(--blue)}
.learn-main-wrap .searchbox::before{content:"";position:absolute;inset:-64px -34px;z-index:-1;
  pointer-events:none;filter:blur(36px);border-radius:40px;
  background:
    radial-gradient(40% 62% at 20% 28%, rgba(110,140,255,.20), transparent 70%),
    radial-gradient(44% 64% at 84% 76%, rgba(205,140,255,.18), transparent 70%),
    radial-gradient(62% 84% at 50% 55%, rgba(140,195,255,.13), transparent 75%)}
.prev-item{display:block;padding:11px 14px;border-top:1px solid var(--line-soft);font-size:12.5px;color:var(--ink-soft)}
.prev-item:hover{background:var(--blue-l);text-decoration:none}
.prev-item .pi-cat{color:var(--mut)}
.prev-item .pi-tt{font-weight:700;margin:2px 0 6px;display:block}
.pbar{height:6px;border-radius:4px;background:#e6ebf1;overflow:hidden}
.pbar > i{display:block;height:100%;background:#ffbd0a}

/* ---- 검색 박스 ---- */
.searchbox{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);
  padding:16px;position:relative;min-height:120px}
.searchbox textarea{border:0;min-height:90px;padding:4px}
.searchbox textarea:focus{outline:none}
.searchbox .go{position:absolute;right:14px;bottom:14px;border-radius:50%;width:44px;height:44px;
  padding:0;font-size:20px;line-height:1}

/* ---- 6단계 학습 인디케이터 ---- */
.steps{display:flex;justify-content:space-between;margin:8px 0 22px;position:relative}
.steps::before{content:"";position:absolute;top:16px;left:6%;right:6%;height:2px;background:var(--line)}
.step{position:relative;text-align:center;flex:1 1 0;z-index:1}
.step .dot{width:34px;height:34px;border-radius:50%;background:#fff;border:2px solid var(--line);
  display:flex;align-items:center;justify-content:center;margin:0 auto 6px;font-weight:700;color:var(--mut)}
.step.on .dot{border-color:var(--blue);color:var(--blue-d)}
.step.done .dot{background:var(--blue);border-color:var(--blue);color:#fff}
.step .lb{font-size:0.9em;color:var(--ink-soft)}
.step.locked{opacity:.45}
.step a{color:inherit}


.learn-sit{display:flex;align-items:center;gap:10px;margin-bottom:20px}
.learn-sit-lc{background:var(--warn);color:#fff;font-weight:700;border-radius:999px;padding:3px 12px;font-size:0.9em;white-space:nowrap}
.learn-sit-tt{font-size:24px;font-weight:600;color:var(--mut)}
.learn-nav{display:flex;justify-content:space-between;margin:18px 0}

/* 동영상 박스 */
.videobox{background:#000;border-radius:10px;aspect-ratio:16/9;display:flex;align-items:center;
  justify-content:center;overflow:hidden}
.videobox video,.videobox iframe{width:100%;height:100%;border:0;display:block}
.videobox .novid{color:#9aa8b8}
.expert-text{margin-top:18px;padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}

/* 척도 입력 */
.scale{display:flex;align-items:center;gap:0;margin:10px 0 4px;justify-content:space-between}
.scale .pt{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1 1 0}
.scale .pt input{width:20px;height:20px;cursor:pointer}
.scale .pt-lb{font-size:0.78em;color:var(--mut);text-align:center;line-height:1.2}
.scale-ends{display:flex;justify-content:space-between;color:var(--mut);font-size:0.9em;margin-bottom:14px}
.q{margin:20px 0;padding-bottom:18px;border-bottom:1px solid var(--line-soft)}
.q .qtt{font-weight:700;margin-bottom:10px}
.q .choice{display:flex;align-items:center;gap:8px;margin:6px 0}
.q .choice .opt-thumb{width:36px;height:36px;object-fit:cover;border-radius:8px}

/* OX형(2지선다, 이미지 지원) */
.ox-row{display:flex;gap:14px;margin:8px 0 4px;flex-wrap:wrap}
.ox-opt{
  position:relative;flex:1 1 140px;display:flex;flex-direction:column;align-items:center;gap:8px;
  padding:18px 12px;border:2px solid var(--line-soft);border-radius:14px;cursor:pointer;
  text-align:center;transition:border-color .15s,background .15s;
}
.ox-opt input{position:absolute;opacity:0;width:0;height:0}
.ox-opt img{width:64px;height:64px;object-fit:cover;border-radius:10px}
.ox-opt .ox-tx{font-weight:700}
.ox-opt:has(input:checked){border-color:var(--blue);background:var(--blue-l)}

/* Action Card (다중 선택형 카드) */
.action-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;margin:14px 0}
.action-card{
  position:relative;display:flex;flex-direction:column;gap:8px;
  padding:16px;border:2px solid var(--line-soft);border-radius:14px;cursor:pointer;
  background:var(--panel);transition:border-color .15s,background .15s;
}
.action-card input{position:absolute;opacity:0;width:0;height:0}
.action-card img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:10px}
.action-card .ac-tt{font-weight:700}
.action-card .ac-tx{color:var(--mut);font-size:0.9em;line-height:1.4}
.action-card:has(input:checked){border-color:var(--blue);background:var(--blue-l)}

/* 뱃지 (감싸는 원 없이 메달 아이콘만) */
.badges{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0;     border: 1px solid var(--line);    border-radius: var(--radius);    background: var(--panel);    padding: 20px 18px 20px;}
.badge{display:flex;align-items:center;justify-content:center;color:var(--mut)}
.badge .badge-ic{width:46px;height:46px;display:block}
.badge .badge-ic .ring{fill:currentColor;fill-opacity:.14;stroke:currentColor;stroke-width:1.6}
.badge .badge-ic .ribbon{fill:currentColor;fill-opacity:.85;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round}
.badge .badge-ic .star{fill:none;stroke:currentColor;stroke-width:1.2;stroke-linejoin:round}
.badge.locked{color:#c2cad4}
.badge.earned{color:#e0a11c}
.badge.earned .badge-ic .star{fill:#ffd35a;stroke:#c8971f}
.badge.earned .badge-ic .ribbon{fill:#e0a11c;stroke:#c8971f}

/* 결과 */
.result-box{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);padding:22px 24px 26px;margin:16px 0}
.result-box .stitle {font-weight:700; font-size:1.4em; margin:6px 0px 10px; color:#a57300;}
.result-box p.hint {margin:0px 0 24px;}
.result-box .muted {color:var(--ink);}
.att-row{display:flex;align-items:center;gap:12px;margin:10px 0}
.att-row .nm{width:110px;font-weight:700; opacity:0.7;}
.att-row .track{flex:1 1 auto;height:14px;background:#e6ebf1;border-radius:8px;overflow:hidden}
.att-row .track > i{display:block;height:100%;background:var(--blue)}

.review-row{display:flex;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}
.review-row:last-child{border-bottom:0}
.review-lb{flex:0 0 140px;font-weight:700}
.review-vv{flex:1 1 auto;word-break:break-word;line-height:1.5}
@media (max-width:560px){
    .review-row{flex-direction:column;gap:4px}
    .review-lb{flex:none}
}
.att-row .vl{width:64px;text-align:right;color:var(--ink-soft);font-variant-numeric:tabular-nums}
.att-row.top .nm{color:var(--blue); opacity:1;}

/* 회원가입 진행바 */
.wizbar{display:flex;gap:12px;max-width:280px;margin:10px auto 26px}
.wizbar > i{flex:1 1 0;height:8px;border-radius:4px;background:#dde3ea}
.wizbar > i.on{background:#ffbd0a}
.authbox{max-width:460px;margin:0 auto 40px}
.authbox .section-title{margin-bottom:8px}
.sns{display:flex;flex-direction:column;gap:10px;margin:18px 0}
.sns button{position:relative;width:100%;padding:13px 46px;font-weight:700;font-size:1em;
  border:0;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.sns button .sns-ic{position:absolute;left:16px;top:50%;transform:translateY(-50%);
  width:18px;height:18px;display:block}
.sns button:hover{filter:brightness(.97)}
.sns .fb{background:#1877f2;color:#fff}
.sns .gg{background:#fff;color:#1f1f1f;border:1px solid #dadce0}
.sns .nv{background:#03c75a;color:#fff}
.sns .kk{background:#fee500;color:#191600}
.sns .ap{background:#000;color:#fff}
.child-block{border:1px solid #aeb5eb;border-radius:10px;padding:16px;margin:12px 0;background:var(--panel)}
.child-block h4{font-size:1em;margin-bottom:10px}

.loginbox {background: var(--panel);     border: 1px solid var(--line);   border-radius: var(--radius);   box-shadow: 0 6px 20px #34394f0d; padding:24px 24px }

.loginbox input[type=text], .loginbox input[type=password], .loginbox input[type=tel], .loginbox input[type=number], .loginbox  input[type=email], .loginbox input[type=url], .loginbox select, .loginbox textarea {font-size:1.1em;}
.loginbox .btn, .loginbox button {padding:11px 12px; font-size:1em; min-height:44px;}
.loginbox .form-row > label {font-size:0.9em; font-weight:500; margin-bottom:4px;}
.loginbox .snswr {margin:24px 0px 0px;}
.loginbox .snswr p.tit { position:relative; text-align:center; color:#707072; font-weight:700;margin:28px 0px 14px; }
.loginbox .snswr p.tit span {display:flex; align-items:center;justify-content:center; background:#fff; padding:0px 6px;  }
.loginbox .snswr p.tit:before {position:absolute; left:0; top:50%; width:31%; height:1px; content:''; background:#e4e5ea; }
.loginbox .snswr p.tit:after {position:absolute; right:0; top:50%; width:31%; height:1px; content:''; background:#e4e5ea; }
.loginbox .snswr .sns {margin:0px; width:100%; display:flex;    flex-wrap: wrap;    flex-direction:row;  justify-content: center;    gap: 12px;}
.loginbox .snswr .sns button {width:42px; height:42px; border-radius:25px;  display: flex;     justify-content: center;    align-items: center;}
.loginbox .snswr .sns button span {display:none;  }
.loginbox .snswr .sns button .sns-ic {left:50%;    transform: translate(-50%, -50%);}
.loginbox .snswr .sns button.nv .sns-ic {width:14px; height:14px;}
.loginbox .joinwr {width:100%;}
.loginbox .joinwr  p.tit {  color:#707072; font-weight:700; opacity:0.8; margin:24px 0 6px 0;}
.loginbox .joinwr .btnwr a {background:#1d1d1e; border:1px solid #1d1d1e; color:#fff;  display: flex;     justify-content: center;    align-items: center; border-radius: 9px; padding:8px 12px; opacity:1;}
.loginbox .joinwr .btnwr a:hover {background:#5e5e60; text-decoration:none;}

.loginbox.join .sns {margin-top:0px;}
.loginbox.join  p.tit {  color:#707072; font-weight:600; opacity:0.8; margin:30px 0 6px 0; text-align:center; font-size:0.9em;}
.loginbox.join  .mt {margin-top:14px;}
.loginbox.join .form-row > label { color:#707072; font-weight:700; font-size:0.95em;}
.loginbox.join .child-block {padding: 16px 16px 4px; }
.loginbox.join .child-block h4 {margin-top:0px; color:var(--blue);}

/* 마이페이지: 다른 화면처럼 틀 전체 폭 · 제목 왼쪽 정렬 */
/* 입력칸은 읽기 폭(--reading)까지만 늘려 한 줄이 너무 길어지지 않게 한다. 상자(.panel)는 틀 전체 폭 */
.mypage .panel > .form-row,.mypage .panel > .btn.block,.mypage .panel > .child-block{max-width:var(--reading)}
.mypage .bar .btn {font-size:0.95em; padding:8px 20px;}
.mypage .child-block {padding: 16px 16px 4px; }
.mypage .child-block h4 {margin-top:0px; color:var(--blue);}
.mypage .btn.block {min-height:44px;}

/* 테이블 */
.tablewrap{overflow-x:auto;/*border:1px solid var(--line);border-radius:var(--radius); */background:var(--panel)}
table.grid{border-collapse:collapse;width:100%;font-size:0.925em;}
table.grid th,table.grid td{border-bottom:1px solid var(--line-soft);padding:10px 12px;text-align:center}
table.grid thead th{background:#f2f6fa;font-weight:700}
table.grid tbody tr:last-child td{border-bottom:0}
table.grid td.ql{text-align:left}

@media (max-width:900px){
  .learn-layout,.split{grid-template-columns:1fr}
  .learn-main-wrap .learn-layout{grid-template-columns:1fr;gap:20px}
  .learn-main-wrap .learn-layout > aside .rail-inner{position:static}
}
@media (max-width:640px){
  .hero{height:auto;min-height:136px;padding-bottom:20px}
  .hero .cont{padding-top:24px}
  .hero .photo{inset:0 0 0 58%;opacity:.35}
  .hero h2{font-size:1.45em}
  .hero .cont{max-width:none}
  .hero .cont .desc{font-size:.95em;margin-top:4px}
}
@media (max-width:560px){
  .steps .lb{font-size:10px}
}

/* PC 전용: 콘텐츠가 짧아도 푸터를 브라우저 하단에 붙임(sticky footer). 모바일(<=900px)은 미적용 */
@media (min-width:901px){
  body{display:flex;flex-direction:column;min-height:100vh}
  main{flex:1 0 auto}
  .site-foot{flex:0 0 auto}
}
