/* 목록 페이지 리디자인 — design/redesign-list.html */
@import url("redesign-tokens.css");

body.rd-list {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--page-bg);
}

body.rd-list .guestbook-container,
body.rd-list #main-content {
  max-width: none;
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
}

body.rd-list .navbar.bg-primary:not(.site-masthead),
body.rd-list .weather-banner,
body.rd-list .world-clock-bar {
  display: none !important;
}

.rd-list-wrap {
  width: 100%;
  overflow-x: hidden;
}

.rd-list-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rd-list-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

.rd-list-hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.15;
  letter-spacing: -1px;
}

.rd-list-hero p {
  margin: 0;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.rd-list-tabs-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.rd-list-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.rd-list-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.rd-list-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-on-dark);
  font-weight: 600;
}

.rd-list-tab:hover {
  color: var(--accent);
}

.rd-list-tab.is-active:hover {
  color: var(--text-on-dark);
}

.rd-list-featured {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 24px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.rd-list-feature {
  flex: 3 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: inherit;
}

.rd-list-feature:hover {
  color: inherit;
}

.rd-list-feature-img {
  height: 340px;
  border-radius: 2px;
  background: var(--surface-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 13px;
}

.rd-list-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rd-list-feature-meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
}

.rd-list-feature-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.3;
}

.rd-list-feature-summary {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.rd-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rd-list-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-family: var(--font-serif);
}

.rd-list-side {
  flex: 2 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rd-list-side-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}

.rd-list-side-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}

.rd-list-side-item:hover {
  color: inherit;
}

.rd-list-side-num {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 26px;
  color: var(--accent);
  width: 32px;
  flex-shrink: 0;
  line-height: 1.2;
}

.rd-list-side-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.rd-list-side-source {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.rd-list-side-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
}

.rd-list-grid-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.rd-list-grid-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 28px;
}

.rd-list-grid-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 30px;
}

.rd-list-grid-head span {
  font-size: 14px;
  color: var(--ink-muted);
}

.rd-list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 28px;
}

.rd-list-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  min-width: 0;
}

.rd-list-card:hover {
  color: inherit;
}

.rd-list-card:hover .rd-list-card-title {
  color: var(--accent);
}

.rd-list-card-img {
  height: 160px;
  background: var(--surface-warm);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 13px;
  color: var(--ink-muted);
}

.rd-list-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rd-list-card-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
}

.rd-list-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.45;
}

.rd-list-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 24px 72px;
}

.rd-list-pager a,
.rd-list-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.rd-list-pager a:hover {
  border-color: var(--ink);
  color: var(--accent);
}

.rd-list-pager .is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-on-dark);
  font-weight: 600;
}

.rd-list-pager .is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.rd-list-empty {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 16px;
}

@media (max-width: 1100px) {
  .rd-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .rd-list-hero {
    padding: 36px 16px 24px;
  }

  .rd-list-hero p {
    font-size: 16px;
  }

  .rd-list-tabs-wrap,
  .rd-list-featured,
  .rd-list-grid-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .rd-list-featured {
    gap: 28px;
    padding-top: 28px;
  }

  .rd-list-feature-img {
    height: 200px;
  }

  .rd-list-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rd-list-pager {
    padding: 28px 16px 56px;
  }
}
