/* 소식 — 목록 쪽(/news)·글 쪽·홈 9칸의 카드. 값은 tokens.css 변수로(설계 §9-3-1) */
.news-page { padding: var(--s12) 0 var(--s12); }
.news-page h1 { margin-bottom: var(--s6); }
.news-empty { color: var(--ink-2); }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); list-style: none; padding: 0; margin: 0; }
.news-lead { margin-bottom: var(--s3); }

.news-card { display: grid; align-content: start; height: 100%; background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .2s ease; }
.news-card:hover { box-shadow: var(--shadow-hover); }
.news-card:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.news-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* 사진 없는 카드의 종이배 자리 — 사진 칸과 같은 16:9, 옅은 남색 바탕 */
.news-card-ph { display: grid; place-items: center; aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--navy) 8%, var(--surface)); }
.news-card-ph svg { width: 22%; max-width: 120px; overflow: visible; }
.news-card-ph path { fill: #F3EBD9; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.news-card-big .news-card-ph { aspect-ratio: auto; min-height: 100%; }
/* 사진 없는 카드의 대학 로고 — 사진 칸과 같은 16:9 흰 바탕, 로고 가운데(설계 §9-3-2). 큰 카드도 사진 큰 카드처럼 16:9(코리 2026-11-24).
   .news-card-media img(16:9·cover)가 로고에도 걸리므로 비율·맞춤을 되돌린다 — 선택자를 한 단계 더 구체적으로 둬서 순서와 상관없이 이긴다 */
.news-card-logo { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: var(--s4); background: var(--surface); border-bottom: 1px solid var(--line); }
.news-card-media.news-card-logo img { width: auto; height: auto; aspect-ratio: auto; object-fit: contain; max-width: min(62%, 220px); max-height: 88px; }
.news-card-big .news-card-logo { border-bottom: 0; border-right: 1px solid var(--line); }
.news-card-big .news-card-media.news-card-logo img { max-width: min(56%, 320px); max-height: 128px; }
.news-card-text { display: grid; gap: var(--s1); padding: var(--s3); }
.news-card-meta { display: flex; gap: var(--s1); align-items: center; font-size: 14px; color: var(--ink-3); }
.news-card-title { font-size: 21px; line-height: 1.38; font-weight: 600; }

.news-card-big { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.news-card-big .news-card-text { align-content: center; padding: var(--s6); }
.news-card-big .news-card-title { font-size: 32px; line-height: 1.25; }

.news-cat { padding: 2px 10px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--navy) 10%, var(--surface)); color: var(--navy); font-size: 13px; font-weight: 600; }

.post { padding: var(--s12) 0 var(--s8); background: var(--surface); }
.post-in { max-width: calc(760px + var(--gutter) * 2); display: grid; gap: var(--s3); }
.post-meta { display: flex; gap: var(--s1); align-items: center; font-size: 15px; color: var(--ink-3); }
/* 글 쪽 사진은 자르지 않는다(설명회 포스터 글자) — 세로 사진이 본문을 밀어내지 않게 높이만 묶는다(2026-11-24 미리보기에서 찾음) */
/* 글 쪽 대학 로고 — 분류·날짜 줄 위에 작게(Chris 2번 B) */
.post-logo img { display: block; height: 48px; width: auto; max-width: 200px; object-fit: contain; object-position: left center; }
.post-media img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(70vh, 640px); margin: 0 auto; border-radius: var(--radius-card); }
.post-body { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.post-body > * + * { margin-top: var(--s2); }
.post-body a { color: var(--navy); text-decoration: underline; }
/* 공통 CSS가 ul 점을 지워서(base.css) 글 본문에서만 되살린다 */
.post-body ul { list-style: disc; padding-left: 1.4em; }
.post-body ol { list-style: decimal; padding-left: 1.4em; }
.post-body li + li { margin-top: 4px; }
.post-body h2, .post-body h3 { color: var(--ink); font-size: 21px; line-height: 1.38; font-weight: 600; margin-top: var(--s4); }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-back a { color: var(--navy); font-weight: 600; }

.home-news { padding: var(--s12) 0; background: var(--bg); }
.home-news-head { display: grid; gap: var(--s2); margin-bottom: var(--s6); }
.home-news-eyebrow { color: var(--navy); }
.home-news-all { justify-self: start; color: var(--navy); font-weight: 600; }

@media (max-width: 1068px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 734px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .news-card-big { grid-template-columns: minmax(0, 1fr); }
  .news-card-big .news-card-text { padding: var(--s3); }
  .news-card-big .news-card-logo { border-right: 0; border-bottom: 1px solid var(--line); }
  .news-card-big .news-card-title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .news-card { transition: none; } }
