/* ═══════════════════════════════════════════════════════════
   홈 화면 · 생활 정보 (많이 읽은 글, 이미지 없이 글자 중심)
   ═══════════════════════════════════════════════════════════ */
.hl {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(24px, 4vw, 40px); border-radius: calc(var(--r-lg) + 8px);
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 7%, var(--surface)), var(--surface) 55%, color-mix(in srgb, var(--sky) 6%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--line));
  box-shadow: var(--sh-sm);
}
.hl::before {
  content: ''; position: absolute; z-index: -1; width: 420px; height: 420px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%);
}

/* 머리 */
.hl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.hl-head h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.045em; }
.hl-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.hl-all {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 99px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 700;
  box-shadow: var(--sh-xs); transition: border-color .15s, color .15s, transform .15s var(--ease);
}
.hl-all b { color: var(--link); font-variant-numeric: tabular-nums; }
.hl-all .ic { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.hl-all:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); color: var(--link); transform: translateY(-1px); }
.hl-all:hover .ic { transform: translateX(3px); }

/* 분야 */
.hl-cats { display: flex; gap: 8px; margin: 0 0 20px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.hl-cats::-webkit-scrollbar { display: none; }
.hl-cats a {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 99px;
  background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--line); color: var(--text);
  font-size: 13.5px; font-weight: 650; white-space: nowrap; transition: border-color .15s, color .15s;
}
.hl-cats a small { color: var(--subtle); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hl-cats a:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); color: var(--link); }

/* 본문 격자: 대표 글 + 목록 */
.hl-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }

.hl-lead {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-lg); color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 92%, #06322d), color-mix(in srgb, var(--primary-2) 85%, #0b2f4a));
  box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--primary) 75%, transparent);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.hl-lead::after {
  content: ''; position: absolute; z-index: -1; inset: auto -60px -80px auto; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%);
}
.hl-lead:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--primary) 85%, transparent); }
.hl-rank { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -.06em; color: rgba(255, 255, 255, .28); font-variant-numeric: tabular-nums; }
.hl-tag { align-self: flex-start; padding: 4px 11px; border-radius: 99px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); font-size: 12.5px; font-weight: 700; }
.hl-lead strong { font-size: clamp(19px, 2.6vw, 24px); line-height: 1.42; letter-spacing: -.04em; font-weight: 800; }
.hl-ex { color: rgba(255, 255, 255, .84); font-size: 15px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: auto; padding-top: 8px; color: rgba(255, 255, 255, .72); font-size: 13px; font-variant-numeric: tabular-nums; }
.hl-go { margin-left: auto; color: #fff; font-weight: 700; }

.hl-list { margin: 0; padding: 6px 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs); }
.hl-list li + li { border-top: 1px solid var(--line); }
.hl-list a { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 12px; color: var(--text); transition: background .15s; }
.hl-list a:hover { background: color-mix(in srgb, var(--soft) 60%, transparent); }
.hl-num { flex: none; min-width: 26px; padding-top: 1px; color: var(--link); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.hl-body { display: grid; gap: 4px; min-width: 0; }
.hl-body strong { font-size: 15.5px; line-height: 1.5; font-weight: 700; letter-spacing: -.03em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hl-list a:hover strong { color: var(--link); }
.hl-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--subtle); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.hl-sub b { color: var(--muted); font-weight: 650; }

:root[data-theme="dark"] .hl-lead { background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 55%, #0b1d20), color-mix(in srgb, var(--primary-2) 45%, #0b1d2a)); }

/* 휴대폰 · 태블릿 */
@media (max-width: 860px) {
  .hl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hl { padding: 22px 16px; border-radius: var(--r-lg); }
  .hl-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hl-all { align-self: stretch; justify-content: center; }
  .hl-rank { font-size: 38px; }
  .hl-list a { padding: 13px 12px; gap: 12px; }
  .hl-go { display: none; }
}
