/*
 * 매거진 — Figma «05.magazine»(716:64479) 새 판, 2026-10-26.
 * 홈(1134:53088 1600 · 53105 1024 · 53122 360) · 트렌드/이슈 목록 · 상세가 함께 쓴다.
 *
 * 섹션 = 흰/회색(#f7f7f7) 띠(.mgz-band) 안의 1280 컨테이너(.mgz-wrap, 위아래 80 · 모바일 40).
 * 섹션 제목 = Cal Sans 60px(모바일 20px). 카드 사진 = 3:4(작은 카드 1:1) + 오른쪽 아래 «사진 제공 | 본문 참조».
 * 반응형: ≥1024 PC 판(1024 는 좌우 20) · 768~1023 태블릿 · ≤767 모바일(Figma 360).
 */

.mgz-page {
  --mgz-tx1: var(--neutral-tx1-hero, #1a1a1a);
  --mgz-tx2: var(--neutral-tx2-title, #444);
  --mgz-tx3: var(--neutral-tx3-sub, #949494);
  --mgz-tx4: #cfcfcf;
  --mgz-bg: #f7f7f7;
  background: #fff;
}

.mgz-page a {
  color: inherit;
  text-decoration: none;
}

.mgz-band {
  width: 100%;
  background: #fff;
}

.mgz-band--gray {
  background: var(--mgz-bg);
}

.mgz-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 0;
  box-sizing: content-box;
}

@media (max-width: 1319px) {
  .mgz-wrap {
    padding-right: 20px;
    padding-left: 20px;
  }
}

.mgz-title {
  margin: 0;
  color: var(--mgz-tx1);
  font-family: "Cal Sans", sans-serif;
  font-size: 60px;
  font-weight: 400;
  line-height: normal;
}

/* ---------- 사진 + 출처 ---------- */
.mgz-img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--mgz-bg);
}

.mgz-img--square {
  aspect-ratio: 1 / 1;
}

.mgz-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mgz-credit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  color: rgba(242, 242, 242, 0.6);
  font-family: "Pretendard", var(--font-family-base, sans-serif);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.mgz-img--square .mgz-credit,
.mgz-sub .mgz-credit,
.mgz-wcard .mgz-credit {
  right: 7px;
  bottom: 4px;
  font-size: 9px;
}

/* ---------- 카드 글 ---------- */
.mgz-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 2px;
  min-width: 0;
}

.mgz-label {
  overflow: hidden;
  color: var(--mgz-tx2);
  font-size: 14px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mgz-card-title {
  margin: 0;
  color: var(--mgz-tx1);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  overflow-wrap: anywhere;
}

.mgz-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--mgz-tx3);
  font-size: 14px;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* 큰 카드(3:4 + 30px 제목 + 요약 3줄) */
.mgz-main {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 14px;
  min-width: 480px;
  max-width: 610px;
}

.mgz-main .mgz-card-title {
  font-size: 30px;
  line-height: 44px;
}

/* 작은 카드(1:1 + 12px 라벨 + 16px 제목) */
.mgz-sub {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.mgz-sub .mgz-label {
  font-size: 12px;
  line-height: 16px;
}

.mgz-sub .mgz-card-title {
  font-size: 16px;
  line-height: 22px;
}

/* ---------- 히어로 ----------
   2026-11-01 Figma «magazine-section-hero»(1332:62925) — 자막 겹침 때문에 제목을 사진·영상 «아래» 회색 띠(#f7f7f7)로 옮겼다.
   제목은 한글 또는 영문 «하나» — 글꼴이 다르다: 영문 = DM Serif Text 400(40 · 태블릿 32 · 모바일 18),
   한글 = Noto Sans SemiBold(34 · 26 · 16, 자간 -5%) → `.mgz-hero__title--ko`(한글이 들어 있으면 붙인다). */
.mgz-hero {
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.mgz-hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 720;
  overflow: hidden;
}

.mgz-hero__media > img,
.mgz-hero__media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mgz-hero__title {
  margin: 0;
  padding: 10px 20px;
  background: var(--mgz-bg);
  color: var(--mgz-tx1);
  font-family: "DM Serif Text", serif;
  font-size: 40px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  word-break: keep-all;
}

.mgz-hero__title--ko {
  font-family: "MGZ Noto Sans KR", "Noto Sans KR", sans-serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -1.7px;
}

@media (max-width: 1279px) {
  .mgz-hero__title {
    font-size: 32px;
  }

  .mgz-hero__title--ko {
    font-size: 26px;
    letter-spacing: -1.3px;
  }
}

.mgz-sound {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.mgz-sound img {
  width: 14px;
  height: auto;
}

/* ---------- TOP HIGHLIGHT · CURRENT MOOD (큰 카드 + 2×2) ---------- */
.mgz-five {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.mgz-five__grid {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 10px;
  align-self: stretch;
  align-content: start;
  min-width: 0;
}

/* ---------- BEST CHOICE (세로 카드 4) ---------- */
.mgz-four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mgz-four .mgz-main {
  min-width: 0;
  max-width: none;
}

.mgz-four .mgz-card-title {
  font-size: 20px;
  line-height: 28px;
}

/* ---------- HOT ISSUE (큰 카드 + 가로 카드 4) ---------- */
.mgz-wlist {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.mgz-wcard {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--mgz-bg);
}

.mgz-wcard .mgz-img {
  flex: 0 0 auto;
  width: 196px;
  aspect-ratio: 1 / 1;
}

.mgz-wcard .mgz-meta {
  flex: 1 1 0;
  padding-right: 18px;
}

/* ---------- BETWEEN US (커뮤니티 글) ---------- */
.mgz-comm {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mgz-comm-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mgz-comm-card .mgz-img {
  aspect-ratio: 3 / 4;
}

.mgz-img .mgz-comm-card__type {
  position: absolute;
  inset: 11px 11px auto auto;
  z-index: 1;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.08)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.07));
}

.mgz-comm-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}

.mgz-comm-card__user {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.mgz-comm-card__avatar {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border: 1px solid #e7e5dd;
  border-radius: 9999px;
  background: #eee;
  box-sizing: border-box;
}

.mgz-comm-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mgz-comm-card__name {
  display: flex;
  gap: 4px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  color: var(--mgz-tx2);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mgz-comm-card__badge {
  flex: 0 0 auto;
  width: 12px;
  height: auto;
}

.mgz-comm-card__text {
  overflow: hidden;
  margin: 0;
  color: var(--mgz-tx2);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- NEWS UPDATE (표지 + 5열 카드 + 더보기) ---------- */
.mgz-news__cover-row {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 60px;
}

.mgz-news__cover-row::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 400px;
  background: var(--mgz-bg);
}

.mgz-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 600px;
  height: 847px;
  overflow: hidden;
  padding: 40px 40px 60px;
  box-sizing: border-box;
}

.mgz-cover > img:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mgz-cover__logo {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.mgz-cover__title {
  position: relative;
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: 34px;
  word-break: keep-all;
}

.mgz-news__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px 10px;
  margin-top: -10px; /* 표지 줄과 10 — 컨테이너 gap 20 을 줄인다 */
}

.mgz-ncard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.mgz-ncard .mgz-card-title {
  display: -webkit-box;
  height: 44px;
  overflow: hidden;
  font-size: 16px;
  line-height: 22px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mgz-ncard .mgz-meta {
  gap: 0;
}

.mgz-ncard__no {
  color: var(--mgz-tx4);
  font-size: 24px;
  line-height: 34px;
}

.mgz-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 26px;
  margin-top: 20px; /* 목록과 40 — 컨테이너 gap 20 + 20 */
  padding: 5px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
}

.mgz-more img {
  width: 5px;
  height: 10px;
  transform: rotate(-90deg);
}

/* ---------- 태블릿(≤1279 — Figma 1024: 표지 400×564 · 4열 8장) ---------- */
@media (max-width: 1279px) {
  .mgz-news__cover-row::before {
    height: 400px;
  }

  .mgz-cover {
    width: 400px;
    height: 564px;
  }

  .mgz-news__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mgz-ncard--pc {
    display: none;
  }
}

@media (max-width: 1023px) {
  .mgz-main {
    min-width: 0;
  }
}

/* ---------- 모바일(≤767 — Figma 360) ---------- */
@media (max-width: 767px) {
  .mgz-wrap {
    padding: 40px 20px;
  }

  .mgz-title {
    font-size: 20px;
  }

  .mgz-hero {
    padding-bottom: 0;
  }

  .mgz-hero__media {
    aspect-ratio: 4 / 3;
  }

  .mgz-hero__title {
    font-size: 18px;
  }

  .mgz-hero__title--ko {
    font-size: 16px;
    letter-spacing: -0.8px;
  }

  .mgz-label,
  .mgz-sub .mgz-label {
    font-size: 12px;
    line-height: 16px;
  }

  .mgz-main .mgz-card-title {
    font-size: 16px;
    line-height: 22px;
  }

  .mgz-summary {
    font-size: 12px;
    line-height: 16px;
  }

  .mgz-sub .mgz-card-title,
  .mgz-four .mgz-card-title,
  .mgz-wcard .mgz-card-title {
    font-size: 14px;
    line-height: 20px;
  }

  .mgz-five,
  .mgz-five--right {
    flex-direction: column;
    gap: 26px;
  }

  .mgz-five--right .mgz-main {
    order: -1;
  }

  .mgz-main {
    width: 100%;
    max-width: none;
  }

  .mgz-five__grid {
    width: 100%;
    gap: 26px 10px;
  }

  .mgz-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 10px;
  }

  .mgz-comm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* HOT ISSUE 가로 카드는 모바일 3장 */
  .mgz-hot .mgz-wcard:nth-child(n + 4) {
    display: none;
  }

  .mgz-hot {
    flex-direction: column;
    gap: 26px;
  }

  .mgz-wlist {
    width: 100%;
  }

  .mgz-wcard {
    gap: 14px;
  }

  .mgz-wcard .mgz-img {
    width: 120px;
  }

  .mgz-news .mgz-wrap {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .mgz-news__cover-row {
    padding-bottom: 20px;
  }

  .mgz-news__cover-row::before {
    content: none;
  }

  .mgz-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 340 / 480;
    padding: 40px 20px;
  }

  .mgz-cover__logo {
    padding: 0 10px;
    box-sizing: border-box;
  }

  .mgz-cover__title {
    font-size: 16px;
    line-height: 22px;
  }

  .mgz-news__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 10px;
    margin-top: -10px;
  }

  .mgz-ncard .mgz-card-title {
    font-size: 14px;
    line-height: 20px;
    height: 40px;
  }

  .mgz-ncard__no {
    font-size: 18px;
    line-height: 24px;
  }

  .mgz-ncard--pc {
    display: none;
  }
}

/* =========================================================
 * 트렌드 · 이슈 목록 — Figma 1134:53139(트렌드) · 1134:53181(이슈) · 360 판 53167 · 53227
 * 맨 위 «대표 글»(사진 480×640 + TREND/ISSUE + 제목 30 + 요약 2줄) → 목록 띠 4개(회색·흰색 번갈아)
 *   트렌드 = 세로 카드 4열(제목만) · 이슈 = 가로 카드 2열(정사각 196 + 제목)
 * ========================================================= */
.mgz-lead {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 0;
  box-sizing: content-box;
}

.mgz-lead--trend {
  padding-right: 20px;
  padding-bottom: 0;
  box-sizing: border-box;
}

.mgz-lead__img {
  position: relative;
  flex: 0 0 auto;
  width: 480px;
  height: 640px;
  overflow: hidden;
}

.mgz-lead__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mgz-lead__body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

.mgz-lead__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mgz-lead .mgz-card-title {
  font-size: 30px;
  line-height: 44px;
}

.mgz-lead .mgz-summary {
  margin: 0;
  -webkit-line-clamp: 2;
}

.mgz-list-band .mgz-wrap {
  gap: 0;
}

.mgz-issue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mgz-issue-grid .mgz-wcard {
  background: transparent;
}

@media (max-width: 1319px) {
  .mgz-lead {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 1023px) {
  .mgz-lead__img {
    width: 40%;
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 767px) {
  .mgz-lead,
  .mgz-lead--trend {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    padding: 0 0 40px;
  }

  .mgz-lead__img {
    width: 100%;
    aspect-ratio: 3 / 4;
  }

  .mgz-lead__img .mgz-title {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
    color: #fff;
    font-size: 40px;
  }

  .mgz-lead__body {
    gap: 0;
    padding: 0 20px;
  }

  .mgz-lead__body > .mgz-title {
    display: none;
  }

  .mgz-lead .mgz-card-title {
    font-size: 14px;
    line-height: 20px;
  }

  .mgz-lead .mgz-summary {
    -webkit-line-clamp: 3;
  }

  .mgz-issue-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 사진 안 제목(모바일 전용)은 PC 에서 숨김 */
@media (min-width: 768px) {
  .mgz-lead__img .mgz-title {
    display: none;
  }
}

/* =========================================================
 * 상세 — Figma 1134:53671(1440) · 53727(1024) · 53774(360)
 * 본문 840 + 오른쪽 «MORE» 160(세로선, sticky) — 둘 사이 20, 가운데 정렬.
 * 상단 대표 이미지 없음 · 메타(좋아요·조회·날짜 / 북마크·공유) → 영문 제목(Cal Sans 60) → 부제(24/34)
 * → 본문 블록(이미지 7배치 + 글) → 아이콘 3 → CREDIT → ABOUT 업체 → PREV/NEXT → 댓글(접기 기본).
 * ========================================================= */
.mgz-detail {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1280px;
  margin: 0 auto;
}

.mgz-article {
  flex: 0 1 840px;
  min-width: 0;
}

.mgz-article__contents {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 24px 0;
}

.mgz-dmeta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.mgz-dmeta__group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.mgz-dmeta__item {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  max-height: 16px;
  color: var(--mgz-tx3);
  font-size: 14px;
  line-height: 20px;
}

.mgz-dmeta__item img,
.mgz-dmeta__btn img {
  display: block;
  width: 16px;
  height: 16px;
}

.mgz-dmeta__btn {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.mgz-article__title {
  margin: 0;
  color: var(--mgz-tx1);
  font-family: "Cal Sans", sans-serif;
  font-size: 60px;
  font-weight: 400;
  line-height: normal;
}

.mgz-article__subtitle {
  margin: 0;
  color: var(--mgz-tx2);
  font-size: 24px;
  line-height: 34px;
}

.mgz-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--mgz-tx2);
}

.mgz-text h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.mgz-text p {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
}

/* 본문 이미지 — 4:3 · 16:9 · 3:4 · 9:16 · 2-1 · 2-2 · 1-1 */
.mgz-dimg {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.mgz-dimg--2-1 {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.mgz-dimg--2-2,
.mgz-dimg--1-1 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mgz-dimg__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--mgz-bg);
}

.mgz-dimg--16x9 .mgz-dimg__item {
  aspect-ratio: 16 / 9;
}

.mgz-dimg--3x4 .mgz-dimg__item {
  aspect-ratio: 3 / 4;
}

.mgz-dimg--9x16 .mgz-dimg__item,
.mgz-dimg--1-1 .mgz-dimg__item {
  aspect-ratio: 9 / 16;
}

.mgz-dimg--2-1 .mgz-dimg__item,
.mgz-dimg--2-2 .mgz-dimg__item {
  aspect-ratio: 1 / 1;
}

.mgz-dimg__item > img,
.mgz-dimg__item > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mgz-dimg .mgz-credit {
  right: 8px;
  bottom: 6px;
}

.mgz-dimg .mgz-sound {
  width: 40px;
  height: 40px;
}

.mgz-dimg .mgz-sound img {
  width: 18px;
}

/* 아이콘 3(좋아요·북마크·공유) */
.mgz-actions {
  display: flex;
  gap: 40px;
  justify-content: center;
}

.mgz-actions button {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.mgz-actions img {
  display: block;
  width: 30px;
  height: 30px;
}

.mgz-credit-line {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0;
  padding: 20px 20px 40px;
  color: var(--mgz-tx3);
  font-size: 14px;
  line-height: 20px;
}

/* ABOUT 업체 */
.mgz-about {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--mgz-bg);
}

.mgz-about__img {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.mgz-about__body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  min-width: 0;
}

.mgz-about__badge {
  padding: 2px 6px;
  border-radius: 4px;
  background: #eee;
  color: var(--mgz-tx2);
  font-size: 12px;
  line-height: 16px;
}

.mgz-about__name {
  margin: 0;
  color: var(--mgz-tx1);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.mgz-about__loc {
  display: flex;
  gap: 4px;
  align-items: center;
  color: var(--mgz-tx2);
  font-size: 12px;
  line-height: 16px;
}

.mgz-about__loc img {
  width: 10px;
  height: 16px;
}

.mgz-about__arrow {
  width: 5px;
  height: 10px;
  margin-right: 3px;
  transform: rotate(180deg);
}

/* PREV / NEXT */
.mgz-pn {
  display: flex;
  gap: 40px;
  padding: 40px 0;
}

.mgz-pn__item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.mgz-pn__item--next {
  align-items: flex-end;
}

.mgz-pn__label {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--mgz-tx3);
  font-size: 14px;
  line-height: 20px;
}

.mgz-pn__label img {
  width: 5px;
  height: 10px;
  margin: 0 4px;
}

.mgz-pn__item--next .mgz-pn__label img {
  margin: 0 3px 0 4px;
  transform: rotate(180deg);
}

.mgz-pn__body {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.mgz-pn__body img {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.mgz-pn__title {
  display: -webkit-box;
  flex: 1 1 0;
  overflow: hidden;
  margin: 0;
  color: var(--mgz-tx2);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mgz-pn__item--next .mgz-pn__title {
  text-align: right;
}

/* 댓글 — 머리(«댓글 N ⌃»)를 누르면 접기/펼치기, 기본 접힘(Figma 주석: 모든 메뉴 댓글 공통) */
.mgz-reply {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--mgz-tx1);
}

.mgz-reply__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mgz-tx2);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  cursor: pointer;
}

.mgz-reply__head img {
  width: 5px;
  height: 10px;
  margin-right: 4px;
  transform: rotate(-90deg);
  transition: transform 0.2s;
}

.mgz-reply.is-open .mgz-reply__head img {
  transform: rotate(90deg);
}

.mgz-reply__body[hidden] {
  display: none;
}

.mgz-cmt {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}

.mgz-cmt:first-child {
  padding-top: 0;
}

.mgz-cmt__head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mgz-cmt__user {
  display: flex;
  flex: 1 1 0;
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: var(--mgz-tx2);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.mgz-cmt__user img {
  width: 24px;
  height: 24px;
  border: 1px solid #e7e5dd;
  border-radius: 9999px;
  background: #eee;
  object-fit: cover;
  box-sizing: border-box;
}

.mgz-cmt__time {
  color: var(--mgz-tx3);
  font-size: 14px;
  line-height: 20px;
}

.mgz-cmt__more {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.mgz-cmt__more img {
  width: 18px;
  height: 18px;
}

.mgz-cmt__text {
  margin: 0 0 0 12px;
  padding: 0 0 10px 18px;
  border-left: 1px solid #e8e8e8;
  color: var(--mgz-tx2);
  font-size: 14px;
  line-height: 20px;
}

.mgz-cmt--reply {
  margin-left: 12px;
  padding-left: 16px;
  border-left: 1px solid #e8e8e8;
}

.mgz-cmt--reply .mgz-cmt__text {
  border-left: 0;
}

.mgz-page-num {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 10px 0;
}

.mgz-page-num a,
.mgz-page-num span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  color: var(--mgz-tx3);
  font-size: 14px;
  line-height: 20px;
}

.mgz-page-num [aria-current="page"] {
  color: var(--mgz-tx1);
  font-weight: 700;
}

.mgz-page-num img {
  width: 10px;
  height: 10px;
}

.mgz-reply__input {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #cbcbcb;
  border-radius: 8px;
  background: #fff;
}

.mgz-reply__input input {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--mgz-tx2);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
}

.mgz-reply__input input::placeholder {
  color: var(--mgz-tx4);
}

.mgz-reply__input button {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.mgz-reply__input button img {
  width: 20px;
  height: 20px;
}

/* 오른쪽 MORE(160) */
.mgz-side {
  position: sticky;
  top: 80px; /* 2026-10-31 요청 — 왼쪽 선을 머리말 아래선에 붙인다(예전 100) */
  display: flex;
  flex: 0 0 160px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 800px;
  margin-top: 0;
}

.mgz-side__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 20px;
  border-left: 1px solid var(--mgz-tx1);
  box-sizing: border-box;
}

.mgz-side__card .mgz-title {
  font-size: 20px;
}

.mgz-side__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mgz-side .mgz-sub .mgz-card-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.mgz-side .mgz-credit {
  right: 5px;
  bottom: 3px;
  font-size: 9px;
}

.mgz-top-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
  cursor: pointer;
}

.mgz-top-btn img {
  width: 20px;
  height: 20px;
}

/* ≤1319 — Figma 1024: 본문 왼쪽 20 · MORE 는 오른쪽 끝에 붙음 */
@media (max-width: 1319px) {
  .mgz-detail {
    justify-content: space-between;
    padding-left: 20px;
  }
}

/* 모바일 — 오른쪽 MORE 없음 */
@media (max-width: 767px) {
  .mgz-detail {
    padding: 0 20px;
  }

  .mgz-side {
    display: none;
  }

  .mgz-article {
    flex: 1 1 auto;
  }
}

@media (max-width: 767px) {
  .mgz-article__contents {
    padding-top: 20px;
  }

  .mgz-article__title {
    font-size: 20px;
  }

  .mgz-article__subtitle {
    font-size: 16px;
    line-height: 22px;
  }

  .mgz-text h3 {
    font-size: 16px;
    line-height: 22px;
  }

  .mgz-text p {
    font-size: 14px;
    line-height: 20px;
  }

  .mgz-credit-line {
    font-size: 12px;
    line-height: 16px;
  }

  .mgz-about {
    align-items: flex-start;
  }

  .mgz-pn {
    flex-direction: column;
    gap: 20px;
  }
}

/* ---------- 목록 무한 스크롤 «불러오는 중» — Figma 485:18709 «Frame 39»(2026-10-27) ----------
 * 점 3개(12px · 간격 8 · #000) · 1.2s · 둘째·셋째 0.15s/0.30s 늦게.
 * 0/60/100% 작고 흐림(scale .6 · opacity .1) → 30% 크고 진함(scale 1.2 · opacity .2). 움직임 줄이기 = 2.4s.
 */
.mgz-loading {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 40px 0 80px;
}

.mgz-loading i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000;
  opacity: 0.1;
  transform: scale(0.6);
  animation: mgz-loading-dot 1.2s ease-in-out infinite;
}

.mgz-loading i:nth-child(2) {
  animation-delay: 0.15s;
}

.mgz-loading i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes mgz-loading-dot {
  0%,
  60%,
  100% {
    opacity: 0.1;
    transform: scale(0.6);
  }

  30% {
    opacity: 0.2;
    transform: scale(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mgz-loading i {
    animation-duration: 2.4s;
  }
}

@media (max-width: 767px) {
  .mgz-loading {
    padding: 20px 0 40px;
  }
}

/* 2026-10-29 — 최상단 대표 영상의 소리 버튼이 너무 작았다(22px) — 사이트 다른 영상 소리 버튼(36px · 위/오른쪽 16)과 같게 */
.mgz-hero .mgz-sound {
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
}

.mgz-hero .mgz-sound img {
  width: 18px;
}

@media (max-width: 767px) {
  .mgz-hero .mgz-sound {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }

  .mgz-hero .mgz-sound img {
    width: 16px;
  }
}

/* 2026-10-30 Figma 코멘트 «상세화면 타이틀»(section_tit) — 제목 한 칸에 영문·국문이 섞여도 글자마다 다른 글꼴:
   영문 = Cal Sans 400 · 국문 = Noto Sans KR 700. Cal Sans 에는 한글 글리프가 없어 한글은 다음 글꼴(Noto Sans KR)로 넘어간다.
   굵기 700 을 주되 굵기 합성을 끄면(Cal Sans 는 400 한 벌뿐) 영문은 Cal Sans 400 그대로, 한글은 Noto Sans KR 700. */
/* 대부분 화면이 Noto Sans KR 을 웹글꼴로 싣지 않는다(설치된 글꼴에 기댄다) — 제목 한글은 Noto Sans KR 700 이 꼭 나오도록
   제목 전용 이름으로 사이트 사본(700)을 건다. 이름을 «Noto Sans KR» 로 두면 본문(400)까지 이 700 파일로 그려진다. */
@font-face {
  font-family: "MGZ Noto Sans KR";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../../fonts/noto-sans-kr-v13-latin_korean-700.woff2") format("woff2");
}

.mgz-title,
.mgz-article__title {
  font-family: "Cal Sans", "MGZ Noto Sans KR", "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-synthesis: none;
}
