/*
 * 기록(/log) 전용 스타일. 원래 dictionary.css 에 함께 있던 것을 떼어냈습니다.
 * 에디토리얼 공통 골격(.editorial-page / .editorial-shell)은 dictionary.css 가 갖고 있습니다.
 */

.log-section {
  border-top: 1px solid var(--hairline-strong);
}

/* 섹션 머리 = 소형 볼드 라벨 + 헤어라인 + 우측 보조값 (사전과 같은 패턴) */
.log-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--hairline);
}

.log-summary h2,
.log-summary p {
  margin: 0;
}

.log-summary h2 {
  color: var(--ink);
  font-size: var(--text-2xs);
  font-weight: var(--weight-label);
  letter-spacing: var(--label-tracking);
}

.log-summary p {
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: var(--weight-strong);
  letter-spacing: var(--label-tracking);
}

.log-table-wrap {
  overflow-x: auto;
  border-bottom: 1px solid var(--hairline-strong);
}

.log-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.log-table th,
.log-table td {
  padding: var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: middle;
}

.log-table th:first-child,
.log-table td:first-child {
  width: 18%;
  padding-left: 0;
}

.log-table th:nth-child(2),
.log-table td:nth-child(2) {
  width: 30%;
}

.log-table th:nth-child(3),
.log-table td:nth-child(3) {
  width: 18%;
}

.log-table th:last-child,
.log-table td:last-child {
  width: 34%;
  padding-right: 0;
}

.log-table th {
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: var(--weight-label);
  letter-spacing: var(--label-tracking);
}

.log-table tbody tr:last-child td {
  border-bottom: 0;
}

.log-table time,
.log-table__muted {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: var(--text-2xs);
  letter-spacing: 0.04em;
}

.log-place-link {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-label);
  line-height: 1.45;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color var(--duration-slow) var(--ease-out), text-decoration-color var(--duration-slow) var(--ease-out);
}

.log-place-link:hover {
  color: var(--rose-500);
  text-decoration-color: var(--hairline);
}

.log-place-link:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

/* 카테고리 점은 데이터 인코딩이라 색을 남깁니다. */
.log-category {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  color: var(--muted);
  font-size: var(--text-2xs);
  letter-spacing: 0.02em;
}

.log-category::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose-500);
  content: "";
}

.log-category[data-category="카페"]::before { background: var(--cafe); }
.log-category[data-category="맛집"]::before { background: var(--food); }
.log-category[data-category="산책"]::before { background: var(--walk); }
.log-category[data-category="전시"]::before { background: var(--exhibit); }
.log-category[data-category="팝업·행사"]::before { background: var(--exhibit); }
.log-category[data-category="야경"]::before { background: var(--night); }

.log-channels {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .log-table-wrap {
    overflow: visible;
  }

  .log-table,
  .log-table tbody,
  .log-table tr,
  .log-table td {
    display: block;
    width: 100%;
  }

  .log-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .log-table tr {
    display: grid;
    gap: var(--space-2) var(--space-4);
    grid-template-columns: minmax(0, 1fr) auto;
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--hairline);
  }

  .log-table th,
  .log-table td,
  .log-table th:first-child,
  .log-table td:first-child,
  .log-table th:nth-child(2),
  .log-table td:nth-child(2),
  .log-table th:nth-child(3),
  .log-table td:nth-child(3),
  .log-table th:last-child,
  .log-table td:last-child {
    width: auto;
    padding: 0;
    border: 0;
  }

  .log-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .log-table td:nth-child(2) { grid-column: 1; grid-row: 2; }

  .log-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
  }

  .log-table td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }

  .log-place-link {
    font-size: var(--text-lg);
  }
}

.log-section {
  border: 1px solid var(--editorial-frame);
}

.log-summary {
  padding-inline: var(--space-4);
  border-bottom-color: var(--editorial-frame);
}

.log-table-wrap {
  border-bottom: 0;
}

.log-table th,
.log-table td,
.log-table tr {
  border-color: var(--editorial-frame-soft);
}

.log-place-link:hover {
  color: var(--pink-strong);
}

@media (max-width: 820px) {
  .log-table tr {
    padding-inline: var(--space-4);
  }
}
