/* BASIC css start */
/* ═══════════════════════════════════════════════
   더랩 과학뉴스 — tlnews.css
   ═══════════════════════════════════════════════ */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

#tln-root {
  --navy:    #0C025B;
  --navy2:   #080142;
  --indigo:  #3730a3;
  --border:  #e5e7eb;
  --border2: #d1d5db;
  --text:    #111827;
  --text2:   #374151;
  --muted:   #6b7280;
  --muted2:  #9ca3af;
  --bg:      #f9fafb;
  --surface: #ffffff;
  --lt:      #f0eeff;

  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
#tln-root * { box-sizing: border-box; }
#tln-root a { text-decoration: none; color: inherit; }

/* ══════════════════════════════════════════════
   페이지 타이틀 바
   ══════════════════════════════════════════════ */
.tln-page-head {
  background: var(--surface);
  padding: 24px 0 0;
}
.tln-page-head-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px 18px;
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  border-bottom: 3px solid var(--navy);
}
.tln-page-title {
  display: flex; align-items: center; gap: 12px;
}
.tln-title-main {
  font-size: 26px; font-weight: 900; color: var(--navy);
  letter-spacing: -0.04em;
}
.tln-title-sub {
  font-size: 13px; font-weight: 400; color: var(--muted2);
  border-left: 1px solid var(--border2); padding-left: 12px;
}
.tln-live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: #16a34a;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 20px; padding: 2px 10px;
}
.tln-live-dot {
  width: 5px; height: 5px; border-radius: 50%; background: #16a34a;
  animation: tln-pulse 2s ease-in-out infinite;
}
@keyframes tln-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.tln-page-date {
  font-size: 12px; color: var(--muted2); padding-bottom: 2px;
}

/* ══════════════════════════════════════════════
   툴바
   ══════════════════════════════════════════════ */
.tln-toolbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.tln-toolbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center;
  overflow-x: auto; scrollbar-width: none;
}
.tln-toolbar-inner::-webkit-scrollbar { display: none; }
.tln-cats { display: flex; flex-shrink: 0; }
.tln-cat {
  padding: 13px 16px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); border: none; background: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  white-space: nowrap; font-family: 'Pretendard', sans-serif;
  transition: color .15s, border-color .15s;
}
.tln-cat:hover { color: var(--navy); }
.tln-cat.active { color: var(--navy); border-bottom-color: var(--navy); }

.tln-toolbar-right {
  margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.tln-search-wrap { position: relative; }
.tln-search {
  height: 32px; padding: 0 12px;
  border: 1px solid var(--border2); border-radius: 6px;
  font-size: 13px; color: var(--text); outline: none;
  font-family: 'Pretendard', sans-serif; width: 160px;
  transition: border-color .15s, width .2s;
}
.tln-search:focus { border-color: var(--navy); width: 200px; }
.tln-lang { display: flex; border: 1px solid var(--border2); border-radius: 6px; overflow: hidden; }
.tln-lang-btn {
  padding: 4px 12px; font-size: 12px; font-weight: 600;
  color: var(--muted); background: none; border: none; cursor: pointer;
  font-family: 'Pretendard', sans-serif; white-space: nowrap;
  transition: all .12s;
}
.tln-lang-btn:not(:last-child) { border-right: 1px solid var(--border2); }
.tln-lang-btn.active { background: var(--navy); color: #fff; }

/* ══════════════════════════════════════════════
   본문
   ══════════════════════════════════════════════ */
.tln-body {
  max-width: 1200px; margin: 0 auto; padding: 28px 24px 80px;
}

/* ── 섹션 헤더 ── */
.tln-section-head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}
.tln-section-title {
  font-size: 15px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em;
}
.tln-section-count {
  font-size: 12px; color: var(--muted2);
}

/* ══════════════════════════════════════════════
   히어로
   ══════════════════════════════════════════════ */
.tln-hero-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2px;
  border-radius: 10px; overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
}
.tln-hero-main {
  position: relative; overflow: hidden;
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #1a1a2e;
}
.tln-hero-main-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .5s ease;
}
.tln-hero-main:hover .tln-hero-main-bg { transform: scale(1.03); }
.tln-hero-main-dim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.3) 55%, transparent 100%);
}
.tln-hero-main-body {
  position: relative; z-index: 1; padding: 28px;
}
.tln-hero-main-badges {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.tln-hero-main-title {
  font-size: 24px; font-weight: 800; color: #fff; line-height: 1.35;
  letter-spacing: -0.03em; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tln-hero-main:hover .tln-hero-main-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.tln-hero-main-sum {
  font-size: 13.5px; color: rgba(255,255,255,.65); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tln-hero-main-foot {
  display: flex; align-items: center; gap: 6px;
  margin-top: 14px; font-size: 12px; color: rgba(255,255,255,.45);
}
.tln-hero-main-src { font-weight: 700; }

/* 히어로 사이드 */
.tln-hero-sub {
  display: flex; flex-direction: column; gap: 2px; background: var(--border);
}
.tln-hero-sub-card {
  flex: 1; display: flex; gap: 12px;
  background: var(--surface); padding: 14px;
  transition: background .12s; min-height: 0;
}
.tln-hero-sub-card:hover { background: var(--lt); }
.tln-hero-sub-thumb {
  width: 68px; height: 56px; border-radius: 4px;
  overflow: hidden; flex-shrink: 0; background: var(--bg);
}
.tln-hero-sub-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s; display: block;
}
.tln-hero-sub-card:hover .tln-hero-sub-thumb img { transform: scale(1.06); }
.tln-hero-sub-ph {
  width: 100%; height: 100%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--muted2); text-align: center;
  letter-spacing: .02em;
}
.tln-hero-sub-body { flex: 1; min-width: 0; }
.tln-hero-sub-title {
  font-size: 13px; font-weight: 700; color: var(--text);
  line-height: 1.4; letter-spacing: -0.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 6px;
}
.tln-hero-sub-card:hover .tln-hero-sub-title { color: var(--navy); }
.tln-hero-sub-meta {
  display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted2);
}
.tln-hero-sub-src { font-weight: 600; color: var(--muted); }

/* ══════════════════════════════════════════════
   그리드
   ══════════════════════════════════════════════ */
.tln-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.tln-card {
  background: var(--surface); padding: 18px;
  display: flex; flex-direction: column; transition: background .12s;
}
.tln-card:hover { background: #f5f5ff; }
.tln-card-thumb {
  width: 100%; height: 140px; border-radius: 5px;
  overflow: hidden; flex-shrink: 0; margin-bottom: 14px; background: var(--bg);
}
.tln-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s; display: block;
}
.tln-card:hover .tln-card-thumb img { transform: scale(1.04); }
.tln-card-ph {
  width: 100%; height: 100%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--muted2);
  letter-spacing: .03em;
}
.tln-card-badges { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.tln-card-title {
  font-size: 14.5px; font-weight: 700; color: var(--text);
  line-height: 1.4; letter-spacing: -0.02em; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 8px;
}
.tln-card:hover .tln-card-title { color: var(--navy); }
.tln-card-sum {
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.tln-card-foot {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--muted2);
}
.tln-card-src { font-weight: 700; color: var(--muted); }

/* ══════════════════════════════════════════════
   리스트
   ══════════════════════════════════════════════ */
.tln-list {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.tln-list-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.tln-list-item:last-child { border-bottom: none; }
.tln-list-item:hover { background: #f8f8fd; }
.tln-list-num {
  font-size: 12px; font-weight: 800; color: var(--border2);
  width: 20px; flex-shrink: 0; padding-top: 4px; text-align: right;
}
.tln-list-thumb {
  width: 92px; height: 68px; border-radius: 4px;
  overflow: hidden; flex-shrink: 0; background: var(--bg);
}
.tln-list-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s; display: block;
}
.tln-list-item:hover .tln-list-thumb img { transform: scale(1.05); }
.tln-list-ph {
  width: 100%; height: 100%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--muted2);
}
.tln-list-body { flex: 1; min-width: 0; }
.tln-list-badges { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.tln-list-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  line-height: 1.4; letter-spacing: -0.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 5px;
}
.tln-list-item:hover .tln-list-title { color: var(--navy); }
.tln-list-sum {
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.tln-list-foot {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px; font-size: 11.5px; color: var(--muted2);
}
.tln-list-src { font-weight: 700; color: var(--muted); }

/* ══════════════════════════════════════════════
   배지
   ══════════════════════════════════════════════ */
.tln-badge {
  display: inline-block; padding: 2px 7px; border-radius: 3px;
  font-size: 10px; font-weight: 700; white-space: nowrap;
}
.tln-badge-chemistry { background: #fef9c3; color: #854d0e; }
.tln-badge-bio       { background: #ede9fe; color: #5b21b6; }
.tln-badge-physics   { background: #dbeafe; color: #1e40af; }
.tln-badge-industry  { background: #fee2e2; color: #991b1b; }
.tln-badge-general   { background: #ecfdf5; color: #065f46; }
.tln-badge-ko { background: #dbeafe; color: #1e40af; }
.tln-badge-en { background: #f3f4f6; color: #6b7280; }
.tln-badge-dk {
  display: inline-block; padding: 2px 7px; border-radius: 3px;
  font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.9);
}
.tln-badge-dk-lang {
  display: inline-block; padding: 2px 7px; border-radius: 3px;
  font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.6);
}

/* ══════════════════════════════════════════════
   더 보기 / 빈 상태 / 스켈레톤
   ══════════════════════════════════════════════ */
.tln-more-wrap { text-align: center; padding: 28px 0 0; }
.tln-more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 40px; border: 1px solid var(--border2); border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--text2);
  background: var(--surface); cursor: pointer;
  font-family: 'Pretendard', sans-serif; transition: all .15s;
}
.tln-more-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--lt); }
.tln-more-btn:disabled { opacity: .4; cursor: not-allowed; }

.tln-empty {
  text-align: center; padding: 60px 20px;
  color: var(--muted2); font-size: 14px;
}

.tln-skel {
  background: linear-gradient(90deg, #f0f0f4 25%, #e8e8ee 50%, #f0f0f4 75%);
  background-size: 200% 100%;
  animation: tln-shimmer 1.4s ease-in-out infinite;
}
@keyframes tln-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.tln-skel-hero-main { min-height: 380px; }
.tln-skel-hero-sub  { flex: 1; min-height: 94px; }
.tln-skel-card      { height: 300px; }

.tln-fade { opacity: 0; transform: translateY(10px); animation: tln-fade .4s ease forwards; }
@keyframes tln-fade { to { opacity: 1; transform: translateY(0); } }

/* ══════════════════════════════════════════════
   반응형
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tln-hero-wrap { grid-template-columns: 1fr 260px; }
  .tln-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .tln-body { padding: 20px 16px 60px; }
  .tln-page-head-inner { padding: 0 16px 14px; }
  .tln-title-main { font-size: 20px; }
  .tln-title-sub { display: none; }
  .tln-hero-wrap { grid-template-columns: 1fr; }
  .tln-hero-main { min-height: 260px; }
  .tln-hero-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
  .tln-grid { grid-template-columns: 1fr 1fr; }
  .tln-card-thumb { height: 110px; }
  .tln-list-num { display: none; }
  .tln-list-thumb { width: 80px; height: 60px; }
}
@media (max-width: 480px) {
  .tln-grid { grid-template-columns: 1fr; }
  .tln-hero-sub { grid-template-columns: 1fr; }
}
/* BASIC css end */

