/* ===================================================================
   보도자료 (/press) — 목록·상세 전용
   목록 = 신문 지면형(시안 A) · 상세 = 뉴스룸형 1단(시안 B, 사이드바 없음).
   공지사항 클래스(cs.css)를 쓰지 않는다 — 이 파일을 고쳐도 공지·FAQ 화면은 영향이 없다.
   common.css 디자인 토큰 기반.
   =================================================================== */

/* 공통 레이아웃 — 폭·여백은 .cs-page-layout 과 같다 */
.press-page {
  /* 날짜·요약 같은 보조 글자색. common.css 의 --text-secondary(#777)는 흰 바탕 대비 4.48:1 로
     본문 크기 글자 기준(4.5:1)에 조금 못 미쳐, 한 단계 진한 회색을 쓴다(#666 = 5.74:1) */
  --press-text-sub: #666;

  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 96px;
  word-break: keep-all;
}

/* ===================================================================
   목록 (press/index) — 신문 지면형
   =================================================================== */

/* 제호 — 이중선으로 지면 머리를 나눈다 */
.press-masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding: 24px 0 22px;
  border-bottom: 4px double var(--text-dark);
  text-align: center;
}
.press-masthead__eyebrow {
  color: var(--color-primary);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.2em;
}
.press-masthead__title {
  margin: 0;
  color: var(--text-dark);
  font-size: clamp(var(--fs-4xl), 4.5vw, 3.5rem);
  font-weight: var(--fw-black);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.press-masthead__desc {
  margin: 0;
  color: var(--press-text-sub);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* 「주요」 배지 — 고정 글. 머리기사·기사 행의 제목 위 (매체명·보도일은 표시하지 않는다) */
.press-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--color-primary);
  color: var(--text-white);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
}
.press-badge i {
  font-size: 0.65rem;
}

/* 머리기사 — 1페이지 첫 글. 사진 | 머리줄·제목·요약 2단, 사진이 없으면 글이 폭 전체를 쓴다 */
.press-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color-light);
  color: inherit;
  text-decoration: none;
}
.press-lead--text {
  grid-template-columns: minmax(0, 1fr);
}
/* 사진 없는 머리기사 — 요약 한 줄이 지나치게 길어지지 않게 상세 본문과 같은 읽기 폭으로 묶는다 */
.press-lead--text .press-lead__body {
  max-width: 760px;
}
.press-lead__media,
.press-row__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-light); /* 이미지가 뜨기 전에도 자리가 보이게 */
}
/* 16:9 로 잘라 채운다 — 상세 대표 이미지와 같은 기준(관리자 폼에 가로형 권장 안내) */
.press-lead__media img,
.press-row__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.press-lead__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.press-lead__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-dark);
  font-size: clamp(var(--fs-xl), 2.4vw, var(--fs-3xl));
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  transition: color var(--transition-fast);
}
.press-lead__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--press-text-sub);
  font-size: var(--fs-base);
  line-height: 1.75;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* 기사 행 — 머리줄 / 제목 / 요약 2줄, 사진은 있을 때만 오른쪽에 작게 */
.press-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.press-list__item {
  border-bottom: 1px solid var(--border-color-light);
}
.press-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 26px 0;
  color: inherit;
  text-decoration: none;
}
.press-row__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.press-row__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-dark);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: 1.45;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color var(--transition-fast);
}
.press-row__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--press-text-sub);
  font-size: var(--fs-sm);
  line-height: 1.7;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.press-row__thumb {
  flex: 0 0 196px;
}

.press-lead:hover .press-lead__title,
.press-row:hover .press-row__title {
  color: var(--color-primary);
}

/* 빈 상태 */
.press-empty {
  padding: 60px 20px;
  color: var(--press-text-sub);
  text-align: center;
}
.press-empty i {
  display: block;
  margin-bottom: 12px;
  font-size: 2rem;
}

/* ===================================================================
   상세 (press/show) — 뉴스룸형 1단
   =================================================================== */

/* 읽기 폭 — 본문 17px 기준 한 줄 40자 남짓이 되도록 목록(1080px)보다 좁힌다 */
.press-article {
  max-width: 800px;
}

.press-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--press-text-sub);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.press-back:hover {
  color: var(--color-primary);
}

/* 머리 — 가운데 정렬. 본문·참고링크·이전/다음은 왼쪽 정렬 그대로 */
.press-article__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 0 28px;
  border-bottom: 1px solid var(--border-color-light);
  text-align: center;
}
.press-article__title {
  margin: 0;
  color: var(--text-dark);
  font-size: clamp(var(--fs-2xl), 3.4vw, 2.625rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.press-article__meta {
  color: var(--press-text-sub);
  font-size: var(--fs-xs);
}

/* 대표 이미지 — 제목 아래, 본문 위. 16:9 고정(비율이 다른 원본은 잘라서 맞춘다) */
.press-article__figure {
  margin: 32px 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-light);
}
.press-article__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.press-article__body {
  margin-top: 32px;
  color: var(--text-primary);
  font-size: 1.0625rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.press-article__body p {
  margin: 0 0 1.1em;
}
.press-article__body p:last-child {
  margin-bottom: 0;
}

/* 참고링크 카드 — 연결될 사이트 주소(도메인)를 보여 주고 카드 전체가 링크다.
   아래 이전/다음 카드와 헷갈리지 않게 아이콘 칸과 보라 테두리로 구분한다 */
.press-source-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 16px 20px;
  border: 1px solid rgba(138, 43, 226, 0.2); /* --color-primary 의 20% */
  border-radius: 12px;
  color: var(--text-dark);
  text-decoration: none;
  transition: border-color var(--transition-fast);
}
.press-source-card:hover {
  border-color: var(--color-primary);
  color: var(--text-dark);
}
.press-source-card__icon {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-bg);
  color: var(--color-primary);
}
.press-source-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.press-source-card__label {
  color: var(--press-text-sub);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
}
/* 주소가 길면 한 줄로 말줄임 */
.press-source-card__host {
  overflow: hidden;
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.press-source-card__go {
  flex: 0 0 auto;
  color: var(--color-primary);
}

/* 이전글 · 다음글 — 2칸 카드. 다음글은 항상 오른쪽 칸(이전글이 없어도 자리를 지킨다) */
.press-adjacent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
}
.press-adjacent__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--border-color-light);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition-fast);
}
.press-adjacent__item:hover {
  border-color: var(--color-primary);
}
.press-adjacent__item--next {
  grid-column: 2;
  align-items: flex-end;
  text-align: right;
}
.press-adjacent__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--press-text-sub);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
}
.press-adjacent__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-dark);
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.press-article__footer {
  margin-top: 32px;
}
.press-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.press-list-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ===================================================================
   모바일
   =================================================================== */
@media (max-width: 768px) {
  .press-masthead {
    margin-bottom: 28px;
    padding-top: 12px;
  }

  .press-lead {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 28px;
  }

  .press-row {
    gap: 16px;
    padding: 18px 0;
  }
  .press-row__title {
    font-size: var(--fs-md);
  }
  .press-row__thumb {
    flex-basis: 104px;
  }

  .press-article__figure {
    margin-top: 24px;
    border-radius: 10px;
  }
  .press-article__body {
    margin-top: 24px;
    font-size: var(--fs-base);
  }

  .press-source-card {
    gap: 14px;
    padding: 14px 16px;
  }
  .press-source-card__icon {
    flex-basis: 40px;
    height: 40px;
  }

  .press-adjacent {
    grid-template-columns: minmax(0, 1fr);
  }
  .press-adjacent__item--next {
    grid-column: auto;
  }
}
