/* 유니마인드랩 — 동적 게시판 렌더러 (Seoro-Api) 스타일 */
.uml-board{ max-width:1180px; margin:0 auto; padding:10px 20px 60px; }
.uml-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
@media (max-width:900px){ .uml-grid{ grid-template-columns:repeat(2,1fr); gap:18px; } }
@media (max-width:560px){ .uml-grid{ grid-template-columns:1fr; } }
.uml-card{
  background:#fff; border:1px solid rgba(17,24,39,.08); border-radius:16px; overflow:hidden;
  cursor:pointer; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display:flex; flex-direction:column;
}
.uml-card:hover{ transform:translateY(-4px); box-shadow:0 16px 38px rgba(15,23,42,.14); border-color:transparent; }
.uml-thumb{ position:relative; width:100%; aspect-ratio:16/10; background:#eef1f7; overflow:hidden; }
.uml-thumb img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.uml-card:hover .uml-thumb img{ transform:scale(1.05); }
/* placeholder: 이미지 없을 때만(.noimg) — 브랜드 그라데이션 */
.uml-thumb .uml-ph{ display:none; }
.uml-thumb.noimg{ background:linear-gradient(135deg,#16307a 0%,#2a6fe0 100%); }
.uml-thumb.noimg .uml-ph{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:5px; color:rgba(255,255,255,.96); font-weight:800; font-size:18px; letter-spacing:.12em; }
.uml-thumb.noimg .uml-ph b{ color:#bcd3ff; }
.uml-card .body{ padding:15px 17px 17px; display:flex; flex-direction:column; gap:8px; flex:1; }
.uml-card .title{ font-size:15.5px; font-weight:700; color:#1f2733; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.uml-card .excerpt{ font-size:13px; color:#6b7480; line-height:1.6; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.uml-card .excerpt.muted{ color:#aab2c0; }
.uml-card .meta{ margin-top:auto; padding-top:4px; display:flex; gap:12px; color:#9aa3b2; font-size:12px; }
.uml-card .meta .views::before{ content:"·"; margin-right:12px; color:#c7cdd8; }
/* 페이지네이션 */
.uml-pager{ display:flex; justify-content:center; align-items:center; gap:6px; margin-top:40px; flex-wrap:wrap; }
.uml-pager button{ min-width:38px; height:38px; padding:0 10px; border:1px solid rgba(17,24,39,.12); background:#fff; color:#3a4453; border-radius:10px; cursor:pointer; font-weight:600; transition:all .15s ease; }
.uml-pager button:hover:not(:disabled){ border-color:#16307a; color:#16307a; }
.uml-pager button.active{ background:#16307a; color:#fff; border-color:#16307a; }
.uml-pager button:disabled{ opacity:.4; cursor:default; }
.uml-empty{ text-align:center; color:#9aa3b2; padding:80px 0; font-size:15px; }
.uml-loading{ text-align:center; color:#9aa3b2; padding:80px 0; }
/* 상세 오버레이 */
.uml-detail{ position:fixed; inset:0; z-index:2000; background:rgba(15,23,42,.55); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); display:flex; justify-content:center; align-items:flex-start; padding:40px 16px; overflow:auto; opacity:0; transition:opacity .2s ease; }
.uml-detail.open{ opacity:1; }
.uml-detail .sheet{ background:#fff; max-width:880px; width:100%; border-radius:18px; overflow:hidden; box-shadow:0 30px 80px rgba(0,0,0,.4); transform:translateY(12px); transition:transform .25s ease; }
.uml-detail.open .sheet{ transform:translateY(0); }
.uml-detail .dhd{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:26px 30px 16px; border-bottom:1px solid rgba(17,24,39,.08); }
.uml-detail .dhd h2{ font-size:22px; font-weight:800; color:#16307a; line-height:1.4; margin:0; }
.uml-detail .dhd .dmeta{ color:#8a93a3; font-size:13px; margin-top:8px; }
.uml-detail .dclose{ flex:0 0 auto; width:40px; height:40px; border:none; background:rgba(17,24,39,.06); border-radius:50%; cursor:pointer; font-size:20px; color:#3a4453; line-height:1; }
.uml-detail .dclose:hover{ background:rgba(22,48,122,.12); color:#16307a; }
.uml-detail .dbody{ padding:26px 30px 40px; color:#2a3340; font-size:16px; line-height:1.8; }
.uml-detail .dbody img{ max-width:100%; height:auto; border-radius:8px; }
.uml-detail .dbody a{ color:#1b52b8; word-break:break-all; }
.uml-detail .dbody iframe{ max-width:100%; }
.uml-detail .dbody .dsrc{ display:inline-block; margin-top:22px; background:linear-gradient(90deg,#16307a,#1b52b8); color:#fff !important; padding:11px 22px; border-radius:10px; text-decoration:none; font-weight:700; word-break:keep-all; }
.uml-detail .dbody .dsrc:hover{ filter:brightness(1.1); }
/* 더보기 버튼(홈 유니마인드 연구 등) */
.uml-more{ background:linear-gradient(90deg,#16307a,#1b52b8); color:#fff; border:none; padding:13px 36px; border-radius:26px; font-weight:700; font-family:'Jua','Noto Sans KR',sans-serif; cursor:pointer; font-size:16px; box-shadow:0 8px 22px rgba(22,48,122,.28); transition:filter .2s ease, transform .2s ease; }
.uml-more:hover{ filter:brightness(1.12); transform:translateY(-1px); }
.uml-more small{ font-weight:400; opacity:.8; font-size:13px; }

/* ---------- 연혁 좌우 교차 타임라인 ---------- */
.uml-timeline{ position:relative; max-width:1000px; margin:10px auto 0; padding:20px 0; }
.uml-timeline::before{ content:""; position:absolute; left:50%; top:0; bottom:0; width:3px; background:linear-gradient(180deg,#16307a,#1b52b8); transform:translateX(-50%); border-radius:2px; }
.uml-timeline::after{ content:""; display:block; clear:both; }
.uml-tl-item{ position:relative; width:50%; padding:16px 44px; box-sizing:border-box; clear:both; }
.uml-tl-item.left{ float:left; text-align:right; }
.uml-tl-item.right{ float:right; text-align:left; }
.uml-tl-dot{ position:absolute; top:30px; width:16px; height:16px; border-radius:50%; background:#1b52b8; border:3px solid #fff; box-shadow:0 0 0 3px rgba(27,82,184,.22); z-index:1; }
.uml-tl-item.left .uml-tl-dot{ right:-8px; }
.uml-tl-item.right .uml-tl-dot{ left:-8px; }
.uml-tl-card{ display:inline-block; text-align:left; background:#fff; border:1px solid rgba(22,48,122,.12); border-radius:14px; padding:18px 22px; box-shadow:0 10px 28px rgba(8,18,46,.07); max-width:100%; }
.uml-tl-year{ font-family:'Jua','Noto Sans KR',sans-serif; font-size:27px; color:#16307a; font-weight:800; margin-bottom:10px; line-height:1.1; }
.uml-tl-year span{ display:block; margin-top:4px; font-family:'Noto Sans KR',sans-serif; font-size:12px; color:#8a93a3; font-weight:500; letter-spacing:.02em; }
.uml-tl-card ul{ list-style:none; padding:0; margin:0; }
.uml-tl-card li{ padding:4px 0; color:#3a4453; font-size:14.5px; line-height:1.55; }
.uml-tl-card li b{ display:inline-block; min-width:30px; color:#1b52b8; font-weight:700; margin-right:6px; }
html.uml-dark .uml-tl-card{ background:#1a2236; border-color:rgba(255,255,255,.10); }
html.uml-dark .uml-tl-card li{ color:#c7cfdd; }
html.uml-dark .uml-tl-year{ color:#7ea0ff; }
@media (max-width:768px){
  .uml-timeline::before{ left:21px; }
  .uml-tl-item, .uml-tl-item.left, .uml-tl-item.right{ width:100%; float:none; text-align:left; padding:14px 12px 14px 50px; }
  .uml-tl-item.left .uml-tl-dot, .uml-tl-item.right .uml-tl-dot{ left:13px; right:auto; }
  .uml-tl-card{ display:block; }
}
/* 다크모드 */
html.uml-dark .uml-card{ background:#141b2b; border-color:rgba(255,255,255,.08); }
html.uml-dark .uml-card .title{ color:#e6e9f2; }
html.uml-dark .uml-pager button{ background:#141b2b; color:#c5ccdb; border-color:rgba(255,255,255,.12); }
html.uml-dark .uml-pager button.active{ background:#1b52b8; border-color:#1b52b8; color:#fff; }
html.uml-dark .uml-detail .sheet{ background:#141b2b; }
html.uml-dark .uml-detail .dhd{ border-bottom-color:rgba(255,255,255,.08); }
html.uml-dark .uml-detail .dhd h2{ color:#90b4ff; }
html.uml-dark .uml-detail .dbody{ color:#cdd3e0; }
html.uml-dark .uml-detail .dclose{ background:rgba(255,255,255,.08); color:#e6e9f2; }

/* 홈 섹션: 소식 썸네일 placeholder + 연구(RSS) 카드 */
.uml-news-box img{ width:100%; height:auto; display:block; border-radius:10px; }
.uml-news-box .uml-news-ph{ display:none; }
.uml-news-box.noimg .uml-news-ph{ width:100%; aspect-ratio:380/180; background:linear-gradient(135deg,#16307a,#2a6fe0); border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; letter-spacing:.1em; }
html.uml-dark .uml-card .excerpt{ color:#9aa3b2; }
.uml-rss{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; max-width:1140px; margin:0 auto; padding:0 16px; }
@media(max-width:900px){ .uml-rss{ grid-template-columns:1fr; } }
.uml-rss-card{ display:block; text-align:left; background:#fff; border:1px solid rgba(17,24,39,.08); border-radius:14px; padding:22px 24px; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; text-decoration:none; }
.uml-rss-card:hover{ transform:translateY(-3px); box-shadow:0 14px 32px rgba(15,23,42,.12); border-color:transparent; }
.uml-rss-card .rt{ font-weight:700; font-size:16px; color:#1f2733; line-height:1.45; margin-bottom:10px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.uml-rss-card .rx{ color:#5b6472; font-size:13.5px; line-height:1.65; margin-bottom:14px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.uml-rss-card .rd{ color:#9aa3b2; font-size:12px; }
html.uml-dark .uml-rss-card{ background:#141b2b; border-color:rgba(255,255,255,.08); }
html.uml-dark .uml-rss-card .rt{ color:#e6e9f2; }
html.uml-dark .uml-rss-card .rx{ color:#aab2c2; }

/* ===== 홈 썸네일 카드(소식/체험/연구/레터) 정비: 제목 클리핑 방지 + 균일 그리드 ===== */
/* 동적 카드(.uml-news-box) 섹션에만 그리드 — 정적 thumb_box(/lab 등)는 레거시 유지 */
.thumb_area .align_center:has(.uml-news-box){ display:grid !important; grid-template-columns:repeat(3,1fr) !important; gap:26px !important; max-width:1160px !important; margin:0 auto !important; align-items:stretch !important; }
@media(max-width:900px){ .thumb_area .align_center:has(.uml-news-box){ grid-template-columns:repeat(2,1fr) !important; } }
@media(max-width:560px){ .thumb_area .align_center:has(.uml-news-box){ grid-template-columns:1fr !important; } }
.uml-news-box{
  width:auto !important; max-width:none !important; box-sizing:border-box;
  height:auto !important; display:block !important;
  float:none !important; margin:0 !important; text-align:left; vertical-align:top;
  background:#fff; border:1px solid rgba(17,24,39,.08); border-radius:14px; overflow:hidden !important;
  transition:transform .2s ease, box-shadow .2s ease;
}
.uml-news-box:hover{ transform:translateY(-4px); box-shadow:0 16px 38px rgba(15,23,42,.14); }
.uml-news-box img{ width:100% !important; aspect-ratio:16/10 !important; height:auto !important; object-fit:cover !important; border-radius:0 !important; display:block; }
.uml-news-box.noimg .uml-news-ph{ aspect-ratio:16/10; border-radius:0; }
.uml-news-box span{ color:#1f2733 !important; padding:12px 16px 4px !important; height:auto !important; }
.uml-news-box span:last-child{ padding-bottom:16px !important; }
html.uml-dark .uml-news-box{ background:#141b2b; border-color:rgba(255,255,255,.08); }
html.uml-dark .uml-news-box span{ color:#e6e9f2 !important; }
@media(max-width:900px){ .uml-news-box{ width:auto !important; } }
@media(max-width:560px){ .uml-news-box{ width:auto !important; } }

/* ===== 개요 연혁 타임라인 ===== */
.uml-history{ text-align:left; }
.uml-history .uml-hy-head{ border-bottom:2px solid #16307a; padding-bottom:8px; margin-bottom:14px; }
.uml-history .uml-hy-head b{ font-family:'Jua','Noto Sans KR',sans-serif; font-size:30px; color:#16307a; display:block; line-height:1.1; }
.uml-history .uml-hy-head span{ font-size:11.5px; color:#8a93a3; letter-spacing:.02em; }
.uml-history ul{ list-style:none !important; padding:0 !important; margin:0 !important; }
.uml-history li{ font-size:13.5px; color:#3a4453; line-height:1.5; padding:5px 0; display:flex; gap:9px; background:none !important; }
.uml-history li b{ color:#1b52b8; font-weight:700; flex:0 0 22px; }
html.uml-dark .uml-history li{ color:#c5ccdb; }
html.uml-dark .uml-history .uml-hy-head b{ color:#90b4ff; }
html.uml-dark .uml-history .uml-hy-head{ border-bottom-color:#90b4ff; }

/* 홈 카드: 그리드 셀 강제 채움(레거시 thumb_box 고정폭 무력화) */
.thumb_area .align_center > .uml-news-box{ width:100% !important; min-width:0 !important; max-width:none !important; justify-self:stretch !important; margin:0 !important; }
