/* webzine theme — /{prjId}/index.do 전용: 히어로, art-feed, 홈 피드 카드 (style.css에서 분리) */

.hero-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 800px) minmax(280px, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 80px;
  background: #ffffff;
  border-radius: 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.hero-shell.hero-shell--mobile-quad {
  box-shadow: none;
  border: 1px solid #e5e5e5;
  background: #eeeeee;
}

.hero-copy {
  padding: 0.75rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-copy__kicker {
  margin: 0 0 0.2rem;
  font-size: 1.5rem;
  color: #8b8b8b;
  line-height: 1.25;
  text-align: left;
  align-self: flex-start;
}

.hero-copy__title {
  margin: 0;
  font-size: clamp(1.65rem, 2.9vw, 1.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-copy__desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.35vw, 1.8rem);
  line-height: 1.55;
  font-weight: 500;
  max-width: 36em;
  white-space: nowrap;
}

.hero-copy__focus-list {
  margin: 0;
  padding: 0 0 0 0.75rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 47em;
}

.hero-copy__focus-list li {
  position: relative;
  margin: 0;
  padding: 0 0 0 0.9em;
  color: #6a6a6a;
  font-size: clamp(0.78rem, 0.95vw, 0.95rem);
  line-height: 1.45;
  font-weight: 500;
}

.hero-copy__focus-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
  color: inherit;
}

.hero-copy__focus-list a.hero-copy__focus-link {
  color: inherit;
  text-decoration: none;
}

.hero-copy__focus-list a.hero-copy__focus-link:hover {
  text-decoration: none;
  color: var(--ink);
}

.hero-copy__title-link {
  color: inherit;
  text-decoration: none;
}

.hero-copy__title-link:hover {
  text-decoration: none;
  color: var(--ink);
}

.hero-copy__desc--meta {
  color: #7a7a7a;
  font-size: clamp(0.88rem, 1.15vw, 1.05rem);
  font-weight: 500;
}

.hero-copy__desc--inline {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta-btn {
  margin-top: 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.62rem 1.15rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent, #f44265) 30%, transparent);
  color: #fff;
}

.cta-btn__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.95;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0.6rem;
  box-sizing: border-box;
}

.hero-visual__frame {
  margin: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual__frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-visual__cover-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hero-visual__cover-link img {
  pointer-events: none;
}

.art-feed {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-radius: 0;
  /* 히어로와 간격은 hero-shell margin-bottom. 카드 아래 빈 패딩은 두지 않음 */
  padding: 0.75rem 0 0;
}

.art-feed__intro {
  margin-bottom: 1.25rem;
}

.art-feed__intro-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100%;
  gap: 1rem 1.5rem;
}

.art-feed__headline {
  margin: 0;
  font-size: clamp(1.625rem, 2.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  max-width: 20em;
}

.art-feed__headline-sub {
  font-weight: 800;
}

.art-feed__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.art-feed__pill:hover {
  background: var(--ink);
  color: #fff;
}

.art-feed__hints {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  font-size: 1rem;
}

.art-feed__hints a {
  color: #6a6a6a;
  text-decoration: none;
  font-weight: 500;
}

.art-feed__hints a:hover {
  color: var(--ink);
}

.art-feed__rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem;
  align-items: start;
}

.art-feed__rows > .art-feed__row {
  min-width: 0;
  width: 100%;
}

.art-feed__row-head {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.art-feed__row-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  min-width: 0;
}

.art-feed__row-title a {
  color: inherit;
  text-decoration: none;
}

.art-feed__row-title a:hover {
  text-decoration: underline;
}

.art-feed__row-arrows {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.art-feed__row-counter {
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.art-feed__row-nav {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.art-feed__row-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  padding: 0;
  border: 1px solid #d4d4d4;
  border-radius: 0;
  background: var(--bg);
  color: #333;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.art-feed__row-nav-btn svg {
  width: 0.68rem;
  height: 0.68rem;
  display: block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-feed__row-nav-btn:hover:not(:disabled) {
  border-color: #999;
  background: #f5f5f5;
}

.art-feed__row-nav-btn:focus-visible {
  outline: 2px solid var(--ink-soft);
  outline-offset: 2px;
}

.art-feed__row-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.art-feed__row-counter-current {
  font-weight: 700;
  color: #333;
}

.art-feed__row-counter-rest {
  font-weight: 600;
  color: #b0b0b0;
}

.art-feed__row--intro .art-feed__row-arrows {
  opacity: 1;
  /* 인트로 중에도 <> 클릭 가능해야 함 (pointer-events:none 이면 첫 행이 먹통) */
  pointer-events: auto;
}

.art-feed__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.4vw, 1rem);
  width: 100%;
  min-width: 0;
}

.art-feed__carousel {
  width: 100%;
  min-width: 0;
}

.art-feed__carousel-viewport {
  display: grid;
  width: 100%;
  min-width: 0;
}

.art-feed__carousel-viewport > .art-feed__slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.4vw, 1rem);
  width: 100%;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.95s ease-in-out, visibility 0.95s ease-in-out;
  pointer-events: none;
  z-index: 0;
}

.art-feed__carousel-viewport > .art-feed__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.art-feed__row--intro .art-feed__carousel-viewport > .art-feed__slide.is-active {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: opacity 1.05s ease-out, visibility 1.05s ease-out;
}

.art-feed__row--intro .art-feed__carousel-viewport > .art-feed__slide:not(.is-active) {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .art-feed__carousel-viewport > .art-feed__slide {
    transition-duration: 0.01ms;
  }

  .art-feed__row--intro .art-feed__carousel-viewport > .art-feed__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .art-feed__row--intro .art-feed__row-arrows {
    opacity: 1;
    pointer-events: auto;
  }
}

.art-card {
  background: var(--bg);
  border: 1px solid #eaeaea;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  /* 좌측 미디어가 정사각(1:1)이 되도록 카드 전체 2:1 */
  aspect-ratio: 2 / 1;
  height: auto;
  align-self: start;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

/* 썸네일+제목만 감싸는 기본 링크(하단 태그 링크와 중첩 a 금지) */
.art-card__link--primary {
  display: contents;
  text-decoration: none;
  color: inherit;
}

.art-card__link--primary:focus-visible {
  outline: none;
}

.art-card__link--primary:focus-visible .art-card__media,
.art-card__link--primary:focus-visible .art-card__panel {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.art-card:has(.art-card__link--primary:hover),
.art-card:has(.art-card__link--primary:focus-visible) {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: #e0e0e0;
}

.art-card__media {
  position: relative;
  grid-column: 1;
  grid-row: 1 / 3;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  overflow: hidden;
  background: #ececec;
}

.art-card__media-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s var(--ease);
}

/* 노이미지(플레이스홀더 PNG) — 잘리지 않게 */
.art-card__media-img--empty {
  object-fit: contain;
  object-position: center;
  background: #ececec;
}

.art-card:has(.art-card__link--primary:hover) .art-card__media-img:not(.art-card__media-img--empty),
.art-card:has(.art-card__link--primary:focus-visible) .art-card__media-img:not(.art-card__media-img--empty) {
  transform: scale(1.03);
}

.art-card__panel {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.85rem 0.9rem 0.35rem;
  text-align: center;
}

.art-card__divider {
  display: block;
  width: 2.25rem;
  height: 1px;
  margin: 0.55rem 0 0;
  background: #ddd;
  flex-shrink: 0;
}

.art-card__body--rest {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  min-width: 0;
  padding: 0 0.9rem 0.75rem;
}

.art-card__meta {
  margin: 0;
  font-size: clamp(0.9375rem, 1.05vw, 1rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.art-card__link--static {
  display: contents;
  pointer-events: none;
  cursor: default;
}

.art-card__link--static .art-card__media-img {
  transform: none;
  transition: none;
}

.art-card__tag-link {
  display: inline; 
  margin-right: 5px;
  color: #696969;
}

/* 해시태그 1줄 — 넘치면 말줄임 */
.art-card__tags {
  margin: 0;
  width: 100%;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #9a9a9a;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.art-card__foot {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.art-card__count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #9a9a9a;
}

.art-card__engagement {
  font-size: 0.86rem;
  font-weight: 600;
  color: #9a9a9a;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.art-card__engagement-num {
  font-weight: 700;
  color: #6a6a6a;
}

.art-card__tag-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.art-card__cta {
  font-size: 0.9rem;
  font-weight: 700;
  font-style: normal;
  color: #9a9a9a;
  letter-spacing: -0.01em;
}

.art-card:has(.art-card__link--primary:focus-visible) .art-card__cta {
  text-decoration: underline;
}

/* 데스크톱: art-feed 2×2 — 가로는 본문 전체(hero와 동일), 세로만 압축 (썸네일 4:3 유지) */
@media (min-width: 901px) {
  .art-feed {
    padding: 0;
  }

  .art-feed__intro {
    margin-bottom: clamp(0.65rem, 1.2vw, 0.95rem);
  }

  .art-feed__intro-top {
    gap: 0.65rem 1rem;
    align-items: center;
  }

  .art-feed__headline {
    font-size: clamp(1.625rem, 2.2vw, 1.75rem);
    max-width: none;
  }

  .art-feed__pill {
    padding: 0.38rem 0.85rem;
    font-size: 0.8125rem;
  }

  .art-feed__hints {
    margin-top: 0.45rem;
    gap: 0.65rem 1.1rem;
    font-size: 0.8125rem;
  }

  .art-feed__rows {
    width: 100%;
    gap: clamp(0.55rem, 1vw, 0.85rem) clamp(0.75rem, 1.2vw, 1rem);
  }

  .art-feed__row-head {
    margin-bottom: 0.5rem;
    padding-inline: 1mm;
  }

  .art-feed__row-title {
    font-size: 1.15rem;
    letter-spacing: 0.035em;
  }

  .art-feed__row-counter {
    font-size: 0.82rem;
  }

  .art-feed__carousel-viewport > .art-feed__slide {
    gap: clamp(0.55rem, 0.95vw, 0.75rem);
    padding: 0;
  }

  .art-feed__carousel-viewport > .art-feed__slide .art-card {
    width: 100%;
    margin: 0;
  }

  .art-card__panel {
    padding: 0.55rem 0.65rem 0.25rem;
  }

  .art-card__meta {
    font-size: 0.9375rem;
    -webkit-line-clamp: 2;
  }

  .art-card__body--rest {
    padding: 0 0.65rem 0.55rem;
  }

  .art-card__tags {
    font-size: 0.75rem;
    line-height: 1.3;
  }
}

@media (max-width: 900px) {
  .art-feed__rows {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 1024px) {
  .art-feed__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .art-feed__carousel-viewport > .art-feed__slide {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-visual {
  justify-content: flex-start;
  }

  .hero-shell {
  min-height: auto;
  padding: 0.85rem;
  margin-bottom: 60px;
  }
  
  .hero-shell--mobile-quad {
  display: grid;
  grid-template-columns: 1fr minmax(9.5rem, 38%);
  grid-template-rows: auto auto auto auto auto;
  gap: 0.65rem 0.85rem;
  align-items: start;
  }
  
  .hero-shell--mobile-quad .hero-copy {
  margin-bottom: 30px;
  }
  
  .hero-shell--mobile-quad .hero-copy__kicker {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  }
  
  .hero-shell--mobile-quad .hero-copy__title {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  }
  
  .hero-shell--mobile-quad .hero-copy__desc {
  grid-column: 1;
  grid-row: 3;
  margin: 0;
  }
  
  .hero-shell--mobile-quad .hero-copy__focus-list {
  display: flex;
  gap: 0.45rem;
  margin: 0;
  }
  
  .hero-shell--mobile-quad .hero-copy__focus-list li {
  font-size: 0.72rem;
  line-height: 1.35;
  }
  
  .hero-shell--mobile-quad .cta-btn {
  grid-column: 1;
  grid-row: 5;
  margin: 0;
  align-self: start;
  }
  
  .hero-shell--mobile-quad .hero-visual {
  grid-column: 2;
  grid-row: 1 / 6;
  align-self: stretch;
  margin: 0;
  padding: 0.35rem;
  min-width: 0;
  min-height: 0;
  height: 100%;
  }
  
  .hero-shell--mobile-quad .hero-visual__frame {
  height: 100%;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  aspect-ratio: 3 / 4;
  }
  
  .hero-shell--mobile-quad .hero-visual__frame img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  }
  
  .art-feed {
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
  }
  .hero-copy {
  gap: 0.65rem;
  }
  
  .hero-copy__desc {
  white-space: normal;
  }

  .hero-shell--mobile-quad .hero-copy__desc.hero-copy__desc--inline {
    white-space: nowrap;
  }
  
  .hero-visual__frame,
  .hero-visual img {
  max-width: 100%;
  }
}

@media (max-width: 560px) {
  .hero-shell--mobile-quad {
    grid-template-columns: 1fr;
  }

  .hero-shell--mobile-quad .hero-copy__kicker,
  .hero-shell--mobile-quad .hero-copy__title,
  .hero-shell--mobile-quad .hero-copy__desc,
  .hero-shell--mobile-quad .hero-copy__focus-list,
  .hero-shell--mobile-quad .cta-btn {
    grid-column: 1;
  }

  .hero-shell--mobile-quad .hero-copy__kicker {
    grid-row: auto;
  }

  .hero-shell--mobile-quad .hero-copy__title {
    grid-row: auto;
  }

  .hero-shell--mobile-quad .hero-copy__desc {
    grid-row: auto;
  }

  .hero-shell--mobile-quad .hero-copy__focus-list {
    grid-row: auto;
  }

  .hero-shell--mobile-quad .cta-btn {
    grid-row: auto;
  }

  .hero-shell--mobile-quad .hero-visual {
    grid-column: 1;
    grid-row: auto;
    max-width: 100%;
  }

  .hero-shell--mobile-quad .hero-visual__frame {
    min-height: 0;
  }

  .hero-shell--mobile-quad .hero-visual__frame img {
    max-height: none;
    object-fit: contain;
  }
}

/* 모바일 art-card — 제목·해시태그 잘림 개선 */
@media (max-width: 767px) {
  .art-card__panel {
    padding: 10px 10px 4px;
  }

  .art-card__body--rest {
    padding: 0 10px 10px;
    gap: 0.25rem;
  }

  .art-card__meta {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .art-card__tags {
    font-size: 12px;
    line-height: 1.35;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .art-card__tag-link:nth-child(n + 4) {
    display: none;
  }

  .art-card__tags:has(.art-card__tag-link:nth-child(4))::after {
    content: '...';
    color: #9a9a9a;
    font-size: 12px;
    margin-left: 1px;
  }

  .art-card__tag-link {
    margin-right: 3px;
  }

  .art-card__foot {
    margin-top: 4px;
    padding-top: 0.35rem;
  }
}

/* 메인 레이아웃 미리보기 배너 · CMS theme accent (--webzine-accent / --accent 는 index 인라인에서 주입) */
.webzine-main-preview-banner {
  margin: 0 0 0.75rem;
  padding: 0.5rem 1rem;
  background: #1a1a2e;
  color: #fff;
  font-size: 0.9rem;
  border-radius: 0.5rem;
}

/* 이벤트 인트로(포스터+링크) — 상단 히어로 슬롯 */
.main-intro-landing {
  padding: clamp(1rem, 3vw, 1.75rem) 0 0;
  background: #fff;
  margin-bottom: 2rem;
}

.main-intro-landing__static {
  border-radius: 0 0 1rem 1rem;
  overflow: hidden;
}

.main-intro-landing__link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0 0 1rem 1rem;
  overflow: hidden;
  outline-offset: 4px;
}

.main-intro-landing__link:focus-visible {
  outline: 2px solid var(--accent);
}

.main-intro-landing__figure {
  margin: 0;
  width: 100%;
}

.main-intro-landing__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(100vh, 900px);
  object-fit: contain;
  object-position: center;
}

@media (max-width: 900px) {
  .main-intro-landing__img {
    max-height: min(56vh, 520px);
  }
}

/* 메인 본문 스테이지(히어로+아트피드). 100vh는 상단바만큼 스크롤을 만들므로 내용 높이만 쓴다 */
.site-main.index {
  min-height: 0;
}

.site-main.index > .webzine-layout-stage {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

@media (min-width: 901px) {
  .site-main.index .webzine-layout-stage .hero-shell {
    min-height: min(100%, 1080px);
  }
}

/* 데스크톱: 히어로 카드 = primary-nav와 동일 상단선, 높이는 소폭 축소 */
@media (min-width: 1025px) {
  .site-main.index .webzine-layout-stage .hero-shell.hero-shell--mobile-quad {
    --hero-shell-height: 20rem;
    /* 상단바 아래 여백 — style.css --site-hero-align-top(+10px)과 동기 */
    margin-top: var(--site-hero-align-top, calc(clamp(0.5rem, 1.5vw, 0.85rem) + 10px));
    min-height: var(--hero-shell-height);
    height: var(--hero-shell-height);
    max-height: var(--hero-shell-height);
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid #e5e5e5;
    background: #eeeeee;
  }

  .site-main.index .webzine-layout-stage .hero-shell.hero-shell--mobile-quad .hero-issue,
  .site-main.index .webzine-layout-stage .hero-shell.hero-shell--mobile-quad .hero-copy {
    padding-top: clamp(1rem, 3vw, 2rem);
    padding-bottom: clamp(1rem, 3vw, 2rem);
  }

  .site-main.index .webzine-layout-stage .hero-shell.hero-shell--mobile-quad .hero-visual {
    align-self: stretch;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 10px 0;
    box-sizing: border-box;
  }

  .site-main.index .webzine-layout-stage .hero-shell.hero-shell--mobile-quad .hero-visual__frame {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 3 / 4;
  }

  .site-main.index .webzine-layout-stage .hero-shell.hero-shell--mobile-quad .hero-visual__frame img,
  .site-main.index .webzine-layout-stage .hero-shell.hero-shell--mobile-quad .hero-visual__cover-link {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }
}

/* 발행 호수(hero-issue) — hero-copy 왼쪽 배치만 (참고: webzine-revision) */
.hero-issue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 5.5rem;
  padding-left: 1.75rem;
  padding-right: 3.25rem;
  border-right: 1px solid #ded8d1;
  text-align: center;
  font-variant-numeric: lining-nums tabular-nums;
}
.hero-issue__volume {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.3;
  color: #36302d;
}
.hero-issue__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-issue__month {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #916457;
}
.hero-issue__month-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 90px;
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.065em;
  padding-right: 0.065em;
  color: #916457;
}
.hero-issue__suffix {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}
.hero-issue__year {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.3;
  color: #36302d;
}
.hero-copy__empty {
  margin: 0;
  color: #69635e;
  font-size: 0.95rem;
  line-height: 1.6;
}
.hero-copy__mobile-heading {
  display: none;
}
@media (min-width: 1025px) {
  .hero-shell.hero-shell--mobile-quad:has(> .hero-issue) {
    grid-template-columns: auto minmax(0, 1fr) minmax(9.5rem, 38%);
  }
  .hero-shell.hero-shell--mobile-quad:has(> .hero-issue) .hero-issue {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }
  .hero-shell.hero-shell--mobile-quad:has(> .hero-issue) .hero-copy {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
  .hero-shell.hero-shell--mobile-quad:has(> .hero-issue) .hero-visual {
    grid-column: 3;
    grid-row: 1;
  }
  .hero-issue__suffix {
    display: none;
  }
}
/* 모바일: hero-shell--mobile-quad / hero-copy만 (참고 webzine-revision) */
@media (max-width: 1024px) {
  .site-main.index .webzine-layout-stage .hero-shell.hero-shell--mobile-quad {
    display: block;
    min-height: 0;
    height: auto;
    max-height: none;
    padding: 0;
    background: transparent;
    border: 0;
    border-top: 1px solid #ccc;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .hero-shell.hero-shell--mobile-quad .hero-issue,
  .hero-shell.hero-shell--mobile-quad .hero-visual,
  .hero-shell.hero-shell--mobile-quad .hero-copy__title {
    display: none;
  }
  .hero-shell.hero-shell--mobile-quad .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    text-align: center;
  }
  .hero-shell.hero-shell--mobile-quad .hero-copy__mobile-heading {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 9px;
    margin: 18px 0 20px;
    color: #292929;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.025em;
  }
  .hero-shell.hero-shell--mobile-quad .hero-copy__mobile-month {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    line-height: 1;
  }
  .hero-shell.hero-shell--mobile-quad .hero-copy__mobile-month > span {
    margin-left: 2px;
    font-family: inherit;
    font-size: 24px;
  }
  .hero-shell.hero-shell--mobile-quad .hero-copy__empty {
    padding: 0 12px 20px;
  }
  .hero-shell.hero-shell--mobile-quad .hero-copy__focus-list {
    box-sizing: border-box;
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 6px 14px;
    border: 1px solid #e5e5e5;
    background: #eee;
    text-align: left;
    max-width: none;
  }
  .hero-shell.hero-shell--mobile-quad .hero-copy__focus-list li {
    position: static;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
  }
  .hero-shell.hero-shell--mobile-quad .hero-copy__focus-list li::before {
    content: none;
  }
  .hero-shell.hero-shell--mobile-quad .hero-copy__focus-list li + li {
    border-top: 1px dashed #ccc;
  }
  .hero-shell.hero-shell--mobile-quad .hero-copy__focus-list a.hero-copy__focus-link,
  .hero-shell.hero-shell--mobile-quad .hero-copy__focus-list li > span {
    position: relative;
    display: block;
    padding: 11px 0 11px 14px;
    font-size: 14px;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: anywhere;
    color: #333;
  }
  .hero-shell.hero-shell--mobile-quad .hero-copy__focus-list a.hero-copy__focus-link::before,
  .hero-shell.hero-shell--mobile-quad .hero-copy__focus-list li > span::before {
    content: "-";
    position: absolute;
    top: 11px;
    left: 0;
  }
}
