/* ─── Reset / Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1117;
  --bg2: #1a1d27;
  --bg3: #22263a;
  --border: #2d3048;
  --accent: #5b8dee;
  --accent2: #7c5bd4;
  --text: #e4e6f0;
  --text-muted: #7a7e9a;
  --error: #e05252;
  --warning: #d6a23e;
  --success: #43b97f;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,.45);
}

/* 시스템 라이트 모드 */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f4f8;
    --bg2: #ffffff;
    --bg3: #e8eaf0;
    --border: #d0d3e0;
    --accent: #3a6fd8;
    --accent2: #6040c0;
    --text: #1a1d2e;
    --text-muted: #6b6f88;
    --error: #cc3333;
    --warning: #a66b00;
    --success: #2e9a60;
    --shadow: 0 4px 24px rgba(0,0,0,.10);
  }
}

/* 강제 다크 */
[data-theme="dark"] {
  --bg: #0f1117;
  --bg2: #1a1d27;
  --bg3: #22263a;
  --border: #2d3048;
  --accent: #5b8dee;
  --accent2: #7c5bd4;
  --text: #e4e6f0;
  --text-muted: #7a7e9a;
  --error: #e05252;
  --warning: #d6a23e;
  --success: #43b97f;
  --shadow: 0 4px 24px rgba(0,0,0,.45);
}

/* 강제 라이트 */
[data-theme="light"] {
  --bg: #f3f4f8;
  --bg2: #ffffff;
  --bg3: #e8eaf0;
  --border: #d0d3e0;
  --accent: #3a6fd8;
  --accent2: #6040c0;
  --text: #1a1d2e;
  --text-muted: #6b6f88;
  --error: #cc3333;
  --warning: #a66b00;
  --success: #2e9a60;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', 'Malgun Gothic', '맑은 고딕', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* ─── Page Header ───────────────────────────────────── */
.page-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-header__inner {
  max-width: 85rem;
  margin: 0 auto;
  padding: 0 8px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header__inner--home {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  column-gap: 12px;
}

@media (min-width: 640px) {
  .page-header__inner { padding: 0 16px; height: 72px; }
}

.page-header__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.3px;
  white-space: nowrap;
}

.page-header__logo {
  width: 30px;
  height: 30px;
}

.interval-bar__crawl-time {
  align-self: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
}
.interval-bar__crawl-time::after {
  content: '\00a0';
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
}
.interval-bar__crawl-time strong {
  color: var(--text);
  font-weight: 600;
}

.interval-bar__btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 15px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}
.interval-bar__btn:hover { color: var(--text); border-color: var(--text-muted); background: var(--bg3); }
.interval-bar__btn:disabled { opacity: .4; cursor: default; }

.interval-bar__btn--theme {
  align-self: center;
  justify-self: end;
  display: grid;
  width: 48px;
  height: 40px;
  margin-left: 8px;
  background: transparent;
  color: var(--text-muted);
  border: 0;
  place-items: center;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}
.interval-bar__btn--theme:hover { color: var(--text); background: var(--bg3); }
.interval-bar__btn--theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 좁은 화면: 수집 시각 숨김 */
@media (max-width: 479px) {
  .interval-bar__crawl-time { display: none; }
}

/* ─── Page Wrap (max-width 중앙 정렬) ──────────────────── */
.page-wrap {
  max-width: 80rem; /* 1280px = Tailwind max-w-7xl */
  margin: 0 auto;
  padding: 0 16px;
}

/* ─── Header Event Carousel ─────────────────────────── */
.event-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-self: end;
  gap: 10px;
  min-width: 0;
  width: max-content;
  max-width: min(560px, 100%);
}

.event-banner__track { position: relative; min-width: 0; }
.event-banner__slide { display: none; }
.event-banner__slide--active { display: block; }
.event-banner__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
}
.event-banner__link:hover { color: var(--accent); }
.event-banner__media {
  display: block;
  width: 96px;
  aspect-ratio: 192 / 90;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg3);
}
.event-banner__image,
.event-banner__fallback { display: block; width: 100%; height: 100%; }
.event-banner__image { object-fit: cover; }
.event-banner__fallback { background: linear-gradient(135deg, var(--accent2), var(--bg3)); }
.event-banner__content { min-width: 0; }
.event-banner__title {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-banner__date {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  white-space: nowrap;
}
.event-banner__next {
  width: 30px;
  height: 28px;
  padding: 0 0 2px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg2);
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.event-banner__next:hover,
.event-banner__next:focus-visible { background: var(--bg2); border-color: var(--text-muted); color: var(--accent); outline: none; }

@media (max-width: 900px) {
  .page-header__inner--home { grid-template-columns: auto minmax(0, 1fr) auto; }
  .page-header__inner--home .interval-bar__crawl-time { display: none; }
}

@media (max-width: 700px) {
  .page-header__inner--home {
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .page-header__inner--home .event-banner { grid-column: 1 / -1; grid-row: 2; }
  .page-header__inner--home > .interval-bar__btn--theme { grid-column: 2; grid-row: 1; }
}

@media (max-width: 420px) {
  .page-header__title { font-size: 1.1rem; }
  .page-header__logo { width: 26px; height: 26px; }
  .event-banner { gap: 6px; }
  .event-banner__link { grid-template-columns: minmax(0, 1fr) 88px; gap: 8px; }
  .event-banner__media { width: 88px; }
  .event-banner__title { font-size: 13px; }
  .event-banner__next { width: 27px; }
}

/* ─── AI Briefing ───────────────────────────────────── */
.ai-briefing {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  box-shadow: var(--shadow);
  overflow: hidden;
  overflow-wrap: anywhere;
}

.ai-briefing__header {
  padding: 10px 14px 11px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.ai-briefing__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ai-briefing__title {
  margin: 0;
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.ai-briefing__badge {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--accent2) 40%, var(--border));
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent2) 8%, transparent);
  color: var(--accent2);
  font-size: 11px;
  font-weight: 700;
}
.ai-briefing__content { padding: 16px; }
.ai-briefing__schedule { margin-top: 6px; color: var(--text-muted); font-size: 12px; }
.ai-briefing__lead {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  white-space: pre-line;
}
.ai-briefing__sections {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 2px;
}
.ai-briefing__section { min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--border); }
.ai-briefing__section:last-child { border-bottom: 0; padding-bottom: 0; }
.ai-briefing__section-heading { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.ai-briefing__section-index { color: var(--accent); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ai-briefing__section h3 { margin: 0; color: var(--text); font-size: 15px; line-height: 1.4; }
.ai-briefing__section > p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.7; white-space: pre-line; }
.ai-briefing__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 11px; font-size: 12px; }
.ai-briefing__links-label { width: 100%; color: var(--text-muted); font-size: 11px; font-weight: 700; }
.ai-briefing__links a {
  max-width: 100%;
  padding: 3px 7px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg3);
  color: var(--text-muted);
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .12s, border-color .12s, background .12s;
}
.ai-briefing__links a:hover, .ai-briefing__links a:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg3));
  color: var(--accent);
  outline: none;
}
.ai-briefing__notice { margin-top: 14px; color: var(--text-muted); font-size: 12px; }
.ai-briefing__empty { margin: 5px 0 0; font-size: 15px; }

@media (min-width: 720px) {
  .ai-briefing__header { padding: 11px 20px 13px; }
  .ai-briefing__content { padding: 18px 20px 20px; }
  .ai-briefing__sections {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    margin-top: 2px;
    background: var(--border);
  }
  .ai-briefing__section,
  .ai-briefing__section:last-child { padding: 14px; border-bottom: 0; background: var(--bg2); }
  .ai-briefing__section:first-child { padding-left: 0; }
  .ai-briefing__section:last-child { padding-right: 0; }
  .ai-briefing__sections--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-briefing__sections--4 .ai-briefing__section:nth-child(odd) { padding-left: 0; }
  .ai-briefing__sections--4 .ai-briefing__section:nth-child(even) { padding-right: 0; }
}

@media (max-width: 560px) {
  .ai-briefing__content { padding: 14px; }
  .ai-briefing__lead { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .event-banner *, .main-carousel * { scroll-behavior: auto; transition: none !important; }
}

/* ─── Sites Grid (최대 2열 반응형) ──────────────────────── */
.sites-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px 0;
}

@media (min-width: 640px) { .sites-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─── Site Card ─────────────────────────────────────── */
.site-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  min-height: 500px;
}

.site-card--warning { border-color: color-mix(in srgb, var(--warning) 45%, var(--border)); }
.site-card--stale { border-color: var(--warning); }
.site-card--error { border-color: var(--error); }

.site-card__header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 8px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.site-card__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}
.site-card__name:hover { color: var(--text); }

.crawl-status-badge {
  font-size: 12px;
  border-radius: 4px;
  padding: 1px 6px;
  cursor: help;
  white-space: nowrap;
  flex-shrink: 0;
}

.crawl-status-badge--warning {
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.crawl-status-badge--stale {
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
}

.crawl-status-badge--error {
  color: var(--error);
  background: color-mix(in srgb, var(--error) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--error) 35%, transparent);
}

.site-card__unavailable {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
}

/* site-card__meta 제거됨 (헤더 중앙 표시로 이동) */

/* ─── Main Banner Carousel ──────────────────────────── */
.main-carousel {
  position: relative;
}

.main-carousel--empty {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 12px;
}

.main-carousel__track {
  position: relative;
  overflow: hidden;
}

.main-slide {
  display: none;
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--bg3);
  text-decoration: none;
}

.main-slide.main-slide--active { display: block; }

.main-slide__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.main-slide:hover .main-slide__thumb { transform: scale(1.03); }

.main-slide__no-thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg3), var(--border));
}

.main-slide__title {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px 12px 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 내비게이션 바 */
.main-carousel__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: var(--bg3);
  border-top: 1px solid var(--border);
}

.main-carousel__arrow {
  flex-shrink: 0;
  width: 33px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background .12s, border-color .12s;
}
.main-carousel__arrow:hover { background: var(--border); border-color: var(--accent); }

.main-carousel__dots {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.main-carousel__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background .15s, transform .15s;
}
.main-carousel__dot.main-carousel__dot--active {
  background: var(--accent);
  transform: scale(1.35);
}

/* ─── Popular News List ──────────────────────────────── */
.popular-section {
  padding: 10px 14px 6px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: rgba(91,141,238,.06);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .popular-section {
    background: rgba(58,111,216,.06);
  }
}
[data-theme="light"] .popular-section {
  background: rgba(58,111,216,.06);
}

.popular-section__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.popular-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.popular-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.popular-item:last-child { border-bottom: none; }

.popular-item__rank {
  min-width: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
  flex-shrink: 0;
}

.popular-item__link {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .1s;
}
.popular-item__link:hover { color: var(--accent); }

/* ─── Latest News List ───────────────────────────────── */
.latest-section {
  padding: 10px 14px 14px;
  flex: 1;
}

.latest-section__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.latest-section__empty {
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 0;
}

.latest-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.latest-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.latest-item:last-child { border-bottom: none; }

.latest-item__rank {
  min-width: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

.latest-item__link {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .1s;
}
.latest-item__link:hover { color: var(--accent); }

.latest-item__time {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── Persons Section ───────────────────────────────── */
.persons-section {
  padding: 24px 0 16px;
}

.persons-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.persons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) { .persons-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─── Footer ─────────────────────────────────────────── */
.page-footer {
  position: relative;
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.page-footer__text {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.page-footer__visitors {
  position: absolute;
  left: 0;
  top: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.page-footer__visitors strong {
  color: var(--text);
  font-weight: 600;
}

.page-footer__link {
  position: absolute;
  right: 0;
  top: 20px;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}

.page-footer__link:hover,
.page-footer__link:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

@media (max-width: 479px) {
  .page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
  }

  .page-footer__link { position: static; flex-shrink: 0; }
  .page-footer__visitors { position: static; }
  .page-footer__text { display: none; }
}

/* ─── Terms ─────────────────────────────────────────────────────────────── */
.terms-page {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 48px 0 72px;
}

.terms-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg2);
  box-shadow: var(--shadow);
}

.terms-card__header {
  padding: 36px 40px 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 11%, var(--bg3)), var(--bg2));
}

.terms-card__back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

.terms-card__header h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -.04em;
}

.terms-card__header p {
  max-width: 580px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.terms-card__content { padding: 8px 40px 36px; }

.terms-card__content section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.terms-card__content h2 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.45;
}

.terms-card__content h2 span {
  margin-right: 4px;
  color: var(--accent);
}

.terms-card__content section p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.terms-card__content section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-card__effective-date {
  margin-top: 28px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 560px) {
  .terms-page { padding: 24px 0 48px; }
  .terms-card__header { padding: 28px 24px 24px; }
  .terms-card__back { margin-bottom: 20px; }
  .terms-card__content { padding: 4px 24px 28px; }
  .terms-card__content section { padding: 24px 0; }
}



/* ─── Person Card ───────────────────────────────────── */
.person-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.person-card--error {
  border-color: var(--error);
}

.person-card--warning { border-color: color-mix(in srgb, var(--warning) 45%, var(--border)); }
.person-card--stale { border-color: var(--warning); }

.person-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.person-card__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person-card__name:hover { color: var(--text); }

/* ─── Person Featured Item ──────────────────────────── */
.person-featured {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.person-featured--empty {
  min-height: 120px;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 13px;
  padding: 20px;
  text-align: center;
}

/* 이미지 없는 기사 전용 featured (서정근 기자 등) */
.person-featured--text-only {
  background: var(--bg);
  min-height: 0;
  padding: 12px 14px 10px;
  gap: 4px;
}
.person-featured--text-only .person-featured__title {
  position: static;
  font-size: 15px;
  padding: 0;
  background: none;
  color: var(--text);
  -webkit-line-clamp: 3;
}
.person-featured--text-only .person-featured__date {
  position: static;
  padding: 0;
  color: var(--text-muted);
  text-align: left;
}

.person-featured__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--bg);
  transition: transform .35s ease;
}
.person-featured:hover .person-featured__thumb { transform: scale(1.03); }

.person-featured__no-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--border) 0%, var(--bg) 100%);
}

.person-featured__title {
  position: absolute;
  inset: 0 0 auto 0;
  padding: 10px 12px 32px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background: linear-gradient(rgba(0,0,0,.85), transparent);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.person-featured:hover .person-featured__title { color: #fff; }

.person-featured__date {
  position: absolute;
  inset: auto 0 0 0;
  padding: 4px 12px 6px;
  font-size: 12px;
  color: rgba(255,255,255,.75);
  text-align: right;
}

/* ─── Person List ───────────────────────────────────── */
.person-list {
  list-style: none;
  margin: 0;
  padding: 6px 0 4px;
  border-top: 1px solid var(--border);
}

.person-list-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 12px;
  line-height: 1.35;
}

.person-list-item__rank {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  min-width: 16px;
  flex-shrink: 0;
}

.person-list-item__link {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.person-list-item__link:hover { color: var(--accent); }

.person-list-item__date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
