/* site.css - 글리포세이트 아카이브 공통 스타일 (목업 v5 기준) */
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Malgun Gothic','맑은 고딕',AppleSDGothicNeo,sans-serif;background:#f4f6f5;color:#1c2320;line-height:1.7}
a{text-decoration:none;color:inherit}

/* ── 상단바 (단일 소스 nav.php 전용) ── */
.top{background:#14302a;color:#fff;height:60px;display:flex;align-items:center;padding:0 32px;gap:20px;position:sticky;top:0;z-index:50}
.logo{font-size:19px;font-weight:700;letter-spacing:-.4px;color:#fff}
.logo span{color:#7fd1b5}
.top .sp{flex:1}
.tsform{margin:0}
.tsearch{background:#0d211d;border:1px solid #2b5449;border-radius:6px;height:34px;width:300px;padding:0 12px;color:#fff;font-size:13px}
.ribbon{background:#1f6f5c;color:#fff;height:46px;display:flex;align-items:center;padding:0 32px;gap:4px;position:sticky;top:60px;z-index:49}
.ribbon a{font-size:14px;padding:8px 18px;border-radius:5px 5px 0 0;opacity:.85;color:#fff}
.ribbon a.on{background:#f4f6f5;color:#14302a;font-weight:700;opacity:1}

/* ── 레이아웃 ── */
.wrap{display:flex;max-width:1500px;margin:0 auto;align-items:flex-start}
.side{width:236px;flex:0 0 236px;padding:22px 12px 60px 22px;position:sticky;top:106px}
.side h4{font-size:12px;color:#5d716a;letter-spacing:.5px;margin:14px 0 6px 8px}
.side a{display:block;font-size:13.5px;padding:7px 12px;border-radius:6px;color:#28352f;border-left:3px solid transparent}
.side a:hover{background:#e7edea}
.side a.on{background:#fff;border-left-color:#1f6f5c;font-weight:700;color:#14302a;box-shadow:0 1px 3px rgba(0,0,0,.07)}
.side .num{color:#8fa39b;font-size:11px;margin-right:6px}
.main{flex:1;padding:22px 28px 80px;min-width:0}
.card{background:#fff;border:1px solid #e2e8e5;border-radius:10px;padding:26px 30px;margin-bottom:16px}

h1{font-size:24px;letter-spacing:-.6px;margin-bottom:5px}
.sub{color:#66786f;font-size:13.5px;margin-bottom:20px;padding-bottom:14px;border-bottom:2px solid #eef2f0}
h2{font-size:17px;margin:24px 0 10px;padding-left:11px;border-left:4px solid #1f6f5c}
h2:first-of-type{margin-top:0}
p{font-size:14.5px;margin-bottom:11px;color:#333d38}
.note{background:#f0f6f4;border:1px solid #d5e5df;border-radius:8px;padding:13px 15px;font-size:13px;color:#2c4a41;margin:14px 0}
.warn{background:#fdf4ec;border-color:#f0dcc6;color:#6d4720}
table{width:100%;border-collapse:collapse;margin:12px 0;font-size:13.5px}
th,td{border:1px solid #e2e8e5;padding:9px 11px;text-align:left;vertical-align:top}
th{background:#f3f7f5;font-weight:700;color:#2b3c35}

/* ── 저널 ── */
.jwrap{display:flex;gap:20px;align-items:flex-start}
.tree{width:212px;flex:0 0 212px;border-right:1px solid #e6ebe9;padding-right:12px;max-height:78vh;overflow-y:auto}
.tree .area{margin-bottom:9px}
.tree .ahd{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700;color:#14302a;background:#eef4f1;border-radius:6px;padding:7px 10px;cursor:pointer}
.tree .ahd i{font-style:normal;font-size:10.5px;color:#5d716a;font-weight:400}
.tree .tp{display:none;padding:4px 0 2px 6px}
.tree .area.open .tp{display:block}
.tree .tp a{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;padding:5px 9px;border-radius:5px;color:#3d4a45;margin-bottom:1px}
.tree .tp a:hover{background:#f2f6f4}
.tree .tp a.on{background:#14302a;color:#fff;font-weight:700}
.tree .tp a i{font-style:normal;font-size:10.5px;color:#8a9a94}
.tree .tp a.on i{color:#9fc7bb}
.jlist{flex:1;min-width:0}
.crumb{font-size:12px;color:#8a9a94;margin-bottom:3px}
.jhead{display:flex;align-items:baseline;gap:10px;margin-bottom:13px}
.jhead .t{font-size:22px;font-weight:700;letter-spacing:-.5px}
.jhead .c{font-size:12.5px;color:#66786f}
.ylab{font-size:11px;color:#8a9a94;letter-spacing:.4px;margin-bottom:5px}
.ytabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:2px solid #eef2f0;padding-bottom:9px;margin-bottom:13px}
.ytabs a{font-size:12.5px;padding:5px 11px;border-radius:14px;color:#48584f;border:1px solid #e0e8e5;background:#fff}
.ytabs a:hover{background:#f2f6f4}
.ytabs a.on{background:#1f6f5c;border-color:#1f6f5c;color:#fff;font-weight:700}
.ytabs a b{font-weight:400;font-size:10.5px;margin-left:3px;color:#8a9a94}
.ytabs a.on b{color:#cdeade}
.fbar{display:flex;gap:7px;align-items:center;margin-bottom:14px;flex-wrap:wrap}
.fbar select{border:1px solid #d8e0dd;border-radius:6px;padding:6px 10px;font-size:12.5px;background:#fff;color:#33423c}
.fbar .cnt{font-size:12.5px;color:#7a8a84;margin-left:auto}

.jitem{display:block;border:1px solid #e8edeb;border-radius:9px;padding:12px 15px;margin-bottom:8px;background:#fbfcfc}
.jitem:hover{border-color:#b9d2c9;background:#fff}
.jitem .r1{display:flex;align-items:center;gap:7px;margin-bottom:5px;flex-wrap:wrap}
.ev{font-size:10.5px;font-weight:700;border-radius:4px;padding:2px 7px;color:#fff}
.ev1{background:#1b5e4c}.ev2{background:#2f7a63}.ev3{background:#4a9a7f}
.ev4{background:#6aab95}.ev5{background:#8bbcaa}.ev6{background:#a7c9bc}
.ev7{background:#bcd0c8;color:#33423c}.ev8{background:#d3ded9;color:#5d716a}
.yr{font-size:11px;background:#14302a;color:#fff;border-radius:9px;padding:2px 9px;font-weight:700}
.subs{font-size:11px;border:1px solid #dbe3e0;color:#5d716a;border-radius:9px;padding:1px 8px}
.jitem .st{margin-left:auto;font-size:11px;color:#8a9a94}
.jitem .tt{font-size:14.5px;font-weight:700;line-height:1.5;margin-bottom:3px}
.jitem .ko{font-size:13px;color:#1f6f5c;margin-bottom:4px}
.jitem .mm{font-size:12px;color:#7a8a84}
.empty{padding:40px;text-align:center;color:#8a9a94;font-size:13.5px;background:#fbfcfc;border:1px dashed #dbe3e0;border-radius:9px}
.pager{display:flex;gap:5px;justify-content:center;margin-top:16px;flex-wrap:wrap}
.pager a{font-size:12.5px;padding:6px 12px;border:1px solid #dbe3e0;border-radius:6px;background:#fff;color:#3d4a45}
.pager a.on{background:#14302a;border-color:#14302a;color:#fff;font-weight:700}

/* ── 논문 상세 ── */
.jback{display:inline-block;font-size:13px;color:#1f6f5c;margin-bottom:12px;font-weight:700}
.jd-t{font-size:18px;font-weight:700;line-height:1.5;margin-bottom:5px}
.jd-k{font-size:15px;color:#1f6f5c;margin-bottom:9px}
.jd-m{font-size:12.5px;color:#66786f;padding-bottom:12px;border-bottom:1px solid #eef2f0;margin-bottom:14px}
.jtabs{display:flex;gap:6px;margin-bottom:12px;flex-wrap:wrap}
.jtabs a{font-size:13px;padding:7px 15px;border:1px solid #dbe3e0;border-radius:18px;background:#fff;color:#3d4a45;cursor:pointer}
.jtabs a.on{background:#1f6f5c;border-color:#1f6f5c;color:#fff;font-weight:700}
.jpane{display:none}
.jpane.on{display:block}
.jbox{background:#f8faf9;border:1px solid #e6ebe9;border-radius:9px;padding:15px 17px;font-size:14px;color:#2f3b36;margin-bottom:11px;white-space:pre-wrap}
.jbox h6{font-size:12px;color:#1f6f5c;letter-spacing:.4px;margin-bottom:7px}
.jbox.en{font-family:Georgia,serif;font-size:13.5px;color:#3f4b46;line-height:1.75}
.copybtn{font-size:12px;border:1px solid #d8e0dd;background:#fff;border-radius:6px;padding:5px 12px;cursor:pointer;color:#1f6f5c;font-weight:700}
.foot{max-width:1500px;margin:0 auto;padding:20px 32px 40px;font-size:12px;color:#7a8a84;border-top:1px solid #e6ebe9}

/* ── 모바일 ── */
@media (max-width: 820px){
  .top{padding:0 14px;height:52px}
  .logo{font-size:15px}
  .tsearch{width:150px}
  .ribbon{padding:0 8px;height:42px;overflow-x:auto}
  .ribbon a{font-size:13px;padding:8px 12px;white-space:nowrap}
  .wrap{display:block}
  .side{display:none}
  .main{padding:12px 12px 80px}
  .card{padding:16px 14px;border-radius:12px}
  h1{font-size:19px}
  .jwrap{display:block}
  .tree{width:auto;flex:none;border-right:0;border-bottom:1px solid #e6ebe9;padding:0 0 10px;margin-bottom:12px;max-height:none}
  .tree .tp a{padding:7px 10px;font-size:13px}
  .jitem .tt{font-size:13.5px}
  .fbar select{flex:1 1 45%}
}

/* ── 장 본문 추가 요소 ── */
.tl{border-left:2px solid #cfded8;margin:14px 0 14px 8px;padding-left:22px}
.tl div{position:relative;margin-bottom:16px;font-size:14px}
.tl div::before{content:'';position:absolute;left:-29px;top:7px;width:11px;height:11px;background:#1f6f5c;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #cfded8}
.tl b{display:inline-block;min-width:62px;color:#1f6f5c}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}
.stat{background:#14302a;color:#fff;border-radius:9px;padding:16px 18px}
.stat .v{font-size:24px;font-weight:700;letter-spacing:-.5px}
.stat .l{font-size:12px;color:#9fc7bb;margin-top:3px}
.stat .s{font-size:11px;color:#6f9c8e;margin-top:6px}
.bar{display:flex;align-items:center;gap:10px;margin:7px 0;font-size:13px}
.bar .nm{width:110px;flex:0 0 110px}
.bar .bg{flex:1;background:#eef2f0;border-radius:4px;height:17px;overflow:hidden}
.bar .fl{height:100%;background:linear-gradient(90deg,#1f6f5c,#4aa88c)}
.bar .pc{width:120px;text-align:right;color:#5d716a}
.tag{display:inline-block;font-size:11px;padding:2px 9px;border-radius:10px;font-weight:700}
.t-red{background:#fbe4e0;color:#9b3220}
.t-grn{background:#e0f0e9;color:#1f6f5c}
.dist2{display:flex;gap:6px;flex-wrap:wrap}
.dist2 a{font-size:12.5px;border:1px solid #e0e8e5;background:#fff;border-radius:14px;padding:6px 13px;color:#48584f}
.dist2 a:hover{background:#14302a;border-color:#14302a;color:#fff}
.dist2 a b{font-weight:700;font-size:11px;margin-left:4px;color:#1f6f5c}
.dist2 a:hover b{color:#9fc7bb}
@media (max-width: 820px){
  .stats{grid-template-columns:1fr 1fr}
  .bar .nm{width:60px;flex:0 0 60px}
  .bar .pc{width:88px;font-size:11px}
  table{font-size:12.5px}
  th,td{padding:7px 8px}
}

/* ── 히어로 이미지 ── */
.hero{margin:0 0 20px;border-radius:10px;overflow:hidden;background:#eef2f0}
.hero picture,.hero img{display:block;width:100%;height:auto}
.hero img{aspect-ratio:16/9;object-fit:cover}
.hero figcaption{font-size:11.5px;color:#8a9a94;padding:7px 12px;background:#f6f9f8;border-top:1px solid #e6ebe9}
.hero.small img{aspect-ratio:21/6}
.hero.wide{margin-bottom:22px}
.thumbs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.thumbs a{width:132px;display:block}
.thumbs .th{margin:0;border-radius:8px}
.thumbs .th img{aspect-ratio:4/3}
.thumbs .th figcaption{display:none}
.thumbs span{display:block;font-size:12px;color:#3d4a45;margin-top:5px;text-align:center;line-height:1.35}
.thumbs a:hover span{color:#1f6f5c;font-weight:700}
@media (max-width: 820px){
  .hero.small img{aspect-ratio:16/7}
  .thumbs a{width:calc(33.3% - 7px)}
}
